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

Commitbd96f17

Browse files
committed
remove unused states
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent17e968f commitbd96f17

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

‎typings/index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ export interface MachineStateSchema {
102102
Load:{}
103103
Normal:{}
104104
TestRunning:{}
105-
TestPass:{}
106-
TestFail:{}
107105
StepNext:{}
108106
LevelComplete:{}
109107
LoadNext:{}

‎web-app/src/containers/Tutorial/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const styles = {
9090
interfacePageProps{
9191
context:T.MachineContext
9292
send(action:T.Action):void
93-
state:string// 'Normal' | 'TestRunning' | 'TestFail' | 'TestPass' | 'Level.LevelComplete'
93+
state:string// 'Normal' | 'TestRunning' | 'Level.LevelComplete'
9494
}
9595

9696
/**

‎web-app/src/services/state/machine.ts

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -180,30 +180,19 @@ export const createMachine = (options: any) => {
180180
onEntry:['testStart'],
181181
on:{
182182
TEST_PASS:{
183-
target:'TestPass',
184-
actions:['testPass'],
183+
target:'StepNext',
184+
actions:['testPass','updateStepPosition'],
185185
},
186186
TEST_FAIL:{
187-
target:'TestFail',
187+
target:'Normal',
188188
actions:['testFail'],
189189
},
190190
TEST_ERROR:{
191-
target:'TestFail',
191+
target:'Normal',
192192
actions:['testFail'],
193193
},
194194
},
195195
},
196-
TestPass:{
197-
onExit:['updateStepPosition'],
198-
after:{
199-
0:'StepNext',
200-
},
201-
},
202-
TestFail:{
203-
after:{
204-
0:'Normal',
205-
},
206-
},
207196
StepNext:{
208197
onEntry:['stepNext'],
209198
on:{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp