From 9c1baaf3067cf73d566708a7b0d6a04d48a34e8b Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 9 Sep 2021 13:04:51 +0200 Subject: [PATCH] .children. to .nodeChildren. refactoring --- .../ChartingSpaceFunctions.js | 8 ++--- .../CryptoEcosystemFunctions.js | 30 +++++++++---------- .../DataStorageFunctions.js | 10 +++---- .../UI/Function-Libraries/PluginsFunctions.js | 8 ++--- .../UI/Function-Libraries/TaskFunctions.js | 8 ++--- .../UI/Spaces/Charting-Space/TimeMachine.js | 4 +-- Projects/Foundations/UI/Utilities/Plugins.js | 2 +- .../UI/Function-Libraries/ClaimsProgram.js | 4 +-- .../UI/Function-Libraries/VotingProgram.js | 4 +-- Projects/ProjectsSchema.json | 2 +- 10 files changed, 40 insertions(+), 40 deletions(-) diff --git a/Projects/Foundations/UI/Function-Libraries/ChartingSpaceFunctions.js b/Projects/Foundations/UI/Function-Libraries/ChartingSpaceFunctions.js index ea882f97e..719ca6569 100644 --- a/Projects/Foundations/UI/Function-Libraries/ChartingSpaceFunctions.js +++ b/Projects/Foundations/UI/Function-Libraries/ChartingSpaceFunctions.js @@ -129,7 +129,7 @@ function newFoundationsFunctionLibraryChartingSpaceFunctions() { if (environment.id !== node.payload.referenceParent.id) { continue } let market = UI.projects.foundations.utilities.meshes.findNodeInNodeMesh(session, 'Market Trading Tasks', undefined, true, false, true, false) if (market.payload.referenceParent === undefined) { continue } - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, session, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, session, true) === true) { createTimeMachine(node, session, market.payload.referenceParent, networkNode, rootNodes) } } @@ -320,13 +320,13 @@ function newFoundationsFunctionLibraryChartingSpaceFunctions() { let testingTradingTasks = UI.projects.foundations.utilities.branches.findInBranch(networkNode, 'Testing Trading Tasks', node, true) let productionTradingTasks = UI.projects.foundations.utilities.branches.findInBranch(networkNode, 'Production Trading Tasks', node, true) - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, testingTradingTasks, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, testingTradingTasks, true) === true) { let dashboard = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, 'Dashboard') UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(dashboard, testingTradingTasks) dashboard.name = testingTradingTasks.type + ' ' + networkNode.name } - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, productionTradingTasks, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, productionTradingTasks, true) === true) { let dashboard = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, 'Dashboard') UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(dashboard, productionTradingTasks) dashboard.name = productionTradingTasks.type + ' ' + networkNode.name @@ -345,7 +345,7 @@ function newFoundationsFunctionLibraryChartingSpaceFunctions() { if (rootNode.type === project + ' Project') { let projectDefinition = rootNode.projectDefinition if (projectDefinition !== undefined) { - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, projectDefinition, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, projectDefinition, true) === true) { let projectTasks = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, 'Project Dashboards', undefined, project) UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(projectTasks, projectDefinition) } diff --git a/Projects/Foundations/UI/Function-Libraries/CryptoEcosystemFunctions.js b/Projects/Foundations/UI/Function-Libraries/CryptoEcosystemFunctions.js index 209017880..a1d60b35d 100644 --- a/Projects/Foundations/UI/Function-Libraries/CryptoEcosystemFunctions.js +++ b/Projects/Foundations/UI/Function-Libraries/CryptoEcosystemFunctions.js @@ -290,9 +290,9 @@ function newFoundationsFunctionLibraryCryptoEcosystemFunctions() { } function installTheRestOfTheBranch(projectDataTasks) { - let exchangeDataTasks = UI.projects.foundations.utilities.children.findOrCreateChildWithReference(projectDataTasks, 'Exchange Data Tasks', cryptoExchange) + let exchangeDataTasks = UI.projects.foundations.utilities.nodeChildren.findOrCreateChildWithReference(projectDataTasks, 'Exchange Data Tasks', cryptoExchange) exchangeDataTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 - let marketDataTask = UI.projects.foundations.utilities.children.findAndRecreateChildWithReference(exchangeDataTasks, 'Market Data Tasks', market, rootNodes) + let marketDataTask = UI.projects.foundations.utilities.nodeChildren.findAndRecreateChildWithReference(exchangeDataTasks, 'Market Data Tasks', market, rootNodes) UI.projects.foundations.utilities.menu.menuClick(marketDataTask, 'Add Missing Data Mine Tasks', true) UI.projects.foundations.utilities.menu.menuClickOfNodeArray(marketDataTask.dataMineTasks, 'Add All Tasks', true) @@ -323,9 +323,9 @@ function newFoundationsFunctionLibraryCryptoEcosystemFunctions() { } function installTheRestOfTheBranch(projectLearningTasks) { - let exchangeLearningTasks = UI.projects.foundations.utilities.children.findOrCreateChildWithReference(projectLearningTasks, 'Exchange Learning Tasks', cryptoExchange) + let exchangeLearningTasks = UI.projects.foundations.utilities.nodeChildren.findOrCreateChildWithReference(projectLearningTasks, 'Exchange Learning Tasks', cryptoExchange) exchangeLearningTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 - let marketLearningTask = UI.projects.foundations.utilities.children.findAndRecreateChildWithReference(exchangeLearningTasks, 'Market Learning Tasks', market, rootNodes) + let marketLearningTask = UI.projects.foundations.utilities.nodeChildren.findAndRecreateChildWithReference(exchangeLearningTasks, 'Market Learning Tasks', market, rootNodes) UI.projects.foundations.utilities.menu.menuClick(marketLearningTask, 'Add Missing Learning Mine Tasks', true) UI.projects.foundations.utilities.menu.menuClickOfNodeArray(marketLearningTask.learningMineTasks, 'Add All Tasks', true) @@ -377,9 +377,9 @@ function newFoundationsFunctionLibraryCryptoEcosystemFunctions() { } function installTheRestOfTheBranch(projectTradingTasks) { - let exchangeTradingTasks = UI.projects.foundations.utilities.children.findOrCreateChildWithReference(projectTradingTasks, 'Exchange Trading Tasks', cryptoExchange) + let exchangeTradingTasks = UI.projects.foundations.utilities.nodeChildren.findOrCreateChildWithReference(projectTradingTasks, 'Exchange Trading Tasks', cryptoExchange) exchangeTradingTasks.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 - let marketTradingTask = UI.projects.foundations.utilities.children.findAndRecreateChildWithReference(exchangeTradingTasks, 'Market Trading Tasks', market, rootNodes) + let marketTradingTask = UI.projects.foundations.utilities.nodeChildren.findAndRecreateChildWithReference(exchangeTradingTasks, 'Market Trading Tasks', market, rootNodes) UI.projects.foundations.utilities.menu.menuClick(marketTradingTask, 'Add Missing Trading Mine Tasks', true) UI.projects.foundations.utilities.menu.menuClickOfNodeArray(marketTradingTask.tradingMineTasks, 'Add All Tasks', true) @@ -429,9 +429,9 @@ function newFoundationsFunctionLibraryCryptoEcosystemFunctions() { } function installTheRestOfTheBranch(projectDataProducts) { - let exchangeDataProducts = UI.projects.foundations.utilities.children.findOrCreateChildWithReference(projectDataProducts, 'Exchange Data Products', cryptoExchange) + let exchangeDataProducts = UI.projects.foundations.utilities.nodeChildren.findOrCreateChildWithReference(projectDataProducts, 'Exchange Data Products', cryptoExchange) exchangeDataProducts.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 - let marketDataProducts = UI.projects.foundations.utilities.children.findAndRecreateChildWithReference(exchangeDataProducts, 'Market Data Products', market, rootNodes) + let marketDataProducts = UI.projects.foundations.utilities.nodeChildren.findAndRecreateChildWithReference(exchangeDataProducts, 'Market Data Products', market, rootNodes) marketDataProducts.payload.floatingObject.collapseToggle() UI.projects.foundations.utilities.menu.menuClick(marketDataProducts, 'Add All Data Mine Products', true) @@ -469,16 +469,16 @@ function newFoundationsFunctionLibraryCryptoEcosystemFunctions() { function installTheRestOfTheBranch(projectLearningProducts) { - let exchangeLearningProducts = UI.projects.foundations.utilities.children.findOrCreateChildWithReference(projectLearningProducts, 'Exchange Learning Products', cryptoExchange) + let exchangeLearningProducts = UI.projects.foundations.utilities.nodeChildren.findOrCreateChildWithReference(projectLearningProducts, 'Exchange Learning Products', cryptoExchange) exchangeLearningProducts.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 - let marketLearningProducts = UI.projects.foundations.utilities.children.findAndRecreateChildWithReference(exchangeLearningProducts, 'Market Learning Products', market, rootNodes) + let marketLearningProducts = UI.projects.foundations.utilities.nodeChildren.findAndRecreateChildWithReference(exchangeLearningProducts, 'Market Learning Products', market, rootNodes) marketLearningProducts.payload.floatingObject.collapseToggle() /* Create the new session references. */ for (let i = 0; i < learningSessionsCreatedArray.length; i++) { let session = learningSessionsCreatedArray[i] - if (UI.projects.foundations.utilities.children.isMissingChildrenById(marketLearningProducts, session, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(marketLearningProducts, session, true) === true) { UI.projects.foundations.functionLibraries.dataStorageFunctions.createSessionReference(marketLearningProducts, session, 'Learning Session Reference') } } @@ -524,16 +524,16 @@ function newFoundationsFunctionLibraryCryptoEcosystemFunctions() { function installTheRestOfTheBranch(projectTradingProducts) { - let exchangeTradingProducts = UI.projects.foundations.utilities.children.findOrCreateChildWithReference(projectTradingProducts, 'Exchange Trading Products', cryptoExchange) + let exchangeTradingProducts = UI.projects.foundations.utilities.nodeChildren.findOrCreateChildWithReference(projectTradingProducts, 'Exchange Trading Products', cryptoExchange) exchangeTradingProducts.payload.floatingObject.angleToParent = ANGLE_TO_PARENT.RANGE_180 - let marketTradingProducts = UI.projects.foundations.utilities.children.findAndRecreateChildWithReference(exchangeTradingProducts, 'Market Trading Products', market, rootNodes) + let marketTradingProducts = UI.projects.foundations.utilities.nodeChildren.findAndRecreateChildWithReference(exchangeTradingProducts, 'Market Trading Products', market, rootNodes) marketTradingProducts.payload.floatingObject.collapseToggle() /* Create the new session references. */ for (let i = 0; i < tradingSessionsCreatedArray.length; i++) { let session = tradingSessionsCreatedArray[i] - if (UI.projects.foundations.utilities.children.isMissingChildrenById(marketTradingProducts, session, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(marketTradingProducts, session, true) === true) { UI.projects.foundations.functionLibraries.dataStorageFunctions.createSessionReference(marketTradingProducts, session, 'Trading Session Reference') } } @@ -574,7 +574,7 @@ function newFoundationsFunctionLibraryCryptoEcosystemFunctions() { If the Dashboard we need is not already there we create a new one. */ let arrayItem = dashboardsArray[i] - let dashboard = UI.projects.foundations.utilities.children.findOrCreateChildWithReference(projectDashboards, 'Dashboard', arrayItem.environmentNode) + let dashboard = UI.projects.foundations.utilities.nodeChildren.findOrCreateChildWithReference(projectDashboards, 'Dashboard', arrayItem.environmentNode) dashboard.name = arrayItem.environmentNode.type + ' ' + arrayItem.networkNode.name /* We delete all the existing Time Machines related to the market we are currently installing. diff --git a/Projects/Foundations/UI/Function-Libraries/DataStorageFunctions.js b/Projects/Foundations/UI/Function-Libraries/DataStorageFunctions.js index a7462281e..394789321 100644 --- a/Projects/Foundations/UI/Function-Libraries/DataStorageFunctions.js +++ b/Projects/Foundations/UI/Function-Libraries/DataStorageFunctions.js @@ -123,7 +123,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() { /* We will filter out all the sessions that does not belong to the market we are in */ let marketTradingTasks = UI.projects.foundations.utilities.meshes.findNodeInNodeMesh(session, 'Market Trading Tasks', undefined, true, false, true, false) if (node.payload.referenceParent.id !== marketTradingTasks.payload.referenceParent.id) { continue } - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, session, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, session, true) === true) { createSessionReference(node, session, 'Trading Session Reference') } } @@ -146,7 +146,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() { /* We will filter out all the sessions that does not belong to the market we are in */ let marketLearningTasks = UI.projects.foundations.utilities.meshes.findNodeInNodeMesh(session, 'Market Learning Tasks', undefined, true, false, true, false) if (node.payload.referenceParent.id !== marketLearningTasks.payload.referenceParent.id) { continue } - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, session, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, session, true) === true) { createSessionReference(node, session, 'Learning Session Reference') } } @@ -177,7 +177,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() { for (let i = 0; i < marketsArray.length; i++) { let market = marketsArray[i] - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, market, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, market, true) === true) { let marketDataProducts = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType) UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(marketDataProducts, market) } @@ -205,7 +205,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() { let cryptoExchanges = cryptoEcosystem.cryptoExchanges[j] for (let k = 0; k < cryptoExchanges.exchanges.length; k++) { let cryptoExchange = cryptoExchanges.exchanges[k] - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, cryptoExchange, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, cryptoExchange, true) === true) { let exchange = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType) UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(exchange, cryptoExchange) } @@ -238,7 +238,7 @@ function newFoundationsFunctionLibraryDataStorageFunctions() { if (rootNode.type === project + ' Project') { let projectDefinition = rootNode.projectDefinition if (projectDefinition !== undefined) { - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, projectDefinition, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, projectDefinition, true) === true) { let projectTasks = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType, undefined, project) UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(projectTasks, projectDefinition) } diff --git a/Projects/Foundations/UI/Function-Libraries/PluginsFunctions.js b/Projects/Foundations/UI/Function-Libraries/PluginsFunctions.js index 6ea796a76..7e4db38a0 100644 --- a/Projects/Foundations/UI/Function-Libraries/PluginsFunctions.js +++ b/Projects/Foundations/UI/Function-Libraries/PluginsFunctions.js @@ -22,7 +22,7 @@ function newFoundationsFunctionLibraryPluginsFunctions() { for (let k = 0; k < PROJECTS_SCHEMA.length; k++) { let projectDefinition = PROJECTS_SCHEMA[k] let project = projectDefinition.name - if (UI.projects.foundations.utilities.children.isMissingChildrenByName(node, project) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenByName(node, project) === true) { let child = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, 'Plugin Project') child.name = project let config = JSON.parse(child.config) @@ -42,7 +42,7 @@ function newFoundationsFunctionLibraryPluginsFunctions() { for (let i = 0; i < projectDefinition.plugins.length; i++) { let pluginType = "Plugin" + " " + projectDefinition.plugins[i] - if (UI.projects.foundations.utilities.children.isMissingChildrenByType(node, pluginType) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenByType(node, pluginType) === true) { UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, pluginType, undefined, project) } } @@ -209,10 +209,10 @@ function newFoundationsFunctionLibraryPluginsFunctions() { function installAsPlugin(node, rootNodes) { let plugins = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadByNodeType('Plugins') - let pluginProject = UI.projects.foundations.utilities.children.findChildByCodeName(plugins, node.project) + let pluginProject = UI.projects.foundations.utilities.nodeChildren.findChildByCodeName(plugins, node.project) let pluginFolderName = UI.projects.foundations.utilities.plugins.getPluginFolderNamesByNodeType(node.type) let pluginForlderNodeType = 'Plugin ' + pluginFolderName.replaceAll('-', ' ') - let pluginFolderNode = UI.projects.foundations.utilities.children.findChildByType(pluginProject, pluginForlderNodeType) + let pluginFolderNode = UI.projects.foundations.utilities.nodeChildren.findChildByType(pluginProject, pluginForlderNodeType) let pluginFile = UI.projects.foundations.utilities.plugins.addMissingPluginFile(pluginFolderNode, node.name, pluginFolderName, node.type, true) node.isPlugin = true diff --git a/Projects/Foundations/UI/Function-Libraries/TaskFunctions.js b/Projects/Foundations/UI/Function-Libraries/TaskFunctions.js index f48704df1..e1198c7da 100644 --- a/Projects/Foundations/UI/Function-Libraries/TaskFunctions.js +++ b/Projects/Foundations/UI/Function-Libraries/TaskFunctions.js @@ -609,7 +609,7 @@ function newFoundationsFunctionLibraryTaskFunctions() { if (rootNode.type === project + ' Project') { let projectDefinition = rootNode.projectDefinition if (projectDefinition !== undefined) { - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, projectDefinition, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, projectDefinition, true) === true) { let projectTasks = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType, undefined, project) UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(projectTasks, projectDefinition) } @@ -640,7 +640,7 @@ function newFoundationsFunctionLibraryTaskFunctions() { let cryptoExchanges = cryptoEcosystem.cryptoExchanges[j] for (let k = 0; k < cryptoExchanges.exchanges.length; k++) { let cryptoExchange = cryptoExchanges.exchanges[k] - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, cryptoExchange, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, cryptoExchange, true) === true) { let exchangeTasks = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType) UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(exchangeTasks, cryptoExchange) } @@ -672,7 +672,7 @@ function newFoundationsFunctionLibraryTaskFunctions() { for (let i = 0; i < markets.length; i++) { let market = markets[i] - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, market, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, market, true) === true) { let marketDataTasks = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType) UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(marketDataTasks, market) } @@ -697,7 +697,7 @@ function newFoundationsFunctionLibraryTaskFunctions() { if (rootNode.type === rootNodeType) { let mine = rootNode - if (UI.projects.foundations.utilities.children.isMissingChildrenById(node, mine, true) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenById(node, mine, true) === true) { let dataMineTasks = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, newNodeType) UI.projects.foundations.functionLibraries.attachDetach.referenceAttachNode(dataMineTasks, mine) } diff --git a/Projects/Foundations/UI/Spaces/Charting-Space/TimeMachine.js b/Projects/Foundations/UI/Spaces/Charting-Space/TimeMachine.js index 635f16fc7..c37eb295c 100644 --- a/Projects/Foundations/UI/Spaces/Charting-Space/TimeMachine.js +++ b/Projects/Foundations/UI/Spaces/Charting-Space/TimeMachine.js @@ -163,8 +163,8 @@ function newTimeMachine() { function setInitialPosition() { if (thisObject.container.frame.position.x === 0 && thisObject.container.frame.position.y === 0) { - let timeMachineIndex = UI.projects.foundations.utilities.children.findChildIndexAtParentNode(thisObject.payload.node) - let dashboardIndex = UI.projects.foundations.utilities.children.findChildIndexAtParentNode(thisObject.payload.parentNode) + let timeMachineIndex = UI.projects.foundations.utilities.nodeChildren.findChildIndexAtParentNode(thisObject.payload.node) + let dashboardIndex = UI.projects.foundations.utilities.nodeChildren.findChildIndexAtParentNode(thisObject.payload.parentNode) thisObject.container.frame.position.x = thisObject.container.frame.width * timeMachineIndex * 2 thisObject.container.frame.position.y = thisObject.container.frame.height * dashboardIndex * 2 diff --git a/Projects/Foundations/UI/Utilities/Plugins.js b/Projects/Foundations/UI/Utilities/Plugins.js index 69597dfd2..70fb48ac1 100644 --- a/Projects/Foundations/UI/Utilities/Plugins.js +++ b/Projects/Foundations/UI/Utilities/Plugins.js @@ -33,7 +33,7 @@ function newFoundationsUtilitiesPlugins() { } function addMissingPluginFile(node, fileName, pluginFolder, nodeType, saveWithWorkspace) { - if (UI.projects.foundations.utilities.children.isMissingChildrenByName(node, fileName) === true) { + if (UI.projects.foundations.utilities.nodeChildren.isMissingChildrenByName(node, fileName) === true) { let child = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(node, 'Plugin File', undefined, 'Foundations') child.name = fileName child.config = JSON.stringify({ diff --git a/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js b/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js index 80b03c473..c0b331f38 100644 --- a/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js +++ b/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js @@ -535,7 +535,7 @@ function newGovernanceFunctionLibraryClaimsProgram() { let destinationNodeChild = destinationNode[property.name] let originNodeChildType = getOriginNodeChildType(destinationNodeChild) - let originNodeChild = UI.projects.foundations.utilities.children.findChildReferencingThisNode(originNode, destinationNodeChild) + let originNodeChild = UI.projects.foundations.utilities.nodeChildren.findChildReferencingThisNode(originNode, destinationNodeChild) if (originNodeChild === undefined) { originNodeChild = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(originNode, originNodeChildType) @@ -552,7 +552,7 @@ function newGovernanceFunctionLibraryClaimsProgram() { let destinationNodeChild = propertyArray[m] let originNodeChildType = getOriginNodeChildType(destinationNodeChild) - let originNodeChild = UI.projects.foundations.utilities.children.findChildReferencingThisNode(originNode, destinationNodeChild) + let originNodeChild = UI.projects.foundations.utilities.nodeChildren.findChildReferencingThisNode(originNode, destinationNodeChild) if (originNodeChild === undefined) { originNodeChild = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(originNode, originNodeChildType) diff --git a/Projects/Governance/UI/Function-Libraries/VotingProgram.js b/Projects/Governance/UI/Function-Libraries/VotingProgram.js index 1ab72bf36..7b1b6aca3 100644 --- a/Projects/Governance/UI/Function-Libraries/VotingProgram.js +++ b/Projects/Governance/UI/Function-Libraries/VotingProgram.js @@ -552,7 +552,7 @@ function newGovernanceFunctionLibraryVotingProgram() { let destinationNodeChild = destinationNode[property.name] let originNodeChildType = getOriginNodeChildType(destinationNodeChild) - let originNodeChild = UI.projects.foundations.utilities.children.findChildReferencingThisNode(originNode, destinationNodeChild) + let originNodeChild = UI.projects.foundations.utilities.nodeChildren.findChildReferencingThisNode(originNode, destinationNodeChild) if (originNodeChild === undefined) { originNodeChild = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(originNode, originNodeChildType) @@ -569,7 +569,7 @@ function newGovernanceFunctionLibraryVotingProgram() { let destinationNodeChild = propertyArray[m] let originNodeChildType = getOriginNodeChildType(destinationNodeChild) - let originNodeChild = UI.projects.foundations.utilities.children.findChildReferencingThisNode(originNode, destinationNodeChild) + let originNodeChild = UI.projects.foundations.utilities.nodeChildren.findChildReferencingThisNode(originNode, destinationNodeChild) if (originNodeChild === undefined) { originNodeChild = UI.projects.foundations.functionLibraries.uiObjectsFromNodes.addUIObject(originNode, originNodeChildType) diff --git a/Projects/ProjectsSchema.json b/Projects/ProjectsSchema.json index e03e7b334..b05374e4e 100644 --- a/Projects/ProjectsSchema.json +++ b/Projects/ProjectsSchema.json @@ -180,7 +180,7 @@ }, { "name": "Node Children", - "propertyName": "children", + "propertyName": "nodeChildren", "functionName": "newFoundationsUtilitiesNodeChildren" }, {