27 Commits

Author SHA1 Message Date
Will Miao
0459710c9b Made CLIP input optional in LoRA Loader, enabling compatibility with Hunyuan workflows 2025-03-26 21:50:26 +08:00
Will Miao
e566484a17 Add Civitai URL retrieval functionality and UI integration
- Introduced a new API route to fetch the Civitai URL for a specified LoRA file.
- Implemented error handling for missing LoRA names and absence of Civitai data.
- Added a "View on Civitai" option in the UI, allowing users to access the Civitai URL directly from the LoRA widget.
- Enhanced user feedback for successful and failed URL retrieval attempts.
2025-03-22 17:35:30 +08:00
Will Miao
19ef73a07f Refactor storage handling across application
- Introduced a new storageHelpers module to centralize localStorage interactions, improving code maintainability and readability.
- Updated various components and managers to utilize the new storageHelpers functions for setting, getting, and removing items from localStorage.
- Added migration logic to handle localStorage items during application initialization, ensuring compatibility with the new storage structure.
- Enhanced logging during application initialization for better debugging.
2025-03-22 05:32:18 +08:00
Will Miao
8e653e2173 Refactor recipe saving process to utilize workflow JSON and enhance Lora handling
- Updated the recipe saving logic to accept a workflow JSON input instead of individual fields like name, tags, and metadata.
- Implemented parsing of the workflow to extract generation parameters and Lora stack, improving the recipe creation process.
- Enhanced error handling for missing workflow data and invalid Lora formats.
- Removed deprecated code related to individual field handling, streamlining the recipe saving functionality.
- Updated the front-end widget to send the workflow JSON directly, simplifying the data preparation process.
2025-03-21 17:28:20 +08:00
Will Miao
4bff17aa1a Update prompt configuration and enhance Lora management functionality
- Expanded the prompt.json file with new configurations for KSampler, CheckpointLoaderSimple, and various CLIPTextEncode nodes.
- Introduced additional Lora management features, including a new Lora Stacker and improved trigger word handling.
- Enhanced the loras_widget.js to log the generated prompt when saving recipes directly, aiding in debugging and user feedback.
- Improved overall structure and organization of the prompt configurations for better maintainability.
2025-03-21 16:35:52 +08:00
Will Miao
4ee32f02c5 Add functionality to save recipes from the LoRAs widget
- Introduced a new API endpoint to save recipes directly from the LoRAs widget.
- Implemented logic to handle recipe data, including image processing and metadata extraction.
- Enhanced error handling for missing fields and image retrieval.
- Updated the ExifUtils to extract generation parameters from images for recipe creation.
- Added a direct save option in the widget, improving user experience.
2025-03-21 11:11:09 +08:00
Will Miao
79ebe25bc2 Add lora stacker support and fix TriggerWord Toggle node 2025-03-11 20:46:40 +08:00
Will Miao
ad56cafd62 checkpoint 2025-03-11 19:29:31 +08:00
Will Miao
d63a70474b Improve height calculation for tags widget to handle empty states and dynamic content 2025-03-11 14:45:50 +08:00
Will Miao
f48b954fb7 Add group mode for TriggerWord Toggle 2025-03-11 11:12:37 +08:00
Will Miao
a443b3230b Fix a issue that lora preview tooltip not disappear 2025-03-05 00:05:31 +08:00
Will Miao
446d13d832 Add empty state message for tags widget and improve height calculation 2025-03-03 11:30:51 +08:00
Will Miao
22b2aba1e8 Enhance Lora widget layout with improved styling and media container for better display 2025-03-03 11:30:10 +08:00
Will Miao
36aba4a2c7 Refactor Lora handling to improve data consistency and remove duplicates in widget value 2025-03-03 05:55:53 +08:00
Will Miao
1281ae29cb Fix node size 2025-03-03 05:32:54 +08:00
Will Miao
6db4ff3bd6 Allow negative strength loras 2025-03-02 18:03:59 +08:00
Will Miao
ac07cbcd55 Refactor Lora widget callback to prevent recursive updates and improve code clarity 2025-03-02 17:55:33 +08:00
Will Miao
3e68a7f772 Add context menu for Lora items and improve Lora cleanup logic 2025-03-02 17:47:28 +08:00
Will Miao
988d298008 Fix serialize issue caused by comfy by a workaround of adding dummy items 2025-03-02 17:09:01 +08:00
Will Miao
3b5e6c8bba checkpoint 2025-03-02 15:50:36 +08:00
Will Miao
2f445de43a checkpoint 2025-03-02 15:44:14 +08:00
Will Miao
1c329ac6ca checkpoint 2025-03-02 09:21:01 +08:00
Will Miao
002823c6cf Enhance lora loader done 2025-03-01 15:02:48 +08:00
Will Miao
ebe80e30ab Enhance lora loader 2025-03-01 09:10:14 +08:00
Will Miao
ccd4cee65a Add TriggerWord Toggle node 2025-02-28 21:13:37 +08:00
Will Miao
118c4521a2 Update ComfyUI menu LoRA Manager icon svg 2025-02-01 22:16:15 +08:00
Will Miao
879d0be71c Add Lora Manager widget integration 2025-02-01 13:53:14 +08:00