From fe441e10726e8c3c92188b97653f5927c33c293a Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 8 Dec 2020 14:35:30 +0100 Subject: [PATCH] Concepts included on toolTips --- Projects/Ethereum/Schemas/ConceptSchema.json | 4 +++ Projects/Superalgos/Schemas/DocSchema.json | 2 +- .../UI/Spaces/Docs-Space/DocsSpace.js | 26 +++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/Projects/Ethereum/Schemas/ConceptSchema.json b/Projects/Ethereum/Schemas/ConceptSchema.json index 32960f8ce..3eed4e3b0 100644 --- a/Projects/Ethereum/Schemas/ConceptSchema.json +++ b/Projects/Ethereum/Schemas/ConceptSchema.json @@ -1,2 +1,6 @@ [ + { + "type": "Ethereum Concept", + "definition": "This is the definition of an Ethereum Concept." + } ] \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/DocSchema.json b/Projects/Superalgos/Schemas/DocSchema.json index fdfc040f4..0807a0e71 100644 --- a/Projects/Superalgos/Schemas/DocSchema.json +++ b/Projects/Superalgos/Schemas/DocSchema.json @@ -754,7 +754,7 @@ }, { "type": "Network Node", - "definition": "A network node represents a Ethereum Project running Superalgos within a Shapes, on which processes run and data is stored. Do not confuse this with a Template Structure which is similar to a Task Manager but it is not one.", + "definition": "A network node represents a Ethereum Project running Ethereum Concept within a Shapes, on which processes run and data is stored. Do not confuse this with a Template Structure which is similar to a Task Manager but it is not one.", "content": [ "By default, processes are set up to run locally in a network node representing your local machine. However, the system is prepared to run distributed on a network of nodes, or what we call a trading farm.", "You may create unlimited network nodes and map them with different machines on a network. Each machine in the network runs an instance of the Superalgos backend, and you may control the whole network operation from a single machine, or—in general—from any machine in the network running the Superalgos frontend. To learn more about distributed setups, check the trading farms pages.", diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index ef3dde925..6b3bfd78b 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -168,6 +168,7 @@ function newSuperalgosDocSpace() { for (let j = 0; j < PROJECTS_ARRAY.length; j++) { let project = PROJECTS_ARRAY[j] + /* Search in docSchema */ if (SCHEMAS_BY_PROJECT.get(project).map.docSchema.get(cleanPhrase4) !== undefined && cleanPhrase4 !== excludeNodeType) { taggedText = taggedText + phrase4.replace(cleanPhrase4, '->' + cleanPhrase4 + '->') + ' ' i = i + 3 @@ -191,6 +192,31 @@ function newSuperalgosDocSpace() { found = true break } + + /* Search in conceptSchema */ + if (SCHEMAS_BY_PROJECT.get(project).map.conceptSchema.get(cleanPhrase4) !== undefined && cleanPhrase4 !== excludeNodeType) { + taggedText = taggedText + phrase4.replace(cleanPhrase4, '->' + cleanPhrase4 + '->') + ' ' + i = i + 3 + found = true + break + } + if (SCHEMAS_BY_PROJECT.get(project).map.conceptSchema.get(cleanPhrase3) !== undefined && cleanPhrase3 !== excludeNodeType) { + taggedText = taggedText + phrase3.replace(cleanPhrase3, '->' + cleanPhrase3 + '->') + ' ' + i = i + 2 + found = true + break + } + if (SCHEMAS_BY_PROJECT.get(project).map.conceptSchema.get(cleanPhrase2) !== undefined && cleanPhrase2 !== excludeNodeType) { + taggedText = taggedText + phrase2.replace(cleanPhrase2, '->' + cleanPhrase2 + '->') + ' ' + i = i + 1 + found = true + break + } + if (SCHEMAS_BY_PROJECT.get(project).map.conceptSchema.get(cleanPhrase1) !== undefined && cleanPhrase1 !== excludeNodeType) { + taggedText = taggedText + phrase1.replace(cleanPhrase1, '->' + cleanPhrase1 + '->') + ' ' + found = true + break + } } if (found === false) {