Format backend, tweak frontend

This commit is contained in:
Jon Staab
2026-02-27 21:26:45 -08:00
parent a3f00aab37
commit e87eb0c30d
14 changed files with 289 additions and 83 deletions
+2 -2
View File
@@ -2,9 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/png" href="/caravel.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>frontend</title>
<title>Caravel</title>
</head>
<body>
<div id="root"></div>
+3 -1
View File
@@ -2,10 +2,12 @@
import { render } from "solid-js/web"
import "./index.css"
import App from "./App"
import { restoreAccounts } from "./lib/nostr"
import { PLATFORM_NAME, restoreAccounts } from "./lib/nostr"
const root = document.getElementById("root")!
document.title = PLATFORM_NAME
import("preline").then(() => {
restoreAccounts()
render(() => <App />, root)
+1 -1
View File
@@ -52,7 +52,7 @@ export default function AdminRelayList() {
errorText="Failed to load relays."
/>
<Show when={!loading()}>
<Show when={(filtered().length ?? 0) > 0} fallback={<p class="text-gray-500">No relays found.</p>}>
<Show when={(filtered().length ?? 0) > 0} fallback={<p class="py-20 text-center text-gray-500">No relays found.</p>}>
<ul class="space-y-3">
<For each={filtered()}>
{(relay) => (
+1 -1
View File
@@ -92,7 +92,7 @@ export default function AdminTenantList() {
errorText="Failed to load tenants."
/>
<Show when={!loading()}>
<Show when={(filtered().length ?? 0) > 0} fallback={<p class="text-gray-500">No tenants found.</p>}>
<Show when={(filtered().length ?? 0) > 0} fallback={<p class="py-20 text-center text-gray-500">No tenants found.</p>}>
<ul class="space-y-3">
<For each={filtered()}>
{(tenant) => {
+1 -1
View File
@@ -79,7 +79,7 @@ export default function RelayList() {
/>
<Show when={!loading()}>
<Show when={(filtered().length ?? 0) > 0} fallback={<p class="text-gray-500">No relays match your filters.</p>}>
<Show when={(filtered().length ?? 0) > 0} fallback={<p class="py-20 text-center text-gray-500">No relays found.</p>}>
<ul class="space-y-3">
<For each={filtered()}>
{(relay) => (