Skip to content
Snippets Groups Projects
Verified Commit a9fbf395 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix lint

parent 9d342298
No related branches found
No related tags found
1 merge request!1123Resolve "Finalise Vuetify app as SPA"
Pipeline #108105 canceled
...@@ -114,11 +114,11 @@ const apolloOpts = { ...@@ -114,11 +114,11 @@ const apolloOpts = {
defaultClient: apolloClient, defaultClient: apolloClient,
defaultOptions: { defaultOptions: {
$query: { $query: {
skip: (vm, queryKey) => { skip: (vm) => {
// We only want to run this query when background activity is on and we are not reported offline // We only want to run this query when background activity is on and we are not reported offline
return !vm.$root.backgroundActive || vm.$root.offline; return !vm.$root.backgroundActive || vm.$root.offline;
}, },
error: ({ graphQLErrors, networkError }, vm, key, type, options) => { error: ({ graphQLErrors, networkError }, vm) => {
if (graphQLErrors) { if (graphQLErrors) {
// Add a snackbar on all errors returned by the GraphQL endpoint // Add a snackbar on all errors returned by the GraphQL endpoint
console.error("A GraphQL query failed on the server"); console.error("A GraphQL query failed on the server");
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
:to="{ name: 'impersonate.stop', query: { next: $route.path } }" :to="{ name: 'impersonate.stop', query: { next: $route.path } }"
> >
<v-list-item-icon> <v-list-item-icon>
<v-icon> mdi-stop </v-icon> <v-icon> mdi-stop</v-icon>
</v-list-item-icon> </v-list-item-icon>
<v-list-item-title> <v-list-item-title>
{{ $t("person.impersonation.stop") }} {{ $t("person.impersonation.stop") }}
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<v-list-item-icon> <v-list-item-icon>
<v-icon v-if="menuItem.icon">{{ menuItem.icon }}</v-icon> <v-icon v-if="menuItem.icon">{{ menuItem.icon }}</v-icon>
</v-list-item-icon> </v-list-item-icon>
<v-list-item-title>{{ $t(menuItem.titleKey) }} </v-list-item-title> <v-list-item-title>{{ $t(menuItem.titleKey) }}</v-list-item-title>
</v-list-item> </v-list-item>
</div> </div>
</v-list> </v-list>
...@@ -63,9 +63,18 @@ ...@@ -63,9 +63,18 @@
export default { export default {
name: "AccountMenu", name: "AccountMenu",
props: { props: {
accountMenu: Array, accountMenu: {
systemProperties: Object, type: Array,
whoAmI: Object, required: true,
},
systemProperties: {
type: Object,
required: true,
},
whoAmI: {
type: Object,
required: true,
},
}, },
}; };
</script> </script>
......
...@@ -86,8 +86,8 @@ export default { ...@@ -86,8 +86,8 @@ export default {
SidenavSearch, SidenavSearch,
}, },
props: { props: {
sideNavMenu: Array, sideNavMenu: { type: Array, required: true },
systemProperties: Object, systemProperties: { type: Object, required: true },
}, },
}; };
</script> </script>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<v-col order="1" order-sm="last" class="ms-5"> <v-col order="1" order-sm="last" class="ms-5">
<slot <slot
name="actions" name="actions"
v-bind:classes="'d-flex gap justify-md-end flex-column-reverse flex-md-row align-end align-md-center'" :classes="'d-flex gap justify-md-end flex-column-reverse flex-md-row align-end align-md-center'"
/> />
</v-col> </v-col>
</v-row> </v-row>
......
...@@ -22,11 +22,11 @@ const offlineMixin = { ...@@ -22,11 +22,11 @@ const offlineMixin = {
}; };
}, },
mounted() { mounted() {
window.addEventListener("online", (e) => { window.addEventListener("online", () => {
console.info("Navigator changed status to online."); console.info("Navigator changed status to online.");
this.checkOfflineState(); this.checkOfflineState();
}); });
window.addEventListener("offline", (e) => { window.addEventListener("offline", () => {
console.info("Navigator changed status to offline."); console.info("Navigator changed status to offline.");
this.checkOfflineState(); this.checkOfflineState();
}); });
...@@ -55,14 +55,14 @@ const offlineMixin = { ...@@ -55,14 +55,14 @@ const offlineMixin = {
}; };
}, },
pollInterval: 1000, pollInterval: 1000,
skip: (component, query) => { skip: (component) => {
// We only want to run this query when background activity is on and we are reported offline // We only want to run this query when background activity is on and we are reported offline
return !(component.$root.backgroundActive && component.$root.offline); return !(component.$root.backgroundActive && component.$root.offline);
}, },
}, },
}, },
watch: { watch: {
ping(payload) { ping() {
console.info("Pong received, clearing offline state"); console.info("Pong received, clearing offline state");
this.$root.offline = false; this.$root.offline = false;
}, },
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
*/ */
// aleksisAppImporter is a virtual module defined in Vite config // aleksisAppImporter is a virtual module defined in Vite config
import { appObjects, appMessages } from "aleksisAppImporter"; import { appMessages } from "aleksisAppImporter";
console.debug("Defining AleksisVue plugin"); console.debug("Defining AleksisVue plugin");
const AleksisVue = {}; const AleksisVue = {};
AleksisVue.install = function (Vue, options) { AleksisVue.install = function (Vue) {
/* /*
* The browser title when the app was loaded. * The browser title when the app was loaded.
* *
...@@ -51,25 +51,25 @@ AleksisVue.install = function (Vue, options) { ...@@ -51,25 +51,25 @@ AleksisVue.install = function (Vue, options) {
* Register all global components that shall be reusable by apps. * Register all global components that shall be reusable by apps.
*/ */
Vue.$registerGlobalComponents = function () { Vue.$registerGlobalComponents = function () {
Vue.component("message-box", () => Vue.component("MessageBox", () =>
import("../components/generic/MessageBox.vue") import("../components/generic/MessageBox.vue")
); );
Vue.component("small-container", () => Vue.component("SmallContainer", () =>
import("../components/generic/BackButton.vue") import("../components/generic/BackButton.vue")
); );
Vue.component("back-button", () => Vue.component("BackButton", () =>
import("../components/generic/BackButton.vue") import("../components/generic/BackButton.vue")
); );
Vue.component("avatar-clickbox", () => Vue.component("AvatarClickbox", () =>
import("../components/generic/AvatarClickbox.vue") import("../components/generic/AvatarClickbox.vue")
); );
Vue.component("detail-view", () => Vue.component("DetailView", () =>
import("../components/generic/DetailView.vue") import("../components/generic/DetailView.vue")
); );
Vue.component("list-view", () => Vue.component("ListView", () =>
import("../components/generic/ListView.vue") import("../components/generic/ListView.vue")
); );
Vue.component("button-menu", () => Vue.component("ButtonMenu", () =>
import("../components/generic/ButtonMenu.vue") import("../components/generic/ButtonMenu.vue")
); );
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment