Add a temporary nsec login option, for testing
This commit is contained in:
parent
fa56d0252d
commit
fab4edd721
6 changed files with 277 additions and 17 deletions
|
|
@ -4,6 +4,7 @@
|
|||
import Navbar from "$lib/components/Navbar.svelte";
|
||||
import LeftSidebar from "$lib/components/LeftSidebar.svelte";
|
||||
import ChatSidebar from "$lib/components/ChatSidebar.svelte";
|
||||
import LoginModal from "$lib/components/LoginModal.svelte";
|
||||
import { page } from "$app/state";
|
||||
import { onMount } from "svelte";
|
||||
import { restoreSession } from "$lib/auth.svelte";
|
||||
|
|
@ -45,3 +46,5 @@
|
|||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<LoginModal />
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
sendReply,
|
||||
type PostData,
|
||||
} from "$lib/thread.svelte";
|
||||
import { auth, login } from "$lib/auth.svelte";
|
||||
import { auth, openLogin } from "$lib/auth.svelte";
|
||||
import Reactions from "$lib/components/Reactions.svelte";
|
||||
import ThreadScrubber from "$lib/components/ThreadScrubber.svelte";
|
||||
import type { NostrUser } from "@nostr/gadgets/metadata";
|
||||
|
|
@ -200,7 +200,7 @@
|
|||
{:else}
|
||||
<p class=" text-gray-500 text-center">
|
||||
To participate and reply, please
|
||||
<button onclick={login} class="text-brand hover:underline"
|
||||
<button onclick={openLogin} class="text-brand hover:underline"
|
||||
>login now</button
|
||||
>
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue