Adds brandingStore.
Split userStore into userProfileStore and creatorProfileStore
This commit is contained in:
12
src/main.js
12
src/main.js
@@ -11,8 +11,9 @@ 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 {useUserStore} from "@/stores/userStore.js";
|
||||
import i18n from './i18n.js';
|
||||
import {useUserProfileStore} from "@/stores/userProfileStore.js";
|
||||
import {useCreatorProfileStore} from "@/stores/creatorProfileStore.js";
|
||||
|
||||
const vuetify = createVuetify({
|
||||
components,
|
||||
@@ -31,9 +32,10 @@ const app = createApp(App)
|
||||
// Make $t globally available
|
||||
app.config.globalProperties.$t = i18n.global.t;
|
||||
|
||||
// this force the creation of the stores
|
||||
const subscriptionStore = useSubscriptionStore()
|
||||
const authStore = useAuthStore()
|
||||
const userStore = useUserStore()
|
||||
// this force the creation and initialization of the stores
|
||||
useSubscriptionStore()
|
||||
useAuthStore()
|
||||
useUserProfileStore()
|
||||
useCreatorProfileStore()
|
||||
|
||||
app.mount('#app');
|
||||
|
||||
Reference in New Issue
Block a user