mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
improved msd rw ui
This commit is contained in:
@@ -407,7 +407,9 @@
|
|||||||
<td style="line-height:1.5"><b>Read-write mode is enabled</b></td>
|
<td style="line-height:1.5"><b>Read-write mode is enabled</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><sup style="line-height:1">Do not turn off PiKVM during this to prevent filesystem corruption</sup></td>
|
<td><sup style="line-height:1">Do not turn off PiKVM during this to prevent filesystem<br>
|
||||||
|
corruption, and don't use this mode unnecessarily.<br>
|
||||||
|
It can reduce the resource of the memory card.</sup></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -443,7 +445,7 @@
|
|||||||
</table>
|
</table>
|
||||||
<table class="kv msd-cdrom-emulation feature-disabled">
|
<table class="kv msd-cdrom-emulation feature-disabled">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Drive emulation <a target="_blank" href="https://docs.pikvm.org/msd">mode</a>:</td>
|
<td>Drive <a target="_blank" href="https://docs.pikvm.org/msd">mode</a>:</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="radio-box">
|
<div class="radio-box">
|
||||||
<input checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1">
|
<input checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1">
|
||||||
@@ -452,12 +454,9 @@
|
|||||||
<label for="msd-mode-radio-flash">Flash</label>
|
<label for="msd-mode-radio-flash">Flash</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
<td> </td>
|
||||||
</table>
|
<td class="msd-rw feature-disabled">Writable:</td>
|
||||||
<table class="kv msd-rw feature-disabled">
|
<td class="msd-rw feature-disabled" align="right">
|
||||||
<tr>
|
|
||||||
<td>Read-write mode:</td>
|
|
||||||
<td align="right">
|
|
||||||
<div class="switch-box">
|
<div class="switch-box">
|
||||||
<input disabled type="checkbox" id="msd-rw-switch">
|
<input disabled type="checkbox" id="msd-rw-switch">
|
||||||
<label for="msd-rw-switch"><span class="switch-inner"></span><span class="switch"></span></label>
|
<label for="msd-rw-switch"><span class="switch-inner"></span><span class="switch"></span></label>
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ li(id="msd-dropdown" class="right feature-disabled")
|
|||||||
hr
|
hr
|
||||||
div(id="msd-message-rw-enabled" class="hidden")
|
div(id="msd-message-rw-enabled" class="hidden")
|
||||||
+menu_message("warning", "Read-write mode is enabled")
|
+menu_message("warning", "Read-write mode is enabled")
|
||||||
| Do not turn off PiKVM during this to prevent filesystem corruption
|
| Do not turn off PiKVM during this to prevent filesystem#[br]
|
||||||
|
| corruption, and don't use this mode unnecessarily.#[br]
|
||||||
|
| It can reduce the resource of the memory card.
|
||||||
hr
|
hr
|
||||||
table(class="kv msd-single-storage feature-disabled")
|
table(class="kv msd-single-storage feature-disabled")
|
||||||
tr
|
tr
|
||||||
@@ -45,16 +47,15 @@ li(id="msd-dropdown" class="right feature-disabled")
|
|||||||
td #[button(disabled id="msd-remove-button" title="Remove image") #[b × ]]
|
td #[button(disabled id="msd-remove-button" title="Remove image") #[b × ]]
|
||||||
table(class="kv msd-cdrom-emulation feature-disabled")
|
table(class="kv msd-cdrom-emulation feature-disabled")
|
||||||
tr
|
tr
|
||||||
td Drive emulation #[a(target="_blank" href="https://docs.pikvm.org/msd") mode]:
|
td Drive #[a(target="_blank" href="https://docs.pikvm.org/msd") mode]:
|
||||||
td
|
td
|
||||||
div(class="radio-box")
|
div(class="radio-box")
|
||||||
input(checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1")
|
input(checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1")
|
||||||
label(for="msd-mode-radio-cdrom") CD-ROM
|
label(for="msd-mode-radio-cdrom") CD-ROM
|
||||||
input(type="radio" id="msd-mode-radio-flash" name="msd-mode-radio" value="0")
|
input(type="radio" id="msd-mode-radio-flash" name="msd-mode-radio" value="0")
|
||||||
label(for="msd-mode-radio-flash") Flash
|
label(for="msd-mode-radio-flash") Flash
|
||||||
table(class="kv msd-rw feature-disabled")
|
td
|
||||||
tr
|
+menu_switch_notable("msd-rw-switch", "Writable", false, false, "msd-rw feature-disabled")
|
||||||
+menu_switch_notable("msd-rw-switch", "Read-write mode", false, false)
|
|
||||||
div(class="msd-multi-storage feature-disabled")
|
div(class="msd-multi-storage feature-disabled")
|
||||||
hr
|
hr
|
||||||
div(class="text")
|
div(class="text")
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ mixin menu_message(icon, short, classes="")
|
|||||||
sup(style="line-height:1")
|
sup(style="line-height:1")
|
||||||
block
|
block
|
||||||
|
|
||||||
mixin menu_switch_notable(id, title, enabled, checked)
|
mixin menu_switch_notable(id, title, enabled, checked, classes="")
|
||||||
td #{title}:
|
td(class=`${classes}`) #{title}:
|
||||||
td(align="right")
|
td(class=`${classes}` align="right")
|
||||||
div(class="switch-box")
|
div(class="switch-box")
|
||||||
input(checked=checked disabled=!enabled type="checkbox" id=id)
|
input(checked=checked disabled=!enabled type="checkbox" id=id)
|
||||||
label(for=id)
|
label(for=id)
|
||||||
|
|||||||
Reference in New Issue
Block a user