* chore: remove old locales + just enable all locales now * feat: debug panel for i18n + tooltips * feat: dedupe * fix: debugger for app * fix: crowdin code mismatches * fix: lint
39 lines
1.0 KiB
Vue
39 lines
1.0 KiB
Vue
<template>
|
|
<NuxtLayout>
|
|
<NuxtRouteAnnouncer />
|
|
<ModrinthLoadingIndicator />
|
|
<NotificationPanel />
|
|
<I18nDebugPanel />
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import {
|
|
I18nDebugPanel,
|
|
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>
|