plc_control/web/js/state.js

20 lines
407 B
JavaScript

export const state = {
sources: [],
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: [],
logSource: null,
pointSocket: null,
apiDocLoaded: false,
};