diff --git a/src/components/common/Settings/DataStorage/StorageManageSection.vue b/src/components/common/Settings/DataStorage/StorageManageSection.vue index 1a5ebc63..e19386a4 100644 --- a/src/components/common/Settings/DataStorage/StorageManageSection.vue +++ b/src/components/common/Settings/DataStorage/StorageManageSection.vue @@ -339,6 +339,67 @@ defineExpose({ + +
+
+
+ +
+
+

+ {{ t('settings.storage.dataLocation.cleanupTitle') }} +

+

+ {{ t('settings.storage.dataLocation.cleanupDescription') }} +

+
+
+ +
+
+
+

+ {{ cleanup.sourceDir }} +

+

+ {{ cleanup.exists ? formatSize(cleanup.size) : t('settings.storage.notExist') }} +

+
+
+ + {{ t('settings.storage.dataLocation.open') }} + + + {{ t('settings.storage.dataLocation.cleanupDeleteAction') }} + +
+
+
+
+
@@ -346,81 +407,64 @@ defineExpose({
-
-
-
- -
+
+
+
+
- +
-
-
-

{{ t(dir.name) }}

- - {{ - t( - dir.scope === 'user-data' - ? 'settings.storage.scope.userData' - : 'settings.storage.scope.systemData' - ) - }} - - +
+ + {{ t(dir.name) }} + + + {{ t(dir.description) }} + {{ t('settings.storage.notExist') }} -
-

{{ t(dir.description) }}

+
- -
- -
- {{ dir.fileCount }} {{ t('settings.storage.files') }} +
+
+ {{ dir.fileCount }} {{ t('settings.storage.files') }} + · {{ formatSize(dir.size) }}
- -
+
+ - {{ t('settings.storage.clear') }} - - - {{ t('settings.storage.open') }} - + />
@@ -509,62 +553,6 @@ defineExpose({
-
-
- -
-

- {{ t('settings.storage.dataLocation.cleanupTitle') }} -

-

- {{ t('settings.storage.dataLocation.cleanupDescription') }} -

-
-
- -
-
-
-

- {{ cleanup.sourceDir }} -

-

- {{ cleanup.exists ? formatSize(cleanup.size) : t('settings.storage.notExist') }} -

-
-
- - {{ t('settings.storage.dataLocation.open') }} - - - {{ t('settings.storage.dataLocation.cleanupDeleteAction') }} - -
-
-
-
-

{{ IS_ELECTRON diff --git a/src/i18n/locales/en-US/settings.json b/src/i18n/locales/en-US/settings.json index e0aa4c37..46d01114 100644 --- a/src/i18n/locales/en-US/settings.json +++ b/src/i18n/locales/en-US/settings.json @@ -206,10 +206,6 @@ "cleanupDeleteFailed": "Failed to delete old data" }, "openRootDir": "Open Root", - "scope": { - "userData": "Chat data", - "systemData": "System data" - }, "totalUsage": "Total: ", "loading": "Loading...", "files": "files", diff --git a/src/i18n/locales/ja-JP/settings.json b/src/i18n/locales/ja-JP/settings.json index e4938ccf..1231fffb 100644 --- a/src/i18n/locales/ja-JP/settings.json +++ b/src/i18n/locales/ja-JP/settings.json @@ -206,10 +206,6 @@ "cleanupDeleteFailed": "旧データを削除できませんでした" }, "openRootDir": "ルートを開く", - "scope": { - "userData": "チャットデータ", - "systemData": "システムデータ" - }, "totalUsage": "合計使用量:", "loading": "読み込み中...", "files": "ファイル", diff --git a/src/i18n/locales/zh-CN/settings.json b/src/i18n/locales/zh-CN/settings.json index 833e42cc..38db7293 100644 --- a/src/i18n/locales/zh-CN/settings.json +++ b/src/i18n/locales/zh-CN/settings.json @@ -206,10 +206,6 @@ "cleanupDeleteFailed": "旧数据删除失败" }, "openRootDir": "打开根目录", - "scope": { - "userData": "聊天数据目录", - "systemData": "系统数据目录" - }, "totalUsage": "总占用:", "loading": "加载中...", "files": "文件", diff --git a/src/i18n/locales/zh-TW/settings.json b/src/i18n/locales/zh-TW/settings.json index 68449f2d..a5487763 100644 --- a/src/i18n/locales/zh-TW/settings.json +++ b/src/i18n/locales/zh-TW/settings.json @@ -206,10 +206,6 @@ "cleanupDeleteFailed": "舊資料刪除失敗" }, "openRootDir": "開啟根目錄", - "scope": { - "userData": "聊天資料目錄", - "systemData": "系統資料目錄" - }, "totalUsage": "總佔用:", "loading": "載入中...", "files": "檔案",