Skip to content

Commit 6b6a98c

Browse files
committed
remove Tutorials, route to tutorialConfig
1 parent 5f33a37 commit 6b6a98c

File tree

29 files changed

+62
-432
lines changed

29 files changed

+62
-432
lines changed

lib/actions.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,5 @@ var route_1 = require('core-coderoad/lib/route');
2323
exports.routeSet = route_1.routeSet;
2424
var tutorial_1 = require('core-coderoad/lib/tutorial');
2525
exports.tutorialSet = tutorial_1.tutorialSet;
26-
var tutorials_1 = require('core-coderoad/lib/tutorials');
27-
exports.tutorialsFind = tutorials_1.tutorialsFind;
28-
exports.tutorialUpdate = tutorials_1.tutorialUpdate;
2926
var window_1 = require('core-coderoad/lib/window');
3027
exports.windowToggle = window_1.windowToggle;

lib/components/Routes/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ var Routes = (function (_super) {
2525
return React.createElement(index_1.Page, __assign({}, this.props));
2626
case 'start':
2727
return React.createElement(index_1.Start, __assign({}, this.props));
28-
case 'tutorials':
29-
return React.createElement(index_1.Tutorials, __assign({}, this.props));
3028
case 'tutorialConfig':
3129
return React.createElement(index_1.TutorialConfig, __assign({}, this.props));
3230
case 'tutorialInfo':

lib/components/Start/Welcome/index.js

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,29 @@ var path_1 = require('path');
44
var index_1 = require('../../index');
55
var imagePath = path_1.join(__dirname, '../../../../', 'img', 'coderoad.jpg');
66
var styles = {
7-
backgroundImage: "url(\"" + imagePath + "\")",
8-
backgroundRepeat: 'no-repeat',
9-
backgroundColor: 'inherit',
10-
height: '350px',
11-
textAlign: 'center',
12-
marginTop: '0px',
13-
textShadow: '1px 1px 1px #000',
7+
header: {
8+
backgroundImage: "url(\"" + imagePath + "\")",
9+
backgroundRepeat: 'no-repeat',
10+
backgroundColor: 'inherit',
11+
height: '350px',
12+
textAlign: 'center',
13+
marginTop: '0px',
14+
textShadow: '1px 1px 1px #000',
15+
},
16+
title: {
17+
paddingTop: '120px',
18+
color: 'white',
19+
fontSize: '2em',
20+
},
21+
tagline: {
22+
fontSize: '1.5em',
23+
},
24+
button: {
25+
fontSize: '1.4em',
26+
boxShadow: '2px 2px 1px #888888',
27+
textShadow: '1px 1px 0px #000',
28+
},
1429
};
15-
var titleStyles = {
16-
paddingTop: '120px',
17-
color: 'white',
18-
fontSize: '2em'
19-
};
20-
var taglineStyles = {
21-
fontSize: '1.5em',
22-
};
23-
var buttonStyles = {
24-
fontSize: '1.4em',
25-
boxShadow: '2px 2px 1px #888888',
26-
textShadow: '1px 1px 0px #000',
27-
};
28-
var Welcome = function () { return (React.createElement("div", {style: styles, className: 'cr-bg'}, React.createElement("div", {style: titleStyles}, "CodeRoad Builder"), React.createElement("div", {style: taglineStyles}, "Create Tutorials"), React.createElement("br", null), React.createElement("br", null), React.createElement(index_1.RouteButton, {label: 'Start', route: 'tutorials', style: buttonStyles}))); };
30+
var Welcome = function () { return (React.createElement("div", {style: styles.header, className: 'cr-bg'}, React.createElement("div", {style: styles.title}, "CodeRoad Builder"), React.createElement("div", {style: styles.tagline}, "Create Tutorials"), React.createElement("br", null), React.createElement("br", null), React.createElement(index_1.RouteButton, {label: 'Start', route: 'tutorialConfig', style: styles.button}))); };
2931
Object.defineProperty(exports, "__esModule", { value: true });
3032
exports.default = Welcome;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/components/Tutorials/LoadTutorials/index.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/components/Tutorials/SelectTutorial/index.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

lib/components/Tutorials/UpdateTutorial/index.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)