web/js: show more errors when some probable error cases happen (#151)

Closes #150

This should hopefully make Anubis more self-describing when errors do
happen so users can self-service.
This commit is contained in:
Xe Iaso 2025-03-28 15:47:18 -04:00 committed by GitHub
parent 937f1dd330
commit 6b2ae30bae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 103 additions and 38 deletions

View file

@ -128,6 +128,11 @@ templ base(title string, body templ.Component) {
left: 12.28719px;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
@keyframes lds-roller {
0% {
transform: rotate(0deg);
@ -176,7 +181,7 @@ templ index() {
/>
<p id="status">Loading...</p>
<script async type="module" src={ "/.within.website/x/cmd/anubis/static/js/main.mjs?cacheBuster=" + anubis.Version }></script>
<div id="spinner" class="lds-roller">
<div id="spinner" class="lds-roller mx-auto" style="display:none;">
<div></div>
<div></div>
<div></div>