mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
lint fixes
This commit is contained in:
parent
e90965a212
commit
d7f9a9b471
1 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
<!-- eslint-disable linebreak-style -->
|
||||||
<template>
|
<template>
|
||||||
<transition name="slide-fade" appear>
|
<transition name="slide-fade" appear>
|
||||||
<div v-if="monitor">
|
<div v-if="monitor">
|
||||||
|
@ -411,7 +412,7 @@ export default {
|
||||||
const minutes = Math.floor((this.timeRemaining % 3600) / 60);
|
const minutes = Math.floor((this.timeRemaining % 3600) / 60);
|
||||||
const seconds = this.timeRemaining % 60;
|
const seconds = this.timeRemaining % 60;
|
||||||
|
|
||||||
let formattedTime = '';
|
let formattedTime = "";
|
||||||
if (days > 0) {
|
if (days > 0) {
|
||||||
formattedTime += `${days}:`;
|
formattedTime += `${days}:`;
|
||||||
}
|
}
|
||||||
|
@ -446,7 +447,7 @@ export default {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.lastHeartBeat.end_time) {
|
if (this.lastHeartBeat.end_time) {
|
||||||
const lastpingtime = dayjs().utc().diff(dayjs.utc(this.lastHeartBeat.end_time), "seconds")
|
const lastpingtime = dayjs().utc().diff(dayjs.utc(this.lastHeartBeat.end_time), "seconds");
|
||||||
this.timeRemaining = this.monitor.interval - lastpingtime;
|
this.timeRemaining = this.monitor.interval - lastpingtime;
|
||||||
} else {
|
} else {
|
||||||
this.timeRemaining = this.monitor.interval;
|
this.timeRemaining = this.monitor.interval;
|
||||||
|
|
Loading…
Reference in a new issue