mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
fix lint errors
This commit is contained in:
parent
f171e101fd
commit
a8c30f5ab8
3 changed files with 11 additions and 8 deletions
|
@ -6,9 +6,11 @@ class Group extends BeanModel {
|
|||
/**
|
||||
* Return an object that ready to parse to JSON for public
|
||||
* Only show necessary data to public
|
||||
* @param {boolean} [showTags=false] Should the JSON include monitor tags
|
||||
* @param {boolean} [showStatus = false] Should the JSON include the status
|
||||
* @returns {Object}
|
||||
* @param {boolean} showTags Should the JSON include monitor tags
|
||||
* @param {boolean} certExpiry Should JSON include info about
|
||||
* certificate expiry?
|
||||
* @param {boolean} showStatus Should the JSON include the status
|
||||
* @returns {Promise<object>} Object ready to parse
|
||||
*/
|
||||
async toPublicJSON(showTags = false, certExpiry = false, showStatus = false) {
|
||||
let monitorBeanList = await this.getMonitorList();
|
||||
|
|
|
@ -37,8 +37,8 @@ const rootCertificates = rootCertificatesFingerprints();
|
|||
class Monitor extends BeanModel {
|
||||
|
||||
/**
|
||||
<<<<<<< HEAD
|
||||
* Formats the status code to a human readable form
|
||||
* @param {number} status the internal status code of the monitor
|
||||
* @returns {string} a human readable string that corresponds to the status code
|
||||
*/
|
||||
statusToKey(status) {
|
||||
|
@ -57,7 +57,7 @@ class Monitor extends BeanModel {
|
|||
* @param {boolean} showTags Include tags in JSON
|
||||
* @param {boolean} certExpiry Include certificate expiry info in
|
||||
* JSON
|
||||
* @param {boolean} [showStatus = false] Should the JSON show the status
|
||||
* @param {boolean} showStatus Should the JSON show the status
|
||||
* @returns {Promise<object>} Object ready to parse
|
||||
*/
|
||||
async toPublicJSON(showTags = false, certExpiry = false, showStatus = false) {
|
||||
|
|
|
@ -257,9 +257,10 @@ class StatusPage extends BeanModel {
|
|||
|
||||
/**
|
||||
* Get all status page data in one call
|
||||
* @param {StatusPage} statusPage
|
||||
* @param {boolean} [includeStatus = false] whether each monitor should include the status of the monitor ("up" or "down")
|
||||
* @param {boolean} [includeConfig = true] whether the config for the status page should be included in the returned JSON
|
||||
* @param {StatusPage} statusPage the status page to return the data for
|
||||
* @param {boolean} includeStatus whether each monitor should include the status of the monitor ("up" or "down")
|
||||
* @param {boolean} includeConfig whether the config for the status page should be included in the returned JSON
|
||||
* @returns {object} the status page data object
|
||||
*/
|
||||
static async getStatusPageData(statusPage, includeStatus = false, includeConfig = true) {
|
||||
// Incident
|
||||
|
|
Loading…
Reference in a new issue