feat(monitor): U13 主机监控大屏挂载 — HostMonitorDashboard 死代码复活为 /host-dashboard 路由 + 监控菜单
- App.tsx: 新增 HostMonitorDashboard lazy import + Route path=host-dashboard - Sidebar.tsx: 监控告警菜单新增「主机大屏」子项 (menu.hostDashboard, agent:monitor 权限) - Breadcrumb.tsx: 新增 host-dashboard 路由段映射 - i18n: zh-CN/en-US 新增 menu.hostDashboard + breadcrumb.hostDashboard (主机大屏/Host Dashboard), 7556 keys 对齐 - 复用已有 monitor:hostDashboard.* 23 翻译键 (AgentMonitor/MiddlewareMonitor/data-table 共享) - ROADMAP.md: 新增 U13 模块记录 + 状态追踪表 - PROJECT_EVALUATION.md: 清除 3.3 死代码技术债 + U12 过时数字 + 监控模块补充主机大屏 - TDD_PLAN.md: 新增 P3-U13 验证用例和通过标准 验证: tsc -b=0, npm build✓(17.50s), ESLint errors=0, 17/17 集成回归通过, Docker healthy
This commit is contained in:
1 parent
cd30af5bd6
commit
e19c27707f
8 files changed
+101
-3
No files matched your search
@@ -80,6 +80,7 @@
|
||||
| 监控大屏(自定义仪表盘) | ✅ custom_dashboard.go CRUD | ✅ GrafanaDashboard 自定义 Tab + GrafanaPanelContent PromQL 渲染 | ✅ F4 done |
|
||||
| 链路追踪 | ✅ trace_proxy.go Jaeger/Tempo 代理 | ✅ TraceManager (587L) — traceApi 对接真实后端 + demo 数据兜底 | ✅ F5 done |
|
||||
| **中间件监控** | ✅ middleware_monitor.go 后端直连采集 Redis/MySQL | ✅ MiddlewareMonitor 完整管理页面 (CRUD + 测试 + 概览) | ✅ M15 done |
|
||||
| **主机监控大屏** | ✅ serverApi 复用 | ✅ HostMonitorDashboard (Grafana 风格大屏 + CPU/内存 Top5 排行 + 统计卡片) | ✅ U13 done |
|
||||
|
||||
### 2.5 自动化运维 ✅ 完善
|
||||
|
||||
@@ -145,9 +146,9 @@
|
||||
|
||||
| 问题 | 数量 |
|
||||
|------|------|
|
||||
| 前端 `set-state-in-effect`(潜在无限循环) | 7 处 |
|
||||
| 前端 `react-hooks/purity`(render 调 Date.now) | 6 处 |
|
||||
| 前端死代码(HostMonitorDashboard lazy 未挂载) | 1 处 |
|
||||
| ~~前端死代码(HostMonitorDashboard lazy 未挂载)~~ → **U13 done: 已挂载为 `/host-dashboard` 路由 + 监控菜单「主机大屏」** | ~~1 处~~ ✅ done |
|
||||
| ~~前端 `set-state-in-effect`(潜在无限循环)~~ → **U12 done: 0 处** | ~~7 处~~ ✅ done |
|
||||
| ~~前端 `react-hooks/purity`(render 调 Date.now)~~ → **U12 done: 0 处** | ~~6 处~~ ✅ done |
|
||||
| 后端 `exec.Command` + `bash -c`(命令注入面) | 18 处(需审计用户输入路径) |
|
||||
|
||||
### 3.4 Mock API / 未对接后端
|
||||
|
||||
Reference in new issue
Block a user