From b929c3ec29e6279f07bcffcfa00cf996d5eb8d04 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 19 Jul 2021 11:58:19 +0200 Subject: [PATCH] Removing Unused spaces --- .../UI/Spaces/Features-Space/Features.js | 47 ------------------ .../Governance/UI/Spaces/Pools-Space/Pools.js | 49 ------------------- .../UI/Spaces/Positions-Space/Positions.js | 47 ------------------ .../Spaces/User-Profile-Space/UserProfile.js | 8 +++ Projects/ProjectsSchema.json | 39 --------------- 5 files changed, 8 insertions(+), 182 deletions(-) delete mode 100644 Projects/Governance/UI/Spaces/Features-Space/Features.js delete mode 100644 Projects/Governance/UI/Spaces/Pools-Space/Pools.js delete mode 100644 Projects/Governance/UI/Spaces/Positions-Space/Positions.js diff --git a/Projects/Governance/UI/Spaces/Features-Space/Features.js b/Projects/Governance/UI/Spaces/Features-Space/Features.js deleted file mode 100644 index c19f2b52e..000000000 --- a/Projects/Governance/UI/Spaces/Features-Space/Features.js +++ /dev/null @@ -1,47 +0,0 @@ -function newGovernanceFeaturesSpace() { - const MODULE_NAME = 'Features Space' - - let thisObject = { - container: undefined, - physics: physics, - draw: draw, - getContainer: getContainer, - finalize: finalize, - initialize: initialize - } - - thisObject.container = newContainer() - thisObject.container.initialize(MODULE_NAME) - thisObject.container.isDraggeable = false - - return thisObject - - function finalize() { - thisObject.container.finalize() - thisObject.container = undefined - } - - function initialize() { - - } - - function physics() { - if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return } - } - - function getContainer(point) { - - return undefined // since this space does not draw anything we return here - - if (thisObject.container.frame.isThisPointHere(point, true) === true) { - thisObject.container.space = MODULE_NAME - return thisObject.container - } else { - return undefined - } - } - - function draw() { - - } -} diff --git a/Projects/Governance/UI/Spaces/Pools-Space/Pools.js b/Projects/Governance/UI/Spaces/Pools-Space/Pools.js deleted file mode 100644 index cd8d61140..000000000 --- a/Projects/Governance/UI/Spaces/Pools-Space/Pools.js +++ /dev/null @@ -1,49 +0,0 @@ -function newGovernancePoolsSpace() { - const MODULE_NAME = 'Pool Space' - - let thisObject = { - container: undefined, - physics: physics, - draw: draw, - getContainer: getContainer, - finalize: finalize, - initialize: initialize - } - - thisObject.container = newContainer() - thisObject.container.initialize(MODULE_NAME) - thisObject.container.isDraggeable = false - - return thisObject - - function initialize() { - - } - - function finalize() { - thisObject.container.finalize() - thisObject.container = undefined - } - - function getContainer(point) { - - return undefined // since this space does not draw anything we return here - - if (thisObject.container.frame.isThisPointHere(point, true) === true) { - thisObject.container.space = MODULE_NAME - return thisObject.container - } else { - return undefined - } - } - - function physics() { - if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return } - - UI.projects.governance.functionLibraries.distributionProcess.calculate() - } - - function draw() { - - } -} diff --git a/Projects/Governance/UI/Spaces/Positions-Space/Positions.js b/Projects/Governance/UI/Spaces/Positions-Space/Positions.js deleted file mode 100644 index 5ced31241..000000000 --- a/Projects/Governance/UI/Spaces/Positions-Space/Positions.js +++ /dev/null @@ -1,47 +0,0 @@ -function newGovernancePositionsSpace() { - const MODULE_NAME = 'Positions Space' - - let thisObject = { - container: undefined, - physics: physics, - draw: draw, - getContainer: getContainer, - finalize: finalize, - initialize: initialize - } - - thisObject.container = newContainer() - thisObject.container.initialize(MODULE_NAME) - thisObject.container.isDraggeable = false - - return thisObject - - function finalize() { - thisObject.container.finalize() - thisObject.container = undefined - } - - function initialize() { - - } - - function physics() { - if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return } - } - - function getContainer(point) { - - return undefined // since this space does not draw anything we return here - - if (thisObject.container.frame.isThisPointHere(point, true) === true) { - thisObject.container.space = MODULE_NAME - return thisObject.container - } else { - return undefined - } - } - - function draw() { - - } -} diff --git a/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js b/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js index 73871d8a8..677595553 100644 --- a/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js +++ b/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js @@ -42,6 +42,13 @@ function newGovernanceUserProfileSpace() { function physics() { if (UI.projects.foundations.spaces.designSpace.workspace === undefined) { return } + /* + Here we will run the distribution process, that in turn will run all the programs. + */ + UI.projects.governance.functionLibraries.distributionProcess.calculate() + /* + Load the user profiles with Token Power. + */ let userProfiles = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadsByNodeType('User Profile') if (waitingForResponses !== 0) { return } /* @@ -57,6 +64,7 @@ function newGovernanceUserProfileSpace() { } } + function getBlockchainAccount(userProfile) { let signature = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(userProfile.payload, 'signature') if (signature === undefined || signature === "") { return } diff --git a/Projects/ProjectsSchema.json b/Projects/ProjectsSchema.json index 2c153a954..dde7bf381 100644 --- a/Projects/ProjectsSchema.json +++ b/Projects/ProjectsSchema.json @@ -1116,45 +1116,6 @@ "onMouseOverIndex": 1, "onMouseClickIndex": 1, "onMouseDownIndex": 1 - }, - { - "name": "Features Space", - "folderName": "Features-Space", - "propertyName": "featuresSpace", - "functionName": "newGovernanceFeaturesSpace", - "initializationIndex": 2, - "animationPhysicsIndex": 2, - "animationDrawIndex": 2, - "onMouseWheelIndex": 2, - "onMouseOverIndex": 2, - "onMouseClickIndex": 2, - "onMouseDownIndex": 2 - }, - { - "name": "Positions Space", - "folderName": "Positions-Space", - "propertyName": "positionsSpace", - "functionName": "newGovernancePositionsSpace", - "initializationIndex": 3, - "animationPhysicsIndex": 3, - "animationDrawIndex": 3, - "onMouseWheelIndex": 3, - "onMouseOverIndex": 3, - "onMouseClickIndex": 3, - "onMouseDownIndex": 3 - }, - { - "name": "Pools Space", - "folderName": "Pools-Space", - "propertyName": "poolsSpace", - "functionName": "newGovernancePoolsSpace", - "initializationIndex": 4, - "animationPhysicsIndex": 4, - "animationDrawIndex": 4, - "onMouseWheelIndex": 4, - "onMouseOverIndex": 4, - "onMouseClickIndex": 4, - "onMouseDownIndex": 4 } ] },