Enhance Lora and recipe integration with improved filtering and UI updates

- Added support for filtering LoRAs by hash in both API and UI components.
- Implemented session storage management for custom filter states when navigating between recipes and LoRAs.
- Introduced a new button in the recipe modal to view associated LoRAs, enhancing user navigation.
- Updated CSS styles for new UI elements, including a custom filter indicator and LoRA view button.
- Refactored existing JavaScript components to streamline the handling of filter parameters and improve maintainability.
This commit is contained in:
Will Miao
2025-04-08 12:23:51 +08:00
parent bddc7a438d
commit 801aa2e876
12 changed files with 352 additions and 158 deletions

View File

@@ -103,7 +103,6 @@ class RecipeRoutes:
# New parameter: get LoRA hash filter
lora_hash = request.query.get('lora_hash', None)
bypass_filters = request.query.get('bypass_filters', 'false').lower() == 'true'
# Parse filter parameters
filters = {}
@@ -128,8 +127,7 @@ class RecipeRoutes:
search=search,
filters=filters,
search_options=search_options,
lora_hash=lora_hash,
bypass_filters=bypass_filters
lora_hash=lora_hash
)
# Format the response data with static URLs for file paths