update
All checks were successful
Build Multi-Platform Binaries / build (push) Successful in 11m54s

This commit is contained in:
Flik
2025-12-26 17:14:54 +08:00
parent 4623a7f031
commit 549f9aaf26
63 changed files with 10266 additions and 740 deletions

View File

@@ -4,17 +4,20 @@ export interface ProxyRule {
local_ip: string
local_port: number
remote_port: number
type?: string
}
// 客户端配置
export interface ClientConfig {
id: string
nickname?: string
rules: ProxyRule[]
}
// 客户端状态
export interface ClientStatus {
id: string
nickname?: string
online: boolean
last_ping?: string
rule_count: number
@@ -23,6 +26,7 @@ export interface ClientStatus {
// 客户端详情
export interface ClientDetail {
id: string
nickname?: string
rules: ProxyRule[]
online: boolean
last_ping?: string
@@ -36,3 +40,23 @@ export interface ServerStatus {
}
client_count: number
}
// 插件类型
export const PluginType = {
Proxy: 'proxy',
App: 'app',
Service: 'service',
Tool: 'tool'
} as const
export type PluginTypeValue = typeof PluginType[keyof typeof PluginType]
// 插件信息
export interface PluginInfo {
name: string
version: string
type: string
description: string
source: string
enabled: boolean
}