📝 (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:
cristhianzl 2024-03-30 08:43:27 -03:00
commit 9db5638e8d
7 changed files with 12 additions and 4 deletions

View file

@ -13,6 +13,8 @@ class APIRequest(CustomComponent):
description: str = "Make HTTP requests given one or more URLs."
output_types: list[str] = ["Record"]
documentation: str = "https://docs.langflow.org/components/utilities#api-request"
icon = "Globe"
field_config = {
"urls": {"display_name": "URLs", "info": "URLs to make requests to."},
"method": {

View file

@ -8,7 +8,8 @@ from langflow.schema import Record
class DirectoryComponent(CustomComponent):
display_name = "Directory"
description = "Recursively load files from a directory."
icon = "folder"
def build_config(self) -> Dict[str, Any]:
return {
"path": {"display_name": "Path"},

View file

@ -9,7 +9,8 @@ from langflow.schema import Record
class FileComponent(CustomComponent):
display_name = "File"
description = "A generic file loader."
icon = "file-text"
def build_config(self) -> Dict[str, Any]:
return {
"path": {

View file

@ -9,7 +9,8 @@ from langflow.schema import Record
class URLComponent(CustomComponent):
display_name = "URL"
description = "Fetch content from one or more URLs."
icon = "layout-template"
def build_config(self) -> Dict[str, Any]:
return {
"urls": {"display_name": "URL"},

View file

@ -7,6 +7,7 @@ from langflow.field_typing import Text
class TextInput(TextComponent):
display_name = "Text Input"
description = "Get text inputs from the Interaction Panel."
icon = "type"
def build_config(self):
return {

View file

@ -7,6 +7,7 @@ from langflow.field_typing import Text
class TextOutput(TextComponent):
display_name = "Text Output"
description = "Display a text output in the Interaction Panel."
icon = "type"
def build_config(self):
return {

View file

@ -116,6 +116,7 @@ import {
TerminalIcon,
TerminalSquare,
TextCursorInput,
TextSearch,
ToyBrick,
Trash2,
Type,
@ -371,7 +372,7 @@ export const nodeIconsLucide: iconsType = {
saved_components: GradientSave,
documentloaders: Paperclip,
vectorstores: Layers,
vectorsearch: Search,
vectorsearch: TextSearch,
toolkits: Package2,
textsplitters: Scissors,
wrappers: Gift,