Skip to content

Commit

Permalink
docs: fix after inject refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 29, 2023
1 parent 3b183ac commit 5cf3bcf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/components/content/themes/CommandPaletteThemeAlgolia.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<script setup>
const commandPaletteRef = ref()
const navigation = inject('navigation')
const links = inject('links')
const { data: files } = await useLazyAsyncData('search', () => queryContent().where({ _type: 'markdown' }).find(), { default: () => [] })
const groups = computed(() => navigation.value.map(item => ({
key: item._path,
label: item.title,
commands: files.value.filter(file => file._path.startsWith(item._path)).map(file => ({
const groups = computed(() => links.value.map(item => ({
key: item.to,
label: item.label,
commands: files.value.filter(file => file._path.startsWith(item.to)).map(file => ({
id: file._id,
icon: 'i-heroicons-document',
title: file.navigation?.title || file.title,
Expand Down

1 comment on commit 5cf3bcf

@vercel
Copy link

@vercel vercel bot commented on 5cf3bcf Jul 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui.nuxtlabs.com
ui-git-dev-nuxtlabs.vercel.app
ui-nuxtlabs.vercel.app

Please sign in to comment.