mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 13:00:44 +08:00
Persist board/panel layouts server-side, open each board outside the network shell so workbench reloads do not refresh walls, and fix mapped-baseline chart overlay plus fullscreen fit. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
571 B
TypeScript
17 lines
571 B
TypeScript
import { openNewModuleWindow } from "./moduleWindows";
|
|
|
|
export const PORT_TRAFFIC_WALL_MODULE_ID = "port-traffic-wall";
|
|
|
|
export function portTrafficBoardPath(boardId: string): string {
|
|
return `/port-traffic/wall/${encodeURIComponent(boardId)}`;
|
|
}
|
|
|
|
/** Open a dedicated browser tab for one board (outside Network management). */
|
|
export function openPortTrafficBoardWindow(boardId: string): void {
|
|
const id = String(boardId || "").trim();
|
|
if (!id) return;
|
|
openNewModuleWindow({
|
|
moduleId: PORT_TRAFFIC_WALL_MODULE_ID,
|
|
path: portTrafficBoardPath(id),
|
|
});
|
|
}
|