From 441d69e40aa556acb08c9978896e490dac693f1f Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 17 Oct 2024 16:17:49 -0700 Subject: [PATCH] Add id and link to event details --- src/app/components/EventInfo.svelte | 42 ++++++++++++++++++++++++++- src/assets/icons/File.svg | 4 +++ src/lib/components/FieldInline.svelte | 6 ++-- src/lib/components/Icon.svelte | 2 ++ 4 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 src/assets/icons/File.svg diff --git a/src/app/components/EventInfo.svelte b/src/app/components/EventInfo.svelte index 87049c14..f9dd277a 100644 --- a/src/app/components/EventInfo.svelte +++ b/src/app/components/EventInfo.svelte @@ -1,8 +1,21 @@
@@ -10,6 +23,33 @@
Event Details
The full details of this event are shown below.
-
{JSON.stringify(event, null, 2)}
+ +

Event ID

+ +
+ +

Author Pubkey

+ +
+
+
{json}
+

+ +

+
diff --git a/src/assets/icons/File.svg b/src/assets/icons/File.svg new file mode 100644 index 00000000..db617ecc --- /dev/null +++ b/src/assets/icons/File.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/lib/components/FieldInline.svelte b/src/lib/components/FieldInline.svelte index 7ccaf925..20269353 100644 --- a/src/lib/components/FieldInline.svelte +++ b/src/lib/components/FieldInline.svelte @@ -1,9 +1,11 @@
-
+
- +
+ +
{#if $$slots.info}

diff --git a/src/lib/components/Icon.svelte b/src/lib/components/Icon.svelte index 767db3b5..e01cd77e 100644 --- a/src/lib/components/Icon.svelte +++ b/src/lib/components/Icon.svelte @@ -36,6 +36,7 @@ import CompassBig from "@assets/icons/Compass Big.svg?dataurl" import Danger from "@assets/icons/Danger.svg?dataurl" import Exit from "@assets/icons/Exit.svg?dataurl" + import File from "@assets/icons/File.svg?dataurl" import FireMinimalistic from "@assets/icons/Fire Minimalistic.svg?dataurl" import GallerySend from "@assets/icons/Gallery Send.svg?dataurl" import Ghost from "@assets/icons/Ghost.svg?dataurl" @@ -109,6 +110,7 @@ "compass-big": CompassBig, danger: Danger, exit: Exit, + file: File, "fire-minimalistic": FireMinimalistic, "gallery-send": GallerySend, ghost: Ghost,