No more using of github for images. Everything goes for now to the web server.

This commit is contained in:
Luis Fernando Molina committed 2018-06-16 13:28:06 +02:00
1 parent 219e7f73be
commit 3ee29d919e
17 files changed
+23 -3

No files matched your search

File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

File renamed without changes.
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 923 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

+23 -3
View File
@@ -412,7 +412,27 @@ function onBrowserRequest(request, response) {
case "Images": // This means the Scripts folder.
{
respondWithImage('./Images/' + requestParameters[2], response);
let path = './Images/' + requestParameters[2];
if (requestParameters[3] !== undefined) {
path = path + "/" + requestParameters[3];
}
if (requestParameters[4] !== undefined) {
path = path + "/" + requestParameters[4];
}
if (requestParameters[5] !== undefined) {
path = path + "/" + requestParameters[5];
}
respondWithImage(path, response);
}
break;
@@ -875,7 +895,7 @@ function onBrowserRequest(request, response) {
if (CONSOLE_LOG === true) { console.log("[INFO] server -> onBrowserRequest -> onFileRead -> addImages -> Entering function."); }
const htmlLine = '' + '\n' +
' <img id="@id@" width="0" height="0" src="https://raw.githubusercontent.com/@devTeam@/@repo@/master/@image@">'
' <img id="@id@" width="0" height="0" src="Images/@devTeam@/@repo@/@image@">'
let devTeams = ecosystemObject.devTeams;
@@ -893,7 +913,7 @@ function onBrowserRequest(request, response) {
let stringToInsert;
stringToInsert = htmlLineCopy.replace('@devTeam@', devTeam.codeName);
stringToInsert = stringToInsert.replace('@repo@', devTeam.codeName + "-Dev-Team");
stringToInsert = stringToInsert.replace('@repo@/', "");
stringToInsert = stringToInsert.replace('@image@', devTeam.codeName + ".png");
stringToInsert = stringToInsert.replace('@id@', devTeam.codeName + ".png");