@@ -7,6 +7,7 @@ import Header from '../../components/mobile/Header';
7
7
import IconButton from '../../components/mobile/IconButton' ;
8
8
import PreviewFrame from '../IDE/components/PreviewFrame' ;
9
9
import Screen from '../../components/mobile/MobileScreen' ;
10
+ import Console from '../IDE/components/Console' ;
10
11
import * as ProjectActions from '../IDE/actions/project' ;
11
12
import * as IDEActions from '../IDE/actions/ide' ;
12
13
import * as PreferencesActions from '../IDE/actions/preferences' ;
@@ -18,6 +19,7 @@ import { getHTMLFile } from '../IDE/reducers/files';
18
19
19
20
import { ExitIcon } from '../../common/icons' ;
20
21
import { remSize } from '../../theme' ;
22
+ import Footer from '../../components/mobile/Footer' ;
21
23
22
24
23
25
const Content = styled . div `
@@ -39,13 +41,16 @@ const MobileSketchView = (props) => {
39
41
// Actions
40
42
const {
41
43
setTextOutput, setGridOutput, setSoundOutput,
42
- endSketchRefresh, stopSketch,
44
+ endSketchRefresh, stopSketch, console ,
43
45
dispatchConsoleEvent, expandConsole, clearConsole,
44
46
setBlobUrl,
45
47
} = props ;
46
48
47
49
const { preferences, ide } = props ;
48
50
51
+ // FIXME:
52
+ const collapseConsole = ( ) => { } ;
53
+
49
54
return (
50
55
< Screen fullscreen >
51
56
< Header
@@ -82,6 +87,17 @@ const MobileSketchView = (props) => {
82
87
clearConsole = { clearConsole }
83
88
/>
84
89
</ Content >
90
+ < Footer before = { < Console
91
+ fontSize = { preferences . fontSize }
92
+ consoleEvents = { console }
93
+ isExpanded = { ide . consoleIsExpanded }
94
+ clearConsole = { clearConsole }
95
+ theme = { preferences . theme }
96
+ dispatchConsoleEvent = { dispatchConsoleEvent }
97
+ expandConsole = { expandConsole }
98
+ collapseConsole = { collapseConsole }
99
+ /> }
100
+ />
85
101
</ Screen > ) ;
86
102
} ;
87
103
@@ -146,7 +162,6 @@ MobileSketchView.propTypes = {
146
162
justOpenedProject : PropTypes . bool . isRequired ,
147
163
errorType : PropTypes . string ,
148
164
runtimeErrorWarningVisible : PropTypes . bool . isRequired ,
149
- uploadFileModalVisible : PropTypes . bool . isRequired
150
165
} ) . isRequired ,
151
166
152
167
projectName : PropTypes . string . isRequired ,
@@ -160,6 +175,11 @@ MobileSketchView.propTypes = {
160
175
setBlobUrl : PropTypes . func . isRequired ,
161
176
expandConsole : PropTypes . func . isRequired ,
162
177
clearConsole : PropTypes . func . isRequired ,
178
+
179
+ console : PropTypes . arrayOf ( PropTypes . shape ( {
180
+ method : PropTypes . string . isRequired ,
181
+ args : PropTypes . arrayOf ( PropTypes . string )
182
+ } ) ) . isRequired ,
163
183
} ;
164
184
165
185
function mapStateToProps ( state ) {
@@ -169,6 +189,7 @@ function mapStateToProps(state) {
169
189
files : state . files ,
170
190
ide : state . ide ,
171
191
preferences : state . preferences ,
192
+ console : state . console ,
172
193
selectedFile : state . files . find ( file => file . isSelectedFile ) ||
173
194
state . files . find ( file => file . name === 'sketch.js' ) ||
174
195
state . files . find ( file => file . name !== 'root' ) ,
0 commit comments