2018-09-02 23:26:15 +03:00
|
|
|
import Vue from 'vue'
|
|
|
|
import VueRouter from 'vue-router'
|
|
|
|
import Vuex from 'vuex'
|
|
|
|
import Vuetify from 'vuetify'
|
|
|
|
import { sync } from 'vuex-router-sync'
|
2018-09-13 23:26:52 +03:00
|
|
|
import ALink from 'client/components/ALink.vue'
|
2018-09-12 22:58:37 +03:00
|
|
|
import 'vuetify/dist/vuetify.css' // Ensure you are using css-loader
|
2018-09-02 23:26:15 +03:00
|
|
|
|
|
|
|
import AppComponent from './App.vue'
|
|
|
|
import { createRouter } from './router'
|
|
|
|
import { createStore } from './store'
|
|
|
|
|
|
|
|
|
|
|
|
function initVue() {
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
Vue.use(Vuex)
|
|
|
|
Vue.use(Vuetify)
|
2018-09-13 23:26:52 +03:00
|
|
|
Vue.component('ALink', ALink)
|
2018-09-02 23:26:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function createApp() {
|
|
|
|
const router = createRouter()
|
|
|
|
const store = createStore()
|
|
|
|
|
|
|
|
sync(store, router)
|
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
router,
|
|
|
|
store,
|
|
|
|
render(h) {
|
|
|
|
return h(AppComponent)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
return {
|
|
|
|
app,
|
|
|
|
router,
|
|
|
|
store
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-05 23:45:46 +03:00
|
|
|
initVue()
|
|
|
|
|
|
|
|
|
2018-09-02 23:26:15 +03:00
|
|
|
export {
|
|
|
|
createApp
|
|
|
|
}
|