From d8a83066032b172361bbac79d17065e2d098434e Mon Sep 17 00:00:00 2001 From: Michcio Date: Mon, 19 Sep 2022 14:43:12 +0000 Subject: [PATCH] client: Sort emojis by query similarity in fuzzy picker (#156) Co-authored-by: Chloe Kudryavtsev Co-authored-by: Michcio Reviewed-on: https://akkoma.dev/FoundKeyGang/FoundKey/pulls/156 Changelog: Changed Co-authored-by: Michcio Co-committed-by: Michcio --- packages/client/package.json | 1 + .../client/src/components/emoji-picker.vue | 35 +++++++--- yarn.lock | 70 +++++++++++++++++++ 3 files changed, 98 insertions(+), 8 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index 94fb20168..c34b2035d 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -60,6 +60,7 @@ "strict-event-emitter-types": "2.0.0", "stringz": "2.1.0", "syuilo-password-strength": "0.0.1", + "talisman": "^1.1.4", "textarea-caret": "3.1.0", "three": "0.142.0", "throttle-debounce": "5.0.0", diff --git a/packages/client/src/components/emoji-picker.vue b/packages/client/src/components/emoji-picker.vue index c9214256f..e7c805ced 100644 --- a/packages/client/src/components/emoji-picker.vue +++ b/packages/client/src/components/emoji-picker.vue @@ -80,6 +80,7 @@