mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 21:52:11 -03:00
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.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from typing import Dict, Any
|
||||
from .base_processor import NodeProcessor, register_processor
|
||||
|
||||
@register_processor
|
||||
class FluxGuidanceProcessor(NodeProcessor):
|
||||
"""Processor for Flux Guidance nodes"""
|
||||
|
||||
NODE_CLASS_TYPE = "FluxGuidance"
|
||||
REQUIRED_FIELDS = {"guidance"}
|
||||
|
||||
def process(self, workflow_parser) -> Dict[str, Any]:
|
||||
"""Process a FluxGuidance node to extract guidance value"""
|
||||
result = {}
|
||||
|
||||
positive_text = self.resolve_input("conditioning", workflow_parser)
|
||||
if positive_text:
|
||||
result["positive"] = positive_text
|
||||
|
||||
if "guidance" in self.inputs:
|
||||
result["guidance"] = str(self.inputs["guidance"])
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user