mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-05 00:44:46 +00:00
lint fix
This commit is contained in:
parent
18f2056223
commit
263eecc455
1 changed files with 8 additions and 8 deletions
|
@ -65,9 +65,9 @@ export default {
|
||||||
let lastBeat = heartbeatList.at(-1);
|
let lastBeat = heartbeatList.at(-1);
|
||||||
// TODO: Simplify? When page loads, lastBeat contains ping_threshold,
|
// TODO: Simplify? When page loads, lastBeat contains ping_threshold,
|
||||||
// but after the following heartbeat it has pingThreshold.
|
// but after the following heartbeat it has pingThreshold.
|
||||||
if (lastBeat?.hasOwnProperty('pingThreshold')) {
|
if (lastBeat?.hasOwnProperty("pingThreshold")) {
|
||||||
return lastBeat.pingThreshold;
|
return lastBeat.pingThreshold;
|
||||||
} else if (lastBeat?.hasOwnProperty('ping_threshold')) {
|
} else if (lastBeat?.hasOwnProperty("ping_threshold")) {
|
||||||
return lastBeat.ping_threshold;
|
return lastBeat.ping_threshold;
|
||||||
} else {
|
} else {
|
||||||
return undefined;
|
return undefined;
|
||||||
|
@ -174,16 +174,16 @@ export default {
|
||||||
},
|
},
|
||||||
annotation: {
|
annotation: {
|
||||||
/* drawTime: 'afterDraw', */
|
/* drawTime: 'afterDraw', */
|
||||||
annotations:{
|
annotations: {
|
||||||
line1: {
|
line1: {
|
||||||
type: 'line',
|
type: "line",
|
||||||
mode: 'horizontal',
|
mode: "horizontal",
|
||||||
scaleID: 'y',
|
scaleID: "y",
|
||||||
value: this.threshold,
|
value: this.threshold,
|
||||||
endValue: this.threshold,
|
endValue: this.threshold,
|
||||||
borderColor: 'rgba(248,163,6,1.0)',
|
borderColor: "rgba(248,163,6,1.0)",
|
||||||
borderWith: 2,
|
borderWith: 2,
|
||||||
borderDash: [1, 3],
|
borderDash: [ 1, 3 ],
|
||||||
adjustScaleRange: false,
|
adjustScaleRange: false,
|
||||||
display: this.threshold !== undefined,
|
display: this.threshold !== undefined,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue