[status page] developing

This commit is contained in:
LouisLam
2021-09-13 02:26:45 +08:00
parent f47f7758f9
commit e205adfd7b
5 changed files with 69 additions and 5 deletions

View File

@@ -32,6 +32,7 @@ class Database {
"patch-improve-performance.sql": true,
"patch-monitor-public.sql": true,
"patch-2fa.sql": true,
"patch-monitor-public-weight.sql": true,
}
/**

View File

@@ -20,6 +20,19 @@ const version = require("../../package.json").version;
* 2 = PENDING
*/
class Monitor extends BeanModel {
/**
* Return a object that ready to parse to JSON for public
* Only show necessary data to public
*/
async toPublicJSON() {
// TODO Only show necessary
return this.toJSON();
}
/**
* Return a object that ready to parse to JSON
*/
async toJSON() {
let notificationIDList = {};