p2p Network Hiererchy basic implementation
This commit is contained in:
1 parent
7dfe5c2397
commit
1090e64fa3
8 files changed
+77
-2
No files matched your search
File renamed without changes.
+1
-1
@@ -3,7 +3,7 @@
|
||||
"menuItems": [
|
||||
{
|
||||
"action": "Add UI Object",
|
||||
"label": "Add Network Node",
|
||||
"label": "Add LAN Network Node",
|
||||
"relatedUiObject": "LAN Network Node",
|
||||
"actionFunction": "payload.executeAction"
|
||||
},
|
||||
+1
-1
@@ -176,7 +176,7 @@
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "To add a network node, select Add Network Node on the Superalgos Network node menu. A network node is added along with the basic structure of nodes to set up a node."
|
||||
"text": "To add a network node, select Add LAN Network Node on the Superalgos Network node menu. A network node is added along with the basic structure of nodes to set up a node."
|
||||
},
|
||||
{
|
||||
"style": "Subtitle",
|
||||
|
||||
@@ -56,6 +56,10 @@ function newCircularMenu() {
|
||||
let menuItem = newCircularMenuItem()
|
||||
let menuItemInitialValue = menuItemsInitialValues[i]
|
||||
|
||||
if (payload.node.id === "df162757-f7ac-4850-8112-57399b8b640f") {
|
||||
let a = 1
|
||||
}
|
||||
|
||||
menuItem.action = menuItemInitialValue.action
|
||||
menuItem.actionProject = menuItemInitialValue.actionProject
|
||||
menuItem.actionFunction = menuItemInitialValue.actionFunction
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user