mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added deviceinfo support to meshCtrl.
This commit is contained in:
parent
947f320335
commit
a2b944cd33
6 changed files with 253 additions and 11 deletions
|
@ -572,6 +572,7 @@
|
|||
<span id=DeskOpenWebButton title="Open a web address on the remote computer"><img src='images/icon-url2.png' onclick=deviceUrlFunction() height=16 width=16 style=padding-top:2px /></span>
|
||||
<span id=DeskBackgroundButton title="Toggle remote desktop background"><img src='images/icon-background.png' onclick=deviceToggleBackground(event) height=16 width=16 style=padding-top:2px /></span>
|
||||
<span id=DeskSaveImageButton title="Save a screenshot of the remote desktop"><img src='images/icon-camera.png' onclick=deskSaveImage() height=16 width=16 style=padding-top:2px /></span>
|
||||
<span id=DeskRecordButton title="Record remote desktop session to file" style="display:none"><img src='images/icon-film.png' onclick=deskRecordSession() height=16 width=16 style=padding-top:2px /></span>
|
||||
</div>
|
||||
<div>
|
||||
<select id="deskkeys">
|
||||
|
@ -5759,9 +5760,6 @@
|
|||
desktopNode = currentNode;
|
||||
updateDesktopButtons();
|
||||
deskAdjust();
|
||||
|
||||
// On some browsers like IE, we can't save screen shots. Hide the scheenshot/capture buttons.
|
||||
if (!Q('Desk')['toBlob']) { QV('DeskSaveImageButton', false); }
|
||||
}
|
||||
|
||||
// Show and enable the right buttons
|
||||
|
@ -5797,7 +5795,6 @@
|
|||
QE('connectbutton1', online);
|
||||
var hwonline = ((currentNode.conn & 6) != 0); // If CIRA (2) or AMT (4) connected, enable hardware terminal
|
||||
QE('connectbutton1h', hwonline);
|
||||
QE('DeskSaveImageButton', deskState == 3);
|
||||
QV('deskFocusBtn', (desktop != null) && (desktop.contype == 2) && (deskState != 0) && (desktopsettings.showfocus));
|
||||
QV('DeskClip', (currentNode.agent) && (currentNode.agent.id != 11) && (currentNode.agent.id != 16) && ((desktop == null) || (desktop.contype != 2))); // Clipboard not supported on MacOS
|
||||
QE('DeskClip', deskState == 3);
|
||||
|
@ -5808,6 +5805,8 @@
|
|||
QE('deskkeys', deskState == 3);
|
||||
|
||||
// Display this only if we have Chat & Notify permissions
|
||||
QV('DeskSaveImageButton', (deskState == 3) && (Q('Desk')['toBlob'] != null));
|
||||
QV('DeskRecordButton', (deskState == 3));
|
||||
QV('DeskChatButton', ((rights & 16384) != 0) && (browserfullscreen == false) && (inputAllowed) && (currentNode.agent) && online);
|
||||
QV('DeskNotifyButton', ((rights & 16384) != 0) && (browserfullscreen == false) && (currentNode.agent) && (currentNode.agent.id < 5) && (inputAllowed) && (currentNode.agent) && online);
|
||||
|
||||
|
@ -6526,6 +6525,21 @@
|
|||
// Toggle mouse and keyboard input
|
||||
function toggleKvmControl() { putstore('DeskControl', (Q('DeskControl').checked?1:0)); QS('DeskControlSpan').color = Q('DeskControl').checked?null:'red'; }
|
||||
|
||||
// Toggle desktop session recording
|
||||
function deskRecordSession() {
|
||||
if (desktop == null) return;
|
||||
if (desktop.m.recordedData == null) {
|
||||
// Start recording
|
||||
console.log('Start record');
|
||||
desktop.m.StartRecording();
|
||||
} else {
|
||||
// Stop recording
|
||||
console.log('Stop record');
|
||||
var rec = desktop.m.StopRecording();
|
||||
console.log('frames', rec.length);
|
||||
}
|
||||
}
|
||||
|
||||
// Save the desktop image to file
|
||||
function deskSaveImage() {
|
||||
if (xxdialogMode || desktop == null || desktop.State != 3) return;
|
||||
|
@ -7672,7 +7686,7 @@
|
|||
// Storage
|
||||
if (hardware.identifiers && ident.storage_devices) {
|
||||
var x = '';
|
||||
// Sort Memory
|
||||
// Sort Storage
|
||||
ident.storage_devices.sort(function(a, b) { if (a.Caption > b.Caption) return 1; if (a.Caption < b.Caption) return -1; return 0; });
|
||||
|
||||
x += '<table style=width:100%>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue