2019-03-18 08:53:00 -03:00
|
|
|
import Vue from 'vue'
|
2019-09-28 08:30:44 -03:00
|
|
|
import VueMeta from 'vue-meta'
|
|
|
|
import PortalVue from 'portal-vue'
|
|
|
|
import { InertiaApp } from '@inertiajs/inertia-vue'
|
2019-03-18 08:53:00 -03:00
|
|
|
|
|
|
|
Vue.config.productionTip = false
|
2019-08-12 09:33:13 -03:00
|
|
|
Vue.mixin({ methods: { route: window.route } })
|
2019-08-13 14:36:25 -03:00
|
|
|
Vue.use(InertiaApp)
|
2019-03-18 08:53:00 -03:00
|
|
|
Vue.use(PortalVue)
|
2019-09-28 08:30:44 -03:00
|
|
|
Vue.use(VueMeta)
|
2019-03-18 08:53:00 -03:00
|
|
|
|
|
|
|
let app = document.getElementById('app')
|
|
|
|
|
|
|
|
new Vue({
|
2019-09-28 08:30:44 -03:00
|
|
|
metaInfo: {
|
2019-12-18 15:59:44 -03:00
|
|
|
titleTemplate: (title) => title ? `${title} - Ping CRM` : 'Ping CRM'
|
2019-09-28 08:30:44 -03:00
|
|
|
},
|
2019-08-13 14:36:25 -03:00
|
|
|
render: h => h(InertiaApp, {
|
2019-03-18 08:53:00 -03:00
|
|
|
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)
|