From c114c053d633243f6343e52360c2e5a4b8e6f062 Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Sat, 30 Apr 2022 03:51:14 +0200 Subject: [PATCH 1/2] Fix ESLint warnings and errors --- src/components/CountUp.vue | 5 ++++- src/components/Datetime.vue | 5 ++++- src/components/Status.vue | 5 ++++- src/components/Uptime.vue | 10 ++++++++-- src/pages/StatusPage.vue | 40 ++++++++++++++++++------------------- 5 files changed, 40 insertions(+), 25 deletions(-) diff --git a/src/components/CountUp.vue b/src/components/CountUp.vue index 41edc4a0e..df1d1ac6c 100644 --- a/src/components/CountUp.vue +++ b/src/components/CountUp.vue @@ -10,7 +10,10 @@ import { sleep } from "../util.ts"; export default { props: { - value: [ String, Number ], + value: { + type: [ String, Number ], + default: 0, + }, time: { type: Number, default: 0.3, diff --git a/src/components/Datetime.vue b/src/components/Datetime.vue index ed38c434d..fa68d02c7 100644 --- a/src/components/Datetime.vue +++ b/src/components/Datetime.vue @@ -13,7 +13,10 @@ dayjs.extend(relativeTime); export default { props: { - value: String, + value: { + type: String, + default: null, + }, dateOnly: { type: Boolean, default: false, diff --git a/src/components/Status.vue b/src/components/Status.vue index a3916adce..1985d8518 100644 --- a/src/components/Status.vue +++ b/src/components/Status.vue @@ -5,7 +5,10 @@