From d927f01da02de511c6ec8f67590ce640275b586f Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Sat, 28 Mar 2026 14:12:36 +0800 Subject: [PATCH] fix(dashboard): Vuetify 4 compatibility fixes - Replace deprecated v-chip-text with span (PersonaForm) - Replace deprecated v-tab-item with v-window-item (ExtensionPage, InstalledPluginsTab, MarketPluginsTab) - Replace deprecated v-row dense with density="compact" (SessionManagementPage, InstalledPluginsTab) - Add missing hasUnsavedChanges field to ConfigPage data() - Add missing i18n key editPersona (en-US, zh-CN) Fixes multiple Vue warnings about failed component resolution and deprecated Vuetify props. --- .../src/components/shared/PersonaForm.vue | 4 ++-- .../src/i18n/locales/en-US/core/shared.json | 1 + .../src/i18n/locales/zh-CN/core/shared.json | 1 + dashboard/src/views/ConfigPage.vue | 1 + dashboard/src/views/ExtensionPage.vue | 12 +++++------ dashboard/src/views/SessionManagementPage.vue | 20 +++++++++---------- .../views/extension/InstalledPluginsTab.vue | 6 +++--- .../src/views/extension/MarketPluginsTab.vue | 4 ++-- 8 files changed, 26 insertions(+), 23 deletions(-) diff --git a/dashboard/src/components/shared/PersonaForm.vue b/dashboard/src/components/shared/PersonaForm.vue index dba704355..2ecf3eda6 100644 --- a/dashboard/src/components/shared/PersonaForm.vue +++ b/dashboard/src/components/shared/PersonaForm.vue @@ -138,9 +138,9 @@ > mdi-server {{ server.name }} - + ({{ server.tools.length }}) - + diff --git a/dashboard/src/i18n/locales/en-US/core/shared.json b/dashboard/src/i18n/locales/en-US/core/shared.json index beb486b30..059ec04ec 100644 --- a/dashboard/src/i18n/locales/en-US/core/shared.json +++ b/dashboard/src/i18n/locales/en-US/core/shared.json @@ -60,6 +60,7 @@ "confirmSelection": "Confirm Selection", "selectPersonaPool": "Select Persona Pool...", "rootFolder": "All Personas", + "editPersona": "Edit Persona", "emptyFolder": "This folder is empty" }, "personaQuickPreview": { diff --git a/dashboard/src/i18n/locales/zh-CN/core/shared.json b/dashboard/src/i18n/locales/zh-CN/core/shared.json index fd064e2e4..7a8232bb6 100644 --- a/dashboard/src/i18n/locales/zh-CN/core/shared.json +++ b/dashboard/src/i18n/locales/zh-CN/core/shared.json @@ -60,6 +60,7 @@ "confirmSelection": "确认选择", "selectPersonaPool": "选择人格池...", "rootFolder": "全部人格", + "editPersona": "编辑人格", "emptyFolder": "此文件夹为空" }, "personaQuickPreview": { diff --git a/dashboard/src/views/ConfigPage.vue b/dashboard/src/views/ConfigPage.vue index e9b71c231..3a5bf7561 100644 --- a/dashboard/src/views/ConfigPage.vue +++ b/dashboard/src/views/ConfigPage.vue @@ -441,6 +441,7 @@ export default { // 未保存的更改状态 // 存储原始配置 originalConfigData: null, + hasUnsavedChanges: false, }; }, diff --git a/dashboard/src/views/ExtensionPage.vue b/dashboard/src/views/ExtensionPage.vue index d6697327a..17eb7369a 100644 --- a/dashboard/src/views/ExtensionPage.vue +++ b/dashboard/src/views/ExtensionPage.vue @@ -162,7 +162,7 @@ const { - +

{{ tm("tabs.handlersOperation") }}

@@ -177,10 +177,10 @@ const { - + - +

@@ -197,10 +197,10 @@ const { - + - +

{{ tm("tabs.skills") }}

@@ -215,7 +215,7 @@ const { - + diff --git a/dashboard/src/views/SessionManagementPage.vue b/dashboard/src/views/SessionManagementPage.vue index 19823f7ce..b488e34e4 100644 --- a/dashboard/src/views/SessionManagementPage.vue +++ b/dashboard/src/views/SessionManagementPage.vue @@ -14,7 +14,7 @@ {{ totalItems }} {{ tm("customRules.rulesCount") }} - + - + - + - + - +
@@ -650,7 +650,7 @@

- +
- +
- +
- + - + { -
+