This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user