added nodetemplates default
This commit is contained in:
@@ -3,50 +3,51 @@ const nodeTemplates = {
|
|||||||
category: "digital asset",
|
category: "digital asset",
|
||||||
color: "#4f8582",
|
color: "#4f8582",
|
||||||
defaults: {
|
defaults: {
|
||||||
name: { value: "", required: true },
|
name: { value: "", required: true },
|
||||||
enableLog: { value: false },
|
enableLog: { value: false },
|
||||||
logLevel: { value: "error" },
|
logLevel: { value: "error" },
|
||||||
parent: { value: "downstream" }, // indicates the position vs the parent in the process downstream,upstream or none.
|
parent: { value: "downstream" }, // indicates the position vs the parent in the process downstream,upstream or none.
|
||||||
supplier: { value: "" },
|
supplier: { value: "" },
|
||||||
subType: { value: "" },
|
subType: { value: "" },
|
||||||
model: { value: "" },
|
model: { value: "" },
|
||||||
unit: { value: "" },
|
unit: { value: "" },
|
||||||
},
|
},
|
||||||
inputs: 1,
|
inputs: 1,
|
||||||
outputs: 3,
|
outputs: 3,
|
||||||
inputLabels: ["Machine Input"],
|
inputLabels: ["Machine Input"],
|
||||||
outputLabels:["process","dbase","parent"],
|
outputLabels: ["process", "dbase", "parent"],
|
||||||
icon: "font-awesome/fa-cogs",
|
icon: "font-awesome/fa-cogs",
|
||||||
elements: {
|
elements: {
|
||||||
// Basic fields
|
// Basic fields
|
||||||
name: "node-input-name",
|
name: "node-input-name",
|
||||||
// Logging fields
|
// Logging fields
|
||||||
logCheckbox: "node-input-enableLog",
|
logCheckbox: "node-input-enableLog",
|
||||||
logLevelSelect: "node-input-logLevel",
|
logLevelSelect: "node-input-logLevel",
|
||||||
rowLogLevel: "row-logLevel",
|
rowLogLevel: "row-logLevel",
|
||||||
// Asset fields
|
// Asset fields
|
||||||
supplier: "node-input-supplier",
|
supplier: "node-input-supplier",
|
||||||
subType: "node-input-subType",
|
subType: "node-input-subType",
|
||||||
model: "node-input-model",
|
model: "node-input-model",
|
||||||
unit: "node-input-unit",
|
unit: "node-input-unit",
|
||||||
//position vs parent
|
//position vs parent
|
||||||
parent: "node-input-parent",
|
parent: "node-input-parent",
|
||||||
},
|
},
|
||||||
projectSettingsURL : "http://localhost:1880/generalFunctions/settings/projectSettings.json",
|
projectSettingsURL:
|
||||||
|
"http://localhost:1880/generalFunctions/settings/projectSettings.json",
|
||||||
},
|
},
|
||||||
|
|
||||||
exampleTemplate: {
|
exampleTemplate: {
|
||||||
category: "digital twin",
|
category: "digital twin",
|
||||||
color: "#004080",
|
color: "#004080",
|
||||||
defaults: {
|
defaults: {
|
||||||
name: { value: "", required: true },
|
name: { value: "", required: true },
|
||||||
foo: { value: 42 }
|
foo: { value: 42 },
|
||||||
},
|
},
|
||||||
inputs: 2,
|
inputs: 2,
|
||||||
outputs: 2,
|
outputs: 2,
|
||||||
inputLabels: ["In A", "In B"],
|
inputLabels: ["In A", "In B"],
|
||||||
outputLabels: ["Out A", "Out B"],
|
outputLabels: ["Out A", "Out B"],
|
||||||
icon: "font-awesome/fa-gears"
|
icon: "font-awesome/fa-gears",
|
||||||
},
|
},
|
||||||
|
|
||||||
// …add more node “templates” here…
|
// …add more node “templates” here…
|
||||||
|
|||||||
Reference in New Issue
Block a user