mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 18:30:35 +01:00
docs: update
This commit is contained in:
@@ -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')
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user