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

Feature/fix continue#307

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 2 commits intomasterfromfeature/fix-continue
May 3, 2020
Merged
Show file tree
Hide file tree
Changes fromall commits
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
1 change: 1 addition & 0 deletionssrc/channel/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -83,6 +83,7 @@ class Channel implements Channel {

// load continued tutorial position & progress
const { position, progress } = await this.context.setTutorial(this.workspaceState, tutorial)
logger('CONTINUE STATE', position, progress)

if (progress.complete) {
// tutorial is already complete
Expand Down
2 changes: 1 addition & 1 deletionsrc/channel/state/Progress.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -53,7 +53,7 @@ class Progress {
throw new Error(`setStepComplete level not found for stepId ${stepId}`)
}

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

Expand Down
10 changes: 3 additions & 7 deletionssrc/environment.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
require('dotenv').config({
path:'./web-app/.env',
})

import{getWorkspaceRoot}from'./services/workspace'
import*asosfrom'os'

// CodeRoad version
exportconstVERSION:string=process.env.npm_package_version||'unknown'
exportconstVERSION='unknown'

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

// toggle logging in development
exportconstLOG:boolean=(process.env.REACT_APP_LOG||'').toLowerCase()==='true'
exportconstLOG=false

// error logging tool
exportconstSENTRY_DSN:string|null=process.env.SENTRY_DSN||null
exportconstSENTRY_DSN:string|null=null

// uri path to the users project workspace
exportconstWORKSPACE_ROOT:string=getWorkspaceRoot()
Expand Down
2 changes: 1 addition & 1 deletionsrc/services/logger/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
import { LOG } from '../../environment'

export type Log = string | object | null | undefined
export type Log = string |number |object | null | undefined

const logger = (...messages: Log[]): void => {
if (!LOG) {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp