@@ -5,16 +5,13 @@ import { bindActionCreators } from 'redux';
55import { connect } from 'react-redux' ;
66import PreviewFrame from '../components/PreviewFrame' ;
77import PreviewNav from '../../../components/PreviewNav' ;
8- import { getHTMLFile , getJSFiles , getCSSFiles } from '../reducers/files' ;
98import * as ProjectActions from '../actions/project' ;
109
1110class FullView extends React . Component {
1211 componentDidMount ( ) {
1312 this . props . getProject ( this . props . params . project_id , this . props . params . username ) ;
1413 }
1514
16- ident = ( ) => { }
17-
1815 render ( ) {
1916 return (
2017 < div className = "fullscreen-preview" >
@@ -27,26 +24,7 @@ class FullView extends React.Component {
2724 />
2825 < main className = "preview-frame-holder" >
2926 < PreviewFrame
30- htmlFile = { this . props . htmlFile }
31- jsFiles = { this . props . jsFiles }
32- cssFiles = { this . props . cssFiles }
33- files = { this . props . files }
34- head = {
35- < link type = "text/css" rel = "stylesheet" href = "/preview-styles.css" />
36- }
3727 fullView
38- isPlaying
39- isAccessibleOutputPlaying = { false }
40- textOutput = { false }
41- gridOutput = { false }
42- soundOutput = { false }
43- dispatchConsoleEvent = { this . ident }
44- endSketchRefresh = { this . ident }
45- previewIsRefreshing = { false }
46- setBlobUrl = { this . ident }
47- stopSketch = { this . ident }
48- expandConsole = { this . ident }
49- clearConsole = { this . ident }
5028 />
5129 </ main >
5230 </ div >
@@ -65,37 +43,12 @@ FullView.propTypes = {
6543 username : PropTypes . string
6644 } )
6745 } ) . isRequired ,
68- htmlFile : PropTypes . shape ( {
69- id : PropTypes . string . isRequired ,
70- content : PropTypes . string . isRequired ,
71- name : PropTypes . string . isRequired
72- } ) . isRequired ,
73- jsFiles : PropTypes . arrayOf ( PropTypes . shape ( {
74- id : PropTypes . string . isRequired ,
75- content : PropTypes . string . isRequired ,
76- name : PropTypes . string . isRequired
77- } ) ) . isRequired ,
78- cssFiles : PropTypes . arrayOf ( PropTypes . shape ( {
79- id : PropTypes . string . isRequired ,
80- content : PropTypes . string . isRequired ,
81- name : PropTypes . string . isRequired
82- } ) ) . isRequired ,
83- getProject : PropTypes . func . isRequired ,
84- files : PropTypes . arrayOf ( PropTypes . shape ( {
85- id : PropTypes . string . isRequired ,
86- content : PropTypes . string . isRequired ,
87- name : PropTypes . string . isRequired
88- } ) ) . isRequired ,
46+ getProject : PropTypes . func . isRequired
8947} ;
9048
9149function mapStateToProps ( state ) {
9250 return {
93- user : state . user ,
94- htmlFile : getHTMLFile ( state . files ) ,
95- jsFiles : getJSFiles ( state . files ) ,
96- cssFiles : getCSSFiles ( state . files ) ,
97- project : state . project ,
98- files : state . files
51+ project : state . project
9952 } ;
10053}
10154
0 commit comments