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> <head>
<meta name=viewport content="width=device-width height=device-height"> <meta name=viewport content="width=device-width height=device-height">
<title>BaseBand download server</title> <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> </head>
<body> <body>
<h1>BaseBand downloads</h1> <h1>BaseBand downloads</h1>
@ -10,37 +38,47 @@
<h2>1.12.2</h2> <h2>1.12.2</h2>
<h3>Artifacts</h3> <div>
<ul> <h3>Artifacts</h3>
<li><a href="/1.12.2/download/client/release">/1.12.2/download/client/release</a></li> <ul>
<li><a href="/1.12.2/download/client/main"> /1.12.2/download/client/main</a></li> <li><a href="/1.12.2/download/client/release">/1.12.2/download/client/release</a></li>
<li><a href="/1.12.2/download/loader"> /1.12.2/download/loader</a></li> <li><a href="/1.12.2/download/client/main"> /1.12.2/download/client/main</a></li>
</ul> <li><a href="/1.12.2/download/loader"> /1.12.2/download/loader</a></li>
</ul>
<h3>Version information</h3> <h3>Version information</h3>
<a href="/1.12.2/branches">/1.12.2/branches</a> <a href="/1.12.2/branches">/1.12.2/branches</a>
</div>
<h2>Ednieva</h2> <h2>Ednieva</h2>
<h3>Artifacts</h3> <div>
<ul> <h3>Artifacts</h3>
<li><a href="/ednieva/download/client/release">/ednieva/download/client/release</a></li> <ul>
<li><a href="/ednieva/download/client/main"> /ednieva/download/client/main</a></li> <li><a href="/ednieva/download/client/release">/ednieva/download/client/release</a></li>
<li><a href="/ednieva/download/loader"> /ednieva/download/loader</a></li> <li><a href="/ednieva/download/client/main"> /ednieva/download/client/main</a></li>
</ul> <li><a href="/ednieva/download/loader"> /ednieva/download/loader</a></li>
</ul>
<h3>Version information</h3> <h3>Version information</h3>
<a href="/ednieva/branches">/ednieva/branches</a> <a href="/ednieva/branches">/ednieva/branches</a>
</div>
<h2>Events</h2> <h2>Events</h2>
The server lets you listen for some events, like refreshes (potential version updates).<br> <div>
<br> The server lets you listen for some events, like refreshes (potential version updates).<br>
<a href="/listen">/listen</a><br> <br>
<br> <a href="/listen">/listen</a><br>
<ul> <br>
<li>init -- No data</li> Sends JSON objects separated by newlines. Your .readln() of choice will work to get the next event.
<li>refresh:[version] -- Same as /[version]/branches</li> Each event contains `event-kind` (string) and `data` (json object).<br>
</ul> <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> </body>