This commit is contained in:
Luis Fernando Molina committed 2020-12-22 14:12:37 +01:00
1 parent 0940f968e6
commit 836fa4799b
5 files changed
+23 -20

No files matched your search

+3 -3
View File
@@ -352,7 +352,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
for (let i = 0; i < docsSchema.length; i++) {
let schemaDocument = docsSchema[i]
let fileContent = JSON.stringify(schemaDocument)
let fileContent = JSON.stringify(schemaDocument, undefined, 4)
console.log('schemaDocument', schemaDocument)
console.log('fileContent', fileContent)
@@ -361,13 +361,13 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
let fileName = schemaDocument.type.toLowerCase()
for (let j = 0; j < 10; j++) {
fileName = fileName.replaceAll(' ', '-')
fileName = fileName.replace(' ', '-')
}
fileName = fileName + '.json'
let filePath = global.env.PATH_TO_PROJECTS + '/' + project + '/Schemas/Docs-Concepts'
console.log('fileName', filename)
console.log('fileName', fileName)
console.log('filePath', filePath)
fs.writeFileSync(filePath + '/' + fileName, fileContent)
}
@@ -1,8 +1,4 @@
{
"type": "Attaching",
"definition": "Nodes can be attached"
}
{
"type": "Attaching",
"definition": "Nodes can be attached"
}
@@ -1,8 +1,4 @@
{
"type": "Referencing",
"definition": "Nodes can reference other nodes"
}
{
"type": "Referencing",
"definition": "Nodes can reference other nodes"
}
@@ -0,0 +1,10 @@
{
"type": "Test Concept Here",
"definition": "Write here the 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."
}
]
}
@@ -987,7 +987,7 @@ function newSuperalgosDocSpace() {
renderCommandResultsPage(["Succesfully rebuild the search engine indexes."])
}
function checkUReIndexCommand() {
function checkUSaveCommand() {
if (command.toLowerCase() === 'help save') {
renderCommandResultsPage(
[
@@ -1022,6 +1022,7 @@ function newSuperalgosDocSpace() {
function onResponse(err, data) {
/* 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) {
okResponses++
}