feat: add traffic statistics

fix: frontend proxy config cache is not cleared when change client id
This commit is contained in:
VaalaCat
2024-11-30 05:27:49 +00:00
parent e619fbf327
commit cdbaf032e7
50 changed files with 1902 additions and 1562 deletions

View File

@@ -0,0 +1,18 @@
import React from 'react'
import { Combobox } from './combobox'
export interface ProxySelectorProps {
proxyName?: string
setProxyname: (proxyName: string) => void
proxyNames: string[]
}
export const ProxySelector: React.FC<ProxySelectorProps> = ({ proxyName, proxyNames ,setProxyname }) => {
return <Combobox
dataList={proxyNames.map((name) => ({ value: name, label: name }))}
value={proxyName}
setValue={setProxyname}
notFoundText="未找到隧道"
placeholder="隧道名称"
/>
}