bump: svelte -> 5.34.8 (#600)
* bump: svelte -> 5.34.8 * fix: unfreeze lockfile * fix: add svelte override
This commit is contained in:
1 parent
de3ca92544
commit
b98b902c7a
11 files changed
+18
-27
No files matched your search
@@ -20,6 +20,7 @@
|
||||
placeholder?: string | undefined
|
||||
value?: string
|
||||
actions?: boolean
|
||||
tools?: boolean
|
||||
preview?: boolean
|
||||
class?: ClassValue
|
||||
required?: boolean
|
||||
|
||||
@@ -104,8 +104,8 @@
|
||||
<ul>
|
||||
{#each nodes as node, index (node.comment_view.comment.id)}
|
||||
<Comment
|
||||
bind:node={nodes[index]}
|
||||
postId={post.id}
|
||||
node={nodes[index]}
|
||||
op={post.creator_id == node.comment_view.creator.id}
|
||||
contentClass="{node.children.length > 0 ||
|
||||
node.comment_view.counts.child_count > 0
|
||||
@@ -114,7 +114,7 @@
|
||||
bind:open={nodes[index].expanded}
|
||||
>
|
||||
{#if node.children?.length > 0}
|
||||
<Comments {post} nodes={nodes[index].children} isParent={false} />
|
||||
<Comments {post} bind:nodes={nodes[index].children} isParent={false} />
|
||||
{/if}
|
||||
</Comment>
|
||||
{#if node.comment_view.counts.child_count > 0 && node.children.length == 0}
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
}
|
||||
|
||||
let {
|
||||
post: passedPost = $bindable(),
|
||||
post = $bindable(),
|
||||
actions = true,
|
||||
hideCommunity = false,
|
||||
view = settings.view,
|
||||
@@ -59,11 +59,6 @@
|
||||
onhide,
|
||||
}: Props = $props()
|
||||
|
||||
let post = $state(passedPost)
|
||||
$effect(() => {
|
||||
passedPost = post
|
||||
})
|
||||
|
||||
let tags = $derived(parseTags(post.post.name))
|
||||
let type = $derived(mediaType(post.post.url))
|
||||
let rule = $derived(getTagRule(tags.tags))
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script lang="ts">
|
||||
import { settings } from '$lib/settings.svelte.js'
|
||||
import type { Snippet } from 'svelte'
|
||||
import type { ClassValue, UIEventHandler } from 'svelte/elements'
|
||||
import type { ClassValue, HTMLAttributes, UIEventHandler } from 'svelte/elements'
|
||||
import { scrollY } from 'svelte/reactivity/window'
|
||||
|
||||
interface Props {
|
||||
interface Props extends HTMLAttributes<HTMLDivElement> {
|
||||
route?: { id: string | null } | undefined
|
||||
class?: ClassValue
|
||||
children?: Snippet
|
||||
|
||||
@@ -943,7 +943,8 @@
|
||||
"language_not_allowed": "That language isn't allowed in this community. Unset it to use the community's default.",
|
||||
"couldnt_find_person": "That user doesn't exist.",
|
||||
"couldnt_find_community": "That community doesn't exist.",
|
||||
"not_an_admin": "You are not an admin of this instance."
|
||||
"not_an_admin": "You are not an admin of this instance.",
|
||||
"rate_limit_error": "You are performing that action too fast."
|
||||
},
|
||||
"aria": {
|
||||
"pagination": {
|
||||
|
||||
@@ -43,7 +43,7 @@ export function toast({
|
||||
let id = 0
|
||||
|
||||
toasts.update(toasts => {
|
||||
id = Math.floor(Math.random() * 10000)
|
||||
id = Math.max(...toasts.map(t => t.id)) + 1
|
||||
|
||||
return [
|
||||
...toasts,
|
||||
|
||||
Reference in new issue
Block a user