More bugs fixed

This commit is contained in:
Luis Fernando Molina committed 2020-12-28 10:51:07 +01:00
1 parent ec96e839de
commit 0f3f4ddc98
6 files changed
+106 -14

No files matched your search

@@ -0,0 +1,23 @@
{
"type": "Project",
"definition": {
"text": "Superalgos is a platform that integrates different projects with the goal of automating operation acrross any of them, and extracting valuable information from their own blockchains in order to use them in trading strategies.",
"updated": 1609144195229
},
"paragraphs": [
{
"style": "Text",
"text": "The first project is Superalgos itselft, witch provides a lowest level infraestructure that any other integrated project can freely reuse. On the pipeline we have these projects waiting to be integrated soon:",
"updated": 1609144390540
},
{
"style": "Table",
"text": "| # | Project |\n| 1 | Superalgos |\n| 2 | Ethereum |",
"updated": 1609144471691
},
{
"style": "Text",
"text": "Once integrated, each project will provide even more infraestructure which can later be used by other projects to be integrated after that. For example, once Ethereum is fully integrated, it will enable DeFi projects to be integrated on top of it."
}
]
}
@@ -0,0 +1,14 @@
{
"topic": "Docs Basics",
"pageNumber": "1",
"type": "Docs Intro",
"definition": {
"text": "Write here a summary for this topic page."
},
"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."
}
]
}
@@ -0,0 +1,14 @@
{
"topic": "Docs Basics",
"pageNumber": "2",
"type": "Docs Page Category",
"definition": {
"text": "Write here a summary for this topic page."
},
"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."
}
]
}
@@ -0,0 +1,14 @@
{
"topic": "Docs Basics",
"pageNumber": "3",
"type": "Docs Page Name",
"definition": {
"text": "Write here a summary for this topic page."
},
"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."
}
]
}
@@ -14,7 +14,28 @@
},
{
"style": "Json",
"text": "docs.goto Project->Docs Page Category->Docs Page Type->Docs Page Anchor"
"text": "docs.goto Project->Docs Page Category->Docs Page Name->Docs Page Anchor",
"updated": 1609148983480
},
{
"style": "Subtitle",
"text": "Where:",
"updated": 1609146935337
},
{
"style": "List",
"text": "Project : Is the project where the Node, Concept or Topic is defined.",
"updated": 1609148511059
},
{
"style": "List",
"text": "Docs Page Category : Node, Concept or Topic.",
"updated": 1609148563484
},
{
"style": "List",
"text": "Docs Page Name : For Nodes it is the type of node, for Concepts, the concept name, for topics, the topic's page name.",
"updated": 1609148969954
},
{
"style": "Title",
@@ -639,10 +639,16 @@ function newSuperalgosDocSpace() {
To not destroy the DOM structure we will use a clone.
*/
paragraphNode = paragraphNode.cloneNode(true)
for (let i = 0; i < paragraphNode.childNodes.length; i++) {
let childNode = paragraphNode.childNodes[i]
if (childNode.className === "docs-tooltip") {
childNode.innerText = childNode.childNodes[0].data
scanNodeChildren(paragraphNode)
function scanNodeChildren(node) {
if (node.childNodes === undefined) { return }
for (let i = 0; i < node.childNodes.length; i++) {
let childNode = node.childNodes[i]
if (childNode.className === "docs-tooltip") {
childNode.innerText = childNode.childNodes[0].data
} else {
scanNodeChildren(childNode)
}
}
}
/*
@@ -2897,10 +2903,10 @@ function newSuperalgosDocSpace() {
role = ''
key = key + '-text'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addToolTips(innerHTML)
innerHTML = addBold(innerHTML)
innerHTML = addCodeToCamelCase(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
innerHTML = innerHTML + addWarningIfTranslationIsOutdated(paragraph)
break
}
@@ -2928,8 +2934,8 @@ function newSuperalgosDocSpace() {
role = 'role="alert"'
key = key + '-note'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = innerHTML + addWarningIfTranslationIsOutdated(paragraph)
break
}
@@ -2939,8 +2945,8 @@ function newSuperalgosDocSpace() {
role = 'role="alert"'
key = key + '-success'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = innerHTML + addWarningIfTranslationIsOutdated(paragraph)
break
}
@@ -2950,8 +2956,8 @@ function newSuperalgosDocSpace() {
role = 'role="alert"'
key = key + '-important'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = innerHTML + addWarningIfTranslationIsOutdated(paragraph)
break
}
@@ -2961,8 +2967,8 @@ function newSuperalgosDocSpace() {
role = 'role="alert"'
key = key + '-warning'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = innerHTML + addWarningIfTranslationIsOutdated(paragraph)
break
}
@@ -2981,8 +2987,8 @@ function newSuperalgosDocSpace() {
role = ''
key = key + '-callout'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = innerHTML + addWarningIfTranslationIsOutdated(paragraph)
break
}
@@ -2992,8 +2998,8 @@ function newSuperalgosDocSpace() {
role = ''
key = key + '-summary'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = innerHTML + addWarningIfTranslationIsOutdated(paragraph)
break
}
@@ -3004,10 +3010,10 @@ function newSuperalgosDocSpace() {
role = ''
key = key + '-list'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addToolTips(innerHTML)
innerHTML = addBold(innerHTML)
innerHTML = addCodeToCamelCase(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
innerHTML = innerHTML + addWarningIfTranslationIsOutdated(paragraph)
break
}
@@ -3018,9 +3024,9 @@ function newSuperalgosDocSpace() {
role = ''
key = key + '-table'
innerHTML = getTextBasedOnLanguage(paragraph)
innerHTML = addToolTips(innerHTML)
innerHTML = parseTable(innerHTML)
innerHTML = addItalics(innerHTML)
innerHTML = addToolTips(innerHTML)
break
}
case 'Hierarchy': {