mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 12:14:41 -05:00
style: fix linting
This commit is contained in:
parent
9bd76c2795
commit
2b46da0f47
@ -1371,7 +1371,7 @@ class Monitor extends BeanModel {
|
|||||||
if (maintenance && await maintenance.isUnderMaintenance()) {
|
if (maintenance && await maintenance.isUnderMaintenance()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const parent = await Monitor.getParent(monitorID);
|
const parent = await Monitor.getParent(monitorID);
|
||||||
if (parent != null) {
|
if (parent != null) {
|
||||||
return await Monitor.isUnderMaintenance(parent.id);
|
return await Monitor.isUnderMaintenance(parent.id);
|
||||||
|
@ -320,8 +320,8 @@ export default {
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
return this.monitor.pathName.substr(0, this.monitor.pathName.lastIndexOf("/"));
|
return this.monitor.pathName.substr(0, this.monitor.pathName.lastIndexOf("/"));
|
||||||
}
|
},
|
||||||
|
|
||||||
pushURL() {
|
pushURL() {
|
||||||
return this.$root.baseURL + "/api/push/" + this.monitor.pushToken + "?status=up&msg=OK&ping=";
|
return this.$root.baseURL + "/api/push/" + this.monitor.pushToken + "?status=up&msg=OK&ping=";
|
||||||
},
|
},
|
||||||
@ -426,7 +426,7 @@ export default {
|
|||||||
monitorURL(id) {
|
monitorURL(id) {
|
||||||
return getMonitorRelativeURL(id);
|
return getMonitorRelativeURL(id);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** Filter and hide password in URL for display */
|
/** Filter and hide password in URL for display */
|
||||||
filterPassword(urlString) {
|
filterPassword(urlString) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user