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

Commit041a760

Browse files
committed
cleanup tutorial example
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent7418c15 commit041a760

File tree

1 file changed

+93
-6
lines changed

1 file changed

+93
-6
lines changed

‎web-app/stories/Tutorial.stories.tsx

Lines changed: 93 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ type ModifiedLevel = TT.Level & {
1616
constcontext:Partial<T.MachineContext>={
1717
env:{machineId:'',sessionId:'',token:''},
1818
error:null,
19-
position:{levelId:'1',stepId:'1.1'},
20-
progress:{levels:{},steps:{},complete:false},
19+
position:{levelId:'2',stepId:'2.2'},
20+
progress:{levels:{'1':true},steps:{'1.1':true,'1.2':true,'1.3':true,'2.1':true},complete:false},
2121
processes:[],
2222
testStatus:null,
2323
tutorial:{
@@ -41,11 +41,11 @@ const context: Partial<T.MachineContext> = {
4141
levels:[
4242
{
4343
id:'1',
44-
title:'A Title',
45-
summary:'A summary of the level',
44+
title:'First Level',
45+
summary:'A summary of thefirstlevel',
4646
content:'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!',
4747
setup:null,
48-
status:'ACTIVE'as'ACTIVE',
48+
status:'COMPLETE'as'COMPLETE',
4949
steps:[
5050
{
5151
id:'1.1',
@@ -57,6 +57,7 @@ const context: Partial<T.MachineContext> = {
5757
commits:['hijklmn'],
5858
},
5959
status:'COMPLETE',
60+
hints:['First Hint','Second Hint'],
6061
},
6162
{
6263
id:'1.2',
@@ -67,7 +68,7 @@ const context: Partial<T.MachineContext> = {
6768
solution:{
6869
commits:['hijklmn'],
6970
},
70-
status:'ACTIVE',
71+
status:'COMPLETE',
7172
},
7273
{
7374
id:'1.3',
@@ -78,6 +79,92 @@ const context: Partial<T.MachineContext> = {
7879
solution:{
7980
commits:['hijklmn'],
8081
},
82+
status:'COMPLETE',
83+
},
84+
],
85+
},
86+
{
87+
id:'2',
88+
title:'The Second Level',
89+
summary:'A summary of the 2nd level',
90+
content:'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!',
91+
setup:null,
92+
status:'ACTIVE'as'ACTIVE',
93+
steps:[
94+
{
95+
id:'2.1',
96+
content:'Should support markdown test\n ```shell\nnpn install some-package\n```\nwhew it works!',
97+
setup:{
98+
commits:['abcdefg'],
99+
},
100+
solution:{
101+
commits:['hijklmn'],
102+
},
103+
status:'COMPLETE',
104+
},
105+
{
106+
id:'2.2',
107+
content:'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!',
108+
setup:{
109+
commits:['abcdefg'],
110+
},
111+
solution:{
112+
commits:['hijklmn'],
113+
},
114+
status:'ACTIVE',
115+
},
116+
{
117+
id:'2.3',
118+
content:'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!',
119+
setup:{
120+
commits:['abcdefg'],
121+
},
122+
solution:{
123+
commits:['hijklmn'],
124+
},
125+
status:'INCOMPLETE',
126+
},
127+
],
128+
},
129+
{
130+
id:'3',
131+
title:'A Third Level',
132+
summary:'A summary of the 3rd level',
133+
content:'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!',
134+
setup:null,
135+
status:'INCOMPLETE',
136+
steps:[
137+
{
138+
id:'3.1',
139+
content:'Should support markdown test\n ```shell\nnpn install some-package\n```\nwhew it works!',
140+
setup:{
141+
commits:['abcdefg'],
142+
},
143+
solution:{
144+
commits:['hijklmn'],
145+
},
146+
status:'INCOMPLETE',
147+
},
148+
{
149+
id:'3.2',
150+
content:'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!',
151+
setup:{
152+
commits:['abcdefg'],
153+
},
154+
solution:{
155+
commits:['hijklmn'],
156+
},
157+
status:'INCOMPLETE',
158+
},
159+
{
160+
id:'3.3',
161+
content:'Should support markdown test\n ```js\nvar a = 1\n```\nwhew it works!',
162+
setup:{
163+
commits:['abcdefg'],
164+
},
165+
solution:{
166+
commits:['hijklmn'],
167+
},
81168
status:'INCOMPLETE',
82169
},
83170
],

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp