From 182d4dd81a7b776d7cdfd721f8c07cb0f91fe11a Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 9 Jul 2024 15:24:23 +0200 Subject: [PATCH] docs: update --- docs/app/app.vue | 38 +++++++++++++++++++++++++++----------- docs/app/error.vue | 4 +--- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/docs/app/app.vue b/docs/app/app.vue index 7e326eae..a17d8245 100644 --- a/docs/app/app.vue +++ b/docs/app/app.vue @@ -21,17 +21,33 @@ const searchTerm = ref('') // useTrackEvent('Search', { props: { query: `${query} - ${searchTerm.value?.commandPaletteRef.results.length} results` } }) // }, 500)) -const links = computed(() => [{ - label: 'Docs', - icon: 'i-heroicons-book-open', - to: '/getting-started', - active: route.path.startsWith('/getting-started') -}, { - label: 'Components', - icon: 'i-heroicons-cube-transparent', - to: '/components', - active: route.path.startsWith('/components') -}].filter(Boolean)) +const links = computed(() => { + return [{ + label: 'Docs', + icon: 'i-heroicons-book-open', + to: '/getting-started', + active: route.path.startsWith('/getting-started') || route.path.startsWith('/components') + }, ...(navigation.value.find(item => item._path === '/pro') + ? [{ + label: 'Pro', + icon: 'i-heroicons-square-3-stack-3d', + 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') diff --git a/docs/app/error.vue b/docs/app/error.vue index ff190cba..dc97b2bc 100644 --- a/docs/app/error.vue +++ b/docs/app/error.vue @@ -89,8 +89,6 @@ provide('files', files)