diff --git a/Client/WebServer/index.html b/Client/WebServer/index.html index 63bad19e4..c8b9ad9fe 100644 --- a/Client/WebServer/index.html +++ b/Client/WebServer/index.html @@ -77,21 +77,21 @@
' + arrayItem.pageNumber + '. ' + '' + paragraph.text + '
' + HTML = HTML + '' + arrayItem.pageNumber + '. ' + '' + paragraph.text + '
' } } @@ -379,11 +379,11 @@ function newSuperalgosDocsDocumentPage() { HTML = HTML + '' return @@ -407,7 +407,7 @@ function newSuperalgosDocsDocumentPage() { text: "" + arrayItem.type + "" } autoGeneratedParagraphIndex++ - HTML = HTML + '' + arrayItem.pageNumber + '. ' + '' + paragraph.text + '
' + HTML = HTML + '' + arrayItem.pageNumber + '. ' + '' + paragraph.text + '
' } } @@ -424,11 +424,11 @@ function newSuperalgosDocsDocumentPage() { HTML = HTML + '' return @@ -452,7 +452,7 @@ function newSuperalgosDocsDocumentPage() { text: "" + arrayItem.type + "" } autoGeneratedParagraphIndex++ - HTML = HTML + '' + arrayItem.pageNumber + '. ' + '' + paragraph.text + '
' + HTML = HTML + '' + arrayItem.pageNumber + '. ' + '' + paragraph.text + '
' } } @@ -516,7 +516,7 @@ function newSuperalgosDocsDocumentPage() { } } } - if (UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.category === 'Node') { + if (UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.category === 'Node') { autoGeneratedHtml() } HTML = HTML + '' // Content Ends @@ -615,8 +615,8 @@ function newSuperalgosDocsDocumentPage() { } function addPlaceholdedParagraph(propertyName) { - if (UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.placeholder !== undefined) { - let placeholder = UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.placeholder[propertyName] + if (UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.placeholder !== undefined) { + let placeholder = UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.placeholder[propertyName] if (placeholder !== undefined) { let paragraph = { @@ -657,8 +657,8 @@ function newSuperalgosDocsDocumentPage() { switch (category) { case 'Topic': { - orderedTopicPageIndexArray = UI.projects.superalgos.utilities.docs.buildOrderedPageIndex( - UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, + orderedTopicPageIndexArray = UI.projects.education.utilities.docs.buildOrderedPageIndex( + UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, 'Topic', chapterName ) @@ -669,8 +669,8 @@ function newSuperalgosDocsDocumentPage() { break } case 'Tutorial': { - orderedTutorialPageIndexArray = UI.projects.superalgos.utilities.docs.buildOrderedPageIndex( - UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, + orderedTutorialPageIndexArray = UI.projects.education.utilities.docs.buildOrderedPageIndex( + UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, 'Tutorial', chapterName ) @@ -681,8 +681,8 @@ function newSuperalgosDocsDocumentPage() { break } case 'Review': { - orderedReviewPageIndexArray = UI.projects.superalgos.utilities.docs.buildOrderedPageIndex( - UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, + orderedReviewPageIndexArray = UI.projects.education.utilities.docs.buildOrderedPageIndex( + UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, 'Review', chapterName ) @@ -745,7 +745,7 @@ function newSuperalgosDocsDocumentPage() { addDefinitionImage() addHierarchyImages() - if (UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.category === 'Node') { + if (UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.category === 'Node') { addMenuItemsImages() addChildrenNodesPropertiesImages() addAttachingAndReferencingRulesImages() @@ -841,8 +841,8 @@ function newSuperalgosDocsDocumentPage() { } function addProjectImage() { - let imageName = UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project.toLowerCase().replaceAll(' ', '-') - let imageElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, imageName) + 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) imageElement.width = "50" imageElement.height = "50" @@ -868,10 +868,10 @@ function newSuperalgosDocsDocumentPage() { function getIcon() { if (menuItem.relatedUiObject !== undefined) { - return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, menuItem.relatedUiObject) + return UI.projects.superalgos.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.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, menuItem.iconPathOn) + return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, menuItem.iconPathOn) } else { return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName('Superalgos', 'bitcoin') } @@ -900,7 +900,7 @@ function newSuperalgosDocsDocumentPage() { if (childrenNodesProperty.project !== undefined) { return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(childrenNodesProperty.project, childrenNodesProperty.childType) } else { - return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, childrenNodesProperty.childType) + return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, childrenNodesProperty.childType) } } } @@ -948,7 +948,7 @@ function newSuperalgosDocsDocumentPage() { function getIcon() { let splittedListItem = listItem.split('|') if (splittedListItem.length === 1) { - return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, listItem) + return UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.project, listItem) } else { let project = splittedListItem[0] let nodeType = splittedListItem[1] @@ -1075,7 +1075,7 @@ function newSuperalgosDocsDocumentPage() { let name = UI.projects.superalgos.utilities.strings.fromCamelCaseToUpperWithSpaces(childrenNodesProperty.name) - HTML = HTML + '' + HTML = HTML + '' HTML = HTML + '| ' + imageContainer + ' |
| ' + UI.projects.superalgos.utilities.docs.addToolTips(schemaDocument.type, UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.type) + ' |
| ' + imageContainer + ' |
| ' + UI.projects.education.utilities.docs.addToolTips(schemaDocument.type, UI.projects.education.spaces.docsSpace.currentDocumentBeingRendered.type) + ' |
' + UI.projects.superalgos.utilities.docs.getTextBasedOnLanguage(result.documentIndex.docsSchemaDocument.definition) + '
' + HTML = HTML + '' + UI.projects.education.utilities.docs.getTextBasedOnLanguage(result.documentIndex.docsSchemaDocument.definition) + '
' } else { HTML = HTML + '' + 'No definition available.' + '
' } @@ -320,10 +320,10 @@ function newSuperalgosDocsSearchResultsPage() { } let docsContentDiv = document.getElementById('docs-content-div') - docsContentDiv.innerHTML = HTML + UI.projects.superalgos.spaces.docsSpace.footer.addFooter() + docsContentDiv.innerHTML = HTML + UI.projects.education.spaces.docsSpace.footer.addFooter() - UI.projects.superalgos.spaces.docsSpace.mainSearchPage.detectEnterOnSearchBox() - UI.projects.superalgos.spaces.docsSpace.mainSearchPage.setFocusOnSearchBox() + UI.projects.education.spaces.docsSpace.mainSearchPage.detectEnterOnSearchBox() + UI.projects.education.spaces.docsSpace.mainSearchPage.setFocusOnSearchBox() } } } \ No newline at end of file diff --git a/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js b/Projects/Education/UI/Spaces/Tutorial-Space/TutorialSpace.js similarity index 90% rename from Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js rename to Projects/Education/UI/Spaces/Tutorial-Space/TutorialSpace.js index f6c28144e..951fa7d0a 100644 --- a/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js +++ b/Projects/Education/UI/Spaces/Tutorial-Space/TutorialSpace.js @@ -1,4 +1,4 @@ -function newSuperalgosTutorialSpace() { +function newEducationTutorialSpace() { const MODULE_NAME = 'Tutorial Space' let thisObject = { stop: stop, @@ -291,13 +291,13 @@ function newSuperalgosTutorialSpace() { /* This forces the tutorial to open the documentation panel. */ - UI.projects.superalgos.spaces.docsSpace.sidePanelTab.open() + UI.projects.education.spaces.docsSpace.sidePanelTab.open() } if (config.controlDocs.panel === "Close") { /* This forces the tutorial to close the documentation panel. */ - UI.projects.superalgos.spaces.docsSpace.sidePanelTab.close() + UI.projects.education.spaces.docsSpace.sidePanelTab.close() } if ( config.controlDocs.page !== undefined && @@ -311,7 +311,7 @@ function newSuperalgosTutorialSpace() { /* This produces the Docs to laod the specified page. */ - UI.projects.superalgos.spaces.docsSpace.openSpaceAreaAndNavigateTo(config.controlDocs.page.project, config.controlDocs.page.category, config.controlDocs.page.type, config.controlDocs.page.anchor) + UI.projects.education.spaces.docsSpace.openSpaceAreaAndNavigateTo(config.controlDocs.page.project, config.controlDocs.page.category, config.controlDocs.page.type, config.controlDocs.page.anchor) } } } @@ -700,7 +700,7 @@ function newSuperalgosTutorialSpace() { return } let position = nodeConfig.position - if (UI.projects.superalgos.spaces.docsSpace.isVisible === true) { + if (UI.projects.education.spaces.docsSpace.isVisible === true) { position = 'Left' } @@ -1212,7 +1212,7 @@ function newSuperalgosTutorialSpace() { } newConfig = currentNode.config - newDocument = JSON.stringify(schemaDocument) + ' - ' + UI.projects.superalgos.spaces.docsSpace.language + newDocument = JSON.stringify(schemaDocument) + ' - ' + UI.projects.education.spaces.docsSpace.language if (newConfig === currentConfig && newDocument === currentDocument) { return } currentConfig = newConfig @@ -1226,13 +1226,13 @@ function newSuperalgosTutorialSpace() { if (nodeConfig.controlDocs !== undefined) { if (nodeConfig.controlDocs.closeTutorialEditor !== true) { - UI.projects.superalgos.spaces.docsSpace.navigateTo(nodeConfig.docs.project, 'Tutorial', nodeConfig.docs.type) + UI.projects.education.spaces.docsSpace.navigateTo(nodeConfig.docs.project, 'Tutorial', nodeConfig.docs.type) } if (nodeConfig.controlDocs.searchPage === true) { - UI.projects.superalgos.spaces.docsSpace.searchPage() + UI.projects.education.spaces.docsSpace.searchPage() } } else { - UI.projects.superalgos.spaces.docsSpace.navigateTo(nodeConfig.docs.project, 'Tutorial', nodeConfig.docs.type) + UI.projects.education.spaces.docsSpace.navigateTo(nodeConfig.docs.project, 'Tutorial', nodeConfig.docs.type) } function syncConfigIconWithDocumentIcon() { @@ -1318,11 +1318,11 @@ function newSuperalgosTutorialSpace() { if (fullscreenMode === false) { if (schemaDocument.definition.icon === undefined || schemaDocument.definition.icon.name === '') { /* When there is no image, we will render a Summary instead of a Table */ - let text = UI.projects.superalgos.utilities.docs.getTextBasedOnLanguage(schemaDocument.definition) - text = UI.projects.superalgos.utilities.docs.addKeyboard(text) - text = UI.projects.superalgos.utilities.docs.addCodeToCamelCase(text) - text = UI.projects.superalgos.utilities.docs.addCodeToWhiteList(text) - text = UI.projects.superalgos.utilities.docs.addToolTips(text) + let text = UI.projects.education.utilities.docs.getTextBasedOnLanguage(schemaDocument.definition) + text = UI.projects.education.utilities.docs.addKeyboard(text) + text = UI.projects.education.utilities.docs.addCodeToCamelCase(text) + text = UI.projects.education.utilities.docs.addCodeToWhiteList(text) + text = UI.projects.education.utilities.docs.addToolTips(text) html = html + '| ' - let text = UI.projects.superalgos.utilities.docs.getTextBasedOnLanguage(schemaDocument.definition) - text = UI.projects.superalgos.utilities.docs.addKeyboard(text) - text = UI.projects.superalgos.utilities.docs.addCodeToCamelCase(text) - text = UI.projects.superalgos.utilities.docs.addCodeToWhiteList(text) - text = UI.projects.superalgos.utilities.docs.addToolTips(text) + let text = UI.projects.education.utilities.docs.getTextBasedOnLanguage(schemaDocument.definition) + text = UI.projects.education.utilities.docs.addKeyboard(text) + text = UI.projects.education.utilities.docs.addCodeToCamelCase(text) + text = UI.projects.education.utilities.docs.addCodeToWhiteList(text) + text = UI.projects.education.utilities.docs.addToolTips(text) html = html + '' + text + '' html = html + ' | ' @@ -1354,102 +1354,102 @@ function newSuperalgosTutorialSpace() { let paragraph = schemaDocument.paragraphs[i] switch (paragraph.style) { case 'Summary': { - let text = UI.projects.superalgos.utilities.docs.getTextBasedOnLanguage(paragraph) - text = UI.projects.superalgos.utilities.docs.addKeyboard(text) - text = UI.projects.superalgos.utilities.docs.addCodeToCamelCase(text) - text = UI.projects.superalgos.utilities.docs.addCodeToWhiteList(text) - text = UI.projects.superalgos.utilities.docs.addToolTips(text) + let text = UI.projects.education.utilities.docs.getTextBasedOnLanguage(paragraph) + text = UI.projects.education.utilities.docs.addKeyboard(text) + text = UI.projects.education.utilities.docs.addCodeToCamelCase(text) + text = UI.projects.education.utilities.docs.addCodeToWhiteList(text) + text = UI.projects.education.utilities.docs.addToolTips(text) html = html + '