Initial commit
This commit is contained in:
@@ -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);
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
@@ -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 });
|
||||
@@ -0,0 +1,6 @@
|
||||
import Vue from 'vue';
|
||||
import VueLazyload from 'vue-lazyload';
|
||||
|
||||
Vue.use(VueLazyload, {
|
||||
lazyComponent: true,
|
||||
});
|
||||
Reference in New Issue
Block a user