From 9b00f5c4fa8dc5508dd9f6a9bebc0d3f384a3ac7 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Sun, 12 Jul 2026 23:42:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=B3=BB=E7=BB=9F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E6=94=B9=E5=88=86=E9=A1=B5=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E5=B9=B6=E4=BF=AE=E5=A4=8D=E5=8C=BA=E5=9D=97=E9=93=BE=E5=AD=98?= =?UTF-8?q?=E8=AF=81=E5=8D=A1=E5=AE=89=E5=85=A8=E4=B8=8E=E6=8E=92=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/locales/en-US.json | 4 +- apps/admin/src/locales/zh-CN.json | 4 +- apps/admin/src/views/Settings.vue | 317 ++++++++++++++---------------- 3 files changed, 154 insertions(+), 171 deletions(-) diff --git a/apps/admin/src/locales/en-US.json b/apps/admin/src/locales/en-US.json index 869eea2..a7c4f78 100644 --- a/apps/admin/src/locales/en-US.json +++ b/apps/admin/src/locales/en-US.json @@ -517,9 +517,10 @@ "logAndDisplay": "Log Settings", "backupPolicy": "Backup Policy", "tabPlatform": "Platform", - "tabLogsBackup": "Logs & Backup", + "tabLogs": "Logs", "tabBlockchain": "Blockchain", "tabStorage": "Storage", + "tabBackup": "Backup", "backupList": "Backup List", "appName": "Platform Name", "appIcon": "System Icon", @@ -568,6 +569,7 @@ "tianheAppId": "App ID", "tianheAppKey": "App Key", "tianheIdentity": "On-chain Identity (Platform Custodial Wallet)", + "tianheIdentityMockHint": "The current attestation driver is mock. Switch to Tianhe chain and save to manage the platform custodial wallet identity here.", "tianheWalletAddress": "Wallet Address", "tianheNotRegistered": "Not registered", "tianheRegister": "Register Identity", diff --git a/apps/admin/src/locales/zh-CN.json b/apps/admin/src/locales/zh-CN.json index 97aa1b1..528b522 100644 --- a/apps/admin/src/locales/zh-CN.json +++ b/apps/admin/src/locales/zh-CN.json @@ -517,9 +517,10 @@ "logAndDisplay": "日志设置", "backupPolicy": "备份策略", "tabPlatform": "平台设置", - "tabLogsBackup": "日志与备份", + "tabLogs": "日志设置", "tabBlockchain": "区块链存证", "tabStorage": "存储配置", + "tabBackup": "备份", "backupList": "备份列表", "appName": "平台名称", "appIcon": "系统图标", @@ -568,6 +569,7 @@ "tianheAppId": "App ID", "tianheAppKey": "App Key", "tianheIdentity": "链上身份(平台托管钱包)", + "tianheIdentityMockHint": "当前存证驱动为模拟存证,切换为天河链并保存后可在此管理平台托管钱包身份。", "tianheWalletAddress": "钱包地址", "tianheNotRegistered": "未注册", "tianheRegister": "注册链上身份", diff --git a/apps/admin/src/views/Settings.vue b/apps/admin/src/views/Settings.vue index 0d7ddaf..4a5ddc0 100644 --- a/apps/admin/src/views/Settings.vue +++ b/apps/admin/src/views/Settings.vue @@ -59,43 +59,47 @@ - + +
+
+
+
{{ t('pages.settings.logAndDisplay') }}
+
+ + + +
+
+ + + +
+
+
+
+
+ +
-
-
-
{{ t('pages.settings.logAndDisplay') }}
-
- - - -
-
- - - -
-
- -
-
{{ t('pages.settings.backupPolicy') }}
-
- - - -
-
- - - -
-
- - - -
-
-
+
+
{{ t('pages.settings.backupPolicy') }}
+
+ + + +
+
+ + + +
+
+ + + +
+
{{ t('pages.settings.backupList') }}
@@ -109,104 +113,116 @@
-
-
-
{{ t('pages.settings.blockchainSettings') }}
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- -
- - - - +
+ + +
+
{{ t('pages.settings.blockchainSettings') }}
+
+ + +
- -
- -
+
+ +
+ {{ t('pages.settings.tianheIdentityMockHint') }} +
+
+ +
@@ -313,7 +329,7 @@ import { DEFAULT_APP_ICON_URL, resolveAppIcon, setFavicon } from '@/utils/appIco const { t } = useI18n(); const route = useRoute(); const router = useRouter(); -const TAB_NAMES = ['platform', 'logsBackup', 'blockchain', 'storage']; +const TAB_NAMES = ['platform', 'logs', 'blockchain', 'storage', 'backup']; const activeTab = ref(TAB_NAMES.includes(String(route.query.tab)) ? String(route.query.tab) : 'platform'); const saving = ref(false); const testingStorage = ref(false); @@ -678,9 +694,6 @@ const identityKeyDisplay = computed(() => { .settings-tabs :deep(.n-tabs-nav) { flex: 0 0 auto; } -.settings-tabs :deep(.n-tabs-nav-scroll-content) { - justify-content: center; -} .settings-tabs :deep(.n-tabs-pane-wrapper) { flex: 1 1 auto; min-height: 0; @@ -693,10 +706,9 @@ const identityKeyDisplay = computed(() => { } .tab-body { min-height: 100%; - display: flex; } .tab-stack { - margin: auto; + margin: 0; display: flex; flex-direction: column; gap: 14px; @@ -705,18 +717,9 @@ const identityKeyDisplay = computed(() => { .stack-narrow { max-width: 560px; } -.stack-mid { - max-width: 640px; -} .stack-wide { max-width: 1080px; } -.stack-row { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 14px; - align-items: start; -} .settings-card { overflow: hidden; border: 1px solid var(--n-border-color); @@ -812,27 +815,8 @@ const identityKeyDisplay = computed(() => { flex: 1 1 auto; min-width: 0; } -.identity-head { - display: flex; - align-items: center; - justify-content: space-between; - flex-wrap: wrap; - gap: 8px; - padding: 9px 14px; - border-bottom: 1px solid var(--n-border-color); - background: rgba(148, 163, 184, 0.06); -} -.identity-title { - font-size: 13px; - font-weight: 700; - color: var(--n-text-color-2, #526070); - white-space: nowrap; -} -.identity-actions { - display: flex; - gap: 6px; - flex-wrap: wrap; - justify-content: flex-end; +.identity-empty { + color: var(--n-text-color-3, #8a94a6); } .identity-value { font-size: 12px; @@ -916,11 +900,6 @@ const identityKeyDisplay = computed(() => { flex: 1 1 auto; min-height: 0; } -@media (max-width: 900px) { - .stack-row { - grid-template-columns: 1fr; - } -} @media (max-width: 640px) { .settings-card :deep(.n-form-item), .icon-row {