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

Fix/workflow#8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 7 commits intomasterfromfix/workflow
Jun 14, 2019
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix continue progress
  • Loading branch information
@ShMcK
ShMcK committedJun 14, 2019
commitab0a4bd6242b662566161f42569dca77aa7668dd
22 changes: 15 additions & 7 deletionssrc/state/actions/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -78,23 +78,31 @@ export default {
console.log('ACTION: tutorialLoad.progress')
return currentProgress
},
position() {
position(context: any): CR.Position {
console.log('ACTION: tutorialLoad.position')
if (!currentTutorial) {
throw new Error('No Tutorial loaded')
}
const { data } = currentTutorial

const levelId = data.summary.levelList[0]
const stageId = data.levels[levelId].stageList[0]
const stepId = data.stages[stageId].stepList[0]
const levelId = data.summary.levelList.find((id: string) => !currentProgress.levels[id])
if (!levelId) {
throw new Error('No level found on position load')
}
const stageId = data.levels[levelId].stageList.find((id: string) => !currentProgress.stages[id])
if (!stageId) {
throw new Error('No stage found on position load')
}
const stepId = data.stages[stageId].stepList.find((id: string) => !currentProgress.steps[id])
if (!stepId) {
throw new Error('No step found on position load')
}

const position = {
levelId,
stageId,
stepId,
stepId
}

console.log('position', position)
return position
}
}),
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp