From 7aae048405d17c1fb35dcfe5e0daa1f600eecd6e Mon Sep 17 00:00:00 2001 From: Kangyang Ji Date: Tue, 17 Mar 2026 11:06:01 +0000 Subject: [PATCH] feat(dashboard): add auto switch theme (default off) (#6405) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(dashboard): add auto switch theme (default off) feat(dashboard): move all get theme and set theme by check current theme into stores/customizer * feat(dashboard): fix duplicate for auto switch theme 根据Gemini的意见更改了一些地方。 将原本的状态更新挪到了App.vue里,可以去除很多地方更新theme所需要的theme依赖。 将翻译修改了 将监听器改为了watch --- dashboard/src/App.vue | 25 +++++++--- dashboard/src/components/chat/Chat.vue | 9 ++-- dashboard/src/components/chat/ChatInput.vue | 3 +- dashboard/src/components/chat/LiveMode.vue | 5 +- .../src/components/chat/StandaloneChat.vue | 5 +- .../src/components/shared/ExtensionCard.vue | 4 +- .../i18n/locales/en-US/features/settings.json | 5 ++ .../src/i18n/locales/zh-CN/features/chat.json | 4 +- .../i18n/locales/zh-CN/features/settings.json | 5 ++ .../full/vertical-header/VerticalHeader.vue | 46 +++++++++++++------ dashboard/src/stores/customizer.ts | 35 +++++++++++--- dashboard/src/views/ConversationPage.vue | 2 +- dashboard/src/views/Settings.vue | 13 ++++++ .../views/authentication/auth/LoginPage.vue | 13 ++---- 14 files changed, 118 insertions(+), 56 deletions(-) diff --git a/dashboard/src/App.vue b/dashboard/src/App.vue index af23e75ff..4822d8489 100644 --- a/dashboard/src/App.vue +++ b/dashboard/src/App.vue @@ -15,20 +15,31 @@