feat: 初始提交 - Code Server Bridge完整实现

- OAuth认证系统(Gitea + Lua扩展)
- Git自动化操作(本地/SSH远程)
- 实时进度WebSocket推送
- 现代化Tab界面UI
- Cobra CLI命令行(init/version/serve)
- 完整构建系统(Makefile + Taskfile)
- UPX压缩支持(体积减少70%)
This commit is contained in:
2026-01-08 23:32:29 +08:00
commit 8265df0dcd
40 changed files with 3786 additions and 0 deletions

17
pkg/httpclient/resty.go Normal file
View File

@@ -0,0 +1,17 @@
package httpclient
import (
"time"
"resty.dev/v3"
)
var Default *resty.Client
func Init() {
c := resty.New()
// TODO: 将代理配置移到config中
// c.SetProxy("http://127.0.0.1:9000")
c.SetTimeout(10 * time.Second)
Default = c
}