From 4b162ff1627aedc7f82eeb3ca0803a2da778dd0c Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 5 Jan 2021 15:08:50 +0100 Subject: [PATCH] Test --- .gitignore | 3 ++- Client/httpInterface.js | 2 +- Github.json | 4 ++-- ...-app-error-github-credentials-missing.json | 24 +++++++++++++++++-- .../UI/Spaces/Docs-Space/CommandInterface.js | 2 +- debug.log | 1 + 6 files changed, 29 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index c4741cd9a..f6d3bb6e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ Data-Storage Log-Files My-Workspaces -Github.json \ No newline at end of file +Github.json +Github.json diff --git a/Client/httpInterface.js b/Client/httpInterface.js index c4bb087a3..414952af9 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -526,7 +526,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE switch (requestParameters[2]) { // switch by command case 'Contribute': { try { - const GITHUB = require('Github.json') + const GITHUB = require('../Github.json') if (GITHUB.user === 'Your Github.com Username' || GITHUB.user === 'Your Github.com Password' ) { let error = { result: 'Fail Because', diff --git a/Github.json b/Github.json index 121212663..6c4fbe08a 100644 --- a/Github.json +++ b/Github.json @@ -1,4 +1,4 @@ { - "user": "Your Github.com Username", - "password": "Your Github.com Password" + "user": "Luis-Fernando-Molina", + "password": "" } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-topic-002-app-error-github-credentials-missing.json b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-topic-002-app-error-github-credentials-missing.json index 1399cb53f..69a304a36 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-topic-002-app-error-github-credentials-missing.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/app-commands-errors-topic-002-app-error-github-credentials-missing.json @@ -3,12 +3,32 @@ "pageNumber": "2", "type": "App Error Github Credentials Missing", "definition": { - "text": "Write here a summary for this topic page." + "text": "In order to manage contributions from within the app, you first need to provide your Github.com credentials so that we can get authenticated when pushing your changes to the remote repository.", + "updated": 1609855182001 }, "paragraphs": [ + { + "style": "Anchor", + "text": "Anchor Github Credentials Missing", + "updated": 1609855373585 + }, + { + "style": "Error", + "text": "Github Crendentials are Missing. Please solve this issue and try again." + }, { "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." + "text": "At the root folder of Superalgos, you will find a JSON file called Github.json. Please open it with a simple text editor like notepad and configure there your Github credentials.", + "updated": 1609855434274 + }, + { + "style": "Text", + "text": "The file looks like this:" + }, + { + "style": "Javascript", + "text": "{\n \"user\": \"Your Github.com Username\",\n \"password\": \"Your Github.com Password\"\n}", + "updated": 1609855288091 } ] } \ No newline at end of file diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js index 7f7cea2e6..a77c15753 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js @@ -45,7 +45,7 @@ function newSuperalgosDocsCommmandInterface() { if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result && data.result === GLOBAL.DEFAULT_OK_RESPONSE.result) { UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Message Contribution Succeed') } else { - if (data.error.message === 'File Github.json does not exist.') { + if (data.message === 'File Github.json does not exist.') { UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error Github Credentials Missing', 'Anchor Github Credentials Missing') } else { UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error Contribution Not Sent', 'Anchor Contribution Not Sent') diff --git a/debug.log b/debug.log index 097051eec..33e28ade1 100644 --- a/debug.log +++ b/debug.log @@ -1 +1,2 @@ [1129/182047.011:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3) +[0105/141830.476:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)