diff --git a/src/pages/Proxies.tsx b/src/pages/Proxies.tsx index 8cecc87..8709a28 100644 --- a/src/pages/Proxies.tsx +++ b/src/pages/Proxies.tsx @@ -63,104 +63,30 @@ export default () => { return (
-
-

{t('proxies')}

- - { - const title = ( - <> -
- {proxy.name} - -
-
- {proxy.type} :: {proxy.now} -
- - - - - ) - - const content = ( - { - onProxyNodeClick(proxy, name) - }} - /> - ) - - return ( - - setCollapsedMap({ - ...collapsedMap(), - [`group-${proxy.name}`]: val, - }) - } - /> - ) - })} - /> -
- - 0}> -
-

{t('proxyProviders')}

- +
+ +

{t('proxies')}

+
{ + subChild={proxies().map((proxy) => { const title = ( <>
- {proxyProvider.name} -
- - -
+ {proxy.name} +
-
- {proxyProvider.vehicleType} :: Updated{' '} - {formatTimeFromNow(proxyProvider.updatedAt)} + {proxy.type} :: {proxy.now}
- + i.name) ?? [] - } + proxyNameList={proxy.all ?? []} + now={proxy.now} /> @@ -168,19 +94,23 @@ export default () => { const content = ( i.name)} + proxies={proxy.all!} + now={proxy.now} + onClick={(name) => { + onProxyNodeClick(proxy, name) + }} /> ) return ( setCollapsedMap({ ...collapsedMap(), - [`provider-${proxyProvider.name}`]: val, + [`group-${proxy.name}`]: val, }) } /> @@ -188,6 +118,82 @@ export default () => { })} />
+
+ + 0}> +
+ +

+ {t('proxyProviders')} +

+
+ { + const title = ( + <> +
+ {proxyProvider.name} +
+ + +
+
+ +
+ {proxyProvider.vehicleType} :: Updated{' '} + {formatTimeFromNow(proxyProvider.updatedAt)} +
+ + i.name) ?? [] + } + /> + + + ) + + const content = ( + i.name)} + /> + ) + + return ( + + setCollapsedMap({ + ...collapsedMap(), + [`provider-${proxyProvider.name}`]: val, + }) + } + /> + ) + })} + /> +
+
)