From ed8b17e0df7ffa64e392bacbd2abf6492fdfb3f1 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Fri, 23 Oct 2020 15:24:16 -0700 Subject: Update deps & fix lint issues --- src/App.vue | 10 +++++----- src/components/ConnectivityChecker.vue | 2 +- src/components/Navbar.vue | 2 +- src/components/SearchInput.vue | 8 ++++---- src/components/Service.vue | 2 +- src/components/SettingToggle.vue | 7 +++---- 6 files changed, 15 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/App.vue b/src/App.vue index c47b5a9..d97df0c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,7 +26,7 @@ @@ -40,9 +40,9 @@ @@ -51,7 +51,7 @@
diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue index a91a809..d5f8f80 100644 --- a/src/components/ConnectivityChecker.vue +++ b/src/components/ConnectivityChecker.vue @@ -44,7 +44,7 @@ export default { that.offline = true; }) .finally(function () { - that.$emit("network:status-update", that.offline); + that.$emit("network-status-update", that.offline); }); }, }, diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index ae84166..dea7049 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -9,7 +9,7 @@ aria-expanded="false" class="navbar-burger" :class="{ 'is-active': showMenu }" - v-on:click="$emit('navbar:toggle')" + v-on:click="$emit('navbar-toggle')" > diff --git a/src/components/SearchInput.vue b/src/components/SearchInput.vue index 22b5eef..9419db3 100644 --- a/src/components/SearchInput.vue +++ b/src/components/SearchInput.vue @@ -6,8 +6,8 @@ ref="search" :value="value" @input="$emit('input', $event.target.value.toLowerCase())" - @keyup.enter.exact="$emit('search:open')" - @keyup.alt.enter="$emit('search:open', '_blank')" + @keyup.enter.exact="$emit('search-open')" + @keyup.alt.enter="$emit('search-open', '_blank')" />
@@ -20,7 +20,7 @@ export default { this._keyListener = function (event) { if (event.key === "/") { event.preventDefault(); - this.$emit("search:focus"); + this.$emit("search-focus"); this.$nextTick(() => { this.$refs.search.focus(); }); @@ -28,7 +28,7 @@ export default { if (event.key === "Escape") { this.$refs.search.value = ""; this.$refs.search.blur(); - this.$emit("search:cancel"); + this.$emit("search-cancel"); } }; document.addEventListener("keydown", this._keyListener.bind(this)); diff --git a/src/components/Service.vue b/src/components/Service.vue index 81ad8a2..4d3702b 100644 --- a/src/components/Service.vue +++ b/src/components/Service.vue @@ -11,7 +11,7 @@
- +
diff --git a/src/components/SettingToggle.vue b/src/components/SettingToggle.vue index ffc91a1..985ca84 100644 --- a/src/components/SettingToggle.vue +++ b/src/components/SettingToggle.vue @@ -1,6 +1,6 @@ @@ -15,13 +15,12 @@ export default { }, data: function () { return { + secondaryIcon: null, value: true, }; }, created: function () { - if (!this.iconAlt) { - this.iconAlt = this.icon; - } + this.secondaryIcon = this.iconAlt || this.icon; if (this.name in localStorage) { this.value = JSON.parse(localStorage[this.name]); -- cgit v1.2.3