From 2e57f86bc54337d36f6d56dfbdd80553f14b17db Mon Sep 17 00:00:00 2001 From: Fridemn <702625325@qq.com> Date: Tue, 7 Jul 2026 16:10:26 +0800 Subject: [PATCH] refactor: enhance settings section with resources and update sidebar styles --- .../i18n/locales/en-US/features/settings.json | 17 ++ .../i18n/locales/ru-RU/features/settings.json | 17 ++ .../i18n/locales/zh-CN/features/settings.json | 17 ++ .../full/vertical-sidebar/VerticalSidebar.vue | 243 +----------------- dashboard/src/views/Settings.vue | 98 ++++++- 5 files changed, 147 insertions(+), 245 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/features/settings.json b/dashboard/src/i18n/locales/en-US/features/settings.json index e7427f1ed..82ab8463b 100644 --- a/dashboard/src/i18n/locales/en-US/features/settings.json +++ b/dashboard/src/i18n/locales/en-US/features/settings.json @@ -20,6 +20,23 @@ }, "openapi": { "title": "OpenAPI" + }, + "resources": { + "title": "About" + } + }, + "resources": { + "changelog": { + "subtitle": "Review changes in the current and previous versions." + }, + "documentation": { + "subtitle": "Open the official AstrBot documentation." + }, + "faq": { + "subtitle": "Read common questions and troubleshooting notes." + }, + "github": { + "subtitle": "Visit the AstrBot GitHub repository." } }, "systemConfig": { diff --git a/dashboard/src/i18n/locales/ru-RU/features/settings.json b/dashboard/src/i18n/locales/ru-RU/features/settings.json index 58cdda79c..468cfff00 100644 --- a/dashboard/src/i18n/locales/ru-RU/features/settings.json +++ b/dashboard/src/i18n/locales/ru-RU/features/settings.json @@ -20,6 +20,23 @@ }, "openapi": { "title": "OpenAPI" + }, + "resources": { + "title": "О программе" + } + }, + "resources": { + "changelog": { + "subtitle": "Просмотреть изменения текущей и предыдущих версий." + }, + "documentation": { + "subtitle": "Открыть официальную документацию AstrBot." + }, + "faq": { + "subtitle": "Посмотреть частые вопросы и советы по устранению проблем." + }, + "github": { + "subtitle": "Открыть репозиторий AstrBot на GitHub." } }, "systemConfig": { diff --git a/dashboard/src/i18n/locales/zh-CN/features/settings.json b/dashboard/src/i18n/locales/zh-CN/features/settings.json index 9784aa978..14120fdb8 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/settings.json +++ b/dashboard/src/i18n/locales/zh-CN/features/settings.json @@ -20,6 +20,23 @@ }, "openapi": { "title": "OpenAPI" + }, + "resources": { + "title": "关于" + } + }, + "resources": { + "changelog": { + "subtitle": "查看当前版本和历史版本的更新内容。" + }, + "documentation": { + "subtitle": "打开 AstrBot 官方文档。" + }, + "faq": { + "subtitle": "查看常见问题与排障说明。" + }, + "github": { + "subtitle": "访问 AstrBot GitHub 仓库。" } }, "systemConfig": { diff --git a/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue b/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue index 1808e2e14..5866c96a8 100644 --- a/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +++ b/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue @@ -1,18 +1,15 @@