mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Updated Design: Node Generator (markdown)
parent
dfa6396cd9
commit
56d2ed3f70
@ -12,7 +12,7 @@ Swagger is one of the famous specification for REST API. And it’s used for API
|
|||||||
In general, Node-RED users write JavaScript code in function node when they want to realize custom handling or algorism. Current function node isn’t suitable for reusing nodes because the way to share their function node is only flow exporting function using JSON data. To solve the problem, Node generator supports creating original nodes from JavaScript code in function node. Node-RED users can easily create original nodes and publish them on npm library to share their nodes with other Node-RED users.
|
In general, Node-RED users write JavaScript code in function node when they want to realize custom handling or algorism. Current function node isn’t suitable for reusing nodes because the way to share their function node is only flow exporting function using JSON data. To solve the problem, Node generator supports creating original nodes from JavaScript code in function node. Node-RED users can easily create original nodes and publish them on npm library to share their nodes with other Node-RED users.
|
||||||
|
|
||||||
### (3) Subflow
|
### (3) Subflow
|
||||||
In terms of reuse, subflow unit is also suitable for sharing with other Node-RED users. In the future, Node generator will support to create original node from subflow. Node-RED users can wrap flow as original nodes. For example, template node which has authentication header and http request node which has URL are a typical pair which a lot of Node-RED users use to connect to cloud services. Node-RED generator can generate original nodes from subflow which has the flow. And they can easily share them with other Node-RED users via npm repository.
|
In terms of reuse, subflow unit is also suitable for sharing with other Node-RED users. In the future, Node generator will support to create original node from subflow. Node-RED users can wrap flow as original nodes. For example, template node which has authentication header and http request node which has URL are a typical pair which a lot of Node-RED users use to connect to cloud services. Node generator can generate original nodes from subflow which has the flow. And they can easily share them with other Node-RED users via npm repository.
|
||||||
|
|
||||||
## Flow editor UI design
|
## Flow editor UI design
|
||||||
In the first version, Node-RED flow editor will support to generate nodes from Swagger definition and function node. “Creating nodes” item will be added under “Export” in the menu.
|
In the first version, Node-RED flow editor will support to generate nodes from Swagger definition and function node. “Creating nodes” item will be added under “Export” in the menu.
|
||||||
|
Loading…
Reference in New Issue
Block a user