修复前端 wol 类名错误

修复前端 meta 块错误
This commit is contained in:
mofeng-git 2024-11-26 05:42:18 +00:00
parent 666f0b694a
commit a32dcd2e00
4 changed files with 22 additions and 6 deletions

View File

@ -12,6 +12,9 @@ kvmd:
device: /dev/null device: /dev/null
noop: true noop: true
wol:
mac: 00:00:00:00:00:00
msd: msd:
type: otg type: otg
remount_cmd: /bin/true remount_cmd: /bin/true

View File

@ -157,7 +157,7 @@
<button class="small" data-force-hide-menu id="open-log-button" i18n="kvm_text7">&bull; Log</button> <button class="small" data-force-hide-menu id="open-log-button" i18n="kvm_text7">&bull; 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?" i18n="kvm_text8">&bull; 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?" i18n="kvm_text8">&bull; WoL</button>
</td> </td>
</tr> </tr>
</table> </table>
@ -2042,9 +2042,14 @@
</table><br> </table><br>
<div class="tabs-box"> <div class="tabs-box">
<input checked type="radio" name="about-tab-button" id="about-tab-meta-button"> <input checked type="radio" name="about-tab-button" id="about-tab-meta-button">
<label for="about-tab-meta-button" i18n="meta">Meta</label> <label for="about-tab-meta-button">Meta</label>
<div class="tab"> <div class="tab">
<div class="code" id="about-meta"><span class="code-comment">No data</span> <div class="code" id="about-meta">
<div><span class="code-comment">// You can get this JSON using handle <a target="_blank" href="/api/info?fields=meta">/api/info?fields=meta</a><br>
// In the standard configuration this data<br>
// is specified in the file /etc/kvmd/meta.yaml</span><br>
<pre id="kvmd-meta-json">No data</pre>
</div>
</div> </div>
</div> </div>
<input checked="hardware" type="radio" name="about-tab-button" id="about-tab-hardware-button"> <input checked="hardware" type="radio" name="about-tab-button" id="about-tab-hardware-button">

View File

@ -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" i18n="kvm_text6") &bull; About] td(id="system-tool-about") #[button(data-force-hide-menu data-show-window="about-window" class="small" i18n="kvm_text6") &bull; About]
td(id="system-tool-log") #[button(data-force-hide-menu id="open-log-button" class="small" i18n="kvm_text7") &bull; Log] td(id="system-tool-log") #[button(data-force-hide-menu id="open-log-button" class="small" i18n="kvm_text7") &bull; 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?" i18n="kvm_text8") &bull; WoL data-confirm="Are you sure to send Wake-on-LAN packet to the server?" i18n="kvm_text8") &bull; WoL
hr hr
div(id="stream-message-no-webrtc" class="hidden") div(id="stream-message-no-webrtc" class="hidden")

View File

@ -13,7 +13,6 @@ div(id="about-window" class="window")
div(class="window-header") div(class="window-header")
div(class="window-grab" i18n="kvm_text1") About div(class="window-grab" i18n="kvm_text1") About
button(class="window-button-close") #[b &times;] button(class="window-button-close") #[b &times;]
div(id="about") div(id="about")
table table
tr tr
@ -28,7 +27,16 @@ div(id="about-window" class="window")
| Copyright &copy; 2018-2024 #[a(target="_blank" href="mailto:mdevaev@gmail.com") Maxim Devaev] | Copyright &copy; 2018-2024 #[a(target="_blank" href="mailto:mdevaev@gmail.com") Maxim Devaev]
br br
div(class="tabs-box") div(class="tabs-box")
+about_tab("meta", "Meta", true, "meta") +about_tab("meta", "Meta", true)
div
span(class="code-comment")
| // You can get this JSON using handle #[a(target="_blank" href="/api/info?fields=meta") /api/info?fields=meta]#[br]
| // In the standard configuration this data#[br]
| // is specified in the file /etc/kvmd/meta.yaml
br
pre(id="kvmd-meta-json")
| No data
+about_tab("hardware", "Hardware", "hardware") +about_tab("hardware", "Hardware", "hardware")
+about_tab("version", "Version", "version") +about_tab("version", "Version", "version")