clone of repo on github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
552 B

<script lang="ts">
import ArticleHeader from "$lib/ArticleHeader.svelte";
import { ndk } from "$lib/ndk";
import { nip19 } from "nostr-tools";
import { idList } from "$lib/stores";
const kind = 30040;
const count: number = 10;
async function loadEvents() {
const eventlist = await $ndk.fetchEvents({ kinds: [kind] });
return eventlist;
}
const eventlist = loadEvents();
</script>
{#await eventlist}
<p>Loading...</p>
{:then events}
{#each Array.from(events) as event, i}
<ArticleHeader {event} />
{/each}
{/await}