mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
This commit introduces several new components and improvements: - Added Switch module with firmware update and configuration support - Implemented new media streaming capabilities - Updated various UI elements and CSS styles - Enhanced keyboard and mouse event handling - Added new validators and configuration options - Updated Python version support to 3.13 - Improved error handling and logging
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
mixin navbar_led(id, icon, cls="led-gray")
|
|
img(id=id, class=cls src=`${svg_dir}/${icon}.svg`)
|
|
|
|
mixin menu_message(icon, short, classes="", i18nid)
|
|
div(class="text")
|
|
table
|
|
tr
|
|
td(rowspan="2") #[img(class=`sign ${classes}` src=`${svg_dir}/${icon}.svg`)]
|
|
td(style="line-height:1.5") #[b(i18n=i18nid) #{short}]
|
|
if block
|
|
tr
|
|
td
|
|
sup(style="line-height:1")
|
|
block
|
|
|
|
mixin menu_switch_notable_gpio(channel, title, confirm_off="")
|
|
td !{title}:
|
|
td(align="right")
|
|
div(class="switch-box")
|
|
input(disabled type="checkbox" id=`__gpio-switch-${channel}` class=`__gpio-switch-${channel} gpio-switch`
|
|
data-channel=channel data-confirm-off=confirm_off)
|
|
label(for=`__gpio-switch-${channel}`)
|
|
span(class="switch-inner")
|
|
span(class="switch")
|
|
|
|
mixin menu_switch_notable(id, title, enabled, checked, i18nid)
|
|
td(i18n=i18nid) !{title}:
|
|
td(align="right")
|
|
div(class="switch-box")
|
|
input(checked=checked disabled=!enabled type="checkbox" id=id)
|
|
label(for=id)
|
|
span(class="switch-inner")
|
|
span(class="switch")
|
|
|
|
mixin menu_switch(id, title, enabled, checked, i18nid)
|
|
table(class="kv")
|
|
tr
|
|
+menu_switch_notable(id, title, enabled, checked, i18nid)
|
|
|
|
ul(id="navbar")
|
|
li(class="left")
|
|
a(id="logo" href="/") ←
|
|
img(class="svg-gray" src=`${svg_dir}/logo.svg` alt="π-kvm")
|
|
|
|
include navbar-health.pug
|
|
|
|
include navbar-system.pug
|
|
include navbar-atx.pug
|
|
include navbar-msd.pug
|
|
include navbar-macro.pug
|
|
include navbar-text.pug
|
|
include navbar-shortcuts.pug
|
|
include navbar-gpio.pug
|
|
include navbar-switch.pug
|