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

@@ -58,7 +58,7 @@
$effect(() => {
data.post.value.meta.then(
res => (data.post.value.post_view = res.post_view),
(res) => (data.post.value.post_view = res.post_view),
)
})
@@ -136,7 +136,7 @@
community={data.post.value.post_view.community}
user={data.post.value.post_view.creator}
subscribed={profile.current.user?.follows.find(
i => i.community.id == data.post.value.post_view.community.id,
(i) => i.community.id == data.post.value.post_view.community.id,
)
? 'Subscribed'
: 'NotSubscribed'}
@@ -55,7 +55,7 @@ function findInFeed(
}
| undefined {
const index = postFeeds.value[feedId]?.data.posts.posts.findIndex(
i => i.post.id == postId,
(i) => i.post.id == postId,
)
if ((index ?? -1) == -1) return
@@ -105,7 +105,7 @@ export async function load({ params, url, fetch }) {
const partialPost: PartialPost = {
post_view: cachedPost ? cachedPost.post_view : (await post).post_view,
meta: post.then(i => ({
meta: post.then((i) => ({
...i,
})),
}
@@ -123,7 +123,7 @@ export async function load({ params, url, fetch }) {
sidebar: {
component: CommunityCard,
props: {
community_view: post.then(i => i.community_view),
community_view: post.then((i) => i.community_view),
},
},
},
@@ -72,7 +72,7 @@
!(
profile.current?.user?.local_user_view.local_user.admin ||
profile.current?.user?.moderates
.map(c => c.community.id)
.map((c) => c.community.id)
.includes(post.community.id)
)}
onclick={() => (commenting = true)}
@@ -116,7 +116,7 @@
{:else}
<CommentForm
postId={post.post.id}
oncomment={comment => {
oncomment={(comment) => {
comments.comments.unshift(comment.comment_view)
}}
onfocus={() => (commenting = true)}
@@ -76,7 +76,7 @@
</div>
{#if profile.meta.profiles}
{@const filtered = profile.meta.profiles.filter(
i => i.instance == page.params.instance,
(i) => i.instance == page.params.instance,
)}
<div class="space-y-1">
<div class="font-medium text-sm">