style:格式化代码
This commit is contained in:
@@ -22,38 +22,38 @@ export const GIT_MIRRORS: MirrorConfig[] = [
|
||||
key: 'github',
|
||||
name: 'GitHub 官方',
|
||||
url: 'https://github.com/DLmaster361/AUTO_MAA.git',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'ghfast',
|
||||
name: 'ghfast 镜像',
|
||||
url: 'https://ghfast.top/https://github.com/DLmaster361/AUTO_MAA.git',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'ghproxy_cloudflare',
|
||||
name: 'gh-proxy (Cloudflare加速)',
|
||||
url: 'https://gh-proxy.com/https://github.com/DLmaster361/AUTO_MAA.git',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'ghproxy_hongkong',
|
||||
name: 'gh-proxy (香港节点加速)',
|
||||
url: 'https://hk.gh-proxy.com/https://github.com/DLmaster361/AUTO_MAA.git',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'ghproxy_fastly',
|
||||
name: 'gh-proxy (Fastly CDN加速)',
|
||||
url: 'https://cdn.gh-proxy.com/https://github.com/DLmaster361/AUTO_MAA.git',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'ghproxy_edgeone',
|
||||
name: 'gh-proxy (EdgeOne加速)',
|
||||
url: 'https://edgeone.gh-proxy.com/https://github.com/DLmaster361/AUTO_MAA.git',
|
||||
speed: null
|
||||
}
|
||||
speed: null,
|
||||
},
|
||||
]
|
||||
|
||||
/**
|
||||
@@ -64,32 +64,32 @@ export const PYTHON_MIRRORS: MirrorConfig[] = [
|
||||
key: 'official',
|
||||
name: 'Python 官方',
|
||||
url: 'https://www.python.org/ftp/python/3.12.0/python-3.12.0-embed-amd64.zip',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'tsinghua',
|
||||
name: '清华 TUNA 镜像',
|
||||
url: 'https://mirrors.tuna.tsinghua.edu.cn/python/3.12.0/python-3.12.0-embed-amd64.zip',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'ustc',
|
||||
name: '中科大镜像',
|
||||
url: 'https://mirrors.ustc.edu.cn/python/3.12.0/python-3.12.0-embed-amd64.zip',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'huawei',
|
||||
name: '华为云镜像',
|
||||
url: 'https://mirrors.huaweicloud.com/repository/toolkit/python/3.12.0/python-3.12.0-embed-amd64.zip',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'aliyun',
|
||||
name: '阿里云镜像',
|
||||
url: 'https://mirrors.aliyun.com/python-release/windows/python-3.12.0-embed-amd64.zip',
|
||||
speed: null
|
||||
}
|
||||
speed: null,
|
||||
},
|
||||
]
|
||||
|
||||
/**
|
||||
@@ -100,32 +100,32 @@ export const PIP_MIRRORS: MirrorConfig[] = [
|
||||
key: 'official',
|
||||
name: 'PyPI 官方',
|
||||
url: 'https://pypi.org/simple/',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'tsinghua',
|
||||
name: '清华大学',
|
||||
url: 'https://pypi.tuna.tsinghua.edu.cn/simple/',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'ustc',
|
||||
name: '中科大',
|
||||
url: 'https://pypi.mirrors.ustc.edu.cn/simple/',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'aliyun',
|
||||
name: '阿里云',
|
||||
url: 'https://mirrors.aliyun.com/pypi/simple/',
|
||||
speed: null
|
||||
speed: null,
|
||||
},
|
||||
{
|
||||
key: 'douban',
|
||||
name: '豆瓣',
|
||||
url: 'https://pypi.douban.com/simple/',
|
||||
speed: null
|
||||
}
|
||||
speed: null,
|
||||
},
|
||||
]
|
||||
|
||||
/**
|
||||
@@ -137,7 +137,7 @@ export const API_ENDPOINTS = {
|
||||
// WebSocket连接基础URL
|
||||
websocket: 'ws://localhost:8000',
|
||||
// 代理服务器示例
|
||||
proxy: 'http://127.0.0.1:7890'
|
||||
proxy: 'http://127.0.0.1:7890',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -146,9 +146,9 @@ export const API_ENDPOINTS = {
|
||||
export const DOWNLOAD_LINKS = {
|
||||
// get-pip.py 下载链接
|
||||
getPip: 'http://221.236.27.82:10197/d/AUTO_MAA/get-pip.py',
|
||||
|
||||
|
||||
// Git 客户端下载链接
|
||||
git: 'http://221.236.27.82:10197/d/AUTO_MAA/git.zip'
|
||||
git: 'http://221.236.27.82:10197/d/AUTO_MAA/git.zip',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -157,7 +157,7 @@ export const DOWNLOAD_LINKS = {
|
||||
export const ALL_MIRRORS: MirrorCategory = {
|
||||
git: GIT_MIRRORS,
|
||||
python: PYTHON_MIRRORS,
|
||||
pip: PIP_MIRRORS
|
||||
pip: PIP_MIRRORS,
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -213,4 +213,4 @@ export function getFastestMirror(type: keyof MirrorCategory): MirrorConfig | nul
|
||||
const mirrors = getMirrorsByType(type)
|
||||
const sortedMirrors = sortMirrorsBySpeed(mirrors)
|
||||
return sortedMirrors.find(m => m.speed !== null && m.speed !== 9999) || null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user