Skip to content

Commit 9813b33

Browse files
committed
mock data
1 parent decf6dc commit 9813b33

File tree

4 files changed

+158
-1
lines changed

4 files changed

+158
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ yarn-error.log*
3535
*.tsbuildinfo
3636
next-env.d.ts
3737

38-
/src/data/

src/data/contestsData.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
const contests = [
2+
{
3+
id: 10001,
4+
name: 'Winter Programming Contest 2025',
5+
description: 'problems (20): description',
6+
owner: 'owner1',
7+
modificationTime: '2023-02-07 18:48:20',
8+
creationTime: '2022-11-12 21:08:48',
9+
status: 'active',
10+
participants: 101,
11+
problems: 20,
12+
isFavorite: false,
13+
},
14+
{
15+
id: 20002,
16+
name: 'Contest of Champions',
17+
description: 'problems (17): dp, graph',
18+
owner: 'user2',
19+
modificationTime: '2024-02-05 14:30:15',
20+
creationTime: '2023-12-01 09:15:30',
21+
status: 'upcoming',
22+
participants: 8,
23+
problems: 17,
24+
isFavorite: true,
25+
},
26+
{
27+
id: 40000,
28+
name: 'cat cat Contest',
29+
description: 'problems (8): why people love cats',
30+
owner: 'm3nt1r',
31+
modificationTime: '2025-01-28 16:22:45',
32+
creationTime: '2023-10-15 11:45:20',
33+
status: 'completed',
34+
participants: 22,
35+
problems: 8,
36+
isFavorite: false,
37+
},
38+
];
39+
40+
export default contests;

src/data/infotooltipData.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const infoTooltip = {
2+
problem: 'problem-c',
3+
contest: '1st winter contest',
4+
groups: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'],
5+
actions: ['Review problem', 'Verify'],
6+
};
7+
8+
export default infoTooltip;

src/data/problemsData.ts

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
const problems = [
2+
{
3+
id: 100001,
4+
name: 'problem-a',
5+
subtitle: null,
6+
owner: 'user1',
7+
info: {
8+
language: 'korean',
9+
tests: 127,
10+
timeLimit: '5 s',
11+
memoryLimit: '1024 MB',
12+
files: 'solution.cpp (39/5), std::nomp.cpp, val.cpp',
13+
},
14+
revision: '0',
15+
modified: '2021-03-18 08:41:26',
16+
status: 'start',
17+
isFavorite: false,
18+
},
19+
{
20+
id: 100002,
21+
name: 'problem-b',
22+
subtitle: 'b 문제',
23+
owner: 'user2',
24+
info: {
25+
language: 'korean',
26+
tests: 127,
27+
timeLimit: '5 s',
28+
memoryLimit: '1024 MB',
29+
files: 'solution.cpp (39/5), std::nomp.cpp, val.cpp',
30+
},
31+
revision: '74 / 74',
32+
modified: '2023-02-10 10:13:46',
33+
status: 'continue',
34+
progress: 74,
35+
isFavorite: true,
36+
},
37+
{
38+
id: 100003,
39+
name: 'problem-c',
40+
subtitle: 'c 문제',
41+
owner: 'user2',
42+
info: {
43+
language: 'korean',
44+
tests: 180,
45+
timeLimit: '1 s',
46+
memoryLimit: '256 MB',
47+
files: 'solution.cpp (25/8), std::wcmp.cpp, validator.cpp, interactor.cpp',
48+
},
49+
revision: '37 / 37*',
50+
modified: '2022-02-07 18:18:20',
51+
status: 'continue',
52+
progress: 37,
53+
isFavorite: false,
54+
},
55+
{
56+
id: 100004,
57+
name: 'problem-d',
58+
subtitle: 'ddd자로 시작하는 말',
59+
owner: 'user3',
60+
info: {
61+
language: 'korean',
62+
tests: 142,
63+
timeLimit: '15 s',
64+
memoryLimit: '1024 MB',
65+
files: 'solution.cpp (52/11), std::wcmp.cpp, val.cpp',
66+
},
67+
revision: '58 / 56*',
68+
modified: '2022-02-06 23:21:28',
69+
status: 'continue',
70+
progress: 58,
71+
isFavorite: false,
72+
},
73+
{
74+
id: 100005,
75+
name: 'problem-e',
76+
subtitle: 'elephant를 냉장고에 넣는 방법은?',
77+
owner: 'user4',
78+
info: {
79+
language: 'korean',
80+
tests: 114,
81+
timeLimit: '1 s',
82+
memoryLimit: '1024 MB',
83+
files: 'solution.cpp (39/3), std::wcmp.cpp, validator.cpp',
84+
},
85+
revision: '70 / 69',
86+
modified: '2025-02-06 23:19:17',
87+
status: 'continue',
88+
progress: 70,
89+
isFavorite: true,
90+
},
91+
{
92+
id: 100006,
93+
name: 'problem-f',
94+
subtitle: '끝없이 F를 피하기 위해 수영해야 하는 XX',
95+
owner: 'user5',
96+
info: {
97+
language: 'korean',
98+
tests: 48,
99+
timeLimit: '1 s',
100+
memoryLimit: '1024 MB',
101+
files: 'answer.cpp (18/4), lazy_checker.cpp, val.cpp',
102+
},
103+
revision: '33 / 31',
104+
modified: '2025-02-05 11:21:43',
105+
status: 'start',
106+
isFavorite: true,
107+
},
108+
];
109+
110+
export default problems;

0 commit comments

Comments
 (0)