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

Commitb898321

Browse files
authored
Merge pull requestcoderoad#307 from coderoad/feature/fix-continue
Feature/fix continue
2 parents32eb6bd +e076deb commitb898321

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

‎src/channel/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class Channel implements Channel {
8383

8484
// load continued tutorial position & progress
8585
const{ position, progress}=awaitthis.context.setTutorial(this.workspaceState,tutorial)
86+
logger('CONTINUE STATE',position,progress)
8687

8788
if(progress.complete){
8889
// tutorial is already complete

‎src/channel/state/Progress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Progress {
5353
thrownewError(`setStepComplete level not found for stepId${stepId}`)
5454
}
5555

56-
if(currentLevel.steps[currentLevel.steps.length-1]){
56+
if(currentLevel.steps[currentLevel.steps.length-1].id===stepId){
5757
// final step for level is complete
5858
next.levels[currentLevel.id]=true
5959

‎src/environment.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
require('dotenv').config({
2-
path:'./web-app/.env',
3-
})
4-
51
import{getWorkspaceRoot}from'./services/workspace'
62
import*asosfrom'os'
73

84
// CodeRoad version
9-
exportconstVERSION:string=process.env.npm_package_version||'unknown'
5+
exportconstVERSION='unknown'
106

117
// Node env
128
exporttypeEnv='test'|'local'|'development'|'production'
139
//@ts-ignore
1410
exportconstNODE_ENV:Env=process.env.NODE_ENV||'production'
1511

1612
// toggle logging in development
17-
exportconstLOG:boolean=(process.env.REACT_APP_LOG||'').toLowerCase()==='true'
13+
exportconstLOG=false
1814

1915
// error logging tool
20-
exportconstSENTRY_DSN:string|null=process.env.SENTRY_DSN||null
16+
exportconstSENTRY_DSN:string|null=null
2117

2218
// uri path to the users project workspace
2319
exportconstWORKSPACE_ROOT:string=getWorkspaceRoot()

‎src/services/logger/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import{LOG}from'../../environment'
22

3-
exporttypeLog=string|object|null|undefined
3+
exporttypeLog=string|number|object|null|undefined
44

55
constlogger=(...messages:Log[]):void=>{
66
if(!LOG){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp