mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Show extensive device info
This commit is contained in:
parent
9524b5b90a
commit
9535aa5ced
@ -97,6 +97,7 @@
|
||||
</li>
|
||||
<li><a data-toggle="tab" href="#app">Applications</a></li>
|
||||
<li><a data-toggle="tab" href="#policy">Policy Compliance</a></li>
|
||||
<li><a data-toggle="tab" href="#device-info">Extensive Device Information</a></li>
|
||||
<li><a data-toggle="tab" href="#remote-session">Remote Session</a></li>
|
||||
{{/zone}}
|
||||
|
||||
@ -143,6 +144,147 @@
|
||||
<div id="policy-list-container">
|
||||
</div>
|
||||
</div>
|
||||
<div id="device-info" class="tab-pane fade">
|
||||
<div id="device-info-container">
|
||||
{{#if device.deviceInfoAvailable}}
|
||||
<table class="table table-striped table-hover table-bordered display data-table"
|
||||
id="device-info-table">
|
||||
<tr>
|
||||
<td>
|
||||
IMEI
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.imei}}<span>{{device.imei}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
IMSI
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.imsi}}<span>{{device.imsi}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Serial Number
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.serial}}<span>{{device.serial}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
MAC Address
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.macAddress}}<span>{{device.macAddress}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
OS Version
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.OSVersion}}<span>{{device.OSVersion}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
OS Build Date
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.osBuildDate}}<span>{{device.osBuildDate}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Vendor
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.vendor}}<span>{{device.vendor}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Model
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.model}}<span>{{device.model}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
CPU Usage
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.cpuUsage}}<span>{{device.cpuUsage.value}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
SSID
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.ssid}}<span>{{device.ssid}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Connection Type
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.connectionType}}<span>{{device.connectionType}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Operator
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.operator}}<span>{{device.operator}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Phone Number
|
||||
</td>
|
||||
<td>
|
||||
{{#if device.phoneNumber}}<span>{{device.phoneNumber}}</span>
|
||||
{{else}}<p>This information is not available yet.</p>
|
||||
{{/if}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{{else}}<p>Extensive information is not available yet.</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="remote-session" class="tab-pane fade" data-remote-session-uri="{{remoteSessionEndpoint}}">
|
||||
<div class="remote-session-container">
|
||||
<div class="tab-actions">
|
||||
|
||||
@ -81,6 +81,30 @@ function onRequest(context) {
|
||||
if (filteredDeviceData["initialDeviceInfo"]["IMEI"]) {
|
||||
viewModel["imei"] = filteredDeviceData["initialDeviceInfo"]["IMEI"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["IMSI"]) {
|
||||
viewModel["imsi"] = filteredDeviceData["initialDeviceInfo"]["IMSI"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["OS_VERSION"]) {
|
||||
viewModel["OSVersion"] = filteredDeviceData["initialDeviceInfo"]["OS_VERSION"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["OS_VERSION"]) {
|
||||
viewModel["OSVersion"] = filteredDeviceData["initialDeviceInfo"]["OS_VERSION"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["DEVICE_MODEL"]) {
|
||||
viewModel["model"] = filteredDeviceData["initialDeviceInfo"]["DEVICE_MODEL"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["VENDOR"]) {
|
||||
viewModel["vendor"] = filteredDeviceData["initialDeviceInfo"]["VENDOR"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["SERIAL"]) {
|
||||
viewModel["serial"] = filteredDeviceData["initialDeviceInfo"]["SERIAL"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["MAC_ADDRESS"]) {
|
||||
viewModel["macAddress"] = filteredDeviceData["initialDeviceInfo"]["MAC_ADDRESS"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["OS_BUILD_DATE"]) {
|
||||
viewModel["osBuildDate"] = filteredDeviceData["initialDeviceInfo"]["OS_BUILD_DATE"];
|
||||
}
|
||||
if (!filteredDeviceData["latestDeviceInfo"]) {
|
||||
if (filteredDeviceData["initialDeviceInfo"]["OS_BUILD_DATE"]) {
|
||||
if (filteredDeviceData["initialDeviceInfo"]["OS_BUILD_DATE"] != "0") {
|
||||
@ -109,6 +133,12 @@ function onRequest(context) {
|
||||
} else {
|
||||
viewModel["internalMemory"]["usage"] = 0;
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["DEVICE_INFO"]["OPERATOR"]) {
|
||||
viewModel["operator"] = filteredDeviceData["initialDeviceInfo"]["DEVICE_INFO"]["OPERATOR"];
|
||||
}
|
||||
if (filteredDeviceData["initialDeviceInfo"]["DEVICE_INFO"]["PHONE_NUMBER"]) {
|
||||
viewModel["phoneNumber"] = filteredDeviceData["initialDeviceInfo"]["DEVICE_INFO"]["PHONE_NUMBER"];
|
||||
}
|
||||
|
||||
viewModel["externalMemory"] = {};
|
||||
viewModel["externalMemory"]["total"] = replaceNaNVal(Math.
|
||||
@ -142,6 +172,15 @@ function onRequest(context) {
|
||||
viewModel["vendor"] = filteredDeviceData["latestDeviceInfo"]["vendor"];
|
||||
viewModel["model"] = filteredDeviceData["latestDeviceInfo"]["deviceModel"];
|
||||
}
|
||||
if (filteredDeviceData["latestDeviceInfo"]["osVersion"]) {
|
||||
viewModel["osVersion"] = filteredDeviceData["latestDeviceInfo"]["osVersion"];
|
||||
}
|
||||
if (filteredDeviceData["latestDeviceInfo"]["connectionType"]) {
|
||||
viewModel["connectionType"] = filteredDeviceData["latestDeviceInfo"]["connectionType"];
|
||||
}
|
||||
if (filteredDeviceData["latestDeviceInfo"]["ssid"]) {
|
||||
viewModel["ssid"] = filteredDeviceData["latestDeviceInfo"]["ssid"];
|
||||
}
|
||||
if (filteredDeviceData["latestDeviceInfo"]["updatedTime"]) {
|
||||
viewModel["lastUpdatedTime"] = filteredDeviceData["latestDeviceInfo"]["updatedTime"].
|
||||
substr(0, filteredDeviceData["latestDeviceInfo"]["updatedTime"].indexOf("+"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user