From b8ffecf5008c46bcd174f48373b4790eb0bfe746 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Fri, 27 Feb 2026 23:41:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=89=8D=E7=AB=AF/=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/package.json | 2 +- .../src/components/chat/StandaloneChat.vue | 480 +++++----- .../src/i18n/locales/en-US/core/header.json | 3 +- .../i18n/locales/en-US/features/settings.json | 5 + .../src/i18n/locales/zh-CN/core/header.json | 3 +- .../i18n/locales/zh-CN/features/settings.json | 5 + .../full/vertical-header/VerticalHeader.vue | 872 ++++++++++++------ dashboard/src/views/Settings.vue | 26 +- 8 files changed, 884 insertions(+), 512 deletions(-) diff --git a/dashboard/package.json b/dashboard/package.json index 7b4a7f071..63fdcb181 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -64,7 +64,7 @@ "sass": "1.66.1", "sass-loader": "13.3.2", "typescript": "5.1.6", - "vite": "4.4.9", + "vite": "^7.3.1", "vue-cli-plugin-vuetify": "2.5.8", "vue-tsc": "1.8.8", "vuetify-loader": "^2.0.0-alpha.9" diff --git a/dashboard/src/components/chat/StandaloneChat.vue b/dashboard/src/components/chat/StandaloneChat.vue index 69fac13f9..ba0cd4eeb 100644 --- a/dashboard/src/components/chat/StandaloneChat.vue +++ b/dashboard/src/components/chat/StandaloneChat.vue @@ -1,165 +1,177 @@ diff --git a/dashboard/src/i18n/locales/en-US/core/header.json b/dashboard/src/i18n/locales/en-US/core/header.json index 4da98b8dd..a4593d2a2 100644 --- a/dashboard/src/i18n/locales/en-US/core/header.json +++ b/dashboard/src/i18n/locales/en-US/core/header.json @@ -10,7 +10,8 @@ "theme": { "light": "Light Mode", "dark": "Dark Mode" - } + }, + "logout": "Log Out" }, "updateDialog": { "title": "Update AstrBot", diff --git a/dashboard/src/i18n/locales/en-US/features/settings.json b/dashboard/src/i18n/locales/en-US/features/settings.json index 6216a2675..27a6c2b76 100644 --- a/dashboard/src/i18n/locales/en-US/features/settings.json +++ b/dashboard/src/i18n/locales/en-US/features/settings.json @@ -65,6 +65,11 @@ "subtitle": "Restart AstrBot", "button": "Restart" }, + "logout": { + "title": "Log Out", + "subtitle": "Log out of the current account", + "button": "Log Out" + }, "migration": { "title": "Data Migration to v4.0.0", "subtitle": "If you encounter data compatibility issues, you can manually start the database migration assistant", diff --git a/dashboard/src/i18n/locales/zh-CN/core/header.json b/dashboard/src/i18n/locales/zh-CN/core/header.json index 3bb985033..8823e0f7d 100644 --- a/dashboard/src/i18n/locales/zh-CN/core/header.json +++ b/dashboard/src/i18n/locales/zh-CN/core/header.json @@ -10,7 +10,8 @@ "theme": { "light": "浅色模式", "dark": "深色模式" - } + }, + "logout": "退出登录" }, "updateDialog": { "title": "更新 AstrBot", diff --git a/dashboard/src/i18n/locales/zh-CN/features/settings.json b/dashboard/src/i18n/locales/zh-CN/features/settings.json index c9745569f..e80eae4e9 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/settings.json +++ b/dashboard/src/i18n/locales/zh-CN/features/settings.json @@ -65,6 +65,11 @@ "subtitle": "重启 AstrBot", "button": "重启" }, + "logout": { + "title": "退出登录", + "subtitle": "退出当前账号,回到登录界面", + "button": "退出登录" + }, "migration": { "title": "数据迁移到 v4.0.0 格式", "subtitle": "如果您遇到数据兼容性问题,可以手动启动数据库迁移助手", diff --git a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue index 47905d4ff..9ec2d8945 100644 --- a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +++ b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue @@ -1,72 +1,73 @@