📝 (APIRequest.py): add icon "Globe" to APIRequest component for better visual representation
📝 (Directory.py): add icon "folder" to DirectoryComponent for better visual representation 📝 (File.py): add icon "file-text" to FileComponent for better visual representation 📝 (URL.py): add icon "layout-template" to URLComponent for better visual representation 📝 (TextInput.py): add icon "type" to TextInput component for better visual representation 📝 (TextOutput.py): add icon "type" to TextOutput component for better visual representation 📝 (styleUtils.ts): replace "Search" icon with "TextSearch" icon in nodeIconsLucide for better visual representation
This commit is contained in:
parent
1676d98d1d
commit
9db5638e8d
7 changed files with 12 additions and 4 deletions
|
|
@ -13,6 +13,8 @@ class APIRequest(CustomComponent):
|
||||||
description: str = "Make HTTP requests given one or more URLs."
|
description: str = "Make HTTP requests given one or more URLs."
|
||||||
output_types: list[str] = ["Record"]
|
output_types: list[str] = ["Record"]
|
||||||
documentation: str = "https://docs.langflow.org/components/utilities#api-request"
|
documentation: str = "https://docs.langflow.org/components/utilities#api-request"
|
||||||
|
icon = "Globe"
|
||||||
|
|
||||||
field_config = {
|
field_config = {
|
||||||
"urls": {"display_name": "URLs", "info": "URLs to make requests to."},
|
"urls": {"display_name": "URLs", "info": "URLs to make requests to."},
|
||||||
"method": {
|
"method": {
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ from langflow.schema import Record
|
||||||
class DirectoryComponent(CustomComponent):
|
class DirectoryComponent(CustomComponent):
|
||||||
display_name = "Directory"
|
display_name = "Directory"
|
||||||
description = "Recursively load files from a directory."
|
description = "Recursively load files from a directory."
|
||||||
|
icon = "folder"
|
||||||
|
|
||||||
def build_config(self) -> Dict[str, Any]:
|
def build_config(self) -> Dict[str, Any]:
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ from langflow.schema import Record
|
||||||
class FileComponent(CustomComponent):
|
class FileComponent(CustomComponent):
|
||||||
display_name = "File"
|
display_name = "File"
|
||||||
description = "A generic file loader."
|
description = "A generic file loader."
|
||||||
|
icon = "file-text"
|
||||||
|
|
||||||
def build_config(self) -> Dict[str, Any]:
|
def build_config(self) -> Dict[str, Any]:
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ from langflow.schema import Record
|
||||||
class URLComponent(CustomComponent):
|
class URLComponent(CustomComponent):
|
||||||
display_name = "URL"
|
display_name = "URL"
|
||||||
description = "Fetch content from one or more URLs."
|
description = "Fetch content from one or more URLs."
|
||||||
|
icon = "layout-template"
|
||||||
|
|
||||||
def build_config(self) -> Dict[str, Any]:
|
def build_config(self) -> Dict[str, Any]:
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ from langflow.field_typing import Text
|
||||||
class TextInput(TextComponent):
|
class TextInput(TextComponent):
|
||||||
display_name = "Text Input"
|
display_name = "Text Input"
|
||||||
description = "Get text inputs from the Interaction Panel."
|
description = "Get text inputs from the Interaction Panel."
|
||||||
|
icon = "type"
|
||||||
|
|
||||||
def build_config(self):
|
def build_config(self):
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ from langflow.field_typing import Text
|
||||||
class TextOutput(TextComponent):
|
class TextOutput(TextComponent):
|
||||||
display_name = "Text Output"
|
display_name = "Text Output"
|
||||||
description = "Display a text output in the Interaction Panel."
|
description = "Display a text output in the Interaction Panel."
|
||||||
|
icon = "type"
|
||||||
|
|
||||||
def build_config(self):
|
def build_config(self):
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,7 @@ import {
|
||||||
TerminalIcon,
|
TerminalIcon,
|
||||||
TerminalSquare,
|
TerminalSquare,
|
||||||
TextCursorInput,
|
TextCursorInput,
|
||||||
|
TextSearch,
|
||||||
ToyBrick,
|
ToyBrick,
|
||||||
Trash2,
|
Trash2,
|
||||||
Type,
|
Type,
|
||||||
|
|
@ -371,7 +372,7 @@ export const nodeIconsLucide: iconsType = {
|
||||||
saved_components: GradientSave,
|
saved_components: GradientSave,
|
||||||
documentloaders: Paperclip,
|
documentloaders: Paperclip,
|
||||||
vectorstores: Layers,
|
vectorstores: Layers,
|
||||||
vectorsearch: Search,
|
vectorsearch: TextSearch,
|
||||||
toolkits: Package2,
|
toolkits: Package2,
|
||||||
textsplitters: Scissors,
|
textsplitters: Scissors,
|
||||||
wrappers: Gift,
|
wrappers: Gift,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue