make tmp cli scrape impl

This commit is contained in:
yggverse 2026-03-05 22:05:56 +02:00
parent 105409a76b
commit e52ed711ba
8 changed files with 312 additions and 47 deletions

View file

@ -2,11 +2,46 @@
{% block content %}
<h2>Game</h2>
{% if servers %}
{% for server in servers %}
<div>
<h2><a href="{{ server.host }}">{{ server.name }}</a></h2>
</div>
{% endfor %}
<table>
<thead>
<tr>
<th>Address</th>
<th>Host</th>
<th>Ping</th>
<th>Protocol</th>
<th>Gamedir</th>
<th>Map</th>
<th>Team</th>
<th>Coop</th>
<th>Password</th>
<th>Dedicated</th>
<th>DM</th>
<th>Max</th>
<th>Online</th>
<th>Status</th>
</tr>
<thead>
</tbody>
{% for server in servers %}
<tr>
<td>{{ server.address }}</td>
<td>{{ server.host }}</td>
<td>{{ server.ping }}</td>
<td>{{ server.protocol }}</td>
<td>{{ server.gamedir }}</td>
<td>{{ server.map }}</td>
<td>{{ server.team }}</td>
<td>{{ server.coop }}</td>
<td>{{ server.password }}</td>
<td>{{ server.dedicated }}</td>
<td>{{ server.dm }}</td>
<td>{{ server.maxcl }}</td>
<td>{{ server.numcl }}</td>
<td>{{ server.status }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div>
<p>Nobody.</p>

View file

@ -9,7 +9,7 @@
padding: 0;
font-family: monospace;
color-scheme: light dark;
--container-max-width: 768px;
--container-max-width: 1024px;
--color-success: #4bc432;
--color-warning: #f37b21;
--color-error: #ff6363;
@ -47,15 +47,16 @@
}
table {
width: 100%;
border-collapse: collapse;
border: 1px solid var(--color-default);
width: 100%;
}
table th,
table td {
border: 1px solid var(--color-default);
padding: 4px;
text-align: center;
}
table tr:hover td {