Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaca8c3b

Browse files
committed
multiple levels
1 parentb8cd7c4 commitaca8c3b

File tree

1 file changed

+47
-3
lines changed

1 file changed

+47
-3
lines changed

‎src/tutorials/basic.ts

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,23 @@ const basic: CR.Tutorial = {
1717
summary:{
1818
title:'Basic Test',
1919
description:'A basic coding skills example',
20-
levelList:['level1Id'],
20+
levelList:['level1Id','level2Id'],
2121
},
2222
levels:{
2323
level1Id:{
2424
stageList:['stage1Id','stage2Id'],
2525
content:{
26-
title:'Sum Level',
26+
title:'Operators',
2727
text:'A description of this stage',
2828
},
2929
},
30+
level2Id:{
31+
stageList:['a'],
32+
content:{
33+
title:'Logic',
34+
text:'Some basic logic in level 2'
35+
}
36+
}
3037
},
3138
stages:{
3239
stage1Id:{
@@ -42,7 +49,14 @@ const basic: CR.Tutorial = {
4249
title:'Second Stage',
4350
text:'Going into round 2'
4451
}
45-
}
52+
},
53+
a:{
54+
stepList:['a1','a2'],
55+
content:{
56+
title:'Part 1',
57+
text:'Going into round 1'
58+
}
59+
},
4660
},
4761
steps:{
4862
step1Id:{
@@ -124,6 +138,36 @@ const basic: CR.Tutorial = {
124138
}
125139
}
126140
},
141+
a1:{
142+
content:{
143+
title:'Hello',
144+
text:'Return the word "hello"'
145+
},
146+
actions:{
147+
setup:{
148+
commits:['c539057'],
149+
files:['src/hello.js'],
150+
},
151+
solution:{
152+
commits:['ab7d57b']
153+
}
154+
}
155+
},
156+
a2:{
157+
content:{
158+
title:'Bye',
159+
text:'Return the word "bye"'
160+
},
161+
actions:{
162+
setup:{
163+
commits:['abe8404'],
164+
files:['src/hello.js'],
165+
},
166+
solution:{
167+
commits:['6f40d18']
168+
}
169+
}
170+
},
127171
},
128172
},
129173
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp