oc-webkit-xiamen 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/assets/svg/arrow.svg.js +1 -0
- package/dist/assets/svg/blueNewLogo.svg.js +1 -0
- package/dist/assets/svg/blueNewLogoEn.svg.js +1 -0
- package/dist/assets/svg/evaluation/comprehensive.svg.js +1 -0
- package/dist/assets/svg/evaluation/customize.svg.js +1 -0
- package/dist/assets/svg/evaluation/done.svg.js +1 -0
- package/dist/assets/svg/evaluation/part.svg.js +1 -0
- package/dist/assets/svg/evaluation/quick.svg.js +1 -0
- package/dist/assets/svg/footer/github.svg.js +1 -0
- package/dist/assets/svg/footer/twitter.svg.js +1 -0
- package/dist/assets/svg/footer/wechat.svg.js +1 -0
- package/dist/assets/svg/footer/zhihu.svg.js +1 -0
- package/dist/assets/svg/left-wing.svg.js +1 -0
- package/dist/assets/svg/llm-evaluation.svg.js +1 -0
- package/dist/assets/svg/mm-evaluation.svg.js +1 -0
- package/dist/assets/svg/newLogo.svg.js +1 -0
- package/dist/assets/svg/newLogoEn.svg.js +1 -0
- package/dist/assets/svg/right-wing.svg.js +1 -0
- package/dist/components/dropdown/dropdown.js +1 -0
- package/dist/components/dropdown/dropdown.module.less.js +175 -0
- package/dist/components/dropdown/index.js +1 -0
- package/dist/components/footer/footer.js +1 -0
- package/dist/components/footer/footer.module.less.js +68 -0
- package/dist/components/footer/index.js +1 -0
- package/dist/components/footer-expansion/footer-expansion.js +1 -0
- package/dist/components/footer-expansion/footer-expansion.module.less.js +120 -0
- package/dist/components/footer-expansion/index.js +1 -0
- package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.js +1 -0
- package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.module.less.js +249 -0
- package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js +1 -0
- package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js +19 -0
- package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.js +1 -0
- package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.module.less.js +68 -0
- package/dist/components/header/components/create-online-evaluation/component/sidebar/sidebar.module.less.js +18 -0
- package/dist/components/header/firstHeader.module.less.js +305 -0
- package/dist/components/header/header.js +1 -0
- package/dist/components/header/header.module.less.js +434 -0
- package/dist/components/header/hooks/useUrl.js +1 -0
- package/dist/components/header/index.js +1 -0
- package/dist/components/header/secondHeader.js +1 -0
- package/dist/components/md-render/index.js +6 -0
- package/dist/components/md-render/index.module.less.js +328 -0
- package/dist/components/online-evaluation/index.js +1 -0
- package/dist/components/online-evaluation/online-evaluation.js +1 -0
- package/dist/components/side-nav/index.js +1 -0
- package/dist/components/side-nav/side-nav.js +1 -0
- package/dist/components/side-nav/side-nav.module.less.js +80 -0
- package/dist/extraComponents/button/button.js +1 -0
- package/dist/extraComponents/button/button.module.less.js +52 -0
- package/dist/extraComponents/icon-font/index.js +1 -0
- package/dist/google-log/home.js +1 -0
- package/dist/helper/index.js +1 -0
- package/dist/index.js +1 -0
- package/dist/locale/en.js +3 -0
- package/dist/locale/index.js +1 -0
- package/dist/locale/zh.js +3 -0
- package/dist/node_modules/style-inject/dist/style-inject.es.js +1 -0
- package/dist/providers/OcConfigContext.js +1 -0
- package/dist/providers/OcContext.js +1 -0
- package/dist/types/components/dropdown/dropdown.d.ts +39 -0
- package/dist/types/components/dropdown/index.d.ts +2 -0
- package/dist/types/components/footer/index.d.ts +6 -0
- package/dist/types/components/footer-expansion/index.d.ts +6 -0
- package/dist/types/components/header/index.d.ts +6 -0
- package/dist/types/components/md-render/index.d.ts +9 -0
- package/dist/types/components/online-evaluation/index.d.ts +6 -0
- package/dist/types/components/side-nav/index.d.ts +6 -0
- package/dist/types/google-log/home.d.ts +9 -0
- package/dist/types/helper/index.d.ts +13 -0
- package/dist/types/index.d.ts +117 -0
- package/dist/utils/utils.js +1 -0
- package/package.json +140 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import n from"../../node_modules/style-inject/dist/style-inject.es.js";var e=`body {
|
|
2
|
+
--white: #ffffff;
|
|
3
|
+
--grey-4: #ebecf0;
|
|
4
|
+
--scroll-width: 8px;
|
|
5
|
+
}
|
|
6
|
+
@-webkit-keyframes index-module_typing__ml8wd {
|
|
7
|
+
from {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
to {
|
|
11
|
+
width: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
@-webkit-keyframes index-module_cursor__DGxTd {
|
|
15
|
+
50% {
|
|
16
|
+
border-color: rgba(18, 19, 22, 0.35);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
@keyframes index-module_typing__ml8wd {
|
|
20
|
+
from {
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
to {
|
|
24
|
+
width: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
@keyframes index-module_cursor__DGxTd {
|
|
28
|
+
50% {
|
|
29
|
+
border-color: rgba(18, 19, 22, 0.35);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.index-module_codeOperationHeader__4-c-V {
|
|
33
|
+
position: relative;
|
|
34
|
+
border-radius: 16px 16px 0px 0px;
|
|
35
|
+
background: #ebecf0;
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
height: 48px;
|
|
39
|
+
align-items: center;
|
|
40
|
+
padding-left: 24px;
|
|
41
|
+
padding-right: 24px;
|
|
42
|
+
}
|
|
43
|
+
.index-module_codeOperationHeader__4-c-V .index-module_iconWithText__15I1- {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: flex-start;
|
|
47
|
+
border-radius: 4px;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
font-size: 14px;
|
|
51
|
+
height: 28px;
|
|
52
|
+
color: #464a53;
|
|
53
|
+
}
|
|
54
|
+
.index-module_codeOperationHeader__4-c-V .index-module_iconWithText__15I1- img {
|
|
55
|
+
margin-right: 3px;
|
|
56
|
+
}
|
|
57
|
+
.index-module_codeOperationHeader__4-c-V .index-module_rightOperation__GerqS {
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 12px;
|
|
62
|
+
height: 28px;
|
|
63
|
+
}
|
|
64
|
+
.index-module_codeOperationHeader__4-c-V .index-module_rightOperation__GerqS img {
|
|
65
|
+
width: 16px;
|
|
66
|
+
height: 16px;
|
|
67
|
+
}
|
|
68
|
+
.index-module_codeOperationHeader__4-c-V .index-module_rightOperation__GerqS img:hover {
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
}
|
|
71
|
+
.index-module_pluginCodeOperationHeader__aHNgD {
|
|
72
|
+
background-color: #fff !important;
|
|
73
|
+
border-bottom: 1px solid #d7d8dd !important;
|
|
74
|
+
}
|
|
75
|
+
.index-module_syntaxHightWrapper__rBJbW {
|
|
76
|
+
margin-top: 0px !important;
|
|
77
|
+
margin: 0px !important;
|
|
78
|
+
background-color: #fff !important;
|
|
79
|
+
padding: 24px !important;
|
|
80
|
+
border-radius: 0px 0px 16px 16px !important;
|
|
81
|
+
background: #f9f9f9 !important;
|
|
82
|
+
border: 0px !important;
|
|
83
|
+
user-select: text;
|
|
84
|
+
text-shadow: unset !important;
|
|
85
|
+
}
|
|
86
|
+
.index-module_syntaxHightWrapper__rBJbW code {
|
|
87
|
+
font-family: SF Mono, Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace !important;
|
|
88
|
+
text-shadow: unset !important;
|
|
89
|
+
}
|
|
90
|
+
.index-module_syntaxHightWrapper__rBJbW code span {
|
|
91
|
+
text-align: left !important;
|
|
92
|
+
}
|
|
93
|
+
.index-module_syntaxHightWrapper__rBJbW code::-webkit-scrollbar {
|
|
94
|
+
width: 0px;
|
|
95
|
+
background: transparent;
|
|
96
|
+
height: 4px;
|
|
97
|
+
}
|
|
98
|
+
.index-module_syntaxHightWrapper__rBJbW code::-webkit-scrollbar-thumb {
|
|
99
|
+
border-radius: 0px;
|
|
100
|
+
background: transparent;
|
|
101
|
+
}
|
|
102
|
+
.index-module_syntaxHightWrapper__rBJbW code::-webkit-scrollbar-track {
|
|
103
|
+
-webkit-box-shadow: inset 0 0 4px transparent;
|
|
104
|
+
border-radius: 0px;
|
|
105
|
+
background: transparent;
|
|
106
|
+
opacity: 0;
|
|
107
|
+
}
|
|
108
|
+
.index-module_syntaxHightWrapper__rBJbW code:hover::-webkit-scrollbar-thumb {
|
|
109
|
+
background: #ebecf0;
|
|
110
|
+
}
|
|
111
|
+
.index-module_pluginSyntaxHightWrapper__VNOWD {
|
|
112
|
+
border-radius: 0px !important;
|
|
113
|
+
background-color: #fff !important;
|
|
114
|
+
}
|
|
115
|
+
.index-module_darkTheme__cv9FY {
|
|
116
|
+
background-color: #121316 !important;
|
|
117
|
+
}
|
|
118
|
+
.index-module_beautifulCodeBox__rjXl7 {
|
|
119
|
+
max-width: calc(100% - 24px);
|
|
120
|
+
display: inline-block;
|
|
121
|
+
margin-left: 4px;
|
|
122
|
+
margin-right: 4px;
|
|
123
|
+
border: 1px solid #fff;
|
|
124
|
+
line-height: 22px;
|
|
125
|
+
padding-left: 8px;
|
|
126
|
+
padding-right: 8px;
|
|
127
|
+
background: #f8f9fa;
|
|
128
|
+
border-radius: 4px;
|
|
129
|
+
}
|
|
130
|
+
.index-module_beautifulCodeBox__rjXl7 .index-module_beautifulCode__fr-FB {
|
|
131
|
+
font-family: "SF Mono";
|
|
132
|
+
display: inline-block;
|
|
133
|
+
color: #121316;
|
|
134
|
+
font-style: normal;
|
|
135
|
+
font-weight: 400;
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
height: 17px;
|
|
138
|
+
line-height: 17px;
|
|
139
|
+
}
|
|
140
|
+
.index-module_container__-cOuH {
|
|
141
|
+
position: relative;
|
|
142
|
+
width: 100%;
|
|
143
|
+
font-size: 16px;
|
|
144
|
+
color: var(--100-text-5, #121316);
|
|
145
|
+
font-style: normal;
|
|
146
|
+
font-weight: 400;
|
|
147
|
+
line-height: 28px;
|
|
148
|
+
color: #121316;
|
|
149
|
+
font-family: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif';
|
|
150
|
+
}
|
|
151
|
+
.index-module_container__-cOuH .index-module_tableContainer__4c94d {
|
|
152
|
+
max-width: 100%;
|
|
153
|
+
overflow-x: auto;
|
|
154
|
+
}
|
|
155
|
+
.index-module_container__-cOuH img {
|
|
156
|
+
width: auto;
|
|
157
|
+
height: auto;
|
|
158
|
+
margin-top: 8px;
|
|
159
|
+
border-radius: 4px;
|
|
160
|
+
max-width: 440px;
|
|
161
|
+
max-height: 400px;
|
|
162
|
+
}
|
|
163
|
+
.index-module_container__-cOuH table {
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
border-radius: 16px;
|
|
166
|
+
border-spacing: 0;
|
|
167
|
+
empty-cells: show;
|
|
168
|
+
border-collapse: separate;
|
|
169
|
+
border-bottom: 0px;
|
|
170
|
+
margin-top: 8px;
|
|
171
|
+
margin-bottom: 8px;
|
|
172
|
+
}
|
|
173
|
+
.index-module_container__-cOuH table thead {
|
|
174
|
+
background-color: #fff !important;
|
|
175
|
+
color: rgba(18, 19, 22, 0.8);
|
|
176
|
+
text-align: left;
|
|
177
|
+
}
|
|
178
|
+
.index-module_container__-cOuH table thead th {
|
|
179
|
+
background-color: #ebecf0 !important;
|
|
180
|
+
vertical-align: middle;
|
|
181
|
+
}
|
|
182
|
+
.index-module_container__-cOuH table td,
|
|
183
|
+
.index-module_container__-cOuH table th {
|
|
184
|
+
background-color: var(--white-7);
|
|
185
|
+
padding: 8px 24px;
|
|
186
|
+
border-width: 0 0 0 1px;
|
|
187
|
+
font-size: inherit;
|
|
188
|
+
border-bottom: 1px solid #ebecf0;
|
|
189
|
+
margin: 0;
|
|
190
|
+
overflow: visible;
|
|
191
|
+
}
|
|
192
|
+
.index-module_container__-cOuH table th {
|
|
193
|
+
position: relative;
|
|
194
|
+
}
|
|
195
|
+
.index-module_container__-cOuH table tr:first-child th::after {
|
|
196
|
+
top: 35%;
|
|
197
|
+
right: 0px;
|
|
198
|
+
content: "";
|
|
199
|
+
position: absolute;
|
|
200
|
+
border-right: 1px solid #d7d8dd;
|
|
201
|
+
height: 30%;
|
|
202
|
+
}
|
|
203
|
+
.index-module_container__-cOuH table tr:first-child th:last-child::after {
|
|
204
|
+
top: 10%;
|
|
205
|
+
right: 0px;
|
|
206
|
+
content: "";
|
|
207
|
+
position: absolute;
|
|
208
|
+
border-right: 0px !important;
|
|
209
|
+
height: 80%;
|
|
210
|
+
}
|
|
211
|
+
.index-module_container__-cOuH pre {
|
|
212
|
+
font-family: "PingFang SC" !important;
|
|
213
|
+
margin-top: calc(4px);
|
|
214
|
+
margin-bottom: calc(4px + 4px);
|
|
215
|
+
}
|
|
216
|
+
.index-module_container__-cOuH h1:first-child {
|
|
217
|
+
padding-top: 0;
|
|
218
|
+
}
|
|
219
|
+
.index-module_container__-cOuH p:first-child {
|
|
220
|
+
padding-top: 0;
|
|
221
|
+
}
|
|
222
|
+
.index-module_container__-cOuH h2:first-child {
|
|
223
|
+
padding-top: 0;
|
|
224
|
+
}
|
|
225
|
+
.index-module_container__-cOuH h3:first-child {
|
|
226
|
+
padding-top: 0;
|
|
227
|
+
}
|
|
228
|
+
.index-module_container__-cOuH h4:first-child {
|
|
229
|
+
padding-top: 0;
|
|
230
|
+
}
|
|
231
|
+
.index-module_container__-cOuH h5:first-child {
|
|
232
|
+
padding-top: 0;
|
|
233
|
+
}
|
|
234
|
+
.index-module_container__-cOuH h6:first-child {
|
|
235
|
+
padding-top: 0;
|
|
236
|
+
}
|
|
237
|
+
.index-module_container__-cOuH ol:first-child {
|
|
238
|
+
padding-top: 0;
|
|
239
|
+
}
|
|
240
|
+
.index-module_container__-cOuH h1:last-child {
|
|
241
|
+
padding-bottom: 0;
|
|
242
|
+
}
|
|
243
|
+
.index-module_container__-cOuH p:last-child {
|
|
244
|
+
padding-bottom: 0;
|
|
245
|
+
}
|
|
246
|
+
.index-module_container__-cOuH h2:last-child {
|
|
247
|
+
padding-bottom: 0;
|
|
248
|
+
}
|
|
249
|
+
.index-module_container__-cOuH h3:last-child {
|
|
250
|
+
padding-bottom: 0;
|
|
251
|
+
}
|
|
252
|
+
.index-module_container__-cOuH h4:last-child {
|
|
253
|
+
padding-bottom: 0;
|
|
254
|
+
}
|
|
255
|
+
.index-module_container__-cOuH h5:last-child {
|
|
256
|
+
padding-bottom: 0;
|
|
257
|
+
}
|
|
258
|
+
.index-module_container__-cOuH h6:last-child {
|
|
259
|
+
padding-bottom: 0;
|
|
260
|
+
}
|
|
261
|
+
.index-module_container__-cOuH ol:last-child {
|
|
262
|
+
padding-bottom: 0;
|
|
263
|
+
}
|
|
264
|
+
.index-module_container__-cOuH p,
|
|
265
|
+
.index-module_container__-cOuH h1,
|
|
266
|
+
.index-module_container__-cOuH h2,
|
|
267
|
+
.index-module_container__-cOuH h3,
|
|
268
|
+
.index-module_container__-cOuH h4,
|
|
269
|
+
.index-module_container__-cOuH h5,
|
|
270
|
+
.index-module_container__-cOuH h6,
|
|
271
|
+
.index-module_container__-cOuH ol,
|
|
272
|
+
.index-module_container__-cOuH ul,
|
|
273
|
+
.index-module_container__-cOuH li {
|
|
274
|
+
box-sizing: border-box;
|
|
275
|
+
margin: 0px;
|
|
276
|
+
padding-top: 4px;
|
|
277
|
+
padding-bottom: 4px;
|
|
278
|
+
}
|
|
279
|
+
.index-module_container__-cOuH h1 {
|
|
280
|
+
font-size: 20px;
|
|
281
|
+
line-height: 30px;
|
|
282
|
+
padding-top: calc(4px + 16px);
|
|
283
|
+
}
|
|
284
|
+
.index-module_container__-cOuH h2 {
|
|
285
|
+
font-size: 18px;
|
|
286
|
+
line-height: 28px;
|
|
287
|
+
padding-top: calc(4px + 12px);
|
|
288
|
+
}
|
|
289
|
+
.index-module_container__-cOuH h3,
|
|
290
|
+
.index-module_container__-cOuH h4,
|
|
291
|
+
.index-module_container__-cOuH h5,
|
|
292
|
+
.index-module_container__-cOuH h6 {
|
|
293
|
+
font-size: 16px;
|
|
294
|
+
line-height: 24px;
|
|
295
|
+
padding-top: calc(4px + 8px);
|
|
296
|
+
}
|
|
297
|
+
.index-module_container__-cOuH ul {
|
|
298
|
+
padding-left: 22px;
|
|
299
|
+
}
|
|
300
|
+
.index-module_container__-cOuH ul li {
|
|
301
|
+
list-style-type: circle !important;
|
|
302
|
+
}
|
|
303
|
+
.index-module_container__-cOuH ul ol li {
|
|
304
|
+
list-style-type: decimal !important;
|
|
305
|
+
}
|
|
306
|
+
.index-module_container__-cOuH ol {
|
|
307
|
+
margin-left: 36px;
|
|
308
|
+
margin-inline-start: 0px;
|
|
309
|
+
}
|
|
310
|
+
.index-module_container__-cOuH ol li {
|
|
311
|
+
list-style-type: decimal !important;
|
|
312
|
+
}
|
|
313
|
+
.index-module_container__-cOuH ol ul li {
|
|
314
|
+
list-style-type: circle !important;
|
|
315
|
+
}
|
|
316
|
+
.index-module_container__-cOuH a {
|
|
317
|
+
text-decoration: none;
|
|
318
|
+
color: var(--blue-6);
|
|
319
|
+
}
|
|
320
|
+
.index-module_container__-cOuH hr {
|
|
321
|
+
margin: 24px 0px;
|
|
322
|
+
border: 0px;
|
|
323
|
+
border-bottom: 1px solid var(--grey-4);
|
|
324
|
+
}
|
|
325
|
+
.index-module_container__-cOuH code {
|
|
326
|
+
font-family: SF Mono;
|
|
327
|
+
}
|
|
328
|
+
`,i={codeOperationHeader:"index-module_codeOperationHeader__4-c-V",iconWithText:"index-module_iconWithText__15I1-",rightOperation:"index-module_rightOperation__GerqS",pluginCodeOperationHeader:"index-module_pluginCodeOperationHeader__aHNgD",syntaxHightWrapper:"index-module_syntaxHightWrapper__rBJbW",pluginSyntaxHightWrapper:"index-module_pluginSyntaxHightWrapper__VNOWD",darkTheme:"index-module_darkTheme__cv9FY",beautifulCodeBox:"index-module_beautifulCodeBox__rjXl7",beautifulCode:"index-module_beautifulCode__fr-FB",container:"index-module_container__-cOuH",tableContainer:"index-module_tableContainer__4c94d",typing:"index-module_typing__ml8wd",cursor:"index-module_cursor__DGxTd"};n(e);export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import l from"../../providers/OcContext.js";import i from"../../providers/OcConfigContext.js";import c from"./online-evaluation.js";import o from"react";var p=Object.defineProperty,n=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,a=(e,r,t)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,u=(e,r)=>{for(var t in r||(r={}))f.call(r,t)&&a(e,t,r[t]);if(n)for(var t of n(r))m.call(r,t)&&a(e,t,r[t]);return e};const O=e=>o.createElement(i,null,o.createElement(l,null,o.createElement(c,u({},e),e.children)));export{O as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import n,{useContext as o,useEffect as a}from"react";import i from"../header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js";import{OcConfigContext as r}from"../../providers/OcConfigContext.js";const u=t=>{const{setConfig:e}=o(r);return a(()=>{e(t)},[t]),n.createElement(i,null,t.children)};export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import i from"../../providers/OcContext.js";import l from"../../providers/OcConfigContext.js";import c from"./side-nav.js";import o from"react";var p=Object.defineProperty,n=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,a=(e,r,t)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,s=(e,r)=>{for(var t in r||(r={}))f.call(r,t)&&a(e,t,r[t]);if(n)for(var t of n(r))m.call(r,t)&&a(e,t,r[t]);return e};const v=e=>o.createElement(l,null,o.createElement(i,null,o.createElement(c,s({},e),e.children)));export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useContext as m,useEffect as v,useMemo as C}from"react";import{OcConfigContext as f}from"../../providers/OcConfigContext.js";import n from"./side-nav.module.less.js";import p from"../header/hooks/useUrl.js";import r from"classnames";import E from"../../extraComponents/icon-font/index.js";import{OcContext as N}from"../../providers/OcContext.js";const g=s=>{const{setConfig:u,config:d}=m(f),{locales:i}=m(N);v(()=>{u(s)},[s]);const{urls:e}=p(),{locale:o}=d,c=C(()=>[{title:i==null?void 0:i.onlineEvaluation,subMenus:[{icon:"icon-OC_MyEvaluation",title:{"en-US":"Evaluation","zh-CN":"\u6211\u7684\u8BC4\u6D4B"},key:"/online-evaluation",navigate:`${e==null?void 0:e.VITE_RANK_URL}/online-evaluation?lang=${o}`},{icon:"icon-OC_Benchmark",title:{"en-US":"Benchmark","zh-CN":"\u6211\u7684\u8BC4\u6D4B\u96C6"},key:"/benchmarks",navigate:`${e==null?void 0:e.VITE_HUB_URL}/benchmarks?lang=${o}`},{icon:"icon-moxingModel",title:{"en-US":"Model","zh-CN":"\u6211\u7684\u6A21\u578B"},key:"/models",navigate:`${e==null?void 0:e.VITE_RANK_URL}/models?lang=${o}`}]}],[o,e,i]);return t.createElement("div",{className:n.menu},c==null?void 0:c.map(a=>t.createElement("div",{key:a==null?void 0:a.title,className:r(n.menuItem)},t.createElement("div",{className:n.title},a.title),a.subMenus.map(l=>t.createElement("div",{className:r(n.subMenu,window.location.pathname.includes(l.key)&&n.active),onClick:()=>window.location.replace(l.navigate)},t.createElement(E,{className:n.icon,type:l.icon}),t.createElement("span",{className:n.subMenuTitle},l.title[o]))))))};export{g as default};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import e from"../../node_modules/style-inject/dist/style-inject.es.js";var n=`.side-nav-module_menu__mQxb8 {
|
|
2
|
+
min-height: calc(100vh - 64px - 256px);
|
|
3
|
+
height: 100%;
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 162px;
|
|
6
|
+
padding: 16px;
|
|
7
|
+
border-right: 1px solid var(----line-2, #ebecf0);
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
padding-top: 24px;
|
|
12
|
+
}
|
|
13
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuItem__-9XFd {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
background: transparent;
|
|
18
|
+
color: var(--80-text-4, rgba(18, 19, 22, 0.8));
|
|
19
|
+
gap: 16px;
|
|
20
|
+
padding: 8px 0px 16px 8px;
|
|
21
|
+
}
|
|
22
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuItem__-9XFd .side-nav-module_title__0qoZN {
|
|
23
|
+
color: var(--60-text-3, rgba(18, 19, 22, 0.6));
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
line-height: 24px;
|
|
27
|
+
/* 200% */
|
|
28
|
+
}
|
|
29
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuItem__-9XFd .side-nav-module_subMenu__X7pJz {
|
|
30
|
+
color: var(--100-text-5, #121316);
|
|
31
|
+
text-align: center;
|
|
32
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
|
33
|
+
/* \u6BB5\u843D\u6B63\u6587/\u5E38\u89C4text-1-paragraph-regular */
|
|
34
|
+
font-family: 'PingFang SC';
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
line-height: 24px;
|
|
39
|
+
/* 171.429% */
|
|
40
|
+
gap: 8px;
|
|
41
|
+
display: flex;
|
|
42
|
+
}
|
|
43
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuItem__-9XFd .side-nav-module_subMenu__X7pJz:hover {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuItem__-9XFd .side-nav-module_subMenu__X7pJz .side-nav-module_icon__pDQ5U {
|
|
47
|
+
font-size: 20px;
|
|
48
|
+
}
|
|
49
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuItem__-9XFd .side-nav-module_subMenu__X7pJz .side-nav-module_subMenuTitle__gDid5 {
|
|
50
|
+
text-align: left;
|
|
51
|
+
font-feature-settings: 'clig' off, 'liga' off;
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
font-style: normal;
|
|
54
|
+
line-height: 24px;
|
|
55
|
+
word-break: break-word;
|
|
56
|
+
}
|
|
57
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuItem__-9XFd .side-nav-module_active__DLL9M {
|
|
58
|
+
color: var(--Brand1-6, #1B3882);
|
|
59
|
+
}
|
|
60
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuItem__-9XFd .side-nav-module_active__DLL9M .side-nav-module_subMenuTitle__gDid5 {
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
}
|
|
63
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuFooter__-Fv5F {
|
|
64
|
+
color: var(--80-text-4, rgba(18, 19, 22, 0.8));
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
font-style: normal;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
line-height: 24px;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 4px;
|
|
72
|
+
padding: 4px 6px;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
margin-top: auto;
|
|
75
|
+
}
|
|
76
|
+
.side-nav-module_menu__mQxb8 .side-nav-module_menuFooter__-Fv5F:hover {
|
|
77
|
+
color: #4568c1;
|
|
78
|
+
background-color: #f5f6fd;
|
|
79
|
+
}
|
|
80
|
+
`,o={menu:"side-nav-module_menu__mQxb8",menuItem:"side-nav-module_menuItem__-9XFd",title:"side-nav-module_title__0qoZN",subMenu:"side-nav-module_subMenu__X7pJz",icon:"side-nav-module_icon__pDQ5U",subMenuTitle:"side-nav-module_subMenuTitle__gDid5",active:"side-nav-module_active__DLL9M",menuFooter:"side-nav-module_menuFooter__-Fv5F"};e(n);export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _ from"react";import v from"classnames";import n from"./button.module.less.js";var y=Object.defineProperty,l=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,f=(r,t,e)=>t in r?y(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,u=(r,t)=>{for(var e in t||(t={}))o.call(t,e)&&f(r,e,t[e]);if(l)for(var e of l(t))s.call(t,e)&&f(r,e,t[e]);return r},O=(r,t)=>{var e={};for(var a in r)o.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(r!=null&&l)for(var a of l(r))t.indexOf(a)<0&&s.call(r,a)&&(e[a]=r[a]);return e};const d=r=>{const t=r,{type:e,className:a,style:i,children:m,onClick:c}=t,p=O(t,["type","className","style","children","onClick"]);return _.createElement("button",u({onClick:c,className:v(n.button,a,n[e]),style:i},p),m)};export{d as default};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import n from"../../node_modules/style-inject/dist/style-inject.es.js";var o=`.button-module_button__UG4fq {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
font-weight: 400;
|
|
4
|
+
line-height: 24px;
|
|
5
|
+
color: #fff;
|
|
6
|
+
background: #1B3882;
|
|
7
|
+
border-radius: 2px;
|
|
8
|
+
text-align: center;
|
|
9
|
+
border: none;
|
|
10
|
+
padding: 6px 24px;
|
|
11
|
+
transition: all 0.2s;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
}
|
|
18
|
+
.button-module_button__UG4fq:hover {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
background: #36569B;
|
|
21
|
+
}
|
|
22
|
+
.button-module_button__UG4fq[disabled] {
|
|
23
|
+
cursor: wait;
|
|
24
|
+
opacity: 0.5;
|
|
25
|
+
background-color: #B1C7E6;
|
|
26
|
+
}
|
|
27
|
+
.button-module_secondary__FBeX6 {
|
|
28
|
+
background: var(--fill-2, #F4F5F9);
|
|
29
|
+
color: rgba(18, 19, 22, 0.8);
|
|
30
|
+
}
|
|
31
|
+
.button-module_secondary__FBeX6:hover {
|
|
32
|
+
background: #EBECF0;
|
|
33
|
+
}
|
|
34
|
+
.button-module_link__2-n31 {
|
|
35
|
+
background: transparent;
|
|
36
|
+
color: #1B3882;
|
|
37
|
+
}
|
|
38
|
+
.button-module_link__2-n31:hover {
|
|
39
|
+
background: #F4F5F9;
|
|
40
|
+
}
|
|
41
|
+
.button-module_light__TwgvN {
|
|
42
|
+
border-radius: 2px;
|
|
43
|
+
color: #1B3882;
|
|
44
|
+
border: 1px solid var(--Brand1-6, #1B3882);
|
|
45
|
+
background: var(--fill-2, #F4F5F9);
|
|
46
|
+
/* \u6295\u5F71/\u8F7B\u6295\u5F71 */
|
|
47
|
+
box-shadow: 0px 4px 12px 2px rgba(18, 19, 22, 0.12);
|
|
48
|
+
}
|
|
49
|
+
.button-module_light__TwgvN:hover {
|
|
50
|
+
background: var(--fill-3, #EBECF0);
|
|
51
|
+
}
|
|
52
|
+
`,t={button:"button-module_button__UG4fq",secondary:"button-module_secondary__FBeX6",link:"button-module_link__2-n31",light:"button-module_light__TwgvN"};n(o);export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createFromIconfontCN as o}from"@ant-design/icons";const t=o({scriptUrl:`//at.alicdn.com/t/c/font_3858115_77rquwxju1u.js?id=${Date.now()}`});export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=(o,n,e)=>{window.gtag("event","go_OC",{event_source:n}),window.location.href=`${e}?lang=${o}`},a=(o,n,e)=>{window.gtag("go_rank",{event_source:n}),window.location.href=`${e}?lang=${o}`},g=(o,n,e)=>{window.gtag("go_hub",{event_source:n}),window.location.href=`${e}?lang=${o}`},i=(o,n,e)=>{window.gtag("go_hub",{event_source:n}),window.location.href=`${e}?lang=${o}`},c=(o,n,e)=>{window.gtag("go_kit",{event_source:n}),window.open(`${e}?lang=${o}`)},w=(o,n)=>{window.gtag("contribute_benchmarks",{event_source:"header"}),window.location.href=`${n}/dataset-submit?lang=${o}`},r=(o,n,e)=>{window.gtag("go_rules",{event_source:n}),window.location.href=`${e}rule?lang=${o}`},l=(o,n,e)=>{window.gtag("click_arena",{event_source:"rank-header"}),n==="mm"?window.location.href=`${e}arena/multimodal?lang=${o}`:window.location.href=`${e}arena?lang=${o}`},s=(o,n,e)=>{window.gtag("go_collaboration",{event_source:"collaboration"}),window.location.href=`${e}?lang=${o}`},d=(o,n,e)=>{window.gtag("go_collaboration",{event_source:n}),window.location.href=`${e}?lang=${o}`},$=(o,n,e)=>{window.gtag("goInternDiscoveryEvalKit",{event_source:n}),window.open(`${e}?lang=${o}`)};export{l as clickArena,w as clickContributeBenchmarks,i as goAnnualBenchmark,d as goCommon,s as goData,g as goHub,$ as goInternDiscoveryEvalKit,c as goKit,t as goOCHome,a as goRank,r as goRules};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a;(function(r){r[r.LLM=0]="LLM",r[r.MM=1]="MM"})(a||(a={}));const g={["zh-CN"]:{year:"\u5E74",month:"\u6708",leaderboard:"\u699C",currRanking:"\u672C\u6708\u5B9E\u65F6\u699C"},["en-US"]:{year:"year",month:"month",leaderboard:"",currRanking:"Real-time"}},C=(r,h,R)=>{var v,c,s,y,m,$,f,M,_,b,k,E;const e=g[h],d=[],o=[],l=r==null?void 0:r.filter(n=>R===0?n.month==="REALTIME"||n.month>"24-01":n.month);for(let n=0;n<(l==null?void 0:l.length);n++)if(((v=l==null?void 0:l[n])==null?void 0:v.month)==="REALTIME"){const u=new Date().getFullYear();d.indexOf(`${u}`)<0?(d.push(`${u}`),o.push({label:`${u} ${e.year}`,key:`${u}`,children:[{label:e==null?void 0:e.currRanking,key:"REALTIME"}]})):(y=(s=(c=o==null?void 0:o.filter(t=>t.label===`${u}`))==null?void 0:c[0])==null?void 0:s.children)==null||y.push({label:e==null?void 0:e.currRanking,key:"REALTIME"})}else{const[u,t]=(($=(m=l==null?void 0:l[n])==null?void 0:m.month)==null?void 0:$.split("-"))||[],i=`20${u}`,L=h==="zh-CN"?`${u} ${e.year} ${t} ${e.month}${e.leaderboard}`:((f=l==null?void 0:l[n])==null?void 0:f.month)||"";d.indexOf(i)<0?(d.push(i),o==null||o.push({label:`${i} ${e.year}`,key:i,children:[{label:L,key:((M=l==null?void 0:l[n])==null?void 0:M.month)||""}]})):(E=(b=(_=o==null?void 0:o.filter(p=>p.key===i))==null?void 0:_[0])==null?void 0:b.children)==null||E.push({label:L,key:((k=l==null?void 0:l[n])==null?void 0:k.month)||""})}return o||[]};export{a as RankingType,C as getMenuData};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default as OcHeader}from"./components/header/index.js";export{default as OcOnlineEvaluation}from"./components/online-evaluation/index.js";export{default as OcSideNav}from"./components/side-nav/index.js";export{default as OcFooter}from"./components/footer/index.js";export{default as OcDropdown}from"./components/dropdown/dropdown.js";export{goData,goHub,goInternDiscoveryEvalKit,goKit,goOCHome,goRank,goRules}from"./google-log/home.js";export{default as OcFooterExpansion}from"./components/footer-expansion/index.js";export{default as OcMdRender}from"./components/md-render/index.js";export{getMenuData}from"./helper/index.js";var e;(function(o){o.en="en-US",o.zh="zh-CN"})(e||(e={}));var n;(function(o){o.development="development",o.staging="staging",o.production="production"})(n||(n={}));var t;(function(o){o.lightWeb="lightWeb",o.blueWeb="blueWeb",o.miniWeb="miniWeb",o.lightMiniWeb="lightMiniWeb",o.transparentWeb="transparentWeb"})(t||(t={}));var r;(function(o){o.llm="llm",o.mm="mm"})(r||(r={}));export{n as envTypeEnum,r as evaluationTypeEnum,e as langTypeEnum,t as webTypeEnum};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e={llmArena:"Large Language Model Arena",mmArena:"Multi-modal Model Arena",docs:"Docs",rules:"Rules",login:"Login",logout:"Logout",records:"Records",joinEvaluation:"Join Evaluation",contributeBenchmarks:"Contribute Benchmark",userCenter:"User Center",arena:"Compass Arena",onlineEvaluation:"Online Evaluation",myEvaluation:"My Evaluation",myBenchmark:"My Benchmark",myModel:"My Model",create:"Create",cancel:"Cancel",quick:"Quick Evaluation",quickFeatures1:"Provide OpenCompass-supported models",quickFeatures3:"Provide scores and wrong answer details",comprehensive:"OpenCompass2.0 Evaluation",abilityFeatures1:"Support custom models",abilityFeatures3:"Provide comprehensive ability scores and sub dimension scores",createAbilityCompany:"Only for organization",createAbilityTip:"Please confirm the account has been granted OpenCompass2.0 evaluation permission",createAbilityTip1:"For permission application, please contact\uFF1Aopencompass@pjlab.org.cn",createOnlineEvaluation:"Create new task",customize:"Custom Evaluation",customFeature1:"Support custom models",customFeature2:"Support custom benchmark",customFeature3:"Provide scores and wrong answer details",quickFeatures2:"Support ",quickFeatures21:"open-source benchmark",abilityFeatures2:"OpenCompass 2.0 ",abilityFeatures21:"closed-source benchmark",llmEvaluation:"Large Language Model Evaluation",mmEvaluation:"MultiModal Model Evaluation",prevStep:"Previous",ArenaMode:"Task Mode Arena",applyNow:"Apply Now",abilityApplySubmit:"Submit",createQuickEvaluation:"Create Quick Evaluation",createAbilityEvaluation:"Create Ability Evaluation",limitTitle:"Reached daily evaluation limit",limitContent:"The daily evaluation limit is 10 times",limitKnow:"Got it",comingSoon:"Coming Soon",copySuccess:"Copied",modelType:"Model Type",dialogueModel:"Chat Model",dialogueModelTip:"Often built upon the base model and refined through directive fine-tuning or human preference alignment (e.g., OpenAI\u2019s ChatGPT, Shanghai AI Lab\u2019s Scholar Pu Tongue). These models can understand human instructions and have strong conversational skills.",baseModel:"Base Model",baseModelTip:"Typically obtained through training on massive textual data in a self-supervised manner (e.g., OpenAI\u2019s GPT-3, Meta\u2019s LLaMA). These models usually have powerful text continuation capabilities.",selectModel:"Choose Model",selectModelTip:"Provide OpenCompass-supported models",selectDataset:"Choose Benchmark",selectDatasetTip:"Provide OpenCompass-supported benchmarks",modelPlaceholder:"Select up to 1 models",dataset:"Benchmark",datasetPlaceholder:"Select up to 10 benchmarks",next:" Next",previous:"Previous",start:" Start Evaluation",success:"Created successfully",fail:"Creation failed",datasetCoptSuccess:"version id copied",setting:"Setting:",abilitySetBase:"Basic Information",abilitySetBaseTip:"Model,file and orgnization information",abilitySetModel:"Model configuration information",abilitySetModelTip:"Key parameters for model initialization ",abilityAdvance:"Advanced setting",abilityAdvanceStop_wordsPlaceholder:"Advanced setting",abilityAdvanceStop_wordsExtra:"For example\uFF1A['</s>', '<|im_end|>']",abilityAdvanceStop_wordsTip:"Vocabulary needs to be removed during text processing",abilityNotice:"Note",abilityNotice1:"1. Model Type\uFF1A",abilityNotice11:"Currently\uFF0Cwe only support",abilityNotice13:"evaluation",abilityNotice2:"2. Model File\uFF1A",abilityNotice21:"Model files need to be hosted in a public git repository\uFF08Common platforms\uFF1A",abilityNotice22:"\u3001",abilityNotice23:"\uFF09",abilityNotice3:"3. Model Format\uFF1A",abilityNotice31:"Only support the models which can be initialized with class transformers.AutoModelForCausalLM",abilityNotice5:"5. No modification\uFF1A",abilityNotice51:"After submission, all information cannot be modified",abilityBase:"Model basic information",abilityBaseNameEN:"Model Name",abilityBaseNameENPlaceholder:"Please input English, numbers, or characters",abilityBaseNameENError1:"Please input model name",abilityBaseNameENError2:"Please input English, numbers, or characters",abilityBaseNameDescCN:"Model Introduction",abilityBaseNameDescCNError:"Please input model introduction",abilityBaseNameDescEN:"Model Introduction(English)",abilityBaseNameDescENError:"Please input model introduction in english",evalDimensions:"Dimension",evalDimensionsDesc:"The fewer dimensions, the less time is required",evalDimensionsError:"Please select at least one dimension",abilityBaseRefer:"Parameter quantity (unit:B)",abilityBaseReferPlaceholder:"Please input the parameter quantity",abilityBaseReferError:"Please input a number",abilityBaseWebsite:"Website/GitHub",abilityBaseWebsiteError:"Please input website or GitHub",abilityBaseWebsiteError1:"Please input correct link",abilityBaseWebsitePlaceholder:"Please input website or GitHub",abilityBaseReport:"Paper/Report",abilityBaseReportError:"Please input correct link",abilityBaseReportPlaceholder:"Please input paper or report link",abilityPaper:"Model file information",abilityPaperUrl:"Model Repository",abilityPaperUrlExtra:"For example\uFF1Ahttps://huggingface.co/username/repo_name",abilityPaperUrlPlaceholder:"Please input public model repository address of Hugging Face\uFF0CModelScope\uFF0COpenXLab or Gitee",abilityPaperUrlError:"Please input model repository address",abilityPaperUrlError1:"Please input correct link",abilityPaperUrlError2:"Please input public model repository address",abilityVersion:"Version",abilityVersionExtra:"Pull the latest version of the files in default branch (if the commit ID is not filled in)",abilityVersionPlaceholder:"Please input the complete commit id (40 digits)",abilityVersionError:"The commit id does not exist",abilityOrganize:"Company/Organization Information",abilityOrganizeName:"Company/Organization Name\uFF08english\uFF09",abilityOrganizeNamePlaceholder:"Please input English, numbers, or characters",abilityOrganizeNameError:"Please input the name of the company/organization",abilityOrganizeNameError1:"Please input English, numbers, or characters",abilityOrganizeEmail:"Email",abilityOrganizeEmailExtra:"Recommend filling in company/organization email",abilityOrganizeEmailPlaceholder:"Please input company/organization email",abilityOrganizeEmailError:"Please input the correct email",abilityOrganizePhone:"Phone",abilityOrganizeError:"Please input the right phone number",abilityOrganizePhonePlaceholder:"Please input your phone number ",abilityParams:"Basic Parameter",abilityParamsTokenError:"Please input max_out_len",abilityParamsTokenPlaceholder:"Suggested value is 1024",abilityParamsTokenTip:"Maximum number of generated tokens",abilityParamsBatchError:"Please input batch_size",abilityParamsBatchPlaceholder:"Suggested value is 8",abilityParamsBatchTip:"batch size",abilityParamsGPUError:"Please input num_gpus",abilityParamsGPUPlaceholder:"Suggested value is 1",abilityParamsGPUTip:"GPU Number(s)",abilityParamsAgree:"I agree to make the results of this evaluation public, including model information, scores, etc",abilitySubmit:"Submit",abilityConfirmSubmit:"Submit",quickLimitContent:"The daily quick evaluation limit is 10 times",abilityLimitContent:"The daily OpenCompass2.0 evaluation limit is 5 times",abilityNoPermission:"This account does not have permission",abilityNoPermissionContent:"The OpenCompass 2.0 evaluation is only open to organization. Please contact",abilityNoPermissionContent1:"opencompass@pjlab.org.cn to get permission",abilityPermissionApply:"Apply for OpenCompass2.0 Evaluation",abilityModelUsage:"Model Usage",abilityModelPlaceholder:"Please input the usage scenario of the model",abilityApplyWarning:"*Please confirm you have registered an account using the provided phone or email",orgName:"Enterprise/Organization Name",submitSuccess:"Submitted successfully",createAbilityTitle:"After submission, all information cannot be modified.",createAbilityContent:"After submission, all information cannot be modified. Please check carefully!",abilityNotice12:"Large Language Model\uFF08Chat\uFF09",abilityNotice4:"4. Parameter and file size\uFF1A",abilityNotice41:"Only supports model: parameter less than 40B. The total file size should be less than 100G",abilityPaperUrlExtra1:"Note: Any repository with permission requests in Hugging Face is not a public repository",abilityParamsTokenError1:"Please input an integer between 1-1024",abilityParamsBatchError1:"Please input an integer between 1-64",abilityBaseReferError1:"Parameter needs to be less than 40B",abilityVersionLoading:"Verifying...",customLimitContent1:"The daily custom evaluation limit is 10 times",customEvaluation:"Custom Evaluation",newCustomTask:"Create new task",choseModel:"Select Model",modelTypeRequired:"Please select the model type",customModel:"Custom Model",customModelTip:"Personal Model",presetModel:"Provided Model",presetModelTip:"Large language models supported by OpenCompass",modelSource:"Model Source",modelSourceRequired:"Please select the model source",APIModel:"API Model",modelName:"Model Name",modelNameValidateError:"Model name verification failed",modelNamePlaceholder:"Please input model name",modelNameRequired:"The model name cannot be empty",duplicateName:"The model name already exists",APIParams:"API Parameter",APIParamsValidateError:"API Parameter verification failed",APIParamsTip:"Support OpenAI type API, and you can refer to the example to fill in",apiParamsRequired:"API Parameters cannot be empty",viewExample:"View Example",example:"Example",noted:"Got it",paramName:"Parameter Name",paramMeaning:"Meaning",apiNotModified:"Please input API Parameters",apiError1:"Please fill in the parameter value: openai_api_base",apiError2:"Please fill in the parameter value: key",apiError3:"Please fill in the parameter value: model",apiError4:"Please fill in the parameter value: max_out_len",apiError5:"Please fill in the parameter value: max_seq_len",apiError6:"Please fill in the parameter value: query_per_second",apiError7:"Please fill in the parameter value: batch_size",apiInvalidate1:"API Key is invalid",apiInvalidate2:"The model cannot be found",apiInvalidate3:"API service exception",modelMaxNum:"Select up to 1 model",modelRequired:"Please select a model",noModel:"No Model",createModelBefore:"Please",createModel:"Fill in API information",createModelAfter:"to create",openai_api_base_mean:"URL address",key_mean:`Personal API Token
|
|
2
|
+
For personally deployed services, this value can be set to any string`,model_mean:"API Model Name\uFF08Model ID\uFF09",max_out_len_mean:"Used to control the maximum length of the generated content",max_seq_len_mean:"Maximum length of input sequence",max_out_len_int:"max_out_len only supports integer greater than 0",max_seq_len_int:"max_seq_len only supports integer greater than 0",query_per_second_mean:"The number of requests allowed per second",batch_size_mean:"Batch processing size ",query_per_second_format:"query_per_second only supports numbers greater than 0 and not exceeding 100",batch_size_format:"batch_size only supports integer greater than 0 and not exceeding 64",query_per_second_max:"The query_per_second value cannot exceed 100",batch_size_max:"The batch_size value cannot exceed 64",query_per_second_min:"The query_per_second value cannot be 0",batch_size_min:"The batch_size value only supports integers, with a minimum value of 1",createBenchmark:"Create Benchmark",choseBenchmark:"Please select benchmark",communityBenchmark:"Community Benchmark",benchmarkEmpty:"No Content",source:"Source",operation:"Operation",delete:"Delete",tableDesc:"Please upload benchmark or select benchmark above",chosenBenchmark:"Selected Benchmark",noContent:"No Content",dropdownDesc:"The benchmark included file",maxCount:"Maximum number of benchmarks is 10",fileRequirement1:"Supports JSON and CSV file up to 30MB; Question type: multiple choice questions",fileRequirement2:"Need to comply with OpenCompass format",uploadFile:"Upload File",datasetNameError:"Please input dataset name",datasetNameError1:"Only supports starting with numbers or letters",datasetNameError2:"Please input English, numbers, or characters+. -_ ( )",datasetNameError3:"Continuous characters are not allowed",evalDimensionError:"Please select the dimension",datasetNamePlaceholder:"Please input English, numbers, or characters+. -_ ( )",evalDimensionPlaceholder:"Select up to 3 dimensions",downloadTemplate:"Download Template",sizeError:"File size should not exceed 30MB",showHere:"Uploaded files are here",scienceCommit:"AI4S Program",commitRecord:"AI4S Program Submission Record",agreement:"OpenCompass Platform Service Agreement",evalRank:"Rank",closeLeaderboard:"CompassBench Leaderboard",openLeaderboard:"CompassAcademic Leaderboard",arenaLeader:"CompassArena Leaderboard",mmLeaderboard:"Multimodal Model Leaderboard",exploreMore:"Explore More",compassHub:"CompassHub",compassKit:"CompassKit",docsCenter:"Docs Center",rankRules:"Rules",useGuide:"Docs",compassCommunity:"Community",followUs:`Follow OpenCompass
|
|
3
|
+
WeChat Account`,contactUs:"Contact Us",aboutUs:"\u5173\u4E8E\u6211\u4EEC",joinUs:"\u52A0\u5165\u6211\u4EEC",terms:"\u670D\u52A1\u6761\u6B3E",privacy:"\u9690\u79C1\u653F\u7B56",feedback:"\u610F\u89C1\u53CD\u9988",email:"",finance:"AI x Finance",medical:"AI x Medical",yearEvaluation:"ANNUAL BENCHMARK",yearEvaluationTitle:"OpenCompass Annual Benchmark Election has begun!",yearEvaluationDesc:"Welcome everyone to submit benchmark papers and vote!",yearEvaluationKnown:"Got it"};export{e as EN};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EN as o}from"./en.js";import{ZH as r}from"./zh.js";var e={"zh-CN":r,"en-US":o};export{e as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const u={llmArena:"\u5927\u8BED\u8A00\u6A21\u578B\u5BF9\u6218",mmArena:"\u591A\u6A21\u6001\u6A21\u578B\u5BF9\u6218",docs:"\u4F7F\u7528\u6307\u5357",rules:"\u699C\u5355\u89C4\u5219",login:"\u767B\u5F55",logout:"\u9000\u51FA\u767B\u5F55",records:"\u63D0\u4EA4\u8BB0\u5F55",joinEvaluation:"\u52A0\u5165\u8BC4\u6D4B",contributeBenchmarks:"\u8D21\u732E\u8BC4\u6D4B\u96C6",userCenter:"\u8D26\u53F7\u4FE1\u606F",arena:"\u5927\u6A21\u578B\u7ADE\u6280\u573A",onlineEvaluation:"\u5728\u7EBF\u8BC4\u6D4B",myEvaluation:"\u6211\u7684\u8BC4\u6D4B",myBenchmark:"\u6211\u7684\u8BC4\u6D4B\u96C6",myModel:"\u6211\u7684\u6A21\u578B",create:"\u521B\u5EFA",cancel:"\u53D6\u6D88",quick:"\u5FEB\u901F\u8BC4\u6D4B",quickFeatures1:"\u652F\u6301\u5DF2\u6536\u5F55\u7684\u6A21\u578B",quickFeatures2:"\u652F\u6301\u5DF2\u6536\u5F55\u7684",quickFeatures21:"\u5F00\u6E90\u8BC4\u6D4B\u6570\u636E\u96C6",quickFeatures3:"\u652F\u6301\u67E5\u770B\u6A21\u578B\u5728\u6240\u9009\u8BC4\u6D4B\u96C6\u7684\u5F97\u5206\u53CA\u9898\u76EE\u5BF9\u9519\u660E\u7EC6",comprehensive:"\u80FD\u529B\u8BC4\u6D4B",abilityFeatures1:"\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u578B",abilityFeatures2:"\u53F8\u53572.0",abilityFeatures21:"\u95ED\u6E90\u8BC4\u6D4B\u6570\u636E\u96C6",abilityFeatures3:"\u652F\u6301\u67E5\u770B\u6A21\u578B\u7EFC\u5408\u80FD\u529B\u5F97\u5206\u53CA\u5404\u7EC6\u5206\u80FD\u529B\u7EF4\u5EA6\u5F97\u5206",createAbilityCompany:"\u9762\u5411\u4F01\u4E1A/\u7EC4\u7EC7",createAbilityTip:"\u8BF7\u786E\u8BA4\u8D26\u53F7\u5DF2\u83B7\u5F97\u8BC4\u6D4B\u6743\u9650",createAbilityTip1:"\u7533\u8BF7\u6743\u9650\u8BF7\u8054\u7CFB\u90AE\u7BB1\uFF1Aopencompass@pjlab.org.cn",createOnlineEvaluation:"\u65B0\u5EFA\u8BC4\u6D4B\u4EFB\u52A1",customize:"\u81EA\u5B9A\u4E49\u8BC4\u6D4B",customFeature1:"\u652F\u6301\u81EA\u5B9A\u4E49\u6A21\u578B",customFeature2:"\u652F\u6301\u81EA\u5B9A\u4E49\u8BC4\u6D4B\u6570\u636E\u96C6",customFeature3:"\u652F\u6301\u67E5\u770B\u6A21\u578B\u5728\u6240\u9009\u8BC4\u6D4B\u6570\u636E\u96C6\u7684\u5F97\u5206\u53CA\u9898\u76EE\u5BF9\u9519\u660E\u7EC6",llmEvaluation:"\u5927\u8BED\u8A00\u6A21\u578B\u8BC4\u6D4B",mmEvaluation:"\u591A\u6A21\u6001\u6A21\u578B\u8BC4\u6D4B",prevStep:"\u4E0A\u4E00\u6B65",ArenaMode:"\u4EFB\u52A1\u6311\u6218\u6A21\u5F0F",applyNow:"\u7ACB\u5373\u7533\u8BF7",abilityApplySubmit:"\u63D0\u4EA4",createQuickEvaluation:"\u65B0\u5EFA\u5FEB\u901F\u8BC4\u6D4B\u4EFB\u52A1",createAbilityEvaluation:"\u65B0\u5EFA\u80FD\u529B\u8BC4\u6D4B\u4EFB\u52A1",limitTitle:"\u5DF2\u8FBE\u5230\u672C\u65E5\u8BC4\u6D4B\u4E0A\u9650",limitContent:"\u6BCF\u5929\u8BC4\u6D4B\u4E0A\u9650\u4E3A 10 \u6B21",limitKnow:"\u77E5\u9053\u4E86",comingSoon:"\u52AA\u529B\u5F00\u53D1\u4E2D\uFF0C\u656C\u8BF7\u671F\u5F85",copySuccess:"Hugging Face commit id \u590D\u5236\u6210\u529F",modelType:"\u6A21\u578B\u7C7B\u578B",dialogueModel:"\u5BF9\u8BDD\u6A21\u578B",dialogueModelTip:"\u5728\u57FA\u5EA7\u6A21\u578B\u7684\u57FA\u7840\u4E0A\uFF0C\u7ECF\u8FC7\u6307\u4EE4\u5FAE\u8C03\u6216\u4EBA\u7C7B\u504F\u597D\u5BF9\u9F50\u83B7\u5F97\u7684\u6A21\u578B\uFF08\u5982 ChatGPT\u3001\u4E66\u751F\xB7\u6D66\u8BED\uFF09\uFF0C\u80FD\u7406\u89E3\u4EBA\u7C7B\u6307\u4EE4\uFF0C\u5177\u6709\u8F83\u5F3A\u7684\u5BF9\u8BDD\u80FD\u529B",baseModel:"\u57FA\u5EA7\u6A21\u578B",baseModelTip:"\u7ECF\u8FC7\u6D77\u91CF\u7684\u6587\u672C\u6570\u636E\u4EE5\u81EA\u76D1\u7763\u5B66\u4E60\u7684\u65B9\u5F0F\u8FDB\u884C\u8BAD\u7EC3\u83B7\u5F97\u7684\u6A21\u578B\uFF08\u5982 GPT-3\u3001LLaMA\uFF09\uFF0C\u5F80\u5F80\u5177\u6709\u5F3A\u5927\u7684\u6587\u5B57\u7EED\u5199\u80FD\u529B",selectModel:"\u9009\u62E9\u6A21\u578B",selectModelTip:"\u652F\u6301\u5DF2\u6536\u5F55\u7684\u6A21\u578B",selectDataset:"\u9009\u62E9\u8BC4\u6D4B\u96C6",selectDatasetTip:"\u652F\u6301\u5DF2\u6536\u5F55\u7684\u8BC4\u6D4B\u96C6",modelPlaceholder:"\u6700\u591A\u9009\u62E9 1 \u4E2A\u6A21\u578B",dataset:"\u8BC4\u6D4B\u96C6",datasetPlaceholder:"\u6700\u591A\u9009\u62E9 10 \u4E2A\u8BC4\u6D4B\u96C6",next:" \u4E0B\u4E00\u6B65",previous:"\u4E0A\u4E00\u6B65",start:" \u5F00\u59CB\u8BC4\u6D4B",success:"\u521B\u5EFA\u6210\u529F",fail:"\u521B\u5EFA\u5931\u8D25",datasetCoptSuccess:"\u8BC4\u6D4B\u96C6\u7248\u672C id \u590D\u5236\u6210\u529F",setting:"\u8BC4\u6D4B\u8BBE\u5B9A\uFF1A",abilitySetBase:"\u57FA\u7840\u4FE1\u606F",abilitySetBaseTip:"\u6A21\u578B\u4ECB\u7ECD\u3001\u6587\u4EF6\u4FE1\u606F\u3001\u4F01\u4E1A\u4FE1\u606F",abilitySetModel:"\u6A21\u578B\u914D\u7F6E\u4FE1\u606F",abilitySetModelTip:"\u52A0\u8F7D\u6A21\u578B\u6240\u9700\u7684\u5173\u952E\u53C2\u6570",abilityAdvance:"\u9AD8\u7EA7\u8BBE\u7F6E",abilityAdvanceStop_wordsPlaceholder:"\u9AD8\u7EA7\u8BBE\u7F6E",abilityAdvanceStop_wordsExtra:"\u4F8B\u5982\uFF1A['</s>', '<|im_end|>']",abilityAdvanceStop_wordsTip:"\u9700\u8981\u5728\u6587\u672C\u5904\u7406\u8FC7\u7A0B\u4E2D\u88AB\u5FFD\u7565\u6216\u79FB\u9664\u7684\u8BCD\u6C47",abilityNotice:"\u6CE8\u610F\u4E8B\u9879",abilityNotice1:"1. \u6A21\u578B\u7C7B\u578B\uFF1A",abilityNotice11:"\u76EE\u524D\u4EC5\u652F\u6301\u8BC4\u6D4B",abilityNotice13:"\u8FDB\u884C\u8BC4\u6D4B",abilityNotice2:"2. \u6A21\u578B\u6587\u4EF6\uFF1A",abilityNotice21:"\u6A21\u578B\u76F8\u5173\u6587\u4EF6\u9700\u6258\u7BA1\u81F3\u4EE5 git \u4F5C\u4E3A\u7248\u672C\u7BA1\u7406\u7684\u4ED3\u5E93\u5E76\u4E14\u5F00\u6E90\uFF08\u5E38\u89C1\u6A21\u578B\u6258\u7BA1\u5E73\u53F0\uFF1A",abilityNotice22:"\u3001",abilityNotice23:"\uFF09",abilityNotice3:"3. \u6A21\u578B\u683C\u5F0F\uFF1A",abilityNotice31:"\u4EC5\u652F\u6301\u901A\u8FC7 Hugging Face \u7684 Transformers \u5E93\u4E2D\u7684 AutoModelForCausalLM \u7C7B\u52A0\u8F7D\u7684\u6A21\u578B",abilityNotice5:"5. \u63D0\u4EA4\u540E\u4FE1\u606F\u4E0D\u53EF\u4FEE\u6539\uFF1A",abilityNotice51:"\u63D0\u4EA4\u540E\u6240\u6709\u4FE1\u606F\u4E0D\u53EF\u4FEE\u6539",abilityBase:"\u6A21\u578B\u57FA\u7840\u4FE1\u606F",abilityBaseNameEN:"\u6A21\u578B\u540D\u79F0",abilityBaseNameENPlaceholder:"\u8BF7\u8F93\u5165\u82F1\u6587\u3001\u6570\u5B57\u6216\u7B26\u53F7",abilityBaseNameENError1:"\u8BF7\u8F93\u5165\u6A21\u578B\u540D\u79F0",abilityBaseNameENError2:"\u8BF7\u8F93\u5165\u82F1\u6587\u3001\u6570\u5B57\u6216\u7B26\u53F7",abilityBaseNameDescCN:"\u6A21\u578B\u4ECB\u7ECD",abilityBaseNameDescCNError:"\u8BF7\u8F93\u5165\u6A21\u578B\u4ECB\u7ECD",abilityBaseNameDescEN:"\u6A21\u578B\u4ECB\u7ECD\uFF08\u82F1\u6587\uFF09",abilityBaseNameDescENError:"\u8BF7\u8F93\u5165\u6A21\u578B\u82F1\u6587\u4ECB\u7ECD",evalDimensions:"\u8BC4\u6D4B\u65B9\u5411",evalDimensionsDesc:"\u8BC4\u6D4B\u65B9\u5411\u8D8A\u5C11\uFF0C\u8BC4\u6D4B\u901F\u5EA6\u8D8A\u5FEB",evalDimensionsError:"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u8BC4\u6D4B\u65B9\u5411",abilityBaseRefer:"\u53C2\u6570\u91CF\uFF08\u5355\u4F4D\uFF1A\u5341\u4EBF\uFF09",abilityBaseReferPlaceholder:"\u8BF7\u8F93\u5165\u53C2\u6570\u91CF",abilityBaseReferError:"\u8BF7\u8F93\u5165\u6570\u5B57",abilityBaseWebsite:"\u5B98\u7F51/GitHub",abilityBaseWebsiteError:"\u8BF7\u8F93\u5165\u5B98\u7F51\u6216 GitHub \u4ED3\u5E93\u5730\u5740",abilityBaseWebsiteError1:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740",abilityBaseWebsitePlaceholder:"\u8BF7\u8F93\u5165\u5B98\u7F51\u6216 GitHub \u4ED3\u5E93\u5730\u5740",abilityBaseReport:"\u8BBA\u6587/\u6280\u672F\u62A5\u544A",abilityBaseReportError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740",abilityBaseReportPlaceholder:"\u8BF7\u8F93\u5165\u8BBA\u6587\u6216\u6280\u672F\u62A5\u544A\u94FE\u63A5\u5730\u5740",abilityPaper:"\u6A21\u578B\u6587\u4EF6\u4FE1\u606F",abilityPaperUrl:"\u6A21\u578B\u4ED3\u5E93\u5730\u5740",abilityPaperUrlExtra:"\u4F8B\u5982\uFF1Ahttps://huggingface.co/username/repo_name",abilityPaperUrlPlaceholder:"\u8BF7\u8F93\u5165\u516C\u5F00\u6A21\u578B\u4ED3\u5E93\u5730\u5740\uFF0C\u652F\u6301 Hugging Face\u3001ModelScope\u3001OpenXLab\u3001Gitee",abilityPaperUrlError:"\u8BF7\u8F93\u5165\u6A21\u578B\u4ED3\u5E93\u5730\u5740",abilityPaperUrlError1:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5\u5730\u5740",abilityPaperUrlError2:"\u8BF7\u8F93\u5165\u516C\u5F00\u7684\u6A21\u578B\u4ED3\u5E93\u5730\u5740",abilityVersion:"\u7248\u672C\u4FE1\u606F",abilityVersionExtra:"\u672A\u586B\u5199\u60C5\u51B5\u4E0B\uFF0C\u9ED8\u8BA4\u62C9\u53D6\u5F53\u524D\u6700\u65B0\u7248\u672C\u5BF9\u5E94\u7684\u9ED8\u8BA4\u5206\u652F\u6587\u4EF6",abilityVersionPlaceholder:"\u8BF7\u8F93\u5165\u5B8C\u6574 commit id \uFF0840\u4F4D\uFF09",abilityVersionError:"\u8BE5\u4ED3\u5E93\u4E0B\u4E0D\u5B58\u5728\u6B64 commit id",abilityOrganize:"\u4F01\u4E1A/\u7EC4\u7EC7\u4FE1\u606F",abilityOrganizeName:"\u4F01\u4E1A/\u7EC4\u7EC7\u540D\u79F0\uFF08\u82F1\u6587\uFF09",abilityOrganizeNamePlaceholder:"\u8BF7\u8F93\u5165\u82F1\u6587\u3001\u6570\u5B57\u6216\u7B26\u53F7",abilityOrganizeNameError:"\u8BF7\u8F93\u5165\u4F01\u4E1A/\u7EC4\u7EC7\u540D\u79F0",abilityOrganizeNameError1:"\u8BF7\u8F93\u5165\u82F1\u6587\u3001\u6570\u5B57\u6216\u7B26\u53F7",abilityOrganizeEmail:"\u90AE\u7BB1",abilityOrganizeEmailExtra:"\u63A8\u8350\u4F7F\u7528\u60A8\u4F01\u4E1A/\u7EC4\u7EC7\u7684\u90AE\u7BB1",abilityOrganizeEmailPlaceholder:"\u8BF7\u8F93\u5165\u60A8\u4F01\u4E1A/\u7EC4\u7EC7\u7684\u90AE\u7BB1",abilityOrganizeEmailError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1",abilityOrganizePhone:"\u624B\u673A\u53F7",abilityOrganizeError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7",abilityOrganizePhonePlaceholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",abilityParams:"\u57FA\u672C\u53C2\u6570",abilityParamsTokenError:"\u8BF7\u8F93\u5165 max_out_len",abilityParamsTokenPlaceholder:"\u5EFA\u8BAE\u8F93\u5165\u503C 1024",abilityParamsTokenTip:"\u751F\u6210\u7684\u6700\u5927 token \u6570",abilityParamsBatchError:"\u8BF7\u8F93\u5165 batch_size",abilityParamsBatchPlaceholder:"\u5EFA\u8BAE\u8F93\u5165\u503C 8",abilityParamsBatchTip:"batch \u5927\u5C0F",abilityParamsGPUError:"\u8BF7\u8F93\u5165 num_gpus",abilityParamsGPUPlaceholder:"\u5EFA\u8BAE\u8F93\u5165\u503C 1",abilityParamsGPUTip:"\u9700\u8981\u7684 GPU \u6570\u91CF",abilityParamsAgree:"\u6211\u540C\u610F\u5C06\u672C\u6B21\u8BC4\u6D4B\u7ED3\u679C\u516C\u5F00\uFF0C\u5305\u62EC\u6A21\u578B\u57FA\u7840\u4FE1\u606F\u548C\u6A21\u578B\u80FD\u529B\u5F97\u5206",abilitySubmit:"\u63D0\u4EA4\u8BC4\u6D4B",abilityConfirmSubmit:"\u786E\u8BA4\u63D0\u4EA4",quickLimitContent:"\u6BCF\u5929\u5FEB\u901F\u8BC4\u6D4B\u4E0A\u9650\u4E3A 10 \u6B21",abilityLimitContent:"\u6BCF\u5929\u80FD\u529B\u8BC4\u6D4B\u4E0A\u9650\u4E3A 5 \u6B21",abilityNoPermission:"\u5F53\u524D\u8D26\u53F7\u65E0\u6743\u9650",abilityNoPermissionContent:"\u53F8\u5357 OpenCompass2.0 \u80FD\u529B\u8BC4\u6D4B\u4EC5\u9762\u5411\u4F01\u4E1A/\u673A\u6784\u5F00\u653E\uFF0C\u8BF7\u901A\u8FC7\u90AE\u4EF6\u8054\u7CFB",abilityNoPermissionContent1:"opencompass@pjlab.org.cn \u83B7\u53D6\u6743\u9650",abilityPermissionApply:"\u80FD\u529B\u8BC4\u6D4B\u6743\u9650\u7533\u8BF7",abilityModelUsage:"\u6A21\u578B\u4F7F\u7528\u573A\u666F",abilityModelPlaceholder:"\u8BF7\u8F93\u5165\u6A21\u578B\u4F7F\u7528\u573A\u666F\uFF0C\u5982\u533B\u7597\u3001\u6559\u80B2\u7B49",abilityApplyWarning:"*\u8BF7\u786E\u8BA4\u5DF2\u4F7F\u7528\u6240\u586B\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u6CE8\u518C\u8D26\u53F7",orgName:"\u4F01\u4E1A/\u7EC4\u7EC7\u540D\u79F0",submitSuccess:"\u63D0\u4EA4\u6210\u529F",createAbilityTitle:"\u63D0\u4EA4\u540E\u4FE1\u606F\u4E0D\u53EF\u4FEE\u6539",createAbilityContent:"\u63D0\u4EA4\u540E\u6240\u6709\u4FE1\u606F\u4E0D\u53EF\u4FEE\u6539\uFF0C\u8BF7\u8C28\u614E\u6838\u5BF9\uFF01",abilityNotice12:"\u5BF9\u8BDD\u7C7B\u5927\u8BED\u8A00\u6A21\u578B",abilityNotice4:"4. \u53C2\u6570\u91CF\u53CA\u6587\u4EF6\u5927\u5C0F\uFF1A",abilityNotice41:"\u4EC5\u652F\u6301\u53C2\u6570\u91CF \u226440B \u7684\u6A21\u578B\uFF1B\u6A21\u578B\u603B\u6587\u4EF6\u5927\u5C0F \u2264100G",abilityPaperUrlExtra1:"\u6CE8\uFF1AHugging Face \u4E2D\u5B58\u5728\u4EFB\u4F55\u6743\u9650\u7533\u8BF7\u7684\u4ED3\u5E93\u5747\u4E0D\u5C5E\u4E8E\u516C\u5F00\u4ED3\u5E93",abilityParamsTokenError1:"\u8F93\u5165\u8303\u56F4 1-1024 \u7684\u6574\u6570",abilityParamsBatchError1:"\u8F93\u5165\u8303\u56F4 1-64 \u7684\u6574\u6570",abilityBaseReferError1:"\u6682\u4E0D\u652F\u6301\u8BC4\u6D4B\u53C2\u6570\u91CF \uFF1E40B \u7684\u6A21\u578B",abilityVersionLoading:"\u6821\u9A8C\u4E2D\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85...",customLimitContent1:"\u6BCF\u5929\u81EA\u5B9A\u4E49\u8BC4\u6D4B\u4E0A\u9650\u4E3A 10 \u6B21",customEvaluation:"\u81EA\u5B9A\u4E49\u8BC4\u6D4B",newCustomTask:"\u65B0\u5EFA\u81EA\u5B9A\u4E49\u8BC4\u6D4B\u4EFB\u52A1",choseModel:"\u9009\u62E9\u6A21\u578B",modelTypeRequired:"\u8BF7\u9009\u62E9\u6A21\u578B\u7C7B\u578B",customModel:"\u81EA\u5B9A\u4E49\u6A21\u578B",customModelTip:"\u7528\u6237\u7684\u4E2A\u4EBA\u6A21\u578B",presetModel:"\u9884\u7F6E\u6A21\u578B",presetModelTip:"\u53F8\u5357OpenCompass \u5DF2\u652F\u6301\u7684\u90E8\u5206\u5927\u8BED\u8A00\u6A21\u578B",modelSource:"\u6A21\u578B\u6765\u6E90",modelSourceRequired:"\u8BF7\u9009\u62E9\u6A21\u578B\u6765\u6E90",APIModel:"\u65B0\u5EFA API \u6A21\u578B",modelName:"\u6A21\u578B\u540D\u79F0",modelNameValidateError:"\u6A21\u578B\u540D\u79F0\u6821\u9A8C\u5931\u8D25",modelNamePlaceholder:"\u8BF7\u8F93\u5165\u6A21\u578B\u540D\u79F0",modelNameRequired:"\u6A21\u578B\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",duplicateName:"\u8BE5\u540D\u79F0\u5DF2\u5B58\u5728",APIParams:"API \u53C2\u6570",APIParamsValidateError:"API \u53C2\u6570\u6821\u9A8C\u5931\u8D25",APIParamsTip:"\u652F\u6301 OpenAI \u6807\u51C6\u63A5\u53E3 API \u6A21\u578B\uFF0C\u8BF7\u6839\u636E\u793A\u4F8B\u8FDB\u884C\u586B\u5199",apiParamsRequired:"API \u53C2\u6570\u4E0D\u80FD\u4E3A\u7A7A",viewExample:"\u67E5\u770B\u793A\u4F8B",example:"\u793A\u4F8B",noted:"\u77E5\u9053\u4E86",paramName:"\u53C2\u6570\u540D\u79F0",paramMeaning:"\u53C2\u6570\u542B\u4E49",apiNotModified:"\u8BF7\u586B\u5199 API \u53C2\u6570",apiError1:"\u8BF7\u586B\u5199 openai_api_base \u53C2\u6570\u503C",apiError2:"\u8BF7\u586B\u5199 key \u53C2\u6570\u503C",apiError3:"\u8BF7\u586B\u5199 model \u53C2\u6570\u503C",apiError4:"\u8BF7\u586B\u5199 max_out_len \u53C2\u6570\u503C",apiError5:"\u8BF7\u586B\u5199 max_seq_len \u53C2\u6570\u503C",apiError6:"\u8BF7\u586B\u5199 query_per_second \u53C2\u6570\u503C",apiError7:"\u8BF7\u586B\u5199 batch_size \u53C2\u6570\u503C",apiInvalidate1:"\u6A21\u578B API Key\u65E0\u6548",apiInvalidate2:"\u6A21\u578B\u4E0D\u5B58\u5728",apiInvalidate3:"\u6A21\u578B API \u670D\u52A1\u5F02\u5E38",modelMaxNum:"\u6700\u591A\u9009\u62E9 1 \u4E2A\u6A21\u578B",modelRequired:"\u8BF7\u9009\u62E9\u6A21\u578B",noModel:"\u6682\u65E0\u6A21\u578B",createModelBefore:"\u8BF7\u901A\u8FC7",createModel:"\u521B\u5EFA API \u6A21\u578B",createModelAfter:"\u8FDB\u884C\u521B\u5EFA",openai_api_base_mean:"API \u5BF9\u5E94\u7684 URL \u5730\u5740",key_mean:`\u7528\u6237\u4E2A\u4EBA\u7684 API Token
|
|
2
|
+
\u7528\u6237\u4E2A\u4EBA\u90E8\u7F72\u7684\u670D\u52A1\u53EF\u4EE5\u8BBE\u7F6E\u4E3A\u4EFB\u610F\u5B57\u7B26\u4E32`,model_mean:"API \u6A21\u578B\u540D\u79F0\uFF08\u6A21\u578B ID\uFF09",max_out_len_mean:"\u6700\u5927 token \u6570\uFF0C \u7528\u4E8E\u63A7\u5236\u751F\u6210\u6587\u672C\u7684\u6700\u5927\u957F\u5EA6",max_seq_len_mean:"\u8F93\u5165\u5E8F\u5217\u7684\u6700\u5927\u957F\u5EA6",max_out_len_int:"max_out_len \u503C\u4EC5\u652F\u6301\u5927\u4E8E 0 \u7684\u6574\u6570",max_seq_len_int:"max_seq_len \u503C\u4EC5\u652F\u6301\u5927\u4E8E 0 \u7684\u6574\u6570",query_per_second_mean:"\u6BCF\u79D2\u5141\u8BB8\u8BF7\u6C42\u6B21\u6570",batch_size_mean:"\u6279\u5904\u7406\u5927\u5C0F",query_per_second_format:"query_per_second \u4EC5\u652F\u6301\u5927\u4E8E 0\uFF0C\u4E0D\u8D85\u8FC7 100 \u7684\u6570\u5B57",batch_size_format:"batch_size \u4EC5\u652F\u6301\u5927\u4E8E 0\uFF0C\u4E0D\u8D85\u8FC7 64 \u7684\u6574\u6570",query_per_second_max:"query_per_second \u503C\u4E0D\u80FD\u8D85\u8FC7 100",batch_size_max:"batch_size \u503C\u4E0D\u80FD\u8D85\u8FC7 64",query_per_second_min:"query_per_second \u503C\u4E0D\u80FD\u4E3A 0",batch_size_min:"batch_size \u503C\u4EC5\u652F\u6301\u6574\u6570\uFF0C\u6700\u5C0F\u4E3A 1",createBenchmark:"\u521B\u5EFA\u8BC4\u6D4B\u96C6",choseBenchmark:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u96C6",communityBenchmark:"\u793E\u533A\u8BC4\u6D4B\u96C6",benchmarkEmpty:"\u8BF7\u5148\u521B\u5EFA\u8BC4\u6D4B\u96C6\u5E76\u4E0A\u4F20\u6587\u4EF6",source:"\u6765\u6E90",operation:"\u64CD\u4F5C",delete:"\u5220\u9664",tableDesc:"\u8BF7\u5728\u4E0A\u65B9\u4E0A\u4F20\u6216\u9009\u62E9\u8BC4\u6D4B\u96C6\uFF0C\u53EF\u4ECE\u4E0D\u540C\u6765\u6E90\u6DF7\u5408\u9009\u62E9",chosenBenchmark:"\u5DF2\u9009\u8BC4\u6D4B\u96C6",noContent:"\u6682\u65E0\u5185\u5BB9",dropdownDesc:"\u652F\u6301\u9009\u62E9\u5305\u542B\u8BC4\u6D4B\u96C6\u6587\u4EF6\u7684\u8BC4\u6D4B\u96C6",maxCount:"\u8FBE\u5230\u4E0A\u9650\uFF0C\u8BC4\u6D4B\u96C6\u6700\u591A 10 \u4E2A",fileRequirement1:"\u652F\u6301 30MB \u4EE5\u5185\u7684 jsonl\u3001csv\uFF1B\u652F\u6301\u9898\u578B\uFF1A\u9009\u62E9\u9898",fileRequirement2:"\u9700\u7B26\u5408 OpenCompass \u6307\u5B9A\u683C\u5F0F",uploadFile:"\u4E0A\u4F20\u6587\u4EF6",datasetNameError:"\u8BF7\u8F93\u5165\u8BC4\u6D4B\u96C6\u540D\u79F0",datasetNameError1:"\u4EC5\u652F\u6301\u6570\u5B57\u6216\u5B57\u6BCD\u5F00\u5934",datasetNameError2:"\u8BF7\u8F93\u5165\u82F1\u6587\u3001\u6570\u5B57\u6216\u5B57\u7B26 + . - _ ( )",datasetNameError3:"\u4E0D\u652F\u6301\u8F93\u5165\u8FDE\u7EED\u7279\u6B8A\u5B57\u7B26",evalDimensionError:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65B9\u5411",datasetNamePlaceholder:"\u8BF7\u8F93\u5165\u82F1\u6587\u3001\u6570\u5B57\u6216\u5B57\u7B26 + . - _ ( )",evalDimensionPlaceholder:"\u6700\u591A\u9009\u62E9 3 \u4E2A\u8BC4\u6D4B\u65B9\u5411",downloadTemplate:"\u4E0B\u8F7D\u6837\u4F8B",sizeError:"\u6587\u4EF6\u5927\u5C0F\u4E0D\u8D85\u8FC7 30MB",showHere:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5728\u8FD9\u91CC",scienceCommit:"\u6D66\u6C5F\u79D1\u5B66\u8BC4\u6D4B\u5171\u521B\u8BA1\u5212",commitRecord:"\u6D66\u6C5F\u79D1\u5B66\u8BC4\u6D4B\u5171\u521B\u8BA1\u5212\u63D0\u4EA4\u8BB0\u5F55",agreement:"OpenCompass\u5F00\u653E\u5E73\u53F0\u670D\u52A1\u534F\u8BAE",evalRank:"\u8BC4\u6D4B\u699C\u5355",closeLeaderboard:"\u5927\u8BED\u8A00\u6A21\u578B\u5B98\u65B9\u81EA\u5EFA\u6708\u5EA6\u699C\u5355",openLeaderboard:"\u5927\u8BED\u8A00\u6A21\u578B\u516C\u5F00\u5B66\u672F\u699C\u5355",arenaLeader:"Compass Arena \u5927\u6A21\u578B\u5BF9\u6218\u699C\u5355",mmLeaderboard:"\u591A\u6A21\u6001\u6A21\u578B\u6708\u5EA6\u699C\u5355",exploreMore:"\u63A2\u7D22\u66F4\u591A",compassHub:"\u8BC4\u6D4B\u96C6\u793E\u533A",compassKit:"\u8BC4\u6D4B\u5DE5\u5177",docsCenter:"\u6587\u6863\u4E2D\u5FC3",rankRules:"\u699C\u5355\u89C4\u5219",useGuide:"\u4F7F\u7528\u6307\u5357",compassCommunity:"\u53F8\u5357\u793E\u533A",followUs:`\u6B22\u8FCE\u5173\u6CE8
|
|
3
|
+
\u53F8\u5357\u8BC4\u6D4B\u4F53\u7CFB \u516C\u4F17\u53F7`,contactUs:"\u8054\u7CFB\u6211\u4EEC",aboutUs:"\u5173\u4E8E\u6211\u4EEC",joinUs:"\u52A0\u5165\u6211\u4EEC",terms:"\u670D\u52A1\u6761\u6B3E",privacy:"\u9690\u79C1\u653F\u7B56",feedback:"\u610F\u89C1\u53CD\u9988",email:"",yearEvaluation:"\u5E74\u5EA6\u8BC4\u6D4B\u96C6\u8BC4\u9009",yearEvaluationTitle:"\u53F8\u5357\u5E74\u5EA6\u6700\u53D7\u6B22\u8FCE\u8BC4\u6D4B\u96C6\u8BC4\u9009\u6D3B\u52A8\u5DF2\u5F00\u59CB\uFF01",yearEvaluationDesc:"\u6B22\u8FCE\u5404\u4F4D\u5B66\u8005\u63D0\u4EA4\u8BC4\u6D4B\u57FA\u51C6\u8BBA\u6587\u53C2\u4E0E\u8BC4\u9009\uFF0C\u4E5F\u8BDA\u9080\u5E7F\u5927\u793E\u533A\u7528\u6237\u8F6C\u53D1\u5E76\u53C2\u4E0E\u6295\u7968\u3002",yearEvaluationKnown:"\u77E5\u9053\u4E86",finance:"AI x \u91D1\u878D\u8BC4\u6D4B",medical:"AI x \u533B\u7597\u8BC4\u6D4B"};export{u as ZH};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function l(d,n){n===void 0&&(n={});var i=n.insertAt;if(!(!d||typeof document=="undefined")){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",i==="top"&&t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e),e.styleSheet?e.styleSheet.cssText=d:e.appendChild(document.createTextNode(d))}}export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import c,{createContext as a,useState as i,useMemo as s}from"react";const t=a({}),f=({children:o})=>{const[e,n]=i({}),r=s(()=>({config:e,setConfig:n}),[e]);return c.createElement(t.Provider,{value:r},o)};export{t as OcConfigContext,f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import a,{createContext as l,useContext as s,useMemo as i}from"react";import t from"../locale/index.js";import{OcConfigContext as x}from"./OcConfigContext.js";const o=l({locales:{}}),C=({children:c})=>{const{config:n}=s(x),{locale:e}=n,r=i(()=>({locales:t[e]}),[e,t]);return a.createElement(o.Provider,{value:r},c)};export{o as OcContext,C as default};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface Item {
|
|
4
|
+
key: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
interface MenuProps {
|
|
8
|
+
items: Item[];
|
|
9
|
+
onClick?: ({ key }: {
|
|
10
|
+
key: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
interface CascadeMenus {
|
|
14
|
+
key: string;
|
|
15
|
+
label: ReactNode;
|
|
16
|
+
children: Item[];
|
|
17
|
+
}
|
|
18
|
+
interface CascadeMenuProps {
|
|
19
|
+
items: CascadeMenus;
|
|
20
|
+
onClick?: ({ key }: {
|
|
21
|
+
key: any;
|
|
22
|
+
}) => void;
|
|
23
|
+
}
|
|
24
|
+
interface DropdownProps {
|
|
25
|
+
content?: ReactNode;
|
|
26
|
+
theme?: 'light' | 'dark';
|
|
27
|
+
menu?: MenuProps;
|
|
28
|
+
className?: string;
|
|
29
|
+
placement?: 'right-bottom' | 'left-bottom' | 'left-top' | 'right-top';
|
|
30
|
+
trigger?: Array<'click' | 'hover'>;
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
isCascadeMenu?: boolean;
|
|
33
|
+
cascadeMenu?: CascadeMenuProps;
|
|
34
|
+
isFirstLevelOpen?: boolean;
|
|
35
|
+
isDefaultSelectFirstOne?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare const Dropdown: React.FC<DropdownProps>;
|
|
38
|
+
|
|
39
|
+
export { CascadeMenus, DropdownProps, Item, Dropdown as default };
|