-
Next in {{ formattedTime }} ({{ $t("checkEverySecond", [ monitor.interval ]) }})
+
+ {{ $t("checkEverySecond", [ monitor.interval ]) }}
+
+
{{ status.text }}
@@ -276,6 +278,7 @@ import { useToast } from "vue-toastification";
const toast = useToast();
import Confirm from "../components/Confirm.vue";
import HeartbeatBar from "../components/HeartbeatBar.vue";
+import NextPingTimer from "../components/NextPingTimer.vue";
import Status from "../components/Status.vue";
import Datetime from "../components/Datetime.vue";
import CountUp from "../components/CountUp.vue";
@@ -302,6 +305,7 @@ export default {
CountUp,
Datetime,
HeartbeatBar,
+ NextPingTimer,
Confirm,
Status,
Pagination,
@@ -405,27 +409,6 @@ export default {
screenshotURL() {
return getResBaseURL() + this.monitor.screenshot + "?time=" + this.cacheTime;
},
-
- formattedTime() {
- const days = Math.floor(this.timeRemaining / 86400);
- const hours = Math.floor((this.timeRemaining % 86400) / 3600);
- const minutes = Math.floor((this.timeRemaining % 3600) / 60);
- const seconds = this.timeRemaining % 60;
-
- let formattedTime = "";
- if (days > 0) {
- formattedTime += `${days}:`;
- }
- if (hours > 0 || days > 0) {
- formattedTime += `${hours}:`;
- }
- if (minutes > 0 || hours > 0 || days > 0) {
- formattedTime += `${minutes}:`;
- }
- formattedTime += `${seconds}`;
-
- return formattedTime.trim();
- },
},
watch: {