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

Commit0fd10d3

Browse files
committed
remove unused
1 parent3029687 commit0fd10d3

File tree

2 files changed

+74
-84
lines changed

2 files changed

+74
-84
lines changed

‎web-app/src/containers/Overview/OverviewPage.tsx

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -5,87 +5,87 @@ import * as G from 'typings/graphql'
55
importMarkdownfrom'../../components/Markdown'
66

77
conststyles={
8-
page:{
9-
position:'relative'as'relative',
10-
display:'flex'as'flex',
11-
flexDirection:'column'as'column',
12-
width:'100%',
13-
},
14-
summary:{
15-
padding:'0rem 1rem 1rem 1rem',
16-
},
17-
title:{
18-
fontWeight:'bold'as'bold',
19-
},
20-
description:{
21-
fontSize:'1rem',
22-
},
23-
header:{
24-
height:'36px',
25-
backgroundColor:'#EBEBEB',
26-
fontSize:'16px',
27-
lineHeight:'16px',
28-
padding:'10px 1rem',
29-
},
30-
levelList:{
31-
padding:'0rem 1rem',
32-
},
33-
options:{
34-
position:'absolute'as'absolute',
35-
bottom:0,
36-
display:'flex'as'flex',
37-
flexDirection:'row'as'row',
38-
alignItems:'center'as'center',
39-
justifyContent:'flex-end'as'flex-end',
40-
height:'50px',
41-
padding:'1rem',
42-
paddingRight:'2rem',
43-
backgroundColor:'black',
44-
width:'100%',
45-
},
8+
page:{
9+
position:'relative'as'relative',
10+
display:'flex'as'flex',
11+
flexDirection:'column'as'column',
12+
width:'100%',
13+
},
14+
summary:{
15+
padding:'0rem 1rem 1rem 1rem',
16+
},
17+
title:{
18+
fontWeight:'bold'as'bold',
19+
},
20+
description:{
21+
fontSize:'1rem',
22+
},
23+
header:{
24+
height:'36px',
25+
backgroundColor:'#EBEBEB',
26+
fontSize:'16px',
27+
lineHeight:'16px',
28+
padding:'10px 1rem',
29+
},
30+
levelList:{
31+
padding:'0rem 1rem',
32+
},
33+
options:{
34+
position:'absolute'as'absolute',
35+
bottom:0,
36+
display:'flex'as'flex',
37+
flexDirection:'row'as'row',
38+
alignItems:'center'as'center',
39+
justifyContent:'flex-end'as'flex-end',
40+
height:'50px',
41+
padding:'1rem',
42+
paddingRight:'2rem',
43+
backgroundColor:'black',
44+
width:'100%',
45+
},
4646
}
4747

4848
interfaceProps{
49-
title:string
50-
description:string
51-
levels:G.Level[]
52-
onNext():void
49+
title:string
50+
description:string
51+
levels:G.Level[]
52+
onNext():void
5353
}
5454

5555
constSummary=({ title, description, levels, onNext}:Props)=>(
56-
<divstyle={styles.page}>
57-
<div>
58-
<divstyle={styles.header}>
59-
<span>CodeRoad</span>
60-
</div>
61-
<divstyle={styles.summary}>
62-
<h2style={styles.title}>{title}</h2>
63-
<Markdown>{description}</Markdown>
64-
</div>
65-
<div>
66-
<divstyle={styles.header}>
67-
<span>Levels</span>
68-
</div>
69-
<divstyle={styles.levelList}>
70-
{levels.map((level:G.Level,index:number)=>(
71-
<divkey={index}>
72-
<h4>
73-
{index+1}.{level.title}
74-
</h4>
75-
<div>{level.description}</div>
76-
</div>
77-
))}
78-
</div>
79-
</div>
80-
</div>
56+
<divstyle={styles.page}>
57+
<div>
58+
<divstyle={styles.header}>
59+
<span>CodeRoad</span>
60+
</div>
61+
<divstyle={styles.summary}>
62+
<h2style={styles.title}>{title}</h2>
63+
<Markdown>{description}</Markdown>
64+
</div>
65+
<div>
66+
<divstyle={styles.header}>
67+
<span>Levels</span>
68+
</div>
69+
<divstyle={styles.levelList}>
70+
{levels.map((level:G.Level,index:number)=>(
71+
<divkey={index}>
72+
<h4>
73+
{index+1}.{level.title}
74+
</h4>
75+
<div>{level.description}</div>
76+
</div>
77+
))}
78+
</div>
79+
</div>
80+
</div>
8181

82-
<divstyle={styles.options}>
83-
{/* TODO: Add back button */}
84-
<Buttontype="primary"onClick={()=>onNext()}>
85-
Start
86-
</Button>
87-
</div>
88-
</div>
82+
<divstyle={styles.options}>
83+
{/* TODO Add back button */}
84+
<Buttontype="primary"onClick={()=>onNext()}>
85+
Start
86+
</Button>
87+
</div>
88+
</div>
8989
)
9090

9191
exportdefaultSummary

‎web-app/src/services/state/actions/editor.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ export default {
2727
type:'EDITOR_TUTORIAL_LOAD',
2828
})
2929
},
30-
// TODO: syncProgress unused
31-
syncProgress(context:CR.MachineContext):void{
32-
// sync progress in editor local storage for persistence
33-
channel.editorSend({
34-
type:'EDITOR_SYNC_PROGRESS',
35-
payload:{
36-
progress:context.progress,
37-
},
38-
})
39-
},
4030
initializeTutorial(context:CR.MachineContext,event:CR.MachineEvent){
4131
// setup test runner and git
4232
if(!context.tutorial){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp