You've already forked AstralRinth
* Refactor search page, migrate to /discover/ * Add NormalPage component for common layouts, refactor Collections page as an example, misc ui pkg cleanup * intl:extract * lint * lint * remove old components * Refactor search page, migrate to /discover/ * Add NormalPage component for common layouts, refactor Collections page as an example, misc ui pkg cleanup * intl:extract * lint * lint * remove old components
36 lines
962 B
Vue
36 lines
962 B
Vue
<template>
|
|
<NuxtLayout>
|
|
<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>
|