implemented color change in auth
Some checks failed
Build / build (push) Has been cancelled

This commit is contained in:
Ankitkumar Satapara
2026-04-23 15:27:27 +05:30
parent abb2c0a095
commit 1cb9838942

View File

@@ -54,10 +54,13 @@ namespace Nodify.Calculator.NodeHandlers
var op = new AuthOperationViewModel(); var op = new AuthOperationViewModel();
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle }); op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle });
op.Output.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle, IsInput = false }); op.Output.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle, IsInput = false });
// Data inputs // Data inputs — each colored by its semantic type
var labels = new[] { "Base URL", "Auth Type", "Token", "API Key", "Username", "Password" }; op.Input.Add(new ConnectorViewModel { Title = "Base URL", ConnectorColor = NodeColors.String, DataType = "string" });
foreach (var label in labels) op.Input.Add(new ConnectorViewModel { Title = "Auth Type", ConnectorColor = NodeColors.Long, DataType = "string" });
op.Input.Add(new ConnectorViewModel { Title = label, ConnectorColor = Color.Orange }); op.Input.Add(new ConnectorViewModel { Title = "Token", ConnectorColor = NodeColors.String, DataType = "string" });
op.Input.Add(new ConnectorViewModel { Title = "API Key", ConnectorColor = NodeColors.String, DataType = "string" });
op.Input.Add(new ConnectorViewModel { Title = "Username", ConnectorColor = NodeColors.String, DataType = "string" });
op.Input.Add(new ConnectorViewModel { Title = "Password", ConnectorColor = NodeColors.String, DataType = "string" });
return op; return op;
} }