p2p Network Hiererchy basic implementation

This commit is contained in:
Luis Fernando Molina committed 2021-09-20 13:41:54 +02:00
1 parent 7dfe5c2397
commit 1090e64fa3
8 files changed
+77 -2

No files matched your search

File renamed without changes.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

@@ -0,0 +1,39 @@
{
"type": "P2P Network Node",
"menuItems": [
{
"action": "Configure",
"actionProject": "Foundations",
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration",
"dontShowAtFullscreen": true,
"actionFunction": "uiObject.configEditor.activate"
},
{
"action": "Delete UI Object",
"actionProject": "Foundations",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"editors": {
"config": true
},
"initialValues": {
"config": "{ \n\"host\": \"localhost\", \n\"webPort\": \"34248\", \n\"webSocketsPort\": \"18041\"\n}"
},
"isTitleAllwaysVisible": true,
"addLeftIcons": true,
"level": 1,
"attachingRules": {
"compatibleTypes": "->P2P Network->"
},
"childrenNodesProperties": [
],
"propertyNameAtParent": "p2pNetworkNodes"
}
@@ -0,0 +1,32 @@
{
"type": "P2P Network",
"menuItems": [
{
"action": "Add UI Object",
"actionProject": "Foundations",
"label": "Add P2P Network Node",
"relatedUiObject": "P2P Network Node",
"actionFunction": "payload.executeAction"
},
{
"action": "Delete UI Object",
"actionProject": "Foundations",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"isHierarchyHead": true,
"addLeftIcons": true,
"level": 0,
"childrenNodesProperties": [
{
"name": "p2pNetworkNodes",
"type": "array",
"childType": "P2P Network Node"
}
]
}