fix lint
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
}, {
|
||||
label: 'JiWei',
|
||||
to: 'https://www.xajiwei.com/'
|
||||
},
|
||||
}
|
||||
]"
|
||||
:ui="{ content: 'w-(--reka-dropdown-menu-trigger-width) min-w-0' }"
|
||||
size="xs"
|
||||
|
@@ -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'
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
]
|
||||
// [
|
||||
// {
|
||||
|
@@ -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]
|
||||
})
|
||||
|
@@ -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))
|
||||
|
@@ -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
|
||||
|
@@ -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>
|
||||
|
||||
|
@@ -77,7 +77,7 @@ export default defineNuxtConfig({
|
||||
title: 'Estel Docs',
|
||||
description: 'Estel Docs 文档系统',
|
||||
contentCollection: 'docs'
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user