atmosphere explorer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove fetch pds list

+1 -14
+1 -14
src/App.tsx
··· 355 355 356 356 const Layout: Component<RouteSectionProps<unknown>> = (props) => { 357 357 const params = useParams(); 358 - const [pdsList, setPdsList] = createSignal<any>(); 359 358 const [theme, setTheme] = createSignal( 360 359 ( 361 360 localStorage.theme === "dark" || ··· 366 365 : "light", 367 366 ); 368 367 const [clip, setClip] = createSignal(false); 369 - 370 - onMount(async () => { 371 - setNotice(""); 372 - const pdses: Record<string, { errorAt?: number; version?: string }> = 373 - await fetch( 374 - "https://raw.githubusercontent.com/mary-ext/atproto-scraping/refs/heads/trunk/state.json", 375 - ).then((res) => res.json().then((json) => json.pdses)); 376 - setPdsList(Object.keys(pdses).filter((key) => !pdses[key].errorAt)); 377 - }); 368 + setNotice(""); 378 369 379 370 return ( 380 371 <div class="m-5 flex flex-col items-center text-slate-900 dark:text-slate-100"> ··· 419 410 method="post" 420 411 action={processInput} 421 412 > 422 - <datalist id="pdsInput"> 423 - <For each={pdsList()}>{(pds) => <option value={pds}></option>}</For> 424 - </datalist> 425 413 <div class="w-full"> 426 414 <label for="input" class="ml-0.5 text-sm"> 427 415 PDS URL or AT URI ··· 430 418 <div class="flex gap-x-2"> 431 419 <input 432 420 type="text" 433 - list="pdsInput" 434 421 id="input" 435 422 name="input" 436 423 autofocus