diff --git a/client/modules/IDE/components/EditorAccessibility.js b/client/modules/IDE/components/EditorAccessibility.js index a3596322..73dce536 100644 --- a/client/modules/IDE/components/EditorAccessibility.js +++ b/client/modules/IDE/components/EditorAccessibility.js @@ -29,8 +29,6 @@ class EditorAccessibility extends React.Component {

Current line {this.props.lineNo}

-
-
); } diff --git a/client/modules/IDE/components/PreviewFrame.js b/client/modules/IDE/components/PreviewFrame.js index 4d589ab4..ac6794fc 100644 --- a/client/modules/IDE/components/PreviewFrame.js +++ b/client/modules/IDE/components/PreviewFrame.js @@ -51,8 +51,7 @@ const hijackConsoleScript = ` -
`; +`; class PreviewFrame extends React.Component { @@ -128,7 +127,8 @@ class PreviewFrame extends React.Component { htmlFile = htmlFile.replace(fileRegex, ``); }); - if (this.props.textOutput||this.props.isTextOutputPlaying) { + if (this.props.textOutput || this.props.isTextOutputPlaying) { + console.log(htmlFile); const htmlHead = htmlFile.match(/(?:)([\s\S]*?)(?:<\/head>)/gmi); const headRegex = new RegExp('head', 'i'); let htmlHeadContents = htmlHead[0].split(headRegex)[1]; diff --git a/client/modules/IDE/components/TextOutput.js b/client/modules/IDE/components/TextOutput.js new file mode 100644 index 00000000..de816a1e --- /dev/null +++ b/client/modules/IDE/components/TextOutput.js @@ -0,0 +1,28 @@ +import React, { PropTypes } from 'react'; + +class TextOutput extends React.Component { + componentDidMount() { + + } + render() { + return ( +
+
+
+
+
+
+
+ +
+
+ ); + } +} + +// TextOutput.propTypes = { +// lintMessages: PropTypes.array.isRequired, +// lineNo: PropTypes.string.isRequired, +// }; + +export default TextOutput; diff --git a/client/modules/IDE/pages/IDEView.js b/client/modules/IDE/pages/IDEView.js index a87ecb8c..7f2a35ce 100644 --- a/client/modules/IDE/pages/IDEView.js +++ b/client/modules/IDE/pages/IDEView.js @@ -3,6 +3,7 @@ import Editor from '../components/Editor'; import Sidebar from '../components/Sidebar'; import PreviewFrame from '../components/PreviewFrame'; import Toolbar from '../components/Toolbar'; +import TextOutput from '../components/TextOutput'; import Preferences from '../components/Preferences'; import NewFileModal from '../components/NewFileModal'; import Nav from '../../../components/Nav'; @@ -193,6 +194,14 @@ class IDEView extends React.Component {
+ {(() => { + if (this.props.preferences.textOutput || this.props.ide.isTextOutputPlaying) { + return ( + + ); + } + return ''; + })()}