mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
12 lines
382 B
JavaScript
12 lines
382 B
JavaScript
export default defineNuxtPlugin(async (nuxtApp) => {
|
|
const authStore = await useAuth()
|
|
await useUser()
|
|
const cosmeticsStore = useCosmetics()
|
|
const tagsStore = useTags()
|
|
|
|
nuxtApp.provide('auth', authStore.value)
|
|
nuxtApp.provide('cosmetics', cosmeticsStore.value)
|
|
nuxtApp.provide('tag', tagsStore.value)
|
|
nuxtApp.provide('notify', (notif) => addNotification(notif))
|
|
})
|