agent UI: show 🖥 screen link when gui_enabled
index.html: add hidden #screen-link anchor (/screen, new tab). app.js: reveal it in refreshState() when api/state returns gui_enabled=true. gui_enabled is set by the harness when /etc/hyperhive/gui.json exists (written by the weston VNC service from issue #50). The link opens the RFB viewer from issue #51 in a new tab. Closes #52
This commit is contained in:
parent
e448db2c34
commit
42437f9c6a
2 changed files with 8 additions and 1 deletions
|
|
@ -8,7 +8,11 @@
|
|||
<body>
|
||||
<pre class="banner" id="banner">░▒▓█▓▒░ … ░▒▓█▓▒░ hyperhive ag3nt ░▒▓█▓▒░</pre>
|
||||
<h2 id="title">◆ … ◆</h2>
|
||||
<p class="meta"><a href="/stats" style="color: var(--cyan); text-decoration: none;">📊 stats →</a></p>
|
||||
<p class="meta">
|
||||
<a href="/stats" style="color: var(--cyan); text-decoration: none;">📊 stats →</a>
|
||||
<a id="screen-link" href="/screen" target="_blank" rel="noopener"
|
||||
style="display:none; color: var(--cyan); text-decoration: none; margin-left: 1em;">🖥 screen →</a>
|
||||
</p>
|
||||
|
||||
<div id="status">
|
||||
<p class="meta">loading…</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue