mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
e86101ae7f
* remove nip-07 extension sign-in temporarily * bring kind-1 back! * separated relay views
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
/** @jsx h */
|
|
import { h } from "https://esm.sh/preact@10.17.1";
|
|
import { render } from "https://esm.sh/preact@10.17.1";
|
|
import { NavBar } from "./nav.tsx";
|
|
import { testEventBus } from "./_setup.test.ts";
|
|
import { PrivateKey } from "../../libs/nostr.ts/key.ts";
|
|
import { ConnectionPool } from "../../libs/nostr.ts/relay-pool.ts";
|
|
|
|
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}
|
|
/>,
|
|
document.body,
|
|
);
|