mirror of
https://github.com/aljazceru/hypergolic.git
synced 2026-01-14 02:54:19 +01:00
problem: can't see who created a Rocket
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
import { base } from '$app/paths';
|
||||
import { Button } from '$lib/components/ui/button/index.js';
|
||||
import * as Card from '$lib/components/ui/card/index.js';
|
||||
import { Name, Avatar } from "@nostr-dev-kit/ndk-svelte-components";
|
||||
import { getMission, getRocketURL } from '@/helpers';
|
||||
import type { NDKEvent } from '@nostr-dev-kit/ndk';
|
||||
import { ChevronRight } from 'lucide-svelte';
|
||||
import { ndk } from "@/ndk";
|
||||
|
||||
export let rocketEvent: NDKEvent;
|
||||
//$page.url.searchParams.get("tab")
|
||||
@@ -17,7 +19,12 @@
|
||||
<Card.Title>{rocketEvent.getMatchingTags('d')[0][1]}</Card.Title>
|
||||
<Card.Description>{getMission(rocketEvent)}</Card.Description>
|
||||
</Card.Header>
|
||||
<Card.Content></Card.Content>
|
||||
<Card.Content>
|
||||
<div class="flex items-center gap-2">
|
||||
<Avatar ndk={$ndk} pubkey={rocketEvent.pubkey} class="w-5 h-5 object-cover rounded-full flex-none" />
|
||||
<Name ndk={$ndk} pubkey={rocketEvent.pubkey} class="inline-block truncate" />
|
||||
</div>
|
||||
</Card.Content>
|
||||
<Card.Footer class="flex justify-between">
|
||||
<Button on:click={()=>{console.log(rocketEvent.rawEvent())}} variant="outline">Print to Console</Button>
|
||||
<Button on:click={()=>{goto(`${base}/rockets/${getRocketURL(rocketEvent)}`)}}>View Full Rocket<ChevronRight class="h-4 w-4" /></Button>
|
||||
|
||||
Reference in New Issue
Block a user