From 1ffb75afce2bd469ab42222747bd611e15cd8604 Mon Sep 17 00:00:00 2001 From: Soybean Date: Wed, 24 Nov 2021 23:44:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(components):=20blankLayout=E5=BC=95?= =?UTF-8?q?=E5=85=A5GlobalContent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/LoginBg/index.vue | 4 ++- src/components/custom/ThemeSwitch/index.vue | 5 ++-- .../components/HorizontalLayout/index.vue | 2 +- .../components/HorizontalMixLayout/index.vue | 2 +- .../components/VerticalLayout/index.vue | 2 +- .../components/VerticalMixLayout/index.vue | 2 +- src/layouts/BasicLayout/components/index.ts | 1 - src/layouts/BasicLayout/index.vue | 3 ++- src/layouts/BlankLayout/index.vue | 27 ++++--------------- .../common/GlobalContent/index.vue | 13 +++++++-- .../common/GlobalFooter/index.vue | 0 .../GlobalHeader/components/FullScreen.vue | 0 .../GlobalHeader/components/GithubSite.vue | 0 .../components/GlobalBreadcrumb.vue | 0 .../GlobalHeader/components/HeaderMenu.vue | 0 .../GlobalHeader/components/MenuCollapse.vue | 0 .../components/SettingDrawerButton.vue | 0 .../GlobalHeader/components/ThemeMode.vue | 0 .../GlobalHeader/components/UserAvatar.vue | 0 .../common/GlobalHeader/components/index.ts | 0 .../common/GlobalHeader/index.vue | 0 .../common/GlobalLogo/index.vue | 0 .../common/GlobalMenu/index.vue | 0 .../MultiTab/components/ContextMenu.vue | 0 .../components/MultiTab/components/index.ts | 0 .../GlobalTab/components/MultiTab/index.vue | 0 .../components/ReloadButton/index.vue | 0 .../common/GlobalTab/components/index.ts | 0 .../common/GlobalTab/index.vue | 0 .../common/HeaderPlaceholder/index.vue | 0 .../common/MixSider/components/MixMenu.vue | 0 .../MixSider/components/MixMenuCollapse.vue | 0 .../MixSider/components/MixMenuDrawer.vue | 0 .../common/MixSider/components/index.ts | 0 .../components => }/common/MixSider/index.vue | 0 .../components/DarkMode/index.vue | 0 .../components/DrawerButton/index.vue | 0 .../components/NavMode/components/NavType.vue | 0 .../components/NavMode/components/index.ts | 0 .../components/NavMode/index.vue | 0 .../components/PageFunc/index.vue | 0 .../components/PageView/index.vue | 0 .../components/SystemTheme/index.vue | 0 .../components/ThemeConfig/index.vue | 0 .../components/common/ColorBlock.vue | 0 .../components/common/SettingMenuItem.vue | 0 .../SettingDrawer/components/common/index.ts | 0 .../common/SettingDrawer/components/index.ts | 0 .../common/SettingDrawer/index.vue | 0 .../common/SpacePlaceholder/index.vue | 0 .../VerticalMixSider/components/MixMenu.vue | 0 .../components/MixMenuCollapse.vue | 0 .../components/MixMenuDrawer.vue | 0 .../VerticalMixSider/components/index.ts | 0 .../common/VerticalMixSider/index.vue | 0 .../components => }/common/index.ts | 0 src/settings/index.ts | 1 + src/settings/website.json | 4 +++ src/settings/website.ts | 4 +-- src/views/system/login/index.vue | 6 ++++- .../website/components/WebsiteHeader.vue | 19 +++++++++++++ src/views/website/components/index.ts | 3 +++ src/views/website/index.vue | 16 +++-------- 63 files changed, 64 insertions(+), 50 deletions(-) rename src/layouts/{BasicLayout/components => }/common/GlobalContent/index.vue (74%) rename src/layouts/{BasicLayout/components => }/common/GlobalFooter/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/FullScreen.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/GithubSite.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/GlobalBreadcrumb.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/HeaderMenu.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/MenuCollapse.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/SettingDrawerButton.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/ThemeMode.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/UserAvatar.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/components/index.ts (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalHeader/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalLogo/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalMenu/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalTab/components/MultiTab/components/ContextMenu.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalTab/components/MultiTab/components/index.ts (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalTab/components/MultiTab/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalTab/components/ReloadButton/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalTab/components/index.ts (100%) rename src/layouts/{BasicLayout/components => }/common/GlobalTab/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/HeaderPlaceholder/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/MixSider/components/MixMenu.vue (100%) rename src/layouts/{BasicLayout/components => }/common/MixSider/components/MixMenuCollapse.vue (100%) rename src/layouts/{BasicLayout/components => }/common/MixSider/components/MixMenuDrawer.vue (100%) rename src/layouts/{BasicLayout/components => }/common/MixSider/components/index.ts (100%) rename src/layouts/{BasicLayout/components => }/common/MixSider/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/DarkMode/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/DrawerButton/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/NavMode/components/NavType.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/NavMode/components/index.ts (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/NavMode/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/PageFunc/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/PageView/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/SystemTheme/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/ThemeConfig/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/common/ColorBlock.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/common/SettingMenuItem.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/common/index.ts (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/components/index.ts (100%) rename src/layouts/{BasicLayout/components => }/common/SettingDrawer/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/SpacePlaceholder/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/VerticalMixSider/components/MixMenu.vue (100%) rename src/layouts/{BasicLayout/components => }/common/VerticalMixSider/components/MixMenuCollapse.vue (100%) rename src/layouts/{BasicLayout/components => }/common/VerticalMixSider/components/MixMenuDrawer.vue (100%) rename src/layouts/{BasicLayout/components => }/common/VerticalMixSider/components/index.ts (100%) rename src/layouts/{BasicLayout/components => }/common/VerticalMixSider/index.vue (100%) rename src/layouts/{BasicLayout/components => }/common/index.ts (100%) create mode 100644 src/views/website/components/WebsiteHeader.vue create mode 100644 src/views/website/components/index.ts diff --git a/src/components/common/LoginBg/index.vue b/src/components/common/LoginBg/index.vue index cd9e8e94..8bde57e8 100644 --- a/src/components/common/LoginBg/index.vue +++ b/src/components/common/LoginBg/index.vue @@ -24,6 +24,8 @@ const props = withDefaults(defineProps(), { }); const COLOR_WHITE = '#ffffff'; -const stopColor = computed(() => mixColor(COLOR_WHITE, props.themeColor, 0.7)); +const stopColor = computed(() => { + return mixColor(COLOR_WHITE, props.themeColor, 0.7); +}); diff --git a/src/components/custom/ThemeSwitch/index.vue b/src/components/custom/ThemeSwitch/index.vue index 0b0c0731..153d96aa 100644 --- a/src/components/custom/ThemeSwitch/index.vue +++ b/src/components/custom/ThemeSwitch/index.vue @@ -1,12 +1,13 @@ diff --git a/src/layouts/BasicLayout/components/common/GlobalContent/index.vue b/src/layouts/common/GlobalContent/index.vue similarity index 74% rename from src/layouts/BasicLayout/components/common/GlobalContent/index.vue rename to src/layouts/common/GlobalContent/index.vue index 3948b55d..fffecc5c 100644 --- a/src/layouts/BasicLayout/components/common/GlobalContent/index.vue +++ b/src/layouts/common/GlobalContent/index.vue @@ -1,7 +1,7 @@