add new webui
Some checks failed
Build Multi-Platform Binaries / build (push) Failing after 4m53s

This commit is contained in:
Flik
2025-12-25 18:26:52 +08:00
parent 16a238f346
commit 790d3b682a
26 changed files with 2986 additions and 5 deletions

38
web/src/types/index.ts Normal file
View File

@@ -0,0 +1,38 @@
// 代理规则
export interface ProxyRule {
name: string
local_ip: string
local_port: number
remote_port: number
}
// 客户端配置
export interface ClientConfig {
id: string
rules: ProxyRule[]
}
// 客户端状态
export interface ClientStatus {
id: string
online: boolean
last_ping?: string
rule_count: number
}
// 客户端详情
export interface ClientDetail {
id: string
rules: ProxyRule[]
online: boolean
last_ping?: string
}
// 服务器状态
export interface ServerStatus {
server: {
bind_addr: string
bind_port: number
}
client_count: number
}