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'
|
2021-06-14 09:20:30 -03:00
|
|
|
import { InertiaProgress } from '@inertiajs/progress'
|
|
|
|
import { createInertiaApp } 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-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
|
|
|
|
2020-09-24 12:37:26 -03:00
|
|
|
InertiaProgress.init()
|
|
|
|
|
2021-06-14 09:20:30 -03:00
|
|
|
createInertiaApp({
|
|
|
|
resolve: name => require(`./Pages/${name}`),
|
|
|
|
setup({ el, app, props }) {
|
|
|
|
new Vue({
|
|
|
|
metaInfo: {
|
|
|
|
titleTemplate: title => (title ? `${title} - Ping CRM` : 'Ping CRM'),
|
2021-02-27 11:00:09 -03:00
|
|
|
},
|
2021-06-14 09:20:30 -03:00
|
|
|
render: h => h(app, props),
|
|
|
|
}).$mount(el)
|
|
|
|
},
|
|
|
|
})
|