refactor: add event and user routes to default ui

This commit is contained in:
2024-01-08 09:30:04 +07:00
parent c04ca3a1ab
commit aa80301778
36 changed files with 527 additions and 1765 deletions

View File

@@ -51,7 +51,7 @@ const LumeProvider = ({ children }: PropsWithChildren<object>) => {
// NIP-46 Signer
if (nsecbunker) {
const localSignerPrivkey = await storage.loadPrivkey(
`${storage.account.id}-nsecbunker`,
storage.account.pubkey,
);
if (!localSignerPrivkey) return null;
@@ -63,7 +63,7 @@ const LumeProvider = ({ children }: PropsWithChildren<object>) => {
"wss://nostr.vulpem.com/",
]),
});
await bunker.connect(3000);
await bunker.connect(2000);
const remoteSigner = new NDKNip46Signer(
bunker,
@@ -91,7 +91,7 @@ const LumeProvider = ({ children }: PropsWithChildren<object>) => {
async function init() {
const platformName = await platform();
const sqliteAdapter = await Database.load("sqlite:lume_v2.db");
const sqliteAdapter = await Database.load("sqlite:lume_v3.db");
const storage = new LumeStorage(sqliteAdapter, platformName);
await storage.init();