Hiriarchy bug fixed
This commit is contained in:
1 parent
f189b3ef6a
commit
865c46556a
7 files changed
+93
-16
No files matched your search
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "Vaina",
|
||||
"definition": {
|
||||
"text": "Write here the summary / definition of this Concept."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode."
|
||||
},
|
||||
{
|
||||
"style": "Hierarchy",
|
||||
"text": "Superalgos->Trading System->5",
|
||||
"updated": 1610353697255
|
||||
}
|
||||
]
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"topic": "Docs Commands Messages",
|
||||
"pageNumber": "2",
|
||||
"type": "Docs Message Reindexing Started",
|
||||
"definition": {
|
||||
"text": "The docs.reindex command you executed succesfully started the rebuing of the Docs Search Engine Index.",
|
||||
"updated": 1609783396612
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "This is a very resourse intensive process. While this happens you will not be able to move arround since all the CPU resources are being used to recreate the index as fast as possible. The size of your workspace impacts the time to reindex the content since every node in it is scanned and all its config and code are indexed. So hold on for a few minutes until the process finishes. Once it does, we will take you to a page that informs you of the result of the process.",
|
||||
"updated": 1609783508213
|
||||
}
|
||||
]
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"topic": "Docs Commands Messages",
|
||||
"pageNumber": "2",
|
||||
"pageNumber": "3",
|
||||
"type": "Docs Message Reindexing Succeed",
|
||||
"definition": {
|
||||
"text": "The docs.reindex command you executed succesfully rebuilt the Docs Search Engine Index.",
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"topic": "Docs Commands Messages",
|
||||
"pageNumber": "3",
|
||||
"pageNumber": "4",
|
||||
"type": "Docs Message Deleting Succeed",
|
||||
"definition": {
|
||||
"text": "The docs.delete command you executed successfuly delete the page you requested.",
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"topic": "Docs Commands Messages",
|
||||
"pageNumber": "2",
|
||||
"type": "Docs Message Reindexing Started",
|
||||
"definition": {
|
||||
"text": "The docs.reindex command you executed succesfully started the rebuing of the Docs Search Engine Index.",
|
||||
"updated": 1609783396612
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "This is a very resourse intensive process. While this happens you will not be able to move arround since all the CPU resources are being used to recreate the index as fast as possible. The size of your workspace impacts the time to reindex the content since every node in it is scanned and all it's config and code are indexed. So hold on for a few minutes until the process finishes. Once it does, we will take you to a page that informs you of the result of the process.",
|
||||
"updated": 1610353170958
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -324,10 +324,15 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
}
|
||||
if (UI.projects.superalgos.spaces.docsSpace.commandInterface.command.indexOf('Docs.Reindex') !== 0 && UI.projects.superalgos.spaces.docsSpace.commandInterface.command.indexOf('docs.reindex') !== 0) { return 'Not Reindex Command' }
|
||||
|
||||
UI.projects.superalgos.spaces.docsSpace.setUpWorkspaceSchemas()
|
||||
UI.projects.superalgos.spaces.docsSpace.searchEngine.setUpSearchEngine()
|
||||
UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Reindexing Started')
|
||||
setTimeout(startReindexingProcess, 100)
|
||||
|
||||
UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Reindexing Succeed')
|
||||
function startReindexingProcess(){
|
||||
UI.projects.superalgos.spaces.docsSpace.setUpWorkspaceSchemas()
|
||||
UI.projects.superalgos.spaces.docsSpace.searchEngine.setUpSearchEngine()
|
||||
|
||||
UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Reindexing Succeed')
|
||||
}
|
||||
}
|
||||
|
||||
function checkUSaveCommand() {
|
||||
|
||||
@@ -141,7 +141,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
let key = 'auto-generated-flag-paragraph'
|
||||
let paragraph = {
|
||||
style: "Warning",
|
||||
text: "This page is flagged to be deleted. Next time you run Docs Save Command, the content will be deleted from the Client's folder. If you refresh the page or close the browser before running the Docs Save Command, the flag is lost and the pade is not deleted. Changes will be applied to the Docs Search Engine Index only after you run the Docs Reindex Command."
|
||||
text: "This page is flagged to be deleted. Next time you run Docs Save Command, the content will be deleted from the Client's disk. If you refresh the page or close the browser before running the Docs Save Command, the flag is lost and the pade is not deleted. Changes will be applied to the Docs Search Engine Index only after you run the Docs Reindex Command."
|
||||
}
|
||||
renderParagraph(paragraph, key)
|
||||
} else {
|
||||
@@ -149,7 +149,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
let key = 'auto-generated-flag-paragraph'
|
||||
let paragraph = {
|
||||
style: "Important",
|
||||
text: "This page is flagged to be created / updated. Next time you run the Docs Save Command, the content will be saved on the Client's folder. If you refresh the page or close the browser before running the Docs Save Command, changes will be lost. Changes will be applied to the Docs Search Engine Index only after you run the Docs Reindex Command."
|
||||
text: "This page is flagged to be created / updated. Next time you run the Docs Save Command, the content will be saved on the Client's disk. If you refresh the page or close the browser before running the Docs Save Command, changes will be lost. Changes will be applied to the Docs Search Engine Index only after you run the Docs Reindex Command."
|
||||
}
|
||||
renderParagraph(paragraph, key)
|
||||
}
|
||||
@@ -169,7 +169,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
|
||||
buildOrderedTopicPageIndex(thisObject.docsSchemaDocument.topic)
|
||||
|
||||
|
||||
|
||||
|
||||
/* Topic Title
|
||||
|
||||
@@ -198,7 +198,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
titleLabel = thisObject.docsSchemaDocument.tutorial + ' Tutorial Navigation'
|
||||
HTML = HTML + '<div id="docs-main-title-div" class="docs-title-table"><div class="docs-table-cell"><h2 class="docs-h2" id="' + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.type.toLowerCase().replace(' ', '-') + '" > ' + titleLabel + '</h2></div><div id="projectImageDiv" class="docs-image-container"/></div></div>'
|
||||
*/
|
||||
|
||||
|
||||
generateTutorialPreviousAndNextPageNavigation()
|
||||
|
||||
HTML = HTML = HTML + '<div class="docs-topic-index">' // Container for Tutorial Navigation including buttons, title and index
|
||||
@@ -314,7 +314,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
|
||||
HTML = HTML + '<div class="docs-topic-navigation"><div>'
|
||||
if (previousPage !== undefined) {
|
||||
HTML = HTML + '<span" onClick="UI.projects.superalgos.spaces.docsSpace.navigateTo(\'' + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project + '\', \'' + 'Topic' + '\', \'' + previousPage.type.replace(/'/g, 'AMPERSAND') + '\')"><button> ← Previous </button></span><br/>'+ previousPage.type
|
||||
HTML = HTML + '<span" onClick="UI.projects.superalgos.spaces.docsSpace.navigateTo(\'' + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project + '\', \'' + 'Topic' + '\', \'' + previousPage.type.replace(/'/g, 'AMPERSAND') + '\')"><button> ← Previous </button></span><br/>' + previousPage.type
|
||||
}
|
||||
HTML = HTML + '</div><div>'
|
||||
if (nextPage !== undefined) {
|
||||
@@ -335,7 +335,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
let key = 'auto-generated-index-paragraph-' + autoGeneratedParagraphIndex
|
||||
let paragraph
|
||||
|
||||
|
||||
|
||||
|
||||
for (let i = 0; i < orderedTopicPageIndexArray.length; i++) {
|
||||
let arrayItem = orderedTopicPageIndexArray[i]
|
||||
@@ -391,7 +391,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
|
||||
HTML = HTML + '<div class="docs-topic-navigation"><div>'
|
||||
if (previousPage !== undefined) {
|
||||
HTML = HTML + '<span" onClick="UI.projects.superalgos.spaces.docsSpace.navigateTo(\'' + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project + '\', \'' + 'Tutorial' + '\', \'' + previousPage.type.replace(/'/g, 'AMPERSAND') + '\')"><button> ← Previous </button></span><br/>'+ previousPage.type
|
||||
HTML = HTML + '<span" onClick="UI.projects.superalgos.spaces.docsSpace.navigateTo(\'' + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project + '\', \'' + 'Tutorial' + '\', \'' + previousPage.type.replace(/'/g, 'AMPERSAND') + '\')"><button> ← Previous </button></span><br/>' + previousPage.type
|
||||
}
|
||||
HTML = HTML + '</div><div>'
|
||||
if (nextPage !== undefined) {
|
||||
@@ -580,7 +580,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
|
||||
return 'Chapter paragraph style Syntax Error. The Project <i>' + project + '</i> could not be found. Check the Docs Chapter Style Syntax. This error message will dissapear as soon as you fix the problem.'
|
||||
}
|
||||
|
||||
|
||||
if (category !== 'Topic' && category !== 'Tutorial') {
|
||||
return 'Category must be either Topic or Tutorial. Found: <i>' + category + '</i>'
|
||||
}
|
||||
@@ -649,7 +649,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
function addImages() {
|
||||
addProjectImage()
|
||||
addDefinitionImage()
|
||||
addhHerarchyImages()
|
||||
addHierarchyImages()
|
||||
|
||||
if (UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.category === 'Node') {
|
||||
addMenuItemsImages()
|
||||
@@ -672,13 +672,25 @@ function newSuperalgosDocsDocumentPage() {
|
||||
*/
|
||||
let imageName = appSchemaDocument.type.toLowerCase().replaceAll(' ', '-')
|
||||
imageElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageName)
|
||||
if (imageElement === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with name (' + imageName + ') not found. This produces that the Docs Page will be rendered without this icon. ')
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
if (imageItem.icon === undefined) {
|
||||
/* This is the default behavious */
|
||||
imageElement = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(imageItem.project, imageItem.type)
|
||||
if (imageElement === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with name (' + imageItem.type + ') not found. This produces that the Docs Page will be rendered without this 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)
|
||||
if (imageElement === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.icon.project + ') with name (' + imageItem.icon.name + ') not found. This produces that the Docs Page will be rendered without this icon. ')
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -690,7 +702,7 @@ function newSuperalgosDocsDocumentPage() {
|
||||
}
|
||||
}
|
||||
|
||||
function addhHerarchyImages() {
|
||||
function addHierarchyImages() {
|
||||
for (let i = 0; i < hierarchyImagesArray.length; i++) {
|
||||
let imageItem = hierarchyImagesArray[i]
|
||||
let collectionImage
|
||||
@@ -700,14 +712,25 @@ function newSuperalgosDocsDocumentPage() {
|
||||
if (appSchemaDocument.icon === undefined) {
|
||||
let imageName = appSchemaDocument.type.toLowerCase().replaceAll(' ', '-')
|
||||
collectionImage = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageName)
|
||||
if (collectionImage === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with name (' + imageName + ') not found. This produces that the hierarchy will be rendered without this icon. ')
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
collectionImage = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndType(imageItem.project, imageItem.type)
|
||||
if (collectionImage === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with type (' + imageItem.type + ') not found. This produces that the hierarchy will be rendered without this icon. ')
|
||||
continue
|
||||
}
|
||||
}
|
||||
} else {
|
||||
collectionImage = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName(imageItem.project, imageItem.name)
|
||||
if (collectionImage === undefined) {
|
||||
console.log('[WARN] Image for project (' + imageItem.project + ') with name (' + imageItem.name + ') not found. This produces that the hierarchy will be rendered without this icon. ')
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let imageElement = collectionImage.cloneNode()
|
||||
|
||||
if (imageItem.size !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user