diff --git a/package.json b/package.json index 43ba65f0..a7be6eec 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "crypto-js": "^4.1.1", "date-fns": "^2.29.3", "figue": "^1.2.0", + "fuse.js": "^6.6.2", "highlight.js": "^11.6.0", "json5": "^2.2.1", "lodash": "^4.17.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f61621e5..b7f2a228 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,6 +38,7 @@ specifiers: eslint-plugin-import: ^2.26.0 eslint-plugin-vue: ^8.7.1 figue: ^1.2.0 + fuse.js: ^6.6.2 highlight.js: ^11.6.0 jsdom: ^19.0.0 json5: ^2.2.1 @@ -81,6 +82,7 @@ dependencies: crypto-js: 4.1.1 date-fns: 2.29.3 figue: 1.2.0 + fuse.js: 6.6.2 highlight.js: 11.6.0 json5: 2.2.1 lodash: 4.17.21 @@ -4054,6 +4056,11 @@ packages: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} dev: true + /fuse.js/6.6.2: + resolution: {integrity: sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==} + engines: {node: '>=10'} + dev: false + /gensync/1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue index 7305239e..b1645ece 100644 --- a/src/components/SearchBar.vue +++ b/src/components/SearchBar.vue @@ -1,30 +1,22 @@