migrate: convert most components to svelte 5
This commit is contained in:
1 parent
d670f39f0a
commit
10ef4123da
225 files changed
+5441
-3341
No files matched your search
@@ -1,7 +1,11 @@
|
||||
<script lang="ts">
|
||||
import { userSettings } from '$lib/settings'
|
||||
|
||||
export let width = 48
|
||||
interface Props {
|
||||
width?: number
|
||||
}
|
||||
|
||||
let { width = 48 }: Props = $props()
|
||||
|
||||
const monthColors: {
|
||||
[x: number]: string
|
||||
@@ -20,7 +24,7 @@
|
||||
12: '--hover-color-1: #228B22; --hover-color-2: #FFFFFF;',
|
||||
}
|
||||
|
||||
$: monthColor = monthColors[new Date().getMonth() + 1]
|
||||
let monthColor = $derived(monthColors[new Date().getMonth() + 1])
|
||||
</script>
|
||||
|
||||
<svg
|
||||
|
||||
Reference in new issue
Block a user