30 lines
825 B
JavaScript
30 lines
825 B
JavaScript
export const state = {
|
|
units: [],
|
|
unitMap: new Map(),
|
|
selectedUnitId: null,
|
|
sources: [],
|
|
events: [],
|
|
equipments: [],
|
|
equipmentMap: new Map(),
|
|
selectedEquipmentId: null,
|
|
selectedSourceId: null,
|
|
selectedNodeIds: new Set(),
|
|
selectedPointIds: new Set(),
|
|
pointsPage: 1,
|
|
pointsPageSize: 100,
|
|
pointsTotal: 0,
|
|
pointEls: new Map(),
|
|
chartPointId: null,
|
|
chartPointName: "",
|
|
chartData: [],
|
|
pointSocket: null,
|
|
docDrawerSource: null, // null | "api" | "readme"
|
|
runtimes: new Map(), // unit_id -> UnitRuntime
|
|
activeView: "ops", // "ops" | "config"
|
|
opsPointEls: new Map(), // point_id -> { pillEl, syncBtns? }
|
|
opsSignalCache: new Map(), // point_id -> { quality, value_text }
|
|
opsUnitSyncFns: new Map(), // unit_id -> Set<syncBtns fn>
|
|
logSource: null,
|
|
selectedOpsUnitId: null,
|
|
};
|