User Profiles loaded both at the Network and Desktop
This commit is contained in:
1 parent
8716812610
commit
94c45f2bdd
7 files changed
+27
-43
No files matched your search
@@ -43,7 +43,7 @@ exports.newNetworkModulesUserProfiles = function newNetworkModulesUserProfiles()
|
||||
let userProfileId = userProfilePlugin.id
|
||||
let userHandle = config.signature.message
|
||||
|
||||
let userProfile = NT.projects.socialTrading.modules.socialGraphUserProfile.newSocialTradingModulesSocialGraphUserProfile()
|
||||
let userProfile = SA.projects.socialTrading.modules.socialGraphUserProfile.newSocialTradingModulesSocialGraphUserProfile()
|
||||
userProfile.initialize(
|
||||
userProfileId,
|
||||
userHandle,
|
||||
|
||||
@@ -1468,24 +1468,6 @@
|
||||
"functionName": "newSocialTradingModulesQueriesEvents",
|
||||
"fileName": "Queries/Events.js"
|
||||
},
|
||||
{
|
||||
"name": "User Profile",
|
||||
"propertyName": "socialGraphUserProfile",
|
||||
"functionName": "newSocialTradingModulesSocialGraphUserProfile",
|
||||
"fileName": "Social-Graph/UserProfile.js"
|
||||
},
|
||||
{
|
||||
"name": "Bot Profile",
|
||||
"propertyName": "socialGraphBotProfile",
|
||||
"functionName": "newSocialTradingModulesSocialGraphBotProfile",
|
||||
"fileName": "Social-Graph/BotProfile.js"
|
||||
},
|
||||
{
|
||||
"name": "Post",
|
||||
"propertyName": "socialGraphPost",
|
||||
"functionName": "newSocialTradingModulesSocialGraphPost",
|
||||
"fileName": "Social-Graph/Post.js"
|
||||
},
|
||||
{
|
||||
"name": "Social Graph",
|
||||
"propertyName": "socialGraph",
|
||||
@@ -1533,6 +1515,26 @@
|
||||
]
|
||||
},
|
||||
"SA": {
|
||||
"modules": [
|
||||
{
|
||||
"name": "User Profile",
|
||||
"propertyName": "socialGraphUserProfile",
|
||||
"functionName": "newSocialTradingModulesSocialGraphUserProfile",
|
||||
"fileName": "Social-Graph/UserProfile.js"
|
||||
},
|
||||
{
|
||||
"name": "Bot Profile",
|
||||
"propertyName": "socialGraphBotProfile",
|
||||
"functionName": "newSocialTradingModulesSocialGraphBotProfile",
|
||||
"fileName": "Social-Graph/BotProfile.js"
|
||||
},
|
||||
{
|
||||
"name": "Post",
|
||||
"propertyName": "socialGraphPost",
|
||||
"functionName": "newSocialTradingModulesSocialGraphPost",
|
||||
"fileName": "Social-Graph/Post.js"
|
||||
}
|
||||
],
|
||||
"globals": [
|
||||
{
|
||||
"name": "Query Constants",
|
||||
|
||||
@@ -14,6 +14,7 @@ exports.newSocialTradingModulesSocialGraph = function newSocialTradingModulesSoc
|
||||
no need to ask it to a network node.
|
||||
*/
|
||||
let thisObject = {
|
||||
userProfiles: undefined,
|
||||
initialize: initialize,
|
||||
finalize: finalize
|
||||
}
|
||||
@@ -24,7 +25,8 @@ exports.newSocialTradingModulesSocialGraph = function newSocialTradingModulesSoc
|
||||
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
|
||||
async function initialize() {
|
||||
thisObject.userProfiles = SA.projects.network.modules.userProfiles.newNetworkModulesUserProfiles()
|
||||
await thisObject.userProfiles.initialize()
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
exports.newSocialTradingModulesSocialGraph = function newSocialTradingModulesSocialGraph() {
|
||||
/*
|
||||
This object represent the entire Social Graph.
|
||||
*/
|
||||
let thisObject = {
|
||||
|
||||
initialize: initialize,
|
||||
finalize: finalize
|
||||
}
|
||||
|
||||
return thisObject
|
||||
|
||||
function finalize() {
|
||||
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -80,7 +80,7 @@ exports.newSocialTradingModulesSocialGraphBotProfile = function newSocialTrading
|
||||
if (thisObject.posts.get(emitterPostHash) !== undefined) {
|
||||
throw ('Post Already Exists.')
|
||||
} else {
|
||||
let post = NT.projects.socialTrading.modules.socialGraphPost.newSocialTradingModulesSocialGraphPost()
|
||||
let post = SA.projects.socialTrading.modules.socialGraphPost.newSocialTradingModulesSocialGraphPost()
|
||||
post.initialize(
|
||||
emitterUserProfileId,
|
||||
targetUserProfileId,
|
||||
File renamed without changes.
+1
-1
@@ -84,7 +84,7 @@ exports.newSocialTradingModulesSocialGraphUserProfile = function newSocialTradin
|
||||
if (thisObject.posts.get(emitterPostHash) !== undefined) {
|
||||
throw ('Post Already Exists.')
|
||||
} else {
|
||||
let post = NT.projects.socialTrading.modules.socialGraphPost.newSocialTradingModulesSocialGraphPost()
|
||||
let post = SA.projects.socialTrading.modules.socialGraphPost.newSocialTradingModulesSocialGraphPost()
|
||||
post.initialize(
|
||||
emitterUserProfileId,
|
||||
targetUserProfileId,
|
||||
Reference in new issue
Block a user