🔧:build SSR dist and deploy

This commit is contained in:
NEO 2024-04-28 00:48:29 +08:00
parent 76c26901d7
commit c59ad6aedb
465 changed files with 214127 additions and 2 deletions

22
dist/server/chunks/chunk-2ce6ed5e.js vendored Normal file
View file

@ -0,0 +1,22 @@
import { get } from '@vueuse/core';
import Fuse from 'fuse.js';
import { computed } from 'vue';
function useFuzzySearch({
search,
data,
options = {}
}) {
const fuse = new Fuse(data, options);
const filterEmpty = options.filterEmpty ?? true;
const searchResult = computed(() => {
const query = get(search);
if (!filterEmpty && query === "") {
return data;
}
return fuse.search(query).map(({ item }) => item);
});
return { searchResult };
}
export { useFuzzySearch as u };