migrate: convert most components to svelte 5

This commit is contained in:
Xylight committed 2024-10-25 19:33:27 -07:00
1 parent d670f39f0a
commit 10ef4123da
225 files changed
+5441 -3341

No files matched your search

@@ -9,13 +9,23 @@
import { Button, Material } from 'mono-svelte'
import { ArrowUturnUp, Icon } from 'svelte-hero-icons'
export let comment: CommentView
export let view = $userSettings.view
export let community = false
interface Props {
comment: CommentView
view?: any
community?: boolean
meta?: boolean
class?: string
[key: string]: any
}
export let meta: boolean = true
let clazz: string = ''
export { clazz as class }
let {
comment,
view = $userSettings.view,
community = false,
meta = true,
class: clazz = '',
...rest
}: Props = $props()
</script>
<Material
@@ -68,7 +78,7 @@
node={{ children: [], comment_view: comment, depth: 1, ui: {} }}
replying={false}
{meta}
{...$$restProps}
{...rest}
/>
</div>
</Material>