PluginProbe ʕ •ᴥ•ʔ
Hostinger Reach – AI-Powered Email Marketing for WordPress / 1.5.6
Hostinger Reach – AI-Powered Email Marketing for WordPress v1.5.6
1.8.0 1.7.2 1.7.1 1.7.0 1.6.0 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 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 3 months ago components 2 months ago composables 2 months ago data 3 months ago directives 10 months ago router 1 year ago stores 4 months ago styles 5 months ago types 3 months ago utils 10 months ago views 2 months ago App.vue 1 year ago main.ts 8 months ago
main.ts
43 lines
1 import { HButton, HCard, HCheckbox, HIcon, HSnackbar, HText, HToast, useTheme } 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 const { setThemeOnly } = useTheme();
16
17 setThemeOnly('base');
18 pinia.use(piniaPluginPersistedstate);
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 app.component('HCheckbox', HCheckbox);
30
31 setDirectives(app);
32
33 app.mount('#hostinger-reach-app');
34 };
35
36 document.addEventListener('DOMContentLoaded', () => {
37 const targetElement = document.getElementById('hostinger-reach-app');
38
39 if (targetElement) {
40 initializeVueApp();
41 }
42 });
43