mirror of
https://github.com/hoornet/vega.git
synced 2026-05-11 06:39:10 -07:00
Compose, reactions, replies + feed filtering
- Add ComposeBox with Ctrl+Enter shortcut and char limit
- Add reply/like actions to NoteCard with inline reply box
- Add publishNote, publishReaction, publishReply to nostr lib
- Filter bot JSON blobs from feed (content starting with { or [)
- Fix sidebar login button always visible (shrink-0 + nav overflow)
- Restore pubkey sessions from localStorage on startup
- Add CLAUDE.md with project guidance
- Add thread view and onboarding notes to AGENTS.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
10
src/main.tsx
10
src/main.tsx
@@ -2,6 +2,16 @@ import { StrictMode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import App from "./App";
|
||||
import "./index.css";
|
||||
import { useUserStore } from "./stores/user";
|
||||
|
||||
// Restore session from localStorage
|
||||
const savedPubkey = localStorage.getItem("wrystr_pubkey");
|
||||
const savedLoginType = localStorage.getItem("wrystr_login_type");
|
||||
if (savedPubkey && savedLoginType === "pubkey") {
|
||||
useUserStore.getState().loginWithPubkey(savedPubkey);
|
||||
}
|
||||
// Note: nsec is never stored, so nsec sessions can't be auto-restored.
|
||||
// Future: restore via OS keychain.
|
||||
|
||||
createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<StrictMode>
|
||||
|
||||
Reference in New Issue
Block a user