misc: bump version
This commit is contained in:
1 parent
1e8958471f
commit
5a8499fd7b
3 files changed
+12
-8
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "1.31.0-fix.1",
|
"version": "1.31.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@catdadcode/svelte-adapter-bun": "^0.5.7",
|
"@catdadcode/svelte-adapter-bun": "^0.5.7",
|
||||||
"@dicebear/core": "^8.0.1",
|
"@dicebear/core": "^8.0.1",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
import { onMount } from 'svelte'
|
import { onMount } from 'svelte'
|
||||||
import { t } from '$lib/translations'
|
import { t } from '$lib/translations'
|
||||||
import { slide } from 'svelte/transition'
|
import { slide } from 'svelte/transition'
|
||||||
import { expoOut } from 'svelte/easing'
|
import { expoInOut, expoOut } from 'svelte/easing'
|
||||||
|
|
||||||
export let node: CommentNodeI
|
export let node: CommentNodeI
|
||||||
export let postId: number
|
export let postId: number
|
||||||
@@ -107,10 +107,9 @@
|
|||||||
: ''} {highlight} {$$props.class}"
|
: ''} {highlight} {$$props.class}"
|
||||||
id="#{node.comment_view.comment.id.toString()}"
|
id="#{node.comment_view.comment.id.toString()}"
|
||||||
>
|
>
|
||||||
<Disclosure bind:open class="flex flex-col">
|
<button
|
||||||
<div
|
on:click={() => (open = !open)}
|
||||||
slot="summary"
|
class="flex flex-row cursor-pointer gap-2 items-center group text-[13px] flex-wrap w-full"
|
||||||
class="flex flex-row cursor-pointer gap-2 items-center group text-[13px] flex-wrap"
|
|
||||||
>
|
>
|
||||||
<span class:font-bold={op} class="flex flex-row gap-1 items-center">
|
<span class:font-bold={op} class="flex flex-row gap-1 items-center">
|
||||||
<UserLink
|
<UserLink
|
||||||
@@ -159,7 +158,9 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</button>
|
||||||
|
{#if open}
|
||||||
|
<div transition:slide={{ duration: 500, easing: expoOut }}>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col whitespace-pre-wrap
|
class="flex flex-col whitespace-pre-wrap
|
||||||
max-w-full gap-1 mt-1 relative"
|
max-w-full gap-1 mt-1 relative"
|
||||||
@@ -213,5 +214,6 @@
|
|||||||
<div class="bg-transparent dark:bg-transparent">
|
<div class="bg-transparent dark:bg-transparent">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</Disclosure>
|
</div>
|
||||||
|
{/if}
|
||||||
</li>
|
</li>
|
||||||
@@ -27,6 +27,7 @@ export function buildCommentsTree(
|
|||||||
baseDepth: number = 0,
|
baseDepth: number = 0,
|
||||||
filter: (c: CommentView) => boolean = (c) => true
|
filter: (c: CommentView) => boolean = (c) => true
|
||||||
): CommentNodeI[] {
|
): CommentNodeI[] {
|
||||||
|
const start = performance.now()
|
||||||
const map = new Map<number, CommentNodeI>()
|
const map = new Map<number, CommentNodeI>()
|
||||||
|
|
||||||
let min_depth = Number.MAX_VALUE
|
let min_depth = Number.MAX_VALUE
|
||||||
@@ -68,6 +69,7 @@ export function buildCommentsTree(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`Built tree in ${performance.now() - start}ms`)
|
||||||
return tree
|
return tree
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user