From af3712a06d6fc213d8c607830a38af1fc6b43bb7 Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Sat, 20 Apr 2024 21:20:51 +1200 Subject: [PATCH] problem: can't see user names --- src/lib/components/UserDisplayName.svelte | 58 +++++++++++++++++++++++ src/lib/components/UserName.svelte | 27 ----------- src/lib/components/UserProfile.svelte | 0 src/lib/stores/user.ts | 5 +- src/lib/views/messages/RenderKind1.svelte | 3 +- 5 files changed, 64 insertions(+), 29 deletions(-) create mode 100644 src/lib/components/UserDisplayName.svelte delete mode 100644 src/lib/components/UserName.svelte delete mode 100644 src/lib/components/UserProfile.svelte diff --git a/src/lib/components/UserDisplayName.svelte b/src/lib/components/UserDisplayName.svelte new file mode 100644 index 0000000..a8cb9db --- /dev/null +++ b/src/lib/components/UserDisplayName.svelte @@ -0,0 +1,58 @@ + +{$displayName} diff --git a/src/lib/components/UserName.svelte b/src/lib/components/UserName.svelte deleted file mode 100644 index 0ce5e54..0000000 --- a/src/lib/components/UserName.svelte +++ /dev/null @@ -1,27 +0,0 @@ - - -
- - - -
- {wotScore} -
-
\ No newline at end of file diff --git a/src/lib/components/UserProfile.svelte b/src/lib/components/UserProfile.svelte deleted file mode 100644 index e69de29..0000000 diff --git a/src/lib/stores/user.ts b/src/lib/stores/user.ts index d4b46d2..ee5587b 100644 --- a/src/lib/stores/user.ts +++ b/src/lib/stores/user.ts @@ -1,3 +1,6 @@ +import type { NostrEvent } from "nostr-tools"; import { writable, type Writable } from "svelte/store"; -export let currentPubkey = writable(undefined) \ No newline at end of file +export let currentPubkey = writable(undefined) + +export let kind0 = writable(new Map) \ No newline at end of file diff --git a/src/lib/views/messages/RenderKind1.svelte b/src/lib/views/messages/RenderKind1.svelte index 1cfc11b..ceceac7 100644 --- a/src/lib/views/messages/RenderKind1.svelte +++ b/src/lib/views/messages/RenderKind1.svelte @@ -9,6 +9,7 @@ import { inview } from 'svelte-inview'; import { onMount } from 'svelte'; import { viewed } from '@/snort_workers/main'; + import UserDisplayName from '@/components/UserDisplayName.svelte'; export let note: NostrEvent; export let onClickReply: () => void; @@ -38,7 +39,7 @@ onMount(() => { alt="profile pic" />
-
Marcus
+