-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniils Petrovs
committed
Jun 23, 2024
1 parent
2e8fa84
commit 6831364
Showing
3 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<script lang="ts"> | ||
import StampSheet from '$lib/components/StampSheet.svelte'; | ||
import { expectedStamps } from '$lib/stores/stamps.js'; | ||
export let data; | ||
$: stampsCollection = Object.entries($expectedStamps).map(([key, value]) => ({ | ||
...value, | ||
hash: key | ||
})); | ||
</script> | ||
|
||
<StampSheet stamps={data.stamps} /> | ||
<StampSheet stamps={stampsCollection} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
import { expectedStamps } from '$lib/stores/stamps'; | ||
import { get } from 'svelte/store'; | ||
import type { PageLoad } from './$types'; | ||
|
||
export const ssr = false; | ||
|
||
export const load = (async () => { | ||
const stamps = Object.entries(get(expectedStamps)).map(([key, value]) => ({ | ||
...value, | ||
hash: key | ||
})); | ||
|
||
return { stamps }; | ||
return {}; | ||
}) satisfies PageLoad; |