blowater/app/UI/nav.test.tsx
Water Blower 55d6735e7b
use esbuild & JSR (#486)
and remove submodules
2024-07-03 15:46:31 +08:00

50 lines
1.4 KiB
TypeScript

/** @jsx h */
import { h } from "preact";
import { render } from "preact";
import { NavBar } from "./nav.tsx";
import { testEventBus } from "./_setup.test.ts";
import { PrivateKey } from "@blowater/nostr-sdk";
import { ConnectionPool } from "@blowater/nostr-sdk";
const pool = new ConnectionPool();
await pool.addRelayURLs(
[
"relay.blowater.app",
"nos.lol",
"relay.damus.io",
"nostr.wine",
"wss://relay.nostr.wirednet.jp",
"wss://relay.nostr.moctane.com",
"wss://remnant.cloud",
"wss://nostr.cahlen.org",
"wss://fog.dedyn.io",
"wss://global-relay.cesc.trade",
"wss://nostr.dakukitsune.ca",
"wss://africa.nostr.joburg",
"wss://nostr-relay.ktwo.io",
"wss://bevo.nostr1.com",
"wss://relay.corpum.com",
"wss://relay.nostr.directory",
"wss://nostr.1f52b.xyz",
"wss://lnbits.eldamar.icu/nostrrelay/relay",
"wss://relay.cosmicbolt.net",
"wss://island.nostr1.com",
"wss://nostr.codingarena.de",
"wss://nostr.madco.me",
"wss://nostr-relay.bitcoin.ninja",
],
);
render(
<NavBar
emit={testEventBus.emit}
profile={undefined}
installPrompt={{ event: undefined }}
publicKey={PrivateKey.Generate().toPublicKey()}
activeNav="DM"
pool={pool}
currentRelay="ws://localhost:8000"
/>,
document.body,
);