@@ -5,16 +5,13 @@ import { bindActionCreators } from 'redux';
5
5
import { connect } from 'react-redux' ;
6
6
import PreviewFrame from '../components/PreviewFrame' ;
7
7
import PreviewNav from '../../../components/PreviewNav' ;
8
- import { getHTMLFile , getJSFiles , getCSSFiles } from '../reducers/files' ;
9
8
import * as ProjectActions from '../actions/project' ;
10
9
11
10
class FullView extends React . Component {
12
11
componentDidMount ( ) {
13
12
this . props . getProject ( this . props . params . project_id , this . props . params . username ) ;
14
13
}
15
14
16
- ident = ( ) => { }
17
-
18
15
render ( ) {
19
16
return (
20
17
< div className = "fullscreen-preview" >
@@ -27,26 +24,7 @@ class FullView extends React.Component {
27
24
/>
28
25
< main className = "preview-frame-holder" >
29
26
< 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
- }
37
27
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 }
50
28
/>
51
29
</ main >
52
30
</ div >
@@ -65,37 +43,12 @@ FullView.propTypes = {
65
43
username : PropTypes . string
66
44
} )
67
45
} ) . 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
89
47
} ;
90
48
91
49
function mapStateToProps ( state ) {
92
50
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
99
52
} ;
100
53
}
101
54
0 commit comments