This commit is contained in:
bilt 2025-07-08 07:03:18 +08:00
parent 4b4029a28c
commit ff94298b74

View File

@ -386,6 +386,7 @@ class TestURL(ComfyNodeABC):
@classmethod @classmethod
def INPUT_TYPES(cls): def INPUT_TYPES(cls):
return { return {
"required": {}
} }
RETURN_TYPES = () RETURN_TYPES = ()
@ -398,6 +399,60 @@ class TestURL(ComfyNodeABC):
def show_url(self): def show_url(self):
return ("http://aaatesat.com",) return ("http://aaatesat.com",)
class TestURL2(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls):
return {
"required": {}
}
RETURN_TYPES = ()
RETURN_NAMES = ()
FUNCTION = "show_url"
OUTPUT_NODE = True
CATEGORY = "image/video"
DESCRIPTION = "Show a URL as plain text in the UI."
def show_url(self):
return {"ui": {"link": ["http://aauaoaaadaa.ad"]}}
class TestURL3:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {}
}
RETURN_TYPES = ()
RETURN_NAMES = ()
FUNCTION = "show_url"
OUTPUT_NODE = True
CATEGORY = "image/video"
DESCRIPTION = "Show a URL as plain text in the UI."
def show_url(self):
return {"ui": {"link": ["http://aauaoaaadaa.ad"]}}
class TestURL4:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"url_string": ("STRING", {"multiline": False, "default": "xyz"}),
},
}
RETURN_TYPES = ()
RETURN_NAMES = ()
FUNCTION = "show_url"
OUTPUT_NODE = True
CATEGORY = "image/video"
DESCRIPTION = "Show a URL as plain text in the UI."
def show_url(self, url_strin):
return {"ui": {"link": ["http://aauaoaaadaa.ad"]}}
class DisplayLinkNode: class DisplayLinkNode:
def __init__(self): def __init__(self):
@ -433,6 +488,9 @@ NODE_CLASS_MAPPINGS = {
"LoadVideoEncrypted": LoadVideoEncrypted, "LoadVideoEncrypted": LoadVideoEncrypted,
"ShowURL": ShowURL, "ShowURL": ShowURL,
"TestURL": TestURL, "TestURL": TestURL,
"TestURL2": TestURL2,
"TestURL3": TestURL3,
"TestURL4": TestURL4,
"DisplayLink": DisplayLinkNode "DisplayLink": DisplayLinkNode
} }
@ -444,5 +502,8 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"LoadVideoEncrypted": "Load Video (Encrypted)", "LoadVideoEncrypted": "Load Video (Encrypted)",
"ShowURL": "Show URL", "ShowURL": "Show URL",
"TestURL": "Test URL", "TestURL": "Test URL",
"TestURL2": "Test URL 2",
"TestURL3": "Test URL 3",
"TestURL4": "Test URL 4",
"DisplayLink": "Display Link (Custom)" "DisplayLink": "Display Link (Custom)"
} }