Skip to content

Commit 2932dbc

Browse files
[autofix.ci] apply automated fixes
1 parent bbf7270 commit 2932dbc

3 files changed

Lines changed: 17 additions & 20 deletions

File tree

app/pages/pds.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,12 @@ const totalAccounts = computed(() => pdsUsers.value.length)
150150
{{ $t('pds.community.empty') }}
151151
</div>
152152
<div v-else>
153-
<ul
154-
class="grid grid-cols-[repeat(auto-fill,48px)] justify-center gap-2 list-none p-0"
155-
>
156-
<li v-for="user in usersWithAvatars" :key="user.handle" class="block group relative hover:z-10">
153+
<ul class="grid grid-cols-[repeat(auto-fill,48px)] justify-center gap-2 list-none p-0">
154+
<li
155+
v-for="user in usersWithAvatars"
156+
:key="user.handle"
157+
class="block group relative hover:z-10"
158+
>
157159
<a
158160
:href="`https://bsky.app/profile/${user.handle}`"
159161
target="_blank"
@@ -180,10 +182,7 @@ const totalAccounts = computed(() => pdsUsers.value.length)
180182
</a>
181183
</li>
182184
</ul>
183-
<p
184-
v-if="usersWithoutAvatars.length"
185-
class="text-center mt-4 text-fg-muted text-sm"
186-
>
185+
<p v-if="usersWithoutAvatars.length" class="text-center mt-4 text-fg-muted text-sm">
187186
{{ $t('pds.community.new_accounts', { count: usersWithoutAvatars.length }) }}
188187
</p>
189188
</div>

server/api/atproto/pds-graphs.get.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import { Client } from '@atproto/lex'
22
import * as app from '#shared/types/lexicons/app'
33
import type { AtprotoProfile } from '#shared/types/atproto'
44

5-
import {
6-
BLUESKY_API,
7-
ERROR_PDS_FETCH_FAILED,
8-
} from '#shared/utils/constants'
5+
import { BLUESKY_API, ERROR_PDS_FETCH_FAILED } from '#shared/utils/constants'
96

107
interface GraphLink {
118
source: string
@@ -64,9 +61,13 @@ export default defineCachedEventHandler(
6461
const batch = dids.slice(i, i + USER_BATCH_AMOUNT)
6562

6663
try {
67-
const data = await blueskyClient.call(app.bsky.actor.getProfiles, {
68-
actors: batch,
69-
}, { validateResponse: false })
64+
const data = await blueskyClient.call(
65+
app.bsky.actor.getProfiles,
66+
{
67+
actors: batch,
68+
},
69+
{ validateResponse: false },
70+
)
7071

7172
nodes.push(
7273
...data.profiles.map(profile => ({

server/api/atproto/pds-users.get.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { Client } from '@atproto/lex'
22
import * as app from '#shared/types/lexicons/app'
3-
import {
4-
BLUESKY_API,
5-
ERROR_PDS_FETCH_FAILED,
6-
} from '#shared/utils/constants'
3+
import { BLUESKY_API, ERROR_PDS_FETCH_FAILED } from '#shared/utils/constants'
74
import type { AtprotoProfile } from '#shared/types/atproto'
85

96
const NPMX_PDS_HOST = 'https://npmx.social'
@@ -68,7 +65,7 @@ export default defineCachedEventHandler(
6865
avatar: profile.avatar,
6966
})),
7067
)
71-
.catch((err) => {
68+
.catch(err => {
7269
console.warn('Failed to fetch batch:', err)
7370
return []
7471
}),

0 commit comments

Comments
 (0)