tangled
alpha
login
or
join now
flo-bit.dev
/
blento
your personal website on atproto - mirror
blento.app
20
fork
atom
overview
issues
pulls
pipelines
fix npmx leaderboard
Florian
2 days ago
be65e4c1
3be50603
+2
-2
1 changed file
expand all
collapse all
unified
split
src
lib
cards
social
NpmxLikesLeaderboardCard
NpmxLikesLeaderboardCard.svelte
+2
-2
src/lib/cards/social/NpmxLikesLeaderboardCard/NpmxLikesLeaderboardCard.svelte
···
2
import type { Item } from '$lib/types';
3
import { onMount } from 'svelte';
4
import { getAdditionalUserData, getDidContext, getHandleContext } from '$lib/website/context';
5
-
import { CardDefinitionsByType } from '../..';
6
7
interface LeaderboardEntry {
8
subjectRef: string;
···
27
onMount(async () => {
28
if (leaderboard) return;
29
30
-
leaderboard = (await CardDefinitionsByType[item.cardType]?.loadData?.([], {
31
did,
32
handle
33
})) as LeaderboardData | undefined;
···
2
import type { Item } from '$lib/types';
3
import { onMount } from 'svelte';
4
import { getAdditionalUserData, getDidContext, getHandleContext } from '$lib/website/context';
5
+
import { NpmxLikesLeaderboardCardDefinition } from '.';
6
7
interface LeaderboardEntry {
8
subjectRef: string;
···
27
onMount(async () => {
28
if (leaderboard) return;
29
30
+
leaderboard = (await NpmxLikesLeaderboardCardDefinition.loadData?.([], {
31
did,
32
handle
33
})) as LeaderboardData | undefined;