Huh
This commit is contained in:
@@ -5,7 +5,8 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ul class="leaderboard">
|
<ul class="leaderboard">
|
||||||
|
|
||||||
|
|
||||||
{#if scores.length === 0}
|
{#if scores.length === 0}
|
||||||
No scores for now...
|
No scores for now...
|
||||||
{/if}
|
{/if}
|
||||||
@@ -73,4 +74,4 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -5,6 +5,5 @@ export const load = async ( {fetch} ) => {
|
|||||||
|
|
||||||
const res = await fetch(`${api_url}/leaderboard`)
|
const res = await fetch(`${api_url}/leaderboard`)
|
||||||
const leaderboard = await res.json()
|
const leaderboard = await res.json()
|
||||||
|
|
||||||
return { leaderboard };
|
return { leaderboard };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
scoreStore.load(data.leaderboard)
|
scoreStore.load(data.leaderboard)
|
||||||
} )
|
} )
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<LeaderBoard bind:scores={$scoreStore}></LeaderBoard>
|
<LeaderBoard bind:scores={$scoreStore}></LeaderBoard>
|
||||||
|
|||||||
Reference in New Issue
Block a user