Enhance RecipeScanner and CSS components for improved functionality and styling

- Added localPath retrieval for LoRA entries in RecipeScanner to enhance metadata handling.
- Included shared.css in the main stylesheet for better component styling consistency.
- Removed unused local-badge and local-path styles from download-modal.css and recipe-modal.css to streamline the CSS and improve maintainability.
This commit is contained in:
Will Miao
2025-03-19 08:21:51 +08:00
parent 0017a6cce5
commit f38b51b85a
5 changed files with 46 additions and 125 deletions

View File

@@ -402,6 +402,7 @@ class RecipeScanner:
if 'hash' in lora and lora['hash']:
lora['inLibrary'] = self._lora_scanner.has_lora_hash(lora['hash'].lower())
lora['preview_url'] = self._lora_scanner.get_preview_url_by_hash(lora['hash'].lower())
lora['localPath'] = self._lora_scanner.get_lora_path_by_hash(lora['hash'].lower())
result = {
'items': paginated_items,