25 lines
No EOL
592 B
TypeScript
25 lines
No EOL
592 B
TypeScript
import './bootstrap';
|
|
import vuetify from "./vuetify";
|
|
import router from "./helpers/router.ts";
|
|
import { vueI18n } from "@/locale/i18n.ts";
|
|
|
|
import { createApp } from "vue";
|
|
import { createPinia } from "pinia";
|
|
import { createI18n } from "vue-i18n";
|
|
|
|
import App from "@/layouts/App.vue";
|
|
import { useAuthStore } from '@/stores/auth.store';
|
|
|
|
const pinia = createPinia();
|
|
const i18n = createI18n(vueI18n);
|
|
const app = createApp(App);
|
|
|
|
app.use(pinia)
|
|
.use(i18n)
|
|
.use(router)
|
|
.use(vuetify)
|
|
|
|
const auth = useAuthStore();
|
|
auth.fetchUser().finally(() => {
|
|
app.mount("#app");
|
|
}); |