{#if event.kind !== 0 && getEventTitle(event)}
{getEventTitle(event)}
{/if} {#if event.kind === 0}
{/if}
{#if toNpub(event.pubkey)}
Author: {@render userBadge( toNpub(event.pubkey) as string, profile?.display_name || undefined, )}
{:else}
Author: {profile?.display_name || event.pubkey}
{/if}
Kind:
{event.kind}
({getEventTypeDisplay(event)})
{#if getEventSummary(event)}
Summary:
{getEventSummary(event)}
{/if}
{#if event.kind !== 0}
Content:
{#if shouldTruncate}
(showFullContent = true)}>Show more
{/if}
{/if} {#if event.kind === 0}
{/if}
Show details
Identifiers:
{#each getIdentifiers(event, profile) as identifier}
{identifier.label}:
{#if identifier.link}
{identifier.value.slice(0, 20)}...{identifier.value.slice(-8)}
{:else}
{identifier.value.slice(0, 20)}...{identifier.value.slice(-8)}
{/if}
{/each}
{#if event.tags && event.tags.length}
Event Tags:
{#each event.tags as tag} {@const tagInfo = getTagButtonInfo(tag)} {#if tagInfo.text && tagInfo.gotoValue}
{ // Handle different types of gotoValue if ( tagInfo.gotoValue!.startsWith("naddr") || tagInfo.gotoValue!.startsWith("nevent") || tagInfo.gotoValue!.startsWith("npub") || tagInfo.gotoValue!.startsWith("nprofile") || tagInfo.gotoValue!.startsWith("note") ) { // For naddr, nevent, npub, nprofile, note - navigate directly goto(`/events?id=${tagInfo.gotoValue!}`); } else if (tagInfo.gotoValue!.startsWith("/")) { // For relative URLs - navigate directly goto(tagInfo.gotoValue!); } else if (tagInfo.gotoValue!.startsWith("d:")) { // For d-tag searches - navigate to d-tag search const dTag = tagInfo.gotoValue!.substring(2); goto(`/events?d=${encodeURIComponent(dTag)}`); } else if (tagInfo.gotoValue!.startsWith("t:")) { // For t-tag searches - navigate to t-tag search const tTag = tagInfo.gotoValue!.substring(2); goto(`/events?t=${encodeURIComponent(tTag)}`); } else if (/^[0-9a-fA-F]{64}$/.test(tagInfo.gotoValue!)) { // For hex event IDs - use navigateToEvent navigateToEvent(tagInfo.gotoValue!); } else { // For other cases, try direct navigation goto(`/events?id=${tagInfo.gotoValue!}`); } }} class="text-primary-700 dark:text-primary-300 cursor-pointer bg-transparent border-none p-0 text-left hover:text-primary-900 dark:hover:text-primary-100 break-all max-w-full" > {tagInfo.text}
{/if} {/each}
{/if}
Raw Event JSON:
{JSON.stringify(event.rawEvent(), null, 2)}