mirror of
https://gitcode.com/JianFeeeee/webui4frpc.git
synced 2026-10-15 12:14:37 +00:00
feat: Phase C 完成 — ModelRouter 风格 UI 重设计 + 模拟 frps 测试 + lastSync 修复 + 集群作坊搭建
- 主题: sakura×frost 玻璃拟态 (theme.css) + SCSS 变量重映射 - 侧栏: 玻璃侧栏 246px + 渐变品牌区 + 面包屑导航 - 状态页: 玻璃 KPI 卡 + 远程节点/本地服务卡片网格 - 集群页: 英雄玻璃卡 + 横向环拓扑链 + 待办命令/活跃拓扑/日志区 - 令牌环: 新增 lastSync 上次同步时间替代周期计数 - 模拟 frps: frps2/frps3 容器 + test-forward.sh 全链路验证脚本 - 修复: BinaryPath 空导致 worker 不启动, 撤销仅撤第一个 link, 任务复活风暴 (published 追踪)
This commit is contained in:
@ -28,11 +28,11 @@ func TestTokenTransportPOST(t *testing.T) {
|
||||
tr := &TokenTransport{User: "u", Pass: "p"}
|
||||
host := srv.Listener.Addr().String()
|
||||
send := tr.SendTo(func(nodeID string) string { return host })
|
||||
err := send(context.Background(), "peer1", &Token{Cycle: 3, Phase: PhaseCollect})
|
||||
err := send(context.Background(), "peer1", &Token{Cycle: 3})
|
||||
if err != nil {
|
||||
t.Fatalf("send: %v", err)
|
||||
}
|
||||
if got.Cycle != 3 || got.Phase != PhaseCollect {
|
||||
if got.Cycle != 3 {
|
||||
t.Fatalf("got token = %+v", got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user