From cbbed6346a437e6b9f05f646f1df0c77d2fb36eb Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sat, 4 Jun 2022 22:40:48 +0200 Subject: Migrate to VueJS 3 --- src/App.vue | 6 +++--- src/assets/app.scss | 2 +- src/components/SearchInput.vue | 2 +- src/components/Service.vue | 5 +++-- src/main.js | 16 +++++----------- 5 files changed, 13 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/App.vue b/src/App.vue index 664867f..43ba322 100644 --- a/src/App.vue +++ b/src/App.vue @@ -140,8 +140,8 @@ diff --git a/src/components/services/UptimeKuma.vue b/src/components/services/UptimeKuma.vue index 3be53b8..5117a05 100644 --- a/src/components/services/UptimeKuma.vue +++ b/src/components/services/UptimeKuma.vue @@ -99,6 +99,7 @@ export default { }, }, created() { + /* eslint-disable */ this.item.url = `${this.item.url}/status/${this.dashboard}`; this.fetchStatus(); }, -- cgit v1.2.3 From 9582b1871ac63d1e625ccf6c221bd1248a1c9d03 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Mon, 11 Jul 2022 22:07:48 +0200 Subject: Fix search widget --- src/App.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/App.vue b/src/App.vue index 43ba322..4120fe5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -49,10 +49,10 @@ @@ -255,11 +255,12 @@ export default { }); }, matchesFilter: function (item) { + const needle = this.filter?.toLowerCase(); return ( - item.name.toLowerCase().includes(this.filter) || - (item.subtitle && item.subtitle.toLowerCase().includes(this.filter)) || - (item.tag && item.tag.toLowerCase().includes(this.filter)) || - (item.keywords && item.keywords.toLowerCase().includes(this.filter)) + item.name.toLowerCase().includes(needle) || + (item.subtitle && item.subtitle.toLowerCase().includes(needle)) || + (item.tag && item.tag.toLowerCase().includes(needle)) || + (item.keywords && item.keywords.toLowerCase().includes(needle)) ); }, navigateToFirstService: function (target) { @@ -271,6 +272,7 @@ export default { } }, filterServices: function (filter) { + console.log(filter); this.filter = filter; if (!filter) { -- cgit v1.2.3 From eb030922866f1e753162d99ea6b25a4f4e941b05 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Tue, 12 Jul 2022 14:07:10 +0200 Subject: Fix theming issue & subfolder hosting --- src/assets/app.scss | 2 +- src/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/assets/app.scss b/src/assets/app.scss index 5102f93..d112482 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -13,7 +13,7 @@ text-overflow: ellipsis; } -html, body, body #app { +html, body, body #app-mount, body #app { height: 100%; background-color: var(--background); } diff --git a/src/main.js b/src/main.js index 164d290..a1d7b47 100644 --- a/src/main.js +++ b/src/main.js @@ -10,4 +10,4 @@ app.component("DynamicStyle", (_props, context) => { return h("style", {}, context.slots); }); -app.mount("#app"); +app.mount("#app-mount"); -- cgit v1.2.3 From a46bede230afd80b3fbf562f4d5d7491155e3835 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Tue, 12 Jul 2022 22:26:45 +0200 Subject: Small fixes --- src/components/DarkMode.vue | 2 +- src/components/Message.vue | 1 - src/components/SettingToggle.vue | 5 ++++- src/components/services/OpenWeather.vue | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/components/DarkMode.vue b/src/components/DarkMode.vue index 677238a..4318c22 100644 --- a/src/components/DarkMode.vue +++ b/src/components/DarkMode.vue @@ -1,6 +1,6 @@