PluginProbe
Hostinger Tools / trunk
Hostinger Tools vtrunk
3.0.78 3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 All 109 releases
hostinger / vue-frontend / src / main.ts

main.ts in Hostinger Tools trunk, at vue-frontend/src/main.ts

28 lines 607 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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