@@ -4,39 +4,18 @@ var __extends = (this && this.__extends) || function (d, b) {
4
4
function __ ( ) { this . constructor = d ; }
5
5
d . prototype = b === null ?Object . create ( b ) :( __ . prototype = b . prototype , new __ ( ) ) ;
6
6
} ;
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
- } ;
16
7
var React = require ( 'react' ) ;
17
8
var 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/' ;
21
9
var 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' ) ;
26
10
var content_1 = require ( './content' ) ;
27
11
var task_1 = require ( './task' ) ;
28
12
var hint_1 = require ( './hint' ) ;
29
13
var page_complete_1 = require ( './page-complete' ) ;
30
14
var 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 = {
34
16
height :'100%' ,
35
17
width :'100%'
36
18
} ;
37
- function taskProgress ( current , max ) {
38
- return ( current / max ) * 100 ;
39
- }
40
19
var default_1 = ( function ( _super ) {
41
20
__extends ( default_1 , _super ) ;
42
21
function default_1 ( ) {
@@ -49,19 +28,8 @@ var default_1 = (function (_super) {
49
28
var _a = this . props , page = _a . page , taskPosition = _a . taskPosition , hintPosition = _a . hintPosition , tasks = _a . tasks , runTests = _a . runTests ;
50
29
var currentTask = taskPosition <= tasks . length ?tasks [ taskPosition ] :null ;
51
30
var 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 } ) ) ) ;
53
32
} ;
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 ) ;
65
33
return default_1 ;
66
34
} ( React . Component ) ) ;
67
35
Object . defineProperty ( exports , "__esModule" , { value :true } ) ;