mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 03:50:12 +03:00
chore(server): remove comments from status-page router
This commit is contained in:
parent
3f30feaefb
commit
94b69935fe
2 changed files with 9340 additions and 44 deletions
|
@ -243,48 +243,4 @@ router.get("/api/status-page/:slug/badge", cache("5 minutes"), async (request, r
|
|||
}
|
||||
});
|
||||
|
||||
// overallStatus() {
|
||||
|
||||
// if (Object.keys(this.$root.publicLastHeartbeatList).length === 0) {
|
||||
// return -1;
|
||||
// }
|
||||
|
||||
// let status = STATUS_PAGE_ALL_UP;
|
||||
// let hasUp = false;
|
||||
|
||||
// for (let id in this.$root.publicLastHeartbeatList) {
|
||||
// let beat = this.$root.publicLastHeartbeatList[id];
|
||||
|
||||
// if (beat.status === MAINTENANCE) {
|
||||
// return STATUS_PAGE_MAINTENANCE;
|
||||
// } else if (beat.status === UP) {
|
||||
// hasUp = true;
|
||||
// } else {
|
||||
// status = STATUS_PAGE_PARTIAL_DOWN;
|
||||
// }
|
||||
// }
|
||||
|
||||
// if (! hasUp) {
|
||||
// status = STATUS_PAGE_ALL_DOWN;
|
||||
// }
|
||||
|
||||
// return status;
|
||||
// },
|
||||
|
||||
// allUp() {
|
||||
// return this.overallStatus === STATUS_PAGE_ALL_UP;
|
||||
// },
|
||||
|
||||
// partialDown() {
|
||||
// return this.overallStatus === STATUS_PAGE_PARTIAL_DOWN;
|
||||
// },
|
||||
|
||||
// allDown() {
|
||||
// return this.overallStatus === STATUS_PAGE_ALL_DOWN;
|
||||
// },
|
||||
|
||||
// isMaintenance() {
|
||||
// return this.overallStatus === STATUS_PAGE_MAINTENANCE;
|
||||
// },
|
||||
|
||||
module.exports = router;
|
||||
|
|
Loading…
Reference in a new issue