You've already forked AstralRinth
* feat: nuxt 3.14 → 3.15.4 * feat: nuxt 3.15.4 → 3.16.2 (vite 6) * feat: bump nuxt-i18n * feat: nuxt 3.20 * fix: lint * feat: use rolldown-vite * fix: shut the fuck up * fix: silence for app as well * fix: vue-router mismatch --------- Signed-off-by: Calum H. <contact@cal.engineer>
37 lines
987 B
Vue
37 lines
987 B
Vue
<template>
|
|
<NuxtLayout>
|
|
<NuxtRouteAnnouncer />
|
|
<ModrinthLoadingIndicator />
|
|
<NotificationPanel />
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import {
|
|
NotificationPanel,
|
|
provideModrinthClient,
|
|
provideNotificationManager,
|
|
providePageContext,
|
|
} from '@modrinth/ui'
|
|
|
|
import ModrinthLoadingIndicator from '~/components/ui/modrinth-loading-indicator.ts'
|
|
import { createModrinthClient } from '~/helpers/api.ts'
|
|
import { FrontendNotificationManager } from '~/providers/frontend-notifications.ts'
|
|
|
|
const auth = await useAuth()
|
|
const config = useRuntimeConfig()
|
|
|
|
provideNotificationManager(new FrontendNotificationManager())
|
|
|
|
const client = createModrinthClient(auth, {
|
|
apiBaseUrl: config.public.apiBaseUrl.replace('/v2/', '/'),
|
|
archonBaseUrl: config.public.pyroBaseUrl.replace('/v2/', '/'),
|
|
rateLimitKey: config.rateLimitKey,
|
|
})
|
|
provideModrinthClient(client)
|
|
providePageContext({
|
|
hierarchicalSidebarAvailable: ref(false),
|
|
showAds: ref(false),
|
|
})
|
|
</script>
|