refactor: 重构项目结构
- 优化 `车站-设备-告警` 轮询机制 - 改进设备卡片的布局 - 支持修改设备 - 告警轮询中获取完整告警数据 - 车站告警详情支持导出完整的 `今日告警列表` - 支持将状态持久化到 `IndexedDB` - 新增轮询控制 (调试模式) - 新增离线开发模式 (调试模式) - 新增 `IndexedDB` 数据控制 (调试模式)
This commit is contained in:
5
src/constants/index.ts
Normal file
5
src/constants/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export * from './java';
|
||||
export * from './mutation';
|
||||
export * from './query';
|
||||
export * from './stomp';
|
||||
export * from './store';
|
||||
2
src/constants/java.ts
Normal file
2
src/constants/java.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export const JAVA_INTEGER_MAX_VALUE = 2147483647;
|
||||
export const JAVA_UNSIGNED_INTEGER_MAX_VALUE = 4294967295;
|
||||
3
src/constants/mutation.ts
Normal file
3
src/constants/mutation.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const LINE_STATIONS_MUTATION_KEY = 'LINE_STATIONS_MUTATION_KEY';
|
||||
export const STATION_ALARMS_MUTATION_KEY = 'STATION_ALARMS_MUTATION_KEY';
|
||||
export const STATION_DEVICES_MUTATION_KEY = 'STATION_DEVICES_MUTATION_KEY';
|
||||
4
src/constants/query.ts
Normal file
4
src/constants/query.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const LINE_ALARMS_QUERY_KEY = 'line-alarms';
|
||||
export const LINE_DEVICES_QUERY_KEY = 'line-devices';
|
||||
export const LINE_STATIONS_QUERY_KEY = 'line-stations';
|
||||
export const VERSION_CHECK_QUERY_KEY = 'version-check';
|
||||
3
src/constants/stomp.ts
Normal file
3
src/constants/stomp.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const ALARM_TOPIC = '/topic/deviceAlarm';
|
||||
|
||||
export const SYNC_CAMERA_STATUS_TOPIC = '/topic/syncCameraStatus';
|
||||
6
src/constants/store.ts
Normal file
6
src/constants/store.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const NDM_ALARM_STORE_ID = 'ndm-alarm-store';
|
||||
export const NDM_DEVICE_STORE_ID = 'ndm-device-store';
|
||||
export const NDM_POLLIING_STORE_ID = 'ndm-polling-store';
|
||||
export const NDM_SETTING_STORE_ID = 'ndm-setting-store';
|
||||
export const NDM_STATION_STORE_ID = 'ndm-station-store';
|
||||
export const NDM_USER_STORE_ID = 'ndm-user-store';
|
||||
Reference in New Issue
Block a user