refactor(webui): move the Software Update card to Settings

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FAxVyRwrY7z5NotTtgnwVs
This commit is contained in:
Estrella Pan
2026-07-05 12:28:29 +02:00
parent 17a3805974
commit a8740cb211
2 changed files with 10 additions and 2 deletions

View File

@@ -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'],
},
];
// --- 搜索 ---

View File

@@ -229,8 +229,6 @@ onDeactivated(() => {
</div>
<div class="log-sidebar">
<update-card />
<ab-container :title="$t('log.about')">
<ul class="about-links">
<li>