Added Intel AMT manager to tracing options.
Ylian Saint-Hilaire committed
Jan 6, 2021 at 23:51 UTC
da1af63e2fb15aa41109917e9e7f57fa48b8e2b9
1 file changed
+14
-3
views/default.handlebars
+14
-3
@@ -1337,6 +1337,15 @@
1337
var p12TermConsoleMsgTimer = null;
1338
var p13FilesConsoleMsgTimer = null;
1339
1340
+ /*
1341
+ // Check browser dark mode preference
1342
+ var prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)').matches;
1343
+ var prefersLightScheme = window.matchMedia('(prefers-color-scheme: light)').matches;
1344
+ console.log(prefersDarkScheme, prefersLightScheme);
1345
+ var mql = window.matchMedia('(prefers-color-scheme: dark)');
1346
+ mql.addEventListener('change', function() { console.log('Dark Change'); });
1347
+ */
1348
+
1349
function startup() {
1350
if ((features & 32) == 0) {
1351
// Guard against other site's top frames (web bugs).
@@ -13541,7 +13550,7 @@
13550
function clearServerTracing() { serverTrace = []; displayServerTrace(); }
13551
13552
function setServerTracing() {
13544
- var x = '';
13553
+ var x = '<div style="max-height:200px;overflow-y:auto">';
13554
x += '<div style="width:100%;border-bottom:1px solid gray;margin-bottom:5px;margin-top:5px"><b>' + "Core Server" + '</b></div>';
13555
x += '<div><label><input type=checkbox id=p41c1 ' + ((serverTraceSources.indexOf('cookie') >= 0) ? 'checked' : '') + '>' + "Cookie encoder" + '</label></div>';
13556
x += '<div><label><input type=checkbox id=p41c2 ' + ((serverTraceSources.indexOf('dispatch') >= 0) ? 'checked' : '') + '>' + "Message Dispatcher" + '</label></div>';
@@ -13558,18 +13567,20 @@
13567
x += '<div><label><input type=checkbox id=p41c7 ' + ((serverTraceSources.indexOf('relay') >= 0) ? 'checked' : '') + '>' + "Web Socket Relay" + '</label></div>';
13568
//x += '<div><label><input type=checkbox id=p41c8 ' + ((serverTraceSources.indexOf('webrelaydata') >= 0) ? 'checked' : '') + '>' + "Traffic Relay 2 Data" + '</label></div>';
13569
x += '<div style="width:100%;border-bottom:1px solid gray;margin-bottom:5px;margin-top:5px"><b>' + "Intel® AMT" + '</b></div>';
13570
+ x += '<div><label><input type=checkbox id=p41c19 ' + ((serverTraceSources.indexOf('amt') >= 0) ? 'checked' : '') + '>' + "Intel AMT manager" + '</label></div>';
13571
x += '<div><label><input type=checkbox id=p41c9 ' + ((serverTraceSources.indexOf('webrelay') >= 0) ? 'checked' : '') + '>' + "Connection Relay" + '</label></div>';
13572
x += '<div><label><input type=checkbox id=p41c10 ' + ((serverTraceSources.indexOf('mps') >= 0) ? 'checked' : '') + '>' + "CIRA Server" + '</label></div>';
13573
x += '<div><label><input type=checkbox id=p41c11 ' + ((serverTraceSources.indexOf('mpscmd') >= 0) ? 'checked' : '') + '>' + "CIRA Server Commands" + '</label></div>';
13574
//x += '<div style="width:100%;border-bottom:1px solid gray;margin-bottom:5px;margin-top:5px"><b>Legacy</b></div>';
13575
//x += '<div><label><input type=checkbox id=p41c12 ' + ((serverTraceSources.indexOf('swarm') >= 0) ? 'checked' : '') + ">' + "Legacy Swarm Server" + '</label></div>";
13576
//x += '<div><label><input type=checkbox id=p41c13 ' + ((serverTraceSources.indexOf('swarmcmd') >= 0) ? 'checked' : '') + ">' + "Legacy Swarm Server Commands" + '</label></div>";
13577
+ x += '</div>';
13578
setDialogMode(2, "Server Tracing", 7, setServerTracingEx, x);
13579
}
13580
13581
function setServerTracingEx(b) {
13571
- var sources = [], allsources = ['cookie', 'dispatch', 'main', 'peer', 'web', 'webrequest', 'relay', 'webrelaydata', 'webrelay', 'mps', 'mpscmd', 'swarm', 'swarmcmd', 'agentupdate', 'agent', 'cert', 'db', 'email'];
13572
- if (b == 1) { for (var i = 1; i < 19; i++) { try { if (Q('p41c' + i).checked) { sources.push(allsources[i - 1]); } } catch (ex) { } } }
13582
+ var sources = [], allsources = ['cookie', 'dispatch', 'main', 'peer', 'web', 'webrequest', 'relay', 'webrelaydata', 'webrelay', 'mps', 'mpscmd', 'swarm', 'swarmcmd', 'agentupdate', 'agent', 'cert', 'db', 'email', 'amt'];
13583
+ if (b == 1) { for (var i = 1; i < 20; i++) { try { if (Q('p41c' + i).checked) { sources.push(allsources[i - 1]); } } catch (ex) { } } }
13584
meshserver.send({ action: 'traceinfo', traceSources: sources });
13585
}
13586