assets
1 year ago
components
9 months ago
composables
9 months ago
layouts
9 months ago
repositories
9 months ago
router
9 months ago
scss
9 months ago
stores
9 months ago
types
5 months ago
utils
9 months ago
views
4 months ago
App.vue
9 months ago
eslint.config.mjs
9 months ago
main.ts
9 months ago
vue-shim.d.ts
9 months ago
main.ts
28 lines
| 1 | import { createPinia } from "pinia"; |
| 2 | import piniaPluginPersistedstate from "pinia-plugin-persistedstate"; |
| 3 | import { createApp } from "vue"; |
| 4 | |
| 5 | import router from "@/router"; |
| 6 | |
| 7 | import "@/scss/main.scss"; |
| 8 | import "vue3-toastify/dist/index.css"; |
| 9 | |
| 10 | import App from "./App.vue"; |
| 11 | |
| 12 | const initializeVueApp = () => { |
| 13 | const pinia = createPinia(); |
| 14 | pinia.use(piniaPluginPersistedstate); |
| 15 | |
| 16 | const app = createApp(App); |
| 17 | app.use(pinia); |
| 18 | app.use(router); |
| 19 | |
| 20 | app.config.globalProperties.window = window; |
| 21 | |
| 22 | app.mount("#hostinger-tools-vue-app"); |
| 23 | }; |
| 24 | |
| 25 | document.addEventListener("DOMContentLoaded", () => { |
| 26 | initializeVueApp(); |
| 27 | }); |
| 28 |