You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
777 B

require("./bootstrap");
require("./plugins/vue-toastification");
import Vue from "vue";
import {
App as InertiaApp,
plugin as InertiaPlugin
} from "@inertiajs/inertia-vue";
import { Link } from "@inertiajs/inertia-vue";
import vuetify from "./plugins/vuetify";
import { InertiaProgress } from "@inertiajs/progress";
Vue.use(InertiaPlugin);
Vue.component("Link", Link);
Vue.mixin({ methods: { route: window.route } });
const app = document.getElementById("app");
new Vue({
vuetify,
render: h =>
h(InertiaApp, {
props: {
title: title => `${title} - My App`,
initialPage: JSON.parse(app.dataset.page),
resolveComponent: name => require(`./pages/${name}`).default
}
})
}).$mount(app);
InertiaProgress.init({ color: "#fff" });