Skip to content

Commit 526a7fe

Browse files
committed
Format code
1 parent 6e7b4bf commit 526a7fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+525
-489
lines changed

src/framework/mirror.c

Lines changed: 52 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,87 +24,102 @@
2424
*
2525
* Wiki中的排序是根据 https://github.com/mirrorz-org/oh-my-mirrorz 挑选速度前10位
2626
*/
27-
MirrorSite_t
28-
MirrorZ = {
27+
MirrorSite_t MirrorZ =
28+
{
2929
"mirrorz", "MirrorZ", "MirrorZ 校园网镜像站", "https://mirrors.cernet.edu.cn/",
3030
{SKIP, "功能特殊无法测速,跳过", "SKIP because of its special function"}
3131
},
3232

33-
Tuna = {
33+
Tuna =
34+
{
3435
"tuna", "TUNA", "清华大学开源软件镜像站", "https://mirrors.tuna.tsinghua.edu.cn/",
3536
{NotSkip, NA, NA, "https://mirrors.tuna.tsinghua.edu.cn/speedtest/1000mb.bin"}
3637
},
3738

38-
Sjtug_Zhiyuan = {
39+
Sjtug_Zhiyuan =
40+
{
3941
"sjtu", "SJTUG-zhiyuan", "上海交通大学致远镜像站", "https://mirrors.sjtug.sjtu.edu.cn/",
4042
{NotSkip, NA, NA, "https://mirrors.sjtug.sjtu.edu.cn/ctan" Big_File_ctan}
4143
},
4244

43-
Zju = {
45+
Zju =
46+
{
4447
"zju", "ZJU", "浙江大学开源软件镜像站", "https://mirrors.zju.edu.cn/",
4548
{NotSkip, NA, NA, "https://mirrors.zju.edu.cn/ubuntu-releases" Big_File_ubuntu}
4649
},
4750

48-
Lzuoss = {
51+
Lzuoss =
52+
{
4953
"lzu", "LZUOSS", "兰州大学开源社区镜像站", "https://mirror.lzu.edu.cn/",
5054
{NotSkip, NA, NA, "https://mirror.lzu.edu.cn/CTAN" Big_File_ctan}
5155
},
5256

53-
Jlu = {
57+
Jlu =
58+
{
5459
"jlu", "JLU", "吉林大学开源镜像站", "https://mirrors.jlu.edu.cn/",
5560
{NotSkip, NA, NA, "https://mirrors.jlu.edu.cn/_static/speedtest.bin"}
5661
},
5762

58-
Bfsu = {
63+
Bfsu =
64+
{
5965
"bfsu", "BFSU", "北京外国语大学开源软件镜像站", "https://mirrors.bfsu.edu.cn/",
6066
{NotSkip, NA, NA, "https://mirrors.bfsu.edu.cn/speedtest/1000mb.bin"}
6167
},
6268

63-
Pku = {
69+
Pku =
70+
{
6471
"pku", "PKU", "北京大学开源镜像站", "https://mirrors.pku.edu.cn/",
6572
{NotSkip, NA, NA, "https://mirrors.pku.edu.cn/ubuntu-releases" Big_File_ubuntu}
6673
},
6774

68-
Bjtu = {
75+
Bjtu =
76+
{
6977
"bjtu", "BJTU", "北京交通大学自由与开源软件镜像站", "https://mirror.bjtu.edu.cn/",
7078
{NotSkip, NA, NA, "https://mirror.bjtu.edu.cn/archlinux" Big_File_archlinux}
7179
},
7280

73-
Sustech = {
81+
Sustech =
82+
{
7483
"sustech", "SUSTech", "南方科技大学开源软件镜像站", "https://mirrors.sustech.edu.cn/",
7584
{NotSkip, NA, NA, "https://mirrors.sustech.edu.cn/site/speedtest/1000mb.bin"}
7685
},
7786

78-
Ustc = {
87+
Ustc =
88+
{
7989
"ustc", "USTC", "中国科学技术大学开源镜像站", "https://mirrors.ustc.edu.cn/",
8090
{NotSkip, NA, NA, "https://mirrors.ustc.edu.cn/ubuntu-releases" Big_File_ubuntu}
8191
},
8292

83-
Hust = {
93+
Hust =
94+
{
8495
"hust", "HUST", "华中科技大学开源镜像站", "https://mirrors.hust.edu.cn/",
8596
{NotSkip, NA, NA, "https://mirrors.hust.edu.cn/ubuntu-releases" Big_File_ubuntu}
8697
},
8798

8899
// 速度暂时处于10位以后,但是目前可用的源
89-
Iscas = {
100+
Iscas =
101+
{
90102
"iscas", "ISCAS", "中科院软件所智能软件研究中心开源镜像站", "https://mirror.iscas.ac.cn/",
91103
{NotSkip, NA, NA, "https://mirror.iscas.ac.cn/ubuntu-releases" Big_File_ubuntu}
92104
},
93105

94-
Scau = {
106+
Scau =
107+
{
95108
"scau", "SCAU", "华南农业大学开源软件镜像站", "https://mirrors.scau.edu.cn/",
96109
{NotSkip, NA, NA, "https://mirrors.scau.edu.cn/ubuntu-releases" Big_File_ubuntu}
97110
},
98111

99-
Nju = {
112+
Nju =
113+
{
100114
"nju", "NJU", "南京大学开源镜像站", "https://mirrors.nju.edu.cn/",
101115
{NotSkip, NA, NA, "https://mirrors.nju.edu.cn/archlinux" Big_File_archlinux}
102116
};
103117

104118
/**
105119
* @note 2023-09-05 只使用了不到5次,重庆大学镜像站就把我的ip封杀了,对用户来说封杀策略过严,暂时不可靠,暂时不用
106120
*
107-
* Cqu = {
121+
* Cqu =
122+
* {
108123
* "cqu", "CQU", "重庆大学开源软件镜像站", "https://mirrors.cqu.edu.cn/",
109124
* {NotSkip, NA, NA, "https://mirrors.cqu.edu.cn/speedtest/1000mb.bin"}
110125
* };
@@ -116,58 +131,67 @@ Nju = {
116131
/**
117132
* 商业公司提供的源
118133
*/
119-
MirrorSite_t
120-
Ali = {
134+
MirrorSite_t Ali =
135+
{
121136
"ali", "Ali OPSX Public", "阿里巴巴开源镜像站(公网)", "https://developer.aliyun.com/mirror/",
122137
{NotSkip, NA, NA, "https://mirrors.aliyun.com/deepin-cd" Big_File_deepin}
123138
},
124139
/*
125140
// https://mirrors.cloud.aliyuncs.com/
126-
Ali_ECS_VPC = {
141+
Ali_ECS_VPC =
142+
{
127143
"ali-ECS-VPC", "Ali OPSX ECS VPC", "阿里巴巴开源镜像站(ECS VPC网络)", "https://developer.aliyun.com/mirror/",
128144
{NotSkip, NA, NA, "https://mirrors.cloud.aliyuncs.com/deepin-cd" Big_File_deepin}
129145
},
130146
131147
// https://mirrors.aliyuncs.com/
132-
Ali_ECS_classic = {
148+
Ali_ECS_classic =
149+
{
133150
"ali-ECS", "Ali OPSX ECS", "阿里巴巴开源镜像站(ECS 经典网络)", "https://developer.aliyun.com/mirror/",
134151
{NotSkip, NA, NA, "https://mirrors.aliyuncs.com/deepin-cd" Big_File_deepin}
135152
},
136153
*/
137154

138-
Tencent = {
155+
Tencent =
156+
{
139157
"tencent", "Tencent Public", "腾讯软件源(公网)", "https://mirrors.tencent.com/",
140158
{NotSkip, NA, NA, "https://mirrors.cloud.tencent.com/ubuntu-releases" Big_File_ubuntu}
141159
},
142160
/*
143-
Tencent_Intra = {
161+
Tencent_Intra =
162+
{
144163
"tencent-intra", "Tencent Intranet", "腾讯软件源(内网)", "https://mirrors.tencent.com/",
145164
{NotSkip, NA, NA, "https://mirrors.cloud.tencentyun.com/ubuntu-releases" Big_File_ubuntu}
146165
},
147166
*/
148167

149-
Huawei = {
168+
Huawei =
169+
{
150170
"huawei", "Huawei Cloud", "华为开源镜像站", "https://mirrors.huaweicloud.com/",
151171
{NotSkip, NA, NA, "https://mirrors.huaweicloud.com/ubuntu-releases" Big_File_ubuntu}
152172
},
153173

154-
Volcengine = {
174+
Volcengine =
175+
{
155176
"volc", "Volcengine", "火山引擎开源软件镜像站(公网)", "https://developer.volcengine.com/mirror/",
156177
{NotSkip, NA, NA, "https://mirrors.volces.com/ubuntu-releases" Big_File_ubuntu}
157178
},
158179
/*
159-
Volceengine_Intra = {
180+
Volceengine_Intra =
181+
{
160182
"volc-intra", "Volcengine Intranet", "火山引擎开源软件镜像站(内网)",
161183
"https://developer.volcengine.com/mirror/",
162184
"https://mirrors.ivolces.com/ubuntu-releases" Big_File_ubuntu },
163185
*/
164186

165-
Netease = {
187+
Netease =
188+
{
166189
"netease", "Netease", "网易开源镜像站", "https://mirrors.163.com/",
167190
{NotSkip, NA, NA, "https://mirrors.163.com/deepin-cd" Big_File_deepin}
168191
},
169192

170-
Sohu = {
193+
Sohu =
194+
{
171195
"sohu", "SOHU", "搜狐开源镜像站", "https://mirrors.sohu.com/",
172196
{NotSkip, NA, NA, "https://mirrors.sohu.com/deepin-cd" Big_File_deepin}
173197
};

src/framework/struct.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ SourceProvider_t;
3838

3939
typedef SourceProvider_t MirrorSite_t;
4040

41-
SourceProvider_t
42-
UpstreamProvider = {
41+
SourceProvider_t UpstreamProvider =
42+
{
4343
"upstream", "Upstream", "上游默认源", NULL,
4444
{SKIP, "上游默认源不测速", "SKIP for upstream source", NULL}
45-
};
45+
},
4646

47-
SourceProvider_t
48-
UserDefinedProvider = {
47+
UserDefinedProvider =
48+
{
4949
"user", "用户自定义", "用户自定义", NULL,
5050
{SKIP, "用户自定义源不测速", "SKIP for user-defined source", NULL}
5151
};

src/recipe/lang/Clojure.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
* @time 2023-09-10 更新
1212
* @note 不太好换,且用户可能不多,我们暂时只给用户提供文档
1313
*/
14-
static Source_t
15-
pl_clojure_sources[] = {
16-
{&UpstreamProvider, NULL},
17-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"},
18-
{&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"}
14+
static Source_t pl_clojure_sources[] =
15+
{
16+
{&UpstreamProvider, NULL},
17+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/clojars/"},
18+
{&Ustc, "https://mirrors.ustc.edu.cn/help/clojars.html"}
1919
};
2020
def_sources_n(pl_clojure);
2121

src/recipe/lang/Dart/Flutter.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
/**
1616
* @update 2024-10-31
1717
*/
18-
static Source_t
19-
pl_dart_flutter_sources[] = {
20-
{&UpstreamProvider, "https://storage.googleapis.com"},
21-
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题
22-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/flutter"}, // URL 带 git
23-
{&Nju, "https://mirror.nju.edu.cn/flutter"}
18+
static Source_t pl_dart_flutter_sources[] =
19+
{
20+
{&UpstreamProvider, "https://storage.googleapis.com"},
21+
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn"}, // 没有后缀,怀疑是否存在问题
22+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/flutter"}, // URL 带 git
23+
{&Nju, "https://mirror.nju.edu.cn/flutter"}
2424
};
2525
def_sources_n(pl_dart_flutter);
2626

src/recipe/lang/Dart/Pub.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
/**
1515
* @update 2024-10-31
1616
*/
17-
static Source_t
18-
pl_dart_sources[] = {
19-
{&UpstreamProvider, "https://pub.dev"},
20-
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"},
21-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"},
22-
{&Nju, "https://mirror.nju.edu.cn/dart-pub"}
17+
static Source_t pl_dart_sources[] =
18+
{
19+
{&UpstreamProvider, "https://pub.dev"},
20+
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub"},
21+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub"},
22+
{&Nju, "https://mirror.nju.edu.cn/dart-pub"}
2323
};
2424
def_sources_n(pl_dart);
2525

src/recipe/lang/Go.c

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
* Last Modified : <2024-10-31>
1010
* ------------------------------------------------------------*/
1111

12-
static MirrorSite_t
13-
GoProxyCN = {
12+
static MirrorSite_t GoProxyCN =
13+
{
1414
"goproxy.cn", "Goproxy.cn", "Goproxy.cn (七牛云)", "https://goproxy.cn/",
1515
{NotSkip, NA, NA, "https://goproxy.cn/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB
1616
},
1717

18-
GoProxyIO = {
18+
GoProxyIO =
19+
{
1920
"goproxy.io", "GOPROXY.IO", "GOPROXY.IO", "https://goproxy.io/",
2021
{NotSkip, NA, NA, "https://goproxy.io/github.com/aws/aws-sdk-go/@v/v1.45.2.zip"} // 30 MB
2122
};
@@ -25,13 +26,13 @@ GoProxyIO = {
2526
* @update 2024-10-31
2627
* @note 缺少教育网软件源
2728
*/
28-
static Source_t
29-
pl_go_sources[] = {
30-
{&UpstreamProvider, "https://proxy.golang.org"},
31-
{&GoProxyCN, "https://goproxy.cn"},
32-
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
33-
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
34-
{&GoProxyIO, "https://goproxy.io"}
29+
static Source_t pl_go_sources[] =
30+
{
31+
{&UpstreamProvider, "https://proxy.golang.org"},
32+
{&GoProxyCN, "https://goproxy.cn"},
33+
{&Ali, "https://mirrors.aliyun.com/goproxy/"},
34+
{&Huawei, "https://mirrors.huaweicloud.com/goproxy/"},
35+
{&GoProxyIO, "https://goproxy.io"}
3536
};
3637
def_sources_n(pl_go);
3738

src/recipe/lang/Haskell.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
* ------------------------------------------------------------*/
99

1010
/**
11-
* @time 2023-09-10 更新
11+
* @update 2023-09-10
1212
*/
13-
static Source_t
14-
pl_haskell_sources[] = {
15-
{&UpstreamProvider, NULL},
16-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"},
17-
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"},
18-
{&Nju, "https://mirror.nju.edu.cn/hackage"},
19-
{&Ustc, "https://mirrors.ustc.edu.cn/hackage"}
13+
static Source_t pl_haskell_sources[] =
14+
{
15+
{&UpstreamProvider, NULL},
16+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage"},
17+
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage"},
18+
{&Nju, "https://mirror.nju.edu.cn/hackage"},
19+
{&Ustc, "https://mirrors.ustc.edu.cn/hackage"}
2020
};
2121
def_sources_n(pl_haskell);
2222

src/recipe/lang/Java.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
* @time 2024-04-18 更新
1212
* @note 缺少教育网或开源社区软件源
1313
*/
14-
static Source_t
15-
pl_java_sources[] = {
16-
{&UpstreamProvider, NULL},
17-
{&Ali, "https://maven.aliyun.com/repository/public/"},
18-
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"},
19-
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/"} // 网易的24小时更新一次
14+
static Source_t pl_java_sources[] =
15+
{
16+
{&UpstreamProvider, NULL},
17+
{&Ali, "https://maven.aliyun.com/repository/public/"},
18+
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/"},
19+
{&Netease, "http://mirrors.163.com/maven/repository/maven-public/"} // 网易的24小时更新一次
2020
};
2121
def_sources_n(pl_java);
2222

src/recipe/lang/Julia.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
* ------------------------------------------------------------*/
99

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

0 commit comments

Comments
 (0)