11<!-- eslint-disable vue/no-v-html -->
22<template >
33 <div >
4- <Header />
4+ <Header v-if = " !$route.path.startsWith('/examples') " :links = " links " />
55
66 <NuxtLayout >
77 <NuxtPage />
88 </NuxtLayout >
99
10- <Footer />
10+ <Footer v-if = " !$route.path.startsWith('/examples') " />
1111
1212 <ClientOnly >
13- <LazyUDocsSearch ref =" searchRef" :files =" files" :navigation =" navigation" :groups =" groups" />
13+ <LazyUDocsSearch ref =" searchRef" :files =" files" :navigation =" navigation" :groups =" groups" :links = " links " />
1414 </ClientOnly >
1515
1616 <UNotifications >
@@ -42,10 +42,17 @@ const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', { defa
4242// Computed
4343
4444const navigation = computed (() => {
45- const main = nav .value .filter (item => item ._path !== ' /dev' )
46- const dev = nav .value .find (item => item ._path === ' /dev' )?.children
45+ if (branch .value ?.name === ' dev' ) {
46+ const dev = nav .value .find (item => item ._path === ' /dev' )?.children
47+ const pro = nav .value .find (item => item ._path === ' /pro' )
48+
49+ return [
50+ pro ,
51+ ... dev
52+ ]
53+ }
4754
48- return branch .value ?. name = == ' dev' ? dev : main
55+ return nav .value . filter ( item => item . _path ! == ' / dev' )
4956})
5057
5158const groups = computed (() => {
@@ -58,6 +65,54 @@ const groups = computed(() => {
5865
5966const color = computed (() => colorMode .value === ' dark' ? ' #18181b' : ' white' )
6067
68+ const links = computed (() => {
69+ return [{
70+ label: ' Documentation' ,
71+ icon: ' i-heroicons-book-open' ,
72+ to: ` ${branch .value ?.name === ' dev' ? ' /dev' : ' ' }/getting-started `
73+ }, {
74+ label: ' Playground' ,
75+ icon: ' i-simple-icons-stackblitz' ,
76+ to: ' /playground'
77+ }, {
78+ label: ' Roadmap' ,
79+ icon: ' i-heroicons-academic-cap' ,
80+ to: ' /roadmap'
81+ }, {
82+ label: ' Pro' ,
83+ icon: ' i-heroicons-square-3-stack-3d' ,
84+ to: ' /pro' ,
85+ children: [{
86+ label: ' Features' ,
87+ to: ' /pro#features' ,
88+ exactHash: true ,
89+ icon: ' i-heroicons-beaker' ,
90+ description: ' Discover all the features of Nuxt UI Pro.'
91+ }, {
92+ label: ' Pricing' ,
93+ to: ' /pro#pricing' ,
94+ exactHash: true ,
95+ icon: ' i-heroicons-credit-card' ,
96+ description: ' A simple pricing, for solo developers or teams.'
97+ }, {
98+ label: ' Guide' ,
99+ to: ' /pro/guide' ,
100+ icon: ' i-heroicons-book-open' ,
101+ description: ' Learn how to use Nuxt UI Pro in your app.'
102+ }, {
103+ label: ' Components' ,
104+ to: ' /pro/components' ,
105+ icon: ' i-heroicons-cube-transparent' ,
106+ description: ' Discover all the components available in Nuxt UI Pro.'
107+ }]
108+ }, {
109+ label: ' Releases' ,
110+ icon: ' i-heroicons-rocket-launch' ,
111+ to: ' https://github.com/nuxt/ui/releases' ,
112+ target: ' _blank'
113+ }]
114+ })
115+
61116// Watch
62117
63118watch (() => searchRef .value ?.commandPaletteRef ?.query , debounce ((query : string ) => {
0 commit comments