From 1cad7828e624ba8a8941d3def0423d09d3a297d5 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 3 Mar 2023 12:11:47 -0800 Subject: [PATCH] face-list: add search bar (fix #177) --- package-lock.json | 14 +++++++++++++ package.json | 1 + src/components/modal/FaceList.vue | 35 +++++++++++++++++++++++++++++-- 3 files changed, 48 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index facbf0e9..b6b4e6ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@nextcloud/vue": "7.4.0", "camelcase": "^7.0.1", "filerobot-image-editor": "^4.3.7", + "fuse.js": "^6.6.2", "justified-layout": "^4.1.0", "leaflet": "^1.9.3", "leaflet-edgebuffer": "^1.0.6", @@ -4984,6 +4985,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/fuse.js": { + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-6.6.2.tgz", + "integrity": "sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==", + "engines": { + "node": ">=10" + } + }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -14359,6 +14368,11 @@ "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", "dev": true }, + "fuse.js": { + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-6.6.2.tgz", + "integrity": "sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==" + }, "gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", diff --git a/package.json b/package.json index 34a2a1f9..bdba359e 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "@nextcloud/vue": "7.4.0", "camelcase": "^7.0.1", "filerobot-image-editor": "^4.3.7", + "fuse.js": "^6.6.2", "justified-layout": "^4.1.0", "leaflet": "^1.9.3", "leaflet-edgebuffer": "^1.0.6", diff --git a/src/components/modal/FaceList.vue b/src/components/modal/FaceList.vue index 7b0b4178..07246a3f 100644 --- a/src/components/modal/FaceList.vue +++ b/src/components/modal/FaceList.vue @@ -1,5 +1,14 @@