Update sidebar component and styleUtils

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-05 21:24:53 -03:00
commit a2dfadcf4a
2 changed files with 6 additions and 7 deletions

View file

@ -6,8 +6,9 @@ export function sortKeys(a: string, b: string) {
"outputs",
"prompts",
"data",
"prompts",
"models",
"utilities",
"helpers",
];
const indexA = order.indexOf(a.toLowerCase());
const indexB = order.indexOf(b.toLowerCase());

View file

@ -6,11 +6,8 @@ import {
Binary,
BookMarked,
BookmarkPlus,
PlusCircle,
PlusSquare,
Bot,
Boxes,
GitCompare,
Braces,
BrainCircuit,
Check,
@ -90,6 +87,8 @@ import {
Pin,
Play,
Plus,
PlusCircle,
PlusSquare,
PocketKnife,
Redo,
RefreshCcw,
@ -231,7 +230,7 @@ export const nodeColors: { [char: string]: string } = {
textsplitters: "#B47CB5",
toolkits: "#DB2C2C",
wrappers: "#E6277A",
utilities: "#31A3CC",
helpers: "#31A3CC",
langchain_utilities: "#31A3CC",
output_parsers: "#E6A627",
str: "#31a3cc",
@ -354,7 +353,7 @@ export const nodeIconsLucide: iconsType = {
toolkits: Package2,
textsplitters: Scissors,
wrappers: Gift,
utilities: Wand2,
helpers: Wand2,
langchain_utilities: PocketKnife,
WolframAlphaAPIWrapper: SvgWolfram,
output_parsers: Compass,
@ -475,4 +474,3 @@ export const nodeIconsLucide: iconsType = {
Delete,
Command,
};