PluginProbe ʕ •ᴥ•ʔ
Hostinger Reach – AI-Powered Email Marketing for WordPress / 1.0.5
Hostinger Reach – AI-Powered Email Marketing for WordPress v1.0.5
1.5.1 1.5.0 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6
hostinger-reach / frontend / vue / main.ts
hostinger-reach / frontend / vue Last commit date
assets 9 months ago components 9 months ago composables 9 months ago data 9 months ago directives 9 months ago router 9 months ago stores 9 months ago styles 9 months ago types 9 months ago utils 9 months ago views 9 months ago App.vue 9 months ago main.ts 9 months ago
main.ts
42 lines
1 import { HButton, HCard, HIcon, HSnackbar, HText, HToast, setTheme } from '@hostinger/hcomponents';
2 import { createPinia } from 'pinia';
3 import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
4 import { createApp } from 'vue';
5
6 import './styles/main.scss';
7
8 import App from './App.vue';
9 import { setDirectives } from './directives';
10 import router from './router';
11
12 const initializeVueApp = () => {
13 const app = createApp(App);
14 const pinia = createPinia();
15
16 pinia.use(piniaPluginPersistedstate);
17
18 setTheme('base');
19
20 app.use(router);
21 app.use(pinia);
22
23 app.component('HButton', HButton);
24 app.component('HCard', HCard);
25 app.component('HIcon', HIcon);
26 app.component('HSnackbar', HSnackbar);
27 app.component('HText', HText);
28 app.component('HToast', HToast);
29
30 setDirectives(app);
31
32 app.mount('#hostinger-reach-app');
33 };
34
35 document.addEventListener('DOMContentLoaded', () => {
36 const targetElement = document.getElementById('hostinger-reach-app');
37
38 if (targetElement) {
39 initializeVueApp();
40 }
41 });
42