import { For, createSignal, onMount } from 'solid-js' import { useRequest } from '~/signals' import { Proxy, ProxyProvider } from '~/types' export const Proxies = () => { const request = useRequest() const [proxies, setProxies] = createSignal([]) const [proxyProviders, setProxyProviders] = createSignal([]) onMount(async () => { const { proxies } = await request .get('proxies') .json<{ proxies: Record }>() setProxies(Object.values(proxies)) const { providers } = await request .get('providers/proxies') .json<{ providers: Record }>() setProxyProviders(Object.values(providers)) }) return (

Proxies

{(proxy) => (
{proxy.name}
)}

Proxy Providers

{(proxy) => (
{proxy.name}
)}
) }