diff --git a/nuxt.config.js b/nuxt.config.js index f7d699d..b269998 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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', diff --git a/package.json b/package.json index d6e6bd4..a5f3d15 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/site/plugins/flexsearch.js b/src/site/plugins/flexsearch.js deleted file mode 100644 index 2e1df36..0000000 --- a/src/site/plugins/flexsearch.js +++ /dev/null @@ -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; - } -}; diff --git a/yarn.lock b/yarn.lock index a1ed28d..44ef08c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"