Files
site/resources/js/app.js
2025-04-21 16:03:20 +02:00

26 lines
658 B
JavaScript
Vendored

import { createApp, h } from 'vue'
import store from './store'
import { createInertiaApp, Link } from '@inertiajs/inertia-vue3'
import { InertiaProgress as progress } from '@inertiajs/progress'
progress.init({
color: '#673ab7',
})
createInertiaApp({
id: 'app',
resolve: name => import(`@/Pages/${name}`),
setup({ el, app, props, plugin }) {
createApp({ render: () => h(app, props) })
.mixin({
methods: {
route: window.route,
}
})
.use(store)
.use(plugin)
.component('InertiaLink', Link)
.mount(el)
},
})