Remove flexsearch
This commit is contained in:
parent
fb2c27086f
commit
279cde7dd3
|
@ -65,7 +65,6 @@ export default {
|
|||
'~/plugins/v-clipboard',
|
||||
'~/plugins/vue-isyourpasswordsafe',
|
||||
'~/plugins/vue-timeago',
|
||||
'~/plugins/flexsearch',
|
||||
'~/plugins/vuebar',
|
||||
'~/plugins/nuxt-client-init',
|
||||
'~/plugins/notifier',
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
"express-rate-limit": "^3.4.0",
|
||||
"ffmpeg-generate-video-preview": "^1.0.3",
|
||||
"file-saver": "^2.0.1",
|
||||
"flexsearch": "^0.6.22",
|
||||
"fluent-ffmpeg": "^2.1.2",
|
||||
"fs-jetpack": "^2.2.2",
|
||||
"helmet": "^3.15.1",
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
import Vue from 'vue';
|
||||
import FlexSearch from 'flexsearch';
|
||||
|
||||
const search = new FlexSearch('speed');
|
||||
|
||||
// https://github.com/nextapps-de/flexsearch
|
||||
|
||||
Vue.prototype.$search = {
|
||||
'items': async items => {
|
||||
await search.clear();
|
||||
await search.add(items);
|
||||
},
|
||||
'do': async (term, field) => {
|
||||
const results = await search.search(term, { field });
|
||||
return results;
|
||||
}
|
||||
};
|
|
@ -4372,11 +4372,6 @@ flatten@^1.0.2:
|
|||
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.3.tgz#c1283ac9f27b368abc1e36d1ff7b04501a30356b"
|
||||
integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==
|
||||
|
||||
flexsearch@^0.6.22:
|
||||
version "0.6.32"
|
||||
resolved "https://registry.yarnpkg.com/flexsearch/-/flexsearch-0.6.32.tgz#1e20684d317af65baa445cdd9864a5f5b320f510"
|
||||
integrity sha512-EF1BWkhwoeLtbIlDbY/vDSLBen/E5l/f1Vg7iX5CDymQCamcx1vhlc3tIZxIDplPjgi0jhG37c67idFbjg+v+Q==
|
||||
|
||||
fluent-ffmpeg@^2.1.2:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/fluent-ffmpeg/-/fluent-ffmpeg-2.1.2.tgz#c952de2240f812ebda0aa8006d7776ee2acf7d74"
|
||||
|
|
Loading…
Reference in New Issue