Test
This commit is contained in:
1 parent
1d8b6fc7fb
commit
4b162ff162
6 files changed
+29
-7
No files matched your search
+2
-1
@@ -1,4 +1,5 @@
|
||||
Data-Storage
|
||||
Log-Files
|
||||
My-Workspaces
|
||||
Github.json
|
||||
Github.json
|
||||
Github.json
|
||||
@@ -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',
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"user": "Your Github.com Username",
|
||||
"password": "Your Github.com Password"
|
||||
"user": "Luis-Fernando-Molina",
|
||||
"password": ""
|
||||
}
|
||||
+22
-2
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user