-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add trigger specification cache to Htmxor #44
Commits on May 9, 2024
-
feat: Add trigger specification cache to Htmxor
This update introduces a trigger specification cache to the Htmxor library. The new feature improves parsing performance by storing evaluated trigger specifications, albeit at the cost of increased memory usage. Users can define a simple object for a never-clearing cache or implement their own system using a proxy object. The changes include: - Addition of `TriggerSpecificationCache` class and related methods in `HtmxConfig.cs` - Creation of new files `HtmxTriggerSpecification.cs`, `ITriggerBuilder.cs`, `TriggerBuilder.cs`, `TriggerModifierBuilder.cs` and `TriggerQueueOption.cs` to handle trigger specifications - Update in the Program file to show use of this new feature with keyup and mouseenter events
Configuration menu - View commit details
-
Copy full SHA for 908774b - Browse repository at this point
Copy the full SHA 908774bView commit details -
feat: enhance trigger specification creation in Htmxor
Refactored the trigger specification in HtmxorExamples. Added static Trigger class to simplify creation of triggers that provides more fluent methods for constructing triggers.
Configuration menu - View commit details
-
Copy full SHA for a015b17 - Browse repository at this point
Copy the full SHA a015b17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b4270a - Browse repository at this point
Copy the full SHA 4b4270aView commit details
Commits on May 10, 2024
-
feat: Update trigger methods in Razor components
Updated the hx-trigger method calls in several Razor components to use a more structured approach. This includes changes in InfiniteScroll, TriggeringEvents, and TriggeringEventsIndirectly examples. Also updated the TriggerSpecificationCache in Program.cs to reflect these changes and demonstrate usage of different triggers.
Configuration menu - View commit details
-
Copy full SHA for 52418e5 - Browse repository at this point
Copy the full SHA 52418e5View commit details -
fix: Update trigger event handling
Updated the way trigger events are handled in the code. Replaced 'WithCondition' method with 'From'.
Configuration menu - View commit details
-
Copy full SHA for 1eed04a - Browse repository at this point
Copy the full SHA 1eed04aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ceda12 - Browse repository at this point
Copy the full SHA 9ceda12View commit details -
refactor: Expanded Trigger functionality in Htmxor library
Adds documentation for each of the TriggerBuilder and TriggerModifierBuilder methods
Configuration menu - View commit details
-
Copy full SHA for 1bbf7a9 - Browse repository at this point
Copy the full SHA 1bbf7a9View commit details -
test: Add TriggerBuilder and TriggerSpecificationCache unit tests
Added comprehensive unit tests for the `TriggerBuilder` and `TriggerSpecificationCache` classes. These tests cover all methods in both classes, ensuring correct functionality of trigger creation, modification, and caching. The tests also validate the correct JSON serialization of triggers.
Configuration menu - View commit details
-
Copy full SHA for f60b979 - Browse repository at this point
Copy the full SHA f60b979View commit details
Commits on May 12, 2024
-
feat: update trigger constants and usage
Added new constant values for triggers and trigger modifiers in the Constants class. Updated TriggerBuilder to use these constants instead of hardcoded strings, improving code maintainability and consistency.
Configuration menu - View commit details
-
Copy full SHA for ae84ae2 - Browse repository at this point
Copy the full SHA ae84ae2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4f0f96 - Browse repository at this point
Copy the full SHA a4f0f96View commit details -
style: reformat test files for readability
Reformatted the `TriggerBuilderTests.cs` and `TriggerSpecificationCacheTests.cs` test files to improve code readability. No changes were made to the logic or functionality of the tests.
Configuration menu - View commit details
-
Copy full SHA for 803a848 - Browse repository at this point
Copy the full SHA 803a848View commit details -
style: adjust code formatting and comments
Adjusted the indentation in several files to improve readability. Also, corrected a typographical error in a comment.
Configuration menu - View commit details
-
Copy full SHA for bb39840 - Browse repository at this point
Copy the full SHA bb39840View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa53ae0 - Browse repository at this point
Copy the full SHA aa53ae0View commit details -
refactor: rename 'selector' to 'cssSelector'
Renamed the variable 'selector' to 'cssSelector' across multiple methods in SwapStyleBuilder and SwapStyleBuilderExtension classes for better clarity and understanding of its purpose. This change does not affect the functionality of the code.
Configuration menu - View commit details
-
Copy full SHA for 781ffdb - Browse repository at this point
Copy the full SHA 781ffdbView commit details -
docs: update parameter descriptions in SwapStyleBuilderExtension
Updated the descriptions of 'cssSelector' parameters in various methods of the SwapStyleBuilderExtension class. The term "CSS cssSelector" has been replaced with "css selector" for clarity and consistency throughout the documentation comments.
Configuration menu - View commit details
-
Copy full SHA for 37989f3 - Browse repository at this point
Copy the full SHA 37989f3View commit details -
fix: make cssSelector parameter optional in SwapStyleBuilderExtension…
… methods The cssSelector parameter in Scroll, ScrollTop, and ScrollBottom methods of the SwapStyleBuilderExtension class is now optional.
Configuration menu - View commit details
-
Copy full SHA for 6c9b2c2 - Browse repository at this point
Copy the full SHA 6c9b2c2View commit details
Commits on May 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 728eca1 - Browse repository at this point
Copy the full SHA 728eca1View commit details -
fix: simplified creating trigger spec dictionary using collection exp…
…ression syntax, removed unneeded abstraction
Configuration menu - View commit details
-
Copy full SHA for 3710af2 - Browse repository at this point
Copy the full SHA 3710af2View commit details