From 77f891481012982c94f03308448a775fc6f59ec6 Mon Sep 17 00:00:00 2001 From: Zhilin Liu Date: Thu, 1 Feb 2024 21:19:50 +0800 Subject: [PATCH] refactor: ToolBar directory structure (#85) --- src/UserInterface/ToolBar/ToolBar.vue | 8 +++---- .../components/Draw/{index.vue => Draw.vue} | 2 +- .../Draw/{ => components}/Tools.vue | 2 +- .../ToolBar/components/Home/Home.vue | 21 +++++++++++++++++++ .../Home/{ => components}/Clipboard.vue | 4 ++-- .../Home/{ => components}/Delete.vue | 4 ++-- .../components/Home/{ => components}/Draw.vue | 4 ++-- .../components/Home/{ => components}/Edit.vue | 2 +- .../Home/{ => components}/FontStyle.vue | 2 +- .../Home/{ => components}/Paragraph.vue | 2 +- .../Home/{ => components}/Slides.vue | 4 ++-- .../Home/{ => components}/UndoRedo.vue | 2 +- .../ToolBar/components/Home/index.vue | 21 ------------------- .../Insert/{Index.vue => Insert.vue} | 10 ++++----- .../Insert/{ => components}/Comments.vue | 2 +- .../Insert/{ => components}/Footer.vue | 2 +- .../Insert/{ => components}/Illustration.vue | 4 ++-- .../Insert/{ => components}/Link.vue | 2 +- .../Insert/{ => components}/Media.vue | 2 +- .../Insert/{ => components}/Picture.vue | 4 ++-- .../Insert/{ => components}/Slides.vue | 4 ++-- .../Insert/{ => components}/Symbol.vue | 2 +- .../Insert/{ => components}/Table.vue | 4 ++-- .../Insert/{ => components}/Text.vue | 4 ++-- .../SlideShow/{index.vue => SlideShow.vue} | 2 +- .../{ => components}/StartSlideShow.vue | 2 +- 26 files changed, 61 insertions(+), 61 deletions(-) rename src/UserInterface/ToolBar/components/Draw/{index.vue => Draw.vue} (62%) rename src/UserInterface/ToolBar/components/Draw/{ => components}/Tools.vue (90%) create mode 100644 src/UserInterface/ToolBar/components/Home/Home.vue rename src/UserInterface/ToolBar/components/Home/{ => components}/Clipboard.vue (96%) rename src/UserInterface/ToolBar/components/Home/{ => components}/Delete.vue (90%) rename src/UserInterface/ToolBar/components/Home/{ => components}/Draw.vue (94%) rename src/UserInterface/ToolBar/components/Home/{ => components}/Edit.vue (93%) rename src/UserInterface/ToolBar/components/Home/{ => components}/FontStyle.vue (99%) rename src/UserInterface/ToolBar/components/Home/{ => components}/Paragraph.vue (98%) rename src/UserInterface/ToolBar/components/Home/{ => components}/Slides.vue (89%) rename src/UserInterface/ToolBar/components/Home/{ => components}/UndoRedo.vue (94%) delete mode 100644 src/UserInterface/ToolBar/components/Home/index.vue rename src/UserInterface/ToolBar/components/Insert/{Index.vue => Insert.vue} (64%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Comments.vue (92%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Footer.vue (92%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Illustration.vue (93%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Link.vue (92%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Media.vue (94%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Picture.vue (91%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Slides.vue (84%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Symbol.vue (91%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Table.vue (95%) rename src/UserInterface/ToolBar/components/Insert/{ => components}/Text.vue (86%) rename src/UserInterface/ToolBar/components/SlideShow/{index.vue => SlideShow.vue} (56%) rename src/UserInterface/ToolBar/components/SlideShow/{ => components}/StartSlideShow.vue (94%) diff --git a/src/UserInterface/ToolBar/ToolBar.vue b/src/UserInterface/ToolBar/ToolBar.vue index f989743..fa33a6b 100644 --- a/src/UserInterface/ToolBar/ToolBar.vue +++ b/src/UserInterface/ToolBar/ToolBar.vue @@ -2,10 +2,10 @@ import { ref, type Component } from 'vue' import ToolTabs from './components/ToolTabs.vue' import TabContent from './components/TabContent.vue' -import Home from './components/Home/index.vue' -import Insert from './components/Insert/Index.vue' -import Draw from './components/Draw/index.vue' -import SlideShow from './components/SlideShow/index.vue' +import Home from './components/Home/Home.vue' +import Insert from './components/Insert/Insert.vue' +import Draw from './components/Draw/Draw.vue' +import SlideShow from './components/SlideShow/SlideShow.vue' import { TOOL_TABS } from './const' const activeTab = ref('Home') diff --git a/src/UserInterface/ToolBar/components/Draw/index.vue b/src/UserInterface/ToolBar/components/Draw/Draw.vue similarity index 62% rename from src/UserInterface/ToolBar/components/Draw/index.vue rename to src/UserInterface/ToolBar/components/Draw/Draw.vue index 2a0790e..ae5b24b 100644 --- a/src/UserInterface/ToolBar/components/Draw/index.vue +++ b/src/UserInterface/ToolBar/components/Draw/Draw.vue @@ -1,5 +1,5 @@