prettier: format project

This commit is contained in:
James Xylight committed 2025-09-06 22:25:07 -07:00
1 parent e7dd3e8dac
commit cbd27a38a0
94 files changed
+261 -252

No files matched your search

@@ -94,7 +94,7 @@
<div>{$t('form.edit')}</div>
{/snippet}
<form
onsubmit={e => {
onsubmit={(e) => {
e.preventDefault()
save(replying ? 'reply' : 'edit')
}}
@@ -262,7 +262,7 @@
label={$t('comment.reply')}
{postId}
parentId={node.comment_view.comment.id}
oncomment={e => {
oncomment={(e) => {
node.children = [
{
children: [],
@@ -19,8 +19,8 @@
}, 100)
}
const observer = new ResizeObserver(entries => {
entries.forEach(entry => {
const observer = new ResizeObserver((entries) => {
entries.forEach((entry) => {
if (offsetEl) {
initialOffset =
entry.target.getBoundingClientRect().top + window.scrollY
@@ -50,7 +50,7 @@
{#snippet item(index)}
<div class={['px-3 sm:px-6', index % 2 == 1 && '']}>
<Comments
bind:nodes={() => [nodes[index]], v => (nodes[index] = v[0])}
bind:nodes={() => [nodes[index]], (v) => (nodes[index] = v[0])}
{post}
/>
</div>
@@ -54,7 +54,7 @@
// 0.18.2 -> 0.18.3 broke this
// so i'm adding this check
const treeParent = tree.find(
c => c.comment_view.comment.id == parent.comment_view.comment.id,
(c) => c.comment_view.comment.id == parent.comment_view.comment.id,
)
if (treeParent) {