Build modified streamline images

The official image from streamline does not currently work for the arm64
platform. As a temporary measure, the source code and docker build scripts
have been lifted from the official images and are used to build locally.

Some additional modifications are made to reduce overall image size, these
are documented in docker/README.md
This commit is contained in:
2024-03-10 16:17:50 -07:00
parent 2ffc3c408a
commit a424394109
13506 changed files with 1860172 additions and 6 deletions
+96
View File
@@ -0,0 +1,96 @@
function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var colCount = table.rows[0].cells.length;
for (var i = 0; i < colCount; i++) {
var newcell = row.insertCell(i);
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
/* set new id for the symptom select tag which is found in the first cell of every row
* this makes the symptom select tag id dynamic and different for each table row
* the id should be the rowCount +1000 to avoid a similar id with prompt div tag id set below
*/
if (i == 1) {
newcell.childNodes[1].id = (rowCount + 1000);
//alert(newcell.childNodes[1].nodeName);
}
/*
* set new value for the prompt div tag
*/
if (i == 3) {
table.rows[rowCount].cells[3].innerHTML = '';
table.rows[rowCount].cells[3].innerHTML = '<div id="' + rowCount + '" class="text-center"></div>';
}
if (i == 4) {
var promptId = rowCount + 100;
table.rows[rowCount].cells[4].innerHTML = '';
table.rows[rowCount].cells[4].innerHTML = '<div id="' + promptId + '" class="text-center"></div>';
}
}
}
function deleteRow(tableID) {
try {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
for (var i = 0; i < rowCount; i++) {
var row = table.rows[i];
var chkbox = row.cells[0].childNodes[0];
if (null != chkbox && true == chkbox.checked) {
if (rowCount <= 2) {
alert("Cannot delete all the rows.");
break;
}
table.deleteRow(i);
rowCount--;
i--;
}
}
} catch (e) {
alert(e);
}
}
/*
*code for selecting symptoms
*/
function showPrompt(symptom_id, prompt_div_id) {
if (symptom_id == ""){
return;
}
$.ajax({
method: 'POST',
url: '/triage/get_prompt',
data: {'symptom_id' : symptom_id},
success: function(response){
var returnText = response.split('&&&&');
var prompt = returnText[0];
var reference = returnText[1];
document.getElementById((prompt_div_id - 1000)).innerHTML = '<p style="color: #C85F6A;">' + prompt + '</p>';
document.getElementById(prompt_div_id - 900).innerHTML = reference;
},
error: function(jqXHR, textStatus, errorThrown) {
alert(JSON.stringify(jqXHR));
console.log(JSON.stringify(jqXHR));
}
});
}