mirror of
https://github.com/Significant-Gravitas/Auto-GPT.git
synced 2025-01-08 11:57:32 +08:00
fix(frontend): Add integer type definition for node handles (#8803)
This commit is contained in:
parent
effd1e35a3
commit
6bfe7ff497
@ -22,6 +22,7 @@ const NodeHandle: FC<HandleProps> = ({
|
||||
const typeName: Record<string, string> = {
|
||||
string: "text",
|
||||
number: "number",
|
||||
integer: "integer",
|
||||
boolean: "true/false",
|
||||
object: "object",
|
||||
array: "list",
|
||||
|
@ -41,6 +41,7 @@ export function getTypeTextColor(type: string | null): string {
|
||||
{
|
||||
string: "text-green-500",
|
||||
number: "text-blue-500",
|
||||
integer: "text-blue-500",
|
||||
boolean: "text-yellow-500",
|
||||
object: "text-purple-500",
|
||||
array: "text-indigo-500",
|
||||
@ -58,6 +59,7 @@ export function getTypeBgColor(type: string | null): string {
|
||||
{
|
||||
string: "border-green-500",
|
||||
number: "border-blue-500",
|
||||
integer: "border-blue-500",
|
||||
boolean: "border-yellow-500",
|
||||
object: "border-purple-500",
|
||||
array: "border-indigo-500",
|
||||
@ -74,6 +76,7 @@ export function getTypeColor(type: string | null): string {
|
||||
{
|
||||
string: "#22c55e",
|
||||
number: "#3b82f6",
|
||||
integer: "#3b82f6",
|
||||
boolean: "#eab308",
|
||||
object: "#a855f7",
|
||||
array: "#6366f1",
|
||||
|
Loading…
Reference in New Issue
Block a user