Initial commit

This commit is contained in:
2019-01-15 13:21:24 +01:00
commit dc50642ed9
49 changed files with 10493 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import Vue from 'vue';
import AppLoader from '~/components/common/app-loader';
import AppMessage from '~/components/common/app-message';
import AppLazyBackground from '~/components/common/app-lazy-background';
Vue.component('app-loader', AppLoader);
Vue.component('app-message', AppMessage);
Vue.component('app-lazy-background', AppLazyBackground);
+15
View File
@@ -0,0 +1,15 @@
export default ({ app }) => {
app.router.beforeEach((to, from, next) => {
// keep the graphql api url variable on all navigation,
// if it is actually present.
let target;
if (!to.query.graph && from.query.graph) {
target = {
path: to.path,
query: { ...to.query, graph: from.query.graph },
};
}
next(target);
});
}
+9
View File
@@ -0,0 +1,9 @@
import Vue from 'vue';
import iView from 'iview';
import locale from 'iview/dist/locale/en-US';
// add exceptions for these since they conflict with the linting if we use them out of the box
Vue.component('i-row', iView.Row);
Vue.component('i-col', iView.Col);
Vue.use(iView, { locale });
+6
View File
@@ -0,0 +1,6 @@
import Vue from 'vue';
import VueLazyload from 'vue-lazyload';
Vue.use(VueLazyload, {
lazyComponent: true,
});