nicen up html
All checks were successful
/ Build BaseBand SPLServer (push) Successful in 15s

This commit is contained in:
Daniella / Tove 2024-10-14 05:42:59 +02:00
parent 840259e6f6
commit 6c18fae2d9
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -2,6 +2,34 @@
<head>
<meta name=viewport content="width=device-width height=device-height">
<title>BaseBand download server</title>
<style>
th, td {
border: 1px dotted red;
margin: 0;
padding: 0.3em;
}
table {
border-collapse: collapse;
margin: 1em;
}
a, a:visited {
color: blue;
}
a:active {
color: violet;
}
body {
margin: auto;
width: 90%;
max-width: 700px;
}
html {
padding-bottom: 20%;
}
div {
margin: 0 1em 0 1em;
}
</style>
</head>
<body>
<h1>BaseBand downloads</h1>
@ -10,6 +38,7 @@
<h2>1.12.2</h2>
<div>
<h3>Artifacts</h3>
<ul>
<li><a href="/1.12.2/download/client/release">/1.12.2/download/client/release</a></li>
@ -19,9 +48,11 @@
<h3>Version information</h3>
<a href="/1.12.2/branches">/1.12.2/branches</a>
</div>
<h2>Ednieva</h2>
<div>
<h3>Artifacts</h3>
<ul>
<li><a href="/ednieva/download/client/release">/ednieva/download/client/release</a></li>
@ -31,16 +62,23 @@
<h3>Version information</h3>
<a href="/ednieva/branches">/ednieva/branches</a>
</div>
<h2>Events</h2>
<div>
The server lets you listen for some events, like refreshes (potential version updates).<br>
<br>
<a href="/listen">/listen</a><br>
<br>
<ul>
<li>init -- No data</li>
<li>refresh:[version] -- Same as /[version]/branches</li>
Sends JSON objects separated by newlines. Your .readln() of choice will work to get the next event.
Each event contains `event-kind` (string) and `data` (json object).<br>
<br>
<table>
<tr><th>event-kind</th><th>data</th>
<tr><td>init</td><td>-</td></tr>
<tr><td>refresh:[version]</td><td>Same as /[version]/branches</td></tr>
</ul>
</div>
</body>