refactor: migrate to Svelte 5

use runes ($props, $state, $derived, $effect, etc)
This commit is contained in:
2024-08-02 17:50:16 +02:00
parent 245049222b
commit 6f8a619af2
60 changed files with 1120 additions and 859 deletions

View File

@@ -6,12 +6,21 @@
import dayjs from 'dayjs'
import Image from '$components/atoms/Image.svelte'
export let title: string
export let issue: number
export let date: string
export let link: string
export let thumbnail: { id: string }
export let size: string = undefined
let {
title,
issue,
date,
link,
thumbnail,
size,
}: {
title: string
issue: number
date: string
link: string
thumbnail: { id: string }
size?: string
} = $props()
</script>
<div class="issue" class:is-large={size === 'large'}>