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

Commit628f141

Browse files
committed
Merge pull requestcoderoad#191 from ShMcK/remove/load-solution
remove load solution button
2 parents25b4652 +3d3ee3a commit628f141

File tree

2 files changed

+33
-39
lines changed

2 files changed

+33
-39
lines changed

‎README.md

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@
44

55
CodeRoad allows you to play interactive coding tutorials in your editor.
66

7-
##Requirements
7+
##Getting Started
88

9-
Requires:
9+
###Launch
10+
11+
To start the extension, inside VSCode:
12+
13+
- Open the VSCode command palette.
14+
- select “View” > “Command Palette” from the top panel
15+
- alternatively, press`cmd/ctrl + shift + P`
16+
- Search for and run`CodeRoad:Start`
17+
- A web view should appear on the right side of your editor asking you to click "Start"
18+
19+
###Requirements
1020

1121
- VSCode 1.40+
1222
- Git
@@ -15,4 +25,24 @@ Requires:
1525
##Run
1626

1727
1. Open the command prompt:`cmd/ctrl + shift + p`
18-
2. Search for and run`coderoad:start`
28+
2.#Search for and run`coderoad:start`
29+
30+
###Installation
31+
32+
>Currently CodeRoad is not yet available in the VSCode marketplace (coming soon!).
33+
34+
To install the extension manually:
35+
36+
- run`vsce package` to build the package.
37+
Learn more about[VSCE](https://code.visualstudio.com/api/working-with-extensions/publishing-extension)
38+
- run`code —install-extension coderoad-0.1.0.vsix`.
39+
40+
##Creating a Tutorial
41+
42+
Build and share your own interactive tutorials.
43+
44+
Learn more about[how tutorials area created](./docs/tutorials.md).
45+
46+
##License
47+
48+
[AGPL v3](./LICENSE.md)

‎web-app/src/components/NewUserExperience/NuxTutorial.tsx

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
importReactfrom'react'
22
import{Collapse,Icon}from'@alifd/next'
3-
importButtonfrom'../Button'
43
importReactCSSTransitionGroupfrom'react-addons-css-transition-group'
54
import'./transition.css'
65

@@ -27,27 +26,6 @@ const styles = {
2726
},
2827
}
2928

30-
typeLoadSolutionButtonProps={
31-
onLoadSolution:()=>void
32-
close:()=>void
33-
}
34-
35-
constLoadSolutionButton=(props:LoadSolutionButtonProps)=>{
36-
const[loadedSolution,setLoadedSolution]=React.useState(false)
37-
constonClickHandler=()=>{
38-
props.close()
39-
if(!loadedSolution){
40-
setLoadedSolution(true)
41-
props.onLoadSolution()
42-
}
43-
}
44-
return(
45-
<Buttontype="secondary"onClick={onClickHandler}disabled={loadedSolution}>
46-
Load Solution
47-
</Button>
48-
)
49-
}
50-
5129
typeNuxProps={
5230
onClose:()=>void
5331
onLoadSolution:()=>void
@@ -113,20 +91,6 @@ const NewUserExperienceTutorialCollapsible = (props: NuxProps) => {
11391
Read the tests. The tests can be found in the test directory and can be read in detail to help you
11492
understand what's failing.
11593
</li>
116-
<br/>
117-
<li>
118-
Still stuck? Load the solution. Each step in CodeRoad is stored as a Git commit - including the solution.
119-
Load the solution commit by pressing the button below.
120-
<br/>
121-
<br/>
122-
<LoadSolutionButton
123-
onLoadSolution={props.onLoadSolution}
124-
close={()=>{
125-
setExpandedKeys([])
126-
props.onClose()
127-
}}
128-
/>
129-
</li>
13094
</ol>
13195
</Panel>
13296
<Paneltitle="Contact">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp