mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-10-18 21:24:37 +08:00
feat: add traffic statistics
fix: frontend proxy config cache is not cleared when change client id
This commit is contained in:
18
www/components/base/proxy-selector.tsx
Normal file
18
www/components/base/proxy-selector.tsx
Normal 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="隧道名称"
|
||||
/>
|
||||
}
|
Reference in New Issue
Block a user