mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
report a serial number
This commit is contained in:
@@ -130,7 +130,8 @@ export function Session() {
|
||||
let html = "";
|
||||
if (__info_hw_state !== null) {
|
||||
html += `
|
||||
Platform base: <span class="code-comment">${__info_hw_state.platform.base}</span><br>
|
||||
Platform:
|
||||
${__formatPlatform(__info_hw_state.platform)}
|
||||
<hr>
|
||||
Temperature:
|
||||
${__formatTemp(__info_hw_state.health.temp)}
|
||||
@@ -151,6 +152,10 @@ export function Session() {
|
||||
$("about-hardware").innerHTML = html;
|
||||
};
|
||||
|
||||
var __formatPlatform = function(state) {
|
||||
return __formatUl([["Base", state.base], ["Serial", state.serial]]);
|
||||
};
|
||||
|
||||
var __formatFan = function(state) {
|
||||
if (!state.monitored) {
|
||||
return __formatUl([["Status", "Not monitored"]]);
|
||||
|
||||
Reference in New Issue
Block a user