summaryrefslogtreecommitdiff
path: root/web/kvm
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-11-05 18:17:00 +0200
committerMaxim Devaev <[email protected]>2024-11-05 18:17:04 +0200
commitf1503d69e0b15caa5d8fd0f4fb30b91d516db2ea (patch)
treefabf052a16237e9947356310be427621fc0dd705 /web/kvm
parent0010dd1d114d5c03b7397394b8e12dee5908669d (diff)
pikvm/pikvm#1207: Draw UI tips via meta.yaml
Diffstat (limited to 'web/kvm')
-rw-r--r--web/kvm/index.html19
-rw-r--r--web/kvm/index.pug10
-rw-r--r--web/kvm/window-about.pug9
3 files changed, 33 insertions, 5 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 960535f2..0c40cc83 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -1999,7 +1999,12 @@
<input checked type="radio" name="about-tab-button" id="about-tab-meta-button">
<label for="about-tab-meta-button">Meta</label>
<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>
<input type="radio" name="about-tab-button" id="about-tab-hardware-button">
@@ -2673,9 +2678,17 @@
</div>
<iframe id="webterm-iframe" src="" style="width: 100%; height: 100%"></iframe>
</div>
+ <ul class="navbar-bg-tips">
+ <li class="left">
+ <pre id="kvmd-meta-tips-left"></pre>
+ </li>
+ <li class="right">
+ <pre id="kvmd-meta-tips-right"></pre>
+ </li>
+ </ul>
<ul class="footer">
- <li class="footer-left"><span id="kvmd-meta-server-host" title="Server name (see System/About)"></span>&nbsp; | &nbsp;<span id="kvmd-version-kvmd" title="KVMD version"></span>&nbsp; | &nbsp;<span id="kvmd-version-streamer" title="Streamer version"></span></li>
- <li class="footer-right"><a target="_blank" href="https://pikvm.org">PiKVM Project</a>&nbsp; | &nbsp;<a target="_blank" href="https://docs.pikvm.org">Documentation</a>&nbsp; | &nbsp;<a target="_blank" href="https://pikvm.org/support">Support</a></li>
+ <li class="left"><span id="kvmd-meta-server-host" title="Server name (see System/About)"></span>&nbsp; | &nbsp;<span id="kvmd-version-kvmd" title="KVMD version"></span>&nbsp; | &nbsp;<span id="kvmd-version-streamer" title="Streamer version"></span></li>
+ <li class="right"><a target="_blank" href="https://pikvm.org">PiKVM Project</a>&nbsp; | &nbsp;<a target="_blank" href="https://docs.pikvm.org">Documentation</a>&nbsp; | &nbsp;<a target="_blank" href="https://pikvm.org/support">Support</a></li>
</ul>
</body>
</html> \ No newline at end of file
diff --git a/web/kvm/index.pug b/web/kvm/index.pug
index a6c53f70..ef694dde 100644
--- a/web/kvm/index.pug
+++ b/web/kvm/index.pug
@@ -11,14 +11,20 @@ block body
include navbar.pug
include windows.pug
+ ul(class="navbar-bg-tips")
+ li(class="left")
+ pre(id="kvmd-meta-tips-left")
+ li(class="right")
+ pre(id="kvmd-meta-tips-right")
+
ul(class="footer")
- li(class="footer-left")
+ li(class="left")
span(id="kvmd-meta-server-host" title="Server name (see System/About)")
| &nbsp; | &nbsp;
span(id="kvmd-version-kvmd" title="KVMD version")
| &nbsp; | &nbsp;
span(id="kvmd-version-streamer" title="Streamer version")
- li(class="footer-right")
+ li(class="right")
a(target="_blank" href="https://pikvm.org") PiKVM Project
| &nbsp; | &nbsp;
a(target="_blank" href="https://docs.pikvm.org") Documentation
diff --git a/web/kvm/window-about.pug b/web/kvm/window-about.pug
index 42503c6c..a9c50aac 100644
--- a/web/kvm/window-about.pug
+++ b/web/kvm/window-about.pug
@@ -29,6 +29,15 @@ div(id="about-window" class="window")
br
div(class="tabs-box")
+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")
+about_tab("version", "Version")