From 612b9f30ee0e3e793fc621bbc3caf216d7205ab7 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 2 Jun 2021 22:26:18 +0200 Subject: [PATCH] Governance Implementation --- .../Features.js} | 4 +- .../Spaces/User-Profile-Space/UserProfile.js | 44 +++++++++++++++++++ Projects/ProjectsSchema.json | 37 +++++++++++----- 3 files changed, 71 insertions(+), 14 deletions(-) rename Projects/Governance/UI/Spaces/{User-Contributions-Space/UserContributions.js => Features-Space/Features.js} (88%) create mode 100644 Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js diff --git a/Projects/Governance/UI/Spaces/User-Contributions-Space/UserContributions.js b/Projects/Governance/UI/Spaces/Features-Space/Features.js similarity index 88% rename from Projects/Governance/UI/Spaces/User-Contributions-Space/UserContributions.js rename to Projects/Governance/UI/Spaces/Features-Space/Features.js index 456b300c0..2f67fa2e5 100644 --- a/Projects/Governance/UI/Spaces/User-Contributions-Space/UserContributions.js +++ b/Projects/Governance/UI/Spaces/Features-Space/Features.js @@ -1,5 +1,5 @@ -function newGovernanceUserContributionsSpace() { - const MODULE_NAME = 'User Contributions Space' +function newGovernanceUserFeaturesSpace() { + const MODULE_NAME = 'Features Space' let thisObject = { container: undefined, diff --git a/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js b/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js new file mode 100644 index 000000000..bfd8a9f6a --- /dev/null +++ b/Projects/Governance/UI/Spaces/User-Profile-Space/UserProfile.js @@ -0,0 +1,44 @@ +function newGovernanceUserProfileSpace() { + const MODULE_NAME = 'User Profile Space' + + let thisObject = { + container: undefined, + physics: physics, + draw: draw, + getContainer: getContainer, + finalize: finalize, + initialize: initialize + } + + thisObject.container = newContainer() + thisObject.container.initialize(MODULE_NAME) + + return thisObject + + function finalize() { + thisObject.container.finalize() + thisObject.container = undefined + } + + function initialize() { + + } + + function physics() { + + } + + function getContainer(point) { + + 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/ProjectsSchema.json b/Projects/ProjectsSchema.json index d10fbe1d7..fdd264d2c 100644 --- a/Projects/ProjectsSchema.json +++ b/Projects/ProjectsSchema.json @@ -1010,10 +1010,10 @@ ], "spaces": [ { - "name": "Assets Space", - "folderName": "Assets-Space", - "propertyName": "assetsSpace", - "functionName": "newGobernanceAssetsSpace", + "name": "User Profile Space", + "folderName": "User-Profile-Space", + "propertyName": "userProfileSpace", + "functionName": "newGovernanceUserProfileSpace", "initializationIndex": 0, "animationPhysicsIndex": 0, "animationDrawIndex": 0, @@ -1023,10 +1023,10 @@ "onMouseDownIndex": 0 }, { - "name": "Ranking Space", - "folderName": "Ranking-Space", - "propertyName": "rankingSpace", - "functionName": "newGovernanceRankingSpace", + "name": "Assets Space", + "folderName": "Assets-Space", + "propertyName": "assetsSpace", + "functionName": "newGobernanceAssetsSpace", "initializationIndex": 1, "animationPhysicsIndex": 1, "animationDrawIndex": 1, @@ -1036,10 +1036,10 @@ "onMouseDownIndex": 1 }, { - "name": "User Contributions Space", - "folderName": "User-Contributions-Space", - "propertyName": "userContributionsSpace", - "functionName": "newGovernanceUserContributionsSpace", + "name": "User Features Space", + "folderName": "User-Features-Space", + "propertyName": "userFeaturesSpace", + "functionName": "newGovernanceUserFeaturesSpace", "initializationIndex": 2, "animationPhysicsIndex": 2, "animationDrawIndex": 2, @@ -1047,6 +1047,19 @@ "onMouseOverIndex": 2, "onMouseClickIndex": 2, "onMouseDownIndex": 2 + }, + { + "name": "Ranking Space", + "folderName": "Ranking-Space", + "propertyName": "rankingSpace", + "functionName": "newGovernanceRankingSpace", + "initializationIndex": 3, + "animationPhysicsIndex": 3, + "animationDrawIndex": 3, + "onMouseWheelIndex": 3, + "onMouseOverIndex": 3, + "onMouseClickIndex": 3, + "onMouseDownIndex": 3 } ] },