26 lines
817 B
JavaScript
26 lines
817 B
JavaScript
import "./bootstrap";
|
|
import "../css/app.css";
|
|
|
|
import { createApp, h } from "vue";
|
|
import { createInertiaApp } from "@inertiajs/vue3";
|
|
import { ZiggyVue } from "../../vendor/tightenco/ziggy/dist/vue.m";
|
|
import { Ziggy } from "./ziggy";
|
|
import { InertiaProgress } from "@inertiajs/progress";
|
|
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
|
|
|
|
createInertiaApp({
|
|
resolve: async (name) => {
|
|
return (await import(`./Pages/${name}`)).default;
|
|
},
|
|
setup({ el, App, props, plugin }) {
|
|
return createApp({ render: () => h(App, props) })
|
|
.use(plugin)
|
|
.use(ZiggyVue, Ziggy)
|
|
.component("font-awesome-icon", FontAwesomeIcon)
|
|
.mixin({ methods: { route } })
|
|
.mount(el);
|
|
},
|
|
progress: {
|
|
color: "#4B5563",
|
|
},
|
|
});
|