yy4382 / s3-image-port

A dashboard to manage your images in S3 buckets. Can be used as a image hosting service.
https://iport.yfi.moe
Apache License 2.0
29 stars 14 forks source link

Optimize gallery #32

Closed BlockLune closed 5 months ago

BlockLune commented 6 months ago

Add a search bar.

Close #31

TODO:

BlockLune commented 5 months ago

I can't figure out how to adjust the fuzziness of the fuzzy search at the moment, maybe add a switch for turning the fuzzy search on or off first?

yy4382 commented 5 months ago

I can't figure out how to adjust the fuzziness of the fuzzy search at the moment, maybe add a switch for turning the fuzzy search on or off first?

https://www.fusejs.io/api/options.html#distance maybe this. You can config fuse in useFuse. The result limit is also configurable.

BlockLune commented 5 months ago

I can't figure out how to adjust the fuzziness of the fuzzy search at the moment, maybe add a switch for turning the fuzzy search on or off first?

https://www.fusejs.io/api/options.html#distance maybe this. You can config fuse in useFuse. The result limit is also configurable.

I still don't know how to do that :sob:

image
yy4382 commented 5 months ago

I can't figure out how to adjust the fuzziness of the fuzzy search at the moment, maybe add a switch for turning the fuzzy search on or off first?

https://www.fusejs.io/api/options.html#distance maybe this. You can config fuse in useFuse. The result limit is also configurable.

I still don't know how to do that 😭

image

Read the Type Declarations. Maybe you should wrap it in the fuseOptions object

yy4382 commented 5 months ago

Merge it for now. For additional features, it would be best to open a separate PR.