[new status page] wip

This commit is contained in:
Louis Lam
2022-03-10 21:34:30 +08:00
parent ae14ad5a84
commit 50d6e888c2
13 changed files with 220 additions and 40 deletions

View File

@@ -33,6 +33,7 @@ export default {
uptimeList: { },
tlsInfoList: {},
notificationList: [],
statusPageList: [],
connectionErrorMsg: "Cannot connect to the socket server. Reconnecting...",
};
},
@@ -103,6 +104,11 @@ export default {
this.notificationList = data;
});
socket.on("statusPageList", (data) => {
console.log(data);
this.statusPageList = data;
});
socket.on("heartbeat", (data) => {
if (! (data.monitorID in this.heartbeatList)) {
this.heartbeatList[data.monitorID] = [];