2019-03-18 08:53:00 -03:00
|
|
|
import Inertia from 'inertia-vue'
|
|
|
|
import PortalVue from 'portal-vue'
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
|
|
Vue.config.productionTip = false
|
2019-04-15 20:38:57 -03:00
|
|
|
Vue.mixin({ methods: { route: (...args) => window.route(...args).url() } })
|
2019-04-24 15:45:13 -03:00
|
|
|
Vue.use(Inertia)
|
2019-03-18 08:53:00 -03:00
|
|
|
Vue.use(PortalVue)
|
|
|
|
|
|
|
|
let app = document.getElementById('app')
|
|
|
|
|
|
|
|
new Vue({
|
|
|
|
render: h => h(Inertia, {
|
|
|
|
props: {
|
2019-04-18 06:51:28 -03:00
|
|
|
initialPage: JSON.parse(app.dataset.page),
|
2019-05-18 09:22:34 -03:00
|
|
|
resolveComponent: name => import(`@/Pages/${name}`).then(module => module.default),
|
2019-03-18 08:53:00 -03:00
|
|
|
},
|
|
|
|
}),
|
|
|
|
}).$mount(app)
|