From a134662df0e7b0471c657e0cc1aba9736d2f9ab0 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 5 Jan 2021 17:56:20 +0100 Subject: [PATCH 1/3] Update httpInterface.js --- Client/httpInterface.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 4490059f4..434a03656 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -535,6 +535,10 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE const git = simpleGit(options) const commitMessage = unescape(requestParameters[3]) + let remotes = git.getRemotes(true) + console.log('remotes list: ', JSON.stringify(remotes)) + respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) + return git .add('./*') .commit(commitMessage) From 011b03ee9c834d954a45c0322eb071c357ded3fb Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 5 Jan 2021 18:16:18 +0100 Subject: [PATCH 2/3] This is my contribution to Superalgos --- Client/httpInterface.js | 4 ---- Client/test.js | 19 +++++++++++++++++++ ...s-001-app-error-contribution-not-sent.json | 4 ++-- 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 Client/test.js diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 434a03656..4490059f4 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -535,10 +535,6 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE const git = simpleGit(options) const commitMessage = unescape(requestParameters[3]) - let remotes = git.getRemotes(true) - console.log('remotes list: ', JSON.stringify(remotes)) - respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) - return git .add('./*') .commit(commitMessage) diff --git a/Client/test.js b/Client/test.js new file mode 100644 index 000000000..dd2169c9c --- /dev/null +++ b/Client/test.js @@ -0,0 +1,19 @@ + +doIt() + +async function doIt() { + const simpleGit = require('simple-git'); + const options = { + baseDir: process.cwd(), + binary: 'git', + maxConcurrentProcesses: 6, + } + const git = simpleGit(options) + + let remotes = await git.getRemotes(true) + + + + console.log('JSON remotes list: ', JSON.stringify(remotes)) + console.log('remotes list: ', remotes) +} diff --git a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json index 2214a8a55..277865760 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-001-app-error-contribution-not-sent.json @@ -9,8 +9,8 @@ "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. 3", - "updated": 1609863465526 + "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode.", + "updated": 1609866921604 } ] } \ No newline at end of file From 2efbf9c8aa18ce3d94c5dff7ae96dfb8fd31f700 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 6 Jan 2021 08:47:09 +0100 Subject: [PATCH 3/3] Initial Definition for Space Style and Settings plus formatting on Config Editor --- Projects/Superalgos/Schemas/AppSchema.json | 4 ++-- Projects/Superalgos/UI/Spaces/Floating-Space/ConfigEditor.js | 2 +- UI/Canvas.js | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Projects/Superalgos/Schemas/AppSchema.json b/Projects/Superalgos/Schemas/AppSchema.json index f58e2f768..c0728eeba 100644 --- a/Projects/Superalgos/Schemas/AppSchema.json +++ b/Projects/Superalgos/Schemas/AppSchema.json @@ -14648,7 +14648,7 @@ "config": true }, "initialValues": { - "config": "{ \n\"backgroundColor\": \"UI_COLOR.BLACK\"\n}" + "config": "{\"backgroundColor\":\"UI_COLOR.BLACK\",\"node\":{\"fontSize\":16,\"imageSize\":60,\"type\":{\"fontColor\":\"UI_COLOR.WHITE\"},\"name\":{\"fontColor\":\"UI_COLOR.WHITE\"},\"menuItem\":{\"backgroundColor\":\"UI_COLOR.BLACK\",\"fontColor\":\"UI_COLOR.WHITE\",\"fontSize\":14,\"imageSize\":14}}}" }, "menuItems": [ { @@ -14681,7 +14681,7 @@ "config": true }, "initialValues": { - "config": "{ \n\"distanceBetweenNodes\": 500\n}" + "config": "{\"node\":{\"distancePercentage\":60,\"radiusPercentage\":85,\"massPercentage\":100,\"animationSteps\":2,\"menuItem\":{\"widthPercentage\":100,\"heightPercentage\":60,\"radiusPercentage\":90}},\"physics\":false}" }, "menuItems": [ { diff --git a/Projects/Superalgos/UI/Spaces/Floating-Space/ConfigEditor.js b/Projects/Superalgos/UI/Spaces/Floating-Space/ConfigEditor.js index 9fc7d1281..bc7c8280b 100644 --- a/Projects/Superalgos/UI/Spaces/Floating-Space/ConfigEditor.js +++ b/Projects/Superalgos/UI/Spaces/Floating-Space/ConfigEditor.js @@ -73,7 +73,7 @@ function newConfigEditor() { thisObject.payload.uiObject.uiObjectTitle.exitEditMode() let textArea = document.getElementById('textArea') - textArea.value = thisObject.payload.node.config + textArea.value = JSON.stringify(JSON.parse(thisObject.payload.node.config), undefined, 4) textArea.style = 'resize: none;' + ' border: none;' + ' outline: none;' + diff --git a/UI/Canvas.js b/UI/Canvas.js index 0865f73db..15cc7e1cc 100644 --- a/UI/Canvas.js +++ b/UI/Canvas.js @@ -464,7 +464,12 @@ function newCanvas() { if ((event.ctrlKey === true || event.metaKey === true) && event.altKey === true && event.shiftKey === true && event.keyCode === 123) { // Dev Tool when used with F12 if (nodeOnFocus !== undefined) { + console.log('Node on Focus:') console.log(nodeOnFocus) + if (nodeOnFocus.config !== undefined) { + console.log('Node on Focus Config:') + console.log(JSON.stringify(JSON.parse(nodeOnFocus.config)).replaceAll('"', '\"')) + } return } }