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
@@ -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>
|
||||
Reference in new issue
Block a user