Claptrap-ui/src/main.ts

17 lines
529 B
TypeScript
Raw Normal View History

2022-05-21 01:07:31 +02:00
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import vuetify from "./plugins/vuetify";
import { loadFonts } from "./plugins/webfontloader";
import { createPinia } from "pinia";
2022-05-24 23:04:35 +02:00
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import axios from "axios";
2022-05-21 01:07:31 +02:00
loadFonts();
const pinia = createPinia();
2022-05-24 23:04:35 +02:00
pinia.use(piniaPluginPersistedstate);
2022-05-21 01:07:31 +02:00
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL;
createApp(App).use(router).use(vuetify).use(pinia).mount("#app");