mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +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>
|
||||
<transition name="slide-fade" appear>
|
||||
<div v-if="monitor">
|
||||
|
@ -411,7 +412,7 @@ export default {
|
|||
const minutes = Math.floor((this.timeRemaining % 3600) / 60);
|
||||
const seconds = this.timeRemaining % 60;
|
||||
|
||||
let formattedTime = '';
|
||||
let formattedTime = "";
|
||||
if (days > 0) {
|
||||
formattedTime += `${days}:`;
|
||||
}
|
||||
|
@ -446,7 +447,7 @@ export default {
|
|||
},
|
||||
created() {
|
||||
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;
|
||||
} else {
|
||||
this.timeRemaining = this.monitor.interval;
|
||||
|
|
Loading…
Reference in a new issue