docs: add @nuxt/ui-pro source (#2775)

This commit is contained in:
Benjamin Canac
2024-12-04 21:15:07 +01:00
committed by GitHub
parent e79103131f
commit 01c3934403
24 changed files with 880 additions and 149 deletions

View File

@@ -11,7 +11,7 @@ const route = useRoute()
const appConfig = useAppConfig()
const colorMode = useColorMode()
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('content', ['framework']))
const { data: navigation } = await useAsyncData('navigation', () => queryCollectionNavigation('content', ['framework', 'module']))
const { data: files } = useLazyAsyncData('search', () => queryCollectionSearchSections('content'), {
server: false
})
@@ -81,7 +81,7 @@ useServerSeoMeta({
twitterCard: 'summary_large_image'
})
const { frameworks } = useSharedData()
const { frameworks, modules } = useSharedData()
const { mappedNavigation, filteredNavigation } = useContentNavigation(navigation)
provide('navigation', mappedNavigation)
@@ -97,7 +97,7 @@ provide('navigation', mappedNavigation)
<UError :error="error" />
<Footer />
<!-- <Footer /> -->
<ClientOnly>
<LazyUContentSearch
@@ -107,6 +107,10 @@ provide('navigation', mappedNavigation)
id: 'framework',
label: 'Framework',
items: frameworks
}, {
id: 'module',
label: 'Module',
items: modules
}]"
:navigation="filteredNavigation"
:fuse="{ resultLimit: 42 }"