From a8740cb211e61dec0e68ff85167f0e61acb3b2ab Mon Sep 17 00:00:00 2001 From: Estrella Pan Date: Sun, 5 Jul 2026 12:28:29 +0200 Subject: [PATCH] refactor(webui): move the Software Update card to Settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The update card lived in the Log page sidebar; it belongs with the rest of configuration. Add it as the last section of the Settings section-rail (self-persisting, so groups: [] — outside the global save/dirty tracking) and drop it from the Log sidebar, which keeps its About links. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01FAxVyRwrY7z5NotTtgnwVs --- webui/src/pages/index/config.vue | 10 ++++++++++ webui/src/pages/index/log.vue | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/webui/src/pages/index/config.vue b/webui/src/pages/index/config.vue index 58728c6f..01bdcdf8 100644 --- a/webui/src/pages/index/config.vue +++ b/webui/src/pages/index/config.vue @@ -13,6 +13,7 @@ import ConfigPlayer from '@/components/setting/config-player.vue'; import ConfigLlm from '@/components/setting/config-llm.vue'; import ConfigPasskey from '@/components/setting/config-passkey.vue'; import ConfigSecurity from '@/components/setting/config-security.vue'; +import UpdateCard from '@/components/setting/update-card.vue'; definePage({ name: 'Config', @@ -112,6 +113,15 @@ const sections: ConfigSection[] = [ groups: ['security'], keywords: ['security', 'whitelist', 'ip', 'token', 'mcp'], }, + { + id: 'update', + titleKey: 'update.title', + // 更新卡片自持久化(渠道/自动检查直接写回配置,apply/rollback 独立), + // 不参与全局保存,故 groups 为空 + component: UpdateCard, + groups: [], + keywords: ['update', 'version', 'upgrade', 'release', 'rollback'], + }, ]; // --- 搜索 --- diff --git a/webui/src/pages/index/log.vue b/webui/src/pages/index/log.vue index fefb25c9..fe3de8cf 100644 --- a/webui/src/pages/index/log.vue +++ b/webui/src/pages/index/log.vue @@ -229,8 +229,6 @@ onDeactivated(() => {
- -