mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 20:23:18 +08:00
Add ops task overview, chart ahead window, and WebCRT lifecycle status.
Unify live runners in /audit/tasks (including UME sync and connect tests), extend port-traffic compare past now via ahead_hours, and distinguish WebCRT connecting/ready/detached. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
3f0787da11
commit
3908b78dbb
28 changed files with 1083 additions and 54 deletions
10
web/src/config/auditNav.ts
Normal file
10
web/src/config/auditNav.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export type AuditNavItem = {
|
||||
id: string;
|
||||
path: string;
|
||||
labelKey: string;
|
||||
};
|
||||
|
||||
export const AUDIT_NAV: readonly AuditNavItem[] = [
|
||||
{ id: "tasks", path: "/audit/tasks", labelKey: "audit.nav.tasks" },
|
||||
{ id: "logs", path: "/audit/logs", labelKey: "audit.nav.logs" },
|
||||
] as const;
|
||||
|
|
@ -118,6 +118,8 @@ export function moduleIdFromPath(pathname: string): string | null {
|
|||
}
|
||||
|
||||
export function getPageTitleKey(pathname: string): string {
|
||||
if (pathname.startsWith("/audit/tasks")) return "audit.tasks.title";
|
||||
if (pathname.startsWith("/audit/logs") || pathname === "/audit") return "audit.logsTitle";
|
||||
const moduleId = moduleIdFromPath(pathname);
|
||||
if (moduleId) {
|
||||
const mod = getModuleById(moduleId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue