mirror of
https://github.com/black-ant/Ant-Browser.git
synced 2026-07-14 18:48:55 +08:00
chore: finalize browser backup and license cleanup
This commit is contained in:
@@ -66,8 +66,6 @@ func (a *App) backupApplyIncomingConfig(incoming *config.Config, resetFirst bool
|
||||
target = backupMergeConfig(current, incoming)
|
||||
}
|
||||
target.Database = current.Database
|
||||
target.App.MaxProfileLimit = current.App.MaxProfileLimit
|
||||
target.App.UsedCDKeys = append([]string{}, current.App.UsedCDKeys...)
|
||||
|
||||
if err := target.Save(a.resolveAppPath("config.yaml")); err != nil {
|
||||
return fmt.Errorf("保存导入配置失败: %w", err)
|
||||
|
||||
@@ -90,3 +90,12 @@ func (a *App) BrowserCoreDownload(coreName, url, proxyConfig string) error {
|
||||
go a.browserMgr.DownloadAndExtractCore(a.ctx, coreName, url, proxyConfig)
|
||||
return nil
|
||||
}
|
||||
|
||||
// BrowserCoreRedownload 重新下载并替换指定内核目录
|
||||
func (a *App) BrowserCoreRedownload(coreId, url, proxyConfig string) error {
|
||||
if a.ctx == nil {
|
||||
return fmt.Errorf("app context is nil")
|
||||
}
|
||||
go a.browserMgr.RedownloadCore(a.ctx, coreId, url, proxyConfig)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ func (a *App) GetDashboardStats() map[string]interface{} {
|
||||
"proxyCount": stats.ProxyCount,
|
||||
"coreCount": stats.CoreCount,
|
||||
"memUsedMB": int(memUsedMB),
|
||||
"maxProfileLimit": stats.MaxProfileLimit,
|
||||
"appVersion": a.appVersion(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,165 +0,0 @@
|
||||
package backend
|
||||
|
||||
import (
|
||||
appconfig "ant-chrome/backend/internal/config"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// LicenseStatus 授权状态
|
||||
type LicenseStatus struct {
|
||||
MaxLimit int `json:"maxLimit"`
|
||||
UsedCount int `json:"usedCount"`
|
||||
UsedKeys []string `json:"usedKeys"`
|
||||
}
|
||||
|
||||
// GetLicenseStatus 获取当前授权状态(给前端使用)
|
||||
func (a *App) GetLicenseStatus() LicenseStatus {
|
||||
profilesCount := 0
|
||||
if a.browserMgr != nil {
|
||||
profilesCount = len(a.browserMgr.List())
|
||||
}
|
||||
usedKeys := a.config.App.UsedCDKeys
|
||||
if usedKeys == nil {
|
||||
usedKeys = []string{}
|
||||
}
|
||||
|
||||
return LicenseStatus{
|
||||
MaxLimit: a.config.App.MaxProfileLimit,
|
||||
UsedCount: profilesCount,
|
||||
UsedKeys: usedKeys,
|
||||
}
|
||||
}
|
||||
|
||||
// RedeemCDKey 验证并核销兑换码,成功返回新配置
|
||||
func (a *App) RedeemCDKey(cdkey string) error {
|
||||
if a.config == nil {
|
||||
a.config = DefaultConfig()
|
||||
}
|
||||
cdkey = strings.ToUpper(cdkey)
|
||||
// 去除所有可能的不小心复制进去的空格、制表符、换行符
|
||||
cdkey = strings.ReplaceAll(cdkey, " ", "")
|
||||
cdkey = strings.ReplaceAll(cdkey, "\t", "")
|
||||
cdkey = strings.ReplaceAll(cdkey, "\n", "")
|
||||
cdkey = strings.ReplaceAll(cdkey, "\r", "")
|
||||
|
||||
if cdkey == "" {
|
||||
return fmt.Errorf("兑换码不能为空")
|
||||
}
|
||||
|
||||
// 1. 基本校验机制(非常简单:比如前缀必须是 ANT-,并且后面加上一个特定的哈希位能匹配)
|
||||
// 生成规则我们在 keygen 里实现。校验规则:
|
||||
// 假设 cdkey 长这样: ANT-XXXX-XXXX-XXXX-XXXX-CHECKSUM
|
||||
// 为了最简单的极简方案,我们这就不搞太复杂的非对称,纯用带盐的 SHA256 截断作为校验和。
|
||||
if !strings.HasPrefix(cdkey, "ANT-") {
|
||||
return fmt.Errorf("无效的兑换码格式")
|
||||
}
|
||||
|
||||
parts := strings.Split(cdkey, "-")
|
||||
if len(parts) < 3 {
|
||||
return fmt.Errorf("无效的兑换码长度")
|
||||
}
|
||||
|
||||
// 验证校验和
|
||||
checksumIndex := len(parts) - 1
|
||||
payload := strings.Join(parts[:checksumIndex], "-") // "ANT-XXXX-XXXX..."
|
||||
expectedChecksum := generateChecksum(payload)
|
||||
actualChecksum := parts[checksumIndex]
|
||||
|
||||
if actualChecksum != expectedChecksum {
|
||||
return fmt.Errorf("无效的兑换码 (Checksum Error)")
|
||||
}
|
||||
|
||||
// 2. 防重放校验
|
||||
for _, usedKey := range a.config.App.UsedCDKeys {
|
||||
if usedKey == cdkey {
|
||||
return fmt.Errorf("该兑换码已被使用过")
|
||||
}
|
||||
}
|
||||
|
||||
// 3. 兑现与本地保存
|
||||
a.config.App.MaxProfileLimit += appconfig.StandardCDKeyProfileBonus
|
||||
a.config.App.UsedCDKeys = append(a.config.App.UsedCDKeys, cdkey)
|
||||
|
||||
configPath := a.resolveAppPath("config.yaml")
|
||||
if _, _, err := reconcileConfigWithLocalLicense(configPath, a.config); err != nil {
|
||||
return fmt.Errorf("保存本机额度状态失败: %v", err)
|
||||
}
|
||||
if err := a.config.Save(configPath); err != nil {
|
||||
return fmt.Errorf("保存配置失败: %v", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// generateChecksum 生成简易校验和
|
||||
func generateChecksum(payload string) string {
|
||||
salt := "ANT-LITE-KEY-SALT-VER-1"
|
||||
hash := sha256.Sum256([]byte(payload + salt))
|
||||
return strings.ToUpper(hex.EncodeToString(hash[:])[0:8]) // 取前8位作为校验
|
||||
}
|
||||
|
||||
// RedeemGithubStar 给予用户一个 github star 的一次性奖励
|
||||
func (a *App) RedeemGithubStar() error {
|
||||
if a.config == nil {
|
||||
a.config = DefaultConfig()
|
||||
}
|
||||
cdkey := appconfig.GithubStarRewardKey
|
||||
// 防重复领取
|
||||
for _, usedKey := range a.config.App.UsedCDKeys {
|
||||
if usedKey == cdkey {
|
||||
return fmt.Errorf("您已经领取过 GitHub Star 的赠送额度啦!")
|
||||
}
|
||||
}
|
||||
|
||||
a.config.App.UsedCDKeys = append(a.config.App.UsedCDKeys, cdkey)
|
||||
a.config.App.MaxProfileLimit += appconfig.GithubStarProfileBonus
|
||||
if minLimit := appconfig.MinimumProfileLimitForUsedKeys(a.config.App.UsedCDKeys); a.config.App.MaxProfileLimit < minLimit {
|
||||
a.config.App.MaxProfileLimit = minLimit
|
||||
}
|
||||
|
||||
configPath := a.resolveAppPath("config.yaml")
|
||||
if _, _, err := reconcileConfigWithLocalLicense(configPath, a.config); err != nil {
|
||||
return fmt.Errorf("保存本机额度状态失败: %v", err)
|
||||
}
|
||||
if err := a.config.Save(configPath); err != nil {
|
||||
return fmt.Errorf("保存配置失败: %v", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// GenerateCDKeys 供内部隐藏管理员页面使用的发卡器接口
|
||||
func (a *App) GenerateCDKeys(count int) ([]string, error) {
|
||||
if count <= 0 || count > 1000 {
|
||||
return nil, fmt.Errorf("生成数量无效 (1-1000)")
|
||||
}
|
||||
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
var keys []string
|
||||
|
||||
for i := 0; i < count; i++ {
|
||||
// A basic random 16-char string ABCDEFGH-IJKLMNOP...
|
||||
charset := "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
|
||||
b := make([]byte, 16)
|
||||
for j := range b {
|
||||
b[j] = charset[rand.Intn(len(charset))]
|
||||
}
|
||||
|
||||
part1 := string(b[0:4])
|
||||
part2 := string(b[4:8])
|
||||
part3 := string(b[8:12])
|
||||
part4 := string(b[12:16])
|
||||
|
||||
payload := fmt.Sprintf("ANT-%s-%s-%s-%s", part1, part2, part3, part4)
|
||||
checksum := generateChecksum(payload)
|
||||
|
||||
keys = append(keys, fmt.Sprintf("%s-%s", payload, checksum))
|
||||
}
|
||||
|
||||
return keys, nil
|
||||
}
|
||||
@@ -240,14 +240,6 @@ func (a *App) importProfilePackageFromPath(zipPath string) (ProfilePackageImport
|
||||
}
|
||||
|
||||
a.browserMgr.InitData()
|
||||
if a.config.App.MaxProfileLimit > 0 {
|
||||
a.browserMgr.Mutex.Lock()
|
||||
currentCount := len(a.browserMgr.Profiles)
|
||||
a.browserMgr.Mutex.Unlock()
|
||||
if currentCount+len(profiles) > a.config.App.MaxProfileLimit {
|
||||
return ProfilePackageImportResult{}, fmt.Errorf("实例数量已达上限 (%d个),无法导入 %d 个实例", a.config.App.MaxProfileLimit, len(profiles))
|
||||
}
|
||||
}
|
||||
now := time.Now().Format(time.RFC3339)
|
||||
mappings := make(map[string]string, len(profiles))
|
||||
prepared := make([]browser.Profile, 0, len(profiles))
|
||||
|
||||
+1
-17
@@ -14,19 +14,8 @@ type TrayCallbacks = apptray.Callbacks
|
||||
|
||||
func LoadConfig(path string) (*Config, error) {
|
||||
cfg, err := appconfig.Load(path)
|
||||
configChanged := false
|
||||
repairedConfig := false
|
||||
if err == nil {
|
||||
if changed, _, syncErr := reconcileConfigWithLocalLicense(path, cfg); syncErr != nil {
|
||||
return cfg, syncErr
|
||||
} else {
|
||||
configChanged = changed
|
||||
}
|
||||
if configChanged {
|
||||
if saveErr := cfg.Save(path); saveErr != nil {
|
||||
return cfg, fmt.Errorf("写回配置失败: %w", saveErr)
|
||||
}
|
||||
}
|
||||
return cfg, nil
|
||||
}
|
||||
|
||||
@@ -40,12 +29,7 @@ func LoadConfig(path string) (*Config, error) {
|
||||
|
||||
defaultCfg := appconfig.DefaultConfig()
|
||||
repairedConfig = true
|
||||
if changed, _, syncErr := reconcileConfigWithLocalLicense(path, defaultCfg); syncErr != nil {
|
||||
return defaultCfg, syncErr
|
||||
} else {
|
||||
configChanged = changed
|
||||
}
|
||||
if repairedConfig || configChanged {
|
||||
if repairedConfig {
|
||||
if saveErr := os.MkdirAll(filepath.Dir(path), 0755); saveErr != nil {
|
||||
return defaultCfg, fmt.Errorf("加载配置失败: %w;创建配置目录失败: %v", err, saveErr)
|
||||
}
|
||||
|
||||
@@ -2,20 +2,16 @@ package browser
|
||||
|
||||
import "ant-chrome/backend/internal/config"
|
||||
|
||||
const DefaultMaxProfileLimit = 20
|
||||
|
||||
type DashboardStats struct {
|
||||
TotalInstances int
|
||||
RunningInstances int
|
||||
ProxyCount int
|
||||
CoreCount int
|
||||
MaxProfileLimit int
|
||||
}
|
||||
|
||||
func BuildDashboardStats(profiles []Profile, cfg *config.Config) DashboardStats {
|
||||
stats := DashboardStats{
|
||||
TotalInstances: len(profiles),
|
||||
MaxProfileLimit: DefaultMaxProfileLimit,
|
||||
TotalInstances: len(profiles),
|
||||
}
|
||||
for _, profile := range profiles {
|
||||
if profile.Running {
|
||||
@@ -25,9 +21,6 @@ func BuildDashboardStats(profiles []Profile, cfg *config.Config) DashboardStats
|
||||
if cfg != nil {
|
||||
stats.ProxyCount = len(cfg.Browser.Proxies)
|
||||
stats.CoreCount = len(cfg.Browser.Cores)
|
||||
if cfg.App.MaxProfileLimit > 0 {
|
||||
stats.MaxProfileLimit = cfg.App.MaxProfileLimit
|
||||
}
|
||||
}
|
||||
return stats
|
||||
}
|
||||
|
||||
@@ -17,6 +17,37 @@ import (
|
||||
|
||||
// DownloadAndExtractCore 执行异步下载解压并在过程中发送事件
|
||||
func (m *Manager) DownloadAndExtractCore(ctx context.Context, coreName string, targetUrl string, proxyConfig string) {
|
||||
coreName = strings.TrimSpace(coreName)
|
||||
for _, core := range m.ListCores() {
|
||||
if strings.EqualFold(core.CoreName, coreName) || filepath.Base(core.CorePath) == coreName {
|
||||
m.downloadAndExtractCore(ctx, CoreInput{
|
||||
CoreId: core.CoreId,
|
||||
CoreName: core.CoreName,
|
||||
CorePath: core.CorePath,
|
||||
IsDefault: core.IsDefault,
|
||||
}, targetUrl, proxyConfig, false)
|
||||
return
|
||||
}
|
||||
}
|
||||
m.downloadAndExtractCore(ctx, CoreInput{CoreName: coreName}, targetUrl, proxyConfig, false)
|
||||
}
|
||||
|
||||
// RedownloadCore 重新下载指定内核,验证成功后替换原目录并保留原配置。
|
||||
func (m *Manager) RedownloadCore(ctx context.Context, coreId string, targetUrl string, proxyConfig string) {
|
||||
core, ok := m.GetCore(coreId)
|
||||
if !ok {
|
||||
runtime.EventsEmit(ctx, "download:progress", DownloadProgress{Phase: "error", Progress: 0, Message: "内核不存在"})
|
||||
return
|
||||
}
|
||||
m.downloadAndExtractCore(ctx, CoreInput{
|
||||
CoreId: core.CoreId,
|
||||
CoreName: core.CoreName,
|
||||
CorePath: core.CorePath,
|
||||
IsDefault: core.IsDefault,
|
||||
}, targetUrl, proxyConfig, true)
|
||||
}
|
||||
|
||||
func (m *Manager) downloadAndExtractCore(ctx context.Context, coreInput CoreInput, targetUrl string, proxyConfig string, replaceExisting bool) {
|
||||
log := logger.New("Browser")
|
||||
t := time.Now()
|
||||
|
||||
@@ -30,27 +61,41 @@ func (m *Manager) DownloadAndExtractCore(ctx context.Context, coreName string, t
|
||||
|
||||
sendEvent("downloading", 0, "开始解析地址并创建下载请求: "+targetUrl)
|
||||
|
||||
// 1. 检查名称重复
|
||||
coreName = strings.TrimSpace(coreName)
|
||||
coreName := strings.TrimSpace(coreInput.CoreName)
|
||||
if coreName == "" {
|
||||
sendEvent("error", 0, "内核名称不能为空")
|
||||
return
|
||||
}
|
||||
|
||||
for _, c := range m.ListCores() {
|
||||
if replaceExisting && strings.EqualFold(c.CoreId, strings.TrimSpace(coreInput.CoreId)) {
|
||||
continue
|
||||
}
|
||||
if strings.EqualFold(c.CoreName, coreName) || filepath.Base(c.CorePath) == coreName {
|
||||
sendEvent("error", 0, "名称已存在,请换一个名称")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// 确保外层 chrome/ 目录存在
|
||||
chromeDir := m.ResolveRelativePath("chrome")
|
||||
if err := os.MkdirAll(chromeDir, 0755); err != nil {
|
||||
sendEvent("error", 0, "创建 chrome 目录失败")
|
||||
targetCorePath := strings.TrimSpace(coreInput.CorePath)
|
||||
if targetCorePath == "" {
|
||||
targetCorePath = filepath.Join("chrome", coreName)
|
||||
}
|
||||
targetDir := m.ResolveRelativePath(targetCorePath)
|
||||
parentDir := filepath.Dir(targetDir)
|
||||
if err := os.MkdirAll(parentDir, 0755); err != nil {
|
||||
sendEvent("error", 0, "创建内核目录失败")
|
||||
return
|
||||
}
|
||||
|
||||
targetDir := filepath.Join(chromeDir, coreName)
|
||||
if _, err := os.Stat(targetDir); !os.IsNotExist(err) {
|
||||
sendEvent("error", 0, "同名文件夹已存在: "+coreName)
|
||||
if _, err := os.Stat(targetDir); err == nil && !replaceExisting {
|
||||
sendEvent("error", 0, "同名内核目录已存在,请改名下载;如需覆盖,请在内核列表使用重新下载")
|
||||
return
|
||||
} else if err != nil && !os.IsNotExist(err) {
|
||||
sendEvent("error", 0, "检查内核目录失败: "+err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// 2. 准备 HttpClient(优先从 Windows 注册表读取真实系统代理,而非仅靠环境变量)
|
||||
transport := &http.Transport{}
|
||||
if proxyConfig == "__system__" {
|
||||
@@ -83,7 +128,7 @@ func (m *Manager) DownloadAndExtractCore(ctx context.Context, coreName string, t
|
||||
Transport: transport,
|
||||
}
|
||||
|
||||
tempFile, err := os.CreateTemp(chromeDir, "download_*.zip")
|
||||
tempFile, err := os.CreateTemp(parentDir, "download_*.zip")
|
||||
if err != nil {
|
||||
sendEvent("error", 0, "创建临时文件失败: "+err.Error())
|
||||
return
|
||||
@@ -106,32 +151,84 @@ func (m *Manager) DownloadAndExtractCore(ctx context.Context, coreName string, t
|
||||
sendEvent("extracting", 0, "下载完成,正在准备解压文件...")
|
||||
log.Info("内核下载完成", logger.F("url", targetUrl), logger.F("temp", tempFilePath), logger.F("cost", time.Since(t).String()))
|
||||
|
||||
tempExtractDir, err := os.MkdirTemp(parentDir, coreName+"_extract_*")
|
||||
if err != nil {
|
||||
sendEvent("error", 0, "创建临时解压目录失败: "+err.Error())
|
||||
return
|
||||
}
|
||||
cleanupTempExtract := true
|
||||
defer func() {
|
||||
if cleanupTempExtract {
|
||||
os.RemoveAll(tempExtractDir)
|
||||
}
|
||||
}()
|
||||
|
||||
// 3. 执行解压,并剥离顶层文件夹
|
||||
if err := extractZipAndStripRoot(tempFilePath, targetDir, func(p int, msg string) {
|
||||
if err := extractZipAndStripRoot(tempFilePath, tempExtractDir, func(p int, msg string) {
|
||||
sendEvent("extracting", p, msg)
|
||||
}); err != nil {
|
||||
os.RemoveAll(targetDir) // 删除不完整的解压文件
|
||||
sendEvent("error", 0, "解压失败: "+err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// 4. 将新内核配置入库
|
||||
corePath := filepath.Join("chrome", coreName)
|
||||
if m.ValidateCorePath(corePath).Valid {
|
||||
newCore := CoreInput{
|
||||
CoreId: uuid.NewString(), // 使用固定的 UUID 或生成新的
|
||||
CoreName: coreName,
|
||||
CorePath: corePath,
|
||||
IsDefault: len(m.ListCores()) == 0, // 如果没有其他内核,这设为默认
|
||||
}
|
||||
if err := m.SaveCore(newCore); err != nil {
|
||||
sendEvent("error", 0, "保存配置入库失败: "+err.Error())
|
||||
return
|
||||
}
|
||||
if !m.ValidateCorePath(tempExtractDir).Valid {
|
||||
sendEvent("error", 0, fmt.Sprintf("解压后未找到浏览器可执行文件(候选:%s),请检查压缩包内容!", strings.Join(CoreExecutableCandidates(), ", ")))
|
||||
return
|
||||
}
|
||||
|
||||
if err := replaceCoreDirectory(targetDir, tempExtractDir, replaceExisting); err != nil {
|
||||
sendEvent("error", 0, "替换内核目录失败: "+err.Error())
|
||||
return
|
||||
}
|
||||
cleanupTempExtract = false
|
||||
|
||||
coreToSave := CoreInput{
|
||||
CoreId: strings.TrimSpace(coreInput.CoreId),
|
||||
CoreName: coreName,
|
||||
CorePath: targetCorePath,
|
||||
IsDefault: coreInput.IsDefault,
|
||||
}
|
||||
if coreToSave.CoreId == "" {
|
||||
coreToSave.CoreId = uuid.NewString()
|
||||
coreToSave.IsDefault = len(m.ListCores()) == 0
|
||||
}
|
||||
if err := m.SaveCore(coreToSave); err != nil {
|
||||
sendEvent("error", 0, "保存配置入库失败: "+err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
if replaceExisting && strings.TrimSpace(coreInput.CoreId) != "" {
|
||||
sendEvent("done", 100, "内核重新下载成功!")
|
||||
log.Info("内核重新下载成功", logger.F("core_id", coreToSave.CoreId), logger.F("core_name", coreName))
|
||||
} else {
|
||||
sendEvent("done", 100, "内核下载与配置成功!")
|
||||
log.Info("内核下载配置入库成功", logger.F("core_name", coreName))
|
||||
} else {
|
||||
os.RemoveAll(targetDir) // 删除不正确的解压内容
|
||||
sendEvent("error", 0, fmt.Sprintf("解压后未找到浏览器可执行文件(候选:%s),请检查压缩包内容!", strings.Join(CoreExecutableCandidates(), ", ")))
|
||||
}
|
||||
}
|
||||
|
||||
func replaceCoreDirectory(targetDir string, tempExtractDir string, replaceExisting bool) error {
|
||||
if !replaceExisting {
|
||||
return os.Rename(tempExtractDir, targetDir)
|
||||
}
|
||||
|
||||
backupDir := targetDir + ".backup_" + time.Now().Format("20060102150405")
|
||||
if _, err := os.Stat(targetDir); err == nil {
|
||||
if err := os.Rename(targetDir, backupDir); err != nil {
|
||||
return err
|
||||
}
|
||||
} else if err != nil && !os.IsNotExist(err) {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := os.Rename(tempExtractDir, targetDir); err != nil {
|
||||
if backupDir != "" {
|
||||
_ = os.Rename(backupDir, targetDir)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
if backupDir != "" {
|
||||
_ = os.RemoveAll(backupDir)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -64,11 +64,6 @@ func (m *Manager) copyProfile(profileId string, newName string, fingerprintResol
|
||||
m.Mutex.Lock()
|
||||
defer m.Mutex.Unlock()
|
||||
|
||||
if m.Config.App.MaxProfileLimit > 0 && len(m.Profiles) >= m.Config.App.MaxProfileLimit {
|
||||
log.Error("复制实例失败: 达到数量上限", logger.F("limit", m.Config.App.MaxProfileLimit))
|
||||
return nil, newProfileLimitExceededError(m.Config.App.MaxProfileLimit, "复制实例")
|
||||
}
|
||||
|
||||
src, exists := m.Profiles[profileId]
|
||||
if !exists {
|
||||
log.Error("源实例不存在", logger.F("profile_id", profileId))
|
||||
|
||||
@@ -2,7 +2,6 @@ package browser
|
||||
|
||||
import (
|
||||
"ant-chrome/backend/internal/logger"
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -16,10 +15,6 @@ func (m *Manager) Create(input ProfileInput) (*Profile, error) {
|
||||
m.Mutex.Lock()
|
||||
defer m.Mutex.Unlock()
|
||||
|
||||
if m.Config.App.MaxProfileLimit > 0 && len(m.Profiles) >= m.Config.App.MaxProfileLimit {
|
||||
return nil, fmt.Errorf("实例数量已达上限 (%d个),无法创建新的实例。请兑换额度后重试!", m.Config.App.MaxProfileLimit)
|
||||
}
|
||||
|
||||
now := time.Now().Format(time.RFC3339)
|
||||
profileId := uuid.NewString()
|
||||
userDataDir := strings.TrimSpace(input.UserDataDir)
|
||||
@@ -85,10 +80,6 @@ func (m *Manager) ensureProfileLaunchCode(profile *Profile) {
|
||||
}
|
||||
}
|
||||
|
||||
func newProfileLimitExceededError(limit int, action string) error {
|
||||
return fmt.Errorf("实例数量已达上限 (%d个),无法%s。请兑换额度后重试!", limit, action)
|
||||
}
|
||||
|
||||
func buildProfileGroupID(value string) string {
|
||||
return strings.TrimSpace(value)
|
||||
}
|
||||
|
||||
@@ -1,13 +1,6 @@
|
||||
package config
|
||||
|
||||
import "strings"
|
||||
|
||||
const (
|
||||
DefaultMaxProfileLimit = 20
|
||||
StandardCDKeyProfileBonus = 10
|
||||
GithubStarRewardKey = "GITHUB_STAR_REWARD"
|
||||
GithubStarProfileBonus = 50
|
||||
GithubStarProfileTotal = DefaultMaxProfileLimit + GithubStarProfileBonus
|
||||
DefaultLaunchServerPort = 19876
|
||||
DefaultLaunchServerAPIKeyHeader = "X-Ant-Api-Key"
|
||||
DefaultAutomationInstallPolicy = "on_demand"
|
||||
@@ -22,36 +15,6 @@ const (
|
||||
AutomationNodeSourceBundled = "bundled"
|
||||
)
|
||||
|
||||
// RewardForUsedKey 返回指定兑换记录对应的永久额度奖励。
|
||||
func RewardForUsedKey(key string) int {
|
||||
normalized := strings.ToUpper(strings.TrimSpace(key))
|
||||
if normalized == "" {
|
||||
return 0
|
||||
}
|
||||
if normalized == GithubStarRewardKey {
|
||||
return GithubStarProfileBonus
|
||||
}
|
||||
return StandardCDKeyProfileBonus
|
||||
}
|
||||
|
||||
// MinimumProfileLimitForUsedKeys 根据兑换记录计算最低应得实例额度。
|
||||
func MinimumProfileLimitForUsedKeys(keys []string) int {
|
||||
limit := DefaultMaxProfileLimit
|
||||
seen := make(map[string]struct{}, len(keys))
|
||||
for _, key := range keys {
|
||||
normalized := strings.ToUpper(strings.TrimSpace(key))
|
||||
if normalized == "" {
|
||||
continue
|
||||
}
|
||||
if _, exists := seen[normalized]; exists {
|
||||
continue
|
||||
}
|
||||
seen[normalized] = struct{}{}
|
||||
limit += RewardForUsedKey(normalized)
|
||||
}
|
||||
return limit
|
||||
}
|
||||
|
||||
// LaunchServerConfig Launch HTTP 服务配置
|
||||
type LaunchServerConfig struct {
|
||||
Port int `yaml:"port"`
|
||||
@@ -117,10 +80,8 @@ type SQLiteConfig struct {
|
||||
}
|
||||
|
||||
type AppConfig struct {
|
||||
Name string `yaml:"name"`
|
||||
Window WindowConfig `yaml:"window"`
|
||||
MaxProfileLimit int `yaml:"max_profile_limit"`
|
||||
UsedCDKeys []string `yaml:"used_cd_keys"`
|
||||
Name string `yaml:"name"`
|
||||
Window WindowConfig `yaml:"window"`
|
||||
}
|
||||
|
||||
type WindowConfig struct {
|
||||
|
||||
@@ -65,15 +65,6 @@ func normalizeConfig(config *Config) {
|
||||
if config.App.Window.MinHeight <= 0 {
|
||||
config.App.Window.MinHeight = defaultConfig.App.Window.MinHeight
|
||||
}
|
||||
if config.App.UsedCDKeys == nil {
|
||||
config.App.UsedCDKeys = []string{}
|
||||
}
|
||||
|
||||
expectedLimit := MinimumProfileLimitForUsedKeys(config.App.UsedCDKeys)
|
||||
if config.App.MaxProfileLimit < expectedLimit {
|
||||
config.App.MaxProfileLimit = expectedLimit
|
||||
}
|
||||
|
||||
if config.Runtime.MaxMemoryMB <= 0 {
|
||||
config.Runtime.MaxMemoryMB = defaultConfig.Runtime.MaxMemoryMB
|
||||
}
|
||||
@@ -257,8 +248,6 @@ func DefaultConfig() *Config {
|
||||
MinWidth: 1200,
|
||||
MinHeight: 700,
|
||||
},
|
||||
MaxProfileLimit: DefaultMaxProfileLimit,
|
||||
UsedCDKeys: []string{},
|
||||
},
|
||||
Runtime: RuntimeConfig{
|
||||
MaxMemoryMB: 0,
|
||||
|
||||
@@ -1,174 +0,0 @@
|
||||
package backend
|
||||
|
||||
import (
|
||||
appconfig "ant-chrome/backend/internal/config"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
const localLicenseStateFilename = ".ant-license.json"
|
||||
|
||||
type localLicenseState struct {
|
||||
MaxProfileLimit int `json:"maxProfileLimit"`
|
||||
UsedCDKeys []string `json:"usedCdKeys,omitempty"`
|
||||
}
|
||||
|
||||
func localLicenseStatePath(configPath string) string {
|
||||
configPath = strings.TrimSpace(configPath)
|
||||
if configPath == "" {
|
||||
return localLicenseStateFilename
|
||||
}
|
||||
dir := filepath.Dir(configPath)
|
||||
if dir == "." || dir == "" {
|
||||
if cwd, err := os.Getwd(); err == nil {
|
||||
dir = cwd
|
||||
}
|
||||
}
|
||||
return filepath.Join(dir, localLicenseStateFilename)
|
||||
}
|
||||
|
||||
func loadLocalLicenseState(configPath string) (*localLicenseState, bool, error) {
|
||||
statePath := localLicenseStatePath(configPath)
|
||||
data, err := os.ReadFile(statePath)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return &localLicenseState{}, false, nil
|
||||
}
|
||||
return nil, false, fmt.Errorf("读取本机额度状态失败: %w", err)
|
||||
}
|
||||
|
||||
var state localLicenseState
|
||||
if err := json.Unmarshal(data, &state); err != nil {
|
||||
// 状态文件损坏时回退到当前配置并在后续自动重建,避免阻断启动。
|
||||
return &localLicenseState{}, false, nil
|
||||
}
|
||||
normalizeLocalLicenseState(&state)
|
||||
return &state, true, nil
|
||||
}
|
||||
|
||||
func saveLocalLicenseState(configPath string, state *localLicenseState) error {
|
||||
if state == nil {
|
||||
state = &localLicenseState{}
|
||||
}
|
||||
cloned := *state
|
||||
normalizeLocalLicenseState(&cloned)
|
||||
|
||||
data, err := json.MarshalIndent(cloned, "", " ")
|
||||
if err != nil {
|
||||
return fmt.Errorf("序列化本机额度状态失败: %w", err)
|
||||
}
|
||||
if err := os.WriteFile(localLicenseStatePath(configPath), data, 0644); err != nil {
|
||||
return fmt.Errorf("写入本机额度状态失败: %w", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func reconcileConfigWithLocalLicense(configPath string, cfg *Config) (bool, bool, error) {
|
||||
if cfg == nil {
|
||||
return false, false, nil
|
||||
}
|
||||
|
||||
state, stateExists, err := loadLocalLicenseState(configPath)
|
||||
if err != nil {
|
||||
return false, false, err
|
||||
}
|
||||
|
||||
originalKeys := normalizeUsedCDKeys(cfg.App.UsedCDKeys)
|
||||
originalMax := cfg.App.MaxProfileLimit
|
||||
|
||||
mergedKeys := unionUsedCDKeys(originalKeys, state.UsedCDKeys)
|
||||
effectiveMax := maxInt(originalMax, state.MaxProfileLimit)
|
||||
minLimit := appconfig.MinimumProfileLimitForUsedKeys(mergedKeys)
|
||||
if effectiveMax < minLimit {
|
||||
effectiveMax = minLimit
|
||||
}
|
||||
|
||||
cfg.App.UsedCDKeys = mergedKeys
|
||||
cfg.App.MaxProfileLimit = effectiveMax
|
||||
|
||||
configChanged := originalMax != effectiveMax || !sameStringSlice(originalKeys, mergedKeys)
|
||||
|
||||
desiredState := &localLicenseState{
|
||||
MaxProfileLimit: effectiveMax,
|
||||
UsedCDKeys: mergedKeys,
|
||||
}
|
||||
normalizeLocalLicenseState(desiredState)
|
||||
|
||||
stateChanged := state.MaxProfileLimit != desiredState.MaxProfileLimit || !sameStringSlice(state.UsedCDKeys, desiredState.UsedCDKeys)
|
||||
shouldPersist := stateExists || desiredState.MaxProfileLimit > DefaultConfig().App.MaxProfileLimit || len(desiredState.UsedCDKeys) > 0
|
||||
if shouldPersist && stateChanged {
|
||||
if err := saveLocalLicenseState(configPath, desiredState); err != nil {
|
||||
return configChanged, false, err
|
||||
}
|
||||
return configChanged, true, nil
|
||||
}
|
||||
|
||||
return configChanged, false, nil
|
||||
}
|
||||
|
||||
func normalizeLocalLicenseState(state *localLicenseState) {
|
||||
if state == nil {
|
||||
return
|
||||
}
|
||||
state.UsedCDKeys = normalizeUsedCDKeys(state.UsedCDKeys)
|
||||
minLimit := appconfig.MinimumProfileLimitForUsedKeys(state.UsedCDKeys)
|
||||
if state.MaxProfileLimit < minLimit {
|
||||
state.MaxProfileLimit = minLimit
|
||||
}
|
||||
}
|
||||
|
||||
func normalizeUsedCDKeys(keys []string) []string {
|
||||
result := make([]string, 0, len(keys))
|
||||
seen := make(map[string]struct{}, len(keys))
|
||||
for _, key := range keys {
|
||||
normalized := strings.ToUpper(strings.TrimSpace(key))
|
||||
if normalized == "" {
|
||||
continue
|
||||
}
|
||||
if _, ok := seen[normalized]; ok {
|
||||
continue
|
||||
}
|
||||
seen[normalized] = struct{}{}
|
||||
result = append(result, normalized)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func unionUsedCDKeys(primary, secondary []string) []string {
|
||||
result := make([]string, 0, len(primary)+len(secondary))
|
||||
seen := make(map[string]struct{}, len(primary)+len(secondary))
|
||||
appendKeys := func(list []string) {
|
||||
for _, key := range normalizeUsedCDKeys(list) {
|
||||
if _, ok := seen[key]; ok {
|
||||
continue
|
||||
}
|
||||
seen[key] = struct{}{}
|
||||
result = append(result, key)
|
||||
}
|
||||
}
|
||||
appendKeys(primary)
|
||||
appendKeys(secondary)
|
||||
return result
|
||||
}
|
||||
|
||||
func sameStringSlice(a, b []string) bool {
|
||||
if len(a) != len(b) {
|
||||
return false
|
||||
}
|
||||
for i := range a {
|
||||
if a[i] != b[i] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func maxInt(a, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -9,9 +9,6 @@ app:
|
||||
height: 1000
|
||||
min_width: 1200
|
||||
min_height: 700
|
||||
max_profile_limit: 70
|
||||
used_cd_keys:
|
||||
- GITHUB_STAR_REWARD
|
||||
runtime:
|
||||
max_memory_mb: 0
|
||||
gc_percent: 100
|
||||
|
||||
@@ -11,3 +11,4 @@ export * from './api/groups'
|
||||
export * from './api/launch'
|
||||
export * from './api/automationDemo'
|
||||
export * from './api/filesystem'
|
||||
export * from './api/backup'
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
import { getBindings } from './runtime'
|
||||
|
||||
export interface BrowserBackupActionResult {
|
||||
cancelled?: boolean
|
||||
message?: string
|
||||
zipPath?: string
|
||||
resetFirst?: boolean
|
||||
imported?: number
|
||||
skipped?: number
|
||||
conflicts?: number
|
||||
partial?: boolean
|
||||
componentTotal?: number
|
||||
componentSuccess?: number
|
||||
componentFailed?: number
|
||||
failedComponents?: Array<{
|
||||
componentId?: string
|
||||
componentName?: string
|
||||
error?: string
|
||||
}>
|
||||
}
|
||||
|
||||
export async function exportFullBrowserBackup(): Promise<BrowserBackupActionResult> {
|
||||
const bindings: any = await getBindings()
|
||||
if (!bindings?.BackupExportPackage) {
|
||||
return { cancelled: false, message: '当前环境不支持全量备份' }
|
||||
}
|
||||
return (await bindings.BackupExportPackage()) || {}
|
||||
}
|
||||
|
||||
export async function importFullBrowserBackup(resetFirst: boolean): Promise<BrowserBackupActionResult> {
|
||||
const bindings: any = await getBindings()
|
||||
if (!bindings?.BackupImportPackage) {
|
||||
return { cancelled: false, message: '当前环境不支持导入备份' }
|
||||
}
|
||||
return (await bindings.BackupImportPackage(resetFirst)) || {}
|
||||
}
|
||||
@@ -80,6 +80,15 @@ export async function BrowserCoreDownload(coreName: string, url: string, proxyCo
|
||||
return true
|
||||
}
|
||||
|
||||
export async function redownloadBrowserCore(coreId: string, url: string, proxyConfig?: string): Promise<boolean> {
|
||||
const bindings: any = await getBindings()
|
||||
if (bindings?.BrowserCoreRedownload) {
|
||||
await bindings.BrowserCoreRedownload(coreId, url, proxyConfig || '')
|
||||
return true
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
export async function openCorePath(corePath: string): Promise<boolean> {
|
||||
const bindings: any = await getBindings()
|
||||
if (bindings?.OpenCorePath) {
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
import { AlertTriangle, DatabaseBackup, Download, Upload } from 'lucide-react'
|
||||
|
||||
import { Button, Modal } from '../../../shared/components'
|
||||
|
||||
type BackupMode = 'export' | 'import-merge' | 'import-reset' | 'none'
|
||||
|
||||
interface BrowserBackupModalProps {
|
||||
open: boolean
|
||||
runningCount: number
|
||||
selectedCount: number
|
||||
selectedExporting: boolean
|
||||
loadingMode: BackupMode
|
||||
onClose: () => void
|
||||
onExportSelected: () => void
|
||||
onExportFull: () => void
|
||||
onImportMerge: () => void
|
||||
onImportReset: () => void
|
||||
}
|
||||
|
||||
export function BrowserBackupModal({
|
||||
open,
|
||||
runningCount,
|
||||
selectedCount,
|
||||
selectedExporting,
|
||||
loadingMode,
|
||||
onClose,
|
||||
onExportSelected,
|
||||
onExportFull,
|
||||
onImportMerge,
|
||||
onImportReset,
|
||||
}: BrowserBackupModalProps) {
|
||||
const busy = loadingMode !== 'none' || selectedExporting
|
||||
|
||||
return (
|
||||
<Modal
|
||||
open={open}
|
||||
onClose={() => {
|
||||
if (!busy) onClose()
|
||||
}}
|
||||
title="备份与导入"
|
||||
width="560px"
|
||||
closable={!busy}
|
||||
footer={(
|
||||
<>
|
||||
<Button variant="secondary" onClick={onClose} disabled={busy}>关闭</Button>
|
||||
<Button variant="secondary" onClick={onImportMerge} loading={loadingMode === 'import-merge'} disabled={busy && loadingMode !== 'import-merge'}>
|
||||
<Upload className="w-4 h-4" />合并导入
|
||||
</Button>
|
||||
<Button variant="danger" onClick={onImportReset} loading={loadingMode === 'import-reset'} disabled={busy && loadingMode !== 'import-reset'}>
|
||||
清空恢复
|
||||
</Button>
|
||||
<Button variant="secondary" onClick={onExportSelected} loading={selectedExporting} disabled={selectedCount === 0 || (busy && !selectedExporting)}>
|
||||
<Download className="w-4 h-4" />备份选中
|
||||
</Button>
|
||||
<Button onClick={onExportFull} loading={loadingMode === 'export'} disabled={busy && loadingMode !== 'export'}>
|
||||
<Download className="w-4 h-4" />全量备份
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
>
|
||||
<div className="space-y-4 text-sm text-[var(--color-text-secondary)]">
|
||||
<div className="rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-secondary)] p-3">
|
||||
<div className="flex items-center gap-2 font-medium text-[var(--color-text-primary)]">
|
||||
<DatabaseBackup className="w-4 h-4" />
|
||||
<span>全量备份范围</span>
|
||||
</div>
|
||||
<div className="mt-2 grid grid-cols-2 gap-x-4 gap-y-1 text-xs text-[var(--color-text-muted)]">
|
||||
<span>实例名称 / 分组 / 标签</span>
|
||||
<span>代理池 / 订阅 / 测速结果</span>
|
||||
<span>内核配置 / 内核文件</span>
|
||||
<span>应用书签 / 插件配置</span>
|
||||
<span>实例浏览器数据目录</span>
|
||||
<span>Cookie / LocalStorage / IndexedDB</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="rounded-lg border border-[var(--color-border-default)] p-3 text-xs leading-5 text-[var(--color-text-muted)]">
|
||||
<p><span className="font-medium text-[var(--color-text-secondary)]">备份选中:</span>导出当前选中的 {selectedCount} 个实例及浏览器用户数据,适合迁移少量实例。</p>
|
||||
<p>完整灾备请用全量备份,它会额外包含完整代理池、内核、数据库和应用级配置。</p>
|
||||
</div>
|
||||
|
||||
{runningCount > 0 && (
|
||||
<div className="flex gap-2 rounded-lg border border-[var(--color-warning)]/40 bg-[var(--color-warning)]/10 p-3 text-xs text-[var(--color-warning)]">
|
||||
<AlertTriangle className="mt-0.5 h-4 w-4 shrink-0" />
|
||||
<span>当前有 {runningCount} 个实例运行中。建议先停止实例再备份,否则 Cookie、数据库和缓存文件可能未完整落盘。</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="rounded-lg border border-[var(--color-border-default)] p-3 text-xs leading-5 text-[var(--color-text-muted)]">
|
||||
<p>登录态会随浏览器用户数据一起打包,但 Windows 加密信息可能绑定当前系统用户。</p>
|
||||
<p>同机同用户恢复成功率最高;跨机器、重装系统或换 Windows 用户时,Cookie 和密码可能无法解密。</p>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 gap-2 text-xs text-[var(--color-text-muted)]">
|
||||
<p><span className="font-medium text-[var(--color-text-secondary)]">全量备份:</span>导出配置、数据库、代理、内核、实例浏览器数据。</p>
|
||||
<p><span className="font-medium text-[var(--color-text-secondary)]">合并导入:</span>保留当前数据,按 ID、路径、URL 等规则跳过重复项。</p>
|
||||
<p><span className="font-medium text-[var(--color-text-secondary)]">清空恢复:</span>先初始化当前数据,再从备份包完整恢复。</p>
|
||||
</div>
|
||||
</div>
|
||||
</Modal>
|
||||
)
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import { Activity, CheckCircle, ChevronRight, ChevronUp, Edit2, FileText, Gift, LayoutGrid, List, Play, Plus, RefreshCw, Sliders, Square, Star, Trash2, Upload, XCircle } from 'lucide-react'
|
||||
import { Archive, CheckCircle, ChevronRight, ChevronUp, Edit2, LayoutGrid, List, Play, Plus, RefreshCw, Sliders, Star, Trash2, Upload, XCircle } from 'lucide-react'
|
||||
|
||||
import { Button, Card, FormItem, Input, Modal, StatCard, Switch, Table, Textarea } from '../../../shared/components'
|
||||
import { Button, Card, FormItem, Input, Modal, Switch, Table, Textarea } from '../../../shared/components'
|
||||
import type { TableColumn } from '../../../shared/components/Table'
|
||||
|
||||
import type { BrowserCore, BrowserCoreInput, BrowserGroupWithCount, BrowserProxy, BrowserSettings } from '../types'
|
||||
@@ -25,9 +25,9 @@ interface BrowserListHeaderProps {
|
||||
onToggleHeaderCollapsed: () => void
|
||||
onRefresh: () => void
|
||||
onOpenSettings: () => void
|
||||
onOpenExpandModal: () => void
|
||||
onOpenTrash: () => void
|
||||
onImportProfiles: () => void
|
||||
onOpenBackup: () => void
|
||||
importingProfiles?: boolean
|
||||
onViewModeChange: (next: BrowserViewMode) => void
|
||||
}
|
||||
@@ -47,25 +47,42 @@ export function BrowserListHeader({
|
||||
onToggleHeaderCollapsed,
|
||||
onRefresh,
|
||||
onOpenSettings,
|
||||
onOpenExpandModal,
|
||||
onOpenTrash,
|
||||
onImportProfiles,
|
||||
onOpenBackup,
|
||||
importingProfiles = false,
|
||||
onViewModeChange,
|
||||
}: BrowserListHeaderProps) {
|
||||
const statItems = [
|
||||
{ label: '总数', value: profileCount },
|
||||
{ label: '运行', value: runningCount },
|
||||
{ label: '停止', value: Math.max(0, profileCount - runningCount) },
|
||||
]
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<div className="flex flex-wrap items-center gap-3 min-w-0">
|
||||
<h1 className="text-xl font-semibold text-[var(--color-text-primary)]">实例列表</h1>
|
||||
<p className="text-sm text-[var(--color-text-muted)] mt-1">
|
||||
当前配置总数 {profileCount}
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
{statItems.map((item) => (
|
||||
<div
|
||||
key={item.label}
|
||||
className="flex h-8 items-center gap-2 rounded-lg border border-[var(--color-border-default)] bg-[var(--color-bg-elevated)] px-3 text-sm"
|
||||
>
|
||||
<span className="text-[var(--color-text-muted)]">{item.label}</span>
|
||||
<span className="font-semibold text-[var(--color-text-primary)]">{item.value}</span>
|
||||
</div>
|
||||
))}
|
||||
{filteredProfileCount !== profileCount && (
|
||||
<span className="ml-1 text-[var(--color-accent)]">(已筛选 {filteredProfileCount})</span>
|
||||
<div className="flex h-8 items-center gap-2 rounded-lg border border-[var(--color-accent)]/30 bg-[var(--color-accent)]/5 px-3 text-sm">
|
||||
<span className="text-[var(--color-text-muted)]">筛选</span>
|
||||
<span className="font-semibold text-[var(--color-accent)]">{filteredProfileCount}</span>
|
||||
</div>
|
||||
)}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
<div className="flex flex-wrap justify-end gap-2">
|
||||
<Button variant="secondary" size="sm" onClick={onToggleHeaderCollapsed}>
|
||||
{headerCollapsed ? <ChevronRight className="w-4 h-4" /> : <ChevronUp className="w-4 h-4" />}
|
||||
{headerCollapsed ? '展开面板' : '收起面板'}
|
||||
@@ -82,13 +99,8 @@ export function BrowserListHeader({
|
||||
<Button variant="secondary" size="sm" onClick={onImportProfiles} loading={importingProfiles}>
|
||||
<Upload className="w-4 h-4" />导入实例
|
||||
</Button>
|
||||
<Button
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
onClick={onOpenExpandModal}
|
||||
className="text-[var(--color-primary)] border-[var(--color-primary)] hover:bg-[var(--color-primary)]/10"
|
||||
>
|
||||
<Gift className="w-4 h-4" />扩容实例
|
||||
<Button variant="secondary" size="sm" onClick={onOpenBackup}>
|
||||
<Archive className="w-4 h-4" />备份
|
||||
</Button>
|
||||
<div className="flex items-center bg-[var(--color-bg-secondary)] rounded-md border border-[var(--color-border-default)] p-0.5 ml-2">
|
||||
<button
|
||||
@@ -114,24 +126,15 @@ export function BrowserListHeader({
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!headerCollapsed && (
|
||||
<>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||
<StatCard title="配置总数" value={`${profileCount}`} icon={<FileText className="w-5 h-5" />} />
|
||||
<StatCard title="运行中实例" value={`${runningCount}`} icon={<Activity className="w-5 h-5" />} />
|
||||
<StatCard title="停止实例" value={`${profileCount - runningCount}`} icon={<Square className="w-5 h-5 text-gray-400" />} />
|
||||
</div>
|
||||
|
||||
<InstanceFilterBar
|
||||
filters={filters}
|
||||
onChange={onFiltersChange}
|
||||
proxies={proxies}
|
||||
cores={cores}
|
||||
allTags={allTags}
|
||||
groups={groups}
|
||||
/>
|
||||
</>
|
||||
<InstanceFilterBar
|
||||
filters={filters}
|
||||
onChange={onFiltersChange}
|
||||
proxies={proxies}
|
||||
cores={cores}
|
||||
allTags={allTags}
|
||||
groups={groups}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { ChevronDown, ChevronUp, Copy, Download, Pencil, Play, RefreshCw, Square, Trash2 } from 'lucide-react'
|
||||
import { Archive, ChevronDown, ChevronUp, Copy, Download, Pencil, Play, RefreshCw, Square, Trash2 } from 'lucide-react'
|
||||
|
||||
import { Button, toast } from '../../../shared/components'
|
||||
import { regenerateBrowserProfileCode, setBrowserProfileCode } from '../api'
|
||||
@@ -12,6 +12,7 @@ interface BatchToolbarProps {
|
||||
onBatchStart: () => void
|
||||
onBatchStop: () => void
|
||||
onBatchExport: () => void
|
||||
onOpenBackup: () => void
|
||||
onBatchDelete: () => void
|
||||
batchLoading: boolean
|
||||
exporting?: boolean
|
||||
@@ -25,6 +26,7 @@ export function BatchToolbar({
|
||||
onBatchStart,
|
||||
onBatchStop,
|
||||
onBatchExport,
|
||||
onOpenBackup,
|
||||
onBatchDelete,
|
||||
batchLoading,
|
||||
exporting = false,
|
||||
@@ -46,6 +48,9 @@ export function BatchToolbar({
|
||||
<Button size="sm" variant="secondary" onClick={onBatchExport} loading={exporting} title="导出实例">
|
||||
<Download className="w-3.5 h-3.5" />导出
|
||||
</Button>
|
||||
<Button size="sm" variant="secondary" onClick={onOpenBackup} title="全量备份与导入">
|
||||
<Archive className="w-3.5 h-3.5" />备份
|
||||
</Button>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
|
||||
@@ -4,6 +4,7 @@ import type { BrowserProfile, BrowserProfileCopyOptions, BrowserProxy } from '..
|
||||
import { BrowserCoreEditorModal, BrowserListHeader, BrowserListSettingsModal } from '../components/BrowserListLayout'
|
||||
import { BatchToolbar } from '../components/BrowserListWidgets'
|
||||
import { BrowserProfilesPanel } from '../components/BrowserProfilesPanel'
|
||||
import { BrowserBackupModal } from '../components/BrowserBackupModal'
|
||||
import { ProxyPickerModal } from '../components/ProxyPickerModal'
|
||||
import { ProfileExtensionModal } from '../components/ProfileExtensionModal'
|
||||
import { createBrowserProfileCopyOptions, isBrowserProfileCopyOptionsValid } from '../copyOptions'
|
||||
@@ -26,8 +27,12 @@ import {
|
||||
startBrowserInstance,
|
||||
stopBrowserInstance,
|
||||
updateBrowserProfile,
|
||||
exportFullBrowserBackup,
|
||||
importFullBrowserBackup,
|
||||
} from '../api'
|
||||
|
||||
type BackupLoadingMode = 'none' | 'export' | 'import-merge' | 'import-reset'
|
||||
|
||||
const directProxyID = '__direct__'
|
||||
|
||||
export function BrowserListPage() {
|
||||
@@ -43,6 +48,8 @@ export function BrowserListPage() {
|
||||
const [selectedIds, setSelectedIds] = useState<Set<string>>(new Set())
|
||||
const [batchLoading, setBatchLoading] = useState(false)
|
||||
const [profilePackageBusy, setProfilePackageBusy] = useState(false)
|
||||
const [backupModalOpen, setBackupModalOpen] = useState(false)
|
||||
const [backupLoadingMode, setBackupLoadingMode] = useState<BackupLoadingMode>('none')
|
||||
const [deleteConfirm, setDeleteConfirm] = useState<{
|
||||
open: boolean
|
||||
mode: 'single' | 'batch'
|
||||
@@ -114,12 +121,7 @@ export function BrowserListPage() {
|
||||
coreValidation,
|
||||
setCoreValidation,
|
||||
savingCore,
|
||||
expandModalOpen,
|
||||
setExpandModalOpen,
|
||||
redeeming,
|
||||
maxProfileLimit,
|
||||
loadCores,
|
||||
loadQuota,
|
||||
handleOpenSettings,
|
||||
handleSaveSettings,
|
||||
handleOpenCoreModal,
|
||||
@@ -127,7 +129,6 @@ export function BrowserListPage() {
|
||||
handleSaveCore,
|
||||
handleDeleteCore,
|
||||
handleSetDefaultCore,
|
||||
handleOpenGithubStarGift,
|
||||
} = useBrowserListSettings()
|
||||
const {
|
||||
profiles,
|
||||
@@ -143,7 +144,7 @@ export function BrowserListPage() {
|
||||
mergeProfileState,
|
||||
updateProxiesState,
|
||||
loadProfiles,
|
||||
} = useBrowserListData({ loadQuota, loadCores })
|
||||
} = useBrowserListData({ loadCores })
|
||||
const {
|
||||
runningCount,
|
||||
allTags,
|
||||
@@ -318,6 +319,41 @@ export function BrowserListPage() {
|
||||
}
|
||||
}
|
||||
|
||||
const handleExportFullBackup = async () => {
|
||||
if (backupLoadingMode !== 'none') return
|
||||
if (runningCount > 0) {
|
||||
toast.warning(`建议先停止 ${runningCount} 个运行中实例后再备份`)
|
||||
}
|
||||
setBackupLoadingMode('export')
|
||||
try {
|
||||
const result = await exportFullBrowserBackup()
|
||||
if (result.cancelled) return
|
||||
toast.success(result.zipPath ? `备份已导出:${result.zipPath}` : (result.message || '备份已导出'))
|
||||
} catch (error: any) {
|
||||
toast.error(error?.message || '全量备份失败')
|
||||
} finally {
|
||||
setBackupLoadingMode('none')
|
||||
}
|
||||
}
|
||||
|
||||
const handleImportFullBackup = async (resetFirst: boolean) => {
|
||||
if (backupLoadingMode !== 'none') return
|
||||
const mode: BackupLoadingMode = resetFirst ? 'import-reset' : 'import-merge'
|
||||
setBackupLoadingMode(mode)
|
||||
try {
|
||||
const result = await importFullBrowserBackup(resetFirst)
|
||||
if (result.cancelled) return
|
||||
toast.success(result.message || (resetFirst ? '备份已恢复' : '备份已合并'))
|
||||
setSelectedIds(new Set())
|
||||
setBackupModalOpen(false)
|
||||
await loadProfiles()
|
||||
} catch (error: any) {
|
||||
toast.error(error?.message || '导入备份失败')
|
||||
} finally {
|
||||
setBackupLoadingMode('none')
|
||||
}
|
||||
}
|
||||
|
||||
const openDeleteConfirm = (profileId: string) => {
|
||||
const profile = profiles.find(item => item.profileId === profileId)
|
||||
setDeleteConfirm({
|
||||
@@ -479,11 +515,8 @@ export function BrowserListPage() {
|
||||
onOpenSettings={handleOpenSettings}
|
||||
onOpenTrash={openTrashModal}
|
||||
onImportProfiles={handleImportProfiles}
|
||||
onOpenBackup={() => setBackupModalOpen(true)}
|
||||
importingProfiles={profilePackageBusy}
|
||||
onOpenExpandModal={() => {
|
||||
setExpandModalOpen(true)
|
||||
loadQuota()
|
||||
}}
|
||||
onViewModeChange={setViewMode}
|
||||
/>
|
||||
|
||||
@@ -496,11 +529,25 @@ export function BrowserListPage() {
|
||||
onBatchStart={handleBatchStart}
|
||||
onBatchStop={handleBatchStop}
|
||||
onBatchExport={handleBatchExport}
|
||||
onOpenBackup={() => setBackupModalOpen(true)}
|
||||
onBatchDelete={openBatchDeleteConfirm}
|
||||
batchLoading={batchLoading}
|
||||
exporting={profilePackageBusy}
|
||||
/>
|
||||
|
||||
<BrowserBackupModal
|
||||
open={backupModalOpen}
|
||||
runningCount={runningCount}
|
||||
selectedCount={selectedIds.size}
|
||||
selectedExporting={profilePackageBusy}
|
||||
loadingMode={backupLoadingMode}
|
||||
onClose={() => setBackupModalOpen(false)}
|
||||
onExportSelected={() => { void handleBatchExport() }}
|
||||
onExportFull={() => { void handleExportFullBackup() }}
|
||||
onImportMerge={() => { void handleImportFullBackup(false) }}
|
||||
onImportReset={() => { void handleImportFullBackup(true) }}
|
||||
/>
|
||||
|
||||
<BrowserProfilesPanel
|
||||
loading={loading}
|
||||
viewMode={viewMode}
|
||||
@@ -605,12 +652,6 @@ export function BrowserListPage() {
|
||||
p.profileId === kwModal.profile!.profileId ? { ...p, keywords } : p
|
||||
))
|
||||
}}
|
||||
expandModalOpen={expandModalOpen}
|
||||
onCloseExpand={() => setExpandModalOpen(false)}
|
||||
profilesCount={profiles.length}
|
||||
maxProfileLimit={maxProfileLimit}
|
||||
redeeming={redeeming}
|
||||
onOpenGithubStarGift={handleOpenGithubStarGift}
|
||||
copyModal={copyModal}
|
||||
copyName={copyName}
|
||||
copyOptions={copyOptions}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { FolderOpen } from 'lucide-react'
|
||||
import { Badge, Button, Card, ConfirmModal, Table, toast } from '../../../shared/components'
|
||||
import type { TableColumn } from '../../../shared/components/Table'
|
||||
import type { BrowserCore, BrowserCoreInput, BrowserCoreValidateResult, BrowserSettings, BrowserCoreExtended, BrowserProxy } from '../types'
|
||||
import { fetchBrowserCores, saveBrowserCore, deleteBrowserCore, setDefaultBrowserCore, validateBrowserCorePath, openCorePath, fetchBrowserSettings, saveBrowserSettings, fetchCoreExtendedInfo, scanBrowserCores, BrowserCoreDownload, fetchBrowserProxies } from '../api'
|
||||
import { fetchBrowserCores, saveBrowserCore, deleteBrowserCore, setDefaultBrowserCore, validateBrowserCorePath, openCorePath, fetchBrowserSettings, saveBrowserSettings, fetchCoreExtendedInfo, scanBrowserCores, BrowserCoreDownload, fetchBrowserProxies, redownloadBrowserCore } from '../api'
|
||||
import { EventsOn, EventsOff } from '../../../wailsjs/runtime/runtime'
|
||||
import { CoreDownloadModal } from './coreManagement/CoreDownloadModal'
|
||||
import { CoreEditModal } from './coreManagement/CoreEditModal'
|
||||
@@ -56,7 +56,7 @@ export function CoreManagementPage() {
|
||||
|
||||
// 内核下载
|
||||
const [downloadModalOpen, setDownloadModalOpen] = useState(false)
|
||||
const [downloadForm, setDownloadForm] = useState<CoreDownloadForm>({ name: '', url: '', proxyMode: 'system', proxyId: '' })
|
||||
const [downloadForm, setDownloadForm] = useState<CoreDownloadForm>({ name: '', url: '', proxyMode: 'system', proxyId: '', mode: 'download' })
|
||||
const [downloadProgress, setDownloadProgress] = useState<CoreDownloadProgress | null>(null)
|
||||
const [proxies, setProxies] = useState<BrowserProxy[]>([])
|
||||
|
||||
@@ -195,6 +195,9 @@ export function CoreManagementPage() {
|
||||
<Button size="sm" variant="ghost" onClick={(e) => { e.stopPropagation(); handleEdit(record) }}>
|
||||
编辑
|
||||
</Button>
|
||||
<Button size="sm" variant="ghost" onClick={(e) => { e.stopPropagation(); handleRedownload(record) }}>
|
||||
重新下载
|
||||
</Button>
|
||||
{!record.isDefault && (
|
||||
<Button size="sm" variant="ghost" onClick={(e) => { e.stopPropagation(); handleSetDefault(record.coreId) }}>
|
||||
设为默认
|
||||
@@ -250,6 +253,18 @@ export function CoreManagementPage() {
|
||||
}
|
||||
}
|
||||
|
||||
const handleOpenDownload = () => {
|
||||
setDownloadForm({ name: '', url: '', proxyMode: 'system', proxyId: '', mode: 'download' })
|
||||
setDownloadProgress(null)
|
||||
setDownloadModalOpen(true)
|
||||
}
|
||||
|
||||
const handleRedownload = (record: CoreDisplayInfo) => {
|
||||
setDownloadForm({ coreId: record.coreId, name: record.coreName, url: '', proxyMode: 'system', proxyId: '', mode: 'redownload' })
|
||||
setDownloadProgress(null)
|
||||
setDownloadModalOpen(true)
|
||||
}
|
||||
|
||||
// 保存内核
|
||||
const handleSaveCore = async () => {
|
||||
if (!editForm.coreName.trim()) {
|
||||
@@ -319,8 +334,8 @@ export function CoreManagementPage() {
|
||||
toast.error('请输入名称和下载地址')
|
||||
return
|
||||
}
|
||||
if (cores.some(c => c.coreName.toLowerCase() === downloadForm.name.trim().toLowerCase())) {
|
||||
toast.error('该内核名称已存在')
|
||||
if (downloadForm.mode === 'redownload' && !downloadForm.coreId) {
|
||||
toast.error('缺少内核ID')
|
||||
return
|
||||
}
|
||||
setDownloadProgress({ phase: 'starting', progress: 0, message: '准备下载...' })
|
||||
@@ -339,7 +354,11 @@ export function CoreManagementPage() {
|
||||
}
|
||||
}
|
||||
|
||||
await BrowserCoreDownload(downloadForm.name.trim(), downloadForm.url.trim(), targetProxy)
|
||||
if (downloadForm.mode === 'redownload') {
|
||||
await redownloadBrowserCore(downloadForm.coreId || '', downloadForm.url.trim(), targetProxy)
|
||||
} else {
|
||||
await BrowserCoreDownload(downloadForm.name.trim(), downloadForm.url.trim(), targetProxy)
|
||||
}
|
||||
} catch (err: any) {
|
||||
toast.error(err.message || '内部启动下载失败')
|
||||
setDownloadProgress(null)
|
||||
@@ -396,7 +415,7 @@ export function CoreManagementPage() {
|
||||
<p className="text-sm text-[var(--color-text-muted)] mt-1">管理 Chrome 内核版本和全局设置</p>
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
<Button size="sm" variant="secondary" onClick={() => setDownloadModalOpen(true)}>下载内核</Button>
|
||||
<Button size="sm" variant="secondary" onClick={handleOpenDownload}>下载内核</Button>
|
||||
<Button size="sm" variant="secondary" onClick={handleScan} loading={scanning}>扫描内核</Button>
|
||||
<Button size="sm" onClick={handleAdd}>新增内核</Button>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import { ExternalLink, XCircle } from 'lucide-react'
|
||||
import { XCircle } from 'lucide-react'
|
||||
import { Button, Modal } from '../../../../shared/components'
|
||||
import { BrowserProfileCopyForm } from '../../components/BrowserProfileCopyForm'
|
||||
import { KeywordsModal } from '../../components/KeywordsModal'
|
||||
@@ -15,12 +15,6 @@ interface BrowserListDialogsProps {
|
||||
kwModal: { open: boolean; profile: BrowserProfile | null }
|
||||
onCloseKeywords: () => void
|
||||
onKeywordsSaved: (keywords: string[]) => void
|
||||
expandModalOpen: boolean
|
||||
onCloseExpand: () => void
|
||||
profilesCount: number
|
||||
maxProfileLimit: number
|
||||
redeeming: boolean
|
||||
onOpenGithubStarGift: () => void
|
||||
copyModal: { open: boolean; profile: BrowserProfile | null }
|
||||
copyName: string
|
||||
copyOptions: BrowserProfileCopyOptions
|
||||
@@ -59,12 +53,6 @@ export function BrowserListDialogs({
|
||||
kwModal,
|
||||
onCloseKeywords,
|
||||
onKeywordsSaved,
|
||||
expandModalOpen,
|
||||
onCloseExpand,
|
||||
profilesCount,
|
||||
maxProfileLimit,
|
||||
redeeming,
|
||||
onOpenGithubStarGift,
|
||||
copyModal,
|
||||
copyName,
|
||||
copyOptions,
|
||||
@@ -149,45 +137,6 @@ export function BrowserListDialogs({
|
||||
/>
|
||||
)}
|
||||
|
||||
<Modal
|
||||
open={expandModalOpen}
|
||||
onClose={onCloseExpand}
|
||||
title="实例扩容系统"
|
||||
width="480px"
|
||||
footer={<Button variant="secondary" onClick={onCloseExpand}>关闭</Button>}
|
||||
>
|
||||
<div className="space-y-4">
|
||||
<div className="rounded-xl border border-[var(--color-accent)]/35 bg-[var(--color-accent)]/10 p-4 shadow-sm">
|
||||
<div>
|
||||
<p className="text-xs text-[var(--color-text-muted)]">当前容量</p>
|
||||
<p className="text-xs text-[var(--color-text-secondary)] mt-2">每个配置消耗 1 个实例额度</p>
|
||||
</div>
|
||||
<div className="text-right">
|
||||
<span className={`text-3xl font-semibold ${profilesCount >= maxProfileLimit ? 'text-red-500' : 'text-[var(--color-accent)]'}`}>
|
||||
{profilesCount}
|
||||
</span>
|
||||
<span className="text-sm text-[var(--color-text-muted)] ml-1">/ {maxProfileLimit}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-subtle)] p-4">
|
||||
<div className="flex items-center justify-between gap-4">
|
||||
<p className="text-sm font-medium text-[var(--color-text-primary)]">点亮 GitHub Star 后领取 50 个永久额度</p>
|
||||
<Button
|
||||
size="lg"
|
||||
onClick={onOpenGithubStarGift}
|
||||
loading={redeeming}
|
||||
className="shrink-0 shadow-sm"
|
||||
title="打开 GitHub 并领取赠送"
|
||||
>
|
||||
<ExternalLink className="w-4 h-4" />
|
||||
Star 扩容 +50
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
<Modal
|
||||
open={copyModal.open}
|
||||
onClose={onCloseCopy}
|
||||
|
||||
@@ -4,11 +4,10 @@ import { fetchBrowserProfiles, fetchBrowserProxies, fetchGroups } from '../../ap
|
||||
import { EventsOn } from '../../../../wailsjs/runtime/runtime'
|
||||
|
||||
interface UseBrowserListDataOptions {
|
||||
loadQuota: () => void
|
||||
loadCores: () => void
|
||||
}
|
||||
|
||||
export function useBrowserListData({ loadQuota, loadCores }: UseBrowserListDataOptions) {
|
||||
export function useBrowserListData({ loadCores }: UseBrowserListDataOptions) {
|
||||
const [profiles, setProfiles] = useState<BrowserProfile[]>([])
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [proxies, setProxies] = useState<BrowserProxy[]>([])
|
||||
@@ -103,7 +102,6 @@ export function useBrowserListData({ loadQuota, loadCores }: UseBrowserListDataO
|
||||
useEffect(() => {
|
||||
void loadProfiles()
|
||||
loadGroups()
|
||||
loadQuota()
|
||||
fetchBrowserProxies().then(setProxies)
|
||||
loadCores()
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import { useState } from 'react'
|
||||
import { toast } from '../../../../shared/components'
|
||||
import { PROJECT_GITHUB_URL } from '../../../../config/links'
|
||||
import { BrowserOpenURL } from '../../../../wailsjs/runtime/runtime'
|
||||
import { fetchDashboardStats, redeemGithubStar, reloadConfig } from '../../../dashboard/api'
|
||||
import type { BrowserCore, BrowserCoreInput, BrowserSettings } from '../../types'
|
||||
import {
|
||||
deleteBrowserCore,
|
||||
@@ -40,10 +37,6 @@ export function useBrowserListSettings() {
|
||||
const [coreValidation, setCoreValidation] = useState<{ valid: boolean; message: string } | null>(null)
|
||||
const [savingCore, setSavingCore] = useState(false)
|
||||
|
||||
const [expandModalOpen, setExpandModalOpen] = useState(false)
|
||||
const [redeeming, setRedeeming] = useState(false)
|
||||
const [maxProfileLimit, setMaxProfileLimit] = useState(20)
|
||||
|
||||
const loadSettings = async () => {
|
||||
const data = await fetchBrowserSettings()
|
||||
setSettings(data)
|
||||
@@ -56,16 +49,6 @@ export function useBrowserListSettings() {
|
||||
setCores(await fetchBrowserCores())
|
||||
}
|
||||
|
||||
const loadQuota = async () => {
|
||||
try {
|
||||
await reloadConfig()
|
||||
const stats = await fetchDashboardStats()
|
||||
setMaxProfileLimit(stats.maxProfileLimit || 20)
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
const handleOpenSettings = async () => {
|
||||
await Promise.all([loadSettings(), loadCores()])
|
||||
setSettingsModalOpen(true)
|
||||
@@ -142,23 +125,6 @@ export function useBrowserListSettings() {
|
||||
loadCores()
|
||||
}
|
||||
|
||||
const handleClaimStarGift = async () => {
|
||||
setRedeeming(true)
|
||||
const starRes = await redeemGithubStar()
|
||||
setRedeeming(false)
|
||||
if (starRes.success) {
|
||||
toast.success('感谢您的支持!已额外赠送 50 个永久额度!')
|
||||
loadQuota()
|
||||
} else {
|
||||
toast.error(starRes.message || '领取失败')
|
||||
}
|
||||
}
|
||||
|
||||
const handleOpenGithubStarGift = async () => {
|
||||
BrowserOpenURL(PROJECT_GITHUB_URL)
|
||||
await handleClaimStarGift()
|
||||
}
|
||||
|
||||
return {
|
||||
settingsModalOpen,
|
||||
setSettingsModalOpen,
|
||||
@@ -179,12 +145,7 @@ export function useBrowserListSettings() {
|
||||
coreValidation,
|
||||
setCoreValidation,
|
||||
savingCore,
|
||||
expandModalOpen,
|
||||
setExpandModalOpen,
|
||||
redeeming,
|
||||
maxProfileLimit,
|
||||
loadCores,
|
||||
loadQuota,
|
||||
handleOpenSettings,
|
||||
handleSaveSettings,
|
||||
handleOpenCoreModal,
|
||||
@@ -192,6 +153,5 @@ export function useBrowserListSettings() {
|
||||
handleSaveCore,
|
||||
handleDeleteCore,
|
||||
handleSetDefaultCore,
|
||||
handleOpenGithubStarGift,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,10 +26,12 @@ export interface CoreEditForm {
|
||||
}
|
||||
|
||||
export interface CoreDownloadForm {
|
||||
coreId?: string
|
||||
name: string
|
||||
url: string
|
||||
proxyMode: string
|
||||
proxyId: string
|
||||
mode?: 'download' | 'redownload'
|
||||
}
|
||||
|
||||
export interface CoreDownloadProgress {
|
||||
|
||||
@@ -26,6 +26,7 @@ export function CoreDownloadModal({
|
||||
onStart,
|
||||
}: CoreDownloadModalProps) {
|
||||
const downloading = progress !== null && progress.phase !== 'error'
|
||||
const isRedownload = form.mode === 'redownload'
|
||||
|
||||
const handleClose = () => {
|
||||
if (progress && progress.phase !== 'done' && progress.phase !== 'error') {
|
||||
@@ -40,12 +41,12 @@ export function CoreDownloadModal({
|
||||
<Modal
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
title="下载内核"
|
||||
title={isRedownload ? '重新下载内核' : '下载内核'}
|
||||
width="480px"
|
||||
footer={
|
||||
<>
|
||||
<Button variant="secondary" onClick={handleClose} disabled={downloading}>取消</Button>
|
||||
<Button onClick={onStart} loading={downloading}>开始下载</Button>
|
||||
<Button onClick={onStart} loading={downloading}>{isRedownload ? '开始重新下载' : '开始下载'}</Button>
|
||||
</>
|
||||
}
|
||||
>
|
||||
@@ -55,10 +56,19 @@ export function CoreDownloadModal({
|
||||
value={form.name}
|
||||
onChange={e => setForm(prev => ({ ...prev, name: e.target.value }))}
|
||||
placeholder="例如: chrome-139"
|
||||
disabled={progress !== null}
|
||||
disabled={progress !== null || isRedownload}
|
||||
/>
|
||||
<p className="text-xs text-[var(--color-text-muted)] mt-1">该名称将同时作为数据存放的子文件夹名。</p>
|
||||
{!isRedownload && (
|
||||
<p className="text-xs text-[var(--color-text-muted)] mt-1">该名称将同时作为数据存放的子文件夹名。</p>
|
||||
)}
|
||||
</FormItem>
|
||||
|
||||
{isRedownload && (
|
||||
<div className="rounded-lg border border-[var(--color-warning)]/40 bg-[var(--color-warning)]/10 p-3 text-xs leading-5 text-[var(--color-warning)]">
|
||||
重新下载会在校验新压缩包可用后替换当前内核目录;替换失败会自动恢复旧目录。正在使用该内核的实例请先停止。
|
||||
</div>
|
||||
)}
|
||||
|
||||
<FormItem label="下载地址 (ZIP)" required>
|
||||
<Input
|
||||
value={form.url}
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { Monitor, Play, Shield, Cpu, ArrowRight, ExternalLink, Globe, Settings } from 'lucide-react'
|
||||
import { Monitor, Play, Shield, Cpu, ArrowRight, Globe, Settings } from 'lucide-react'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { Card, Button, toast } from '../../shared/components'
|
||||
import { fetchDashboardStats, redeemGithubStar, reloadConfig } from './api'
|
||||
import { Card } from '../../shared/components'
|
||||
import { fetchDashboardStats, reloadConfig } from './api'
|
||||
import type { DashboardStats } from './types'
|
||||
import { BrowserOpenURL } from '../../wailsjs/runtime/runtime'
|
||||
import { PROJECT_GITHUB_URL } from '../../config/links'
|
||||
|
||||
interface StatCardProps {
|
||||
title: string
|
||||
@@ -42,11 +40,9 @@ export function DashboardPage() {
|
||||
proxyCount: 0,
|
||||
coreCount: 0,
|
||||
memUsedMB: 0,
|
||||
maxProfileLimit: 20,
|
||||
appVersion: 'unknown',
|
||||
})
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [redeeming, setRedeeming] = useState(false)
|
||||
const mountedRef = useRef(true)
|
||||
|
||||
useEffect(() => {
|
||||
@@ -83,26 +79,7 @@ export function DashboardPage() {
|
||||
}
|
||||
}
|
||||
|
||||
const handleClaimStarGift = async () => {
|
||||
setRedeeming(true)
|
||||
const starRes = await redeemGithubStar()
|
||||
setRedeeming(false)
|
||||
if (starRes.success) {
|
||||
toast.success('感谢您的支持!已额外赠送 50 个永久额度!')
|
||||
load({ reloadFirst: true })
|
||||
} else {
|
||||
toast.error(starRes.message || '领取失败')
|
||||
}
|
||||
}
|
||||
|
||||
const handleOpenGithubStarGift = async () => {
|
||||
BrowserOpenURL(PROJECT_GITHUB_URL)
|
||||
await handleClaimStarGift()
|
||||
}
|
||||
|
||||
const v = (n: number) => loading ? '-' : n.toString()
|
||||
const capacityText = loading ? '-' : `${stats.totalInstances} / ${stats.maxProfileLimit}`
|
||||
const capacityFull = !loading && stats.totalInstances >= stats.maxProfileLimit
|
||||
|
||||
return (
|
||||
<div className="space-y-6 animate-fade-in">
|
||||
@@ -182,33 +159,6 @@ export function DashboardPage() {
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="mt-6 pt-6 border-t border-[var(--color-border-muted)]">
|
||||
<h3 className="text-sm font-medium text-[var(--color-text-primary)] mb-3">扩容系统</h3>
|
||||
<div className="rounded-xl border border-[var(--color-accent)]/35 bg-[var(--color-accent)]/10 p-4 shadow-sm">
|
||||
<div className="flex items-center justify-between gap-4">
|
||||
<div className="min-w-0">
|
||||
<p className="text-xs text-[var(--color-text-muted)]">当前容量</p>
|
||||
<p className={`mt-1 text-2xl font-semibold ${capacityFull ? 'text-red-500' : 'text-[var(--color-accent)]'}`}>
|
||||
{capacityText}
|
||||
</p>
|
||||
</div>
|
||||
<Button
|
||||
size="lg"
|
||||
onClick={handleOpenGithubStarGift}
|
||||
loading={redeeming}
|
||||
className="shrink-0 shadow-sm"
|
||||
title="打开 GitHub 并领取扩容"
|
||||
>
|
||||
<ExternalLink className="w-4 h-4" />
|
||||
Star 扩容 +50
|
||||
</Button>
|
||||
</div>
|
||||
<p className="mt-3 text-xs font-medium text-[var(--color-text-secondary)]">
|
||||
点亮 GitHub Star 后领取 50 个永久额度
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { DashboardStats } from './types'
|
||||
import type { DashboardStats } from './types'
|
||||
|
||||
const getBindings = async () => {
|
||||
try {
|
||||
@@ -13,42 +13,19 @@ export async function fetchDashboardStats(): Promise<DashboardStats> {
|
||||
if (bindings?.GetDashboardStats) {
|
||||
try {
|
||||
const data = await bindings.GetDashboardStats()
|
||||
let maxProfileLimit = Number(data?.maxProfileLimit) || 0
|
||||
if (!maxProfileLimit && bindings.GetLicenseStatus) {
|
||||
try {
|
||||
const licenseStatus = await bindings.GetLicenseStatus()
|
||||
maxProfileLimit = Number(licenseStatus?.maxLimit) || 0
|
||||
} catch {
|
||||
maxProfileLimit = 0
|
||||
}
|
||||
}
|
||||
return {
|
||||
totalInstances: data?.totalInstances ?? 0,
|
||||
runningInstances: data?.runningInstances ?? 0,
|
||||
proxyCount: data?.proxyCount ?? 0,
|
||||
coreCount: data?.coreCount ?? 0,
|
||||
memUsedMB: data?.memUsedMB ?? 0,
|
||||
maxProfileLimit: maxProfileLimit || 20,
|
||||
appVersion: data?.appVersion ?? 'unknown',
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('fetchDashboardStats error:', e)
|
||||
}
|
||||
}
|
||||
return { totalInstances: 0, runningInstances: 0, proxyCount: 0, coreCount: 0, memUsedMB: 0, maxProfileLimit: 20, appVersion: 'unknown' }
|
||||
}
|
||||
|
||||
export async function redeemGithubStar(): Promise<{ success: boolean, message?: string }> {
|
||||
const bindings: any = await getBindings()
|
||||
if (bindings?.RedeemGithubStar) {
|
||||
try {
|
||||
await bindings.RedeemGithubStar()
|
||||
return { success: true }
|
||||
} catch (e: any) {
|
||||
return { success: false, message: e.message || '领取失败' }
|
||||
}
|
||||
}
|
||||
return { success: false, message: '系统 API 未就绪' }
|
||||
return { totalInstances: 0, runningInstances: 0, proxyCount: 0, coreCount: 0, memUsedMB: 0, appVersion: 'unknown' }
|
||||
}
|
||||
|
||||
export async function reloadConfig(): Promise<void> {
|
||||
@@ -61,16 +38,3 @@ export async function reloadConfig(): Promise<void> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export async function generateCDKeys(count: number): Promise<{ success: boolean, keys: string[], message?: string }> {
|
||||
const bindings: any = await getBindings()
|
||||
if (bindings?.GenerateCDKeys) {
|
||||
try {
|
||||
const keys = await bindings.GenerateCDKeys(count)
|
||||
return { success: true, keys: keys || [] }
|
||||
} catch (e: any) {
|
||||
return { success: false, keys: [], message: e.message || '生成失败' }
|
||||
}
|
||||
}
|
||||
return { success: false, keys: [], message: '系统 API 未就绪' }
|
||||
}
|
||||
|
||||
@@ -4,6 +4,5 @@ export interface DashboardStats {
|
||||
proxyCount: number
|
||||
coreCount: number
|
||||
memUsedMB: number
|
||||
maxProfileLimit: number
|
||||
appVersion: string
|
||||
}
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
import { FormEvent, useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { Card, Button, Input, Modal, toast, Textarea } from '../../shared/components'
|
||||
import { Key } from 'lucide-react'
|
||||
import { generateCDKeys } from '../dashboard/api'
|
||||
|
||||
const ADMIN_PAGE_PASSWORD = '志字辈小蚂蚁'
|
||||
|
||||
export function AdminKeygenPage() {
|
||||
const navigate = useNavigate()
|
||||
const [count, setCount] = useState<number>(10)
|
||||
const [keys, setKeys] = useState<string[]>([])
|
||||
const [loading, setLoading] = useState(false)
|
||||
const [accessGranted, setAccessGranted] = useState(false)
|
||||
const [passwordInput, setPasswordInput] = useState('')
|
||||
|
||||
const handleGenerate = async () => {
|
||||
if (count <= 0 || count > 1000) {
|
||||
toast.error('生成数量必须在 1 ~ 1000 之间')
|
||||
return
|
||||
}
|
||||
|
||||
setLoading(true)
|
||||
const res = await generateCDKeys(count)
|
||||
setLoading(false)
|
||||
|
||||
if (res.success) {
|
||||
setKeys(res.keys)
|
||||
toast.success(`成功生成 ${res.keys.length} 个兑换码`)
|
||||
} else {
|
||||
toast.error(res.message || '生成失败')
|
||||
}
|
||||
}
|
||||
|
||||
const handleCopyAll = async () => {
|
||||
if (keys.length === 0) return
|
||||
try {
|
||||
await navigator.clipboard.writeText(keys.join('\n'))
|
||||
toast.success('已复制全部兑换码到剪贴板')
|
||||
} catch {
|
||||
toast.error('复制失败,请手动选择复制')
|
||||
}
|
||||
}
|
||||
|
||||
const handleVerifyPassword = (event: FormEvent<HTMLFormElement>) => {
|
||||
event.preventDefault()
|
||||
|
||||
if (passwordInput.trim() === ADMIN_PAGE_PASSWORD) {
|
||||
setAccessGranted(true)
|
||||
setPasswordInput('')
|
||||
toast.success('验证通过,已进入兑换码生成页面')
|
||||
return
|
||||
}
|
||||
|
||||
toast.error('密码错误,请重试')
|
||||
setPasswordInput('')
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<Modal
|
||||
open={!accessGranted}
|
||||
onClose={() => navigate('/profile')}
|
||||
title="管理员验证"
|
||||
width="420px"
|
||||
closable={false}
|
||||
>
|
||||
<form className="space-y-4" onSubmit={handleVerifyPassword}>
|
||||
<p className="text-sm text-[var(--color-text-secondary)]">
|
||||
请输入访问密码后继续。
|
||||
</p>
|
||||
<Input
|
||||
type="text"
|
||||
value={passwordInput}
|
||||
onChange={(e) => setPasswordInput(e.target.value)}
|
||||
placeholder="请输入密码"
|
||||
autoFocus
|
||||
autoComplete="off"
|
||||
inputMode="text"
|
||||
spellCheck={false}
|
||||
/>
|
||||
<div className="flex justify-end gap-3 pt-1">
|
||||
<Button type="button" variant="secondary" onClick={() => navigate('/profile')}>
|
||||
取消
|
||||
</Button>
|
||||
<Button type="submit">
|
||||
确认进入
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
</Modal>
|
||||
|
||||
{accessGranted && (
|
||||
<div className="space-y-6 animate-fade-in max-w-4xl mx-auto">
|
||||
<div>
|
||||
<h1 className="text-xl font-semibold text-[var(--color-text-primary)]">系统核心管理 - CDKey 生成器</h1>
|
||||
<p className="text-sm text-[var(--color-text-muted)] mt-1">隐藏管理员工具。生成的每个兑换码均可为客户端增加 10 个永久额度。</p>
|
||||
</div>
|
||||
|
||||
<Card>
|
||||
<div className="flex flex-col gap-4">
|
||||
<div className="flex items-end gap-3">
|
||||
<div className="flex-1">
|
||||
<label className="block text-sm font-medium text-[var(--color-text-primary)] mb-1">生成数量</label>
|
||||
<Input
|
||||
type="number"
|
||||
min={1}
|
||||
max={100}
|
||||
value={count}
|
||||
onChange={(e) => setCount(parseInt(e.target.value) || 0)}
|
||||
placeholder="10"
|
||||
/>
|
||||
</div>
|
||||
<Button onClick={handleGenerate} loading={loading} className="w-32">
|
||||
<Key className="w-4 h-4 mr-2" />
|
||||
立即生成
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="mt-4">
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
<span className="text-sm font-medium text-[var(--color-text-primary)]">生成结果</span>
|
||||
<Button size="sm" variant="secondary" onClick={handleCopyAll} disabled={keys.length === 0}>
|
||||
一键复制
|
||||
</Button>
|
||||
</div>
|
||||
<Textarea
|
||||
value={keys.length > 0 ? keys.join('\n') : '点击上方按钮生成...'}
|
||||
readOnly
|
||||
rows={15}
|
||||
className="font-mono text-sm leading-relaxed"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -11,7 +11,6 @@ import {
|
||||
ExternalLink,
|
||||
} from 'lucide-react'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { Badge, Button, Card } from '../../shared/components'
|
||||
import { createDefaultProfilePageData, loadProfilePageData } from './api'
|
||||
import type { IconKey, ProfilePageData } from './types'
|
||||
@@ -34,8 +33,6 @@ const CHANNEL_ICON_CLASS: Partial<Record<IconKey, string>> = {
|
||||
}
|
||||
|
||||
export function ProfilePage() {
|
||||
const navigate = useNavigate()
|
||||
const [clickCount, setClickCount] = useState(0)
|
||||
const [pageData, setPageData] = useState<ProfilePageData>(() => createDefaultProfilePageData())
|
||||
|
||||
useEffect(() => {
|
||||
@@ -54,15 +51,6 @@ export function ProfilePage() {
|
||||
}
|
||||
}, [])
|
||||
|
||||
const handleAuthorClick = () => {
|
||||
const newCount = clickCount + 1
|
||||
setClickCount(newCount)
|
||||
if (newCount >= 5) {
|
||||
navigate('/admin/keygen')
|
||||
setClickCount(0)
|
||||
}
|
||||
}
|
||||
|
||||
const openExternal = (url: string) => {
|
||||
window.open(url, '_blank', 'noopener,noreferrer')
|
||||
}
|
||||
@@ -92,9 +80,7 @@ export function ProfilePage() {
|
||||
<div className="min-w-0 space-y-4">
|
||||
<div className="space-y-1">
|
||||
<h1
|
||||
className="cursor-pointer select-none text-[34px] font-bold leading-none tracking-tight text-[var(--color-text-primary)] sm:text-[38px]"
|
||||
onClick={handleAuthorClick}
|
||||
title={clickCount > 0 ? `再点 ${5 - clickCount} 次进入开发者模式` : ''}
|
||||
className="text-[34px] font-bold leading-none tracking-tight text-[var(--color-text-primary)] sm:text-[38px]"
|
||||
>
|
||||
{authorInfo.name}
|
||||
</h1>
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
export { ProfilePage } from './ProfilePage'
|
||||
export { AdminKeygenPage } from './AdminKeygenPage'
|
||||
|
||||
@@ -13,10 +13,6 @@ const ProfilePage = lazyNamed(
|
||||
() => import("../modules/profile/ProfilePage"),
|
||||
"ProfilePage",
|
||||
);
|
||||
const AdminKeygenPage = lazyNamed(
|
||||
() => import("../modules/profile/AdminKeygenPage"),
|
||||
"AdminKeygenPage",
|
||||
);
|
||||
const ChartsPage = lazyNamed(
|
||||
() => import("../modules/charts/ChartsPage"),
|
||||
"ChartsPage",
|
||||
@@ -81,7 +77,6 @@ export function AppRoutes() {
|
||||
<Route path="/charts" element={<ChartsPage />} />
|
||||
<Route path="/settings" element={<SettingsPage />} />
|
||||
<Route path="/profile" element={<ProfilePage />} />
|
||||
<Route path="/admin/keygen" element={<AdminKeygenPage />} />
|
||||
<Route path="/browser/list" element={<BrowserListPage />} />
|
||||
<Route path="/browser/detail/:id" element={<BrowserDetailPage />} />
|
||||
<Route path="/browser/edit/:id" element={<BrowserEditPage />} />
|
||||
|
||||
+5
-11
@@ -1,4 +1,4 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {automation} from '../models';
|
||||
import {backend} from '../models';
|
||||
@@ -90,6 +90,8 @@ export function BrowserCoreExtendedInfo():Promise<Array<browser.CoreExtendedInfo
|
||||
|
||||
export function BrowserCoreList():Promise<Array<config.BrowserCore>>;
|
||||
|
||||
export function BrowserCoreRedownload(arg1:string,arg2:string,arg3:string):Promise<void>;
|
||||
|
||||
export function BrowserCoreSave(arg1:browser.CoreInput):Promise<void>;
|
||||
|
||||
export function BrowserCoreScan():Promise<Array<config.BrowserCore>>;
|
||||
@@ -172,9 +174,9 @@ export function BrowserProfileList():Promise<Array<browser.Profile>>;
|
||||
|
||||
export function BrowserProfileListByTag(arg1:string):Promise<Array<browser.Profile>>;
|
||||
|
||||
export function BrowserProfilePackageExport(arg1:Array<string>):Promise<any>;
|
||||
export function BrowserProfilePackageExport(arg1:Array<string>):Promise<backend.ProfilePackageExportResult>;
|
||||
|
||||
export function BrowserProfilePackageImport():Promise<any>;
|
||||
export function BrowserProfilePackageImport():Promise<backend.ProfilePackageImportResult>;
|
||||
|
||||
export function BrowserProfilePermanentlyDelete(arg1:string):Promise<void>;
|
||||
|
||||
@@ -252,8 +254,6 @@ export function ForceQuit():Promise<void>;
|
||||
|
||||
export function FrontendOperationLog(arg1:string,arg2:string,arg3:boolean,arg4:number,arg5:string):Promise<void>;
|
||||
|
||||
export function GenerateCDKeys(arg1:number):Promise<Array<string>>;
|
||||
|
||||
export function GetAppConfig():Promise<Record<string, any>>;
|
||||
|
||||
export function GetAppLogs():Promise<Array<logger.MemoryLogEntry>>;
|
||||
@@ -268,8 +268,6 @@ export function GetInterceptor():Promise<logger.MethodInterceptor>;
|
||||
|
||||
export function GetLaunchServerInfo():Promise<Record<string, any>>;
|
||||
|
||||
export function GetLicenseStatus():Promise<backend.LicenseStatus>;
|
||||
|
||||
export function GetLogLevel():Promise<string>;
|
||||
|
||||
export function GetMemoryStats():Promise<Record<string, any>>;
|
||||
@@ -292,10 +290,6 @@ export function OpenUserDataDir(arg1:string):Promise<void>;
|
||||
|
||||
export function QuitAppOnly():Promise<void>;
|
||||
|
||||
export function RedeemCDKey(arg1:string):Promise<void>;
|
||||
|
||||
export function RedeemGithubStar():Promise<void>;
|
||||
|
||||
export function ReloadConfig():Promise<void>;
|
||||
|
||||
export function SaveAutomationRuntimeSettings(arg1:string,arg2:string):Promise<Record<string, any>>;
|
||||
|
||||
@@ -162,6 +162,10 @@ export function BrowserCoreList() {
|
||||
return window['go']['main']['App']['BrowserCoreList']();
|
||||
}
|
||||
|
||||
export function BrowserCoreRedownload(arg1, arg2, arg3) {
|
||||
return window['go']['main']['App']['BrowserCoreRedownload'](arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
export function BrowserCoreSave(arg1) {
|
||||
return window['go']['main']['App']['BrowserCoreSave'](arg1);
|
||||
}
|
||||
@@ -486,10 +490,6 @@ export function FrontendOperationLog(arg1, arg2, arg3, arg4, arg5) {
|
||||
return window['go']['main']['App']['FrontendOperationLog'](arg1, arg2, arg3, arg4, arg5);
|
||||
}
|
||||
|
||||
export function GenerateCDKeys(arg1) {
|
||||
return window['go']['main']['App']['GenerateCDKeys'](arg1);
|
||||
}
|
||||
|
||||
export function GetAppConfig() {
|
||||
return window['go']['main']['App']['GetAppConfig']();
|
||||
}
|
||||
@@ -518,10 +518,6 @@ export function GetLaunchServerInfo() {
|
||||
return window['go']['main']['App']['GetLaunchServerInfo']();
|
||||
}
|
||||
|
||||
export function GetLicenseStatus() {
|
||||
return window['go']['main']['App']['GetLicenseStatus']();
|
||||
}
|
||||
|
||||
export function GetLogLevel() {
|
||||
return window['go']['main']['App']['GetLogLevel']();
|
||||
}
|
||||
@@ -566,14 +562,6 @@ export function QuitAppOnly() {
|
||||
return window['go']['main']['App']['QuitAppOnly']();
|
||||
}
|
||||
|
||||
export function RedeemCDKey(arg1) {
|
||||
return window['go']['main']['App']['RedeemCDKey'](arg1);
|
||||
}
|
||||
|
||||
export function RedeemGithubStar() {
|
||||
return window['go']['main']['App']['RedeemGithubStar']();
|
||||
}
|
||||
|
||||
export function ReloadConfig() {
|
||||
return window['go']['main']['App']['ReloadConfig']();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export namespace automation {
|
||||
export namespace automation {
|
||||
|
||||
export class ScriptPublicAPIVariable {
|
||||
name: string;
|
||||
@@ -467,20 +467,42 @@ export namespace backend {
|
||||
this.sameSite = source["sameSite"];
|
||||
}
|
||||
}
|
||||
export class LicenseStatus {
|
||||
maxLimit: number;
|
||||
usedCount: number;
|
||||
usedKeys: string[];
|
||||
export class ProfilePackageExportResult {
|
||||
cancelled: boolean;
|
||||
zipPath: string;
|
||||
profileCount: number;
|
||||
fileCount: number;
|
||||
message: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new LicenseStatus(source);
|
||||
return new ProfilePackageExportResult(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.maxLimit = source["maxLimit"];
|
||||
this.usedCount = source["usedCount"];
|
||||
this.usedKeys = source["usedKeys"];
|
||||
this.cancelled = source["cancelled"];
|
||||
this.zipPath = source["zipPath"];
|
||||
this.profileCount = source["profileCount"];
|
||||
this.fileCount = source["fileCount"];
|
||||
this.message = source["message"];
|
||||
}
|
||||
}
|
||||
export class ProfilePackageImportResult {
|
||||
cancelled: boolean;
|
||||
importedCount: number;
|
||||
profileMappings: Record<string, string>;
|
||||
message: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new ProfilePackageImportResult(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.cancelled = source["cancelled"];
|
||||
this.importedCount = source["importedCount"];
|
||||
this.profileMappings = source["profileMappings"];
|
||||
this.message = source["message"];
|
||||
}
|
||||
}
|
||||
export class ProxyBridgeWarmupResult {
|
||||
|
||||
@@ -7,7 +7,6 @@ require (
|
||||
github.com/evanw/esbuild v0.21.5
|
||||
github.com/google/uuid v1.6.0
|
||||
github.com/gorilla/websocket v1.5.3
|
||||
github.com/leanovate/gopter v0.2.11
|
||||
github.com/metacubex/mihomo v1.19.20
|
||||
github.com/ulikunitz/xz v0.5.15
|
||||
github.com/wailsapp/wails/v2 v2.12.0
|
||||
@@ -51,6 +50,7 @@ require (
|
||||
github.com/klauspost/compress v1.17.9 // indirect
|
||||
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
|
||||
github.com/klauspost/reedsolomon v1.12.3 // indirect
|
||||
github.com/kr/pretty v0.1.0 // indirect
|
||||
github.com/labstack/echo/v4 v4.13.3 // indirect
|
||||
github.com/labstack/gommon v0.4.2 // indirect
|
||||
github.com/leaanthony/go-ansi-parser v1.6.1 // indirect
|
||||
@@ -129,6 +129,7 @@ require (
|
||||
golang.org/x/time v0.10.0 // indirect
|
||||
golang.org/x/tools v0.30.0 // indirect
|
||||
google.golang.org/protobuf v1.34.2 // indirect
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
||||
lukechampine.com/uint128 v1.2.0 // indirect
|
||||
modernc.org/cc/v3 v3.40.0 // indirect
|
||||
modernc.org/ccgo/v3 v3.16.13 // indirect
|
||||
|
||||
@@ -1,48 +1,7 @@
|
||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
|
||||
cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
|
||||
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
|
||||
cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
|
||||
cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
|
||||
cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
|
||||
cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
|
||||
cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
|
||||
cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
|
||||
cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
|
||||
cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
|
||||
cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
|
||||
cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
|
||||
cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI=
|
||||
cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk=
|
||||
cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg=
|
||||
cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8=
|
||||
cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0=
|
||||
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
||||
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
||||
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
||||
cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
|
||||
cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
|
||||
cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
|
||||
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
|
||||
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
|
||||
cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk=
|
||||
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
|
||||
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
|
||||
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
|
||||
cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
|
||||
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
|
||||
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
|
||||
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
|
||||
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
||||
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
|
||||
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
|
||||
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3 h1:N3IGoHHp9pb6mj1cbXbuaSXV/UMKwmbKLf53nQmtqMA=
|
||||
git.sr.ht/~jackmordaunt/go-toast/v2 v2.0.3/go.mod h1:QtOLZGz8olr4qH2vWK0QH0w0O4T9fEIjMuWpKUsH7nc=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||
github.com/RyuaNerin/go-krypto v1.3.0 h1:smavTzSMAx8iuVlGb4pEwl9MD2qicqMzuXR2QWp2/Pg=
|
||||
github.com/RyuaNerin/go-krypto v1.3.0/go.mod h1:9R9TU936laAIqAmjcHo/LsaXYOZlymudOAxjaBf62UM=
|
||||
github.com/RyuaNerin/testingutil v0.1.0 h1:IYT6JL57RV3U2ml3dLHZsVtPOP6yNK7WUVdzzlpNrss=
|
||||
@@ -51,30 +10,13 @@ github.com/Yawning/aez v0.0.0-20211027044916-e49e68abd344 h1:cDVUiFo+npB0ZASqnw4
|
||||
github.com/Yawning/aez v0.0.0-20211027044916-e49e68abd344/go.mod h1:9pIqrY6SXNL8vjRQE5Hd/OL5GyK/9MrGUWs87z/eFfk=
|
||||
github.com/andybalholm/brotli v1.0.6 h1:Yf9fFpf49Zrxb9NlQaluyE92/+X7UVHlhMNJN2sxfOI=
|
||||
github.com/andybalholm/brotli v1.0.6/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
|
||||
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
|
||||
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
|
||||
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
|
||||
github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk=
|
||||
github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg=
|
||||
github.com/bep/debounce v1.2.1 h1:v67fRdBA9UQu2NhLFXrSg0Brw7CexQekrBwDMM8bzeY=
|
||||
github.com/bep/debounce v1.2.1/go.mod h1:H8yggRPQKLUhUoqrJC1bO2xNya7vanpDl7xR3ISbCJ0=
|
||||
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
||||
github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM=
|
||||
github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
|
||||
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
|
||||
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
|
||||
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||
github.com/coreos/go-iptables v0.8.0 h1:MPc2P89IhuVpLI7ETL/2tx3XZ61VeICZjYqDEgNsPRc=
|
||||
github.com/coreos/go-iptables v0.8.0/go.mod h1:Qe8Bv2Xik5FyTXwgIbLAnv2sWSBmvWdFETJConOQ//Q=
|
||||
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
@@ -86,13 +28,6 @@ github.com/energye/systray v1.0.3 h1:XnyjJCeRU5z00bpNOic2fGTKz/7yHZMZjWiGIVXDS+4
|
||||
github.com/energye/systray v1.0.3/go.mod h1:HelKhC3PXwv3ryDxbuQqV+7kAxAYNzE5cfdrerGOZTc=
|
||||
github.com/enfein/mieru/v3 v3.26.2 h1:U/2XJc+3vrJD9r815FoFdwToQFEcqSOzzzWIPPhjfEU=
|
||||
github.com/enfein/mieru/v3 v3.26.2/go.mod h1:zJBUCsi5rxyvHM8fjFf+GLaEl4OEjjBXr1s5F6Qd3hM=
|
||||
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||
github.com/ericlagergren/aegis v0.0.0-20250325060835-cd0defd64358 h1:kXYqH/sL8dS/FdoFjr12ePjnLPorPo2FsnrHNuXSDyo=
|
||||
github.com/ericlagergren/aegis v0.0.0-20250325060835-cd0defd64358/go.mod h1:hkIFzoiIPZYxdFOOLyDho59b7SrDfo+w3h+yWdlg45I=
|
||||
github.com/ericlagergren/polyval v0.0.0-20220411101811-e25bc10ba391 h1:8j2RH289RJplhA6WfdaPqzg1MjH2K8wX5e0uhAxrw2g=
|
||||
@@ -105,16 +40,10 @@ github.com/ericlagergren/subtle v0.0.0-20220507045147-890d697da010 h1:fuGucgPk5d
|
||||
github.com/ericlagergren/subtle v0.0.0-20220507045147-890d697da010/go.mod h1:JtBcj7sBuTTRupn7c2bFspMDIObMJsVK8TeUvpShPok=
|
||||
github.com/evanw/esbuild v0.21.5 h1:oShm8TT5QUhf6vM7teg0nmd14eHu64dPmVluC2f4DMg=
|
||||
github.com/evanw/esbuild v0.21.5/go.mod h1:D2vIQZqV/vIf/VRHtViaUtViZmG7o+kKmlBfVQuRi48=
|
||||
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
|
||||
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
|
||||
github.com/gaukas/godicttls v0.0.4 h1:NlRaXb3J6hAnTmWdsEKb9bcSBD6BvcIjdGdeb0zfXbk=
|
||||
github.com/gaukas/godicttls v0.0.4/go.mod h1:l6EenT4TLWgTdwslVb4sEMOCf7Bv0JAK67deKr9/NCI=
|
||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||
github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE=
|
||||
github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78=
|
||||
github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU=
|
||||
@@ -123,114 +52,25 @@ github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og=
|
||||
github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
|
||||
github.com/gobwas/ws v1.4.0 h1:CTaoG1tojrh4ucGPcoJFiAQUAsEWekEWvLy7GsVNqGs=
|
||||
github.com/gobwas/ws v1.4.0/go.mod h1:G3gNqMNtPppf5XUz7O4shetPpcZ1VJ7zt18dlUeakrc=
|
||||
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
|
||||
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||
github.com/gofrs/uuid/v5 v5.4.0 h1:EfbpCTjqMuGyq5ZJwxqzn3Cbr2d0rUZU7v5ycAk/e/0=
|
||||
github.com/gofrs/uuid/v5 v5.4.0/go.mod h1:CDOjlDMVAtN56jqyRUZh58JT31Tiw7/oQyEXZV+9bD8=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
|
||||
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
|
||||
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
|
||||
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM=
|
||||
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/golang/snappy v1.0.0 h1:Oy607GVXHs7RtbggtPBnr2RmDArIsAefDwvrdWvRhGs=
|
||||
github.com/golang/snappy v1.0.0/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
||||
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||
github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg=
|
||||
github.com/google/btree v1.1.3/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4=
|
||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
|
||||
github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||
github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||
github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 h1:FKHo8hFI3A+7w0aUQuYXQ+6EN5stWmeY/AZqtM8xk9k=
|
||||
github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo=
|
||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||
github.com/google/tink/go v1.6.1 h1:t7JHqO8Ath2w2ig5vjwQYJzhGEZymedQc90lQXUBa4I=
|
||||
github.com/google/tink/go v1.6.1/go.mod h1:IGW53kTgag+st5yPhKKwJ6u2l+SSp5/v9XF7spovjlY=
|
||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
||||
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
||||
github.com/gopherjs/gopherjs v1.17.2/go.mod h1:pRRIvn/QzFLrKfvEz3qUuEhtE/zLCWfreZ6J5gM2i+k=
|
||||
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
|
||||
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
|
||||
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
|
||||
github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
|
||||
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
|
||||
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
|
||||
github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
|
||||
github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
|
||||
github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
|
||||
github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
|
||||
github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
|
||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
|
||||
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
|
||||
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
|
||||
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
|
||||
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
|
||||
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||
github.com/insomniacslk/dhcp v0.0.0-20250109001534-8abf58130905 h1:q3OEI9RaN/wwcx+qgGo6ZaoJkCiDYe/gjDLfq7lQQF4=
|
||||
github.com/insomniacslk/dhcp v0.0.0-20250109001534-8abf58130905/go.mod h1:VvGYjkZoJyKqlmT1yzakUs4mfKMNB0XdODP0+rdml6k=
|
||||
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e h1:Q3+PugElBCf4PFpxhErSzU3/PY5sFL5Z6rfv4AbGAck=
|
||||
@@ -238,21 +78,14 @@ github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e/go.mod h1:alcuEE
|
||||
github.com/josharian/native v1.0.1-0.20221213033349-c1e37c09b531/go.mod h1:7X/raswPFr05uY3HiLlYeyQntB6OO7E/d2Cu7qoaN2w=
|
||||
github.com/josharian/native v1.1.0 h1:uuaP0hAbW7Y4l0ZRQ6C9zfb7Mg1mbFKry/xzDAfmtLA=
|
||||
github.com/josharian/native v1.1.0/go.mod h1:7X/raswPFr05uY3HiLlYeyQntB6OO7E/d2Cu7qoaN2w=
|
||||
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
|
||||
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
|
||||
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||
github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA=
|
||||
github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
|
||||
github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc=
|
||||
github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
|
||||
github.com/klauspost/reedsolomon v1.12.3 h1:tzUznbfc3OFwJaTebv/QdhnFf2Xvb7gZ24XaHLBPmdc=
|
||||
github.com/klauspost/reedsolomon v1.12.3/go.mod h1:3K5rXwABAvzGeR01r6pWZieUALXO/Tq7bFKGIb4m4WI=
|
||||
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
|
||||
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||
@@ -273,16 +106,11 @@ github.com/leaanthony/slicer v1.6.0 h1:1RFP5uiPJvT93TAHi+ipd3NACobkW53yUiBqZheE/
|
||||
github.com/leaanthony/slicer v1.6.0/go.mod h1:o/Iz29g7LN0GqH3aMjWAe90381nyZlDNquK+mtH2Fj8=
|
||||
github.com/leaanthony/u v1.1.1 h1:TUFjwDGlNX+WuwVEzDqQwC2lOv0P4uhTQw7CMFdiK7M=
|
||||
github.com/leaanthony/u v1.1.1/go.mod h1:9+o6hejoRljvZ3BzdYlVL0JYCwtnAsVuN9pVTQcaRfI=
|
||||
github.com/leanovate/gopter v0.2.11 h1:vRjThO1EKPb/1NsDXuDrzldR28RLkBflWYcU9CvzWu4=
|
||||
github.com/leanovate/gopter v0.2.11/go.mod h1:aK3tzZP/C+p1m3SPRE4SYZFGP7jjkuSI4f7Xvpt0S9c=
|
||||
github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
|
||||
github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
|
||||
github.com/matryer/is v1.4.1 h1:55ehd8zaGABKLXQUe2awZ99BD/PTc2ls+KV/dXphgEQ=
|
||||
github.com/matryer/is v1.4.1/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
|
||||
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
|
||||
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
|
||||
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
|
||||
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
@@ -362,24 +190,10 @@ github.com/metacubex/wireguard-go v0.0.0-20250820062549-a6cecdd7f57f h1:FGBPRb1z
|
||||
github.com/metacubex/wireguard-go v0.0.0-20250820062549-a6cecdd7f57f/go.mod h1:oPGcV994OGJedmmxrcK9+ni7jUEMGhR+uVQAdaduIP4=
|
||||
github.com/metacubex/yamux v0.0.0-20250918083631-dd5f17c0be49 h1:lhlqpYHopuTLx9xQt22kSA9HtnyTDmk5XjjQVCGHe2E=
|
||||
github.com/metacubex/yamux v0.0.0-20250918083631-dd5f17c0be49/go.mod h1:MBeEa9IVBphH7vc3LNtW6ZujVXFizotPo3OEiHQ+TNU=
|
||||
github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||
github.com/miekg/dns v1.1.63 h1:8M5aAw6OMZfFXTT7K5V0Eu5YiiL8l7nUAkyN6C9YwaY=
|
||||
github.com/miekg/dns v1.1.63/go.mod h1:6NGHfjhpmr5lt3XPLuyfDJi5AXbNIPM9PY6H6sF1Nfs=
|
||||
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
|
||||
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
||||
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
|
||||
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
|
||||
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
|
||||
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||
github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||
github.com/mroth/weightedrand/v2 v2.1.0 h1:o1ascnB1CIVzsqlfArQQjeMy1U0NcIbBO5rfd5E/OeU=
|
||||
github.com/mroth/weightedrand/v2 v2.1.0/go.mod h1:f2faGsfOGOwc1p94wzHKKZyTpcJUW7OJ/9U4yfiNAOU=
|
||||
github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo=
|
||||
github.com/neelance/sourcemap v0.0.0-20200213170602-2833bce08e4c/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM=
|
||||
github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7 h1:1102pQc2SEPp5+xrS26wEaeb26sZy6k9/ZXlZN+eXE4=
|
||||
github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7/go.mod h1:UqoUn6cHESlliMhOnKLWr+CBH+e3bazUPvFj1XZwAjs=
|
||||
github.com/openacid/errors v0.8.1/go.mod h1:GUQEJJOJE3W9skHm8E8Y4phdl2LLEN8iD7c5gcGgdx0=
|
||||
@@ -387,65 +201,35 @@ github.com/openacid/low v0.1.21 h1:Tr2GNu4N/+rGRYdOsEHOE89cxUIaDViZbVmKz29uKGo=
|
||||
github.com/openacid/low v0.1.21/go.mod h1:q+MsKI6Pz2xsCkzV4BLj7NR5M4EX0sGz5AqotpZDVh0=
|
||||
github.com/openacid/must v0.1.3/go.mod h1:luPiXCuJlEo3UUFQngVQokV0MPGryeYvtCbQPs3U1+I=
|
||||
github.com/openacid/testkeys v0.1.6/go.mod h1:MfA7cACzBpbiwekivj8StqX0WIRmqlMsci1c37CA3Do=
|
||||
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||
github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
|
||||
github.com/pierrec/lz4/v4 v4.1.14 h1:+fL8AQEZtz/ijeNnpduH0bROTu0O3NZAlPjQxGn8LwE=
|
||||
github.com/pierrec/lz4/v4 v4.1.14/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
|
||||
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ=
|
||||
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU=
|
||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
|
||||
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
|
||||
github.com/samber/lo v1.52.0 h1:Rvi+3BFHES3A8meP33VPAxiBZX/Aws5RxrschYGjomw=
|
||||
github.com/samber/lo v1.52.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=
|
||||
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
|
||||
github.com/shurcooL/go v0.0.0-20200502201357-93f07166e636/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk=
|
||||
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
|
||||
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
|
||||
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
|
||||
github.com/sina-ghaderi/poly1305 v0.0.0-20220724002748-c5926b03988b h1:rXHg9GrUEtWZhEkrykicdND3VPjlVbYiLdX9J7gimS8=
|
||||
github.com/sina-ghaderi/poly1305 v0.0.0-20220724002748-c5926b03988b/go.mod h1:X7qrxNQViEaAN9LNZOPl9PfvQtp3V3c7LTo0dvGi0fM=
|
||||
github.com/sina-ghaderi/rabaead v0.0.0-20220730151906-ab6e06b96e8c h1:DjKMC30y6yjG3IxDaeAj3PCoRr+IsO+bzyT+Se2m2Hk=
|
||||
github.com/sina-ghaderi/rabaead v0.0.0-20220730151906-ab6e06b96e8c/go.mod h1:NV/a66PhhWYVmUMaotlXJ8fIEFB98u+c8l/CQIEFLrU=
|
||||
github.com/sina-ghaderi/rabbitio v0.0.0-20220730151941-9ce26f4f872e h1:ur8uMsPIFG3i4Gi093BQITvwH9znsz2VUZmnmwHvpIo=
|
||||
github.com/sina-ghaderi/rabbitio v0.0.0-20220730151941-9ce26f4f872e/go.mod h1:+e5fBW3bpPyo+3uLo513gIUblc03egGjMM0+5GKbzK8=
|
||||
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||
github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w=
|
||||
github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g=
|
||||
github.com/smarty/assertions v1.15.0/go.mod h1:yABtdzeQs6l1brC900WlRNwj6ZR55d7B+E8C6HtKdec=
|
||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
||||
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
||||
github.com/smartystreets/goconvey v1.8.1/go.mod h1:+/u4qLyY6x1jReYOp7GOM2FSt8aP9CzCZL03bI28W60=
|
||||
github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
|
||||
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||
github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk=
|
||||
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
|
||||
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
||||
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
|
||||
github.com/tkrajina/go-reflector v0.5.8 h1:yPADHrwmUbMq4RGEyaOUpz2H90sRsETNVpjzo3DLVQQ=
|
||||
github.com/tkrajina/go-reflector v0.5.8/go.mod h1:ECbqLgccecY5kPmPmXg1MrHW585yMcDkVl6IvJe64T4=
|
||||
github.com/u-root/uio v0.0.0-20230220225925-ffce2a382923 h1:tHNk7XK9GkmKUR6Gh8gVBKXc2MVSZ4G/NnWLtzw4gNA=
|
||||
@@ -473,208 +257,42 @@ github.com/xtaci/lossyconn v0.0.0-20190602105132-8df528c0c9ae h1:J0GxkO96kL4WF+A
|
||||
github.com/xtaci/lossyconn v0.0.0-20190602105132-8df528c0c9ae/go.mod h1:gXtu8J62kEgmN++bm9BVICuT/e8yiLI2KFobd/TRFsE=
|
||||
github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=
|
||||
github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4=
|
||||
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
gitlab.com/go-extension/aes-ccm v0.0.0-20230221065045-e58665ef23c7 h1:UNrDfkQqiEYzdMlNsVvBYOAJWZjdktqFE9tQh5BT2+4=
|
||||
gitlab.com/go-extension/aes-ccm v0.0.0-20230221065045-e58665ef23c7/go.mod h1:E+rxHvJG9H6PUdzq9NRG6csuLN3XUx98BfGOVWNYnXs=
|
||||
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec h1:FpfFs4EhNehiVfzQttTuxanPIT43FtkkCFypIod8LHo=
|
||||
gitlab.com/yawning/bsaes.git v0.0.0-20190805113838-0a714cd429ec/go.mod h1:BZ1RAoRPbCxum9Grlv5aeksu2H8BiKehBYooU2LFiOQ=
|
||||
go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs=
|
||||
go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g=
|
||||
go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ=
|
||||
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
||||
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
||||
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
||||
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
|
||||
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||
go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
|
||||
go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
|
||||
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
||||
go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo=
|
||||
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba h1:0b9z3AuHCjxk0x/opv64kcgZLBseWJUpBw5I82+2U4M=
|
||||
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba/go.mod h1:PLyyIXexvUFg3Owu6p/WfdlivPbZJsZdgWZlrGope/Y=
|
||||
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||
golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus=
|
||||
golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M=
|
||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||
golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
|
||||
golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
|
||||
golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
|
||||
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
|
||||
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e h1:I88y4caeGeuDQxgdoFPUq097j7kNfw6uvuiNxUBfcBk=
|
||||
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ=
|
||||
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
|
||||
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
|
||||
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
|
||||
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
||||
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
|
||||
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||
golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
||||
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
|
||||
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
|
||||
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20190804053845-51ab0e2deafa/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200217220822-9197077df867/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220622161953-175b2fd9d664/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
@@ -682,214 +300,27 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
|
||||
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
||||
golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU=
|
||||
golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
|
||||
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
|
||||
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
|
||||
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=
|
||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.10.0 h1:3usCWA8tQn0L8+hFJQNgzpWbd89begxN66o1Ojdn5L4=
|
||||
golang.org/x/time v0.10.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
|
||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||
golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||
golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||
golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||
golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||
golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
|
||||
golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||
golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||
golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE=
|
||||
golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
||||
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s=
|
||||
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
|
||||
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
|
||||
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
|
||||
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||
google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||
google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||
google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||
google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
|
||||
google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
|
||||
google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg=
|
||||
google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE=
|
||||
google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8=
|
||||
google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU=
|
||||
google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94=
|
||||
google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
|
||||
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
|
||||
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||
google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
|
||||
google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||
google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
|
||||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||
google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
|
||||
google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||
google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A=
|
||||
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
|
||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
||||
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||
google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||
google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
|
||||
google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
|
||||
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
|
||||
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
|
||||
google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8=
|
||||
google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||
google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
|
||||
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
|
||||
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
|
||||
google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
|
||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
||||
gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||
lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI=
|
||||
lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
|
||||
modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw=
|
||||
@@ -918,6 +349,3 @@ modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg=
|
||||
modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||
modernc.org/z v1.7.3 h1:zDJf6iHjrnB+WRD88stbXokugjyc0/pB91ri1gO6LZY=
|
||||
modernc.org/z v1.7.3/go.mod h1:Ipv4tsdxZRbQyLq9Q1M6gdbkxYzdlrciF2Hi/lS7nWE=
|
||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
||||
|
||||
@@ -9,8 +9,6 @@ app:
|
||||
height: 1000
|
||||
min_width: 1200
|
||||
min_height: 700
|
||||
max_profile_limit: 20
|
||||
used_cd_keys: []
|
||||
runtime:
|
||||
max_memory_mb: 1024
|
||||
gc_percent: 100
|
||||
|
||||
@@ -9,8 +9,6 @@ app:
|
||||
height: 1000
|
||||
min_width: 1200
|
||||
min_height: 700
|
||||
max_profile_limit: 20
|
||||
used_cd_keys: []
|
||||
runtime:
|
||||
max_memory_mb: 0
|
||||
gc_percent: 100
|
||||
|
||||
@@ -9,8 +9,6 @@ app:
|
||||
height: 1000
|
||||
min_width: 1200
|
||||
min_height: 700
|
||||
max_profile_limit: 20
|
||||
used_cd_keys: []
|
||||
runtime:
|
||||
max_memory_mb: 0
|
||||
gc_percent: 100
|
||||
|
||||
@@ -12,6 +12,7 @@ Unicode True
|
||||
|
||||
!define PRODUCT_NAME "Ant Browser"
|
||||
!define PRODUCT_EXE "ant-chrome.exe"
|
||||
!define PRODUCT_ICON "AntBrowser.ico"
|
||||
!define UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\AntBrowser"
|
||||
!define INSTALL_DIR "$PROGRAMFILES64\Ant Browser"
|
||||
!define POWERSHELL_EXE "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe"
|
||||
@@ -202,6 +203,7 @@ Section "Ant Browser (required)" SecMain
|
||||
Call CloseInstalledProcesses
|
||||
SetOutPath "$INSTDIR"
|
||||
File "${STAGINGDIR}\${PRODUCT_EXE}"
|
||||
File /oname=${PRODUCT_ICON} "..\build\windows\icon.ico"
|
||||
!if /FileExists "${STAGINGDIR}\config.yaml"
|
||||
IfFileExists "$INSTDIR\config.yaml" +2 0
|
||||
File "${STAGINGDIR}\config.yaml"
|
||||
@@ -219,13 +221,13 @@ Section "Ant Browser (required)" SecMain
|
||||
WriteRegStr HKLM "${UNINSTALL_KEY}" "Publisher" "Ant Chrome Team"
|
||||
WriteRegStr HKLM "${UNINSTALL_KEY}" "InstallLocation" "$INSTDIR"
|
||||
WriteRegStr HKLM "${UNINSTALL_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe"
|
||||
WriteRegStr HKLM "${UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\${PRODUCT_EXE}"
|
||||
WriteRegStr HKLM "${UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\${PRODUCT_ICON}"
|
||||
WriteRegStr HKLM "${UNINSTALL_KEY}" "NoModify" "1"
|
||||
WriteRegStr HKLM "${UNINSTALL_KEY}" "NoRepair" "1"
|
||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
|
||||
CreateShortcut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_EXE}"
|
||||
CreateShortcut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
CreateShortcut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_EXE}" "" "$INSTDIR\${PRODUCT_ICON}"
|
||||
CreateShortcut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\${PRODUCT_ICON}"
|
||||
SectionEnd
|
||||
|
||||
Section "Proxy Runtime (xray / sing-box)" SecRuntime
|
||||
@@ -236,7 +238,7 @@ Section "Proxy Runtime (xray / sing-box)" SecRuntime
|
||||
SectionEnd
|
||||
|
||||
Section /o "Desktop Shortcut" SecDesktop
|
||||
CreateShortcut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_EXE}"
|
||||
CreateShortcut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_EXE}" "" "$INSTDIR\${PRODUCT_ICON}"
|
||||
SectionEnd
|
||||
|
||||
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
||||
@@ -249,6 +251,7 @@ Section "Uninstall"
|
||||
Call un.CloseInstalledProcesses
|
||||
|
||||
Delete /REBOOTOK "$INSTDIR\${PRODUCT_EXE}"
|
||||
Delete /REBOOTOK "$INSTDIR\${PRODUCT_ICON}"
|
||||
Delete /REBOOTOK "$INSTDIR\config.yaml"
|
||||
Delete /REBOOTOK "$INSTDIR\proxies.yaml"
|
||||
Delete /REBOOTOK "$INSTDIR\Uninstall.exe"
|
||||
|
||||
Reference in New Issue
Block a user