agent icon: render on dashboard + per-agent web UI
Consumes the GET /icon endpoint from #139: - Dashboard: each container card shows the agent's icon next to its name (26px). Loaded from <agent-url>/icon; onerror hides it for a stopped container whose web server isn't answering. - Per-agent web UI: the agent's icon next to the page title (40px), and /icon as the favicon on the index, stats, and screen pages. /icon always returns an image (configured SVG or the default hyperhive logo), so no presence check is needed. Closes #140
This commit is contained in:
parent
39bd46b244
commit
62aa3bb3ec
6 changed files with 32 additions and 1 deletions
|
|
@ -3,11 +3,15 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>hyperhive agent</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/icon">
|
||||
<link rel="stylesheet" href="/static/agent.css">
|
||||
</head>
|
||||
<body>
|
||||
<pre class="banner" id="banner">░▒▓█▓▒░ … ░▒▓█▓▒░ hyperhive ag3nt ░▒▓█▓▒░</pre>
|
||||
<h2 id="title">◆ … ◆</h2>
|
||||
<div class="title-row">
|
||||
<img class="agent-icon" src="/icon" alt="">
|
||||
<h2 id="title">◆ … ◆</h2>
|
||||
</div>
|
||||
<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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue