22 lines
587 B
JavaScript
22 lines
587 B
JavaScript
require('./bootstrap');
|
|
|
|
// Import modules...
|
|
import { createApp, h } from 'vue';
|
|
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3';
|
|
import { InertiaProgress } from '@inertiajs/progress';
|
|
|
|
const el = document.getElementById('app');
|
|
|
|
createApp({
|
|
render: () =>
|
|
h(InertiaApp, {
|
|
initialPage: JSON.parse(el.dataset.page),
|
|
resolveComponent: (name) => require(`./Pages/${name}`).default,
|
|
}),
|
|
})
|
|
.mixin({ methods: { route } })
|
|
.use(InertiaPlugin)
|
|
.mount(el);
|
|
|
|
InertiaProgress.init({ color: '#4B5563' });
|