|
|
|
@ -9,6 +9,7 @@ interface IDEContainerState {
|
|
|
|
projectComponentData: any;
|
|
|
|
projectComponentData: any;
|
|
|
|
currentAppData: any;
|
|
|
|
currentAppData: any;
|
|
|
|
eventList: any;
|
|
|
|
eventList: any;
|
|
|
|
|
|
|
|
eventTopicList: any;
|
|
|
|
logBarStatus?: boolean;
|
|
|
|
logBarStatus?: boolean;
|
|
|
|
socketId: string;
|
|
|
|
socketId: string;
|
|
|
|
nodeStatusMap: Record<string, string>; // 节点状态映射
|
|
|
|
nodeStatusMap: Record<string, string>; // 节点状态映射
|
|
|
|
@ -24,6 +25,7 @@ const initialState: IDEContainerState = {
|
|
|
|
projectComponentData: {}, // 工程下的组件列表
|
|
|
|
projectComponentData: {}, // 工程下的组件列表
|
|
|
|
currentAppData: {}, // 当前选中的应用数据
|
|
|
|
currentAppData: {}, // 当前选中的应用数据
|
|
|
|
eventList: [], // 工程下的事件列表
|
|
|
|
eventList: [], // 工程下的事件列表
|
|
|
|
|
|
|
|
eventTopicList: [], // 应用编排使用的事件名和topic列表
|
|
|
|
logBarStatus: false,
|
|
|
|
logBarStatus: false,
|
|
|
|
socketId: '', // 工程的socketId
|
|
|
|
socketId: '', // 工程的socketId
|
|
|
|
nodeStatusMap: {}, // 初始化节点状态映射
|
|
|
|
nodeStatusMap: {}, // 初始化节点状态映射
|
|
|
|
@ -56,6 +58,9 @@ const ideContainerSlice = createSlice({
|
|
|
|
updateEventList(state, action) {
|
|
|
|
updateEventList(state, action) {
|
|
|
|
state.eventList = action.payload;
|
|
|
|
state.eventList = action.payload;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
updateEventTopicList(state, action) {
|
|
|
|
|
|
|
|
state.eventTopicList = action.payload;
|
|
|
|
|
|
|
|
},
|
|
|
|
updateLogBarStatus(state, action) {
|
|
|
|
updateLogBarStatus(state, action) {
|
|
|
|
state.logBarStatus = action.payload;
|
|
|
|
state.logBarStatus = action.payload;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -87,6 +92,7 @@ export const {
|
|
|
|
updateProjectComponentData,
|
|
|
|
updateProjectComponentData,
|
|
|
|
updateCurrentAppData,
|
|
|
|
updateCurrentAppData,
|
|
|
|
updateEventList,
|
|
|
|
updateEventList,
|
|
|
|
|
|
|
|
updateEventTopicList,
|
|
|
|
updateLogBarStatus,
|
|
|
|
updateLogBarStatus,
|
|
|
|
updateSocketId,
|
|
|
|
updateSocketId,
|
|
|
|
updateNodeStatus,
|
|
|
|
updateNodeStatus,
|
|
|
|
|