42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import {createApp} from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router/router.js'
|
|
import './assets/main.css'
|
|
import {createPinia} from 'pinia'
|
|
import '@mdi/font/css/materialdesignicons.css'
|
|
import 'vuetify/styles'
|
|
import {createVuetify} from 'vuetify'
|
|
import * as components from 'vuetify/components'
|
|
import * as directives from 'vuetify/directives'
|
|
import vueGoogleOauth from 'vue3-google-login'
|
|
import {useSubscriptionStore} from "@/stores/subscriptionStore.js";
|
|
import {useAuthStore} from "@/stores/authStore.js";
|
|
import i18n from './i18n.js';
|
|
import {useUserProfileStore} from "@/stores/userProfileStore.js";
|
|
import {useCreatorProfileStore} from "@/stores/creatorProfileStore.js";
|
|
|
|
const vuetify = createVuetify({
|
|
components,
|
|
directives
|
|
});
|
|
|
|
const app = createApp(App)
|
|
.use(createPinia())
|
|
.use(vuetify)
|
|
.use(router)
|
|
.use(vueGoogleOauth, {
|
|
clientId: import.meta.env.VITE_GOOGLE_CLIENT_ID,
|
|
})
|
|
.use(i18n)
|
|
|
|
// Make $t globally available
|
|
app.config.globalProperties.$t = i18n.global.t;
|
|
|
|
// this force the creation and initialization of the stores
|
|
useSubscriptionStore()
|
|
useAuthStore()
|
|
useUserProfileStore()
|
|
useCreatorProfileStore()
|
|
|
|
app.mount('#app');
|