mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Updated Design: Library Sidebar (markdown)
parent
f3f96f20c9
commit
8737ae0edf
@ -163,3 +163,52 @@ The current storage API is not going to change:
|
|||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# Library Sidebar
|
||||||
|
|
||||||
|
Some ascii art for the sidebar layout.
|
||||||
|
|
||||||
|
```
|
||||||
|
+-+-------------------------+
|
||||||
|
| | source libraries |
|
||||||
|
+-+-------------------------+
|
||||||
|
|
||||||
|
+-+-------------------------+
|
||||||
|
| | types |
|
||||||
|
+-+-------------------------+
|
||||||
|
|
||||||
|
+---------------------------+
|
||||||
|
| path1 |
|
||||||
|
| path2 |
|
||||||
|
| path3 |
|
||||||
|
| path4 |
|
||||||
|
| |
|
||||||
|
+---------------------------+
|
||||||
|
| |
|
||||||
|
| file1 |
|
||||||
|
| file2 |
|
||||||
|
| file3 |
|
||||||
|
| file4 |
|
||||||
|
| |
|
||||||
|
| |
|
||||||
|
| |
|
||||||
|
| |
|
||||||
|
| |
|
||||||
|
+---------------------------+
|
||||||
|
|
||||||
|
+--------+
|
||||||
|
| import |
|
||||||
|
+--------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. library select - so when there are multiple sources, one can be picked.
|
||||||
|
2. type select - the type of entity to browse. Will offer up types available for the chosen library.
|
||||||
|
3. path/file select boxes - normal file browser type behaviour
|
||||||
|
4. import button - when clicked will import the selected entry.
|
||||||
|
|
||||||
|
The 'import' button behaviour will depend on the current editor state:
|
||||||
|
|
||||||
|
- in 'normal' mode, import will import the selected flow, or the node of the appropriate type.
|
||||||
|
- if a node is being edited, the 'type' select will be restricted to the required type and clicking import will copy it over to the node edit dialog
|
||||||
|
|
||||||
|
**Todo:** what is the `export to library` workflow.
|
Loading…
Reference in New Issue
Block a user