-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.ts
102 lines (101 loc) · 1.93 KB
/
demo.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import * as srk from '.';
const ranklist: srk.Ranklist = {
type: 'general',
version: '0.3.4',
remarks: 'This is a demo ranklist.',
contributors: ['bLue <mail@example.com> (https://example.com/)'],
contest: {
title: 'ACM ICPC World Finals 2018',
startAt: '2018-04-19T17:00:00+08:00',
duration: [5, 'h'],
frozenDuration: [1, 'h'],
refLinks: [
{
title: 'Original Ranklist',
link: 'https://icpc.baylor.edu/scoreboard/',
},
],
},
problems: [
{
title: 'Catch the Plane',
alias: 'A',
link: 'https://open.kattis.com/problems/catch',
statistics: {
accepted: 111,
submitted: 268,
},
style: {
backgroundColor: '#58a2d1',
},
},
{
title: 'Comma Sprinkler',
alias: 'B',
link: 'https://open.kattis.com/problems/comma',
statistics: {
accepted: 152,
submitted: 265,
},
style: {
backgroundColor: '#fc6d3e',
},
},
],
series: [
{
title: 'Rank',
segments: [
{
title: 'Gold Medalist',
style: 'gold',
},
{
title: 'Silver Medalist',
style: 'silver',
},
{
title: 'Bronze Medalist',
style: 'bronze',
},
],
rule: {
preset: 'ICPC',
options: {
count: {
value: [4, 4, 4],
},
},
},
},
],
rows: [
{
user: {
id: 'Moscow State University',
name: 'Moscow State University',
avatar: '',
},
score: {
value: 9,
time: [1427, 'min'],
},
statuses: [
{
result: 'AC',
time: [79, 'min'],
tries: 1,
},
{
result: 'AC',
time: [87, 'min'],
tries: 1,
},
],
},
],
sorter: {
algorithm: 'ICPC',
config: {},
},
};