web/frpc: redesign frpc dashboard with sidebar nav, proxy/visitor list and detail views

This commit is contained in:
fatedier
2026-03-16 03:47:48 +08:00
parent ff4ad2f907
commit b2e2a03244
71 changed files with 5908 additions and 4292 deletions

View File

@@ -191,6 +191,13 @@ func (vm *Manager) TransferConn(name string, conn net.Conn) error {
return v.AcceptConn(conn)
}
func (vm *Manager) GetVisitorCfg(name string) (v1.VisitorConfigurer, bool) {
vm.mu.RLock()
defer vm.mu.RUnlock()
cfg, ok := vm.cfgs[name]
return cfg, ok
}
type visitorHelperImpl struct {
connectServerFn func() (net.Conn, error)
msgTransporter transport.MessageTransporter