diff --git a/internal/web/ui/templates/system.html b/internal/web/ui/templates/system.html index 631671a..338d124 100644 --- a/internal/web/ui/templates/system.html +++ b/internal/web/ui/templates/system.html @@ -1,27 +1,7 @@ {{define "system"}}
系统管理 / 系统状态
-
系统状态页负责平台健康、发现机制和接入策略查看。
-
- -
-
-

{{icon "discovery"}}设备发现与注册

-
-
当前设备数{{len .Devices}}
-
发现方式UDP 广播发现
-
注册方式自动发现 / 手动录入
-
-
- -
-

{{icon "shield"}}Agent 访问策略

-
-
访问模型统一令牌
-
更新方式部署脚本托管
-
页面策略默认不暴露敏感值
-
-
+
系统状态页负责平台健康检查和数据备份恢复。
@@ -36,14 +16,6 @@ OpenAPI
- -
-

{{icon "tech"}}当前纳管设备

-
-
在线设备{{len .Devices}}
-
接入端口9100 / 9000
-
-
diff --git a/internal/web/ui_test.go b/internal/web/ui_test.go index e277de5..637cfab 100644 --- a/internal/web/ui_test.go +++ b/internal/web/ui_test.go @@ -3414,7 +3414,7 @@ func TestUI_AuditAndSystemPagesDefineNewScopes(t *testing.T) { rrSystem := httptest.NewRecorder() ui.pageSystem(rrSystem, httptest.NewRequest(http.MethodGet, "/ui/system", nil)) - for _, want := range []string{"系统管理 / 系统状态", "设备发现与注册", "Agent 访问策略", "后台健康", "当前设备数", "UDP 广播发现", "/health", "/openapi.json"} { + for _, want := range []string{"系统管理 / 系统状态", "后台健康", "数据备份 / 恢复", "/health", "/openapi.json"} { if !strings.Contains(rrSystem.Body.String(), want) { t.Fatalf("expected system HTML to contain %q", want) }