tangled
alpha
login
or
join now
flo-bit.dev
/
blento
21
fork
atom
your personal website on atproto - mirror
blento.app
21
fork
atom
overview
issues
pulls
pipelines
event card fixes
Florian
2 weeks ago
64299018
6ff9dbad
+2
-2
2 changed files
expand all
collapse all
unified
split
src
lib
cards
social
UpcomingEventsCard
index.ts
UpcomingRsvpsCard
index.ts
+1
-1
src/lib/cards/social/UpcomingEventsCard/index.ts
···
1
1
-
import { listRecords } from '$lib/atproto';
2
1
import type { CardDefinition } from '../../types';
3
2
import UpcomingEventsCard from './UpcomingEventsCard.svelte';
4
3
import type { Did } from '@atcute/lexicons';
···
19
18
minH: 3,
20
19
21
20
loadData: async (_items, { did }) => {
21
21
+
const { listRecords } = await import('$lib/atproto/methods');
22
22
const records = await listRecords({
23
23
did: did as Did,
24
24
collection: EVENT_COLLECTION,
+1
-1
src/lib/cards/social/UpcomingRsvpsCard/index.ts
···
1
1
-
import { fetchUserRsvps } from '$lib/events/fetch-attendees';
2
1
import type { CardDefinition } from '../../types';
3
2
import UpcomingRsvpsCard from './UpcomingRsvpsCard.svelte';
4
3
import type { ResolvedRsvp } from '$lib/events/fetch-attendees';
···
18
17
minH: 3,
19
18
20
19
loadData: async (_items, { did, cache }) => {
20
20
+
const { fetchUserRsvps } = await import('$lib/events/fetch-attendees');
21
21
const rsvps = await fetchUserRsvps(did, cache);
22
22
23
23
const now = new Date();