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
@@ -63,6 +63,7 @@ const TraceManager = lazy(() => import('@/components/monitor/trace/TraceManager'
|
||||
const HostMonitor = lazy(() => import('@/pages/monitor/HostMonitor').then(m => ({ default: m.HostMonitor })));
|
||||
const GrafanaDashboard = lazy(() => import('@/components/monitor/dashboard/GrafanaDashboard').then(m => ({ default: m.default })));
|
||||
const MonitorCenter = lazy(() => import('@/pages/monitor/MonitorCenter').then(m => ({ default: m.MonitorCenter })));
|
||||
const HostMonitorDashboard = lazy(() => import('@/components/monitor/dashboard/HostMonitorDashboard'));
|
||||
const MetricsExplorer = lazy(() => import('@/pages/monitor/MetricsExplorer').then(m => ({ default: m.MetricsExplorer })));
|
||||
const DatasourcePage = lazy(() => import('@/components/monitor/datasource/DatasourcePage').then(m => ({ default: m.default })));
|
||||
const LogCenter = lazy(() => import('@/components/monitor/log-center/LogCenter'));
|
||||
@@ -186,6 +187,7 @@ function App() {
|
||||
<Route path="alerts" element={<LazyPage><AlertManager /></LazyPage>} />
|
||||
<Route path="alert-center" element={<LazyPage><AlertCenter /></LazyPage>} />
|
||||
<Route path="monitor-center" element={<LazyPage><MonitorCenter /></LazyPage>} />
|
||||
<Route path="host-dashboard" element={<LazyPage><HostMonitorDashboard /></LazyPage>} />
|
||||
<Route path="log-center" element={<Navigate to="/log-center/loki" replace />} />
|
||||
<Route path="log-center/:section" element={<LazyPage><LogCenter /></LazyPage>} />
|
||||
<Route path="logs" element={<Navigate to="/log-center/loki" replace />} />
|
||||
|
||||
@@ -50,6 +50,7 @@ const ROUTE_I18N_MAP: Record<string, string> = {
|
||||
'datasources': 'breadcrumb.datasources',
|
||||
'dashboards': 'breadcrumb.dashboards',
|
||||
'host-monitor': 'breadcrumb.hostMonitor',
|
||||
'host-dashboard': 'breadcrumb.hostDashboard',
|
||||
'alerts': 'breadcrumb.alerts',
|
||||
'approval': 'breadcrumb.approval',
|
||||
'approval-resource': 'breadcrumb.approvalResource',
|
||||
|
||||
@@ -115,6 +115,7 @@ const menuItems: MenuItem[] = [
|
||||
children: [
|
||||
{ id: 'grafana', name: 'Dashboards', labelKey: 'menu.grafana', icon: Monitor, path: '/dashboards', permission: 'monitor:alert' },
|
||||
{ id: 'monitor-center', name: 'Resource Monitor', labelKey: 'menu.resourceMonitor', icon: Activity, path: '/monitor-center', permission: 'agent:monitor' },
|
||||
{ id: 'host-dashboard', name: 'Host Dashboard', labelKey: 'menu.hostDashboard', icon: LayoutDashboard, path: '/host-dashboard', permission: 'agent:monitor' },
|
||||
{ id: 'trace', name: 'Tracing', labelKey: 'menu.trace', icon: GitBranch, path: '/trace', permission: 'monitor:alert' },
|
||||
{ id: 'alert-center', name: 'Alert Center', labelKey: 'menu.alertCenter', icon: Bell, path: '/alert-center', permission: 'monitor:alert' },
|
||||
{ id: 'datasources', name: 'Datasources', labelKey: 'menu.datasources', icon: Database, path: '/datasources', permission: 'monitor:alert' },
|
||||
|
||||
@@ -563,6 +563,7 @@
|
||||
"monitor": "Monitoring",
|
||||
"grafana": "Dashboards",
|
||||
"resourceMonitor": "Resource Monitor",
|
||||
"hostDashboard": "Host Dashboard",
|
||||
"trace": "Tracing",
|
||||
"alertCenter": "Alert Center",
|
||||
"datasources": "Datasources",
|
||||
@@ -7995,6 +7996,7 @@
|
||||
"datasources": "Data Sources",
|
||||
"dashboards": "Dashboards",
|
||||
"hostMonitor": "Host Monitor",
|
||||
"hostDashboard": "Host Dashboard",
|
||||
"alerts": "Alerts",
|
||||
"approval": "Requests",
|
||||
"approvalResource": "Resource Request",
|
||||
|
||||
@@ -563,6 +563,7 @@
|
||||
"monitor": "监控中心",
|
||||
"grafana": "监控大屏",
|
||||
"resourceMonitor": "资源监控",
|
||||
"hostDashboard": "主机大屏",
|
||||
"trace": "链路追踪",
|
||||
"alertCenter": "告警中心",
|
||||
"datasources": "数据源",
|
||||
@@ -7995,6 +7996,7 @@
|
||||
"datasources": "数据源",
|
||||
"dashboards": "监控大屏",
|
||||
"hostMonitor": "主机监控",
|
||||
"hostDashboard": "主机大屏",
|
||||
"alerts": "监控告警",
|
||||
"approval": "资源申请",
|
||||
"approvalResource": "资源申请",
|
||||
|
||||
Reference in new issue
Block a user