mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 17:50:44 +08:00
feat(web): NetX workbench, UME-only UI, i18n, and header status
- Replace sidebar app with workbench home and module tabs (openOrFocusModule) - Remove legacy pages; add module registry, shared tab channel, WEB.md - Add zh/en i18n, global ToastProvider, restore oclaw bridge pill in header Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
664775927b
commit
282dbe75af
33 changed files with 1631 additions and 1677 deletions
21
web/src/constants/queryKeys.ts
Normal file
21
web/src/constants/queryKeys.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/** React Query keys — keep stable references for invalidation. */
|
||||
|
||||
export const queryKeys = {
|
||||
integrationsStatus: ["integrationsStatus"] as const,
|
||||
umeTokenStatus: ["umeTokenStatus"] as const,
|
||||
umeAlarmSubscription: ["umeAlarmSubscription"] as const,
|
||||
/** Prefix keys for invalidating all pages/variants of a domain. */
|
||||
umeSyncStatusAll: ["umeSyncStatus"] as const,
|
||||
umeNEAll: ["umeNE"] as const,
|
||||
umeCurrentAlarmsAll: ["umeCurrentAlarms"] as const,
|
||||
umeSyncStatus: (page: number, pageSize: number) => ["umeSyncStatus", page, pageSize] as const,
|
||||
umeNE: (keyword: string, page: number, pageSize: number) => ["umeNE", keyword, page, pageSize] as const,
|
||||
umeCurrentAlarms: (
|
||||
severity: string,
|
||||
cleared: string,
|
||||
hostName: string,
|
||||
keyword: string,
|
||||
page: number,
|
||||
pageSize: number,
|
||||
) => ["umeCurrentAlarms", severity, cleared, hostName, keyword, page, pageSize] as const,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue