@@ -46,6 +46,32 @@ var TutorialConfig = (function (_super) {
4646 function TutorialConfig ( ) {
4747 _super . apply ( this , arguments ) ;
4848 }
49+ TutorialConfig . prototype . render = function ( ) {
50+ var _a = this . props , submitting = _a . submitting , handleSubmit = _a . handleSubmit , invalid = _a . invalid , packageJson = _a . packageJson ;
51+ return ( React . createElement ( "section" , { className : 'cr-page' } ,
52+ React . createElement ( Card_1 . Card , { style : styles . card } ,
53+ React . createElement ( Card_1 . CardTitle , { style : styles . title , title : 'Tutorial Configuration' } ) ,
54+ React . createElement ( Card_1 . CardText , null ,
55+ React . createElement ( "form" , { style : styles . form , onSubmit : handleSubmit ( this . onSubmit . bind ( this ) ) } ,
56+ React . createElement ( redux_form_1 . Field , { id : 'name' , name : 'name' , component : textField_1 . default . bind ( null , {
57+ floatingLabelText : 'Tutorial Name' ,
58+ hintText : 'coderoad-tutorial-name' ,
59+ } ) , tabIndex : '1' } ) ,
60+ React . createElement ( redux_form_1 . Field , { name : 'runnerItem' , component : selectField_1 . default . bind ( null , {
61+ children : runnerItems_1 . default ( ) ,
62+ floatingLabelText : 'runner' ,
63+ id : 'runner' ,
64+ } ) , tabIndex : '2' } ) ,
65+ React . createElement ( redux_form_1 . Field , { id : 'repo' , name : 'repo' , component : textField_1 . default . bind ( null , {
66+ floatingLabelText : 'Path to Repo (optional)' ,
67+ hintText : 'http://github.com/path/to/repo' ,
68+ type : 'url' ,
69+ } ) , tabIndex : '3' } ) ,
70+ React . createElement ( RaisedButton_1 . default , { type : 'submit' , style : styles . button , label : 'Save' , primary : true , disabled : submitting } ) ,
71+ React . createElement ( RaisedButton_1 . default , { style : styles . button , label : 'Continue' , secondary : true , disabled : invalid , onTouchTap : this . routeToPage . bind ( this ) } ) )
72+ ) )
73+ ) ) ;
74+ } ;
4975 TutorialConfig . prototype . componentWillMount = function ( ) {
5076 var _this = this ;
5177 this . props . pjLoad ( ) ;
@@ -94,32 +120,6 @@ var TutorialConfig = (function (_super) {
94120 this . props . tutorialInit ( ) ;
95121 this . props . routeSet ( 'page' ) ;
96122 } ;
97- TutorialConfig . prototype . render = function ( ) {
98- var _a = this . props , submitting = _a . submitting , handleSubmit = _a . handleSubmit , invalid = _a . invalid , packageJson = _a . packageJson ;
99- return ( React . createElement ( "section" , { className : 'cr-page' } ,
100- React . createElement ( Card_1 . Card , { style : styles . card } ,
101- React . createElement ( Card_1 . CardTitle , { style : styles . title , title : 'Tutorial Configuration' } ) ,
102- React . createElement ( Card_1 . CardText , null ,
103- React . createElement ( "form" , { style : styles . form , onSubmit : handleSubmit ( this . onSubmit . bind ( this ) ) } ,
104- React . createElement ( redux_form_1 . Field , { id : 'name' , name : 'name' , component : textField_1 . default . bind ( null , {
105- floatingLabelText : 'Tutorial Name' ,
106- hintText : 'coderoad-tutorial-name' ,
107- } ) , tabIndex : '1' } ) ,
108- React . createElement ( redux_form_1 . Field , { name : 'runnerItem' , component : selectField_1 . default . bind ( null , {
109- children : runnerItems_1 . default ( ) ,
110- floatingLabelText : 'runner' ,
111- id : 'runner' ,
112- } ) , tabIndex : '2' } ) ,
113- React . createElement ( redux_form_1 . Field , { id : 'repo' , name : 'repo' , component : textField_1 . default . bind ( null , {
114- floatingLabelText : 'Path to Repo (optional)' ,
115- hintText : 'http://github.com/path/to/repo' ,
116- type : 'url' ,
117- } ) , tabIndex : '3' } ) ,
118- React . createElement ( RaisedButton_1 . default , { type : 'submit' , style : styles . button , label : 'Save' , primary : true , disabled : submitting } ) ,
119- React . createElement ( RaisedButton_1 . default , { style : styles . button , label : 'Continue' , secondary : true , disabled : invalid , onTouchTap : this . routeToPage . bind ( this ) } ) )
120- ) )
121- ) ) ;
122- } ;
123123 TutorialConfig = __decorate ( [
124124 react_redux_1 . connect ( function ( state ) { return ( {
125125 packageJson : state . packageJson ,
0 commit comments