File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import type { ContentNavigationItem } from ' @nuxt/content'
3- // import type { NavigationMenuItem } from '@nuxt/ui'
4-
5- // const props = defineProps<{
6- // links: NavigationMenuItem[]
7- // }>()
83
94const config = useRuntimeConfig ().public
105
11- const nav = inject <Ref <ContentNavigationItem []>>(' navigation' )
12-
13- // const items = computed(() => props.links.map(({ icon, ...link }) => link))
14- const navigation = computed (() => nav ?.value .find (item => item .path === ' /docs' )?.children || [])
6+ const navigation = inject <Ref <ContentNavigationItem []>>(' navigation' )
157
168defineShortcuts ({
179 meta_g : () => {
Original file line number Diff line number Diff line change 1- import type { ContentNavigationItem , PageCollectionItemBase } from '@nuxt/content'
1+ import type { ContentNavigationItem , PageCollectionItemBase , CollectionQueryBuilder } from '@nuxt/content'
22import { pascalCase } from 'scule'
3- import type { CollectionQueryBuilder } from '~/src/types'
43
54/**
65 * Create NavItem array to be consumed from runtime plugin.
You can’t perform that action at this time.
0 commit comments