mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-24 14:59:39 -05:00
improve a bit ux
This commit is contained in:
parent
11b8c61079
commit
f9cb8293f3
@ -619,13 +619,17 @@ async function afterLogin(socket, user) {
|
|||||||
|
|
||||||
let monitorList = await sendMonitorList(socket)
|
let monitorList = await sendMonitorList(socket)
|
||||||
|
|
||||||
for (let monitorID in monitorList) {
|
|
||||||
sendHeartbeatList(socket, monitorID);
|
|
||||||
sendImportantHeartbeatList(socket, monitorID);
|
|
||||||
Monitor.sendStats(io, monitorID, user.id)
|
|
||||||
}
|
|
||||||
|
|
||||||
sendNotificationList(socket)
|
sendNotificationList(socket)
|
||||||
|
|
||||||
|
// Delay a bit, so that it let the main page to query the data first, since SQLite can process one sql at the same time only.
|
||||||
|
// For example, query the edit data first.
|
||||||
|
setTimeout(() => {
|
||||||
|
for (let monitorID in monitorList) {
|
||||||
|
sendHeartbeatList(socket, monitorID);
|
||||||
|
sendImportantHeartbeatList(socket, monitorID);
|
||||||
|
Monitor.sendStats(io, monitorID, user.id)
|
||||||
|
}
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getMonitorJSONList(userID) {
|
async function getMonitorJSONList(userID) {
|
||||||
|
@ -143,6 +143,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
min-height: calc(100vh - 160px)
|
||||||
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user