forked from coracle/caravel
Format backend, tweak frontend
This commit is contained in:
+2
-2
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) => (
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user