mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 04:40:45 +08:00
Add named multi-panel traffic boards with dedicated wall tabs.
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>
This commit is contained in:
parent
214bc56774
commit
00d3e95e2d
22 changed files with 1923 additions and 345 deletions
|
|
@ -587,6 +587,56 @@ export type PortTrafficEvent = {
|
|||
created_at?: string | null;
|
||||
};
|
||||
|
||||
export type PortTrafficBoardPanel = {
|
||||
id: string;
|
||||
board_id: string;
|
||||
title: string;
|
||||
target_id: string;
|
||||
range_hours: number;
|
||||
baseline: "off" | "day" | "week" | "shift" | "custom" | string;
|
||||
offset_hours: number;
|
||||
baseline_target_id: string;
|
||||
y_mode: "auto" | "current" | "util" | string;
|
||||
ord: number;
|
||||
col_span: number;
|
||||
row_span: number;
|
||||
stale: boolean;
|
||||
target: PortTrafficTarget | null;
|
||||
baseline_target: PortTrafficTarget | null;
|
||||
created_at?: string | null;
|
||||
updated_at?: string | null;
|
||||
};
|
||||
|
||||
export type PortTrafficBoardPanelIn = {
|
||||
id?: string;
|
||||
title?: string;
|
||||
target_id: string;
|
||||
range_hours?: number;
|
||||
baseline?: string;
|
||||
offset_hours?: number;
|
||||
baseline_target_id?: string;
|
||||
y_mode?: string;
|
||||
ord?: number;
|
||||
col_span?: number;
|
||||
row_span?: number;
|
||||
};
|
||||
|
||||
export type PortTrafficBoardSummary = {
|
||||
id: string;
|
||||
name: string;
|
||||
remark: string;
|
||||
cols: number;
|
||||
panel_count: number;
|
||||
created_by: string;
|
||||
updated_by: string;
|
||||
created_at?: string | null;
|
||||
updated_at?: string | null;
|
||||
};
|
||||
|
||||
export type PortTrafficBoard = PortTrafficBoardSummary & {
|
||||
panels: PortTrafficBoardPanel[];
|
||||
};
|
||||
|
||||
export type PortTrafficSeries = {
|
||||
id: string;
|
||||
device_id: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue