From cea600f12c54700934208af3fa33631efd1b10fc Mon Sep 17 00:00:00 2001 From: Soybean Date: Thu, 23 Feb 2023 08:22:44 +0800 Subject: [PATCH] refactor(projects): all file and folder use kebab-case --- ...yWrapper.vue => loading-empty-wrapper.vue} | 0 ...LoginAgreement.vue => login-agreement.vue} | 0 .../{AppLoading.vue => app-loading.vue} | 0 ...eContainer.vue => dark-mode-container.vue} | 0 ...arkModeSwitch.vue => dark-mode-switch.vue} | 0 .../{ExceptionBase.vue => exception-base.vue} | 0 ...HoverContainer.vue => hover-container.vue} | 0 .../{NaiveProvider.vue => naive-provider.vue} | 0 .../{SystemLogo.vue => system-logo.vue} | 0 .../{BetterScroll.vue => better-scroll.vue} | 0 .../custom/{CountTo.vue => count-to.vue} | 0 .../{GithubLink.vue => github-link.vue} | 2 +- .../{IconSelect.vue => icon-select.vue} | 0 .../{ImageVerify.vue => image-verify.vue} | 0 .../custom/{SvgIcon.vue => svg-icon.vue} | 0 .../{WebSiteLink.vue => web-site-link.vue} | 0 src/composables/icon.ts | 2 +- src/hooks/business/index.ts | 6 ++--- .../{useCountDown.ts => use-count-down.ts} | 0 ...{useImageVerify.ts => use-image-verify.ts} | 0 .../{useSmsCode.ts => use-sms-code.ts} | 2 +- .../business/{useTable.ts => use-table.ts} | 0 src/hooks/common/index.ts | 10 +++---- .../common/{useBoolean.ts => use-boolean.ts} | 0 .../common/{useContext.ts => use-context.ts} | 0 ...seLoadingEmpty.ts => use-loading-empty.ts} | 2 +- .../common/{useLoading.ts => use-loading.ts} | 2 +- .../common/{useReload.ts => use-reload.ts} | 2 +- .../{BasicLayout => basic-layout}/index.vue | 0 .../{BlankLayout => blank-layout}/index.vue | 0 .../common/GlobalHeader/components/index.ts | 21 --------------- .../common/GlobalSearch/components/index.ts | 3 --- .../VerticalMixSider/components/index.ts | 5 ---- .../VerticalSider/components/index.ts | 3 --- .../common/GlobalSider/components/index.ts | 4 --- .../components/TabDetail/components/index.ts | 3 --- .../common/GlobalTab/components/index.ts | 4 --- .../components/LayoutMode/components/index.ts | 3 --- .../ThemeColorSelect/components/index.ts | 4 --- .../common/SettingDrawer/components/index.ts | 9 ------- .../index.vue | 0 .../index.vue | 0 .../{GlobalFooter => global-footer}/index.vue | 0 .../components/full-screen.vue} | 0 .../components/github-site.vue} | 0 .../components/global-breadcrumb.vue} | 0 .../components/header-menu.vue} | 0 .../common/global-header/components/index.ts | 21 +++++++++++++++ .../components/menu-collapse.vue} | 0 .../components/message-list.vue} | 0 .../components/setting-button.vue} | 0 .../components/system-message.vue} | 2 +- .../components/theme-mode.vue} | 0 .../components/user-avatar.vue} | 0 .../{GlobalHeader => global-header}/index.vue | 4 +-- .../{GlobalLogo => global-logo}/index.vue | 0 .../common/global-search/components/index.ts | 3 +++ .../components/search-footer.vue} | 0 .../components/search-modal.vue} | 4 +-- .../components/search-result.vue} | 0 .../{GlobalSearch => global-search}/index.vue | 0 .../common/global-sider/components/index.ts | 4 +++ .../vertical-mix-sider/components/index.ts | 5 ++++ .../components/mix-menu-collapse.vue} | 0 .../components/mix-menu-detail.vue} | 0 .../components/mix-menu-drawer.vue} | 0 .../components/vertical-mix-sider}/index.vue | 0 .../vertical-sider/components/index.ts | 3 +++ .../components/vertical-menu.vue} | 0 .../components/vertical-sider}/index.vue | 0 .../{GlobalSider => global-sider}/index.vue | 0 .../common/global-tab/components/index.ts | 4 +++ .../components/reload-button}/index.vue | 0 .../tab-detail/components/context-menu.vue} | 0 .../components/tab-detail/components/index.ts | 3 +++ .../components/tab-detail}/index.vue | 0 .../{GlobalTab => global-tab}/index.vue | 0 src/layouts/common/index.ts | 16 ++++++------ .../components/dark-mode}/index.vue | 2 +- .../components/drawer-button}/index.vue | 0 .../common/setting-drawer/components/index.ts | 9 +++++++ .../layout-mode/components/index.ts | 3 +++ .../components/layout-checkbox.vue} | 0 .../components/layout-mode}/index.vue | 0 .../components/page-func}/index.vue | 2 +- .../components/page-view}/index.vue | 2 +- .../components/setting-menu}/index.vue | 0 .../components/color-checkbox.vue} | 0 .../components/color-modal.vue} | 2 +- .../theme-color-select/components/index.ts | 4 +++ .../components/theme-color-select}/index.vue | 0 .../components/theme-config}/index.vue | 0 .../index.vue | 0 src/layouts/index.ts | 4 +-- src/main.ts | 2 +- src/store/modules/theme/helpers.ts | 1 + src/utils/storage/session.ts | 26 ------------------- .../components/LoginBg/components/index.ts | 4 --- .../components/PwdLogin/components/index.ts | 4 --- .../{BindWechat => bind-wechat}/index.vue | 0 .../{CodeLogin => code-login}/index.vue | 0 src/views/_builtin/login/components/index.ts | 12 ++++----- .../components/corner-bottom.vue} | 0 .../components/corner-top.vue} | 0 .../components/login-bg/components/index.ts | 4 +++ .../{LoginBg => login-bg}/index.vue | 0 .../components/pwd-login/components/index.ts | 4 +++ .../components/other-account.vue} | 0 .../components/other-login.vue} | 0 .../{PwdLogin => pwd-login}/index.vue | 0 .../{Register => register-user}/index.vue | 0 .../{ResetPwd => reset-pwd}/index.vue | 0 .../{DevDependency.vue => dev-dependency.vue} | 0 src/views/about/components/index.ts | 8 +++--- .../{ProDependency.vue => pro-dependency.vue} | 0 .../{ProjectInfo.vue => project-info.vue} | 0 ...roduction.vue => project-introduction.vue} | 0 .../components/DataCard/components/index.ts | 3 --- .../{BottomPart => bottom-part}/index.vue | 0 .../components/gradient-bg.vue} | 0 .../components/data-card/components/index.ts | 3 +++ .../{DataCard => data-card}/index.vue | 0 .../dashboard/analysis/components/index.ts | 6 ++--- .../{TopChart => top-chart}/index.vue | 0 .../WorkbenchMain/components/index.ts | 4 --- .../dashboard/workbench/components/index.ts | 4 +-- .../index.vue | 0 .../workbench-main/components/index.ts | 4 +++ .../components/shortcuts-card.vue} | 0 .../components/technology-card.vue} | 0 .../index.vue | 0 .../{ColumnSetting.vue => column-setting.vue} | 0 ...ActionModal.vue => table-action-modal.vue} | 0 src/views/management/user/index.vue | 6 ++--- .../{BaiduMap.vue => baidu-map.vue} | 0 .../{GaodeMap.vue => gaode-map.vue} | 0 src/views/plugin/map/components/index.ts | 6 ++--- .../{TencentMap.vue => tencent-map.vue} | 0 138 files changed, 130 insertions(+), 155 deletions(-) rename src/components/business/{LoadingEmptyWrapper.vue => loading-empty-wrapper.vue} (100%) rename src/components/business/{LoginAgreement.vue => login-agreement.vue} (100%) rename src/components/common/{AppLoading.vue => app-loading.vue} (100%) rename src/components/common/{DarkModeContainer.vue => dark-mode-container.vue} (100%) rename src/components/common/{DarkModeSwitch.vue => dark-mode-switch.vue} (100%) rename src/components/common/{ExceptionBase.vue => exception-base.vue} (100%) rename src/components/common/{HoverContainer.vue => hover-container.vue} (100%) rename src/components/common/{NaiveProvider.vue => naive-provider.vue} (100%) rename src/components/common/{SystemLogo.vue => system-logo.vue} (100%) rename src/components/custom/{BetterScroll.vue => better-scroll.vue} (100%) rename src/components/custom/{CountTo.vue => count-to.vue} (100%) rename src/components/custom/{GithubLink.vue => github-link.vue} (84%) rename src/components/custom/{IconSelect.vue => icon-select.vue} (100%) rename src/components/custom/{ImageVerify.vue => image-verify.vue} (100%) rename src/components/custom/{SvgIcon.vue => svg-icon.vue} (100%) rename src/components/custom/{WebSiteLink.vue => web-site-link.vue} (100%) rename src/hooks/business/{useCountDown.ts => use-count-down.ts} (100%) rename src/hooks/business/{useImageVerify.ts => use-image-verify.ts} (100%) rename src/hooks/business/{useSmsCode.ts => use-sms-code.ts} (97%) rename src/hooks/business/{useTable.ts => use-table.ts} (100%) rename src/hooks/common/{useBoolean.ts => use-boolean.ts} (100%) rename src/hooks/common/{useContext.ts => use-context.ts} (100%) rename src/hooks/common/{useLoadingEmpty.ts => use-loading-empty.ts} (89%) rename src/hooks/common/{useLoading.ts => use-loading.ts} (84%) rename src/hooks/common/{useReload.ts => use-reload.ts} (92%) rename src/layouts/{BasicLayout => basic-layout}/index.vue (100%) rename src/layouts/{BlankLayout => blank-layout}/index.vue (100%) delete mode 100644 src/layouts/common/GlobalHeader/components/index.ts delete mode 100644 src/layouts/common/GlobalSearch/components/index.ts delete mode 100644 src/layouts/common/GlobalSider/components/VerticalMixSider/components/index.ts delete mode 100644 src/layouts/common/GlobalSider/components/VerticalSider/components/index.ts delete mode 100644 src/layouts/common/GlobalSider/components/index.ts delete mode 100644 src/layouts/common/GlobalTab/components/TabDetail/components/index.ts delete mode 100644 src/layouts/common/GlobalTab/components/index.ts delete mode 100644 src/layouts/common/SettingDrawer/components/LayoutMode/components/index.ts delete mode 100644 src/layouts/common/SettingDrawer/components/ThemeColorSelect/components/index.ts delete mode 100644 src/layouts/common/SettingDrawer/components/index.ts rename src/layouts/common/{GlobalBackTop => global-back-top}/index.vue (100%) rename src/layouts/common/{GlobalContent => global-content}/index.vue (100%) rename src/layouts/common/{GlobalFooter => global-footer}/index.vue (100%) rename src/layouts/common/{GlobalHeader/components/FullScreen.vue => global-header/components/full-screen.vue} (100%) rename src/layouts/common/{GlobalHeader/components/GithubSite.vue => global-header/components/github-site.vue} (100%) rename src/layouts/common/{GlobalHeader/components/GlobalBreadcrumb.vue => global-header/components/global-breadcrumb.vue} (100%) rename src/layouts/common/{GlobalHeader/components/HeaderMenu.vue => global-header/components/header-menu.vue} (100%) create mode 100644 src/layouts/common/global-header/components/index.ts rename src/layouts/common/{GlobalHeader/components/MenuCollapse.vue => global-header/components/menu-collapse.vue} (100%) rename src/layouts/common/{GlobalHeader/components/MessageList.vue => global-header/components/message-list.vue} (100%) rename src/layouts/common/{GlobalHeader/components/SettingButton.vue => global-header/components/setting-button.vue} (100%) rename src/layouts/common/{GlobalHeader/components/SystemMessage.vue => global-header/components/system-message.vue} (99%) rename src/layouts/common/{GlobalHeader/components/ThemeMode.vue => global-header/components/theme-mode.vue} (100%) rename src/layouts/common/{GlobalHeader/components/UserAvatar.vue => global-header/components/user-avatar.vue} (100%) rename src/layouts/common/{GlobalHeader => global-header}/index.vue (93%) rename src/layouts/common/{GlobalLogo => global-logo}/index.vue (100%) create mode 100644 src/layouts/common/global-search/components/index.ts rename src/layouts/common/{GlobalSearch/components/SearchFooter.vue => global-search/components/search-footer.vue} (100%) rename src/layouts/common/{GlobalSearch/components/SearchModal.vue => global-search/components/search-modal.vue} (97%) rename src/layouts/common/{GlobalSearch/components/SearchResult.vue => global-search/components/search-result.vue} (100%) rename src/layouts/common/{GlobalSearch => global-search}/index.vue (100%) create mode 100644 src/layouts/common/global-sider/components/index.ts create mode 100644 src/layouts/common/global-sider/components/vertical-mix-sider/components/index.ts rename src/layouts/common/{GlobalSider/components/VerticalMixSider/components/MixMenuCollapse.vue => global-sider/components/vertical-mix-sider/components/mix-menu-collapse.vue} (100%) rename src/layouts/common/{GlobalSider/components/VerticalMixSider/components/MixMenuDetail.vue => global-sider/components/vertical-mix-sider/components/mix-menu-detail.vue} (100%) rename src/layouts/common/{GlobalSider/components/VerticalMixSider/components/MixMenuDrawer.vue => global-sider/components/vertical-mix-sider/components/mix-menu-drawer.vue} (100%) rename src/layouts/common/{GlobalSider/components/VerticalMixSider => global-sider/components/vertical-mix-sider}/index.vue (100%) create mode 100644 src/layouts/common/global-sider/components/vertical-sider/components/index.ts rename src/layouts/common/{GlobalSider/components/VerticalSider/components/VerticalMenu.vue => global-sider/components/vertical-sider/components/vertical-menu.vue} (100%) rename src/layouts/common/{GlobalSider/components/VerticalSider => global-sider/components/vertical-sider}/index.vue (100%) rename src/layouts/common/{GlobalSider => global-sider}/index.vue (100%) create mode 100644 src/layouts/common/global-tab/components/index.ts rename src/layouts/common/{GlobalTab/components/ReloadButton => global-tab/components/reload-button}/index.vue (100%) rename src/layouts/common/{GlobalTab/components/TabDetail/components/ContextMenu.vue => global-tab/components/tab-detail/components/context-menu.vue} (100%) create mode 100644 src/layouts/common/global-tab/components/tab-detail/components/index.ts rename src/layouts/common/{GlobalTab/components/TabDetail => global-tab/components/tab-detail}/index.vue (100%) rename src/layouts/common/{GlobalTab => global-tab}/index.vue (100%) rename src/layouts/common/{SettingDrawer/components/DarkMode => setting-drawer/components/dark-mode}/index.vue (95%) rename src/layouts/common/{SettingDrawer/components/DrawerButton => setting-drawer/components/drawer-button}/index.vue (100%) create mode 100644 src/layouts/common/setting-drawer/components/index.ts create mode 100644 src/layouts/common/setting-drawer/components/layout-mode/components/index.ts rename src/layouts/common/{SettingDrawer/components/LayoutMode/components/LayoutCheckbox.vue => setting-drawer/components/layout-mode/components/layout-checkbox.vue} (100%) rename src/layouts/common/{SettingDrawer/components/LayoutMode => setting-drawer/components/layout-mode}/index.vue (100%) rename src/layouts/common/{SettingDrawer/components/PageFunc => setting-drawer/components/page-func}/index.vue (97%) rename src/layouts/common/{SettingDrawer/components/PageView => setting-drawer/components/page-view}/index.vue (96%) rename src/layouts/common/{SettingDrawer/components/SettingMenu => setting-drawer/components/setting-menu}/index.vue (100%) rename src/layouts/common/{SettingDrawer/components/ThemeColorSelect/components/ColorCheckbox.vue => setting-drawer/components/theme-color-select/components/color-checkbox.vue} (100%) rename src/layouts/common/{SettingDrawer/components/ThemeColorSelect/components/ColorModal.vue => setting-drawer/components/theme-color-select/components/color-modal.vue} (96%) create mode 100644 src/layouts/common/setting-drawer/components/theme-color-select/components/index.ts rename src/layouts/common/{SettingDrawer/components/ThemeColorSelect => setting-drawer/components/theme-color-select}/index.vue (100%) rename src/layouts/common/{SettingDrawer/components/ThemeConfig => setting-drawer/components/theme-config}/index.vue (100%) rename src/layouts/common/{SettingDrawer => setting-drawer}/index.vue (100%) delete mode 100644 src/views/_builtin/login/components/LoginBg/components/index.ts delete mode 100644 src/views/_builtin/login/components/PwdLogin/components/index.ts rename src/views/_builtin/login/components/{BindWechat => bind-wechat}/index.vue (100%) rename src/views/_builtin/login/components/{CodeLogin => code-login}/index.vue (100%) rename src/views/_builtin/login/components/{LoginBg/components/CornerBottom.vue => login-bg/components/corner-bottom.vue} (100%) rename src/views/_builtin/login/components/{LoginBg/components/CornerTop.vue => login-bg/components/corner-top.vue} (100%) create mode 100644 src/views/_builtin/login/components/login-bg/components/index.ts rename src/views/_builtin/login/components/{LoginBg => login-bg}/index.vue (100%) create mode 100644 src/views/_builtin/login/components/pwd-login/components/index.ts rename src/views/_builtin/login/components/{PwdLogin/components/OtherAccount.vue => pwd-login/components/other-account.vue} (100%) rename src/views/_builtin/login/components/{PwdLogin/components/OtherLogin.vue => pwd-login/components/other-login.vue} (100%) rename src/views/_builtin/login/components/{PwdLogin => pwd-login}/index.vue (100%) rename src/views/_builtin/login/components/{Register => register-user}/index.vue (100%) rename src/views/_builtin/login/components/{ResetPwd => reset-pwd}/index.vue (100%) rename src/views/about/components/{DevDependency.vue => dev-dependency.vue} (100%) rename src/views/about/components/{ProDependency.vue => pro-dependency.vue} (100%) rename src/views/about/components/{ProjectInfo.vue => project-info.vue} (100%) rename src/views/about/components/{ProjectIntroduction.vue => project-introduction.vue} (100%) delete mode 100644 src/views/dashboard/analysis/components/DataCard/components/index.ts rename src/views/dashboard/analysis/components/{BottomPart => bottom-part}/index.vue (100%) rename src/views/dashboard/analysis/components/{DataCard/components/GradientBg.vue => data-card/components/gradient-bg.vue} (100%) create mode 100644 src/views/dashboard/analysis/components/data-card/components/index.ts rename src/views/dashboard/analysis/components/{DataCard => data-card}/index.vue (100%) rename src/views/dashboard/analysis/components/{TopChart => top-chart}/index.vue (100%) delete mode 100644 src/views/dashboard/workbench/components/WorkbenchMain/components/index.ts rename src/views/dashboard/workbench/components/{WorkbenchHeader => workbench-header}/index.vue (100%) create mode 100644 src/views/dashboard/workbench/components/workbench-main/components/index.ts rename src/views/dashboard/workbench/components/{WorkbenchMain/components/ShortcutsCard.vue => workbench-main/components/shortcuts-card.vue} (100%) rename src/views/dashboard/workbench/components/{WorkbenchMain/components/TechnologyCard.vue => workbench-main/components/technology-card.vue} (100%) rename src/views/dashboard/workbench/components/{WorkbenchMain => workbench-main}/index.vue (100%) rename src/views/management/user/components/{ColumnSetting.vue => column-setting.vue} (100%) rename src/views/management/user/components/{TableActionModal.vue => table-action-modal.vue} (100%) rename src/views/plugin/map/components/{BaiduMap.vue => baidu-map.vue} (100%) rename src/views/plugin/map/components/{GaodeMap.vue => gaode-map.vue} (100%) rename src/views/plugin/map/components/{TencentMap.vue => tencent-map.vue} (100%) diff --git a/src/components/business/LoadingEmptyWrapper.vue b/src/components/business/loading-empty-wrapper.vue similarity index 100% rename from src/components/business/LoadingEmptyWrapper.vue rename to src/components/business/loading-empty-wrapper.vue diff --git a/src/components/business/LoginAgreement.vue b/src/components/business/login-agreement.vue similarity index 100% rename from src/components/business/LoginAgreement.vue rename to src/components/business/login-agreement.vue diff --git a/src/components/common/AppLoading.vue b/src/components/common/app-loading.vue similarity index 100% rename from src/components/common/AppLoading.vue rename to src/components/common/app-loading.vue diff --git a/src/components/common/DarkModeContainer.vue b/src/components/common/dark-mode-container.vue similarity index 100% rename from src/components/common/DarkModeContainer.vue rename to src/components/common/dark-mode-container.vue diff --git a/src/components/common/DarkModeSwitch.vue b/src/components/common/dark-mode-switch.vue similarity index 100% rename from src/components/common/DarkModeSwitch.vue rename to src/components/common/dark-mode-switch.vue diff --git a/src/components/common/ExceptionBase.vue b/src/components/common/exception-base.vue similarity index 100% rename from src/components/common/ExceptionBase.vue rename to src/components/common/exception-base.vue diff --git a/src/components/common/HoverContainer.vue b/src/components/common/hover-container.vue similarity index 100% rename from src/components/common/HoverContainer.vue rename to src/components/common/hover-container.vue diff --git a/src/components/common/NaiveProvider.vue b/src/components/common/naive-provider.vue similarity index 100% rename from src/components/common/NaiveProvider.vue rename to src/components/common/naive-provider.vue diff --git a/src/components/common/SystemLogo.vue b/src/components/common/system-logo.vue similarity index 100% rename from src/components/common/SystemLogo.vue rename to src/components/common/system-logo.vue diff --git a/src/components/custom/BetterScroll.vue b/src/components/custom/better-scroll.vue similarity index 100% rename from src/components/custom/BetterScroll.vue rename to src/components/custom/better-scroll.vue diff --git a/src/components/custom/CountTo.vue b/src/components/custom/count-to.vue similarity index 100% rename from src/components/custom/CountTo.vue rename to src/components/custom/count-to.vue diff --git a/src/components/custom/GithubLink.vue b/src/components/custom/github-link.vue similarity index 84% rename from src/components/custom/GithubLink.vue rename to src/components/custom/github-link.vue index d119d5b1a..c7f7e016f 100644 --- a/src/components/custom/GithubLink.vue +++ b/src/components/custom/github-link.vue @@ -3,7 +3,7 @@