docs: update

This commit is contained in:
Benjamin Canac
2024-07-09 15:24:23 +02:00
parent eba8b4b31a
commit 182d4dd81a
2 changed files with 28 additions and 14 deletions

View File

@@ -21,17 +21,33 @@ const searchTerm = ref('')
// useTrackEvent('Search', { props: { query: `${query} - ${searchTerm.value?.commandPaletteRef.results.length} results` } }) // useTrackEvent('Search', { props: { query: `${query} - ${searchTerm.value?.commandPaletteRef.results.length} results` } })
// }, 500)) // }, 500))
const links = computed(() => [{ const links = computed(() => {
label: 'Docs', return [{
icon: 'i-heroicons-book-open', label: 'Docs',
to: '/getting-started', icon: 'i-heroicons-book-open',
active: route.path.startsWith('/getting-started') to: '/getting-started',
}, { active: route.path.startsWith('/getting-started') || route.path.startsWith('/components')
label: 'Components', }, ...(navigation.value.find(item => item._path === '/pro')
icon: 'i-heroicons-cube-transparent', ? [{
to: '/components', label: 'Pro',
active: route.path.startsWith('/components') icon: 'i-heroicons-square-3-stack-3d',
}].filter(Boolean)) to: '/pro',
active: route.path.startsWith('/pro/getting-started') || route.path.startsWith('/pro/components') || route.path.startsWith('/pro/prose')
}, {
label: 'Pricing',
icon: 'i-heroicons-credit-card',
to: '/pro/pricing'
}, {
label: 'Templates',
icon: 'i-heroicons-computer-desktop',
to: '/pro/templates'
}]
: []), {
label: 'Releases',
icon: 'i-heroicons-rocket-launch',
to: '/releases'
}].filter(Boolean)
})
// const color = computed(() => colorMode.value === 'dark' ? '#18181b' : 'white') // const color = computed(() => colorMode.value === 'dark' ? '#18181b' : 'white')

View File

@@ -89,8 +89,6 @@ provide('files', files)
<Footer /> <Footer />
<!-- <ClientOnly> <LazyUContentSearch :files="files" :navigation="navigation" :fuse="{ resultLimit: 42 }" />
<LazyUContentSearch :files="files" :navigation="navigation" :links="links" :fuse="{ resultLimit: 42 }" />
</ClientOnly> -->
</UApp> </UApp>
</template> </template>