Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Oct 11, 2023
1 parent 9035a52 commit 5d9d420
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions components/content/LinkExample.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<Callout icon="i-ph-app-window-duotone">
Read and edit a live example in
<NuxtLink :to="link">
<NuxtLink :to="to">
{{ computedTitle }}
</NuxtLink>.
</Callout>
Expand All @@ -11,7 +11,7 @@
import type { ComputedRef } from 'vue'
const props = defineProps({
link: {
to: {
type: String,
required: true
},
Expand All @@ -22,5 +22,5 @@ const props = defineProps({
}
})
const computedTitle: ComputedRef<string> = computed(() => createBreadcrumb(props.link))
const computedTitle: ComputedRef<string> = computed(() => createBreadcrumb(props.to))
</script>
4 changes: 1 addition & 3 deletions plugins/components.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { UButton, UPageGrid, UPageCard } from '#components'
import { UButton } from '#components'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component('UButton', UButton)
nuxtApp.vueApp.component('UPageGrid', UPageGrid)
nuxtApp.vueApp.component('UPageCard', UPageCard)
})
9 changes: 8 additions & 1 deletion server/api/search.json.get.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { serverQueryContent } from '#content/server'

export default eventHandler(async (event) => {
return serverQueryContent(event, '/docs').where({ _type: 'markdown', navigation: { $ne: false } }).find()
let files = await serverQueryContent(event, '/docs').where({
_type: 'markdown',
navigation: { $ne: false }
}).find()

files = files.filter(file => !file._path.startsWith('/docs/bridge') && !file._path.startsWith('/docs/migration'))

return files
})

0 comments on commit 5d9d420

Please sign in to comment.