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
|
* Return an object that ready to parse to JSON for public
|
||||||
* Only show necessary data to public
|
* Only show necessary data to public
|
||||||
* @param {boolean} [showTags=false] Should the JSON include monitor tags
|
* @param {boolean} showTags Should the JSON include monitor tags
|
||||||
* @param {boolean} [showStatus = false] Should the JSON include the status
|
* @param {boolean} certExpiry Should JSON include info about
|
||||||
* @returns {Object}
|
* 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) {
|
async toPublicJSON(showTags = false, certExpiry = false, showStatus = false) {
|
||||||
let monitorBeanList = await this.getMonitorList();
|
let monitorBeanList = await this.getMonitorList();
|
||||||
|
|
|
@ -37,8 +37,8 @@ const rootCertificates = rootCertificatesFingerprints();
|
||||||
class Monitor extends BeanModel {
|
class Monitor extends BeanModel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
<<<<<<< HEAD
|
|
||||||
* Formats the status code to a human readable form
|
* 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
|
* @returns {string} a human readable string that corresponds to the status code
|
||||||
*/
|
*/
|
||||||
statusToKey(status) {
|
statusToKey(status) {
|
||||||
|
@ -57,7 +57,7 @@ class Monitor extends BeanModel {
|
||||||
* @param {boolean} showTags Include tags in JSON
|
* @param {boolean} showTags Include tags in JSON
|
||||||
* @param {boolean} certExpiry Include certificate expiry info in
|
* @param {boolean} certExpiry Include certificate expiry info in
|
||||||
* JSON
|
* 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
|
* @returns {Promise<object>} Object ready to parse
|
||||||
*/
|
*/
|
||||||
async toPublicJSON(showTags = false, certExpiry = false, showStatus = false) {
|
async toPublicJSON(showTags = false, certExpiry = false, showStatus = false) {
|
||||||
|
|
|
@ -257,9 +257,10 @@ class StatusPage extends BeanModel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all status page data in one call
|
* Get all status page data in one call
|
||||||
* @param {StatusPage} statusPage
|
* @param {StatusPage} statusPage the status page to return the data for
|
||||||
* @param {boolean} [includeStatus = false] whether each monitor should include the status of the monitor ("up" or "down")
|
* @param {boolean} includeStatus 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 {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) {
|
static async getStatusPageData(statusPage, includeStatus = false, includeConfig = true) {
|
||||||
// Incident
|
// Incident
|
||||||
|
|
Loading…
Reference in a new issue