chore(server): remove comments from status-page router

This commit is contained in:
Sjouke de Vries 2023-01-09 11:16:47 +01:00
parent 3f30feaefb
commit 94b69935fe
No known key found for this signature in database
GPG key ID: A88A57C9C615BACF
2 changed files with 9340 additions and 44 deletions

View file

@ -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;

9340
yarn.lock Normal file

File diff suppressed because it is too large Load diff