All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Station: Ward -> Station, Cabinet -> Desk, Table -> Desk - Atlas: Album -> Atlas - All templates now read from config.json for titles/taglines - Added shunts.json and plexuses.json data files - run.py passes system and components to all templates
268 lines
8.8 KiB
HTML
268 lines
8.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>{{ system.title or 'Station' }} · Soleprint</title>
|
|
<link
|
|
rel="icon"
|
|
type="image/svg+xml"
|
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%231d4ed8'%3E%3Crect x='4' y='8' width='40' height='28' rx='3' fill='%231d4ed8'/%3E%3Crect x='8' y='12' width='32' height='20' rx='2' fill='%230a0a0a'/%3E%3Crect x='16' y='36' width='16' height='4' fill='%231d4ed8'/%3E%3Crect x='12' y='40' width='24' height='3' rx='1' fill='%231d4ed8'/%3E%3C/svg%3E"
|
|
/>
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
html {
|
|
background: #0a0a0a;
|
|
}
|
|
body {
|
|
font-family:
|
|
system-ui,
|
|
-apple-system,
|
|
sans-serif;
|
|
max-width: 960px;
|
|
margin: 0 auto;
|
|
padding: 2rem 1rem;
|
|
line-height: 1.6;
|
|
color: #e5e5e5;
|
|
background: #1d4ed8;
|
|
}
|
|
header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
color: white;
|
|
}
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
margin: 0;
|
|
color: white;
|
|
}
|
|
.tagline {
|
|
color: rgba(255, 255, 255, 0.85);
|
|
margin-bottom: 2rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
|
padding-bottom: 2rem;
|
|
}
|
|
section {
|
|
background: #0a0a0a;
|
|
padding: 1.5rem;
|
|
margin: 1.5rem 0;
|
|
border-radius: 12px;
|
|
}
|
|
section h2 {
|
|
margin: 0 0 1rem 0;
|
|
font-size: 1.2rem;
|
|
color: #93c5fd;
|
|
}
|
|
.composition {
|
|
background: #1a1a1a;
|
|
border: 2px solid #1d4ed8;
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
}
|
|
.composition h3 {
|
|
margin: 0 0 0.75rem 0;
|
|
font-size: 1.1rem;
|
|
color: #93c5fd;
|
|
}
|
|
.composition > p {
|
|
margin: 0 0 1rem 0;
|
|
font-size: 0.9rem;
|
|
color: #a3a3a3;
|
|
}
|
|
.components {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 0.75rem;
|
|
}
|
|
.component {
|
|
background: #0a0a0a;
|
|
border: 1px solid #3f3f3f;
|
|
padding: 0.75rem;
|
|
border-radius: 8px;
|
|
}
|
|
.component h4 {
|
|
margin: 0 0 0.25rem 0;
|
|
font-size: 0.95rem;
|
|
color: #93c5fd;
|
|
}
|
|
.component p {
|
|
margin: 0;
|
|
font-size: 0.85rem;
|
|
color: #a3a3a3;
|
|
}
|
|
.tables {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.tables li {
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid #3f3f3f;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.tables li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
.tables .name {
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
color: #e5e5e5;
|
|
}
|
|
.tables a.name:hover {
|
|
color: #93c5fd;
|
|
}
|
|
.status {
|
|
font-size: 0.75rem;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 4px;
|
|
text-transform: uppercase;
|
|
background: #2a2a2a;
|
|
color: #a3a3a3;
|
|
}
|
|
.health {
|
|
display: inline-block;
|
|
margin-top: 1rem;
|
|
padding: 0.5rem 1rem;
|
|
background: #1a1a1a;
|
|
border: 1px solid #3f3f3f;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
color: #93c5fd;
|
|
text-decoration: none;
|
|
}
|
|
.health:hover {
|
|
background: #2a2a2a;
|
|
}
|
|
footer {
|
|
margin-top: 3rem;
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.3);
|
|
font-size: 0.85rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
footer a {
|
|
color: white;
|
|
}
|
|
footer .disabled {
|
|
opacity: 0.5;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header style="position: relative">
|
|
<!-- Control station / monitor -->
|
|
<svg class="logo" viewBox="0 0 48 48" fill="currentColor">
|
|
<rect x="4" y="8" width="40" height="28" rx="3" />
|
|
<rect
|
|
x="8"
|
|
y="12"
|
|
width="32"
|
|
height="20"
|
|
rx="2"
|
|
fill="#1d4ed8"
|
|
/>
|
|
<rect x="16" y="36" width="16" height="4" />
|
|
<rect x="12" y="40" width="24" height="3" rx="1" />
|
|
</svg>
|
|
<h1>{{ system.title or 'Station' }}</h1>
|
|
{% if soleprint_url %}<a
|
|
href="{{ soleprint_url }}"
|
|
style="
|
|
position: absolute;
|
|
right: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 0.85rem;
|
|
"
|
|
>← Soleprint</a
|
|
>{% endif %}
|
|
</header>
|
|
<p class="tagline">{{ system.tagline or 'Monitors & Tools' }}</p>
|
|
|
|
<section>
|
|
<div class="composition">
|
|
<h3>
|
|
{{ components.composed.title or 'Desk' }} = {{
|
|
components.composed.formula or 'Tools + Room + Depots' }}
|
|
</h3>
|
|
<p>
|
|
{{ components.composed.description or 'A configured
|
|
workspace' }}
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>{{ (components.composed.plural or 'desks')|title }}</h2>
|
|
<ul class="tables">
|
|
{% for desk in desks %}
|
|
<li>
|
|
<span class="name">{{ desk.title }}</span
|
|
><span class="status">{{ desk.status }}</span>
|
|
</li>
|
|
{% else %}
|
|
<li><span class="name">--</span></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>{{ (components.watcher.plural or 'monitors')|title }}</h2>
|
|
<ul class="tables">
|
|
{% for monitor in monitors %}
|
|
<li>
|
|
<a href="/monitor/{{ monitor.slug }}/" class="name"
|
|
>{{ monitor.title }}</a
|
|
><span class="status">{{ monitor.status }}</span>
|
|
</li>
|
|
{% else %}
|
|
<li><span class="name">--</span></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>{{ (components.utility.plural or 'tools')|title }}</h2>
|
|
<ul class="tables">
|
|
{% for tool in tools %}
|
|
<li>
|
|
{% if tool.type == 'app' and tool.url %}
|
|
<a href="{{ tool.url }}" class="name">{{ tool.title }}</a>
|
|
{% else %}
|
|
<span class="name">{{ tool.title }}</span>
|
|
{% if tool.cli %}<code
|
|
style="
|
|
font-size: 0.75rem;
|
|
color: #666;
|
|
margin-left: 0.5rem;
|
|
"
|
|
>{{ tool.cli }}</code
|
|
>{% endif %} {% endif %}
|
|
<span class="status">{{ tool.status }}</span>
|
|
</li>
|
|
{% else %}
|
|
<li><span class="name">--</span></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
|
|
<a href="/health" class="health">/health</a>
|
|
|
|
<footer>
|
|
{% if soleprint_url %}<a href="{{ soleprint_url }}">← Soleprint</a
|
|
>{% else %}<span class="disabled">← Soleprint</span>{% endif %}
|
|
</footer>
|
|
</body>
|
|
</html>
|