feat: Add fuzzy search to patches search (#229)

* feat: Fuzzy Search

Co-authored-by: Kendell R <KTibow@users.noreply.github.com>

* slightly change the init logic

* fix behavior

* fix sort behavior
i am so good at reading docs

* update the search results on load

* switch to fuse js

* lower the threshold per @oSumAtrIX request

---------

Co-authored-by: Kendell R <KTibow@users.noreply.github.com>
Co-authored-by: afn <hey@afn.im>
This commit is contained in:
Ushie
2024-04-27 20:29:52 +03:00
committed by GitHub
parent f86456cb4c
commit 9275193333
4 changed files with 64 additions and 63 deletions

View File

@@ -21,6 +21,7 @@
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"fuse.js": "^7.0.0",
"imagetools-core": "^6.0.3",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",