mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-23 15:01:00 -04:00
[new status page] wip
This commit is contained in:
parent
ae14ad5a84
commit
50d6e888c2
13 changed files with 220 additions and 40 deletions
|
@ -132,6 +132,7 @@ const { sendNotificationList, sendHeartbeatList, sendImportantHeartbeatList, sen
|
|||
const { statusPageSocketHandler } = require("./socket-handlers/status-page-socket-handler");
|
||||
const databaseSocketHandler = require("./socket-handlers/database-socket-handler");
|
||||
const TwoFA = require("./2fa");
|
||||
const StatusPage = require("./model/status_page");
|
||||
|
||||
app.use(express.json());
|
||||
|
||||
|
@ -1414,6 +1415,8 @@ async function afterLogin(socket, user) {
|
|||
for (let monitorID in monitorList) {
|
||||
await Monitor.sendStats(io, monitorID, user.id);
|
||||
}
|
||||
|
||||
await StatusPage.sendStatusPageList(io, socket);
|
||||
}
|
||||
|
||||
async function getMonitorJSONList(userID) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue