diff options
| author | Matain <[email protected]> | 2022-11-08 19:51:50 +0800 |
|---|---|---|
| committer | Matain <[email protected]> | 2022-11-08 19:51:50 +0800 |
| commit | 4c77ea3e9c0561f3ff99795b15da907aa2b1f263 (patch) | |
| tree | c2672cb870226be43296e1d0bf26d831cf3977eb /src | |
| parent | 93df78f185efe8d0cb07aa75a8cccd38856bf12a (diff) | |
proxy udp item shows
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/proxies/Proxy.tsx | 7 | ||||
| -rw-r--r-- | src/store/types.ts | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/components/proxies/Proxy.tsx b/src/components/proxies/Proxy.tsx index 27fc1f2..3f5ab39 100644 --- a/src/components/proxies/Proxy.tsx +++ b/src/components/proxies/Proxy.tsx @@ -56,7 +56,7 @@ type ProxyProps = { proxy: any; latency: any; isSelectable?: boolean; - udp?: boolean; + udp: boolean; onClick?: (proxyName: string) => unknown; }; @@ -65,7 +65,6 @@ function ProxySmallImpl({ name, proxy, latency, - udp, isSelectable, onClick, }: ProxyProps) { @@ -187,8 +186,8 @@ function ProxyImpl({ </ProxyNameTooltip> </div> <div className={s0.row}> - <span className={s0.proxyType} style={{ opacity: now ? 0.6 : 0.2 }}> - {formatProxyType(proxy.type)} + <span className={s0.proxyType} style={{ opacity: now ? 0.6 : 0.2 }}> + {proxy.udp ? formatProxyType(proxy.type)+" udp":formatProxyType(proxy.type)} </span> <span className={s0.udpType}> {formatUdpType(udp)} diff --git a/src/store/types.ts b/src/store/types.ts index a0a72ed..cdb43de 100644 --- a/src/store/types.ts +++ b/src/store/types.ts @@ -57,7 +57,7 @@ export type SubscriptionInfo = { export type ProxyItem = { name: string; type: PrimitiveProxyType; - udp?: boolean; + udp: boolean; history: LatencyHistory; all?: string[]; now?: string; |
