Move shout module to store

This commit is contained in:
Sean King 2023-04-04 21:17:54 -06:00
commit aa6c13f9e6
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
8 changed files with 50 additions and 61 deletions

View file

@ -1,5 +1,4 @@
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createRouter, createWebHistory } from 'vue-router'
import vClickOutside from 'click-outside-vue3'
import VueVirtualScroller from 'vue-virtual-scroller'
@ -341,7 +340,10 @@ const checkOAuthToken = async ({ store }) => {
})
}
const afterStoreSetup = async ({ store, i18n }) => {
const afterStoreSetup = async ({ pinia, store, i18n }) => {
const app = createApp(App)
app.use(pinia)
store.dispatch('setLayoutWidth', windowWidth())
store.dispatch('setLayoutHeight', windowHeight())
@ -397,11 +399,6 @@ const afterStoreSetup = async ({ store, i18n }) => {
}
})
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
useI18nStore().setI18n(i18n)
app.use(router)