Merge pull request #139 from Genymobile/update-deps-and-fix-code-styles

Update deps & fix lint issues
This commit is contained in:
Bastien Wirtz 2020-10-23 18:26:41 -07:00 committed by GitHub
commit 37dfd2a132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 1270 additions and 994 deletions

View File

@ -9,27 +9,27 @@
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.15.1", "@fortawesome/fontawesome-free": "^5.15.1",
"bulma": "^0.9.0", "bulma": "^0.9.1",
"core-js": "^3.6.4", "core-js": "^3.6.4",
"js-yaml": "^3.14.0", "js-yaml": "^3.14.0",
"lodash.merge": "^4.6.2", "lodash.merge": "^4.6.2",
"register-service-worker": "^1.7.1", "register-service-worker": "^1.7.1",
"vue": "^2.6.11" "vue": "^2.6.12"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "~4.4.6", "@vue/cli-plugin-babel": "~4.5.8",
"@vue/cli-plugin-eslint": "~4.4.6", "@vue/cli-plugin-eslint": "~4.5.8",
"@vue/cli-plugin-pwa": "~4.4.6", "@vue/cli-plugin-pwa": "~4.5.8",
"@vue/cli-service": "~4.4.6", "@vue/cli-service": "~4.5.8",
"@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-prettier": "^6.0.0",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"eslint": "^7.4.0", "eslint": "^7.11.0",
"eslint-plugin-prettier": "^3.1.4", "eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-vue": "^6.2.2", "eslint-plugin-vue": "^7.1.0",
"prettier": "^2.0.5", "prettier": "^2.1.2",
"raw-loader": "^4.0.1", "raw-loader": "^4.0.2",
"sass": "^1.26.10", "sass": "^1.27.0",
"sass-loader": "^9.0.2", "sass-loader": "^10.0.4",
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.12"
} }
} }

View File

@ -26,7 +26,7 @@
<Navbar <Navbar
:open="showMenu" :open="showMenu"
:links="config.links" :links="config.links"
@navbar:toggle="showMenu = !showMenu" @navbar-toggle="showMenu = !showMenu"
> >
<DarkMode @updated="isDark = $event" /> <DarkMode @updated="isDark = $event" />
@ -40,9 +40,9 @@
<SearchInput <SearchInput
class="navbar-item is-inline-block-mobile" class="navbar-item is-inline-block-mobile"
@input="filterServices" @input="filterServices"
@search:focus="showMenu = true" @search-focus="showMenu = true"
@search:open="navigateToFirstService" @search-open="navigateToFirstService"
@search:cancel="filterServices" @search-cancel="filterServices"
/> />
</Navbar> </Navbar>
</div> </div>
@ -51,7 +51,7 @@
<div v-cloak class="container"> <div v-cloak class="container">
<ConnectivityChecker <ConnectivityChecker
v-if="config.connectivityCheck" v-if="config.connectivityCheck"
@network:status-update="offline = $event" @network-status-update="offline = $event"
/> />
<div v-if="!offline"> <div v-if="!offline">
<!-- Optional messages --> <!-- Optional messages -->

View File

@ -44,7 +44,7 @@ export default {
that.offline = true; that.offline = true;
}) })
.finally(function () { .finally(function () {
that.$emit("network:status-update", that.offline); that.$emit("network-status-update", that.offline);
}); });
}, },
}, },

View File

@ -9,7 +9,7 @@
aria-expanded="false" aria-expanded="false"
class="navbar-burger" class="navbar-burger"
:class="{ 'is-active': showMenu }" :class="{ 'is-active': showMenu }"
v-on:click="$emit('navbar:toggle')" v-on:click="$emit('navbar-toggle')"
> >
<span aria-hidden="true"></span> <span aria-hidden="true"></span>
<span aria-hidden="true"></span> <span aria-hidden="true"></span>

View File

@ -6,8 +6,8 @@
ref="search" ref="search"
:value="value" :value="value"
@input="$emit('input', $event.target.value.toLowerCase())" @input="$emit('input', $event.target.value.toLowerCase())"
@keyup.enter.exact="$emit('search:open')" @keyup.enter.exact="$emit('search-open')"
@keyup.alt.enter="$emit('search:open', '_blank')" @keyup.alt.enter="$emit('search-open', '_blank')"
/> />
</div> </div>
</template> </template>
@ -20,7 +20,7 @@ export default {
this._keyListener = function (event) { this._keyListener = function (event) {
if (event.key === "/") { if (event.key === "/") {
event.preventDefault(); event.preventDefault();
this.$emit("search:focus"); this.$emit("search-focus");
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.search.focus(); this.$refs.search.focus();
}); });
@ -28,7 +28,7 @@ export default {
if (event.key === "Escape") { if (event.key === "Escape") {
this.$refs.search.value = ""; this.$refs.search.value = "";
this.$refs.search.blur(); this.$refs.search.blur();
this.$emit("search:cancel"); this.$emit("search-cancel");
} }
}; };
document.addEventListener("keydown", this._keyListener.bind(this)); document.addEventListener("keydown", this._keyListener.bind(this));

View File

@ -11,7 +11,7 @@
</div> </div>
<div v-if="item.icon" class="media-left"> <div v-if="item.icon" class="media-left">
<figure class="image is-48x48"> <figure class="image is-48x48">
<i style="font-size: 35px;" :class="['fa-fw', item.icon]"></i> <i style="font-size: 35px" :class="['fa-fw', item.icon]"></i>
</figure> </figure>
</div> </div>
<div class="media-content"> <div class="media-content">

View File

@ -1,6 +1,6 @@
<template> <template>
<a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile"> <a v-on:click="toggleSetting()" class="navbar-item is-inline-block-mobile">
<span><i :class="['fas', 'fa-fw', value ? icon : iconAlt]"></i></span> <span><i :class="['fas', 'fa-fw', value ? icon : secondaryIcon]"></i></span>
<slot></slot> <slot></slot>
</a> </a>
</template> </template>
@ -15,13 +15,12 @@ export default {
}, },
data: function () { data: function () {
return { return {
secondaryIcon: null,
value: true, value: true,
}; };
}, },
created: function () { created: function () {
if (!this.iconAlt) { this.secondaryIcon = this.iconAlt || this.icon;
this.iconAlt = this.icon;
}
if (this.name in localStorage) { if (this.name in localStorage) {
this.value = JSON.parse(localStorage[this.name]); this.value = JSON.parse(localStorage[this.name]);

2207
yarn.lock

File diff suppressed because it is too large Load Diff