From 35596cda9d199510002833435513857b1f1b8132 Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 26 Oct 2026 12:46:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20UI=20P0=20PageHeader=20+=20?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E4=B8=89=E5=8D=A1=20+=20=E4=B8=93=E7=BA=BF?= =?UTF-8?q?=E6=8A=BD=E5=B1=89=E5=AF=86=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 按设计纸落地全站页头规范、飞书 OIDC 状态/凭据/地址同步三卡,以及专线列表筛选独立行、行点击 480 抽屉与启停+更多操作列。 --- frontend/src/components/PageHeader.vue | 58 +++++ frontend/src/locales/en-US.json | 18 +- frontend/src/locales/zh-CN.json | 18 +- frontend/src/views/Identity.vue | 24 +- frontend/src/views/Tunnels.vue | 63 +++--- .../settings/components/IdentitySettings.vue | 207 ++++++++++-------- .../tunnels/components/TunnelDetailDrawer.vue | 3 +- 7 files changed, 263 insertions(+), 128 deletions(-) create mode 100644 frontend/src/components/PageHeader.vue diff --git a/frontend/src/components/PageHeader.vue b/frontend/src/components/PageHeader.vue new file mode 100644 index 0000000..3735208 --- /dev/null +++ b/frontend/src/components/PageHeader.vue @@ -0,0 +1,58 @@ + + + + + diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json index fc510b3..b84b12c 100644 --- a/frontend/src/locales/en-US.json +++ b/frontend/src/locales/en-US.json @@ -230,7 +230,9 @@ "viewTasks": "View Tasks", "noTasks": "No task history", "trafficTrend": "Traffic Trend", - "noTrafficData": "No traffic data yet (waiting for samples…)" + "noTrafficData": "No traffic data yet (waiting for samples…)", + "pageDescription": "Manage VPN tunnels and runtime status", + "title": "Tunnels" }, "oidcGuide": { "title": "Feishu / OIDC browser authentication", @@ -648,7 +650,19 @@ "loadFailed": "Could not load identity settings", "saved": "Identity settings saved", "saveFailed": "Could not save identity settings", - "pageDescription": "Configure Feishu or OIDC identity (app credentials, tenant, callbacks, and directory sync). Per-tunnel admission stays on the tunnel editor." + "pageDescription": "Configure Feishu app credentials, OIDC issuer, and directory sync.", + "credentialsTitle": "Credentials", + "addressSyncTitle": "Addresses & sync", + "tagEnabled": "Enabled", + "tagDisabled": "Disabled", + "tagTlsOk": "Entry ready", + "tagTlsPending": "Entry pending", + "tagGatewayOk": "Gateway synced", + "tagGatewayPending": "Gateway pending", + "tagDirSynced": "Directory synced", + "tagDirIdle": "Directory idle", + "retryGateway": "Retry gateway sync", + "goPublicEntry": "Open public entry" }, "settings": { "pageDescription": "Manage account security, the public gateway, and server setup.", diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json index 1b39ae5..5b2cb52 100644 --- a/frontend/src/locales/zh-CN.json +++ b/frontend/src/locales/zh-CN.json @@ -230,7 +230,9 @@ "viewTasks": "查看任务", "noTasks": "暂无任务记录", "trafficTrend": "流量趋势", - "noTrafficData": "暂无流量数据(等待采样中…)" + "noTrafficData": "暂无流量数据(等待采样中…)", + "pageDescription": "管理 VPN 专线与运行状态", + "title": "专线" }, "oidcGuide": { "title": "飞书 / OIDC 浏览器认证配置", @@ -648,7 +650,19 @@ "loadFailed": "读取身份配置失败", "saved": "身份配置已保存", "saveFailed": "保存身份配置失败", - "pageDescription": "配置飞书或 OIDC 身份源(App 凭据、租户、回调与通讯录同步)。专线准入名单仍在对应专线编辑页配置。" + "pageDescription": "配置飞书应用凭据,管理 OIDC 发行者与通讯录同步。", + "credentialsTitle": "应用凭据", + "addressSyncTitle": "地址与同步", + "tagEnabled": "已启用", + "tagDisabled": "未启用", + "tagTlsOk": "入口就绪", + "tagTlsPending": "入口待配", + "tagGatewayOk": "网关已同步", + "tagGatewayPending": "网关待同步", + "tagDirSynced": "通讯录已同步", + "tagDirIdle": "通讯录未同步", + "retryGateway": "重试同步网关", + "goPublicEntry": "去公网入口" }, "settings": { "pageDescription": "管理个人安全、公网认证入口与服务器环境。", diff --git a/frontend/src/views/Identity.vue b/frontend/src/views/Identity.vue index d6f6984..38678e1 100644 --- a/frontend/src/views/Identity.vue +++ b/frontend/src/views/Identity.vue @@ -1,18 +1,28 @@ diff --git a/frontend/src/views/Tunnels.vue b/frontend/src/views/Tunnels.vue index 74948ca..6693592 100644 --- a/frontend/src/views/Tunnels.vue +++ b/frontend/src/views/Tunnels.vue @@ -1,27 +1,27 @@