From 3f258ea37faf150f201fa76504a874596ee7905f Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 23 Jan 2025 16:40:00 -0800 Subject: unified event endpoint --- src/components/Event.svelte | 85 ++++++++++++---------- src/components/Media.svelte | 30 ++++---- .../(app)/[username]/(profile)/+layout.server.ts | 3 - src/routes/(app)/e/[id]/+page.server.ts | 8 +- src/routes/(app)/thread/[id]/+page.svelte | 1 - 5 files changed, 61 insertions(+), 66 deletions(-) (limited to 'src') diff --git a/src/components/Event.svelte b/src/components/Event.svelte index 6690ecde..aa8d1ac8 100644 --- a/src/components/Event.svelte +++ b/src/components/Event.svelte @@ -29,48 +29,55 @@ }; -
-
- - + {#if zaps?.length}
diff --git a/src/components/Media.svelte b/src/components/Media.svelte index c2a79a2b..bd681f6f 100644 --- a/src/components/Media.svelte +++ b/src/components/Media.svelte @@ -9,19 +9,17 @@ let { value, minimal } = $props(); -
- {#if !!isImage(value.url)} - {""} - {:else if isVideo(value.url)} - -
+{#if !!isImage(value.url)} + {""} +{:else if isVideo(value.url)} + +