From 38f7164dca9e5fa87255ab17c9dbe8fe7937ac01 Mon Sep 17 00:00:00 2001 From: Axel Date: Wed, 1 Dec 2021 15:27:15 -0300 Subject: [PATCH] Rename project to allow previously existing desktop to coexist --- Desktop/DesktopApp.js | 27 +- Desktop/UI/Globals.js | 17 + Desktop/UI/WebApp.js | 356 +-- Desktop/UI/WebAppLoader.js | 118 + Desktop/UI/WebAppPreLoader.js | 111 + Desktop/UI/WebDebugLog.js | 21 + Desktop/UI/require.js | 2145 +++++++++++++++++ .../Fonts/Saira-Condensed.woff2 | Bin .../public => WebServer}/Fonts/Saira.woff2 | Bin .../public => WebServer}/Fonts/segoeui.woff | Bin .../images => WebServer/Images}/favicon.ico | Bin .../{frontend/src => WebServer/css}/main.css | 0 Desktop/WebServer/index.html | 164 ++ DesktopReact/DesktopApp.js | 81 + DesktopReact/UI/WebApp.js | 367 +++ .../backend/src/index.js | 0 .../frontend/config/env.js | 0 .../frontend/config/getHttpsConfig.js | 0 .../frontend/config/modules.js | 0 .../frontend/config/paths.js | 0 .../frontend/config/pnpTs.js | 0 .../frontend/config/webpack.config.js | 0 .../config/webpackDevServer.config.js | 0 .../public/Fonts/Saira-Condensed.woff2 | Bin 0 -> 17000 bytes .../frontend/public/Fonts/Saira.woff2 | Bin 0 -> 17096 bytes .../frontend/public/Fonts/segoeui.woff | Bin 0 -> 22720 bytes .../frontend/public/index.html | 0 .../frontend/public/manifest.json | 0 .../frontend/public/robots.txt | 0 .../frontend/scripts/build.js | 0 .../frontend/scripts/start.js | 0 .../frontend/scripts/test.js | 0 .../frontend/src/api/service.js | 0 .../frontend/src/components/Root.js | 0 .../frontend/src/components/User/UserCard.css | 0 .../frontend/src/components/User/UserCard.js | 0 .../components/UsersSidebar/UsersSidebar.css | 0 .../components/UsersSidebar/UsersSidebar.js | 0 .../frontend/src/components/feed/Feed.css | 0 .../frontend/src/components/feed/Feed.js | 0 .../frontend/src/components/home/App.css | 0 .../frontend/src/components/home/App.js | 0 .../frontend/src/components/logo/Logo.css | 0 .../frontend/src/components/logo/Logo.js | 0 .../src/components/notFound/NotFound.js | 0 .../frontend/src/components/post/Post.css | 0 .../frontend/src/components/post/Post.js | 0 .../postPlaceholder/PostPlaceholder.css | 0 .../postPlaceholder/PostPlaceholder.js | 0 .../src/components/postsFeed/PostsFeed.css | 0 .../src/components/postsFeed/PostsFeed.js | 0 .../src/components/searchBox/SearchBox.css | 0 .../src/components/searchBox/SearchBox.js | 0 .../components/showMoreUsers/ShowMoreUsers.js | 0 .../src/components/sidebar/Sidebar.css | 0 .../src/components/sidebar/Sidebar.js | 0 .../components/sidebarItem/SidebarItem.css | 0 .../src/components/sidebarItem/SidebarItem.js | 0 .../suggestedUsers/SuggestedUsers.css | 0 .../suggestedUsers/SuggestedUsers.js | 0 .../components/userProfile/UserProfile.css | 0 .../src/components/userProfile/UserProfile.js | 0 .../userProfileHeader/UserProfileHeader.css | 0 .../userProfileHeader/UserProfileHeader.js | 0 .../frontend/src/images/banner.jpg | Bin DesktopReact/frontend/src/images/favicon.ico | Bin 0 -> 15086 bytes .../frontend/src/images/pfp.png | Bin .../frontend/src/images/superalgos.png | Bin .../frontend/src/index.css | 0 .../frontend/src/index.js | 0 DesktopReact/frontend/src/main.css | 309 +++ .../frontend/src/reportWebVitals.js | 0 .../frontend/src/store/index.js | 0 .../frontend/src/store/slices/Globals.js | 0 DesktopRootReact.js | 86 + desktop-react.js | 16 + 76 files changed, 3650 insertions(+), 168 deletions(-) create mode 100644 Desktop/UI/Globals.js create mode 100644 Desktop/UI/WebAppLoader.js create mode 100644 Desktop/UI/WebAppPreLoader.js create mode 100644 Desktop/UI/WebDebugLog.js create mode 100644 Desktop/UI/require.js rename Desktop/{frontend/public => WebServer}/Fonts/Saira-Condensed.woff2 (100%) rename Desktop/{frontend/public => WebServer}/Fonts/Saira.woff2 (100%) rename Desktop/{frontend/public => WebServer}/Fonts/segoeui.woff (100%) rename Desktop/{frontend/src/images => WebServer/Images}/favicon.ico (100%) rename Desktop/{frontend/src => WebServer/css}/main.css (100%) create mode 100644 Desktop/WebServer/index.html create mode 100644 DesktopReact/DesktopApp.js create mode 100644 DesktopReact/UI/WebApp.js rename {Desktop => DesktopReact}/backend/src/index.js (100%) rename {Desktop => DesktopReact}/frontend/config/env.js (100%) rename {Desktop => DesktopReact}/frontend/config/getHttpsConfig.js (100%) rename {Desktop => DesktopReact}/frontend/config/modules.js (100%) rename {Desktop => DesktopReact}/frontend/config/paths.js (100%) rename {Desktop => DesktopReact}/frontend/config/pnpTs.js (100%) rename {Desktop => DesktopReact}/frontend/config/webpack.config.js (100%) rename {Desktop => DesktopReact}/frontend/config/webpackDevServer.config.js (100%) create mode 100644 DesktopReact/frontend/public/Fonts/Saira-Condensed.woff2 create mode 100644 DesktopReact/frontend/public/Fonts/Saira.woff2 create mode 100644 DesktopReact/frontend/public/Fonts/segoeui.woff rename {Desktop => DesktopReact}/frontend/public/index.html (100%) rename {Desktop => DesktopReact}/frontend/public/manifest.json (100%) rename {Desktop => DesktopReact}/frontend/public/robots.txt (100%) rename {Desktop => DesktopReact}/frontend/scripts/build.js (100%) rename {Desktop => DesktopReact}/frontend/scripts/start.js (100%) rename {Desktop => DesktopReact}/frontend/scripts/test.js (100%) rename {Desktop => DesktopReact}/frontend/src/api/service.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/Root.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/User/UserCard.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/User/UserCard.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/UsersSidebar/UsersSidebar.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/UsersSidebar/UsersSidebar.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/feed/Feed.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/feed/Feed.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/home/App.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/home/App.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/logo/Logo.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/logo/Logo.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/notFound/NotFound.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/post/Post.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/post/Post.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/postPlaceholder/PostPlaceholder.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/postPlaceholder/PostPlaceholder.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/postsFeed/PostsFeed.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/postsFeed/PostsFeed.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/searchBox/SearchBox.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/searchBox/SearchBox.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/showMoreUsers/ShowMoreUsers.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/sidebar/Sidebar.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/sidebar/Sidebar.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/sidebarItem/SidebarItem.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/sidebarItem/SidebarItem.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/suggestedUsers/SuggestedUsers.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/suggestedUsers/SuggestedUsers.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/userProfile/UserProfile.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/userProfile/UserProfile.js (100%) rename {Desktop => DesktopReact}/frontend/src/components/userProfileHeader/UserProfileHeader.css (100%) rename {Desktop => DesktopReact}/frontend/src/components/userProfileHeader/UserProfileHeader.js (100%) rename {Desktop => DesktopReact}/frontend/src/images/banner.jpg (100%) create mode 100644 DesktopReact/frontend/src/images/favicon.ico rename {Desktop => DesktopReact}/frontend/src/images/pfp.png (100%) rename {Desktop => DesktopReact}/frontend/src/images/superalgos.png (100%) rename {Desktop => DesktopReact}/frontend/src/index.css (100%) rename {Desktop => DesktopReact}/frontend/src/index.js (100%) create mode 100644 DesktopReact/frontend/src/main.css rename {Desktop => DesktopReact}/frontend/src/reportWebVitals.js (100%) rename {Desktop => DesktopReact}/frontend/src/store/index.js (100%) rename {Desktop => DesktopReact}/frontend/src/store/slices/Globals.js (100%) create mode 100644 DesktopRootReact.js create mode 100644 desktop-react.js diff --git a/Desktop/DesktopApp.js b/Desktop/DesktopApp.js index 4ac8410b5..3a8cc7c6f 100644 --- a/Desktop/DesktopApp.js +++ b/Desktop/DesktopApp.js @@ -1,4 +1,3 @@ -const express = require("./backend/src/index"); exports.newDesktopApp = function newDesktopApp() { let thisObject = { @@ -54,28 +53,26 @@ exports.newDesktopApp = function newDesktopApp() { /* This is where we will process all the messages comming from our web app. */ - thisObject.webAppInterface = DK.projects.socialTrading.modules.webAppInterface.newSocialTradingModulesWebAppInterface() // this sends events to the p2p network + thisObject.webAppInterface = DK.projects.socialTrading.modules.webAppInterface.newSocialTradingModulesWebAppInterface() /* This is where we will process all the events comming from the p2p network. */ - thisObject.p2pNetworkInterface = DK.projects.socialTrading.modules.p2pNetworkInterface.newSocialTradingModulesP2PNetworkInterface() // this receives events from p2p network + thisObject.p2pNetworkInterface = DK.projects.socialTrading.modules.p2pNetworkInterface.newSocialTradingModulesP2PNetworkInterface() /* This is the Personal Social Graph for the user running this App. */ - thisObject.socialGraph = DK.projects.socialTrading.modules.socialGraph.newSocialTradingModulesSocialGraph() // + thisObject.socialGraph = DK.projects.socialTrading.modules.socialGraph.newSocialTradingModulesSocialGraph() await thisObject.socialGraph.initialize() + /* + These are the Network Interfaces by which the Web App interacts with this Desktop Client. + */ + thisObject.webSocketsInterface = DK.projects.socialTrading.modules.webSocketsInterface.newDesktopModulesWebSocketsInterface() + thisObject.webSocketsInterface.initialize() + console.log('Desktop Client Web Sockets Interface ......................................... Listening at port ' + JSON.parse(DK.desktopApp.p2pNetworkClient.node.config).webSocketsPort) - - let express = require('./backend/src/index') - let expressPort = JSON.parse(DK.desktopApp.p2pNetworkClient.node.config).webPort; - express.startExpress(expressPort,SA); - console.log('express Interface ................................................ Listening at port ' + expressPort); - - /*TODO change this to have a definite port number*/ - let react = require('./frontend/scripts/start') - let reactPort = (+JSON.parse(DK.desktopApp.p2pNetworkClient.node.config).webPort + 1); - react.start(reactPort); - console.log('react Interface ................................................ Listening at port ' + reactPort); + thisObject.httpInterface = DK.projects.socialTrading.modules.httpInterface.newDesktopModulesHttpInterface() + thisObject.httpInterface.initialize() + console.log('Desktop Client Http Interface ................................................ Listening at port ' + JSON.parse(DK.desktopApp.p2pNetworkClient.node.config).webPort) } } } diff --git a/Desktop/UI/Globals.js b/Desktop/UI/Globals.js new file mode 100644 index 000000000..3d3b69587 --- /dev/null +++ b/Desktop/UI/Globals.js @@ -0,0 +1,17 @@ +/* Root object*/ +/* Root objects*/ +let UI = { + projects: {}, + schemas: { projectSchema: undefined }, + environment: undefined, + clientNode: undefined, + webApp: undefined +} + +let SA = { projects: {} } +/* +We will use this to load functions originally intended for Nodejs +*/ +let exports = {} + + diff --git a/Desktop/UI/WebApp.js b/Desktop/UI/WebApp.js index 16d781e44..cb4b4da43 100644 --- a/Desktop/UI/WebApp.js +++ b/Desktop/UI/WebApp.js @@ -5,7 +5,7 @@ function newWebApp() { Everything is being coded here until some structure emerges. */ let thisObject = { - messageReceived: messageReceived, + messageReceived: messageReceived, initialize: initialize, finalize: finalize } @@ -29,180 +29,239 @@ function newWebApp() { } } - /* - function setupRootObject(rootObject, rootObjectName) { - /!* - Here we will setup the UI object, with all the - projects and spaces. - *!/ - for (let i = 0; i < UI.schemas.projectSchema.length; i++) { - let projectDefinition = UI.schemas.projectSchema[i] - rootObject.projects[projectDefinition.propertyName] = {} - let projectInstance = rootObject.projects[projectDefinition.propertyName] + function setupRootObject(rootObject, rootObjectName) { + /* + Here we will setup the UI object, with all the + projects and spaces. + */ + for (let i = 0; i < UI.schemas.projectSchema.length; i++) { + let projectDefinition = UI.schemas.projectSchema[i] + rootObject.projects[projectDefinition.propertyName] = {} + let projectInstance = rootObject.projects[projectDefinition.propertyName] - projectInstance.utilities = {} - projectInstance.globals = {} - projectInstance.functionLibraries = {} - projectInstance.modules = {} + projectInstance.utilities = {} + projectInstance.globals = {} + projectInstance.functionLibraries = {} + projectInstance.modules = {} - if (projectDefinition[rootObjectName] === undefined) { - continue - } + if (projectDefinition[rootObjectName] === undefined) { continue } - /!* Set up Globals of this Project *!/ - if (projectDefinition[rootObjectName].globals !== undefined) { - for (let j = 0; j < projectDefinition[rootObjectName].globals.length; j++) { - let globalDefinition = projectDefinition[rootObjectName].globals[j] + /* Set up Globals of this Project */ + if (projectDefinition[rootObjectName].globals !== undefined) { + for (let j = 0; j < projectDefinition[rootObjectName].globals.length; j++) { + let globalDefinition = projectDefinition[rootObjectName].globals[j] - if (exports[globalDefinition.functionName] === undefined) { - projectInstance.globals[globalDefinition.propertyName] = eval(globalDefinition.functionName + '()') - } else { - projectInstance.globals[globalDefinition.propertyName] = eval('exports.' + globalDefinition.functionName + '()') - } + if (exports[globalDefinition.functionName] === undefined) { + projectInstance.globals[globalDefinition.propertyName] = eval(globalDefinition.functionName + '()') + } else { + projectInstance.globals[globalDefinition.propertyName] = eval('exports.' + globalDefinition.functionName + '()') } } + } - /!* Set up Utilities of this Project *!/ - if (projectDefinition[rootObjectName].utilities !== undefined) { - for (let j = 0; j < projectDefinition[rootObjectName].utilities.length; j++) { - let utilityDefinition = projectDefinition[rootObjectName].utilities[j] + /* Set up Utilities of this Project */ + if (projectDefinition[rootObjectName].utilities !== undefined) { + for (let j = 0; j < projectDefinition[rootObjectName].utilities.length; j++) { + let utilityDefinition = projectDefinition[rootObjectName].utilities[j] - if (exports[utilityDefinition.functionName] === undefined) { - projectInstance.utilities[utilityDefinition.propertyName] = eval(utilityDefinition.functionName + '()') - } else { - projectInstance.utilities[utilityDefinition.propertyName] = eval('exports.' + utilityDefinition.functionName + '()') - } + if (exports[utilityDefinition.functionName] === undefined) { + projectInstance.utilities[utilityDefinition.propertyName] = eval(utilityDefinition.functionName + '()') + } else { + projectInstance.utilities[utilityDefinition.propertyName] = eval('exports.' + utilityDefinition.functionName + '()') } } + } - /!* Set up Function Libraries of this Project *!/ - if (projectDefinition[rootObjectName].functionLibraries !== undefined) { - for (let j = 0; j < projectDefinition[rootObjectName].functionLibraries.length; j++) { - let functionLibraryDefinition = projectDefinition[rootObjectName].functionLibraries[j] + /* Set up Function Libraries of this Project */ + if (projectDefinition[rootObjectName].functionLibraries !== undefined) { + for (let j = 0; j < projectDefinition[rootObjectName].functionLibraries.length; j++) { + let functionLibraryDefinition = projectDefinition[rootObjectName].functionLibraries[j] - if (exports[functionLibraryDefinition.functionName] === undefined) { - projectInstance.functionLibraries[functionLibraryDefinition.propertyName] = eval(functionLibraryDefinition.functionName + '()') - } else { - projectInstance.functionLibraries[functionLibraryDefinition.propertyName] = eval('exports.' + functionLibraryDefinition.functionName + '()') - } + if (exports[functionLibraryDefinition.functionName] === undefined) { + projectInstance.functionLibraries[functionLibraryDefinition.propertyName] = eval(functionLibraryDefinition.functionName + '()') + } else { + projectInstance.functionLibraries[functionLibraryDefinition.propertyName] = eval('exports.' + functionLibraryDefinition.functionName + '()') } } + } - /!* Set up Modules of this Project *!/ - if (projectDefinition[rootObjectName].modules !== undefined) { - for (let j = 0; j < projectDefinition[rootObjectName].modules.length; j++) { - let functionLibraryDefinition = projectDefinition[rootObjectName].modules[j] + /* Set up Modules of this Project */ + if (projectDefinition[rootObjectName].modules !== undefined) { + for (let j = 0; j < projectDefinition[rootObjectName].modules.length; j++) { + let functionLibraryDefinition = projectDefinition[rootObjectName].modules[j] - if (exports[functionLibraryDefinition.functionName] === undefined) { - projectInstance.modules[functionLibraryDefinition.propertyName] = eval(functionLibraryDefinition.functionName + '()') - } else { - projectInstance.modules[functionLibraryDefinition.propertyName] = eval('exports.' + functionLibraryDefinition.functionName + '()') - } + if (exports[functionLibraryDefinition.functionName] === undefined) { + projectInstance.modules[functionLibraryDefinition.propertyName] = eval(functionLibraryDefinition.functionName + '()') + } else { + projectInstance.modules[functionLibraryDefinition.propertyName] = eval('exports.' + functionLibraryDefinition.functionName + '()') } } } } - */ + } - /* - async function loadWUserProfileTimeline() { - let queryMessage = { - queryType: SA.projects.socialTrading.globals.queryTypes.EVENTS, - emitterUserProfileId: undefined, - initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_LAST, - amountRequested: 100, - direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_PAST - } + async function loadWUserProfileTimeline() { + let queryMessage = { + queryType: SA.projects.socialTrading.globals.queryTypes.EVENTS, + emitterUserProfileId: undefined, + initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_LAST, + amountRequested: 100, + direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_PAST + } - let query = { - requestType: 'Query', - queryMessage: JSON.stringify(queryMessage) - } + let query = { + requestType: 'Query', + queryMessage: JSON.stringify(queryMessage) + } - await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage( - JSON.stringify(query) - ) - .then(console.log) - .catch(onError) + await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage( + JSON.stringify(query) + ) + .then(addToContentDiv) + .catch(onError) - function onError(errorMessage) { - console.log('[ERROR] Query not executed. ' + errorMessage) - console.log('[ERROR] query = ' + JSON.stringify(query)) - } + function onError(errorMessage) { + console.log('[ERROR] Query not executed. ' + errorMessage) + console.log('[ERROR] query = ' + JSON.stringify(query)) + } - function addToContentDiv(events) { - try { - let contentDiv = document.getElementById('content-div') - /!* - Delete al current content. - *!/ - while (contentDiv.childNodes.length > 4) { - let childToRemove = contentDiv.childNodes[contentDiv.childNodes.length - 1] - contentDiv.removeChild(childToRemove) - } - /!* - Render the timeline. - *!/ - for (let i = 0; i < events.length; i++) { - let event = events[i] + function addToContentDiv(events) { + try { + let contentDiv = document.getElementById('content-div') + /* + Delete al current content. + */ + while (contentDiv.childNodes.length > 4) { + let childToRemove = contentDiv.childNodes[contentDiv.childNodes.length - 1] + contentDiv.removeChild(childToRemove) + } + /* + Render the timeline. + */ + for (let i = 0; i < events.length; i++) { + let event = events[i] - let postDiv = document.createElement("div") - postDiv.setAttribute("class", "post-div") - let textNode + let postDiv = document.createElement("div") + postDiv.setAttribute("class", "post-div") + let textNode - switch (event.eventType) { - case SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST: { - textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " POSTED " + event.postText) - break - } - case SA.projects.socialTrading.globals.eventTypes.FOLLOW_USER_PROFILE: { - textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " FOLLOWED " + event.targetUserProfile.userProfileHandle) - break - } - case SA.projects.socialTrading.globals.eventTypes.UNFOLLOW_USER_PROFILE: { - textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " UNFOLLOWED " + event.targetUserProfile.userProfileHandle) - break - } + switch (event.eventType) { + case SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST: { + textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " POSTED " + event.postText) + break + } + case SA.projects.socialTrading.globals.eventTypes.FOLLOW_USER_PROFILE: { + textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " FOLLOWED " + event.targetUserProfile.userProfileHandle) + break + } + case SA.projects.socialTrading.globals.eventTypes.UNFOLLOW_USER_PROFILE: { + textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " UNFOLLOWED " + event.targetUserProfile.userProfileHandle) + break } - - postDiv.appendChild(textNode) - contentDiv.appendChild(postDiv) } - } - catch (err) { - console.log('[ERROR] err.stack = ' + err.stack) + + postDiv.appendChild(textNode) + contentDiv.appendChild(postDiv) } } - } - */ - - /* - async function loadWhoToFollow() { - let queryMessage = { - queryType: SA.projects.socialTrading.globals.queryTypes.UNFOLLOWED_USER_PROFILES, - emitterUserProfileId: undefined, - initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_FIRST, - amountRequested: 3, - direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_UP - } - - let query = { - requestType: 'Query', - queryMessage: JSON.stringify(queryMessage) - } - - await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage( - JSON.stringify(query) - ) - .then(addWhoToFollowTable) - .catch(onError) - - function onError(errorMessage) { - console.log('[ERROR] Query not executed. ' + errorMessage) - console.log('[ERROR] query = ' + JSON.stringify(query)) + catch (err) { + console.log('[ERROR] err.stack = ' + err.stack) } } - */ + } + + async function loadWhoToFollow() { + let queryMessage = { + queryType: SA.projects.socialTrading.globals.queryTypes.UNFOLLOWED_USER_PROFILES, + emitterUserProfileId: undefined, + initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_FIRST, + amountRequested: 3, + direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_UP + } + + let query = { + requestType: 'Query', + queryMessage: JSON.stringify(queryMessage) + } + + await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage( + JSON.stringify(query) + ) + .then(addWhoToFollowTable) + .catch(onError) + + function onError(errorMessage) { + console.log('[ERROR] Query not executed. ' + errorMessage) + console.log('[ERROR] query = ' + JSON.stringify(query)) + } + + function addWhoToFollowTable(profiles) { + + let contextCell = document.getElementById('who-to-follow-cell') + let table = document.createElement("table") + let tblBody = document.createElement("tbody") + + for (let i = 0; i < profiles.length; i++) { + let profile = profiles[i] + let row = document.createElement("tr") + + let cell = document.createElement("td") + addProfileToFollowTable(cell, profile) + row.appendChild(cell) + + tblBody.appendChild(row) + } + + table.appendChild(tblBody) + contextCell.appendChild(table) + table.setAttribute("class", "who-to-follow-table") + + function addProfileToFollowTable(htmlElement, profile) { + let table = document.createElement("table") + let tblBody = document.createElement("tbody") + + let row = document.createElement("tr") + + { + let cell = document.createElement("td") + let textNode = document.createTextNode('Profile Picture') + cell.appendChild(textNode) + row.appendChild(cell) + } + { + let cell = document.createElement("td") + let textNode = document.createTextNode(profile.userProfileHandle) + cell.appendChild(textNode) + row.appendChild(cell) + } + { + let cell = document.createElement("td") + let span = document.createElement("span") + let button = document.createElement("button") + let text = document.createTextNode('Follow') + + span.setAttribute("id", "profile-to-follow-span-" + profile.userProfileId) + button.setAttribute("id", "profile-to-follow-button-" + profile.userProfileId) + button.name = 'Follow Profile' + button.userProfileId = profile.userProfileId + + span.setAttribute("class", "profile-to-follow-span") + button.setAttribute("class", "profile-to-follow-button") + + button.appendChild(text) + span.appendChild(button) + cell.appendChild(span) + row.appendChild(cell) + } + + tblBody.appendChild(row) + + table.appendChild(tblBody) + htmlElement.appendChild(table) + table.setAttribute("class", "profile-to-follow-table") + } + } + } function setupEventHandlers() { /* @@ -226,7 +285,6 @@ function newWebApp() { function updateTextArea() { textArea.value = "" } - break } case 'Follow Profile': { @@ -244,7 +302,6 @@ function newWebApp() { button.setAttribute("class", "profile-to-unfollow-button") button.name = 'Unfollow Profile' } - break } case 'Unfollow Profile': { @@ -255,7 +312,6 @@ function newWebApp() { .then(updateButton) .catch(onError) -/* function updateButton() { let span = document.getElementById('profile-to-follow-span-' + event.target.userProfileId) let button = document.getElementById('profile-to-follow-button-' + event.target.userProfileId) @@ -263,8 +319,6 @@ function newWebApp() { button.setAttribute("class", "profile-to-follow-button") button.name = 'Follow Profile' } -*/ - break } } @@ -289,9 +343,7 @@ function newWebApp() { eventType ) { - return new Promise((resolve, reject) => { - asyncCall(resolve, reject) - }) + return new Promise((resolve, reject) => { asyncCall(resolve, reject) }) async function asyncCall(resolve, reject) { let eventMessage @@ -327,9 +379,7 @@ function newWebApp() { postText ) { - return new Promise((resolve, reject) => { - asyncCall(resolve, reject) - }) + return new Promise((resolve, reject) => { asyncCall(resolve, reject) }) async function asyncCall(resolve, reject) { let eventMessage diff --git a/Desktop/UI/WebAppLoader.js b/Desktop/UI/WebAppLoader.js new file mode 100644 index 000000000..ce4e46b77 --- /dev/null +++ b/Desktop/UI/WebAppLoader.js @@ -0,0 +1,118 @@ + +function newWebAppLoader() { + + let thisObject = { + loadModules: loadModules + } + + return thisObject + + async function loadModules() { + try { + let modulesArray = [ + 'WebDebugLog.js', + 'WebApp.js' + ] + + for (let i = 0; i < UI.schemas.projectSchema.length; i++) { + let project = UI.schemas.projectSchema[i] + + if (project.UI !== undefined) { + if (project.UI.functionLibraries !== undefined) { + for (let j = 0; j < project.UI.functionLibraries.length; j++) { + let fileName = project.UI.functionLibraries[j].fileName + if (fileName === undefined) {fileName = project.UI.functionLibraries[j].name.replaceAll(' ', '') + '.js'} + modulesArray.push('Projects' + '/' + project.name + '/' + 'UI' + '/' + 'Function-Libraries' + '/' + fileName) + } + } + if (project.UI.utilities !== undefined) { + for (let j = 0; j < project.UI.utilities.length; j++) { + let fileName = project.UI.utilities[j].fileName + if (fileName === undefined) {fileName = project.UI.utilities[j].name.replaceAll(' ', '') + '.js'} + modulesArray.push('Projects' + '/' + project.name + '/' + 'UI' + '/' + 'Utilities' + '/' + fileName) + } + } + if (project.UI.globals !== undefined) { + for (let j = 0; j < project.UI.globals.length; j++) { + let fileName = project.UI.globals[j].fileName + if (fileName === undefined) {fileName = project.UI.globals[j].name.replaceAll(' ', '') + '.js'} + modulesArray.push('Projects' + '/' + project.name + '/' + 'UI' + '/' + 'Globals' + '/' + fileName) + } + } + if (project.UI.modules !== undefined) { + for (let j = 0; j < project.UI.modules.length; j++) { + let fileName = project.UI.modules[j].fileName + if (fileName === undefined) {fileName = project.UI.modules[j].name.replaceAll(' ', '') + '.js'} + modulesArray.push('Projects' + '/' + project.name + '/' + 'UI' + '/' + 'Modules' + '/' + fileName) + } + } + } + + if (project.SA !== undefined) { + if (project.SA.functionLibraries !== undefined) { + for (let j = 0; j < project.SA.functionLibraries.length; j++) { + let fileName = project.SA.functionLibraries[j].fileName + if (fileName === undefined) {fileName = project.SA.functionLibraries[j].name.replaceAll(' ', '') + '.js'} + modulesArray.push('Projects' + '/' + project.name + '/' + 'SA' + '/' + 'Function-Libraries' + '/' + fileName) + } + } + if (project.SA.utilities !== undefined) { + for (let j = 0; j < project.SA.utilities.length; j++) { + let fileName = project.SA.utilities[j].fileName + if (fileName === undefined) {fileName = project.SA.utilities[j].name.replaceAll(' ', '') + '.js'} + modulesArray.push('Projects' + '/' + project.name + '/' + 'SA' + '/' + 'Utilities' + '/' + fileName) + } + } + if (project.SA.globals !== undefined) { + for (let j = 0; j < project.SA.globals.length; j++) { + let fileName = project.SA.globals[j].fileName + if (fileName === undefined) {fileName = project.SA.globals[j].name.replaceAll(' ', '') + '.js'} + modulesArray.push('Projects' + '/' + project.name + '/' + 'SA' + '/' + 'Globals' + '/' + fileName) + } + } + if (project.SA.modules !== undefined) { + for (let j = 0; j < project.SA.modules.length; j++) { + let fileName = project.SA.modules[j].fileName + if (fileName === undefined) {fileName = project.SA.modules[j].name.replaceAll(' ', '') + '.js'} + modulesArray.push('Projects' + '/' + project.name + '/' + 'SA' + '/' + 'Modules' + '/' + fileName) + } + } + } + } + + downloadIncludedFiles() + + function downloadIncludedFiles() { + + let downloadedCounter = 0 + + for (let i = 0; i < modulesArray.length; i++) { + let path = modulesArray[i] + + REQUIREJS([path], onRequired) + + function onRequired(pModule) { + try { + + downloadedCounter++ + + if (downloadedCounter === modulesArray.length) { + setTimeout(() => { + UI.webApp = newWebApp() + UI.webApp.initialize() + }, 500) + + } + } catch (err) { + console.log('[ERROR] loadModules -> onRequired -> err = ' + err.stack) + } + } + } + } + + } catch (err) { + console.log('[ERROR] loadModules -> err = ' + err.stack) + } + } +} + diff --git a/Desktop/UI/WebAppPreLoader.js b/Desktop/UI/WebAppPreLoader.js new file mode 100644 index 000000000..548e3da05 --- /dev/null +++ b/Desktop/UI/WebAppPreLoader.js @@ -0,0 +1,111 @@ + +function loadSuperalgos() { + + let browser = checkBrowserVersion() + if ((browser.name !== "Chrome" && browser.name !== "Safari") || (browser.name === "Chrome" && parseInt(browser.version) < 85) || (browser.name === "Safari" && parseInt(browser.version) < 13)) { + alert("Superalgos is officially supported on Google Chrome 85 or Safari 13.1 and above. Your browser version has been detected as potentially beneath this. If you continue you may experience some functionaility issues.\n\nDetected Browser: " + browser.name + "\nVersion: " + browser.version) + } + + loadGlobals() + + function loadGlobals() { + let path = "Globals.js" + REQUIREJS([path], onRequired) + + function onRequired(pModule) { + setupEnvironment() + } + } + + function setupEnvironment() { + httpRequest(undefined, 'Environment', onResponse) + + function onResponse(err, file) { + UI.environment = JSON.parse(file) + setupClientNode() + } + } + + function setupClientNode() { + httpRequest(undefined, 'ClientNode', onResponse) + + function onResponse(err, file) { + UI.clientNode = JSON.parse(file) + setupProjectsSchema() + } + } + + function setupProjectsSchema() { + httpRequest(undefined, 'ProjectsSchema', onResponse) + + function onResponse(err, file) { + UI.schemas.projectSchema = JSON.parse(file) + loadModules() + } + } + + function loadModules() { + let path = "WebAppLoader.js" + REQUIREJS([path], onRequired) + + function onRequired(pModule) { + let APP_LOADER_MODULE = newWebAppLoader() + APP_LOADER_MODULE.loadModules() + } + } +} + +function httpRequest(pContentToSend, pPath, callBackFunction) { + let xmlHttpRequest = new XMLHttpRequest() + xmlHttpRequest.onreadystatechange = function () { + if (this.readyState === 4 && this.status === 200) { + try { + callBackFunction(undefined, xmlHttpRequest.responseText) + } catch (err) { + console.log('[ERROR] httpRequest -> httpRequest -> err.stack = ' + err.stack) + console.log('[ERROR] httpRequest -> httpRequest -> pContentToSend = ' + pContentToSend) + console.log('[ERROR] httpRequest -> httpRequest -> pPath = ' + pPath) + console.log('[ERROR] httpRequest -> httpRequest -> xmlHttpRequest.responseText = ' + xmlHttpRequest.responseText) + console.log('[ERROR] httpRequest -> httpRequest -> callBackFunction = ' + callBackFunction) + + } + return + } else if (this.readyState === 4 && this.status === 404) { + callBackFunction({ result: "Fail", message: xmlHttpRequest.responseText.trim(), code: xmlHttpRequest.responseText.trim() }) + return + } + } + + if (pContentToSend === undefined) { + xmlHttpRequest.open("GET", pPath, true) + xmlHttpRequest.send() + } else { + try { + let blob = new Blob([pContentToSend], { type: 'text/plain' }) + xmlHttpRequest.open("POST", pPath, true) + xmlHttpRequest.send(blob) + } catch (err) { + if (ERROR_LOG === true) { console.log("[ERROR] callServer -> err.message = " + err.message) } + callBackFunction({ result: "Fail", message: err.message }) + } + } +} + +function checkBrowserVersion() { + + let ua = navigator.userAgent, tem, M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [] + if (/trident/i.test(M[1])) { + tem = /\brv[ :]+(\d+)/g.exec(ua) || [] + return { name: 'IE', version: (tem[1] || '') } + } + if (M[1] === 'Chrome') { + tem = ua.match(/\bOPR|Edge\/(\d+)/) + if (tem != null) { return { name: 'Opera', version: tem[1] } } + } + M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'] + if ((tem = ua.match(/version\/(\d+)/i)) != null) { M.splice(1, 1, tem[1]) } + return { + name: M[0], + version: M[1] + } +} diff --git a/Desktop/UI/WebDebugLog.js b/Desktop/UI/WebDebugLog.js new file mode 100644 index 000000000..2a6bc1af1 --- /dev/null +++ b/Desktop/UI/WebDebugLog.js @@ -0,0 +1,21 @@ +function newWebDebugLog() { + try { + let thisObject = { + write: write, + fileName: 'undefined' + } + + return thisObject + + function write(pText) { + console.log(spacePad(thisObject.fileName, 50) + ' : ' + pText) + + function spacePad(str, max) { + str = str.toString() + return str.length < max ? spacePad(' ' + str, max) : str + } + } + } catch (err) { + console.log(spacePad(MODULE_NAME, 50) + ' : ' + '[ERROR] WebDebugLog --> err = ' + err.stack) + } +} diff --git a/Desktop/UI/require.js b/Desktop/UI/require.js new file mode 100644 index 000000000..f9476f532 --- /dev/null +++ b/Desktop/UI/require.js @@ -0,0 +1,2145 @@ +/** vim: et:ts=4:sw=4:sts=4 + * @license RequireJS 2.3.5 Copyright jQuery Foundation and other contributors. + * Released under MIT license, https://github.com/REQUIREJS/REQUIREJS/blob/master/LICENSE + */ +//Not using strict: uneven strict support in browsers, #392, and causes +//problems with REQUIREJS.exec()/transpiler plugins that may not be strict. +/*jslint regexp: true, nomen: true, sloppy: true */ +/*global window, navigator, document, importScripts, setTimeout, opera */ + +var REQUIREJS, REQUIRE, DEFINE; +(function (global, setTimeout) { + var req, s, head, baseElement, dataMain, src, + interactiveScript, currentlyAddingScript, mainScript, subPath, + version = '2.3.5', + commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg, + cjsRequireRegExp = /[^.]\s*REQUIRE\s*\(\s*["']([^'"\s]+)["']\s*\)/g, + jsSuffixRegExp = /\.js$/, + currDirRegExp = /^\.\//, + op = Object.prototype, + ostring = op.toString, + hasOwn = op.hasOwnProperty, + isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document), + isWebWorker = !isBrowser && typeof importScripts !== 'undefined', + //PS3 indicates loaded and complete, but need to wait for complete + //specifically. Sequence is 'loading', 'loaded', execution, + // then 'complete'. The UA check is unfortunate, but not sure how + //to feature test w/o causing perf issues. + readyRegExp = isBrowser && navigator.platform === 'PLAYSTATION 3' ? + /^complete$/ : /^(complete|loaded)$/, + defContextName = '_', + //Oh the tragedy, detecting opera. See the usage of isOpera for reason. + isOpera = typeof opera !== 'undefined' && opera.toString() === '[object Opera]', + contexts = {}, + cfg = {}, + globalDefQueue = [], + useInteractive = false; + + //Could match something like ')//comment', do not lose the prefix to comment. + function commentReplace(match, singlePrefix) { + return singlePrefix || ''; + } + + function isFunction(it) { + return ostring.call(it) === '[object Function]'; + } + + function isArray(it) { + return ostring.call(it) === '[object Array]'; + } + + /** + * Helper function for iterating over an array. If the func returns + * a true value, it will break out of the loop. + */ + function each(ary, func) { + if (ary) { + var i; + for (i = 0; i < ary.length; i += 1) { + if (ary[i] && func(ary[i], i, ary)) { + break; + } + } + } + } + + /** + * Helper function for iterating over an array backwards. If the func + * returns a true value, it will break out of the loop. + */ + function eachReverse(ary, func) { + if (ary) { + var i; + for (i = ary.length - 1; i > -1; i -= 1) { + if (ary[i] && func(ary[i], i, ary)) { + break; + } + } + } + } + + function hasProp(obj, prop) { + return hasOwn.call(obj, prop); + } + + function getOwn(obj, prop) { + return hasProp(obj, prop) && obj[prop]; + } + + /** + * Cycles over properties in an object and calls a function for each + * property value. If the function returns a truthy value, then the + * iteration is stopped. + */ + function eachProp(obj, func) { + var prop; + for (prop in obj) { + if (hasProp(obj, prop)) { + if (func(obj[prop], prop)) { + break; + } + } + } + } + + /** + * Simple function to mix in properties from source into target, + * but only if target does not already have a property of the same name. + */ + function mixin(target, source, force, deepStringMixin) { + if (source) { + eachProp(source, function (value, prop) { + if (force || !hasProp(target, prop)) { + if (deepStringMixin && typeof value === 'object' && value && + !isArray(value) && !isFunction(value) && + !(value instanceof RegExp)) { + + if (!target[prop]) { + target[prop] = {}; + } + mixin(target[prop], value, force, deepStringMixin); + } else { + target[prop] = value; + } + } + }); + } + return target; + } + + //Similar to Function.prototype.bind, but the 'this' object is specified + //first, since it is easier to read/figure out what 'this' will be. + function bind(obj, fn) { + return function () { + return fn.apply(obj, arguments); + }; + } + + function scripts() { + return document.getElementsByTagName('script'); + } + + function defaultOnError(err) { + throw err; + } + + //Allow getting a global that is expressed in + //dot notation, like 'a.b.c'. + function getGlobal(value) { + if (!value) { + return value; + } + var g = global; + each(value.split('.'), function (part) { + g = g[part]; + }); + return g; + } + + /** + * Constructs an error with a pointer to an URL with more information. + * @param {String} id the error ID that maps to an ID on a web page. + * @param {String} message human readable error. + * @param {Error} [err] the original error, if there is one. + * + * @returns {Error} + */ + function makeError(id, msg, err, requireModules) { + var e = new Error(msg + '\nhttp://REQUIREJS.org/docs/errors.html#' + id); + e.requireType = id; + e.requireModules = requireModules; + if (err) { + e.originalError = err; + } + return e; + } + + if (typeof DEFINE !== 'undefined') { + //If a DEFINE is already in play via another AMD loader, + //do not overwrite. + return; + } + + if (typeof REQUIREJS !== 'undefined') { + if (isFunction(REQUIREJS)) { + //Do not overwrite an existing REQUIREJS instance. + return; + } + cfg = REQUIREJS; + REQUIREJS = undefined; + } + + //Allow for a REQUIRE config object + if (typeof REQUIRE !== 'undefined' && !isFunction(REQUIRE)) { + //assume it is a config object. + cfg = REQUIRE; + REQUIRE = undefined; + } + + function newContext(contextName) { + var inCheckLoaded, Module, context, handlers, + checkLoadedTimeoutId, + config = { + //Defaults. Do not set a default for map + //config to speed up normalize(), which + //will run faster if there is no default. + waitSeconds: 60, + baseUrl: './', + paths: {}, + bundles: {}, + pkgs: {}, + shim: {}, + config: {} + }, + registry = {}, + //registry of just enabled modules, to speed + //cycle breaking code when lots of modules + //are registered, but not activated. + enabledRegistry = {}, + undefEvents = {}, + defQueue = [], + defined = {}, + urlFetched = {}, + bundlesMap = {}, + requireCounter = 1, + unnormalizedCounter = 1; + + /** + * Trims the . and .. from an array of path segments. + * It will keep a leading path segment if a .. will become + * the first path segment, to help with module name lookups, + * which act like paths, but can be remapped. But the end result, + * all paths that use this function should look normalized. + * NOTE: this method MODIFIES the input array. + * @param {Array} ary the array of path segments. + */ + function trimDots(ary) { + var i, part; + for (i = 0; i < ary.length; i++) { + part = ary[i]; + if (part === '.') { + ary.splice(i, 1); + i -= 1; + } else if (part === '..') { + // If at the start, or previous value is still .., + // keep them so that when converted to a path it may + // still work when converted to a path, even though + // as an ID it is less than ideal. In larger point + // releases, may be better to just kick out an error. + if (i === 0 || (i === 1 && ary[2] === '..') || ary[i - 1] === '..') { + continue; + } else if (i > 0) { + ary.splice(i - 1, 2); + i -= 2; + } + } + } + } + + /** + * Given a relative module name, like ./something, normalize it to + * a real name that can be mapped to a path. + * @param {String} name the relative name + * @param {String} baseName a real name that the name arg is relative + * to. + * @param {Boolean} applyMap apply the map config to the value. Should + * only be done if this normalization is for a dependency ID. + * @returns {String} normalized name + */ + function normalize(name, baseName, applyMap) { + var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex, + foundMap, foundI, foundStarMap, starI, normalizedBaseParts, + baseParts = (baseName && baseName.split('/')), + map = config.map, + starMap = map && map['*']; + + //Adjust any relative paths. + if (name) { + name = name.split('/'); + lastIndex = name.length - 1; + + // If wanting node ID compatibility, strip .js from end + // of IDs. Have to do this here, and not in nameToUrl + // because node allows either .js or non .js to map + // to same file. + if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) { + name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, ''); + } + + // Starts with a '.' so need the baseName + if (name[0].charAt(0) === '.' && baseParts) { + //Convert baseName to array, and lop off the last part, + //so that . matches that 'directory' and not name of the baseName's + //module. For instance, baseName of 'one/two/three', maps to + //'one/two/three.js', but we want the directory, 'one/two' for + //this normalization. + normalizedBaseParts = baseParts.slice(0, baseParts.length - 1); + name = normalizedBaseParts.concat(name); + } + + trimDots(name); + name = name.join('/'); + } + + //Apply map config if available. + if (applyMap && map && (baseParts || starMap)) { + nameParts = name.split('/'); + + outerLoop: for (i = nameParts.length; i > 0; i -= 1) { + nameSegment = nameParts.slice(0, i).join('/'); + + if (baseParts) { + //Find the longest baseName segment match in the config. + //So, do joins on the biggest to smallest lengths of baseParts. + for (j = baseParts.length; j > 0; j -= 1) { + mapValue = getOwn(map, baseParts.slice(0, j).join('/')); + + //baseName segment has config, find if it has one for + //this name. + if (mapValue) { + mapValue = getOwn(mapValue, nameSegment); + if (mapValue) { + //Match, update name to the new value. + foundMap = mapValue; + foundI = i; + break outerLoop; + } + } + } + } + + //Check for a star map match, but just hold on to it, + //if there is a shorter segment match later in a matching + //config, then favor over this star map. + if (!foundStarMap && starMap && getOwn(starMap, nameSegment)) { + foundStarMap = getOwn(starMap, nameSegment); + starI = i; + } + } + + if (!foundMap && foundStarMap) { + foundMap = foundStarMap; + foundI = starI; + } + + if (foundMap) { + nameParts.splice(0, foundI, foundMap); + name = nameParts.join('/'); + } + } + + // If the name points to a package's name, use + // the package main instead. + pkgMain = getOwn(config.pkgs, name); + + return pkgMain ? pkgMain : name; + } + + function removeScript(name) { + if (isBrowser) { + each(scripts(), function (scriptNode) { + if (scriptNode.getAttribute('data-requiremodule') === name && + scriptNode.getAttribute('data-requirecontext') === context.contextName) { + scriptNode.parentNode.removeChild(scriptNode); + return true; + } + }); + } + } + + function hasPathFallback(id) { + var pathConfig = getOwn(config.paths, id); + if (pathConfig && isArray(pathConfig) && pathConfig.length > 1) { + //Pop off the first array value, since it failed, and + //retry + pathConfig.shift(); + context.REQUIRE.undef(id); + + //Custom REQUIRE that does not do map translation, since + //ID is "absolute", already mapped/resolved. + context.makeRequire(null, { + skipMap: true + })([id]); + + return true; + } + } + + //Turns a plugin!resource to [plugin, resource] + //with the plugin being undefined if the name + //did not have a plugin prefix. + function splitPrefix(name) { + var prefix, + index = name ? name.indexOf('!') : -1; + if (index > -1) { + prefix = name.substring(0, index); + name = name.substring(index + 1, name.length); + } + return [prefix, name]; + } + + /** + * Creates a module mapping that includes plugin prefix, module + * name, and path. If parentModuleMap is provided it will + * also normalize the name via REQUIRE.normalize() + * + * @param {String} name the module name + * @param {String} [parentModuleMap] parent module map + * for the module name, used to resolve relative names. + * @param {Boolean} isNormalized: is the ID already normalized. + * This is true if this call is done for a DEFINE() module ID. + * @param {Boolean} applyMap: apply the map config to the ID. + * Should only be true if this map is for a dependency. + * + * @returns {Object} + */ + function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) { + var url, pluginModule, suffix, nameParts, + prefix = null, + parentName = parentModuleMap ? parentModuleMap.name : null, + originalName = name, + isDefine = true, + normalizedName = ''; + + //If no name, then it means it is a REQUIRE call, generate an + //internal name. + if (!name) { + isDefine = false; + name = '_@r' + (requireCounter += 1); + } + + nameParts = splitPrefix(name); + prefix = nameParts[0]; + name = nameParts[1]; + + if (prefix) { + prefix = normalize(prefix, parentName, applyMap); + pluginModule = getOwn(defined, prefix); + } + + //Account for relative paths if there is a base name. + if (name) { + if (prefix) { + if (isNormalized) { + normalizedName = name; + } else if (pluginModule && pluginModule.normalize) { + //Plugin is loaded, use its normalize method. + normalizedName = pluginModule.normalize(name, function (name) { + return normalize(name, parentName, applyMap); + }); + } else { + // If nested plugin references, then do not try to + // normalize, as it will not normalize correctly. This + // places a restriction on resourceIds, and the longer + // term solution is not to normalize until plugins are + // loaded and all normalizations to allow for async + // loading of a loader plugin. But for now, fixes the + // common uses. Details in #1131 + normalizedName = name.indexOf('!') === -1 ? + normalize(name, parentName, applyMap) : + name; + } + } else { + //A regular module. + normalizedName = normalize(name, parentName, applyMap); + + //Normalized name may be a plugin ID due to map config + //application in normalize. The map config values must + //already be normalized, so do not need to redo that part. + nameParts = splitPrefix(normalizedName); + prefix = nameParts[0]; + normalizedName = nameParts[1]; + isNormalized = true; + + url = context.nameToUrl(normalizedName); + } + } + + //If the id is a plugin id that cannot be determined if it needs + //normalization, stamp it with a unique ID so two matching relative + //ids that may conflict can be separate. + suffix = prefix && !pluginModule && !isNormalized ? + '_unnormalized' + (unnormalizedCounter += 1) : + ''; + + return { + prefix: prefix, + name: normalizedName, + parentMap: parentModuleMap, + unnormalized: !!suffix, + url: url, + originalName: originalName, + isDefine: isDefine, + id: (prefix ? + prefix + '!' + normalizedName : + normalizedName) + suffix + }; + } + + function getModule(depMap) { + var id = depMap.id, + mod = getOwn(registry, id); + + if (!mod) { + mod = registry[id] = new context.Module(depMap); + } + + return mod; + } + + function on(depMap, name, fn) { + var id = depMap.id, + mod = getOwn(registry, id); + + if (hasProp(defined, id) && + (!mod || mod.defineEmitComplete)) { + if (name === 'defined') { + fn(defined[id]); + } + } else { + mod = getModule(depMap); + if (mod.error && name === 'error') { + fn(mod.error); + } else { + mod.on(name, fn); + } + } + } + + function onError(err, errback) { + var ids = err.requireModules, + notified = false; + + if (errback) { + errback(err); + } else { + each(ids, function (id) { + var mod = getOwn(registry, id); + if (mod) { + //Set error on module, so it skips timeout checks. + mod.error = err; + if (mod.events.error) { + notified = true; + mod.emit('error', err); + } + } + }); + + if (!notified) { + req.onError(err); + } + } + } + + /** + * Internal method to transfer globalQueue items to this context's + * defQueue. + */ + function takeGlobalQueue() { + //Push all the globalDefQueue items into the context's defQueue + if (globalDefQueue.length) { + each(globalDefQueue, function(queueItem) { + var id = queueItem[0]; + if (typeof id === 'string') { + context.defQueueMap[id] = true; + } + defQueue.push(queueItem); + }); + globalDefQueue = []; + } + } + + handlers = { + 'REQUIRE': function (mod) { + if (mod.REQUIRE) { + return mod.REQUIRE; + } else { + return (mod.REQUIRE = context.makeRequire(mod.map)); + } + }, + 'exports': function (mod) { + mod.usingExports = true; + if (mod.map.isDefine) { + if (mod.exports) { + return (defined[mod.map.id] = mod.exports); + } else { + return (mod.exports = defined[mod.map.id] = {}); + } + } + }, + 'module': function (mod) { + if (mod.module) { + return mod.module; + } else { + return (mod.module = { + id: mod.map.id, + uri: mod.map.url, + config: function () { + return getOwn(config.config, mod.map.id) || {}; + }, + exports: mod.exports || (mod.exports = {}) + }); + } + } + }; + + function cleanRegistry(id) { + //Clean up machinery used for waiting modules. + delete registry[id]; + delete enabledRegistry[id]; + } + + function breakCycle(mod, traced, processed) { + var id = mod.map.id; + + if (mod.error) { + mod.emit('error', mod.error); + } else { + traced[id] = true; + each(mod.depMaps, function (depMap, i) { + var depId = depMap.id, + dep = getOwn(registry, depId); + + //Only force things that have not completed + //being defined, so still in the registry, + //and only if it has not been matched up + //in the module already. + if (dep && !mod.depMatched[i] && !processed[depId]) { + if (getOwn(traced, depId)) { + mod.defineDep(i, defined[depId]); + mod.check(); //pass false? + } else { + breakCycle(dep, traced, processed); + } + } + }); + processed[id] = true; + } + } + + function checkLoaded() { + var err, usingPathFallback, + waitInterval = config.waitSeconds * 1000, + //It is possible to disable the wait interval by using waitSeconds of 0. + expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(), + noLoads = [], + reqCalls = [], + stillLoading = false, + needCycleCheck = true; + + //Do not bother if this call was a result of a cycle break. + if (inCheckLoaded) { + return; + } + + inCheckLoaded = true; + + //Figure out the state of all the modules. + eachProp(enabledRegistry, function (mod) { + var map = mod.map, + modId = map.id; + + //Skip things that are not enabled or in error state. + if (!mod.enabled) { + return; + } + + if (!map.isDefine) { + reqCalls.push(mod); + } + + if (!mod.error) { + //If the module should be executed, and it has not + //been inited and time is up, remember it. + if (!mod.inited && expired) { + if (hasPathFallback(modId)) { + usingPathFallback = true; + stillLoading = true; + } else { + noLoads.push(modId); + removeScript(modId); + } + } else if (!mod.inited && mod.fetched && map.isDefine) { + stillLoading = true; + if (!map.prefix) { + //No reason to keep looking for unfinished + //loading. If the only stillLoading is a + //plugin resource though, keep going, + //because it may be that a plugin resource + //is waiting on a non-plugin cycle. + return (needCycleCheck = false); + } + } + } + }); + + if (expired && noLoads.length) { + //If wait time expired, throw error of unloaded modules. + err = makeError('timeout', 'Load timeout for modules: ' + noLoads, null, noLoads); + err.contextName = context.contextName; + return onError(err); + } + + //Not expired, check for a cycle. + if (needCycleCheck) { + each(reqCalls, function (mod) { + breakCycle(mod, {}, {}); + }); + } + + //If still waiting on loads, and the waiting load is something + //other than a plugin resource, or there are still outstanding + //scripts, then just try back later. + if ((!expired || usingPathFallback) && stillLoading) { + //Something is still waiting to load. Wait for it, but only + //if a timeout is not already in effect. + if ((isBrowser || isWebWorker) && !checkLoadedTimeoutId) { + checkLoadedTimeoutId = setTimeout(function () { + checkLoadedTimeoutId = 0; + checkLoaded(); + }, 50); + } + } + + inCheckLoaded = false; + } + + Module = function (map) { + this.events = getOwn(undefEvents, map.id) || {}; + this.map = map; + this.shim = getOwn(config.shim, map.id); + this.depExports = []; + this.depMaps = []; + this.depMatched = []; + this.pluginMaps = {}; + this.depCount = 0; + + /* this.exports this.factory + this.depMaps = [], + this.enabled, this.fetched + */ + }; + + Module.prototype = { + init: function (depMaps, factory, errback, options) { + options = options || {}; + + //Do not do more inits if already done. Can happen if there + //are multiple DEFINE calls for the same module. That is not + //a normal, common case, but it is also not unexpected. + if (this.inited) { + return; + } + + this.factory = factory; + + if (errback) { + //Register for errors on this module. + this.on('error', errback); + } else if (this.events.error) { + //If no errback already, but there are error listeners + //on this module, set up an errback to pass to the deps. + errback = bind(this, function (err) { + this.emit('error', err); + }); + } + + //Do a copy of the dependency array, so that + //source inputs are not modified. For example + //"shim" deps are passed in here directly, and + //doing a direct modification of the depMaps array + //would affect that config. + this.depMaps = depMaps && depMaps.slice(0); + + this.errback = errback; + + //Indicate this module has be initialized + this.inited = true; + + this.ignore = options.ignore; + + //Could have option to init this module in enabled mode, + //or could have been previously marked as enabled. However, + //the dependencies are not known until init is called. So + //if enabled previously, now trigger dependencies as enabled. + if (options.enabled || this.enabled) { + //Enable this module and dependencies. + //Will call this.check() + this.enable(); + } else { + this.check(); + } + }, + + defineDep: function (i, depExports) { + //Because of cycles, defined callback for a given + //export can be called more than once. + if (!this.depMatched[i]) { + this.depMatched[i] = true; + this.depCount -= 1; + this.depExports[i] = depExports; + } + }, + + fetch: function () { + if (this.fetched) { + return; + } + this.fetched = true; + + context.startTime = (new Date()).getTime(); + + var map = this.map; + + //If the manager is for a plugin managed resource, + //ask the plugin to load it now. + if (this.shim) { + context.makeRequire(this.map, { + enableBuildCallback: true + })(this.shim.deps || [], bind(this, function () { + return map.prefix ? this.callPlugin() : this.load(); + })); + } else { + //Regular dependency. + return map.prefix ? this.callPlugin() : this.load(); + } + }, + + load: function () { + var url = this.map.url; + + //Regular dependency. + if (!urlFetched[url]) { + urlFetched[url] = true; + context.load(this.map.id, url); + } + }, + + /** + * Checks if the module is ready to DEFINE itself, and if so, + * DEFINE it. + */ + check: function () { + if (!this.enabled || this.enabling) { + return; + } + + var err, cjsModule, + id = this.map.id, + depExports = this.depExports, + exports = this.exports, + factory = this.factory; + + if (!this.inited) { + // Only fetch if not already in the defQueue. + if (!hasProp(context.defQueueMap, id)) { + this.fetch(); + } + } else if (this.error) { + this.emit('error', this.error); + } else if (!this.defining) { + //The factory could trigger another REQUIRE call + //that would result in checking this module to + //DEFINE itself again. If already in the process + //of doing that, skip this work. + this.defining = true; + + if (this.depCount < 1 && !this.defined) { + if (isFunction(factory)) { + //If there is an error listener, favor passing + //to that instead of throwing an error. However, + //only do it for DEFINE()'d modules. REQUIRE + //errbacks should not be called for failures in + //their callbacks (#699). However if a global + //onError is set, use that. + if ((this.events.error && this.map.isDefine) || + req.onError !== defaultOnError) { + try { + exports = context.execCb(id, factory, depExports, exports); + } catch (e) { + err = e; + } + } else { + exports = context.execCb(id, factory, depExports, exports); + } + + // Favor return value over exports. If node/cjs in play, + // then will not have a return value anyway. Favor + // module.exports assignment over exports object. + if (this.map.isDefine && exports === undefined) { + cjsModule = this.module; + if (cjsModule) { + exports = cjsModule.exports; + } else if (this.usingExports) { + //exports already set the defined value. + exports = this.exports; + } + } + + if (err) { + err.requireMap = this.map; + err.requireModules = this.map.isDefine ? [this.map.id] : null; + err.requireType = this.map.isDefine ? 'DEFINE' : 'REQUIRE'; + return onError((this.error = err)); + } + + } else { + //Just a literal value + exports = factory; + } + + this.exports = exports; + + if (this.map.isDefine && !this.ignore) { + defined[id] = exports; + + if (req.onResourceLoad) { + var resLoadMaps = []; + each(this.depMaps, function (depMap) { + resLoadMaps.push(depMap.normalizedMap || depMap); + }); + req.onResourceLoad(context, this.map, resLoadMaps); + } + } + + //Clean up + cleanRegistry(id); + + this.defined = true; + } + + //Finished the DEFINE stage. Allow calling check again + //to allow DEFINE notifications below in the case of a + //cycle. + this.defining = false; + + if (this.defined && !this.defineEmitted) { + this.defineEmitted = true; + this.emit('defined', this.exports); + this.defineEmitComplete = true; + } + + } + }, + + callPlugin: function () { + var map = this.map, + id = map.id, + //Map already normalized the prefix. + pluginMap = makeModuleMap(map.prefix); + + //Mark this as a dependency for this plugin, so it + //can be traced for cycles. + this.depMaps.push(pluginMap); + + on(pluginMap, 'defined', bind(this, function (plugin) { + var load, normalizedMap, normalizedMod, + bundleId = getOwn(bundlesMap, this.map.id), + name = this.map.name, + parentName = this.map.parentMap ? this.map.parentMap.name : null, + localRequire = context.makeRequire(map.parentMap, { + enableBuildCallback: true + }); + + //If current map is not normalized, wait for that + //normalized name to load instead of continuing. + if (this.map.unnormalized) { + //Normalize the ID if the plugin allows it. + if (plugin.normalize) { + name = plugin.normalize(name, function (name) { + return normalize(name, parentName, true); + }) || ''; + } + + //prefix and name should already be normalized, no need + //for applying map config again either. + normalizedMap = makeModuleMap(map.prefix + '!' + name, + this.map.parentMap, + true); + on(normalizedMap, + 'defined', bind(this, function (value) { + this.map.normalizedMap = normalizedMap; + this.init([], function () { return value; }, null, { + enabled: true, + ignore: true + }); + })); + + normalizedMod = getOwn(registry, normalizedMap.id); + if (normalizedMod) { + //Mark this as a dependency for this plugin, so it + //can be traced for cycles. + this.depMaps.push(normalizedMap); + + if (this.events.error) { + normalizedMod.on('error', bind(this, function (err) { + this.emit('error', err); + })); + } + normalizedMod.enable(); + } + + return; + } + + //If a paths config, then just load that file instead to + //resolve the plugin, as it is built into that paths layer. + if (bundleId) { + this.map.url = context.nameToUrl(bundleId); + this.load(); + return; + } + + load = bind(this, function (value) { + this.init([], function () { return value; }, null, { + enabled: true + }); + }); + + load.error = bind(this, function (err) { + this.inited = true; + this.error = err; + err.requireModules = [id]; + + //Remove temp unnormalized modules for this module, + //since they will never be resolved otherwise now. + eachProp(registry, function (mod) { + if (mod.map.id.indexOf(id + '_unnormalized') === 0) { + cleanRegistry(mod.map.id); + } + }); + + onError(err); + }); + + //Allow plugins to load other code without having to know the + //context or how to 'complete' the load. + load.fromText = bind(this, function (text, textAlt) { + /*jslint evil: true */ + var moduleName = map.name, + moduleMap = makeModuleMap(moduleName), + hasInteractive = useInteractive; + + //As of 2.1.0, support just passing the text, to reinforce + //fromText only being called once per resource. Still + //support old style of passing moduleName but discard + //that moduleName in favor of the internal ref. + if (textAlt) { + text = textAlt; + } + + //Turn off interactive script matching for IE for any DEFINE + //calls in the text, then turn it back on at the end. + if (hasInteractive) { + useInteractive = false; + } + + //Prime the system by creating a module instance for + //it. + getModule(moduleMap); + + //Transfer any config to this other module. + if (hasProp(config.config, id)) { + config.config[moduleName] = config.config[id]; + } + + try { + req.exec(text); + } catch (e) { + return onError(makeError('fromtexteval', + 'fromText eval for ' + id + + ' failed: ' + e, + e, + [id])); + } + + if (hasInteractive) { + useInteractive = true; + } + + //Mark this as a dependency for the plugin + //resource + this.depMaps.push(moduleMap); + + //Support anonymous modules. + context.completeLoad(moduleName); + + //Bind the value of that module to the value for this + //resource ID. + localRequire([moduleName], load); + }); + + //Use parentName here since the plugin's name is not reliable, + //could be some weird string with no path that actually wants to + //reference the parentName's path. + plugin.load(map.name, localRequire, load, config); + })); + + context.enable(pluginMap, this); + this.pluginMaps[pluginMap.id] = pluginMap; + }, + + enable: function () { + enabledRegistry[this.map.id] = this; + this.enabled = true; + + //Set flag mentioning that the module is enabling, + //so that immediate calls to the defined callbacks + //for dependencies do not trigger inadvertent load + //with the depCount still being zero. + this.enabling = true; + + //Enable each dependency + each(this.depMaps, bind(this, function (depMap, i) { + var id, mod, handler; + + if (typeof depMap === 'string') { + //Dependency needs to be converted to a depMap + //and wired up to this module. + depMap = makeModuleMap(depMap, + (this.map.isDefine ? this.map : this.map.parentMap), + false, + !this.skipMap); + this.depMaps[i] = depMap; + + handler = getOwn(handlers, depMap.id); + + if (handler) { + this.depExports[i] = handler(this); + return; + } + + this.depCount += 1; + + on(depMap, 'defined', bind(this, function (depExports) { + if (this.undefed) { + return; + } + this.defineDep(i, depExports); + this.check(); + })); + + if (this.errback) { + on(depMap, 'error', bind(this, this.errback)); + } else if (this.events.error) { + // No direct errback on this module, but something + // else is listening for errors, so be sure to + // propagate the error correctly. + on(depMap, 'error', bind(this, function(err) { + this.emit('error', err); + })); + } + } + + id = depMap.id; + mod = registry[id]; + + //Skip special modules like 'REQUIRE', 'exports', 'module' + //Also, don't call enable if it is already enabled, + //important in circular dependency cases. + if (!hasProp(handlers, id) && mod && !mod.enabled) { + context.enable(depMap, this); + } + })); + + //Enable each plugin that is used in + //a dependency + eachProp(this.pluginMaps, bind(this, function (pluginMap) { + var mod = getOwn(registry, pluginMap.id); + if (mod && !mod.enabled) { + context.enable(pluginMap, this); + } + })); + + this.enabling = false; + + this.check(); + }, + + on: function (name, cb) { + var cbs = this.events[name]; + if (!cbs) { + cbs = this.events[name] = []; + } + cbs.push(cb); + }, + + emit: function (name, evt) { + each(this.events[name], function (cb) { + cb(evt); + }); + if (name === 'error') { + //Now that the error handler was triggered, remove + //the listeners, since this broken Module instance + //can stay around for a while in the registry. + delete this.events[name]; + } + } + }; + + function callGetModule(args) { + //Skip modules already defined. + if (!hasProp(defined, args[0])) { + getModule(makeModuleMap(args[0], null, true)).init(args[1], args[2]); + } + } + + function removeListener(node, func, name, ieName) { + //Favor detachEvent because of IE9 + //issue, see attachEvent/addEventListener comment elsewhere + //in this file. + if (node.detachEvent && !isOpera) { + //Probably IE. If not it will throw an error, which will be + //useful to know. + if (ieName) { + node.detachEvent(ieName, func); + } + } else { + node.removeEventListener(name, func, false); + } + } + + /** + * Given an event from a script node, get the REQUIREJS info from it, + * and then removes the event listeners on the node. + * @param {Event} evt + * @returns {Object} + */ + function getScriptData(evt) { + //Using currentTarget instead of target for Firefox 2.0's sake. Not + //all old browsers will be supported, but this one was easy enough + //to support and still makes sense. + var node = evt.currentTarget || evt.srcElement; + + //Remove the listeners once here. + removeListener(node, context.onScriptLoad, 'load', 'onreadystatechange'); + removeListener(node, context.onScriptError, 'error'); + + return { + node: node, + id: node && node.getAttribute('data-requiremodule') + }; + } + + function intakeDefines() { + var args; + + //Any defined modules in the global queue, intake them now. + takeGlobalQueue(); + + //Make sure any remaining defQueue items get properly processed. + while (defQueue.length) { + args = defQueue.shift(); + if (args[0] === null) { + return onError(makeError('mismatch', 'Mismatched anonymous DEFINE() module: ' + + args[args.length - 1])); + } else { + //args are id, deps, factory. Should be normalized by the + //DEFINE() function. + callGetModule(args); + } + } + context.defQueueMap = {}; + } + + context = { + config: config, + contextName: contextName, + registry: registry, + defined: defined, + urlFetched: urlFetched, + defQueue: defQueue, + defQueueMap: {}, + Module: Module, + makeModuleMap: makeModuleMap, + nextTick: req.nextTick, + onError: onError, + + /** + * Set a configuration for the context. + * @param {Object} cfg config object to integrate. + */ + configure: function (cfg) { + //Make sure the baseUrl ends in a slash. + if (cfg.baseUrl) { + if (cfg.baseUrl.charAt(cfg.baseUrl.length - 1) !== '/') { + cfg.baseUrl += '/'; + } + } + + // Convert old style urlArgs string to a function. + if (typeof cfg.urlArgs === 'string') { + var urlArgs = cfg.urlArgs; + cfg.urlArgs = function(id, url) { + return (url.indexOf('?') === -1 ? '?' : '&') + urlArgs; + }; + } + + //Save off the paths since they REQUIRE special processing, + //they are additive. + var shim = config.shim, + objs = { + paths: true, + bundles: true, + config: true, + map: true + }; + + eachProp(cfg, function (value, prop) { + if (objs[prop]) { + if (!config[prop]) { + config[prop] = {}; + } + mixin(config[prop], value, true, true); + } else { + config[prop] = value; + } + }); + + //Reverse map the bundles + if (cfg.bundles) { + eachProp(cfg.bundles, function (value, prop) { + each(value, function (v) { + if (v !== prop) { + bundlesMap[v] = prop; + } + }); + }); + } + + //Merge shim + if (cfg.shim) { + eachProp(cfg.shim, function (value, id) { + //Normalize the structure + if (isArray(value)) { + value = { + deps: value + }; + } + if ((value.exports || value.init) && !value.exportsFn) { + value.exportsFn = context.makeShimExports(value); + } + shim[id] = value; + }); + config.shim = shim; + } + + //Adjust packages if necessary. + if (cfg.packages) { + each(cfg.packages, function (pkgObj) { + var location, name; + + pkgObj = typeof pkgObj === 'string' ? {name: pkgObj} : pkgObj; + + name = pkgObj.name; + location = pkgObj.location; + if (location) { + config.paths[name] = pkgObj.location; + } + + //Save pointer to main module ID for pkg name. + //Remove leading dot in main, so main paths are normalized, + //and remove any trailing .js, since different package + //envs have different conventions: some use a module name, + //some use a file name. + config.pkgs[name] = pkgObj.name + '/' + (pkgObj.main || 'main') + .replace(currDirRegExp, '') + .replace(jsSuffixRegExp, ''); + }); + } + + //If there are any "waiting to execute" modules in the registry, + //update the maps for them, since their info, like URLs to load, + //may have changed. + eachProp(registry, function (mod, id) { + //If module already has init called, since it is too + //late to modify them, and ignore unnormalized ones + //since they are transient. + if (!mod.inited && !mod.map.unnormalized) { + mod.map = makeModuleMap(id, null, true); + } + }); + + //If a deps array or a config callback is specified, then call + //REQUIRE with those args. This is useful when REQUIRE is defined as a + //config object before REQUIRE.js is loaded. + if (cfg.deps || cfg.callback) { + context.REQUIRE(cfg.deps || [], cfg.callback); + } + }, + + makeShimExports: function (value) { + function fn() { + var ret; + if (value.init) { + ret = value.init.apply(global, arguments); + } + return ret || (value.exports && getGlobal(value.exports)); + } + return fn; + }, + + makeRequire: function (relMap, options) { + options = options || {}; + + function localRequire(deps, callback, errback) { + var id, map, requireMod; + + if (options.enableBuildCallback && callback && isFunction(callback)) { + callback.__requireJsBuild = true; + } + + if (typeof deps === 'string') { + if (isFunction(callback)) { + //Invalid call + return onError(makeError('requireargs', 'Invalid REQUIRE call'), errback); + } + + //If REQUIRE|exports|module are requested, get the + //value for them from the special handlers. Caveat: + //this only works while module is being defined. + if (relMap && hasProp(handlers, deps)) { + return handlers[deps](registry[relMap.id]); + } + + //Synchronous access to one module. If REQUIRE.get is + //available (as in the Node adapter), prefer that. + if (req.get) { + return req.get(context, deps, relMap, localRequire); + } + + //Normalize module name, if it contains . or .. + map = makeModuleMap(deps, relMap, false, true); + id = map.id; + + if (!hasProp(defined, id)) { + return onError(makeError('notloaded', 'Module name "' + + id + + '" has not been loaded yet for context: ' + + contextName + + (relMap ? '' : '. Use REQUIRE([])'))); + } + return defined[id]; + } + + //Grab defines waiting in the global queue. + intakeDefines(); + + //Mark all the dependencies as needing to be loaded. + context.nextTick(function () { + //Some defines could have been added since the + //REQUIRE call, collect them. + intakeDefines(); + + requireMod = getModule(makeModuleMap(null, relMap)); + + //Store if map config should be applied to this REQUIRE + //call for dependencies. + requireMod.skipMap = options.skipMap; + + requireMod.init(deps, callback, errback, { + enabled: true + }); + + checkLoaded(); + }); + + return localRequire; + } + + mixin(localRequire, { + isBrowser: isBrowser, + + /** + * Converts a module name + .extension into an URL path. + * *Requires* the use of a module name. It does not support using + * plain URLs like nameToUrl. + */ + toUrl: function (moduleNamePlusExt) { + var ext, + index = moduleNamePlusExt.lastIndexOf('.'), + segment = moduleNamePlusExt.split('/')[0], + isRelative = segment === '.' || segment === '..'; + + //Have a file extension alias, and it is not the + //dots from a relative path. + if (index !== -1 && (!isRelative || index > 1)) { + ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length); + moduleNamePlusExt = moduleNamePlusExt.substring(0, index); + } + + return context.nameToUrl(normalize(moduleNamePlusExt, + relMap && relMap.id, true), ext, true); + }, + + defined: function (id) { + return hasProp(defined, makeModuleMap(id, relMap, false, true).id); + }, + + specified: function (id) { + id = makeModuleMap(id, relMap, false, true).id; + return hasProp(defined, id) || hasProp(registry, id); + } + }); + + //Only allow undef on top level REQUIRE calls + if (!relMap) { + localRequire.undef = function (id) { + //Bind any waiting DEFINE() calls to this context, + //fix for #408 + takeGlobalQueue(); + + var map = makeModuleMap(id, relMap, true), + mod = getOwn(registry, id); + + mod.undefed = true; + removeScript(id); + + delete defined[id]; + delete urlFetched[map.url]; + delete undefEvents[id]; + + //Clean queued defines too. Go backwards + //in array so that the splices do not + //mess up the iteration. + eachReverse(defQueue, function(args, i) { + if (args[0] === id) { + defQueue.splice(i, 1); + } + }); + delete context.defQueueMap[id]; + + if (mod) { + //Hold on to listeners in case the + //module will be attempted to be reloaded + //using a different config. + if (mod.events.defined) { + undefEvents[id] = mod.events; + } + + cleanRegistry(id); + } + }; + } + + return localRequire; + }, + + /** + * Called to enable a module if it is still in the registry + * awaiting enablement. A second arg, parent, the parent module, + * is passed in for context, when this method is overridden by + * the optimizer. Not shown here to keep code compact. + */ + enable: function (depMap) { + var mod = getOwn(registry, depMap.id); + if (mod) { + getModule(depMap).enable(); + } + }, + + /** + * Internal method used by environment adapters to complete a load event. + * A load event could be a script load or just a load pass from a synchronous + * load call. + * @param {String} moduleName the name of the module to potentially complete. + */ + completeLoad: function (moduleName) { + var found, args, mod, + shim = getOwn(config.shim, moduleName) || {}, + shExports = shim.exports; + + takeGlobalQueue(); + + while (defQueue.length) { + args = defQueue.shift(); + if (args[0] === null) { + args[0] = moduleName; + //If already found an anonymous module and bound it + //to this name, then this is some other anon module + //waiting for its completeLoad to fire. + if (found) { + break; + } + found = true; + } else if (args[0] === moduleName) { + //Found matching DEFINE call for this script! + found = true; + } + + callGetModule(args); + } + context.defQueueMap = {}; + + //Do this after the cycle of callGetModule in case the result + //of those calls/init calls changes the registry. + mod = getOwn(registry, moduleName); + + if (!found && !hasProp(defined, moduleName) && mod && !mod.inited) { + if (config.enforceDefine && (!shExports || !getGlobal(shExports))) { + if (hasPathFallback(moduleName)) { + return; + } else { + return onError(makeError('nodefine', + 'No DEFINE call for ' + moduleName, + null, + [moduleName])); + } + } else { + //A script that does not call DEFINE(), so just simulate + //the call for it. + callGetModule([moduleName, (shim.deps || []), shim.exportsFn]); + } + } + + checkLoaded(); + }, + + /** + * Converts a module name to a file path. Supports cases where + * moduleName may actually be just an URL. + * Note that it **does not** call normalize on the moduleName, + * it is assumed to have already been normalized. This is an + * internal API, not a public one. Use toUrl for the public API. + */ + nameToUrl: function (moduleName, ext, skipExt) { + var paths, syms, i, parentModule, url, + parentPath, bundleId, + pkgMain = getOwn(config.pkgs, moduleName); + + if (pkgMain) { + moduleName = pkgMain; + } + + bundleId = getOwn(bundlesMap, moduleName); + + if (bundleId) { + return context.nameToUrl(bundleId, ext, skipExt); + } + + //If a colon is in the URL, it indicates a protocol is used and it is just + //an URL to a file, or if it starts with a slash, contains a query arg (i.e. ?) + //or ends with .js, then assume the user meant to use an url and not a module id. + //The slash is important for protocol-less URLs as well as full paths. + if (req.jsExtRegExp.test(moduleName)) { + //Just a plain path, not module name lookup, so just return it. + //Add extension if it is included. This is a bit wonky, only non-.js things pass + //an extension, this method probably needs to be reworked. + url = moduleName + (ext || ''); + } else { + //A module that needs to be converted to a path. + paths = config.paths; + + syms = moduleName.split('/'); + //For each module name segment, see if there is a path + //registered for it. Start with most specific name + //and work up from it. + for (i = syms.length; i > 0; i -= 1) { + parentModule = syms.slice(0, i).join('/'); + + parentPath = getOwn(paths, parentModule); + if (parentPath) { + //If an array, it means there are a few choices, + //Choose the one that is desired + if (isArray(parentPath)) { + parentPath = parentPath[0]; + } + syms.splice(0, i, parentPath); + break; + } + } + + //Join the path parts together, then figure out if baseUrl is needed. + url = syms.join('/'); + url += (ext || (/^data\:|^blob\:|\?/.test(url) || skipExt ? '' : '.js')); + url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url; + } + + return config.urlArgs && !/^blob\:/.test(url) ? + url + config.urlArgs(moduleName, url) : url; + }, + + //Delegates to req.load. Broken out as a separate function to + //allow overriding in the optimizer. + load: function (id, url) { + req.load(context, id, url); + }, + + /** + * Executes a module callback function. Broken out as a separate function + * solely to allow the build system to sequence the files in the built + * layer in the right sequence. + * + * @private + */ + execCb: function (name, callback, args, exports) { + return callback.apply(exports, args); + }, + + /** + * callback for script loads, used to check status of loading. + * + * @param {Event} evt the event from the browser for the script + * that was loaded. + */ + onScriptLoad: function (evt) { + //Using currentTarget instead of target for Firefox 2.0's sake. Not + //all old browsers will be supported, but this one was easy enough + //to support and still makes sense. + if (evt.type === 'load' || + (readyRegExp.test((evt.currentTarget || evt.srcElement).readyState))) { + //Reset interactive script so a script node is not held onto for + //to long. + interactiveScript = null; + + //Pull out the name of the module and the context. + var data = getScriptData(evt); + context.completeLoad(data.id); + } + }, + + /** + * Callback for script errors. + */ + onScriptError: function (evt) { + var data = getScriptData(evt); + if (!hasPathFallback(data.id)) { + var parents = []; + eachProp(registry, function(value, key) { + if (key.indexOf('_@r') !== 0) { + each(value.depMaps, function(depMap) { + if (depMap.id === data.id) { + parents.push(key); + return true; + } + }); + } + }); + return onError(makeError('scripterror', 'Script error for "' + data.id + + (parents.length ? + '", needed by: ' + parents.join(', ') : + '"'), evt, [data.id])); + } + } + }; + + context.REQUIRE = context.makeRequire(); + return context; + } + + /** + * Main entry point. + * + * If the only argument to REQUIRE is a string, then the module that + * is represented by that string is fetched for the appropriate context. + * + * If the first argument is an array, then it will be treated as an array + * of dependency string names to fetch. An optional function callback can + * be specified to execute when all of those dependencies are available. + * + * Make a local req variable to help Caja compliance (it assumes things + * on a REQUIRE that are not standardized), and to give a short + * name for minification/local scope use. + */ + req = REQUIREJS = function (deps, callback, errback, optional) { + + //Find the right context, use default + var context, config, + contextName = defContextName; + + // Determine if have config object in the call. + if (!isArray(deps) && typeof deps !== 'string') { + // deps is a config object + config = deps; + if (isArray(callback)) { + // Adjust args if there are dependencies + deps = callback; + callback = errback; + errback = optional; + } else { + deps = []; + } + } + + if (config && config.context) { + contextName = config.context; + } + + context = getOwn(contexts, contextName); + if (!context) { + context = contexts[contextName] = req.s.newContext(contextName); + } + + if (config) { + context.configure(config); + } + + return context.REQUIRE(deps, callback, errback); + }; + + /** + * Support REQUIRE.config() to make it easier to cooperate with other + * AMD loaders on globally agreed names. + */ + req.config = function (config) { + return req(config); + }; + + /** + * Execute something after the current tick + * of the event loop. Override for other envs + * that have a better solution than setTimeout. + * @param {Function} fn function to execute later. + */ + req.nextTick = typeof setTimeout !== 'undefined' ? function (fn) { + setTimeout(fn, 4); + } : function (fn) { fn(); }; + + /** + * Export REQUIRE as a global, but only if it does not already exist. + */ + if (!REQUIRE) { + REQUIRE = req; + } + + req.version = version; + + //Used to filter out dependencies that are already paths. + req.jsExtRegExp = /^\/|:|\?|\.js$/; + req.isBrowser = isBrowser; + s = req.s = { + contexts: contexts, + newContext: newContext + }; + + //Create default context. + req({}); + + //Exports some context-sensitive methods on global REQUIRE. + each([ + 'toUrl', + 'undef', + 'defined', + 'specified' + ], function (prop) { + //Reference from contexts instead of early binding to default context, + //so that during builds, the latest instance of the default context + //with its config gets used. + req[prop] = function () { + var ctx = contexts[defContextName]; + return ctx.REQUIRE[prop].apply(ctx, arguments); + }; + }); + + if (isBrowser) { + head = s.head = document.getElementsByTagName('head')[0]; + //If BASE tag is in play, using appendChild is a problem for IE6. + //When that browser dies, this can be removed. Details in this jQuery bug: + //http://dev.jquery.com/ticket/2709 + baseElement = document.getElementsByTagName('base')[0]; + if (baseElement) { + head = s.head = baseElement.parentNode; + } + } + + /** + * Any errors that REQUIRE explicitly generates will be passed to this + * function. Intercept/override it if you want custom error handling. + * @param {Error} err the error object. + */ + req.onError = defaultOnError; + + /** + * Creates the node for the load command. Only used in browser envs. + */ + req.createNode = function (config, moduleName, url) { + var node = config.xhtml ? + document.createElementNS('http://www.w3.org/1999/xhtml', 'html:script') : + document.createElement('script'); + node.type = config.scriptType || 'text/javascript'; + node.charset = 'utf-8'; + node.async = true; + return node; + }; + + /** + * Does the request to load a module for the browser case. + * Make this a separate function to allow other environments + * to override it. + * + * @param {Object} context the REQUIRE context to find state. + * @param {String} moduleName the name of the module. + * @param {Object} url the URL to the module. + */ + req.load = function (context, moduleName, url) { + var config = (context && context.config) || {}, + node; + if (isBrowser) { + //In the browser so use a script tag + node = req.createNode(config, moduleName, url); + + node.setAttribute('data-requirecontext', context.contextName); + node.setAttribute('data-requiremodule', moduleName); + + //Set up load listener. Test attachEvent first because IE9 has + //a subtle issue in its addEventListener and script onload firings + //that do not match the behavior of all other browsers with + //addEventListener support, which fire the onload event for a + //script right after the script execution. See: + //https://connect.microsoft.com/IE/feedback/details/648057/script-onload-event-is-not-fired-immediately-after-script-execution + //UNFORTUNATELY Opera implements attachEvent but does not follow the script + //script execution mode. + if (node.attachEvent && + //Check if node.attachEvent is artificially added by custom script or + //natively supported by browser + //read https://github.com/REQUIREJS/REQUIREJS/issues/187 + //if we can NOT find [native code] then it must NOT natively supported. + //in IE8, node.attachEvent does not have toString() + //Note the test for "[native code" with no closing brace, see: + //https://github.com/REQUIREJS/REQUIREJS/issues/273 + !(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) && + !isOpera) { + //Probably IE. IE (at least 6-8) do not fire + //script onload right after executing the script, so + //we cannot tie the anonymous DEFINE call to a name. + //However, IE reports the script as being in 'interactive' + //readyState at the time of the DEFINE call. + useInteractive = true; + + node.attachEvent('onreadystatechange', context.onScriptLoad); + //It would be great to add an error handler here to catch + //404s in IE9+. However, onreadystatechange will fire before + //the error handler, so that does not help. If addEventListener + //is used, then IE will fire error before load, but we cannot + //use that pathway given the connect.microsoft.com issue + //mentioned above about not doing the 'script execute, + //then fire the script load event listener before execute + //next script' that other browsers do. + //Best hope: IE10 fixes the issues, + //and then destroys all installs of IE 6-9. + //node.attachEvent('onerror', context.onScriptError); + } else { + node.addEventListener('load', context.onScriptLoad, false); + node.addEventListener('error', context.onScriptError, false); + } + node.src = url; + + //Calling onNodeCreated after all properties on the node have been + //set, but before it is placed in the DOM. + if (config.onNodeCreated) { + config.onNodeCreated(node, config, moduleName, url); + } + + //For some cache cases in IE 6-8, the script executes before the end + //of the appendChild execution, so to tie an anonymous DEFINE + //call to the module name (which is stored on the node), hold on + //to a reference to this node, but clear after the DOM insertion. + currentlyAddingScript = node; + if (baseElement) { + head.insertBefore(node, baseElement); + } else { + head.appendChild(node); + } + currentlyAddingScript = null; + + return node; + } else if (isWebWorker) { + try { + //In a web worker, use importScripts. This is not a very + //efficient use of importScripts, importScripts will block until + //its script is downloaded and evaluated. However, if web workers + //are in play, the expectation is that a build has been done so + //that only one script needs to be loaded anyway. This may need + //to be reevaluated if other use cases become common. + + // Post a task to the event loop to work around a bug in WebKit + // where the worker gets garbage-collected after calling + // importScripts(): https://webkit.org/b/153317 + setTimeout(function() {}, 0); + importScripts(url); + + //Account for anonymous modules + context.completeLoad(moduleName); + } catch (e) { + context.onError(makeError('importscripts', + 'importScripts failed for ' + + moduleName + ' at ' + url, + e, + [moduleName])); + } + } + }; + + function getInteractiveScript() { + if (interactiveScript && interactiveScript.readyState === 'interactive') { + return interactiveScript; + } + + eachReverse(scripts(), function (script) { + if (script.readyState === 'interactive') { + return (interactiveScript = script); + } + }); + return interactiveScript; + } + + //Look for a data-main script attribute, which could also adjust the baseUrl. + if (isBrowser && !cfg.skipDataMain) { + //Figure out baseUrl. Get it from the script tag with REQUIRE.js in it. + eachReverse(scripts(), function (script) { + //Set the 'head' where we can append children by + //using the script's parent. + if (!head) { + head = script.parentNode; + } + + //Look for a data-main attribute to set main script for the page + //to load. If it is there, the path to data main becomes the + //baseUrl, if it is not already set. + dataMain = script.getAttribute('data-main'); + if (dataMain) { + //Preserve dataMain in case it is a path (i.e. contains '?') + mainScript = dataMain; + + //Set final baseUrl if there is not already an explicit one, + //but only do so if the data-main value is not a loader plugin + //module ID. + if (!cfg.baseUrl && mainScript.indexOf('!') === -1) { + //Pull off the directory of data-main for use as the + //baseUrl. + src = mainScript.split('/'); + mainScript = src.pop(); + subPath = src.length ? src.join('/') + '/' : './'; + + cfg.baseUrl = subPath; + } + + //Strip off any trailing .js since mainScript is now + //like a module name. + mainScript = mainScript.replace(jsSuffixRegExp, ''); + + //If mainScript is still a path, fall back to dataMain + if (req.jsExtRegExp.test(mainScript)) { + mainScript = dataMain; + } + + //Put the data-main script in the files to load. + cfg.deps = cfg.deps ? cfg.deps.concat(mainScript) : [mainScript]; + + return true; + } + }); + } + + /** + * The function that handles definitions of modules. Differs from + * REQUIRE() in that a string for the module should be the first argument, + * and the function to execute after dependencies are loaded should + * return a value to DEFINE the module corresponding to the first argument's + * name. + */ + DEFINE = function (name, deps, callback) { + var node, context; + + //Allow for anonymous modules + if (typeof name !== 'string') { + //Adjust args appropriately + callback = deps; + deps = name; + name = null; + } + + //This module may not have dependencies + if (!isArray(deps)) { + callback = deps; + deps = null; + } + + //If no name, and callback is a function, then figure out if it a + //CommonJS thing with dependencies. + if (!deps && isFunction(callback)) { + deps = []; + //Remove comments from the callback string, + //look for REQUIRE calls, and pull them into the dependencies, + //but only if there are function args. + if (callback.length) { + callback + .toString() + .replace(commentRegExp, commentReplace) + .replace(cjsRequireRegExp, function (match, dep) { + deps.push(dep); + }); + + //May be a CommonJS thing even without REQUIRE calls, but still + //could use exports, and module. Avoid doing exports and module + //work though if it just needs REQUIRE. + //REQUIRES the function to expect the CommonJS variables in the + //order listed below. + deps = (callback.length === 1 ? ['REQUIRE'] : ['REQUIRE', 'exports', 'module']).concat(deps); + } + } + + //If in IE 6-8 and hit an anonymous DEFINE() call, do the interactive + //work. + if (useInteractive) { + node = currentlyAddingScript || getInteractiveScript(); + if (node) { + if (!name) { + name = node.getAttribute('data-requiremodule'); + } + context = contexts[node.getAttribute('data-requirecontext')]; + } + } + + //Always save off evaluating the def call until the script onload handler. + //This allows multiple modules to be in a file without prematurely + //tracing dependencies, and allows for anonymous module support, + //where the module name is not known until the script onload event + //occurs. If no context, use the global queue, and get it processed + //in the onscript load callback. + if (context) { + context.defQueue.push([name, deps, callback]); + context.defQueueMap[name] = true; + } else { + globalDefQueue.push([name, deps, callback]); + } + }; + + DEFINE.amd = { + jQuery: true + }; + + /** + * Executes the text. Normally just uses eval, but can be modified + * to use a better, environment-specific call. Only used for transpiling + * loader plugins, not for plain JS modules. + * @param {String} text the text to execute/evaluate. + */ + req.exec = function (text) { + /*jslint evil: true */ + return eval(text); + }; + + //Set up with config info. + req(cfg); +}(this, (typeof setTimeout === 'undefined' ? undefined : setTimeout))); diff --git a/Desktop/frontend/public/Fonts/Saira-Condensed.woff2 b/Desktop/WebServer/Fonts/Saira-Condensed.woff2 similarity index 100% rename from Desktop/frontend/public/Fonts/Saira-Condensed.woff2 rename to Desktop/WebServer/Fonts/Saira-Condensed.woff2 diff --git a/Desktop/frontend/public/Fonts/Saira.woff2 b/Desktop/WebServer/Fonts/Saira.woff2 similarity index 100% rename from Desktop/frontend/public/Fonts/Saira.woff2 rename to Desktop/WebServer/Fonts/Saira.woff2 diff --git a/Desktop/frontend/public/Fonts/segoeui.woff b/Desktop/WebServer/Fonts/segoeui.woff similarity index 100% rename from Desktop/frontend/public/Fonts/segoeui.woff rename to Desktop/WebServer/Fonts/segoeui.woff diff --git a/Desktop/frontend/src/images/favicon.ico b/Desktop/WebServer/Images/favicon.ico similarity index 100% rename from Desktop/frontend/src/images/favicon.ico rename to Desktop/WebServer/Images/favicon.ico diff --git a/Desktop/frontend/src/main.css b/Desktop/WebServer/css/main.css similarity index 100% rename from Desktop/frontend/src/main.css rename to Desktop/WebServer/css/main.css diff --git a/Desktop/WebServer/index.html b/Desktop/WebServer/index.html new file mode 100644 index 000000000..9b57e56e0 --- /dev/null +++ b/Desktop/WebServer/index.html @@ -0,0 +1,164 @@ + + + + + Superalgos Desktop + + + + + + + + + + + +
+
+ + + + + + +
+ + + + + + + + + + +
LOGO
PROFILE
+
+ + + + + + + +
CONTENT TITLE
+
+
+ + + + + + + +
SEARCH
+ + + + + + + + + + +
Who to follow
+
Show more
+
+
+
> +
+
+ Placeholder +
+
+ + + + + +
Profile Pic + + + + + + + + + + +
+ +
Permissions
Tool Bar
+
+
+
+ POST 2 +
+
+ POST 3 +
+
+ POST 4 +
+
+ POST 5 +
+
+
+ + + \ No newline at end of file diff --git a/DesktopReact/DesktopApp.js b/DesktopReact/DesktopApp.js new file mode 100644 index 000000000..4ac8410b5 --- /dev/null +++ b/DesktopReact/DesktopApp.js @@ -0,0 +1,81 @@ +const express = require("./backend/src/index"); +exports.newDesktopApp = function newDesktopApp() { + + let thisObject = { + userProfiles: undefined, + p2pNetworkClient: undefined, + p2pNetwork: undefined, + p2pNetworkPeers: undefined, + webSocketsInterface: undefined, + webAppInterface: undefined, + p2pNetworkInterface: undefined, + socialGraph: undefined, + run: run + } + + DK.desktopApp = thisObject + + return thisObject + + async function run() { + + await setupNetwork() + await setupServices() + + async function setupNetwork() { + /* + We set up ourselves as a Network Client. + */ + thisObject.p2pNetworkClient = SA.projects.network.modules.p2pNetworkClient.newNetworkModulesP2PNetworkClient() + await thisObject.p2pNetworkClient.initialize() + /* + We will read all user profiles plugins and get from there our network identity. + */ + thisObject.userProfiles = SA.projects.network.modules.userProfiles.newNetworkModulesUserProfiles() + await thisObject.userProfiles.initialize(global.env.DESKTOP_APP_SIGNING_ACCOUNT, thisObject.p2pNetworkClient) + /* + We set up the P2P Network. + */ + thisObject.p2pNetwork = SA.projects.network.modules.p2pNetwork.newNetworkModulesP2PNetwork() + await thisObject.p2pNetwork.initialize('Network Client') + /* + Set up the connections to network nodes. + */ + thisObject.p2pNetworkPeers = SA.projects.network.modules.p2pNetworkPeers.newNetworkModulesP2PNetworkPeers() + await thisObject.p2pNetworkPeers.initialize( + 'Network Client', + thisObject.p2pNetworkClient, + thisObject.p2pNetwork, + global.env.DESKTOP_APP_MAX_OUTGOING_PEERS + ) + } + + async function setupServices() { + /* + This is where we will process all the messages comming from our web app. + */ + thisObject.webAppInterface = DK.projects.socialTrading.modules.webAppInterface.newSocialTradingModulesWebAppInterface() // this sends events to the p2p network + /* + This is where we will process all the events comming from the p2p network. + */ + thisObject.p2pNetworkInterface = DK.projects.socialTrading.modules.p2pNetworkInterface.newSocialTradingModulesP2PNetworkInterface() // this receives events from p2p network + /* + This is the Personal Social Graph for the user running this App. + */ + thisObject.socialGraph = DK.projects.socialTrading.modules.socialGraph.newSocialTradingModulesSocialGraph() // + await thisObject.socialGraph.initialize() + + + let express = require('./backend/src/index') + let expressPort = JSON.parse(DK.desktopApp.p2pNetworkClient.node.config).webPort; + express.startExpress(expressPort,SA); + console.log('express Interface ................................................ Listening at port ' + expressPort); + + /*TODO change this to have a definite port number*/ + let react = require('./frontend/scripts/start') + let reactPort = (+JSON.parse(DK.desktopApp.p2pNetworkClient.node.config).webPort + 1); + react.start(reactPort); + console.log('react Interface ................................................ Listening at port ' + reactPort); + } + } +} diff --git a/DesktopReact/UI/WebApp.js b/DesktopReact/UI/WebApp.js new file mode 100644 index 000000000..16d781e44 --- /dev/null +++ b/DesktopReact/UI/WebApp.js @@ -0,0 +1,367 @@ +function newWebApp() { + /* + In it's current state of development, the Web App only has one module. + + Everything is being coded here until some structure emerges. + */ + let thisObject = { + messageReceived: messageReceived, + initialize: initialize, + finalize: finalize + } + + return thisObject + + function finalize() { + + } + + async function initialize() { + try { + setupRootObject(UI, 'UI') + setupRootObject(SA, 'SA') + await UI.projects.socialTrading.modules.webSocketsWebAppClient.initialize() + loadWUserProfileTimeline() + loadWhoToFollow() + setupEventHandlers() + } catch (err) { + console.log('[ERROR] initialize -> err.stack = ' + err.stack) + } + } + + /* + function setupRootObject(rootObject, rootObjectName) { + /!* + Here we will setup the UI object, with all the + projects and spaces. + *!/ + for (let i = 0; i < UI.schemas.projectSchema.length; i++) { + let projectDefinition = UI.schemas.projectSchema[i] + rootObject.projects[projectDefinition.propertyName] = {} + let projectInstance = rootObject.projects[projectDefinition.propertyName] + + projectInstance.utilities = {} + projectInstance.globals = {} + projectInstance.functionLibraries = {} + projectInstance.modules = {} + + if (projectDefinition[rootObjectName] === undefined) { + continue + } + + /!* Set up Globals of this Project *!/ + if (projectDefinition[rootObjectName].globals !== undefined) { + for (let j = 0; j < projectDefinition[rootObjectName].globals.length; j++) { + let globalDefinition = projectDefinition[rootObjectName].globals[j] + + if (exports[globalDefinition.functionName] === undefined) { + projectInstance.globals[globalDefinition.propertyName] = eval(globalDefinition.functionName + '()') + } else { + projectInstance.globals[globalDefinition.propertyName] = eval('exports.' + globalDefinition.functionName + '()') + } + } + } + + /!* Set up Utilities of this Project *!/ + if (projectDefinition[rootObjectName].utilities !== undefined) { + for (let j = 0; j < projectDefinition[rootObjectName].utilities.length; j++) { + let utilityDefinition = projectDefinition[rootObjectName].utilities[j] + + if (exports[utilityDefinition.functionName] === undefined) { + projectInstance.utilities[utilityDefinition.propertyName] = eval(utilityDefinition.functionName + '()') + } else { + projectInstance.utilities[utilityDefinition.propertyName] = eval('exports.' + utilityDefinition.functionName + '()') + } + } + } + + /!* Set up Function Libraries of this Project *!/ + if (projectDefinition[rootObjectName].functionLibraries !== undefined) { + for (let j = 0; j < projectDefinition[rootObjectName].functionLibraries.length; j++) { + let functionLibraryDefinition = projectDefinition[rootObjectName].functionLibraries[j] + + if (exports[functionLibraryDefinition.functionName] === undefined) { + projectInstance.functionLibraries[functionLibraryDefinition.propertyName] = eval(functionLibraryDefinition.functionName + '()') + } else { + projectInstance.functionLibraries[functionLibraryDefinition.propertyName] = eval('exports.' + functionLibraryDefinition.functionName + '()') + } + } + } + + /!* Set up Modules of this Project *!/ + if (projectDefinition[rootObjectName].modules !== undefined) { + for (let j = 0; j < projectDefinition[rootObjectName].modules.length; j++) { + let functionLibraryDefinition = projectDefinition[rootObjectName].modules[j] + + if (exports[functionLibraryDefinition.functionName] === undefined) { + projectInstance.modules[functionLibraryDefinition.propertyName] = eval(functionLibraryDefinition.functionName + '()') + } else { + projectInstance.modules[functionLibraryDefinition.propertyName] = eval('exports.' + functionLibraryDefinition.functionName + '()') + } + } + } + } + } + */ + + /* + async function loadWUserProfileTimeline() { + let queryMessage = { + queryType: SA.projects.socialTrading.globals.queryTypes.EVENTS, + emitterUserProfileId: undefined, + initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_LAST, + amountRequested: 100, + direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_PAST + } + + let query = { + requestType: 'Query', + queryMessage: JSON.stringify(queryMessage) + } + + await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage( + JSON.stringify(query) + ) + .then(console.log) + .catch(onError) + + function onError(errorMessage) { + console.log('[ERROR] Query not executed. ' + errorMessage) + console.log('[ERROR] query = ' + JSON.stringify(query)) + } + + function addToContentDiv(events) { + try { + let contentDiv = document.getElementById('content-div') + /!* + Delete al current content. + *!/ + while (contentDiv.childNodes.length > 4) { + let childToRemove = contentDiv.childNodes[contentDiv.childNodes.length - 1] + contentDiv.removeChild(childToRemove) + } + /!* + Render the timeline. + *!/ + for (let i = 0; i < events.length; i++) { + let event = events[i] + + let postDiv = document.createElement("div") + postDiv.setAttribute("class", "post-div") + let textNode + + switch (event.eventType) { + case SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST: { + textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " POSTED " + event.postText) + break + } + case SA.projects.socialTrading.globals.eventTypes.FOLLOW_USER_PROFILE: { + textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " FOLLOWED " + event.targetUserProfile.userProfileHandle) + break + } + case SA.projects.socialTrading.globals.eventTypes.UNFOLLOW_USER_PROFILE: { + textNode = document.createTextNode(event.emitterUserProfile.userProfileHandle + " UNFOLLOWED " + event.targetUserProfile.userProfileHandle) + break + } + } + + postDiv.appendChild(textNode) + contentDiv.appendChild(postDiv) + } + } + catch (err) { + console.log('[ERROR] err.stack = ' + err.stack) + } + } + } + */ + + /* + async function loadWhoToFollow() { + let queryMessage = { + queryType: SA.projects.socialTrading.globals.queryTypes.UNFOLLOWED_USER_PROFILES, + emitterUserProfileId: undefined, + initialIndex: SA.projects.socialTrading.globals.queryConstants.INITIAL_INDEX_FIRST, + amountRequested: 3, + direction: SA.projects.socialTrading.globals.queryConstants.DIRECTION_UP + } + + let query = { + requestType: 'Query', + queryMessage: JSON.stringify(queryMessage) + } + + await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage( + JSON.stringify(query) + ) + .then(addWhoToFollowTable) + .catch(onError) + + function onError(errorMessage) { + console.log('[ERROR] Query not executed. ' + errorMessage) + console.log('[ERROR] query = ' + JSON.stringify(query)) + } + } + */ + + function setupEventHandlers() { + /* + Add events to process button clicks , and mouseWheel. + */ + document.addEventListener("click", onClick) + document.addEventListener('mousewheel', onMouseWheel, false) + + async function onClick(event) { + + if (event.target && event.target.nodeName === "BUTTON") { + switch (event.target.name) { + case 'New Post': { + let textArea = document.getElementById("new-post-text-area") + await sendNewPostEvent( + textArea.value + ) + .then(updateTextArea) + .catch(onError) + + function updateTextArea() { + textArea.value = "" + } + + break + } + case 'Follow Profile': { + await sendTargetUserProfileEvent( + event.target.userProfileId, + SA.projects.socialTrading.globals.eventTypes.FOLLOW_USER_PROFILE + ) + .then(updateButton) + .catch(onError) + + function updateButton() { + let span = document.getElementById('profile-to-follow-span-' + event.target.userProfileId) + let button = document.getElementById('profile-to-follow-button-' + event.target.userProfileId) + span.setAttribute("class", "profile-to-unfollow-span") + button.setAttribute("class", "profile-to-unfollow-button") + button.name = 'Unfollow Profile' + } + + break + } + case 'Unfollow Profile': { + await sendTargetUserProfileEvent( + event.target.userProfileId, + SA.projects.socialTrading.globals.eventTypes.UNFOLLOW_USER_PROFILE + ) + .then(updateButton) + .catch(onError) + +/* + function updateButton() { + let span = document.getElementById('profile-to-follow-span-' + event.target.userProfileId) + let button = document.getElementById('profile-to-follow-button-' + event.target.userProfileId) + span.setAttribute("class", "profile-to-follow-span") + button.setAttribute("class", "profile-to-follow-button") + button.name = 'Follow Profile' + } +*/ + + break + } + } + } + + /* + Error Handling + */ + function onError(errorMessage) { + console.log('[ERROR] Click event failed. ' + errorMessage) + } + } + + function onMouseWheel(event) { + let scrollDiv = document.getElementById("scroll-div") + scrollDiv.scrollTop = scrollDiv.scrollTop + event.deltaY + } + } + + async function sendTargetUserProfileEvent( + userProfileId, + eventType + ) { + + return new Promise((resolve, reject) => { + asyncCall(resolve, reject) + }) + + async function asyncCall(resolve, reject) { + let eventMessage + let event + + eventMessage = { + eventType: eventType, + eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(), + targetUserProfileId: userProfileId, + timestamp: (new Date()).valueOf() + } + + event = { + requestType: 'Event', + eventMessage: JSON.stringify(eventMessage) + } + + await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage( + JSON.stringify(event) + ) + .then(resolve) + .catch(onError) + + function onError(errorMessage) { + console.log('[ERROR] Event not executed. ' + errorMessage) + console.log('[ERROR] event = ' + JSON.stringify(event)) + reject(errorMessage) + } + } + } + + async function sendNewPostEvent( + postText + ) { + + return new Promise((resolve, reject) => { + asyncCall(resolve, reject) + }) + + async function asyncCall(resolve, reject) { + let eventMessage + let event + + eventMessage = { + eventType: SA.projects.socialTrading.globals.eventTypes.NEW_USER_POST, + eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(), + postText: postText, + timestamp: (new Date()).valueOf() + } + + event = { + requestType: 'Event', + eventMessage: JSON.stringify(eventMessage) + } + + await UI.projects.socialTrading.modules.webSocketsWebAppClient.sendMessage( + JSON.stringify(event) + ) + .then(resolve) + .catch(onError) + + function onError(errorMessage) { + console.log('[ERROR] Event not executed. ' + errorMessage) + console.log('[ERROR] event = ' + JSON.stringify(event)) + reject(errorMessage) + } + } + } + + function messageReceived(message) { + window.alert(message) + } +} diff --git a/Desktop/backend/src/index.js b/DesktopReact/backend/src/index.js similarity index 100% rename from Desktop/backend/src/index.js rename to DesktopReact/backend/src/index.js diff --git a/Desktop/frontend/config/env.js b/DesktopReact/frontend/config/env.js similarity index 100% rename from Desktop/frontend/config/env.js rename to DesktopReact/frontend/config/env.js diff --git a/Desktop/frontend/config/getHttpsConfig.js b/DesktopReact/frontend/config/getHttpsConfig.js similarity index 100% rename from Desktop/frontend/config/getHttpsConfig.js rename to DesktopReact/frontend/config/getHttpsConfig.js diff --git a/Desktop/frontend/config/modules.js b/DesktopReact/frontend/config/modules.js similarity index 100% rename from Desktop/frontend/config/modules.js rename to DesktopReact/frontend/config/modules.js diff --git a/Desktop/frontend/config/paths.js b/DesktopReact/frontend/config/paths.js similarity index 100% rename from Desktop/frontend/config/paths.js rename to DesktopReact/frontend/config/paths.js diff --git a/Desktop/frontend/config/pnpTs.js b/DesktopReact/frontend/config/pnpTs.js similarity index 100% rename from Desktop/frontend/config/pnpTs.js rename to DesktopReact/frontend/config/pnpTs.js diff --git a/Desktop/frontend/config/webpack.config.js b/DesktopReact/frontend/config/webpack.config.js similarity index 100% rename from Desktop/frontend/config/webpack.config.js rename to DesktopReact/frontend/config/webpack.config.js diff --git a/Desktop/frontend/config/webpackDevServer.config.js b/DesktopReact/frontend/config/webpackDevServer.config.js similarity index 100% rename from Desktop/frontend/config/webpackDevServer.config.js rename to DesktopReact/frontend/config/webpackDevServer.config.js diff --git a/DesktopReact/frontend/public/Fonts/Saira-Condensed.woff2 b/DesktopReact/frontend/public/Fonts/Saira-Condensed.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..8a7ff57d055bb5660e8c344870f91c225bfa3fa2 GIT binary patch literal 17000 zcmV(@K-Rx^Pew8T0RR91077U05dZ)H0G03n073--0RR9100000000000000000000 z0000QSR0ZG9Et!2U;u=42x7I0PUCgct{jCk%lY z8(xD2?AQySJD?zq`fGop2sRD`kS#ni5NsTPQU12U|MvtC{Q9 z-zz#s(^{OPPuD)D4P1uYU+`C+f_`8?%SG&WR9-)fVje_IrQ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N}P0l$E!Y~vB zP&*hC!j{Dei-Z(teGQU=NPwskiIywSLPH0f<%bG!7z!=|-(XBSzwvnF8+{#to=FDw zDlaL$6lKa~J^{DLK&)v<8oO`cbIr8@o6P-@ul}P>>=IK zF!(I&U;n;PNnrW^Bvgr@l_bKE@MPFWMoYs1vcE7KA_rr`5pwAKSb&gkyy$2F004a@ BtqcGF literal 0 HcmV?d00001 diff --git a/Desktop/frontend/public/index.html b/DesktopReact/frontend/public/index.html similarity index 100% rename from Desktop/frontend/public/index.html rename to DesktopReact/frontend/public/index.html diff --git a/Desktop/frontend/public/manifest.json b/DesktopReact/frontend/public/manifest.json similarity index 100% rename from Desktop/frontend/public/manifest.json rename to DesktopReact/frontend/public/manifest.json diff --git a/Desktop/frontend/public/robots.txt b/DesktopReact/frontend/public/robots.txt similarity index 100% rename from Desktop/frontend/public/robots.txt rename to DesktopReact/frontend/public/robots.txt diff --git a/Desktop/frontend/scripts/build.js b/DesktopReact/frontend/scripts/build.js similarity index 100% rename from Desktop/frontend/scripts/build.js rename to DesktopReact/frontend/scripts/build.js diff --git a/Desktop/frontend/scripts/start.js b/DesktopReact/frontend/scripts/start.js similarity index 100% rename from Desktop/frontend/scripts/start.js rename to DesktopReact/frontend/scripts/start.js diff --git a/Desktop/frontend/scripts/test.js b/DesktopReact/frontend/scripts/test.js similarity index 100% rename from Desktop/frontend/scripts/test.js rename to DesktopReact/frontend/scripts/test.js diff --git a/Desktop/frontend/src/api/service.js b/DesktopReact/frontend/src/api/service.js similarity index 100% rename from Desktop/frontend/src/api/service.js rename to DesktopReact/frontend/src/api/service.js diff --git a/Desktop/frontend/src/components/Root.js b/DesktopReact/frontend/src/components/Root.js similarity index 100% rename from Desktop/frontend/src/components/Root.js rename to DesktopReact/frontend/src/components/Root.js diff --git a/Desktop/frontend/src/components/User/UserCard.css b/DesktopReact/frontend/src/components/User/UserCard.css similarity index 100% rename from Desktop/frontend/src/components/User/UserCard.css rename to DesktopReact/frontend/src/components/User/UserCard.css diff --git a/Desktop/frontend/src/components/User/UserCard.js b/DesktopReact/frontend/src/components/User/UserCard.js similarity index 100% rename from Desktop/frontend/src/components/User/UserCard.js rename to DesktopReact/frontend/src/components/User/UserCard.js diff --git a/Desktop/frontend/src/components/UsersSidebar/UsersSidebar.css b/DesktopReact/frontend/src/components/UsersSidebar/UsersSidebar.css similarity index 100% rename from Desktop/frontend/src/components/UsersSidebar/UsersSidebar.css rename to DesktopReact/frontend/src/components/UsersSidebar/UsersSidebar.css diff --git a/Desktop/frontend/src/components/UsersSidebar/UsersSidebar.js b/DesktopReact/frontend/src/components/UsersSidebar/UsersSidebar.js similarity index 100% rename from Desktop/frontend/src/components/UsersSidebar/UsersSidebar.js rename to DesktopReact/frontend/src/components/UsersSidebar/UsersSidebar.js diff --git a/Desktop/frontend/src/components/feed/Feed.css b/DesktopReact/frontend/src/components/feed/Feed.css similarity index 100% rename from Desktop/frontend/src/components/feed/Feed.css rename to DesktopReact/frontend/src/components/feed/Feed.css diff --git a/Desktop/frontend/src/components/feed/Feed.js b/DesktopReact/frontend/src/components/feed/Feed.js similarity index 100% rename from Desktop/frontend/src/components/feed/Feed.js rename to DesktopReact/frontend/src/components/feed/Feed.js diff --git a/Desktop/frontend/src/components/home/App.css b/DesktopReact/frontend/src/components/home/App.css similarity index 100% rename from Desktop/frontend/src/components/home/App.css rename to DesktopReact/frontend/src/components/home/App.css diff --git a/Desktop/frontend/src/components/home/App.js b/DesktopReact/frontend/src/components/home/App.js similarity index 100% rename from Desktop/frontend/src/components/home/App.js rename to DesktopReact/frontend/src/components/home/App.js diff --git a/Desktop/frontend/src/components/logo/Logo.css b/DesktopReact/frontend/src/components/logo/Logo.css similarity index 100% rename from Desktop/frontend/src/components/logo/Logo.css rename to DesktopReact/frontend/src/components/logo/Logo.css diff --git a/Desktop/frontend/src/components/logo/Logo.js b/DesktopReact/frontend/src/components/logo/Logo.js similarity index 100% rename from Desktop/frontend/src/components/logo/Logo.js rename to DesktopReact/frontend/src/components/logo/Logo.js diff --git a/Desktop/frontend/src/components/notFound/NotFound.js b/DesktopReact/frontend/src/components/notFound/NotFound.js similarity index 100% rename from Desktop/frontend/src/components/notFound/NotFound.js rename to DesktopReact/frontend/src/components/notFound/NotFound.js diff --git a/Desktop/frontend/src/components/post/Post.css b/DesktopReact/frontend/src/components/post/Post.css similarity index 100% rename from Desktop/frontend/src/components/post/Post.css rename to DesktopReact/frontend/src/components/post/Post.css diff --git a/Desktop/frontend/src/components/post/Post.js b/DesktopReact/frontend/src/components/post/Post.js similarity index 100% rename from Desktop/frontend/src/components/post/Post.js rename to DesktopReact/frontend/src/components/post/Post.js diff --git a/Desktop/frontend/src/components/postPlaceholder/PostPlaceholder.css b/DesktopReact/frontend/src/components/postPlaceholder/PostPlaceholder.css similarity index 100% rename from Desktop/frontend/src/components/postPlaceholder/PostPlaceholder.css rename to DesktopReact/frontend/src/components/postPlaceholder/PostPlaceholder.css diff --git a/Desktop/frontend/src/components/postPlaceholder/PostPlaceholder.js b/DesktopReact/frontend/src/components/postPlaceholder/PostPlaceholder.js similarity index 100% rename from Desktop/frontend/src/components/postPlaceholder/PostPlaceholder.js rename to DesktopReact/frontend/src/components/postPlaceholder/PostPlaceholder.js diff --git a/Desktop/frontend/src/components/postsFeed/PostsFeed.css b/DesktopReact/frontend/src/components/postsFeed/PostsFeed.css similarity index 100% rename from Desktop/frontend/src/components/postsFeed/PostsFeed.css rename to DesktopReact/frontend/src/components/postsFeed/PostsFeed.css diff --git a/Desktop/frontend/src/components/postsFeed/PostsFeed.js b/DesktopReact/frontend/src/components/postsFeed/PostsFeed.js similarity index 100% rename from Desktop/frontend/src/components/postsFeed/PostsFeed.js rename to DesktopReact/frontend/src/components/postsFeed/PostsFeed.js diff --git a/Desktop/frontend/src/components/searchBox/SearchBox.css b/DesktopReact/frontend/src/components/searchBox/SearchBox.css similarity index 100% rename from Desktop/frontend/src/components/searchBox/SearchBox.css rename to DesktopReact/frontend/src/components/searchBox/SearchBox.css diff --git a/Desktop/frontend/src/components/searchBox/SearchBox.js b/DesktopReact/frontend/src/components/searchBox/SearchBox.js similarity index 100% rename from Desktop/frontend/src/components/searchBox/SearchBox.js rename to DesktopReact/frontend/src/components/searchBox/SearchBox.js diff --git a/Desktop/frontend/src/components/showMoreUsers/ShowMoreUsers.js b/DesktopReact/frontend/src/components/showMoreUsers/ShowMoreUsers.js similarity index 100% rename from Desktop/frontend/src/components/showMoreUsers/ShowMoreUsers.js rename to DesktopReact/frontend/src/components/showMoreUsers/ShowMoreUsers.js diff --git a/Desktop/frontend/src/components/sidebar/Sidebar.css b/DesktopReact/frontend/src/components/sidebar/Sidebar.css similarity index 100% rename from Desktop/frontend/src/components/sidebar/Sidebar.css rename to DesktopReact/frontend/src/components/sidebar/Sidebar.css diff --git a/Desktop/frontend/src/components/sidebar/Sidebar.js b/DesktopReact/frontend/src/components/sidebar/Sidebar.js similarity index 100% rename from Desktop/frontend/src/components/sidebar/Sidebar.js rename to DesktopReact/frontend/src/components/sidebar/Sidebar.js diff --git a/Desktop/frontend/src/components/sidebarItem/SidebarItem.css b/DesktopReact/frontend/src/components/sidebarItem/SidebarItem.css similarity index 100% rename from Desktop/frontend/src/components/sidebarItem/SidebarItem.css rename to DesktopReact/frontend/src/components/sidebarItem/SidebarItem.css diff --git a/Desktop/frontend/src/components/sidebarItem/SidebarItem.js b/DesktopReact/frontend/src/components/sidebarItem/SidebarItem.js similarity index 100% rename from Desktop/frontend/src/components/sidebarItem/SidebarItem.js rename to DesktopReact/frontend/src/components/sidebarItem/SidebarItem.js diff --git a/Desktop/frontend/src/components/suggestedUsers/SuggestedUsers.css b/DesktopReact/frontend/src/components/suggestedUsers/SuggestedUsers.css similarity index 100% rename from Desktop/frontend/src/components/suggestedUsers/SuggestedUsers.css rename to DesktopReact/frontend/src/components/suggestedUsers/SuggestedUsers.css diff --git a/Desktop/frontend/src/components/suggestedUsers/SuggestedUsers.js b/DesktopReact/frontend/src/components/suggestedUsers/SuggestedUsers.js similarity index 100% rename from Desktop/frontend/src/components/suggestedUsers/SuggestedUsers.js rename to DesktopReact/frontend/src/components/suggestedUsers/SuggestedUsers.js diff --git a/Desktop/frontend/src/components/userProfile/UserProfile.css b/DesktopReact/frontend/src/components/userProfile/UserProfile.css similarity index 100% rename from Desktop/frontend/src/components/userProfile/UserProfile.css rename to DesktopReact/frontend/src/components/userProfile/UserProfile.css diff --git a/Desktop/frontend/src/components/userProfile/UserProfile.js b/DesktopReact/frontend/src/components/userProfile/UserProfile.js similarity index 100% rename from Desktop/frontend/src/components/userProfile/UserProfile.js rename to DesktopReact/frontend/src/components/userProfile/UserProfile.js diff --git a/Desktop/frontend/src/components/userProfileHeader/UserProfileHeader.css b/DesktopReact/frontend/src/components/userProfileHeader/UserProfileHeader.css similarity index 100% rename from Desktop/frontend/src/components/userProfileHeader/UserProfileHeader.css rename to DesktopReact/frontend/src/components/userProfileHeader/UserProfileHeader.css diff --git a/Desktop/frontend/src/components/userProfileHeader/UserProfileHeader.js b/DesktopReact/frontend/src/components/userProfileHeader/UserProfileHeader.js similarity index 100% rename from Desktop/frontend/src/components/userProfileHeader/UserProfileHeader.js rename to DesktopReact/frontend/src/components/userProfileHeader/UserProfileHeader.js diff --git a/Desktop/frontend/src/images/banner.jpg b/DesktopReact/frontend/src/images/banner.jpg similarity index 100% rename from Desktop/frontend/src/images/banner.jpg rename to DesktopReact/frontend/src/images/banner.jpg diff --git a/DesktopReact/frontend/src/images/favicon.ico b/DesktopReact/frontend/src/images/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..cd2c5d6afbe08d2ee060535f131cc21ad521575c GIT binary patch literal 15086 zcmd6tPl#Rh702(J5oc4KptukvGrYD`5JEtxMa1V$x)9vBaueQa=vHxMGm$`3EL2` zzjMCl-|yaeq^f$=e0BD0CB9r;`*~IUvZ|`(<(QwUs=sONlsNk<4^`FgB=C%6bfh{b zVm&=S+hY&Pzc2p!Zcp^EXs!!W$aL;^ojdMzFdKJ_Ul2bpx-J?8F@FLq;tzxm!a>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K y(q4T}zioaY`a@Oi>PD^Ws=9f#s(!UpRZlAee-v$qwtu1Db2qea`by*5RrP<{ez-3H literal 0 HcmV?d00001 diff --git a/Desktop/frontend/src/images/pfp.png b/DesktopReact/frontend/src/images/pfp.png similarity index 100% rename from Desktop/frontend/src/images/pfp.png rename to DesktopReact/frontend/src/images/pfp.png diff --git a/Desktop/frontend/src/images/superalgos.png b/DesktopReact/frontend/src/images/superalgos.png similarity index 100% rename from Desktop/frontend/src/images/superalgos.png rename to DesktopReact/frontend/src/images/superalgos.png diff --git a/Desktop/frontend/src/index.css b/DesktopReact/frontend/src/index.css similarity index 100% rename from Desktop/frontend/src/index.css rename to DesktopReact/frontend/src/index.css diff --git a/Desktop/frontend/src/index.js b/DesktopReact/frontend/src/index.js similarity index 100% rename from Desktop/frontend/src/index.js rename to DesktopReact/frontend/src/index.js diff --git a/DesktopReact/frontend/src/main.css b/DesktopReact/frontend/src/main.css new file mode 100644 index 000000000..3dadc5d11 --- /dev/null +++ b/DesktopReact/frontend/src/main.css @@ -0,0 +1,309 @@ +/* latin */ +@font-face { + font-family: 'Saira'; + font-style: normal; + font-weight: 300; + src: local('Saira Light'), local('Saira-Light'), url(Fonts/Saira.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + } + /* latin */ + @font-face { + font-family: 'Saira Condensed'; + font-style: normal; + font-weight: 300; + src: local('Saira Condensed Light'), local('SairaCondensed-Light'), url(Fonts/Saira-Condensed.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + } + + @font-face { + font-family: segoeui; + src: url(Fonts/segoeui.woff) format('woff'); + font-weight: normal; + font-style: normal; + } + + .body{ + overflow-y: hidden; + overflow-x: hidden; + } + + .scroll-div { + position:absolute; + overflow-y: scroll; + overflow-x: hidden; + top:0px; + left:0px; + vertical-align: top; + height: 100%; + width: 100%; + color: #000; + border-color: blue; + background-color: transparent; + border-width: 0px; + } + + .static-div { + position: fixed; + top:0px; + left:18%; + width: 100%; + height: 100%; + padding: 0; + margin: 0; + color: #000; + background:transparent; + border-width: 0px; + border-collapse: collapse; + } + + .content-div { + position:relative; + vertical-align: top; + height: 100%; + width: 30%; + left: 31.2%; + color: #000; + border-color: blue; + background-color:transparent; + border-width: 1px; + } + + .post-placeholder { + vertical-align: top; + height: 50px; + width: 100%; + color: #000; + border-color: blue; + background-color: transparent; + border-width: 0px; + } + + .post-div { + vertical-align: top; + height: 300px; + width: 100%; + color: #000; + border-color: blue; + background-color: transparent; + border-width: 0px; + } + + .new-post-div { + vertical-align: top; + height: 300px; + width: 100%; + color: #000; + border-color: blue; + background-color: transparent; + border-width: 0px; + } + + .page-table { + top:0px; + left:18%; + width: 64%; + height: 100%; + padding: 0; + margin: 0; + color: #000; + background:transparent; + border-width: 0px; + border-collapse: collapse; + } + + .left-column { + position:relative; + top:0px; + width: 20%; + height: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .middle-column { + position:relative; + top:0px; + width: 50%; + height: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .right-column { + position:relative; + top:0px; + left:0px; + width: 30%; + height: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .left-table { + position:relative; + width: 100%; + height: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + border-collapse: collapse; + } + + .logo-cell { + vertical-align: top; + width: 100%; + height: 70px; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .menu-cell { + vertical-align: top; + width: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .profile-cell { + vertical-align: bottom; + width: 100%; + height: 50px; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .middle-table { + position:relative; + width: 100%; + height: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + border-collapse: collapse; + } + + .content-title-cell { + vertical-align: top; + width: 100%; + height: 50px; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + background-color: #ffffff; + } + + .content-cell { + vertical-align: top; + width: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .right-table { + position:relative; + width: 100%; + height: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + border-collapse: collapse; + } + + .search-cell { + vertical-align: top; + width: 100%; + height: 50px; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .context-cell { + vertical-align: top; + width: 100%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + background:transparent; + } + + .menu-table { + position:relative; + width: 100%; + height: 65%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + border-collapse: collapse; + } + + .menu-item-cell { + vertical-align: top; + width: 100%; + height: 50px; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + } + + .who-to-follow-table { + position:relative; + width: 100%; + height: 30%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + border-collapse: collapse; + } + + .profile-to-follow-table { + position:relative; + width: 100%; + height: 30%; + padding: 0; + margin: 0; + color: #000; + border-width: 0px; + border-collapse: collapse; + } + + .profile-to-follow-span { + float: right; + } + + .profile-to-follow-button { + float: right; + background-color: green; + } + + .profile-to-unfollow-span { + float: right; + } + + .profile-to-unfollow-button { + float: right; + background-color: red; + } \ No newline at end of file diff --git a/Desktop/frontend/src/reportWebVitals.js b/DesktopReact/frontend/src/reportWebVitals.js similarity index 100% rename from Desktop/frontend/src/reportWebVitals.js rename to DesktopReact/frontend/src/reportWebVitals.js diff --git a/Desktop/frontend/src/store/index.js b/DesktopReact/frontend/src/store/index.js similarity index 100% rename from Desktop/frontend/src/store/index.js rename to DesktopReact/frontend/src/store/index.js diff --git a/Desktop/frontend/src/store/slices/Globals.js b/DesktopReact/frontend/src/store/slices/Globals.js similarity index 100% rename from Desktop/frontend/src/store/slices/Globals.js rename to DesktopReact/frontend/src/store/slices/Globals.js diff --git a/DesktopRootReact.js b/DesktopRootReact.js new file mode 100644 index 000000000..62eed4c02 --- /dev/null +++ b/DesktopRootReact.js @@ -0,0 +1,86 @@ +exports.newDesktopRoot = function newDesktopRoot() { + /* + This module represents the execution root of the Desktop App. + We use this module that is outside the Desktop folder to + load all node dependencies and get them ready to the actual App. + */ + let thisObject = { + run: run + } + + return thisObject + + async function run(debugSettings) { + /* + The DK object is accessible everywhere at the Superalgos Desktop App. + It provides access to all modules built for this App. + */ + global.DK = {} + /* + The SA object is accessible everywhere at the Superalgos Desktop App. + It provides access to all modules built for Superalgos in general. + */ + global.SA = {} + /* Load Environment Variables */ + let ENVIRONMENT = require('./Environment.js'); + let ENVIRONMENT_MODULE = ENVIRONMENT.newEnvironment() + global.env = ENVIRONMENT_MODULE + + if (debugSettings !== undefined && debugSettings.DESKTOP_APP_SIGNING_ACCOUNT !== undefined) { + global.env.DESKTOP_APP_SIGNING_ACCOUNT = debugSettings.DESKTOP_APP_SIGNING_ACCOUNT + } + /* + First thing is to load the project schema file. + */ + global.PROJECTS_SCHEMA = require(global.env.PATH_TO_PROJECT_SCHEMA) + /* + Setting up the modules that will be available, defined at the Project Schema file. + */ + let MULTI_PROJECT = require('./MultiProject.js'); + let MULTI_PROJECT_MODULE = MULTI_PROJECT.newMultiProject() + MULTI_PROJECT_MODULE.initialize(DK, 'DK') + MULTI_PROJECT_MODULE.initialize(SA, 'SA') + /* + Setting up external dependencies. + */ + SA.nodeModules = { + fs: require('fs'), + util: require('util'), + path: require('path'), + web3: require('web3'), + ws: require('ws'), + open: require('open'), + http: require('http'), + octokit: require("@octokit/rest"), + simpleGit: require('simple-git'), + nodeFetch: require('node-fetch') + } + /* + Setting up Secrets. + */ + try { + SA.secrets = { + array: require('./My-Secrets/Secrets.json').secrets, + map: new Map() + } + } catch (err) { + SA.secrets = { + array: [], + map: new Map() + } + } + + for (let i = 0; i < SA.secrets.array.length; i++) { + let secret = SA.secrets.array[i] + SA.secrets.map.set(secret.nodeCodeName, secret) + } + + run() + + async function run() { + DK.app = require('./DesktopReact/DesktopApp.js').newDesktopApp() + await DK.app.run() + console.log('Superalgos Desktop App is Running!') + } + } +} \ No newline at end of file diff --git a/desktop-react.js b/desktop-react.js new file mode 100644 index 000000000..37586f795 --- /dev/null +++ b/desktop-react.js @@ -0,0 +1,16 @@ +/* +The Superalgos Desktop is one of the 3 clients of the Superalgos P2P Network: + + * Superalgos Mobile + * Superalgos Desktop + * Superalgos Server + +Users can use any of these clients for their social trading activities. + +This module represents the Nodejs command that users have to start the Desktop App.. + +*/ + +let APP_ROOT = require('./DesktopRoot.js') +let APP_ROOT_MODULE = APP_ROOT.newDesktopRoot() +APP_ROOT_MODULE.run() \ No newline at end of file