File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change @@ -2,10 +2,7 @@ import { Client } from '@atproto/lex'
22import * as app from '#shared/types/lexicons/app'
33import 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
107interface 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 => ( {
Original file line number Diff line number Diff line change 11import { Client } from '@atproto/lex'
22import * 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'
74import type { AtprotoProfile } from '#shared/types/atproto'
85
96const 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 } ) ,
You can’t perform that action at this time.
0 commit comments