From 88ad373c9b8a9eed34044751ee0932857cb55788 Mon Sep 17 00:00:00 2001 From: kwicxy Date: Thu, 29 May 2025 01:28:45 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=B7=B1=E8=89=B2=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=8A=9F=E8=83=BD=E5=88=9D=E6=AD=A5=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/shared/AstrBotConfig.vue | 8 +- .../src/components/shared/ExtensionCard.vue | 3 +- .../src/components/shared/ListConfigItem.vue | 4 +- dashboard/src/config.ts | 2 + dashboard/src/layouts/full/FullLayout.vue | 2 +- .../full/vertical-header/VerticalHeader.vue | 258 +++++++++--------- dashboard/src/plugins/vuetify.ts | 6 +- dashboard/src/scss/layout/_sidebar.scss | 2 +- dashboard/src/stores/customizer.ts | 6 +- dashboard/src/theme/DarkTheme.ts | 46 ++++ dashboard/src/theme/LightTheme.ts | 13 +- dashboard/src/types/themeTypes/ThemeType.ts | 8 +- dashboard/src/views/AboutPage.vue | 25 +- dashboard/src/views/ChatPage.vue | 36 +-- dashboard/src/views/ConfigPage.vue | 4 +- dashboard/src/views/ConsolePage.vue | 2 +- dashboard/src/views/ExtensionMarketplace.vue | 4 +- dashboard/src/views/Settings.vue | 2 +- .../dashboards/default/DefaultDashboard.vue | 14 +- .../default/components/MessageStat.vue | 20 +- .../default/components/PlatformStat.vue | 24 +- 21 files changed, 288 insertions(+), 201 deletions(-) create mode 100644 dashboard/src/theme/DarkTheme.ts diff --git a/dashboard/src/components/shared/AstrBotConfig.vue b/dashboard/src/components/shared/AstrBotConfig.vue index 5b339c700..960fe3f38 100644 --- a/dashboard/src/components/shared/AstrBotConfig.vue +++ b/dashboard/src/components/shared/AstrBotConfig.vue @@ -340,12 +340,12 @@ export default { .config-title { font-weight: 600; font-size: 1rem; - color: var(--v-primary-darken1); + color: var(--v-theme-primaryText); } .config-hint { font-size: 0.75rem; - color: rgba(0, 0, 0, 0.6); + color: var(--v-theme-secondaryText); margin-top: 2px; } @@ -400,12 +400,12 @@ export default { .property-name { font-size: 0.875rem; font-weight: 600; - color: rgba(0, 0, 0, 0.87); + color: var(--v-theme-primaryText); } .property-hint { font-size: 0.75rem; - color: rgba(0, 0, 0, 0.6); + color: var(--v-theme-secondaryText); margin-top: 2px; } diff --git a/dashboard/src/components/shared/ExtensionCard.vue b/dashboard/src/components/shared/ExtensionCard.vue index 73da2f4b5..33b24eba9 100644 --- a/dashboard/src/components/shared/ExtensionCard.vue +++ b/dashboard/src/components/shared/ExtensionCard.vue @@ -1,5 +1,6 @@ From 855858c236093a427006103c99560d20b0c52946 Mon Sep 17 00:00:00 2001 From: kwicxy Date: Thu, 29 May 2025 09:31:15 +0800 Subject: [PATCH 4/7] fix: Changed default theme to `PurpleTheme` --- dashboard/src/plugins/vuetify.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/plugins/vuetify.ts b/dashboard/src/plugins/vuetify.ts index dda08490a..1ff7767f6 100644 --- a/dashboard/src/plugins/vuetify.ts +++ b/dashboard/src/plugins/vuetify.ts @@ -10,7 +10,7 @@ export default createVuetify({ directives, theme: { - defaultTheme: 'PurpleThemeDark', + defaultTheme: 'PurpleTheme', themes: { PurpleTheme, PurpleThemeDark From b884fe0e86c53b14f6c83fc50076a926f9c6100e Mon Sep 17 00:00:00 2001 From: kwicxy Date: Thu, 29 May 2025 09:31:29 +0800 Subject: [PATCH 5/7] fix: Various bug fixes --- .../full/vertical-header/VerticalHeader.vue | 20 +++++++++---- dashboard/src/views/AboutPage.vue | 10 +++---- dashboard/src/views/ChatPage.vue | 30 +++++++++---------- dashboard/src/views/ConsolePage.vue | 2 +- dashboard/src/views/ExtensionMarketplace.vue | 4 +-- dashboard/src/views/Settings.vue | 2 +- dashboard/src/views/alkaid/KnowledgeBase.vue | 4 +-- .../dashboards/default/DefaultDashboard.vue | 14 ++++----- .../default/components/MessageStat.vue | 18 +++++------ .../default/components/PlatformStat.vue | 24 +++++++-------- 10 files changed, 68 insertions(+), 60 deletions(-) diff --git a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue index 964a08b6e..ba9d3ef23 100644 --- a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +++ b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue @@ -213,11 +213,19 @@ if (localStorage.getItem('change_pwd_hint') != null && localStorage.getItem('cha