feat(log-center): 日志中心 v4 全量组件 — 统一查询面板/时间选择器/统计图表/聚类/数据源管理

This commit is contained in:
attacker committed 2026-06-27 11:41:50 +08:00
1 parent 880cf050fe
commit bdf3c2daf4
30 files changed
+4276 -136

No files matched your search

@@ -100,10 +100,13 @@ export function Breadcrumb() {
const knownName = ROUTE_NAME_MAP[segment];
let displayName = knownName;
// 日志中心子路由 alerts 与监控告警路由区分 // Logan.Li
// 日志中心子路由区分 // Logan.Li
if (segment === 'alerts' && paths[index - 1] === 'log-center') {
displayName = '日志告警';
}
if (segment === 'datasources' && paths[index - 1] === 'log-center') {
displayName = '日志库';
}
if (!displayName) {
// Dynamic parameter - could be cluster code, namespace, resource name, etc.
+4 -2
View File
@@ -38,6 +38,7 @@ import {
Rocket,
ShieldCheck,
FileSearch,
HardDrive,
LogIn,
ScrollText,
} from 'lucide-react';
@@ -125,8 +126,9 @@ const menuItems: MenuItem[] = [
{
id: 'log-center', name: '日志中心', icon: ScrollText, permission: 'monitor:alert',
children: [
{ id: 'log-loki', name: 'Loki', icon: FileSearch, path: '/log-center/loki', permission: 'monitor:alert' },
{ id: 'log-es', name: 'ES', icon: Database, path: '/log-center/es', permission: 'monitor:alert' },
{ id: 'log-loki', name: 'Loki查询', icon: FileSearch, path: '/log-center/loki', permission: 'monitor:alert' },
{ id: 'log-es', name: 'ES查询', icon: Database, path: '/log-center/es', permission: 'monitor:alert' },
{ id: 'log-datasources', name: '日志库', icon: HardDrive, path: '/log-center/datasources', permission: 'monitor:alert' },
{ id: 'log-alerts', name: '日志告警', icon: AlertTriangle, path: '/log-center/alerts', permission: 'monitor:alert' },
],
},