-
-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (21 loc) · 625 Bytes
/
index.js
File metadata and controls
26 lines (21 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import App from "/App.vue";
import PrimeVue from "primevue/config";
import ToastService from "primevue/toastservice";
import { createApp } from "vue";
import { createPinia } from "pinia";
import { loadStoredToken } from "./tokenStorage.js";
import router from "/router.js";
const app = createApp(App);
const pinia = createPinia();
app.use(router);
app.use(pinia);
app.use(PrimeVue, { unstyled: true });
app.use(ToastService);
// Custom v-focus directive to focus on an element when mounted
app.directive("focus", {
mounted(el) {
el.focus();
},
});
loadStoredToken();
app.mount("#app");