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

+3 -3
View File
@@ -27,8 +27,8 @@
batch.progress = 0
await Promise.all(
data.items?.value.map(report => {
report.map(r => {
data.items?.value.map((report) => {
report.map((r) => {
switch (r.type) {
case 'comment': {
const promise = client().resolveCommentReport({
@@ -157,7 +157,7 @@
<Fixate placement="bottom">
<Pageination
page={data.page}
href={current => `?page=${current}`}
href={(current) => `?page=${current}`}
hasMore={data.items.value.length >= 20}
/>
</Fixate>
+6 -6
View File
@@ -31,13 +31,13 @@
switch (item.type) {
case 'comment': {
await Promise.all(
items.map(async i =>
items.map(async (i) =>
getClient()
.resolveCommentReport({
report_id: i.id,
resolved: !i.resolved,
})
.then(res => {
.then((res) => {
i.resolved = res.comment_report_view.comment_report.resolved
i.resolver = res.comment_report_view.resolver
$notifications.reports += i.resolved ? -1 : 1
@@ -49,13 +49,13 @@
}
case 'post': {
await Promise.all(
items.map(async i =>
items.map(async (i) =>
getClient()
.resolvePostReport({
report_id: i.id,
resolved: !i.resolved,
})
.then(res => {
.then((res) => {
i.resolved = res.post_report_view.post_report.resolved
i.resolver = res.post_report_view.resolver
@@ -69,13 +69,13 @@
}
case 'message': {
await Promise.all(
items.map(async i =>
items.map(async (i) =>
getClient()
.resolvePrivateMessageReport({
report_id: i.id,
resolved: !i.resolved,
})
.then(res => {
.then((res) => {
i.resolved =
res.private_message_report_view.private_message_report.resolved
@@ -76,7 +76,7 @@
bind:selected={banFromCommunity}
/>
<UserAutocomplete
onselect={p =>
onselect={(p) =>
ban(banFromCommunity, p, data.community.community_view.community)}
listing_type="All"
/>
@@ -8,7 +8,7 @@ export async function load({ params, fetch }) {
limit: 5,
page: 1,
})
.then(i =>
.then((i) =>
[
...i.banned_from_community,
...i.removed_comments,