diff --git a/Projects/Foundations/Schemas/App-Schema/network-node.json b/Projects/Foundations/Schemas/App-Schema/lan-network-node.json similarity index 100% rename from Projects/Foundations/Schemas/App-Schema/network-node.json rename to Projects/Foundations/Schemas/App-Schema/lan-network-node.json diff --git a/Projects/Foundations/Schemas/App-Schema/network.json b/Projects/Foundations/Schemas/App-Schema/lan-network.json similarity index 94% rename from Projects/Foundations/Schemas/App-Schema/network.json rename to Projects/Foundations/Schemas/App-Schema/lan-network.json index ed5c7f7d0..52483e846 100644 --- a/Projects/Foundations/Schemas/App-Schema/network.json +++ b/Projects/Foundations/Schemas/App-Schema/lan-network.json @@ -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" }, diff --git a/Projects/Foundations/Schemas/Docs-Topics/T/Trading/Trading-Farms/trading-farms-002-trading-farms-set-up-a-network-of-nodes.json b/Projects/Foundations/Schemas/Docs-Topics/T/Trading/Trading-Farms/trading-farms-002-trading-farms-set-up-a-network-of-nodes.json index 67c558f90..f5d2ac3ab 100644 --- a/Projects/Foundations/Schemas/Docs-Topics/T/Trading/Trading-Farms/trading-farms-002-trading-farms-set-up-a-network-of-nodes.json +++ b/Projects/Foundations/Schemas/Docs-Topics/T/Trading/Trading-Farms/trading-farms-002-trading-farms-set-up-a-network-of-nodes.json @@ -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", diff --git a/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenu.js b/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenu.js index c9fa366ba..98ef468dc 100644 --- a/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenu.js +++ b/Projects/Foundations/UI/Spaces/Floating-Space/CircularMenu.js @@ -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 diff --git a/Projects/Network/Icons/lan-network-node.png b/Projects/Network/Icons/p2p-network-node.png similarity index 100% rename from Projects/Network/Icons/lan-network-node.png rename to Projects/Network/Icons/p2p-network-node.png diff --git a/Projects/Network/Icons/lan-network.png b/Projects/Network/Icons/p2p-network.png similarity index 100% rename from Projects/Network/Icons/lan-network.png rename to Projects/Network/Icons/p2p-network.png diff --git a/Projects/Network/Schemas/App-Schema/p2p-network-node.json b/Projects/Network/Schemas/App-Schema/p2p-network-node.json new file mode 100644 index 000000000..949360ea8 --- /dev/null +++ b/Projects/Network/Schemas/App-Schema/p2p-network-node.json @@ -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" +} \ No newline at end of file diff --git a/Projects/Network/Schemas/App-Schema/p2p-network.json b/Projects/Network/Schemas/App-Schema/p2p-network.json new file mode 100644 index 000000000..7de51293f --- /dev/null +++ b/Projects/Network/Schemas/App-Schema/p2p-network.json @@ -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" + } + ] +} \ No newline at end of file