This commit is contained in:
2025-07-31 15:18:46 +08:00
parent ce50120e40
commit 9cea296e6c
7 changed files with 18 additions and 19 deletions

View File

@@ -14,7 +14,7 @@
}, {
label: 'JiWei',
to: 'https://www.xajiwei.com/'
},
}
]"
:ui="{ content: 'w-(--reka-dropdown-menu-trigger-width) min-w-0' }"
size="xs"

View File

@@ -7,8 +7,7 @@ const items = ref<NavigationMenuItem[][]>([
label: '稷维科技',
icon: 'lucide-globe',
to: 'https://www.xajiwei.com',
target: '_blank',
target: '_blank'
},
{
@@ -20,8 +19,8 @@ const items = ref<NavigationMenuItem[][]>([
label: '关于',
icon: 'lucide-info',
to: '/about'
},
}
]
// [
// {

View File

@@ -2,15 +2,15 @@
const props = defineProps({
type: {
type: String,
default: () => '',
},
default: () => ''
}
})
const alertClass = computed(() => {
return {
warning: 'bg-orange-100 border-orange-200 dark:bg-orange-900 dark:border-orange-800',
info: 'bg-blue-100 border-blue-200 dark:bg-blue-900 dark:border-blue-800',
success: 'bg-green-100 border-green-200 dark:bg-green-900 dark:border-green-800',
success: 'bg-green-100 border-green-200 dark:bg-green-900 dark:border-green-800'
}[props.type]
})

View File

@@ -7,8 +7,8 @@ const { data } = await useAsyncData('search-data', () => queryCollectionSearchSe
const fuse = new Fuse(data.value || [], {
keys: [
'title',
'description',
],
'description'
]
})
const result = computed<Array<{ item: typeof data.value[0] }>>(() => fuse.search(toValue(query)).slice(0, 10))

View File

@@ -9,8 +9,8 @@ const miniSearch = new MiniSearch({
storeFields: ['title', 'content'],
searchOptions: {
prefix: true,
fuzzy: 0.2,
},
fuzzy: 0.2
}
})
// Add data to the MiniSearch instance

View File

@@ -2,16 +2,16 @@
defineProps({
title: {
type: String,
default: 'Default title',
default: 'Default title'
},
description: {
type: String,
default: 'Default description',
default: 'Default description'
},
icon: {
type: String,
default: 'IconMarkdown',
},
default: 'IconMarkdown'
}
})
</script>

View File

@@ -77,7 +77,7 @@ export default defineNuxtConfig({
title: 'Estel Docs',
description: 'Estel Docs 文档系统',
contentCollection: 'docs'
},
],
},
}
]
}
})