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

Commit4ed011e

Browse files
committed
setup basic tutorial with multi stages
1 parent7d89a43 commit4ed011e

File tree

2 files changed

+78
-4
lines changed

2 files changed

+78
-4
lines changed

‎src/tutorials/basic.ts

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const basic: CR.Tutorial = {
2121
},
2222
levels:{
2323
level1Id:{
24-
stageList:['stage1Id'],
24+
stageList:['stage1Id','stage2Id'],
2525
content:{
2626
title:'Sum Level',
2727
text:'A description of this stage',
@@ -36,12 +36,19 @@ const basic: CR.Tutorial = {
3636
text:'A description of this stage',
3737
},
3838
},
39+
stage2Id:{
40+
stepList:['1','2'],
41+
content:{
42+
title:'Second Stage',
43+
text:'Going into round 2'
44+
}
45+
}
3946
},
4047
steps:{
4148
step1Id:{
4249
content:{
4350
title:'Sum',
44-
text:'Write a function that adds two numbers together',
51+
text:'Write a function`add`that adds two numbers together',
4552
},
4653
actions:{
4754
setup:{
@@ -58,7 +65,7 @@ const basic: CR.Tutorial = {
5865
step2Id:{
5966
content:{
6067
title:'Multiply',
61-
text:'Write a function that multiplies two numbers together',
68+
text:'Write a function`multiply`that multiplies two numbers together',
6269
},
6370
actions:{
6471
setup:{
@@ -74,7 +81,7 @@ const basic: CR.Tutorial = {
7481
step3Id:{
7582
content:{
7683
title:'Divide',
77-
text:'Write a function that divides',
84+
text:'Write a function`divide`that divides',
7885
},
7986
actions:{
8087
setup:{
@@ -87,6 +94,36 @@ const basic: CR.Tutorial = {
8794
},
8895
hints:[],
8996
},
97+
1:{
98+
content:{
99+
title:'Modulo',
100+
text:'Modulo `%` it up'
101+
},
102+
actions:{
103+
setup:{
104+
commits:['16d9699'],
105+
files:[],
106+
},
107+
solution:{
108+
commits:['bbf8aa5']
109+
}
110+
}
111+
},
112+
2:{
113+
content:{
114+
title:'Power',
115+
text:'Power up with `**` powers'
116+
},
117+
actions:{
118+
setup:{
119+
commits:['683c8db'],
120+
files:[],
121+
},
122+
solution:{
123+
commits:['deaf3a8']
124+
}
125+
}
126+
},
90127
},
91128
},
92129
}

‎web-app/src/tutorials/basic.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ const basic: CR.Tutorial = {
3636
text:'A description of this stage',
3737
},
3838
},
39+
stage2Id:{
40+
stepList:['1','2'],
41+
content:{
42+
title:'Second Stage',
43+
text:'Going into round 2'
44+
}
45+
}
3946
},
4047
steps:{
4148
step1Id:{
@@ -87,6 +94,36 @@ const basic: CR.Tutorial = {
8794
},
8895
hints:[],
8996
},
97+
1:{
98+
content:{
99+
title:'Modulo',
100+
text:'Modulo `%` it up'
101+
},
102+
actions:{
103+
setup:{
104+
commits:['16d9699'],
105+
files:[],
106+
},
107+
solution:{
108+
commits:['bbf8aa5']
109+
}
110+
}
111+
},
112+
2:{
113+
content:{
114+
title:'Power',
115+
text:'Power up with `**` powers'
116+
},
117+
actions:{
118+
setup:{
119+
commits:['683c8db'],
120+
files:[],
121+
},
122+
solution:{
123+
commits:['deaf3a8']
124+
}
125+
}
126+
},
90127
},
91128
},
92129
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp