mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 17:50:29 +08:00
fix: 更新网页部分文本
This commit is contained in:
parent
5296e61281
commit
593de19df5
@ -657,7 +657,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td>Writable:
|
<td i18n="msd-rw-switch">Writable:
|
||||||
</td>
|
</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<div class="switch-box">
|
<div class="switch-box">
|
||||||
|
|||||||
@ -103,10 +103,10 @@ function __showKvmdInfo(info) {
|
|||||||
|
|
||||||
if (info.meta !== null && info.meta.server && info.meta.server.host) {
|
if (info.meta !== null && info.meta.server && info.meta.server.host) {
|
||||||
$("kvmd-meta-server-host").innerText = info.meta.server.host;
|
$("kvmd-meta-server-host").innerText = info.meta.server.host;
|
||||||
document.title = `${info.meta.server.host} | PiKVM Index`;
|
document.title = `${info.meta.server.host} | One-KVM Index`;
|
||||||
} else {
|
} else {
|
||||||
$("kvmd-meta-server-host").innerHTML = "<i>Invalid meta</i>";
|
$("kvmd-meta-server-host").innerHTML = "<i>Invalid meta</i>";
|
||||||
document.title = "PiKVM Index";
|
document.title = "One-KVM Index";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -118,7 +118,7 @@ export function Keyboard(__recordWsEvent) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (is_captured) {
|
if (is_captured) {
|
||||||
title = "Keyboard captured, PiKVM offline";
|
title = "Keyboard captured, One-KVM offline";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("hid-keyboard-led").className = led;
|
$("hid-keyboard-led").className = led;
|
||||||
|
|||||||
@ -169,7 +169,7 @@ export function Mouse(__getGeometry, __recordWsEvent) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (is_captured) {
|
if (is_captured) {
|
||||||
title = "Mouse captured, PiKVM offline";
|
title = "Mouse captured, One-KVM offline";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("hid-mouse-led").className = led;
|
$("hid-mouse-led").className = led;
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export function Streamer() {
|
|||||||
var __init__ = function() {
|
var __init__ = function() {
|
||||||
__streamer = new MjpegStreamer(__setActive, __setInactive, __setInfo, __organizeHook);
|
__streamer = new MjpegStreamer(__setActive, __setInactive, __setInfo, __organizeHook);
|
||||||
|
|
||||||
$("stream-led").title = "No stream from PiKVM";
|
$("stream-led").title = "No stream from One-KVM";
|
||||||
|
|
||||||
tools.slider.setParams($("stream-quality-slider"), 5, 100, 5, 80, function(value) {
|
tools.slider.setParams($("stream-quality-slider"), 5, 100, 5, 80, function(value) {
|
||||||
$("stream-quality-value").innerText = `${value}%`;
|
$("stream-quality-value").innerText = `${value}%`;
|
||||||
@ -289,7 +289,7 @@ export function Streamer() {
|
|||||||
|
|
||||||
var __setInactive = function() {
|
var __setInactive = function() {
|
||||||
$("stream-led").className = "led-gray";
|
$("stream-led").className = "led-gray";
|
||||||
$("stream-led").title = "No stream from PiKVM";
|
$("stream-led").title = "No stream from One-KVM";
|
||||||
};
|
};
|
||||||
|
|
||||||
var __setControlsEnabled = function(enabled) {
|
var __setControlsEnabled = function(enabled) {
|
||||||
@ -317,7 +317,7 @@ export function Streamer() {
|
|||||||
if (text.length > 0) {
|
if (text.length > 0) {
|
||||||
title += text;
|
title += text;
|
||||||
} else {
|
} else {
|
||||||
title += "No stream from PiKVM";
|
title += "No stream from One-KVM";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
el_grab.innerText = el_info.innerText = title;
|
el_grab.innerText = el_info.innerText = title;
|
||||||
|
|||||||
@ -166,7 +166,7 @@ export function MediaStreamer(__setActive, __setInactive, __setInfo, __organizeH
|
|||||||
var __setupCodec = function(formats) {
|
var __setupCodec = function(formats) {
|
||||||
__closeDecoder();
|
__closeDecoder();
|
||||||
if (formats.h264 === undefined) {
|
if (formats.h264 === undefined) {
|
||||||
let msg = "No H.264 stream available on PiKVM";
|
let msg = "No H.264 stream available on One-KVM";
|
||||||
__setInfo(false, false, msg);
|
__setInfo(false, false, msg);
|
||||||
__logInfo(msg);
|
__logInfo(msg);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user