HUGE Refactoring Superalgos Project to Foundations Project done
This commit is contained in:
1 parent
c9c0aeaca7
commit
87edcc043d
3557 files changed
+10791
-10789
No files matched your search
@@ -19,7 +19,7 @@ function newEducationActionSwitch() {
|
||||
async function executeAction(action) {
|
||||
switch (action.name) {
|
||||
case 'Action Name': {
|
||||
// Example: return UI.projects.superalgos.functionLibraries.onFocus.getNodeThatIsOnFocus(action.node)
|
||||
// Example: return UI.projects.foundations.functionLibraries.onFocus.getNodeThatIsOnFocus(action.node)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function newSuperalgosDocsCommmandInterface() {
|
||||
function newFoundationsDocsCommmandInterface() {
|
||||
let thisObject = {
|
||||
command: undefined,
|
||||
detectCommands: detectCommands,
|
||||
@@ -30,7 +30,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function checkContributeCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'app.help app.contribute') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Contribute Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Contribute Command')
|
||||
return
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('App.Contribute') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('app.contribute') !== 0) { return 'Not Contribute Commands' }
|
||||
@@ -42,23 +42,23 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
}
|
||||
|
||||
/* Find the Username and Password */
|
||||
let apisNode = UI.projects.superalgos.spaces.designSpace.workspace.getHierarchyHeadByNodeType('APIs')
|
||||
let apisNode = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadByNodeType('APIs')
|
||||
if (apisNode === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return
|
||||
}
|
||||
if (apisNode.githubAPI === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return
|
||||
}
|
||||
|
||||
let config = JSON.parse(apisNode.githubAPI.config)
|
||||
if (config.username === undefined || config.username === "") {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return
|
||||
}
|
||||
if (config.token === undefined || config.token === "") {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Error - Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
UI.projects.education.spaces.docsSpace.contributionsBranch
|
||||
, onResponse)
|
||||
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Message - Creating Pull Request')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Message - Creating Pull Request')
|
||||
|
||||
return
|
||||
|
||||
@@ -83,7 +83,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
/* Lets check the result of the call through the http interface */
|
||||
data = JSON.parse(data)
|
||||
if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result && data.result === GLOBAL.DEFAULT_OK_RESPONSE.result) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Message - Contribution Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Message - Contribution Done')
|
||||
} else {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo(
|
||||
data.docs.project,
|
||||
@@ -99,13 +99,13 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function checkUpdateCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'app.help app.update') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Update Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Update Command')
|
||||
return
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('App.Update') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('app.update') !== 0) { return 'Not Update Commands' }
|
||||
|
||||
httpRequest(undefined, 'App/Update/' + UI.projects.education.spaces.docsSpace.currentBranch, onResponse)
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Message - Updating Your Local App')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Message - Updating Your Local App')
|
||||
|
||||
return
|
||||
|
||||
@@ -114,9 +114,9 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
data = JSON.parse(data)
|
||||
if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result && data.result === GLOBAL.CUSTOM_OK_RESPONSE.result) {
|
||||
if (data.message.summary.changes + data.message.summary.deletions + data.message.summary.insertions > 0) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Message - Update Done - New Version Found')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Message - Update Done - New Version Found')
|
||||
} else {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Message - Update Done - Already Up-To-Date')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'App Message - Update Done - Already Up-To-Date')
|
||||
}
|
||||
} else {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo(
|
||||
@@ -144,7 +144,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function checkHelpCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Help Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Help Command')
|
||||
return
|
||||
}
|
||||
return 'Not Help Command'
|
||||
@@ -152,7 +152,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function checkGotoCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help docs.goto') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Goto Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Goto Command')
|
||||
return
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('Docs.Goto') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('docs.goto') !== 0) { return 'Not Goto Command' }
|
||||
@@ -160,7 +160,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
let splittedCommand = UI.projects.education.spaces.docsSpace.commandInterface.command.split(' ')
|
||||
|
||||
if (splittedCommand[1] === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
let secondaryCommand = UI.projects.education.spaces.docsSpace.commandInterface.command.substring(UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf(' ') + 1, UI.projects.education.spaces.docsSpace.commandInterface.command.length)
|
||||
@@ -171,7 +171,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
let anchor = splittedSecondaryCommand[3]
|
||||
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let docsSchemaDocument
|
||||
@@ -201,16 +201,16 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
break
|
||||
}
|
||||
default: {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
}
|
||||
if (docsSchemaDocument === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Not Found', 'Anchor Page Not Found')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Not Found', 'Anchor Page Not Found')
|
||||
return
|
||||
}
|
||||
if (docsSchemaDocument.paragraphs === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page With No Paragraphs', 'Anchor Page With No Paragraphs')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page With No Paragraphs', 'Anchor Page With No Paragraphs')
|
||||
return
|
||||
}
|
||||
UI.projects.education.spaces.docsSpace.navigateTo(project, category, type, anchor, undefined)
|
||||
@@ -219,19 +219,19 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function checkAddCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help docs.add') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Add Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Add Command')
|
||||
return
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('Docs.Add') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('docs.add') !== 0) { return 'Not Add Command' }
|
||||
|
||||
if (UI.projects.education.spaces.docsSpace.language !== UI.projects.education.globals.docs.DEFAULT_LANGUAGE) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Only In English', 'Anchor Only In English')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Only In English', 'Anchor Only In English')
|
||||
return
|
||||
}
|
||||
|
||||
let splittedCommand = UI.projects.education.spaces.docsSpace.commandInterface.command.split(': ')
|
||||
if (splittedCommand[1] === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Missing Colon', 'Anchor Missing Colon')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Missing Colon', 'Anchor Missing Colon')
|
||||
return
|
||||
}
|
||||
let primaryCommand = splittedCommand[0]
|
||||
@@ -241,17 +241,17 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
if (splittedPrimaryCommand[0].toLowerCase() === 'docs.add') {
|
||||
if (splittedPrimaryCommand[2] !== 'to') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Missing To', 'Anchor Missing To')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Missing To', 'Anchor Missing To')
|
||||
return
|
||||
}
|
||||
|
||||
if (splittedPrimaryCommand.length < 4) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
|
||||
if (secondaryCommand === '') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
case 'topic': {
|
||||
let splittedSecondaryCommand = secondaryCommand.split('->')
|
||||
if (splittedSecondaryCommand.length < 2) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
addTopic(splittedPrimaryCommand[3], splittedSecondaryCommand[0], splittedSecondaryCommand[1], splittedSecondaryCommand[2])
|
||||
@@ -276,7 +276,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
case 'tutorial': {
|
||||
let splittedSecondaryCommand = secondaryCommand.split('->')
|
||||
if (splittedSecondaryCommand.length < 2) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
addTutorial(splittedPrimaryCommand[3], splittedSecondaryCommand[0], splittedSecondaryCommand[1], splittedSecondaryCommand[2])
|
||||
@@ -285,7 +285,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
case 'review': {
|
||||
let splittedSecondaryCommand = secondaryCommand.split('->')
|
||||
if (splittedSecondaryCommand.length < 2) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
addReview(splittedPrimaryCommand[3], splittedSecondaryCommand[0], splittedSecondaryCommand[1], splittedSecondaryCommand[2])
|
||||
@@ -296,7 +296,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
return
|
||||
}
|
||||
default: {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -306,19 +306,19 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function checkDeleteCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help docs.delete') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Delete Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Delete Command')
|
||||
return
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('Docs.Delete') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('docs.delete') !== 0) { return 'Not Delete Command' }
|
||||
|
||||
if (UI.projects.education.spaces.docsSpace.language !== UI.projects.education.globals.docs.DEFAULT_LANGUAGE) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Only In English', 'Anchor Only In English')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Only In English', 'Anchor Only In English')
|
||||
return
|
||||
}
|
||||
|
||||
let splittedCommand = UI.projects.education.spaces.docsSpace.commandInterface.command.split(': ')
|
||||
if (splittedCommand[1] === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Missing Colon', 'Anchor Missing Colon')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Missing Colon', 'Anchor Missing Colon')
|
||||
return
|
||||
}
|
||||
let primaryCommand = splittedCommand[0]
|
||||
@@ -328,17 +328,17 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
if (splittedPrimaryCommand[0].toLowerCase() === 'docs.delete') {
|
||||
if (splittedPrimaryCommand[2] !== 'from') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Missing From', 'Anchor Missing From')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Missing From', 'Anchor Missing From')
|
||||
return
|
||||
}
|
||||
|
||||
if (splittedPrimaryCommand.length < 4) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
|
||||
if (secondaryCommand === '') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -354,7 +354,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
case 'topic': {
|
||||
let splittedSecondaryCommand = secondaryCommand.split('->')
|
||||
if (splittedSecondaryCommand.length < 3) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
deleteTopic(splittedPrimaryCommand[3], splittedSecondaryCommand[0], splittedSecondaryCommand[1], splittedSecondaryCommand[2])
|
||||
@@ -363,7 +363,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
case 'tutorial': {
|
||||
let splittedSecondaryCommand = secondaryCommand.split('->')
|
||||
if (splittedSecondaryCommand.length < 3) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
deleteTutorial(splittedPrimaryCommand[3], splittedSecondaryCommand[0], splittedSecondaryCommand[1], splittedSecondaryCommand[2])
|
||||
@@ -372,7 +372,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
case 'review': {
|
||||
let splittedSecondaryCommand = secondaryCommand.split('->')
|
||||
if (splittedSecondaryCommand.length < 3) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
deleteReview(splittedPrimaryCommand[3], splittedSecondaryCommand[0], splittedSecondaryCommand[1], splittedSecondaryCommand[2])
|
||||
@@ -383,7 +383,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
return
|
||||
}
|
||||
default: {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -393,14 +393,14 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function checkRepaginateCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help docs.repaginate') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Repaginate Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Repaginate Command')
|
||||
return
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('Docs.Repaginate') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('docs.repaginate') !== 0) { return 'Not Repaginate Command' }
|
||||
|
||||
let splittedCommand = UI.projects.education.spaces.docsSpace.commandInterface.command.split(': ')
|
||||
if (splittedCommand[1] === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Missing Colon', 'Anchor Missing Colon')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Missing Colon', 'Anchor Missing Colon')
|
||||
return
|
||||
}
|
||||
let primaryCommand = splittedCommand[0]
|
||||
@@ -410,27 +410,27 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
if (splittedPrimaryCommand[0].toLowerCase() === 'docs.repaginate') {
|
||||
if (splittedPrimaryCommand[2] !== 'from') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Missing From', 'Anchor Missing From')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Missing From', 'Anchor Missing From')
|
||||
return
|
||||
}
|
||||
|
||||
if (splittedPrimaryCommand.length < 4) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Too Few Parameters', 'Anchor Too Few Parameters')
|
||||
return
|
||||
}
|
||||
|
||||
if (secondaryCommand === '') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
|
||||
switch (splittedPrimaryCommand[1].toLowerCase()) {
|
||||
case 'node': {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
case 'concept': {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
case 'topic': {
|
||||
@@ -446,11 +446,11 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
return
|
||||
}
|
||||
case 'book': {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
default: {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Category Not Valid', 'Anchor Category Not Valid')
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -459,26 +459,26 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function checkUReIndexCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help docs.reindex') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Reindex Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Reindex Command')
|
||||
return
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('Docs.Reindex') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('docs.reindex') !== 0) { return 'Not Reindex Command' }
|
||||
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Reindexing Started')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Reindexing Started')
|
||||
setTimeout(startReindexingProcess, 100)
|
||||
|
||||
function startReindexingProcess() {
|
||||
UI.projects.education.spaces.docsSpace.searchEngine.setUpSearchEngine(onFinish)
|
||||
|
||||
function onFinish() {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Reindexing Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Reindexing Done')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function checkUSaveCommand() {
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help docs.save') {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Save Command')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Save Command')
|
||||
return
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('Docs.Save') !== 0 && UI.projects.education.spaces.docsSpace.commandInterface.command.indexOf('docs.save') !== 0) { return 'Not Save Command' }
|
||||
@@ -525,10 +525,10 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
if (responseCount === requestsSent) {
|
||||
if (responseCount === okResponses) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Saving Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Saving Done')
|
||||
afterSaving()
|
||||
} else {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Changes Not Saved', 'Anchor Changes Not Saved')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Changes Not Saved', 'Anchor Changes Not Saved')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -637,7 +637,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function repaginate(project, category, query) {
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -648,7 +648,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
)
|
||||
|
||||
if (orderedArray.length === 0) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'No Matching Topic, Tutorial or Review Found')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'No Matching Topic, Tutorial or Review Found')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -659,7 +659,7 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
pageNumber++
|
||||
schemaDocument.updated = true
|
||||
}
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Repagination Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Repagination Done')
|
||||
}
|
||||
|
||||
function addNode(project, type) {
|
||||
@@ -675,12 +675,12 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
]
|
||||
}
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.get(type)
|
||||
if (exist !== undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -703,12 +703,12 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
}
|
||||
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.get(type)
|
||||
if (exist !== undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -743,12 +743,12 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
]
|
||||
}
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.get(type)
|
||||
if (exist !== undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -783,12 +783,12 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
]
|
||||
}
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema.get(type)
|
||||
if (exist !== undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -823,12 +823,12 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
]
|
||||
}
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsReviewSchema.get(type)
|
||||
if (exist !== undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -851,12 +851,12 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
}
|
||||
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.get(type)
|
||||
if (exist !== undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Already Exists', 'Anchor Page Already Exists')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -867,54 +867,54 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
|
||||
function deleteNode(project, type) {
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.get(type)
|
||||
if (exist === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
return
|
||||
}
|
||||
|
||||
let schemaDocument = SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.get(type)
|
||||
schemaDocument.deleted = true
|
||||
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Deleting Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Deleting Done')
|
||||
}
|
||||
|
||||
function deleteConcept(project, type) {
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.get(type)
|
||||
if (exist === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
return
|
||||
}
|
||||
|
||||
let schemaDocument = SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.get(type)
|
||||
schemaDocument.deleted = true
|
||||
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Deleting Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Deleting Done')
|
||||
}
|
||||
|
||||
function deleteTopic(project, topic, type, pageNumber) {
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.get(type)
|
||||
if (exist === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
return
|
||||
} else {
|
||||
if (exist.pageNumber !== pageNumber) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Number Mismatch', 'Anchor Page Number Mismatch')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Number Mismatch', 'Anchor Page Number Mismatch')
|
||||
return
|
||||
}
|
||||
if (exist.topic !== topic) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Topic Mismatch', 'Anchor Topic Mismatch')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Topic Mismatch', 'Anchor Topic Mismatch')
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -922,25 +922,25 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
let schemaDocument = SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.get(type)
|
||||
schemaDocument.deleted = true
|
||||
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Deleting Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Deleting Done')
|
||||
}
|
||||
|
||||
function deleteTutorial(project, tutorial, type, pageNumber) {
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema.get(type)
|
||||
if (exist === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
return
|
||||
} else {
|
||||
if (exist.pageNumber !== pageNumber) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Number Mismatch', 'Anchor Page Number Mismatch')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Number Mismatch', 'Anchor Page Number Mismatch')
|
||||
return
|
||||
}
|
||||
if (exist.tutorial !== tutorial) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Tutorial Mismatch', 'Anchor Tutorial Mismatch')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Tutorial Mismatch', 'Anchor Tutorial Mismatch')
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -948,25 +948,25 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
let schemaDocument = SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema.get(type)
|
||||
schemaDocument.deleted = true
|
||||
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Deleting Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Deleting Done')
|
||||
}
|
||||
|
||||
function deleteReview(project, review, type, pageNumber) {
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsReviewSchema.get(type)
|
||||
if (exist === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
return
|
||||
} else {
|
||||
if (exist.pageNumber !== pageNumber) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Number Mismatch', 'Anchor Page Number Mismatch')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Number Mismatch', 'Anchor Page Number Mismatch')
|
||||
return
|
||||
}
|
||||
if (exist.review !== review) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Review Mismatch', 'Anchor Review Mismatch')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Review Mismatch', 'Anchor Review Mismatch')
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -974,24 +974,24 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
let schemaDocument = SCHEMAS_BY_PROJECT.get(project).map.docsReviewSchema.get(type)
|
||||
schemaDocument.deleted = true
|
||||
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Deleting Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Deleting Done')
|
||||
}
|
||||
|
||||
function deleteBook(project, type) {
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Project Does Not Exist', 'Anchor Project Does Not Exist')
|
||||
return
|
||||
}
|
||||
let exist = SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.get(type)
|
||||
if (exist === undefined) {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Error - Page Does Not Exist', 'Anchor Page Does Not Exist')
|
||||
return
|
||||
}
|
||||
|
||||
let schemaDocument = SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.get(type)
|
||||
schemaDocument.deleted = true
|
||||
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message - Deleting Done')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs Message - Deleting Done')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
function newSuperalgosDocsContextMenu() {
|
||||
function newFoundationsDocsContextMenu() {
|
||||
let thisObject = {
|
||||
selectedParagraph: undefined,
|
||||
getSelection: getSelection,
|
||||
@@ -265,7 +265,7 @@ function newSuperalgosDocsContextMenu() {
|
||||
}
|
||||
}
|
||||
|
||||
UI.projects.superalgos.utilities.clipboard.copyTextToClipboard(clipboard)
|
||||
UI.projects.foundations.utilities.clipboard.copyTextToClipboard(clipboard)
|
||||
removeContextMenuFromScreen()
|
||||
}
|
||||
|
||||
|
||||
@@ -65,13 +65,13 @@ function newEducationDocSpace() {
|
||||
setupActiveBranch()
|
||||
setupContributionsBranch()
|
||||
|
||||
thisObject.searchEngine = newSuperalgosDocsSearchEngine()
|
||||
thisObject.mainSearchPage = newSuperalgosDocsMainSearchPage()
|
||||
thisObject.searchResultsPage = newSuperalgosDocsSearchResultsPage()
|
||||
thisObject.documentPage = newSuperalgosDocsDocumentPage()
|
||||
thisObject.footer = newSuperalgosDocsFooter()
|
||||
thisObject.commandInterface = newSuperalgosDocsCommmandInterface()
|
||||
thisObject.contextMenu = newSuperalgosDocsContextMenu()
|
||||
thisObject.searchEngine = newFoundationsDocsSearchEngine()
|
||||
thisObject.mainSearchPage = newFoundationsDocsMainSearchPage()
|
||||
thisObject.searchResultsPage = newFoundationsDocsSearchResultsPage()
|
||||
thisObject.documentPage = newFoundationsDocsDocumentPage()
|
||||
thisObject.footer = newFoundationsDocsFooter()
|
||||
thisObject.commandInterface = newFoundationsDocsCommmandInterface()
|
||||
thisObject.contextMenu = newFoundationsDocsContextMenu()
|
||||
|
||||
thisObject.searchEngine.initialize()
|
||||
thisObject.mainSearchPage.initialize()
|
||||
@@ -187,7 +187,7 @@ function newEducationDocSpace() {
|
||||
|
||||
function changeCurrentBranch(branch) {
|
||||
httpRequest(undefined, 'App/Checkout/' + branch, onResponse)
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Switching Branches - Changing Current Branch')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Switching Branches - Changing Current Branch')
|
||||
|
||||
function onResponse(err, data) {
|
||||
/* Lets check the result of the call through the http interface */
|
||||
@@ -195,7 +195,7 @@ function newEducationDocSpace() {
|
||||
if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result && data.result === GLOBAL.DEFAULT_OK_RESPONSE.result) {
|
||||
UI.projects.education.spaces.docsSpace.currentBranch = branch
|
||||
window.localStorage.setItem('Current Branch', branch)
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Switching Branches - Current Branch Changed')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Switching Branches - Current Branch Changed')
|
||||
} else {
|
||||
UI.projects.education.spaces.docsSpace.navigateTo(
|
||||
data.docs.project,
|
||||
@@ -212,19 +212,19 @@ function newEducationDocSpace() {
|
||||
function changeContributionsBranch(branch) {
|
||||
UI.projects.education.spaces.docsSpace.contributionsBranch = branch
|
||||
window.localStorage.setItem('Contributions Branch', UI.projects.education.spaces.docsSpace.contributionsBranch)
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Switching Branches - Contributions Branch Changed')
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Switching Branches - Contributions Branch Changed')
|
||||
}
|
||||
|
||||
function changeLanguage(pLanguage) {
|
||||
UI.projects.education.spaces.docsSpace.language = pLanguage
|
||||
window.localStorage.setItem('Docs Language', UI.projects.education.spaces.docsSpace.language)
|
||||
let languageLabel = UI.projects.education.utilities.languages.getLaguageLabel(UI.projects.education.spaces.docsSpace.language)
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs In ' + languageLabel)
|
||||
UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Docs In ' + languageLabel)
|
||||
}
|
||||
|
||||
function sharePage() {
|
||||
let clipboard = "docs.goto " + UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project + '->' + UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.category + '->' + UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.type
|
||||
UI.projects.superalgos.utilities.clipboard.copyTextToClipboard(clipboard)
|
||||
UI.projects.foundations.utilities.clipboard.copyTextToClipboard(clipboard)
|
||||
}
|
||||
|
||||
function onKeyDown(event) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function newSuperalgosDocsDocumentPage() {
|
||||
function newFoundationsDocsDocumentPage() {
|
||||
let thisObject = {
|
||||
docsSchemaDocument: undefined,
|
||||
exitEditMode: exitEditMode,
|
||||
@@ -114,10 +114,10 @@ function newSuperalgosDocsDocumentPage() {
|
||||
async function repositionWorkspace() {
|
||||
let node
|
||||
if (UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.category === 'Workspace') {
|
||||
node = await UI.projects.superalgos.spaces.designSpace.workspace.getNodeById(thisObject.docsSchemaDocument.nodeId)
|
||||
node = await UI.projects.foundations.spaces.designSpace.workspace.getNodeById(thisObject.docsSchemaDocument.nodeId)
|
||||
}
|
||||
if (UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.nodeId !== undefined) {
|
||||
node = await UI.projects.superalgos.spaces.designSpace.workspace.getNodeById(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.nodeId)
|
||||
node = await UI.projects.foundations.spaces.designSpace.workspace.getNodeById(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.nodeId)
|
||||
}
|
||||
if (node === undefined) { return }
|
||||
|
||||
@@ -126,7 +126,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
setTimeout(positionAtNode, 1000, node) // In case the branch which contains the node is collapsed.
|
||||
function positionAtNode(node) {
|
||||
let xOffset = -UI.projects.education.globals.docs.DOCS_SPACE_WIDTH / 2
|
||||
UI.projects.superalgos.spaces.floatingSpace.positionAtNode(node, xOffset)
|
||||
UI.projects.foundations.spaces.floatingSpace.positionAtNode(node, xOffset)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -289,9 +289,9 @@ function newSuperalgosDocsDocumentPage() {
|
||||
/* We will test if we can draw an image here or not*/
|
||||
let testElement
|
||||
if (docsSchemaDocument.definition.icon !== undefined) {
|
||||
testElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(docsSchemaDocument.definition.icon.project, docsSchemaDocument.definition.icon.name)
|
||||
testElement = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(docsSchemaDocument.definition.icon.project, docsSchemaDocument.definition.icon.name)
|
||||
} else {
|
||||
testElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(project, type)
|
||||
testElement = UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(project, type)
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -765,7 +765,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
equal to the Node Type.
|
||||
*/
|
||||
let imageName = appSchemaDocument.type.toLowerCase().replaceAll(' ', '-')
|
||||
imageElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageName)
|
||||
imageElement = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageName)
|
||||
if (imageElement === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with name (' + imageName + ') not found. As a consequence, the Docs Page will be rendered without the icon. ')
|
||||
continue
|
||||
@@ -773,14 +773,14 @@ function newSuperalgosDocsDocumentPage() {
|
||||
} else {
|
||||
if (imageItem.icon === undefined) {
|
||||
/* This is the default behavious */
|
||||
imageElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(imageItem.project, imageItem.type)
|
||||
imageElement = UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(imageItem.project, imageItem.type)
|
||||
if (imageElement === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with name (' + imageItem.type + ') not found. As a consequence, the Docs Page will be rendered without the icon. ')
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
/* Here we take the image from the icon specification */
|
||||
imageElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(imageItem.icon.project, imageItem.icon.name)
|
||||
imageElement = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(imageItem.icon.project, imageItem.icon.name)
|
||||
if (imageElement === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.icon.project + ') with name (' + imageItem.icon.name + ') not found. As a consequence, the Docs Page will be rendered without the icon. ')
|
||||
continue
|
||||
@@ -805,20 +805,20 @@ function newSuperalgosDocsDocumentPage() {
|
||||
let appSchemaDocument = SCHEMAS_BY_PROJECT.get(imageItem.project).map.appSchema.get(imageItem.type)
|
||||
if (appSchemaDocument.icon === undefined) {
|
||||
let imageName = appSchemaDocument.type.toLowerCase().replaceAll(' ', '-')
|
||||
collectionImage = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageName)
|
||||
collectionImage = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageName)
|
||||
if (collectionImage === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with name (' + imageName + ') not found. As a consequence, the hierarchy will be rendered without the icon. ')
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
collectionImage = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(imageItem.project, imageItem.type)
|
||||
collectionImage = UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(imageItem.project, imageItem.type)
|
||||
if (collectionImage === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with type (' + imageItem.type + ') not found. As a consequence, the hierarchy will be rendered without the icon. ')
|
||||
continue
|
||||
}
|
||||
}
|
||||
} else {
|
||||
collectionImage = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageItem.name)
|
||||
collectionImage = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageItem.name)
|
||||
if (collectionImage === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with name (' + imageItem.name + ') not found. As a consequence, the hierarchy will be rendered without the icon. ')
|
||||
continue
|
||||
@@ -842,7 +842,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
|
||||
function addProjectImage() {
|
||||
let imageName = UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project.toLowerCase().replaceAll(' ', '-')
|
||||
let imageElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, imageName)
|
||||
let imageElement = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, imageName)
|
||||
imageElement.width = "50"
|
||||
imageElement.height = "50"
|
||||
|
||||
@@ -868,12 +868,12 @@ function newSuperalgosDocsDocumentPage() {
|
||||
|
||||
function getIcon() {
|
||||
if (menuItem.relatedUiObject !== undefined) {
|
||||
return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, menuItem.relatedUiObject)
|
||||
return UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, menuItem.relatedUiObject)
|
||||
} else {
|
||||
if (menuItem.iconPathOn !== undefined) {
|
||||
return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, menuItem.iconPathOn)
|
||||
return UI.projects.foundations.spaces.designSpace.getIconByProjectAndName(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, menuItem.iconPathOn)
|
||||
} else {
|
||||
return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName('Superalgos', 'bitcoin')
|
||||
return UI.projects.foundations.spaces.designSpace.getIconByProjectAndName('Foundations', 'bitcoin')
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -898,9 +898,9 @@ function newSuperalgosDocsDocumentPage() {
|
||||
|
||||
function getIcon() {
|
||||
if (childrenNodesProperty.project !== undefined) {
|
||||
return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(childrenNodesProperty.project, childrenNodesProperty.childType)
|
||||
return UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(childrenNodesProperty.project, childrenNodesProperty.childType)
|
||||
} else {
|
||||
return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, childrenNodesProperty.childType)
|
||||
return UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, childrenNodesProperty.childType)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -948,11 +948,11 @@ function newSuperalgosDocsDocumentPage() {
|
||||
function getIcon() {
|
||||
let splittedListItem = listItem.split('|')
|
||||
if (splittedListItem.length === 1) {
|
||||
return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, listItem)
|
||||
return UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, listItem)
|
||||
} else {
|
||||
let project = splittedListItem[0]
|
||||
let nodeType = splittedListItem[1]
|
||||
return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(project, nodeType)
|
||||
return UI.projects.foundations.spaces.designSpace.getIconByProjectAndType(project, nodeType)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -976,7 +976,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
for (let i = 0; i < imageArray.length; i++) {
|
||||
let dummyImage = imageArray[i]
|
||||
let parentElement = dummyImage.parentNode
|
||||
let collectionImage = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName('Superalgos', 'configuration')
|
||||
let collectionImage = UI.projects.foundations.spaces.designSpace.getIconByProjectAndName('Foundations', 'configuration')
|
||||
if (collectionImage === undefined) {
|
||||
continue
|
||||
}
|
||||
@@ -1073,7 +1073,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
for (let i = 0; i < appSchemaDocument.childrenNodesProperties.length; i++) {
|
||||
let childrenNodesProperty = appSchemaDocument.childrenNodesProperties[i]
|
||||
|
||||
let name = UI.projects.superalgos.utilities.strings.fromCamelCaseToUpperWithSpaces(childrenNodesProperty.name)
|
||||
let name = UI.projects.foundations.utilities.strings.fromCamelCaseToUpperWithSpaces(childrenNodesProperty.name)
|
||||
|
||||
HTML = HTML + '<button id="docs-children-nodes-property-' + i + '" type="button" class="docs-collapsible-element"><img>' + UI.projects.education.utilities.docs.addToolTips(name, UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.type) + '</button>'
|
||||
HTML = HTML + '<div class="docs-collapsible-content">'
|
||||
@@ -1256,12 +1256,12 @@ function newSuperalgosDocsDocumentPage() {
|
||||
they are using and sample values for each one.
|
||||
*/
|
||||
/* First Step: get an array of all the nodes in the workspace of this type */
|
||||
let rootNodes = UI.projects.superalgos.spaces.designSpace.workspace.workspaceNode.rootNodes
|
||||
let rootNodes = UI.projects.foundations.spaces.designSpace.workspace.workspaceNode.rootNodes
|
||||
let allNodesFound = []
|
||||
for (let i = 0; i < rootNodes.length; i++) {
|
||||
let rootNode = rootNodes[i]
|
||||
if (rootNode !== null) {
|
||||
let nodeArray = UI.projects.superalgos.utilities.branches.nodeBranchToArray(rootNode, appSchemaDocument.type)
|
||||
let nodeArray = UI.projects.foundations.utilities.branches.nodeBranchToArray(rootNode, appSchemaDocument.type)
|
||||
allNodesFound = allNodesFound.concat(nodeArray)
|
||||
}
|
||||
}
|
||||
@@ -1288,7 +1288,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
propertyMap.forEach(displayProperty)
|
||||
function displayProperty(valueArray, mapKey, map) {
|
||||
|
||||
let name = UI.projects.superalgos.utilities.strings.fromCamelCaseToUpperWithSpaces(mapKey)
|
||||
let name = UI.projects.foundations.utilities.strings.fromCamelCaseToUpperWithSpaces(mapKey)
|
||||
|
||||
HTML = HTML + '<button id="docs-config-property-' + mapKey.toLowerCase() + '" type="button" class="docs-collapsible-element"><img class="docs-configuration-property-image">' + name + '</button>'
|
||||
HTML = HTML + '<div class="docs-collapsible-content">'
|
||||
@@ -1367,12 +1367,12 @@ function newSuperalgosDocsDocumentPage() {
|
||||
and after that, analysing their code in order to extract examples to show.
|
||||
*/
|
||||
/* First Step: get an array of all the nodes in the workspace of this type */
|
||||
let rootNodes = UI.projects.superalgos.spaces.designSpace.workspace.workspaceNode.rootNodes
|
||||
let rootNodes = UI.projects.foundations.spaces.designSpace.workspace.workspaceNode.rootNodes
|
||||
let allNodesFound = []
|
||||
for (let i = 0; i < rootNodes.length; i++) {
|
||||
let rootNode = rootNodes[i]
|
||||
if (rootNode !== null) {
|
||||
let nodeArray = UI.projects.superalgos.utilities.branches.nodeBranchToArray(rootNode, appSchemaDocument.type)
|
||||
let nodeArray = UI.projects.foundations.utilities.branches.nodeBranchToArray(rootNode, appSchemaDocument.type)
|
||||
allNodesFound = allNodesFound.concat(nodeArray)
|
||||
}
|
||||
}
|
||||
@@ -1463,12 +1463,12 @@ function newSuperalgosDocsDocumentPage() {
|
||||
and after that, analysing their code in order to extract examples to show.
|
||||
*/
|
||||
/* First Step: get an array of all the nodes in the workspace of this type */
|
||||
let rootNodes = UI.projects.superalgos.spaces.designSpace.workspace.workspaceNode.rootNodes
|
||||
let rootNodes = UI.projects.foundations.spaces.designSpace.workspace.workspaceNode.rootNodes
|
||||
let allNodesFound = []
|
||||
for (let i = 0; i < rootNodes.length; i++) {
|
||||
let rootNode = rootNodes[i]
|
||||
if (rootNode !== null) {
|
||||
let nodeArray = UI.projects.superalgos.utilities.branches.nodeBranchToArray(rootNode, appSchemaDocument.type)
|
||||
let nodeArray = UI.projects.foundations.utilities.branches.nodeBranchToArray(rootNode, appSchemaDocument.type)
|
||||
allNodesFound = allNodesFound.concat(nodeArray)
|
||||
}
|
||||
}
|
||||
@@ -1902,7 +1902,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
|
||||
let imageItem = {
|
||||
div: 'hierarchy-image-div-' + hierarchyImagesArray.length,
|
||||
project: 'Superalgos'
|
||||
project: 'Foundations'
|
||||
}
|
||||
|
||||
switch (matrixRow[j]) {
|
||||
@@ -2086,7 +2086,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
/*
|
||||
Adding paragarphs is only possible in the default language.
|
||||
*/
|
||||
if (UI.projects.education.spaces.docsSpace.language === UI.projects.superalgos.globals.docs.DEFAULT_LANGUAGE) {
|
||||
if (UI.projects.education.spaces.docsSpace.language === UI.projects.foundations.globals.docs.DEFAULT_LANGUAGE) {
|
||||
/*
|
||||
We will update the one paragraph we have and we will add the rest.
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function newSuperalgosDocsFooter() {
|
||||
function newFoundationsDocsFooter() {
|
||||
let thisObject = {
|
||||
addFooter: addFooter,
|
||||
initialize: initialize,
|
||||
@@ -39,10 +39,10 @@ function newSuperalgosDocsFooter() {
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + UI.projects.education.spaces.docsSpace.currentBookBeingRendered.project + '\', \'' + UI.projects.education.spaces.docsSpace.currentBookBeingRendered.category + '\', \'' + UI.projects.education.spaces.docsSpace.currentBookBeingRendered.type + '\')"><button>TO BOOK</button></span>'
|
||||
}
|
||||
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + 'Superalgos' + '\', \'' + 'Book' + '\', \'' + 'Reviews' + '\')"><button>REVIEWS</button></span>'
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + 'Superalgos' + '\', \'' + 'Book' + '\', \'' + 'Community Data Mines' + '\')"><button>DATA MINES</button></span>'
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + 'Superalgos' + '\', \'' + 'Book' + '\', \'' + 'First Steps Tutorials' + '\')"><button>TUTORIALS</button></span>'
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + 'Superalgos' + '\', \'' + 'Book' + '\', \'' + 'User Manual' + '\')"><button>USER MANUAL</button></span>'
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + 'Foundations' + '\', \'' + 'Book' + '\', \'' + 'Reviews' + '\')"><button>REVIEWS</button></span>'
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + 'Foundations' + '\', \'' + 'Book' + '\', \'' + 'Community Data Mines' + '\')"><button>DATA MINES</button></span>'
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + 'Foundations' + '\', \'' + 'Book' + '\', \'' + 'First Steps Tutorials' + '\')"><button>TUTORIALS</button></span>'
|
||||
HTML = HTML + '<span style="float: right; display: inline-block;" onClick="UI.projects.education.spaces.docsSpace.navigateTo(\'' + 'Foundations' + '\', \'' + 'Book' + '\', \'' + 'User Manual' + '\')"><button>USER MANUAL</button></span>'
|
||||
|
||||
HTML = HTML + '</div>'
|
||||
|
||||
@@ -161,7 +161,7 @@ function newSuperalgosDocsFooter() {
|
||||
|
||||
HTML = HTML + '<div class="docs-footer-cell">'
|
||||
HTML = HTML + '<h4>Choose the Current Branch</h4>'
|
||||
HTML = HTML + 'You are currently running on the <code class="docs-footer-code">' + UI.projects.superalgos.utilities.gitBranches.getBranchLabel(UI.projects.education.spaces.docsSpace.currentBranch) + '</code> branch. Switch to:'
|
||||
HTML = HTML + 'You are currently running on the <code class="docs-footer-code">' + UI.projects.foundations.utilities.gitBranches.getBranchLabel(UI.projects.education.spaces.docsSpace.currentBranch) + '</code> branch. Switch to:'
|
||||
HTML = HTML + '<ul>'
|
||||
HTML = HTML + '<li><a href="#" onClick="UI.projects.education.spaces.docsSpace.changeCurrentBranch(\'master\')">Master</a></li>'
|
||||
HTML = HTML + '<li><a href="#" onClick="UI.projects.education.spaces.docsSpace.changeCurrentBranch(\'develop\')">Develop</a></li>'
|
||||
@@ -172,7 +172,7 @@ function newSuperalgosDocsFooter() {
|
||||
|
||||
HTML = HTML + '<div class="docs-footer-cell">'
|
||||
HTML = HTML + '<h4>Contributions Branch</h4>'
|
||||
HTML = HTML + 'You are currently contributing to the <code class="docs-footer-code">' + UI.projects.superalgos.utilities.gitBranches.getBranchLabel(UI.projects.education.spaces.docsSpace.contributionsBranch) + '</code> branch. Switch to:'
|
||||
HTML = HTML + 'You are currently contributing to the <code class="docs-footer-code">' + UI.projects.foundations.utilities.gitBranches.getBranchLabel(UI.projects.education.spaces.docsSpace.contributionsBranch) + '</code> branch. Switch to:'
|
||||
HTML = HTML + '<ul>'
|
||||
HTML = HTML + '<li><a href="#" onClick="UI.projects.education.spaces.docsSpace.changeContributionsBranch(\'master\')">Master</code></li>'
|
||||
HTML = HTML + '<li><a href="#" onClick="UI.projects.education.spaces.docsSpace.changeContributionsBranch(\'develop\')">Develop</a></li>'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function newSuperalgosDocsMainSearchPage() {
|
||||
function newFoundationsDocsMainSearchPage() {
|
||||
let thisObject = {
|
||||
addSearchHeader: addSearchHeader,
|
||||
detectEnterOnSearchBox: detectEnterOnSearchBox,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function newSuperalgosDocsSearchEngine() {
|
||||
function newFoundationsDocsSearchEngine() {
|
||||
let thisObject = {
|
||||
docsIndex: undefined,
|
||||
setUpSearchEngine: setUpSearchEngine,
|
||||
@@ -21,10 +21,10 @@ function newSuperalgosDocsSearchEngine() {
|
||||
/*
|
||||
This is a way to avoid indexing the docs, if the user does not want to.
|
||||
*/
|
||||
let docsSpaceNode = UI.projects.superalgos.spaces.designSpace.workspace.getHierarchyHeadByNodeType('Docs Space')
|
||||
let docsSpaceNode = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadByNodeType('Docs Space')
|
||||
if (docsSpaceNode !== undefined) {
|
||||
if (docsSpaceNode.spaceSettings !== undefined) {
|
||||
let indexContent = UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(docsSpaceNode.spaceSettings.payload, 'indexContent')
|
||||
let indexContent = UI.projects.foundations.utilities.nodeConfig.loadPropertyFromNodeConfig(docsSpaceNode.spaceSettings.payload, 'indexContent')
|
||||
if (indexContent === false) {
|
||||
callbackFunction()
|
||||
return
|
||||
@@ -243,7 +243,7 @@ function newSuperalgosDocsSearchEngine() {
|
||||
documentIndex.phraseCount[style] = stylePhraseCount
|
||||
}
|
||||
|
||||
text = UI.projects.superalgos.utilities.strings.replaceSpecialCharactersForSpaces(text)
|
||||
text = UI.projects.foundations.utilities.strings.replaceSpecialCharactersForSpaces(text)
|
||||
|
||||
let splittedText = text.split(' ')
|
||||
|
||||
@@ -257,7 +257,7 @@ function newSuperalgosDocsSearchEngine() {
|
||||
} else {
|
||||
phrase = phrase + ' ' + word
|
||||
}
|
||||
let key = UI.projects.superalgos.utilities.strings.cleanTextOfCommonWordEndings(phrase)
|
||||
let key = UI.projects.foundations.utilities.strings.cleanTextOfCommonWordEndings(phrase)
|
||||
|
||||
let thisPhraseCount = stylePhraseCount.get(key)
|
||||
if (thisPhraseCount === undefined) { thisPhraseCount = 0 }
|
||||
@@ -275,12 +275,12 @@ function newSuperalgosDocsSearchEngine() {
|
||||
/*
|
||||
We will scan the whole workspace and create an array with all of its nodes.
|
||||
*/
|
||||
let rootNodes = UI.projects.superalgos.spaces.designSpace.workspace.workspaceNode.rootNodes
|
||||
let rootNodes = UI.projects.foundations.spaces.designSpace.workspace.workspaceNode.rootNodes
|
||||
let allNodesFound = []
|
||||
for (let i = 0; i < rootNodes.length; i++) {
|
||||
let rootNode = rootNodes[i]
|
||||
if (rootNode !== null) {
|
||||
let nodeArray = UI.projects.superalgos.utilities.branches.nodeBranchToArray(rootNode)
|
||||
let nodeArray = UI.projects.foundations.utilities.branches.nodeBranchToArray(rootNode)
|
||||
allNodesFound = allNodesFound.concat(nodeArray)
|
||||
}
|
||||
}
|
||||
@@ -296,7 +296,7 @@ function newSuperalgosDocsSearchEngine() {
|
||||
let node = allNodesFound[i]
|
||||
|
||||
if (node.project === project) {
|
||||
let nodeNameTypePath = UI.projects.superalgos.utilities.hierarchy.getNodeNameTypePath(node)
|
||||
let nodeNameTypePath = UI.projects.foundations.utilities.hierarchy.getNodeNameTypePath(node)
|
||||
|
||||
let docsSchemaDocument = {
|
||||
nodeId: node.id,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
function newSuperalgosDocsSearchResultsPage() {
|
||||
function newFoundationsDocsSearchResultsPage() {
|
||||
let thisObject = {
|
||||
render: render,
|
||||
initialize: initialize,
|
||||
@@ -28,29 +28,29 @@ function newSuperalgosDocsSearchResultsPage() {
|
||||
let documentPoints = 0
|
||||
|
||||
for (const style in documentIndex.phraseCount) {
|
||||
let key = UI.projects.superalgos.utilities.strings.cleanTextOfCommonWordEndings(UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase())
|
||||
let key = UI.projects.foundations.utilities.strings.cleanTextOfCommonWordEndings(UI.projects.education.spaces.docsSpace.commandInterface.command.toLowerCase())
|
||||
let thisPhraseCount = documentIndex.phraseCount[style].get(key)
|
||||
if (thisPhraseCount === undefined) {
|
||||
thisPhraseCount = 0
|
||||
}
|
||||
|
||||
if (documentIndex.docsSchemaDocument.type !== undefined) {
|
||||
if (key === UI.projects.superalgos.utilities.strings.cleanTextOfCommonWordEndings(documentIndex.docsSchemaDocument.type.toLowerCase())) {
|
||||
if (key === UI.projects.foundations.utilities.strings.cleanTextOfCommonWordEndings(documentIndex.docsSchemaDocument.type.toLowerCase())) {
|
||||
documentPoints = documentPoints + thisPhraseCount * 100
|
||||
}
|
||||
}
|
||||
if (documentIndex.docsSchemaDocument.topic !== undefined) {
|
||||
if (key === UI.projects.superalgos.utilities.strings.cleanTextOfCommonWordEndings(documentIndex.docsSchemaDocument.topic.toLowerCase())) {
|
||||
if (key === UI.projects.foundations.utilities.strings.cleanTextOfCommonWordEndings(documentIndex.docsSchemaDocument.topic.toLowerCase())) {
|
||||
documentPoints = documentPoints + thisPhraseCount * 200
|
||||
}
|
||||
}
|
||||
if (documentIndex.docsSchemaDocument.tutorial !== undefined) {
|
||||
if (key === UI.projects.superalgos.utilities.strings.cleanTextOfCommonWordEndings(documentIndex.docsSchemaDocument.tutorial.toLowerCase())) {
|
||||
if (key === UI.projects.foundations.utilities.strings.cleanTextOfCommonWordEndings(documentIndex.docsSchemaDocument.tutorial.toLowerCase())) {
|
||||
documentPoints = documentPoints + thisPhraseCount * 200
|
||||
}
|
||||
}
|
||||
if (documentIndex.docsSchemaDocument.review !== undefined) {
|
||||
if (key === UI.projects.superalgos.utilities.strings.cleanTextOfCommonWordEndings(documentIndex.docsSchemaDocument.review.toLowerCase())) {
|
||||
if (key === UI.projects.foundations.utilities.strings.cleanTextOfCommonWordEndings(documentIndex.docsSchemaDocument.review.toLowerCase())) {
|
||||
documentPoints = documentPoints + thisPhraseCount * 200
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,10 +170,10 @@ function newEducationTutorialSpace() {
|
||||
config.toggleMapView !== undefined
|
||||
) {
|
||||
if (config.toggleMapView.view === "On") {
|
||||
UI.projects.superalgos.spaces.floatingSpace.inMapMode = true
|
||||
UI.projects.foundations.spaces.floatingSpace.inMapMode = true
|
||||
} else
|
||||
if (config.toggleMapView.view === "Off") {
|
||||
UI.projects.superalgos.spaces.floatingSpace.inMapMode = false
|
||||
UI.projects.foundations.spaces.floatingSpace.inMapMode = false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -194,11 +194,11 @@ function newEducationTutorialSpace() {
|
||||
}
|
||||
if (totalZoomSteps > 0) {
|
||||
if (currentZoomStep < totalZoomSteps) {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.onMouseWheel(event)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.onMouseWheel(event)
|
||||
}
|
||||
} else {
|
||||
if (currentZoomStep > totalZoomSteps) {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.onMouseWheel(event)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.onMouseWheel(event)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -208,7 +208,7 @@ function newEducationTutorialSpace() {
|
||||
if (currentNode === undefined) { return }
|
||||
let config = JSON.parse(currentNode.config)
|
||||
if (config.viewportZoomAtCenter !== undefined) {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.zoomAtCenter(config.viewportZoomAtCenter)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.zoomAtCenter(config.viewportZoomAtCenter)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,7 +331,7 @@ function newEducationTutorialSpace() {
|
||||
This forces the tutorial to close the workspaces panel and to keep it closed.
|
||||
*/
|
||||
if (workspacesCounter === 5) {
|
||||
UI.projects.superalgos.spaces.sideSpace.sidePanelTab.close()
|
||||
UI.projects.foundations.spaces.sideSpace.sidePanelTab.close()
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -340,7 +340,7 @@ function newEducationTutorialSpace() {
|
||||
This forces the tutorial to open the workspaces panel and to keep it closed.
|
||||
*/
|
||||
if (workspacesCounter === 5) {
|
||||
UI.projects.superalgos.spaces.sideSpace.sidePanelTab.open()
|
||||
UI.projects.foundations.spaces.sideSpace.sidePanelTab.open()
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -363,7 +363,7 @@ function newEducationTutorialSpace() {
|
||||
/*
|
||||
This forces the tutorial to close the charting space and to keep it closed.
|
||||
*/
|
||||
UI.projects.superalgos.spaces.cockpitSpace.toTop()
|
||||
UI.projects.foundations.spaces.cockpitSpace.toTop()
|
||||
return
|
||||
}
|
||||
case "toMiddle": {
|
||||
@@ -371,14 +371,14 @@ function newEducationTutorialSpace() {
|
||||
This forces the tutorial to share the screen half with the designer and half
|
||||
with the charting space and force it in that way.
|
||||
*/
|
||||
UI.projects.superalgos.spaces.cockpitSpace.toMiddle()
|
||||
UI.projects.foundations.spaces.cockpitSpace.toMiddle()
|
||||
return
|
||||
}
|
||||
case "toBottom": {
|
||||
/*
|
||||
This forces the tutorial to fully open the charting space and to keep it open.
|
||||
*/
|
||||
UI.projects.superalgos.spaces.cockpitSpace.toBottom()
|
||||
UI.projects.foundations.spaces.cockpitSpace.toBottom()
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -407,7 +407,7 @@ function newEducationTutorialSpace() {
|
||||
currentNode.payload.referenceParent.payload.floatingObject.unCollapseParent()
|
||||
}
|
||||
if (positionAtNodeCounter < 100) {
|
||||
UI.projects.superalgos.spaces.floatingSpace.positionAtNode(currentNode.payload.referenceParent)
|
||||
UI.projects.foundations.spaces.floatingSpace.positionAtNode(currentNode.payload.referenceParent)
|
||||
}
|
||||
}
|
||||
if (
|
||||
@@ -559,7 +559,7 @@ function newEducationTutorialSpace() {
|
||||
config.keyPressedTimeMachineReferenceParent !== undefined
|
||||
) {
|
||||
if (currentNode.payload.referenceParent.type === 'Time Machine') {
|
||||
let timeMachine = UI.projects.superalgos.spaces.chartingSpace.findTimeMachine(currentNode.payload.referenceParent)
|
||||
let timeMachine = UI.projects.foundations.spaces.chartingSpace.findTimeMachine(currentNode.payload.referenceParent)
|
||||
if (timeMachine !== undefined) {
|
||||
timeMachineKeyPressedCounter++
|
||||
if (timeMachineKeyPressedCounter === 10) {
|
||||
@@ -579,9 +579,9 @@ function newEducationTutorialSpace() {
|
||||
config.viewportCenterReferenceParent === true
|
||||
) {
|
||||
if (currentNode.payload.referenceParent.type === 'Time Machine') {
|
||||
let timeMachine = UI.projects.superalgos.spaces.chartingSpace.findTimeMachine(currentNode.payload.referenceParent)
|
||||
let timeMachine = UI.projects.foundations.spaces.chartingSpace.findTimeMachine(currentNode.payload.referenceParent)
|
||||
if (timeMachine !== undefined && viewportCentered === false) {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.displaceToContainer(timeMachine.container)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.displaceToContainer(timeMachine.container)
|
||||
viewportCentered = true
|
||||
}
|
||||
}
|
||||
@@ -590,7 +590,7 @@ function newEducationTutorialSpace() {
|
||||
config.repositionAtTimeMachineReferenceParent === true
|
||||
) {
|
||||
if (currentNode.payload.referenceParent.type === 'Time Machine') {
|
||||
let timeMachine = UI.projects.superalgos.spaces.chartingSpace.findTimeMachine(currentNode.payload.referenceParent)
|
||||
let timeMachine = UI.projects.foundations.spaces.chartingSpace.findTimeMachine(currentNode.payload.referenceParent)
|
||||
if (timeMachine !== undefined) {
|
||||
repositionAtTimeMachineCounter++
|
||||
switch (true) {
|
||||
@@ -599,12 +599,12 @@ function newEducationTutorialSpace() {
|
||||
delta: -1
|
||||
}
|
||||
for (let i = 0; i < 100; i++) {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.onMouseWheel(event)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.onMouseWheel(event)
|
||||
}
|
||||
break
|
||||
}
|
||||
case (repositionAtTimeMachineCounter === 30): {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.displaceToContainer(timeMachine.container)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.displaceToContainer(timeMachine.container)
|
||||
break
|
||||
}
|
||||
case (repositionAtTimeMachineCounter === 60): {
|
||||
@@ -619,11 +619,11 @@ function newEducationTutorialSpace() {
|
||||
break
|
||||
}
|
||||
case (repositionAtTimeMachineCounter === 90): {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.displaceToContainer(timeMachine.container)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.displaceToContainer(timeMachine.container)
|
||||
break
|
||||
}
|
||||
case (repositionAtTimeMachineCounter === 120): {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.zoomAtCenter(8)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.zoomAtCenter(8)
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -634,7 +634,7 @@ function newEducationTutorialSpace() {
|
||||
config.repositionAtTimeMachineNoZoomReferenceParent === true
|
||||
) {
|
||||
if (currentNode.payload.referenceParent.type === 'Time Machine') {
|
||||
let timeMachine = UI.projects.superalgos.spaces.chartingSpace.findTimeMachine(currentNode.payload.referenceParent)
|
||||
let timeMachine = UI.projects.foundations.spaces.chartingSpace.findTimeMachine(currentNode.payload.referenceParent)
|
||||
if (timeMachine !== undefined) {
|
||||
repositionAtTimeMachineCounter++
|
||||
switch (true) {
|
||||
@@ -643,12 +643,12 @@ function newEducationTutorialSpace() {
|
||||
let event = {
|
||||
delta: -1
|
||||
}
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.onMouseWheel(event)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.onMouseWheel(event)
|
||||
}
|
||||
break
|
||||
}
|
||||
case (repositionAtTimeMachineCounter === 30): {
|
||||
UI.projects.superalgos.spaces.chartingSpace.viewport.displaceToContainer(timeMachine.container)
|
||||
UI.projects.foundations.spaces.chartingSpace.viewport.displaceToContainer(timeMachine.container)
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -770,7 +770,7 @@ function newEducationTutorialSpace() {
|
||||
let tutorial = {
|
||||
status: 'Skipped'
|
||||
}
|
||||
UI.projects.superalgos.utilities.tutorial.saveTutorial(currentNode.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.saveTutorial(currentNode.payload, tutorial)
|
||||
advance(true)
|
||||
}
|
||||
|
||||
@@ -787,10 +787,10 @@ function newEducationTutorialSpace() {
|
||||
Reseet the Status of Current and Previous Node
|
||||
so that RESUME goes to the right node.
|
||||
*/
|
||||
UI.projects.superalgos.utilities.tutorial.saveTutorial(currentNode.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.saveTutorial(currentNode.payload, tutorial)
|
||||
previousNode = navigationStack[navigationStack.length - 3]
|
||||
if (previousNode !== undefined) {
|
||||
UI.projects.superalgos.utilities.tutorial.saveTutorial(previousNode.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.saveTutorial(previousNode.payload, tutorial)
|
||||
}
|
||||
previousNode = navigationStack[navigationStack.length - 2]
|
||||
switch (previousNode.type) {
|
||||
@@ -827,7 +827,7 @@ function newEducationTutorialSpace() {
|
||||
let tutorial = {
|
||||
status: 'Done'
|
||||
}
|
||||
UI.projects.superalgos.utilities.tutorial.saveTutorial(currentNode.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.saveTutorial(currentNode.payload, tutorial)
|
||||
advance()
|
||||
}
|
||||
|
||||
@@ -920,7 +920,7 @@ function newEducationTutorialSpace() {
|
||||
}
|
||||
|
||||
function playTutorial(node) {
|
||||
if (UI.projects.superalgos.spaces.designSpace.workspace.isInitialized !== true) { return }
|
||||
if (UI.projects.foundations.spaces.designSpace.workspace.isInitialized !== true) { return }
|
||||
|
||||
PAGE_NUMBER = 0
|
||||
TUTORIAL_NAME = node.name
|
||||
@@ -935,7 +935,7 @@ function newEducationTutorialSpace() {
|
||||
}
|
||||
|
||||
function resumeTutorial(node) {
|
||||
if (UI.projects.superalgos.spaces.designSpace.workspace.isInitialized !== true) { return }
|
||||
if (UI.projects.foundations.spaces.designSpace.workspace.isInitialized !== true) { return }
|
||||
|
||||
navigationStack = []
|
||||
node.payload.uiObject.isPlaying = true
|
||||
@@ -997,7 +997,7 @@ function newEducationTutorialSpace() {
|
||||
let tutorial = {
|
||||
status: 'Reset'
|
||||
}
|
||||
UI.projects.superalgos.utilities.tutorial.saveTutorial(tutorialStep.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.saveTutorial(tutorialStep.payload, tutorial)
|
||||
}
|
||||
|
||||
for (let i = 0; i < node.tutorialTopics.length; i++) {
|
||||
@@ -1005,7 +1005,7 @@ function newEducationTutorialSpace() {
|
||||
let tutorial = {
|
||||
status: 'Reset'
|
||||
}
|
||||
UI.projects.superalgos.utilities.tutorial.saveTutorial(tutorialTopic.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.saveTutorial(tutorialTopic.payload, tutorial)
|
||||
resetNextNode(tutorialTopic)
|
||||
}
|
||||
}
|
||||
@@ -1075,7 +1075,7 @@ function newEducationTutorialSpace() {
|
||||
let tutorial = {
|
||||
status: undefined
|
||||
}
|
||||
UI.projects.superalgos.utilities.tutorial.loadTutorial(tutorialStep.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.loadTutorial(tutorialStep.payload, tutorial)
|
||||
currentNode = tutorialStep
|
||||
currentStatus = 'Playing Step'
|
||||
navigationStack.push(currentNode)
|
||||
@@ -1111,7 +1111,7 @@ function newEducationTutorialSpace() {
|
||||
let tutorial = {
|
||||
status: undefined
|
||||
}
|
||||
UI.projects.superalgos.utilities.tutorial.loadTutorial(tutorialTopic.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.loadTutorial(tutorialTopic.payload, tutorial)
|
||||
currentNode = tutorialTopic
|
||||
currentStatus = 'Playing Topic'
|
||||
navigationStack.push(currentNode)
|
||||
@@ -1150,7 +1150,7 @@ function newEducationTutorialSpace() {
|
||||
let tutorial = {
|
||||
status: undefined
|
||||
}
|
||||
UI.projects.superalgos.utilities.tutorial.loadTutorial(tutorialTopic.payload, tutorial)
|
||||
UI.projects.foundations.utilities.tutorial.loadTutorial(tutorialTopic.payload, tutorial)
|
||||
currentNode = tutorialTopic
|
||||
currentStatus = 'Playing Topic'
|
||||
navigationStack.push(currentNode)
|
||||
@@ -1187,7 +1187,7 @@ function newEducationTutorialSpace() {
|
||||
text: "If you are a new user then please refresh the UI with F5."
|
||||
},
|
||||
icon: {
|
||||
project: "Superalgos",
|
||||
project: "Foundations",
|
||||
name: "warning"
|
||||
},
|
||||
paragraphs: [
|
||||
@@ -1198,7 +1198,7 @@ function newEducationTutorialSpace() {
|
||||
{
|
||||
style: "Json",
|
||||
text: ' \"docs\": { \n' +
|
||||
'\"project\": \"Superalgos\",\n' +
|
||||
'\"project\": \"Foundation\",\n' +
|
||||
'\"category\": \"Tutorial\",\n' +
|
||||
'\"type\": \"Tutorial Step - Bla Bla\"\n' +
|
||||
'}'
|
||||
@@ -1243,7 +1243,7 @@ function newEducationTutorialSpace() {
|
||||
if (nodeConfig.icon === undefined) {
|
||||
nodeConfig.icon = {
|
||||
name: nodeConfig.image, // This property comes from the migration
|
||||
project: 'Superalgos'
|
||||
project: 'Foundations'
|
||||
}
|
||||
|
||||
nodeConfig.image = undefined // Removing this legacy property.
|
||||
|
||||
@@ -445,7 +445,7 @@ function newEducationUtilitiesDocs() {
|
||||
let result = ''
|
||||
for (let i = 0; i < splittedText.length; i++) {
|
||||
let word = splittedText[i]
|
||||
if (UI.projects.superalgos.utilities.strings.isCamelCase(word) === true) {
|
||||
if (UI.projects.foundations.utilities.strings.isCamelCase(word) === true) {
|
||||
word = '<code class="docs-code">' + word + '</code>'
|
||||
}
|
||||
if (i === 0) {
|
||||
|
||||
Reference in new issue
Block a user