Refactor app components into composables for better organization#113
Merged
Conversation
extraRoots 状态与增/删/清空、KV 持久化从 App.vue 移入独立 composable; openFolderPath 改调 resetExtraRoots。零行为变化。
gitStatus/gitRepo/gitBranch 与 gitStatusFor/refreshGitStatus 移入独立 composable, HEAD 变化经 onRefreshed 回调驱动差异基线刷新;watch 仍留在 App。零行为变化。
persist/restore 与变更监听从 App.vue 移入独立 composable,依赖经入参注入; 调用点置于 editorConfig 声明之后。零行为变化。
docs 为独立子项目,CI 在 docs/ 内运行 pnpm 时会向上读到根 package.json 的 pnpm.overrides,与 docs 锁文件不一致导致 frozen 安装失败;文档站构建无需锁定一致性。
菜单开关/光标定位/视口夹取与全局 contextmenu 监听生命周期移入独立 composable, 依赖经入参注入(editorView/currentLanguage/canBlame);菜单项动作仍由 App 提供。零行为变化。
run-configs 的加载/保存/切档与防抖持久化(含两处 watch)移入独立 composable; App 仅传入 currentFilePath 与三个输入 ref。零行为变化。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.