@@ -4,39 +4,18 @@ var __extends = (this && this.__extends) || function (d, b) {
44function __ ( ) { this . constructor = d ; }
55d . prototype = b === null ?Object . create ( b ) :( __ . prototype = b . prototype , new __ ( ) ) ;
66} ;
7- var __decorate = ( this && this . __decorate ) || function ( decorators , target , key , desc ) {
8- var c = arguments . length , r = c < 3 ?target :desc === null ?desc = Object . getOwnPropertyDescriptor ( target , key ) :desc , d ;
9- if ( typeof Reflect === "object" && typeof Reflect . decorate === "function" ) r = Reflect . decorate ( decorators , target , key , desc ) ;
10- else for ( var i = decorators . length - 1 ; i >= 0 ; i -- ) if ( d = decorators [ i ] ) r = ( c < 3 ?d ( r ) :c > 3 ?d ( target , key , r ) :d ( target , key ) ) || r ;
11- return c > 3 && r && Object . defineProperty ( target , key , r ) , r ;
12- } ;
13- var __metadata = ( this && this . __metadata ) || function ( k , v ) {
14- if ( typeof Reflect === "object" && typeof Reflect . metadata === "function" ) return Reflect . metadata ( k , v ) ;
15- } ;
167var React = require ( 'react' ) ;
178var ReactDOM = require ( 'react-dom' ) ;
18- var react_redux_1 = require ( 'react-redux' ) ;
19- var Action = require ( '../../actions/actions' ) ;
20- var iconPath = 'material-ui/lib/svg-icons/' ;
219var material_ui_1 = require ( 'material-ui' ) ;
22- var Complete = require ( iconPath + 'toggle/check-box' ) ;
23- var Incomplete = require ( iconPath + 'toggle/check-box-outline-blank' ) ;
24- var RunningTest = require ( iconPath + 'toggle/indeterminate-check-box' ) ;
25- var material_ui_2 = require ( 'material-ui' ) ;
2610var content_1 = require ( './content' ) ;
2711var task_1 = require ( './task' ) ;
2812var hint_1 = require ( './hint' ) ;
2913var page_complete_1 = require ( './page-complete' ) ;
3014var toolbar_1 = require ( './toolbar' ) ;
31- var Info = require ( iconPath + 'action/info' ) ;
32- var InfoOutline = require ( iconPath + 'action/info-outline' ) ;
33- var style = {
15+ var pageStyle = {
3416height :'100%' ,
3517width :'100%'
3618} ;
37- function taskProgress ( current , max ) {
38- return ( current / max ) * 100 ;
39- }
4019var default_1 = ( function ( _super ) {
4120__extends ( default_1 , _super ) ;
4221function default_1 ( ) {
@@ -49,19 +28,8 @@ var default_1 = (function (_super) {
4928var _a = this . props , page = _a . page , taskPosition = _a . taskPosition , hintPosition = _a . hintPosition , tasks = _a . tasks , runTests = _a . runTests ;
5029var currentTask = taskPosition <= tasks . length ?tasks [ taskPosition ] :null ;
5130var allComplete = taskPosition >= tasks . length ;
52- return ( React . createElement ( material_ui_2 . Paper , { style :style , zDepth :1 , className :'cr-page' } , React . createElement ( content_1 . default , { page :page } ) , React . createElement ( material_ui_1 . Divider , null ) , React . createElement ( task_1 . Tasks , { tasks :tasks , taskPosition :taskPosition , runTests :runTests } ) , React . createElement ( hint_1 . default , { task :currentTask , hintPosition :hintPosition } ) , React . createElement ( page_complete_1 . PageCompleteMessage , { page :page } ) , React . createElement ( "div" , { ref :'listEnd' } ) , React . createElement ( toolbar_1 . default , { tasks :tasks , taskPosition :taskPosition , hintPosition :hintPosition } ) ) ) ;
31+ return ( React . createElement ( material_ui_1 . Paper , { style :pageStyle , zDepth :1 , className :'cr-page' } , React . createElement ( content_1 . default , { page :page } ) , React . createElement ( material_ui_1 . ListDivider , null ) , React . createElement ( task_1 . Tasks , { tasks :tasks , taskPosition :taskPosition , runTests :runTests } ) , React . createElement ( hint_1 . default , { task :currentTask , hintPosition :hintPosition } ) , React . createElement ( page_complete_1 . PageCompleteMessage , { page :page } ) , React . createElement ( "div" , { ref :'listEnd' } ) , React . createElement ( toolbar_1 . default , { tasks :tasks , taskPosition :taskPosition , hintPosition :hintPosition } ) ) ) ;
5332} ;
54- default_1 = __decorate ( [
55- react_redux_1 . connect ( null , function ( dispatch , state ) {
56- return {
57- callNextPage :function ( ) { return dispatch ( Action . nextPage ( ) ) ; } ,
58- callRunTests :function ( ) { return dispatch ( Action . runTests ( ) ) ; } ,
59- toggleLog :function ( ) { return dispatch ( Action . toggleLog ( ) ) ; } ,
60- showHint :function ( newHintPos ) { return dispatch ( Action . setHintPosition ( newHintPos ) ) ; }
61- } ;
62- } ) ,
63- __metadata ( 'design:paramtypes' , [ ] )
64- ] , default_1 ) ;
6533return default_1 ;
6634} ( React . Component ) ) ;
6735Object . defineProperty ( exports , "__esModule" , { value :true } ) ;