Merge branch 'Superalgos:develop' into develop
This commit is contained in:
13 files changed
+75717
-67604
No files matched your search
@@ -183,7 +183,6 @@ function newEducationTutorialSpace() {
|
||||
checkPressButton()
|
||||
checkGif()
|
||||
checkImage()
|
||||
//checkVid()
|
||||
checkDocumentation()
|
||||
checkWorkspaces()
|
||||
checkSlider()
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -451,9 +451,16 @@ exports.newFileStorage = function newFileStorage(processIndex, host, port) {
|
||||
|
||||
function getFileViaHTTP(filePath, callback, callBackFunction) {
|
||||
try {
|
||||
|
||||
/* The filePath received is the one that is needed to fetch data from with fs. To do it via http we need to remove the prefix that includes this: ./Data-Storage/ */
|
||||
filePath = filePath.substring(15, filePath.length)
|
||||
/*
|
||||
The filePath received is the one that is needed to fetch data from with fs. To do it via http we need to remove the
|
||||
prefix that includes this: ./Data-Storage/
|
||||
*/
|
||||
let pathArray = filePath.split('/')
|
||||
let indexmax = pathArray.indexOf('My-Data-Storage') // TODO: get rid of hardcoded path name
|
||||
for (var i = 0; i <= indexmax; i++) {
|
||||
pathArray.shift()
|
||||
}
|
||||
filePath = pathArray.join('/')
|
||||
|
||||
let http = SA.nodeModules.http
|
||||
let url = 'http://' + host +
|
||||
@@ -506,4 +513,4 @@ exports.newFileStorage = function newFileStorage(processIndex, host, port) {
|
||||
callBackFunction(TS.projects.foundations.globals.standardResponses.DEFAULT_RETRY_RESPONSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
+29824
-16088
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user