From cef0298c34f7c0d59404a2beedf8c3fae1b9209c Mon Sep 17 00:00:00 2001 From: eezd Date: Mon, 26 Oct 2026 11:53:11 +0800 Subject: [PATCH] refactor(web): group shared components by directory Move each shared component into a named directory with an index.vue entry. Update consumers and relative imports while preserving component behavior. --- web/src/App.vue | 2 +- .../components/{AppStatus.vue => AppStatus/index.vue} | 0 .../{FontPicker.vue => FontPicker/index.vue} | 10 +++++----- web/src/common/components/{Icon.vue => Icon/index.vue} | 6 +++--- .../index.vue} | 8 ++++---- .../{PluginMount.vue => PluginMount/index.vue} | 4 ++-- .../common/components/{Toasts.vue => Toasts/index.vue} | 0 web/src/pages/login/index.vue | 2 +- web/src/pages/settings/components/PluginsPanel.vue | 2 +- web/src/pages/settings/components/SettingRow.vue | 2 +- web/src/pages/settings/components/ShortcutSettings.vue | 2 +- web/src/pages/settings/components/TokensPanel.vue | 2 +- web/src/pages/settings/components/TrashPanel.vue | 2 +- web/src/pages/settings/index.vue | 4 ++-- web/src/pages/settings/settings-catalog.ts | 2 +- web/src/pages/workspace/components/EditorChrome.vue | 2 +- web/src/pages/workspace/components/ImageDialog.vue | 2 +- web/src/pages/workspace/components/ImageGallery.vue | 2 +- web/src/pages/workspace/components/ImportDialog.vue | 2 +- web/src/pages/workspace/components/KnowledgePanel.vue | 2 +- web/src/pages/workspace/components/MoveDialog.vue | 2 +- web/src/pages/workspace/components/OutlinePanel.vue | 2 +- web/src/pages/workspace/components/QuickSwitcher.vue | 2 +- web/src/pages/workspace/components/SearchPanel.vue | 2 +- .../pages/workspace/components/SelectionToolbar.vue | 4 ++-- web/src/pages/workspace/components/Sidebar.vue | 4 ++-- web/src/pages/workspace/components/TabBar.vue | 2 +- web/src/pages/workspace/components/TreeIconPicker.vue | 2 +- web/src/pages/workspace/components/TreeNode.vue | 2 +- web/src/pages/workspace/index.vue | 4 ++-- 30 files changed, 42 insertions(+), 42 deletions(-) rename web/src/common/components/{AppStatus.vue => AppStatus/index.vue} (100%) rename web/src/common/components/{FontPicker.vue => FontPicker/index.vue} (96%) rename web/src/common/components/{Icon.vue => Icon/index.vue} (73%) rename web/src/common/components/{InlineAppearance.vue => InlineAppearance/index.vue} (96%) rename web/src/common/components/{PluginMount.vue => PluginMount/index.vue} (81%) rename web/src/common/components/{Toasts.vue => Toasts/index.vue} (100%) diff --git a/web/src/App.vue b/web/src/App.vue index 8dfdf0f..4f1a027 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -1,5 +1,5 @@ diff --git a/web/src/common/components/InlineAppearance.vue b/web/src/common/components/InlineAppearance/index.vue similarity index 96% rename from web/src/common/components/InlineAppearance.vue rename to web/src/common/components/InlineAppearance/index.vue index 5be4c73..46c0f35 100644 --- a/web/src/common/components/InlineAppearance.vue +++ b/web/src/common/components/InlineAppearance/index.vue @@ -1,9 +1,9 @@ diff --git a/web/src/pages/workspace/components/ImageDialog.vue b/web/src/pages/workspace/components/ImageDialog.vue index 0f4a9f0..54bc3b5 100644 --- a/web/src/pages/workspace/components/ImageDialog.vue +++ b/web/src/pages/workspace/components/ImageDialog.vue @@ -1,7 +1,7 @@