Format code

This commit is contained in:
Aoran Zeng
2024-11-22 11:43:18 +08:00
parent 6e7b4bf985
commit 526a7feb89
57 changed files with 525 additions and 489 deletions

View File

@@ -11,11 +11,11 @@
* @time 2023-09-10 更新
* @note 不太好换,且用户可能不多,我们暂时只给用户提供文档
*/
static Source_t
pl_clojure_sources[] = {
{&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"},
{&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"}
static Source_t pl_clojure_sources[] =
{
{&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"},
{&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"}
};
def_sources_n(pl_clojure);

View File

@@ -15,12 +15,12 @@
/**
* @update 2024-10-31
*/
static Source_t
pl_dart_flutter_sources[] = {
{&UpstreamProvider, "https://storage.googleapis.com"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/flutter"}, // URL 带 git
{&Nju, "https://mirror.nju.edu.cn/flutter"}
static Source_t pl_dart_flutter_sources[] =
{
{&UpstreamProvider, "https://storage.googleapis.com"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/flutter"}, // URL 带 git
{&Nju, "https://mirror.nju.edu.cn/flutter"}
};
def_sources_n(pl_dart_flutter);

View File

@@ -14,12 +14,12 @@
/**
* @update 2024-10-31
*/
static Source_t
pl_dart_sources[] = {
{&UpstreamProvider, "https://pub.dev"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"},
{&Nju, "https://mirror.nju.edu.cn/dart-pub"}
static Source_t pl_dart_sources[] =
{
{&UpstreamProvider, "https://pub.dev"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"},
{&Nju, "https://mirror.nju.edu.cn/dart-pub"}
};
def_sources_n(pl_dart);

View File

@@ -9,13 +9,14 @@
* Last Modified : <2024-10-31>
* ------------------------------------------------------------*/
static MirrorSite_t
GoProxyCN = {
static MirrorSite_t GoProxyCN =
{
"goproxy.cn", "Goproxy.cn", "Goproxy.cn (七牛云)", "https://goproxy.cn/",
{NotSkip, NA, NA, "https://goproxy.cn/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB
},
GoProxyIO = {
GoProxyIO =
{
"goproxy.io", "GOPROXY.IO", "GOPROXY.IO", "https://goproxy.io/",
{NotSkip, NA, NA, "https://goproxy.io/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB
};
@@ -25,13 +26,13 @@ GoProxyIO = {
* @update 2024-10-31
* @note 缺少教育网软件源
*/
static Source_t
pl_go_sources[] = {
{&UpstreamProvider, "https://proxy.golang.org"},
{&GoProxyCN, "https://goproxy.cn"},
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
{&GoProxyIO, "https://goproxy.io"}
static Source_t pl_go_sources[] =
{
{&UpstreamProvider, "https://proxy.golang.org"},
{&GoProxyCN, "https://goproxy.cn"},
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
{&GoProxyIO, "https://goproxy.io"}
};
def_sources_n(pl_go);

View File

@@ -8,15 +8,15 @@
* ------------------------------------------------------------*/
/**
* @time 2023-09-10 更新
* @update 2023-09-10
*/
static Source_t
pl_haskell_sources[] = {
{&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"},
{&Nju, "https://mirror.nju.edu.cn/hackage"},
{&Ustc, "https://mirrors.ustc.edu.cn/hackage"}
static Source_t pl_haskell_sources[] =
{
{&UpstreamProvider, NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"},
{&Nju, "https://mirror.nju.edu.cn/hackage"},
{&Ustc, "https://mirrors.ustc.edu.cn/hackage"}
};
def_sources_n(pl_haskell);

View File

@@ -11,12 +11,12 @@
* @time 2024-04-18 更新
* @note 缺少教育网或开源社区软件源
*/
static Source_t
pl_java_sources[] = {
{&UpstreamProvider, NULL},
{&Ali, "https://maven.aliyun.com/repository/public/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"},
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/"} // 网易的24小时更新一次
static Source_t pl_java_sources[] =
{
{&UpstreamProvider, NULL},
{&Ali, "https://maven.aliyun.com/repository/public/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"},
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/"} // 网易的24小时更新一次
};
def_sources_n(pl_java);

View File

@@ -8,15 +8,15 @@
* ------------------------------------------------------------*/
/**
* @time 2023-09-05 更新
* @update 2023-09-05
* @note 缺少商业公司或开源社区软件源
*/
static Source_t
pl_julia_sources[] = {
{&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"},
{&Pku, "https://mirrors.pku.edu.cn/julia"},
{&Nju, "https://mirror.nju.edu.cn/julia"}
static Source_t pl_julia_sources[] =
{
{&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/julia"},
{&Pku, "https://mirrors.pku.edu.cn/julia"},
{&Nju, "https://mirror.nju.edu.cn/julia"}
};
def_sources_n(pl_julia);

View File

@@ -7,21 +7,21 @@
* Last Modified : <2024-08-09>
* ------------------------------------------------------------*/
static MirrorSite_t
Api7 = {
static MirrorSite_t Api7 =
{
"api7", "api7.ai", "深圳支流科技有限公司", "https://www.apiseven.com/",
{SKIP, ToFill, ToFill, NULL}
};
/**
* @time 2023-09-27 更新
* @update 2023-09-27
* @note 目前只有一个源
*/
static Source_t
pl_lua_sources[] = {
{&UpstreamProvider, NULL},
{&Api7, "https://luarocks.cn"},
static Source_t pl_lua_sources[] =
{
{&UpstreamProvider, NULL},
{&Api7, "https://luarocks.cn"},
};
def_sources_n(pl_lua);

View File

@@ -7,8 +7,9 @@
* Last Modified : <2024-08-09>
* ------------------------------------------------------------*/
static MirrorSite_t
NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
static MirrorSite_t NugetOrg =
{
"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
{SKIP, ToFill, ToFill, NULL}
};
@@ -19,11 +20,11 @@ NugetOrg = {"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.o
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
* }
*/
static Source_t
pl_nuget_sources[] = {
{&UpstreamProvider, NULL},
{&NugetOrg, "https://www.nuget.org/api/v2/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"}
static Source_t pl_nuget_sources[] =
{
{&UpstreamProvider, NULL},
{&NugetOrg, "https://www.nuget.org/api/v2/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3"}
};
def_sources_n(pl_nuget);

View File

@@ -10,10 +10,10 @@
/**
* @update 2023-09-15
*/
static Source_t
pl_ocaml_sources[] = {
{&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git"}
static Source_t pl_ocaml_sources[] =
{
{&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git"}
};
def_sources_n(pl_ocaml);

View File

@@ -11,13 +11,13 @@
* @update 2024-09-14
* @note 缺少教育网或开源社区软件源
*/
static Source_t
pl_php_sources[] = {
{&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/composer/"},
{&Tencent, "https://mirrors.tencent.com/composer/"},
static Source_t pl_php_sources[] =
{
{&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/composer/"},
{&Tencent, "https://mirrors.tencent.com/composer/"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/php/"}
{&Huawei, "https://mirrors.huaweicloud.com/repository/php/"}
};
def_sources_n(pl_php);

View File

@@ -10,15 +10,15 @@
/**
* @update 2024-05-24
*/
static Source_t
pl_perl_sources[] = {
{&UpstreamProvider, NULL},
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/"},
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/"},
{&Hust, "https://mirrors.hust.edu.cn/CPAN/"},
{&Ali, "https://mirrors.aliyun.com/CPAN/"},
{&Lzuoss, "https://mirror.lzu.edu.cn/CPAN/"}
static Source_t pl_perl_sources[] =
{
{&UpstreamProvider, NULL},
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/"},
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/"},
{&Hust, "https://mirrors.hust.edu.cn/CPAN/"},
{&Ali, "https://mirrors.aliyun.com/CPAN/"},
{&Lzuoss, "https://mirror.lzu.edu.cn/CPAN/"}
};
def_sources_n(pl_perl);

View File

@@ -18,8 +18,8 @@ static SourceProvider_t UpstreamPython =
* @update 2024-09-14
* @note 不要添加Zju浙大的pypi在校外访问会自动转向Tuna
*/
static Source_t
pl_python_sources[] = {
static Source_t pl_python_sources[] =
{
{&UpstreamPython, "https://pypi.org/simple"},
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"},
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"},

View File

@@ -14,12 +14,12 @@
* 我们在换cran的同时也直接帮助用户换bioconductor
* }
*/
static Source_t
pl_r_sources[] = {
{&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"},
static Source_t pl_r_sources[] =
{
{&UpstreamProvider, NULL},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/"},
// {&Ali, "https://mirrors.aliyun.com/CRAN/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/"},
// {&Sustech, "https://mirrors.sustech.edu.cn/CRAN"},
// {&Bfsu, "https://mirrors.bfsu.edu.cn/CRAN/"},
// {&Bjtu, "https://mirror.bjtu.edu.cn/cran/"},

View File

@@ -12,8 +12,8 @@
* @note 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`
* @note 链接末尾的 `/` 不能缺少
*/
static Source_t
pl_rust_cargo_sources[] = {
static Source_t pl_rust_cargo_sources[] =
{
{&UpstreamProvider, "https://index.crates.io/"}, // @help 是这个吗?
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/"},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/"},

View File

@@ -7,8 +7,8 @@
* Last Modified : <2024-11-21>
* ------------------------------------------------------------*/
static MirrorSite_t
RsProxyCN = {
static MirrorSite_t RsProxyCN =
{
"rsproxycn", "RsProxy.cn", "字节跳动基础架构Dev Infra", "https://rsproxy.cn/",
{SKIP, ToFill, ToFill, NULL}
};

View File

@@ -11,15 +11,15 @@
/**
* @update 2024-10-02
*/
static Source_t
pl_rust_rustup_sources[] = {
{&UpstreamProvider, "https://static.rust-lang.org"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup"},
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static"},
{&Zju, "https://mirrors.zju.edu.cn/rustup"},
{&Iscas, "https://mirror.iscas.ac.cn/rustup"},
{&RsProxyCN, "https://rsproxy.cn"}
static Source_t pl_rust_rustup_sources[] =
{
{&UpstreamProvider, "https://static.rust-lang.org"},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup"},
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static"},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static"},
{&Zju, "https://mirrors.zju.edu.cn/rustup"},
{&Iscas, "https://mirror.iscas.ac.cn/rustup"},
{&RsProxyCN, "https://rsproxy.cn"}
};
def_sources_n(pl_rust_rustup);