| 1 | import { createPinia } from "pinia" |
| 2 | import { createPersistedState } from "pinia-plugin-persistedstate" |
| 3 | import { createApp } from "vue" |
| 4 | import App from "@/App.vue" |
| 5 | import i18n from "@/lang" |
| 6 | import router from "@/router" |
| 7 | import "@/assets/scss/index.scss" |
| 8 | import "./tailwind.css" |
| 9 | |
| 10 | const meta = document.createElement("meta") |
| 11 | meta.name = "naive-ui-style" |
| 12 | document.head.appendChild(meta) |
| 13 | |
| 14 | const pinia = createPinia() |
| 15 | pinia.use(createPersistedState()) |
| 16 | |
| 17 | const app = createApp(App) |
| 18 | app.use(pinia) |
| 19 | app.use(i18n) |
| 20 | app.use(router) |
| 21 | |
| 22 | app.mount("#app") |
| 23 | |
| 24 | // TODO-FE: Rename all files to file-case. For example: activeResponse.ts -> active-response.ts |
| 25 | // TODO-FE: use .ts files instead of .d.ts files |