mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fixed gpio platform-specific switches
This commit is contained in:
parent
8c0953aafc
commit
1e11678260
@ -154,7 +154,7 @@
|
|||||||
<button class="small" data-force-hide-menu id="open-log-button">• Log</button>
|
<button class="small" data-force-hide-menu id="open-log-button">• Log</button>
|
||||||
</td>
|
</td>
|
||||||
<td class="feature-disabled" id="system-tool-wol">
|
<td class="feature-disabled" id="system-tool-wol">
|
||||||
<button class="gpio-button small" data-force-hide-menu id="gpio-button-__wol__" data-channel="__wol__" data-confirm="Are you sure to send Wake-on-LAN packet to the server?">• WoL</button>
|
<button class="gpio-button-__wol__ gpio-button small" data-force-hide-menu data-channel="__wol__" data-confirm="Are you sure to send Wake-on-LAN packet to the server?">• WoL</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@ -396,7 +396,7 @@
|
|||||||
<td>Connect main USB to Server:</td>
|
<td>Connect main USB to Server:</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<div class="switch-box">
|
<div class="switch-box">
|
||||||
<input class="gpio-switch" disabled type="checkbox" id="gpio-switch-__v3_usb_breaker__" data-channel="__v3_usb_breaker__" data-confirm-off="Turning off this switch will disconnect the main USB<br>from the server. Are you sure you want to continue?">
|
<input class="gpio-switch-${channel} gpio-switch" disabled type="checkbox" data-channel="__v3_usb_breaker__" data-confirm-off="Turning off this switch will disconnect the main USB<br>from the server. Are you sure you want to continue?">
|
||||||
<label for="gpio-switch-__v3_usb_breaker__"><span class="switch-inner"></span><span class="switch"></span></label>
|
<label for="gpio-switch-__v3_usb_breaker__"><span class="switch-inner"></span><span class="switch"></span></label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@ -405,7 +405,7 @@
|
|||||||
<td>Enable locator LED:</td>
|
<td>Enable locator LED:</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<div class="switch-box">
|
<div class="switch-box">
|
||||||
<input class="gpio-switch" disabled type="checkbox" id="gpio-switch-__v4_locator__" data-channel="__v4_locator__" data-confirm-off="">
|
<input class="gpio-switch-${channel} gpio-switch" disabled type="checkbox" data-channel="__v4_locator__" data-confirm-off="">
|
||||||
<label for="gpio-switch-__v4_locator__"><span class="switch-inner"></span><span class="switch"></span></label>
|
<label for="gpio-switch-__v4_locator__"><span class="switch-inner"></span><span class="switch"></span></label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -13,7 +13,7 @@ li(id="system-dropdown" class="right")
|
|||||||
td(id="system-tool-about") #[button(data-force-hide-menu data-show-window="about-window" class="small") • About]
|
td(id="system-tool-about") #[button(data-force-hide-menu data-show-window="about-window" class="small") • About]
|
||||||
td(id="system-tool-log") #[button(data-force-hide-menu id="open-log-button" class="small") • Log]
|
td(id="system-tool-log") #[button(data-force-hide-menu id="open-log-button" class="small") • Log]
|
||||||
td(id="system-tool-wol" class="feature-disabled")
|
td(id="system-tool-wol" class="feature-disabled")
|
||||||
button(data-force-hide-menu id="gpio-button-__wol__" class="gpio-button small" data-channel="__wol__"
|
button(data-force-hide-menu class="gpio-button-__wol__ gpio-button small" data-channel="__wol__"
|
||||||
data-confirm="Are you sure to send Wake-on-LAN packet to the server?") • WoL
|
data-confirm="Are you sure to send Wake-on-LAN packet to the server?") • WoL
|
||||||
hr
|
hr
|
||||||
div(id="stream-message-no-webrtc" class="hidden")
|
div(id="stream-message-no-webrtc" class="hidden")
|
||||||
|
|||||||
@ -17,7 +17,7 @@ mixin menu_switch_notable_gpio(channel, title, confirm_off="")
|
|||||||
td !{title}:
|
td !{title}:
|
||||||
td(align="right")
|
td(align="right")
|
||||||
div(class="switch-box")
|
div(class="switch-box")
|
||||||
input(disabled type="checkbox" id=`gpio-switch-${channel}` class="gpio-switch"
|
input(disabled type="checkbox" class="gpio-switch-${channel} gpio-switch"
|
||||||
data-channel=channel data-confirm-off=confirm_off)
|
data-channel=channel data-confirm-off=confirm_off)
|
||||||
label(for=`gpio-switch-${channel}`)
|
label(for=`gpio-switch-${channel}`)
|
||||||
span(class="switch-inner")
|
span(class="switch-inner")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user