From 494fa791c93297917cf3247b561d736934de805c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 20 Jan 2025 00:05:30 -0800 Subject: nostr routes --- src/components/Event.svelte | 67 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/components/Event.svelte (limited to 'src/components') diff --git a/src/components/Event.svelte b/src/components/Event.svelte new file mode 100644 index 00000000..289da0b1 --- /dev/null +++ b/src/components/Event.svelte @@ -0,0 +1,67 @@ + + +
+ + +
+ {#each parts as { type, value }, i} + {#if type === "text"} + {value} + {:else if type === "link" && !minimal} + + {:else if type.match(/^nostr:np(rofile|ub)$/)} + @{names[value.pubkey]} + {/if} + {/each} +
+
+ +{#if !minimal} + + + Zap + +{/if} + +{#if zaps?.length} +
+ {#each zaps as { amount, user }} + +
+ +
{amount}
+
+
+ {/each} +
+{/if} -- cgit v1.2.3