From 387990239725ef78bd7191ceb2eac04d1aaa7105 Mon Sep 17 00:00:00 2001 From: Silberengel Date: Tue, 8 Jul 2025 21:37:21 +0200 Subject: [PATCH] fix raw json display and add copy button --- src/lib/components/EventDetails.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/components/EventDetails.svelte b/src/lib/components/EventDetails.svelte index 7951ed4..fcec179 100644 --- a/src/lib/components/EventDetails.svelte +++ b/src/lib/components/EventDetails.svelte @@ -9,6 +9,7 @@ import { getMatchingTags } from '$lib/utils/nostrUtils'; import ProfileHeader from "$components/cards/ProfileHeader.svelte"; import { getUserMetadata } from "$lib/utils/nostrUtils"; + import CopyToClipboard from '$lib/components/util/CopyToClipboard.svelte'; const { event, profile = null, searchValue = null } = $props<{ event: NDKEvent; @@ -186,15 +187,18 @@ {/if} -
+
Show Raw Event JSON +
+ +
-      {JSON.stringify(event.rawEvent(), null, 2)}
+{JSON.stringify(event.rawEvent(), null, 2)}
     
\ No newline at end of file