To prevent duplication of elements when the user clicks/reloads a section multiple times we add 'activeHotCardTypes' to track for each card type on the homepage, and for every other section only one card type will be active.
- 'backupImgElements' and 'holoElements' arrays were added to restore the img nodes and avoid duplication of the holo effect on cards.
- Renamed variables for consistency and improve meaning.
Refreshing is no longer needed if the user updates his plugin configuration.
- Reorganize code
- Move configuration/settings related code to configuartionHandler.js
- Move registerPathChangeListener function to helpers.js
- Add function to update configuration if user comes from /settings page
card_opts allows you to specify whether you want the card to be filled or not, and also set the opacity of the card.
Other changes:
- Adjust README to include the new option and other additions.
- Change misleading param name 'border_opts' to 'hover_opts' in the docs, code and in the configuration file.
- Update version to 1.1.2.
* Fix data is undefined error
The error wasn't breaking anything, but it was unnecesary for it to happen.
* Add flexibility to also modify style presets
The gradient angle and animation, as well as the border color and border animation of the style presets can now be modified using the field format.
* Update README with images and enhancements
* Update version
* Update README
* Fix inconsistent height of hot cards in the home page
* Refactor CSS
* Rename classes for clarity
- hot-border -> hot-card
- hot-card -> hot-border
* Add support for 0-5 rating threshold alongside 0-100 range
* Improve configuration strings
* Add missed fallback
* Add customizable Hot Cards
- Allow users to specify Hot Cards to use tag-based or rating-based for each card type.
- Introduce a new custom string format for more flexible and detailed customization.
- Update README with detailed instructions, and examples.
* [hotcards] add ?. fallbacks and clean regex, fix dependency chain
- use ?. to not fail when loading from `{}`
- use Object.values instead of Object.entries
- clean up regex with repeating patterns
- use pathname to pre-strip parameters
- move css to bottom, to ensure depencies load first
* prettier
---------
Co-authored-by: feederbox826 <feederbox826@users.noreply.github.com>