Skip to content

Commit

Permalink
Firmware edition fixes, including power actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylianst committed Nov 20, 2020
1 parent 58d82f7 commit 1bd5fc3
Show file tree
Hide file tree
Showing 14 changed files with 679 additions and 362 deletions.
25 changes: 13 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
<meta name="format-detection" content="telephone=no">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo="> <!-- Stop favicon.ico from loading -->
<!-- ###BEGIN###{Look-Commander} -->
<!-- ###BEGIN###{Mode-NodeWebkit} -->
<link type="text/css" href="styles-commander-node.css" media="screen" rel="stylesheet" title="CSS" />
<!-- ###END###{Mode-NodeWebkit} -->
<!-- ###BEGIN###{!Mode-NodeWebkit} -->
<link type="text/css" href="styles-commander.css" media="screen" rel="stylesheet" title="CSS" />
<!-- ###END###{!Mode-NodeWebkit} -->
<!-- ###END###{Look-Commander} -->
<!-- ###BEGIN###{Look-Branded} -->
<link type="text/css" href="styles-branded.css" media="screen" rel="stylesheet" title="CSS" />
Expand Down Expand Up @@ -785,7 +790,7 @@
<!-- ###END###{WsmanBrowser} -->
<!-- ###BEGIN###{Storage} -->
<!-- ###BEGIN###{Mode-Firmware} -->
<div id=storagelinks style=margin-top:4px></div>
<!-- <div id=storagelinks style=margin-top:4px></div> -->
<!-- ###END###{Mode-Firmware} -->
<!-- ###END###{Storage} -->
<!-- ###BEGIN###{Look-ISDU} -->
Expand Down Expand Up @@ -3113,7 +3118,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>

// ###BEGIN###{Storage}
// ###BEGIN###{Mode-Firmware}
QH('storagelinks', '');
//QH('storagelinks', '');
// ###END###{Mode-Firmware}
// ###END###{Storage}

Expand Down Expand Up @@ -10652,10 +10657,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
// Set the boot order to null, this is needed for some AMT versions that don't clear this automatically.
amtstack.CIM_BootConfigSetting_ChangeBootOrder(null, function (stack, name, response, status) {
if (status != 200) { messagebox("Power Action", format("PUT CIM_BootConfigSetting_ChangeBootOrder, Error #{0}", status) + ((response.Header && response.Header.WsmanError) ? (', ' + response.Header.WsmanError) : '')); return; }
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
if (response.Body['ReturnValue'] != 0) { messagebox("Change Boot Order", "(1) Change Boot Order returns "+ response.Body.ReturnValueStr); return; }
amtstack.Put('AMT_BootSettingData', r, powerActionResponse2, 0, 1);
}, 0, 1);
}
Expand Down Expand Up @@ -10704,10 +10706,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
function powerActionResponse3(stack, name, response, status) {
console.log('powerActionResponse3(' + name + ',' + response + ',' + status + ')');
if (errcheck(status, stack)) return;
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
if (response.Body['ReturnValue'] != 0) { messagebox("Change Boot Order", "(2) Change Boot Order returns "+ response.Body.ReturnValueStr); return; }

//console.log("Performing Power State Change...");
statusbox("Power Action", "Performing power action...");
Expand Down Expand Up @@ -10874,13 +10873,15 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
}
if (xx != '') x += xx;
if (count == 0) { x += '<div style=padding-left:15px><br><i>' + "No files found." + '</i></div><br>'; }
x += '<br><td class=r1>' + TableEnd(AddRefreshButton('PullStorage()') + AddButton("Upload...", 'UploadToStorage()')
var uploadSupport = false;
try { var reader = new FileReader(); uploadSupport = ((reader != null) && (reader.readAsBinaryString != null)); } catch (ex) { console.log(ex); }
x += '<br><td class=r1>' + TableEnd(AddRefreshButton('PullStorage()') + (uploadSupport ? AddButton("Upload...", 'UploadToStorage()') : '')
// ###BEGIN###{Mode-NodeWebkit}
+ AddButton("Upload Application...", 'UploadAppToStorage()')
// ###END###{Mode-NodeWebkit}
);
// ###BEGIN###{Mode-Firmware}
QH('storagelinks', links);
//QH('storagelinks', links);
// ###END###{Mode-Firmware}
QH('id_TableSystemStorage', x);
} else {
Expand Down
25 changes: 13 additions & 12 deletions index_de.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
<meta name="format-detection" content="telephone=no">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo="> <!-- Stop favicon.ico from loading -->
<!-- ###BEGIN###{Look-Commander} -->
<!-- ###BEGIN###{Mode-NodeWebkit} -->
<link type="text/css" href="styles-commander-node.css" media="screen" rel="stylesheet" title="CSS">
<!-- ###END###{Mode-NodeWebkit} -->
<!-- ###BEGIN###{!Mode-NodeWebkit} -->
<link type="text/css" href="styles-commander.css" media="screen" rel="stylesheet" title="CSS">
<!-- ###END###{!Mode-NodeWebkit} -->
<!-- ###END###{Look-Commander} -->
<!-- ###BEGIN###{Look-Branded} -->
<link type="text/css" href="styles-branded.css" media="screen" rel="stylesheet" title="CSS">
Expand Down Expand Up @@ -773,7 +778,7 @@
<!-- ###END###{WsmanBrowser} -->
<!-- ###BEGIN###{Storage} -->
<!-- ###BEGIN###{Mode-Firmware} -->
<div id="storagelinks" style="margin-top:4px"></div>
<!-- <div id=storagelinks style=margin-top:4px></div> -->
<!-- ###END###{Mode-Firmware} -->
<!-- ###END###{Storage} -->
<!-- ###BEGIN###{Look-ISDU} -->
Expand Down Expand Up @@ -3101,7 +3106,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>

// ###BEGIN###{Storage}
// ###BEGIN###{Mode-Firmware}
QH('storagelinks', '');
//QH('storagelinks', '');
// ###END###{Mode-Firmware}
// ###END###{Storage}

Expand Down Expand Up @@ -10640,10 +10645,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
// Set the boot order to null, this is needed for some AMT versions that don't clear this automatically.
amtstack.CIM_BootConfigSetting_ChangeBootOrder(null, function (stack, name, response, status) {
if (status != 200) { messagebox("Power Action", format("PUT CIM_BootConfigSetting_ChangeBootOrder, Error #{0}", status) + ((response.Header && response.Header.WsmanError) ? (', ' + response.Header.WsmanError) : '')); return; }
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
if (response.Body['ReturnValue'] != 0) { messagebox("Change Boot Order", "(1) Change Boot Order returns "+ response.Body.ReturnValueStr); return; }
amtstack.Put('AMT_BootSettingData', r, powerActionResponse2, 0, 1);
}, 0, 1);
}
Expand Down Expand Up @@ -10692,10 +10694,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
function powerActionResponse3(stack, name, response, status) {
console.log('powerActionResponse3(' + name + ',' + response + ',' + status + ')');
if (errcheck(status, stack)) return;
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
if (response.Body['ReturnValue'] != 0) { messagebox("Change Boot Order", "(2) Change Boot Order returns "+ response.Body.ReturnValueStr); return; }

//console.log("Performing Power State Change...");
statusbox("Power Action", "Power Action ausführen ...");
Expand Down Expand Up @@ -10862,13 +10861,15 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
}
if (xx != '') x += xx;
if (count == 0) { x += '<div style=padding-left:15px><br><i>' + "Keine Dateien gefunden." + '</i></div><br>'; }
x += '<br><td class=r1>' + TableEnd(AddRefreshButton('PullStorage()') + AddButton("Hochladen...", 'UploadToStorage()')
var uploadSupport = false;
try { var reader = new FileReader(); uploadSupport = ((reader != null) && (reader.readAsBinaryString != null)); } catch (ex) { console.log(ex); }
x += '<br><td class=r1>' + TableEnd(AddRefreshButton('PullStorage()') + (uploadSupport ? AddButton("Hochladen...", 'UploadToStorage()') : '')
// ###BEGIN###{Mode-NodeWebkit}
+ AddButton("Anwendung hochladen ...", 'UploadAppToStorage()')
// ###END###{Mode-NodeWebkit}
);
// ###BEGIN###{Mode-Firmware}
QH('storagelinks', links);
//QH('storagelinks', links);
// ###END###{Mode-Firmware}
QH('id_TableSystemStorage', x);
} else {
Expand Down
25 changes: 13 additions & 12 deletions index_es.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
<meta name="format-detection" content="telephone=no">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo="> <!-- Stop favicon.ico from loading -->
<!-- ###BEGIN###{Look-Commander} -->
<!-- ###BEGIN###{Mode-NodeWebkit} -->
<link type="text/css" href="styles-commander-node.css" media="screen" rel="stylesheet" title="CSS">
<!-- ###END###{Mode-NodeWebkit} -->
<!-- ###BEGIN###{!Mode-NodeWebkit} -->
<link type="text/css" href="styles-commander.css" media="screen" rel="stylesheet" title="CSS">
<!-- ###END###{!Mode-NodeWebkit} -->
<!-- ###END###{Look-Commander} -->
<!-- ###BEGIN###{Look-Branded} -->
<link type="text/css" href="styles-branded.css" media="screen" rel="stylesheet" title="CSS">
Expand Down Expand Up @@ -773,7 +778,7 @@
<!-- ###END###{WsmanBrowser} -->
<!-- ###BEGIN###{Storage} -->
<!-- ###BEGIN###{Mode-Firmware} -->
<div id="storagelinks" style="margin-top:4px"></div>
<!-- <div id=storagelinks style=margin-top:4px></div> -->
<!-- ###END###{Mode-Firmware} -->
<!-- ###END###{Storage} -->
<!-- ###BEGIN###{Look-ISDU} -->
Expand Down Expand Up @@ -3101,7 +3106,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>

// ###BEGIN###{Storage}
// ###BEGIN###{Mode-Firmware}
QH('storagelinks', '');
//QH('storagelinks', '');
// ###END###{Mode-Firmware}
// ###END###{Storage}

Expand Down Expand Up @@ -10640,10 +10645,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
// Set the boot order to null, this is needed for some AMT versions that don't clear this automatically.
amtstack.CIM_BootConfigSetting_ChangeBootOrder(null, function (stack, name, response, status) {
if (status != 200) { messagebox("Acción de poder", format("PUT CIM_BootConfigSetting_ChangeBootOrder, Error #{0}", status) + ((response.Header && response.Header.WsmanError) ? (', ' + response.Header.WsmanError) : '')); return; }
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
if (response.Body['ReturnValue'] != 0) { messagebox("Change Boot Order", "(1) Change Boot Order returns "+ response.Body.ReturnValueStr); return; }
amtstack.Put('AMT_BootSettingData', r, powerActionResponse2, 0, 1);
}, 0, 1);
}
Expand Down Expand Up @@ -10692,10 +10694,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
function powerActionResponse3(stack, name, response, status) {
console.log('powerActionResponse3(' + name + ',' + response + ',' + status + ')');
if (errcheck(status, stack)) return;
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
if (response.Body['ReturnValue'] != 0) { messagebox("Change Boot Order", "(2) Change Boot Order returns "+ response.Body.ReturnValueStr); return; }

//console.log("Performing Power State Change...");
statusbox("Acción de poder", "Realizando acción de poder ...");
Expand Down Expand Up @@ -10862,13 +10861,15 @@ <h4 style="width:100%;border-bottom:1px solid gray">Software KVM</h4>
}
if (xx != '') x += xx;
if (count == 0) { x += '<div style=padding-left:15px><br><i>' + "No se encontraron archivos." + '</i></div><br>'; }
x += '<br><td class=r1>' + TableEnd(AddRefreshButton('PullStorage()') + AddButton("Subir...", 'UploadToStorage()')
var uploadSupport = false;
try { var reader = new FileReader(); uploadSupport = ((reader != null) && (reader.readAsBinaryString != null)); } catch (ex) { console.log(ex); }
x += '<br><td class=r1>' + TableEnd(AddRefreshButton('PullStorage()') + (uploadSupport ? AddButton("Subir...", 'UploadToStorage()') : '')
// ###BEGIN###{Mode-NodeWebkit}
+ AddButton("Subir aplicación ...", 'UploadAppToStorage()')
// ###END###{Mode-NodeWebkit}
);
// ###BEGIN###{Mode-Firmware}
QH('storagelinks', links);
//QH('storagelinks', links);
// ###END###{Mode-Firmware}
QH('id_TableSystemStorage', x);
} else {
Expand Down
25 changes: 13 additions & 12 deletions index_fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
<meta name="format-detection" content="telephone=no">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo="> <!-- Stop favicon.ico from loading -->
<!-- ###BEGIN###{Look-Commander} -->
<!-- ###BEGIN###{Mode-NodeWebkit} -->
<link type="text/css" href="styles-commander-node.css" media="screen" rel="stylesheet" title="CSS">
<!-- ###END###{Mode-NodeWebkit} -->
<!-- ###BEGIN###{!Mode-NodeWebkit} -->
<link type="text/css" href="styles-commander.css" media="screen" rel="stylesheet" title="CSS">
<!-- ###END###{!Mode-NodeWebkit} -->
<!-- ###END###{Look-Commander} -->
<!-- ###BEGIN###{Look-Branded} -->
<link type="text/css" href="styles-branded.css" media="screen" rel="stylesheet" title="CSS">
Expand Down Expand Up @@ -773,7 +778,7 @@
<!-- ###END###{WsmanBrowser} -->
<!-- ###BEGIN###{Storage} -->
<!-- ###BEGIN###{Mode-Firmware} -->
<div id="storagelinks" style="margin-top:4px"></div>
<!-- <div id=storagelinks style=margin-top:4px></div> -->
<!-- ###END###{Mode-Firmware} -->
<!-- ###END###{Storage} -->
<!-- ###BEGIN###{Look-ISDU} -->
Expand Down Expand Up @@ -3101,7 +3106,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Logiciel KVM</h4>

// ###BEGIN###{Storage}
// ###BEGIN###{Mode-Firmware}
QH('storagelinks', '');
//QH('storagelinks', '');
// ###END###{Mode-Firmware}
// ###END###{Storage}

Expand Down Expand Up @@ -10640,10 +10645,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Logiciel KVM</h4>
// Set the boot order to null, this is needed for some AMT versions that don't clear this automatically.
amtstack.CIM_BootConfigSetting_ChangeBootOrder(null, function (stack, name, response, status) {
if (status != 200) { messagebox("Action de puissance", format("PUT CIM_BootConfigSetting_ChangeBootOrder, Error #{0}", status) + ((response.Header && response.Header.WsmanError) ? (', ' + response.Header.WsmanError) : '')); return; }
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
if (response.Body['ReturnValue'] != 0) { messagebox("Change Boot Order", "(1) Change Boot Order returns "+ response.Body.ReturnValueStr); return; }
amtstack.Put('AMT_BootSettingData', r, powerActionResponse2, 0, 1);
}, 0, 1);
}
Expand Down Expand Up @@ -10692,10 +10694,7 @@ <h4 style="width:100%;border-bottom:1px solid gray">Logiciel KVM</h4>
function powerActionResponse3(stack, name, response, status) {
console.log('powerActionResponse3(' + name + ',' + response + ',' + status + ')');
if (errcheck(status, stack)) return;
if (response.Body.ReturnValue!=0) {
messagebox("Change Boot Order", "Change Boot Order returns "+ response.Body.ReturnValueStr);
return;
}
if (response.Body['ReturnValue'] != 0) { messagebox("Change Boot Order", "(2) Change Boot Order returns "+ response.Body.ReturnValueStr); return; }

//console.log("Performing Power State Change...");
statusbox("Action de puissance", "Exécution d'une action de puissance ...");
Expand Down Expand Up @@ -10862,13 +10861,15 @@ <h4 style="width:100%;border-bottom:1px solid gray">Logiciel KVM</h4>
}
if (xx != '') x += xx;
if (count == 0) { x += '<div style=padding-left:15px><br><i>' + "Aucun fichier trouvé." + '</i></div><br>'; }
x += '<br><td class=r1>' + TableEnd(AddRefreshButton('PullStorage()') + AddButton("Télécharger...", 'UploadToStorage()')
var uploadSupport = false;
try { var reader = new FileReader(); uploadSupport = ((reader != null) && (reader.readAsBinaryString != null)); } catch (ex) { console.log(ex); }
x += '<br><td class=r1>' + TableEnd(AddRefreshButton('PullStorage()') + (uploadSupport ? AddButton("Télécharger...", 'UploadToStorage()') : '')
// ###BEGIN###{Mode-NodeWebkit}
+ AddButton("Télécharger l'application ...", 'UploadAppToStorage()')
// ###END###{Mode-NodeWebkit}
);
// ###BEGIN###{Mode-Firmware}
QH('storagelinks', links);
//QH('storagelinks', links);
// ###END###{Mode-Firmware}
QH('id_TableSystemStorage', x);
} else {
Expand Down
Loading

0 comments on commit 1bd5fc3

Please sign in to comment.