forked from pdsls.dev/pdsls
this repo has no description

cleanup repo view

Changed files
+4 -9
src
views
+4 -9
src/views/repo.tsx
··· 24 24 const [error, setError] = createSignal<string>(); 25 25 const [downloading, setDownloading] = createSignal(false); 26 26 const [didDoc, setDidDoc] = createSignal<DidDocument>(); 27 - const [backlinks, setBacklinks] = createSignal<{ 28 - links: LinkData; 29 - target: string; 30 - }>(); 27 + const [backlinks, setBacklinks] = createSignal<{ links: LinkData; target: string }>(); 31 28 const [nsids, setNsids] = createSignal<Record<string, { hidden: boolean; nsids: string[] }>>(); 32 29 const [tab, setTab] = createSignal<Tab>("collections"); 33 30 const [filter, setFilter] = createSignal<string>(); ··· 48 45 </button> 49 46 ); 50 47 51 - const describeRepo = (repo: string) => 52 - rpc.get("com.atproto.repo.describeRepo", { params: { repo: repo as ActorIdentifier } }); 53 - 54 48 const fetchRepo = async () => { 55 49 pds = await resolvePDS(did); 56 50 setDidDoc(didDocCache[did] as DidDocument); 57 51 58 52 rpc = new Client({ handler: new CredentialManager({ service: pds }) }); 59 - const res = await describeRepo(did); 53 + const res = await rpc.get("com.atproto.repo.describeRepo", { 54 + params: { repo: did as ActorIdentifier }, 55 + }); 60 56 if (res.ok) { 61 57 const collections: Record<string, { hidden: boolean; nsids: string[] }> = {}; 62 58 res.data.collections.forEach((c) => { ··· 81 77 break; 82 78 default: 83 79 setError("This repository is unreachable"); 84 - break; 85 80 } 86 81 setTab("doc"); 87 82 }