feat(web): 告警管理前端页面 + 路由注册 + bugfix
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

新增:
- AlertList 告警列表页: 状态筛选/确认/忽略操作
- AlertRuleList 告警规则页: 创建/编辑/启停管理
- alerts + deviceReadings 前端 API 层
- App.tsx 路由注册 + MainLayout 标题 fallback
- wiki/frontend.md 更新页面清单

修复:
- ArticleEditor: 修复 unused variable 构建错误
- FollowUpTaskList: 修复 filter(Boolean) 类型窄化问题
This commit is contained in:
iven
2026-04-27 07:38:47 +08:00
parent 3424a33b6b
commit 5f83080ab8
9 changed files with 800 additions and 13 deletions

View File

@@ -92,6 +92,8 @@ const routeTitleFallback: Record<string, string> = {
'/health/articles/:id/edit': '编辑文章',
'/health/article-categories': '分类管理',
'/health/article-tags': '标签管理',
'/health/alerts': '告警列表',
'/health/alert-rules': '告警规则',
};
function getTitleFromMenus(path: string, menus: MenuInfo[]): string | undefined {