@@ -32,36 +32,36 @@ var styles = {
3232 margin : '30px 10px 20px 10px' ,
3333 } ,
3434} ;
35- var TutorialInfo = ( function ( _super ) {
36- __extends ( TutorialInfo , _super ) ;
37- function TutorialInfo ( ) {
35+ var TutorialPublish = ( function ( _super ) {
36+ __extends ( TutorialPublish , _super ) ;
37+ function TutorialPublish ( ) {
3838 _super . apply ( this , arguments ) ;
3939 }
40- TutorialInfo . prototype . componentWillMount = function ( ) {
40+ TutorialPublish . prototype . componentWillMount = function ( ) {
4141 this . props . initialize ( {
4242 description : '' ,
4343 version : '0.1.0' ,
4444 keywords : ''
4545 } ) ;
4646 } ;
47- TutorialInfo . prototype . componentDidMount = function ( ) {
47+ TutorialPublish . prototype . componentDidMount = function ( ) {
4848 TopPanel_1 . topElement . toggle ( false ) ;
4949 document . getElementsByTagName ( 'input' ) [ 0 ] . focus ( ) ;
5050 } ;
51- TutorialInfo . prototype . shouldComponentUpdate = function ( ) {
51+ TutorialPublish . prototype . shouldComponentUpdate = function ( ) {
5252 if ( document . activeElement &&
5353 typeof document . activeElement . value === 'string' ) {
5454 return false ;
5555 }
5656 } ;
57- TutorialInfo . prototype . onSubmit = function ( values ) {
57+ TutorialPublish . prototype . onSubmit = function ( values ) {
5858 var description = values . description , version = values . version , keywords = values . keywords ;
5959 this . props . save ( Object . assign ( { } , this . props . packageJson , {
6060 description : description , version : version ,
6161 keywords : ( "coderoad, tutorial" + ( keywords . length ? ', ' + keywords : '' ) ) . split ( ', ' )
6262 } ) ) ;
6363 } ;
64- TutorialInfo . prototype . render = function ( ) {
64+ TutorialPublish . prototype . render = function ( ) {
6565 var _a = this . props , pristine = _a . pristine , submitting = _a . submitting , handleSubmit = _a . handleSubmit , invalid = _a . invalid ;
6666 return ( React . createElement ( Card_1 . Card , { style : styles . card } ,
6767 React . createElement ( Card_1 . CardHeader , { title : 'Tutorial Info' } ) ,
@@ -82,19 +82,19 @@ var TutorialInfo = (function (_super) {
8282 React . createElement ( RaisedButton_1 . default , { type : 'submit' , style : styles . button , label : 'Save' , primary : true , disabled : invalid } ) ,
8383 React . createElement ( RaisedButton_1 . default , { style : styles . button , label : 'Publish' , secondary : true , disabled : invalid , onTouchTap : function ( ) { return alert ( 'Publish not yet implemented' ) ; } } ) ) ) ) ;
8484 } ;
85- TutorialInfo = __decorate ( [
85+ TutorialPublish = __decorate ( [
8686 react_redux_1 . connect ( function ( state ) { return ( {
8787 packageJson : state . packageJson ,
8888 } ) ; } , function ( dispatch ) { return ( {
8989 save : function ( pj ) { dispatch ( actions_1 . pjSave ( pj ) ) ; } ,
9090 routeToTutorial : function ( ) { dispatch ( actions_1 . routeSet ( 'page' ) ) ; }
9191 } ) ; } ) ,
9292 __metadata ( 'design:paramtypes' , [ ] )
93- ] , TutorialInfo ) ;
94- return TutorialInfo ;
93+ ] , TutorialPublish ) ;
94+ return TutorialPublish ;
9595} ( React . Component ) ) ;
9696Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
9797exports . default = redux_form_1 . reduxForm ( {
98- form : 'tutorialInfo ' ,
98+ form : 'tutorialPublish ' ,
9999 validate : validate_1 . default ,
100- } ) ( TutorialInfo ) ;
100+ } ) ( TutorialPublish ) ;
0 commit comments