-

console

+

>_console

diff --git a/client/modules/IDE/components/Editor.jsx b/client/modules/IDE/components/Editor.jsx index 2df97910..ff7bacb7 100644 --- a/client/modules/IDE/components/Editor.jsx +++ b/client/modules/IDE/components/Editor.jsx @@ -30,6 +30,9 @@ import classNames from 'classnames'; import { debounce } from 'lodash'; import Timer from '../components/Timer'; +const rightArrowUrl = require('../../../images/right-arrow.svg'); +const leftArrowUrl = require('../../../images/left-arrow.svg'); + class Editor extends React.Component { constructor(props) { super(props); @@ -178,6 +181,7 @@ class Editor extends React.Component { render() { const editorSectionClass = classNames({ editor: true, + 'sidebar--contracted': !this.props.isExpanded, 'editor--options': this.props.editorOptionsVisible }); @@ -187,6 +191,20 @@ class Editor extends React.Component { role="main" className={editorSectionClass} > + +
{this.props.file.name} {this.props.unsavedChanges ? '*' : null} @@ -253,7 +271,10 @@ Editor.propTypes = { theme: PropTypes.string.isRequired, unsavedChanges: PropTypes.bool.isRequired, projectSavedTime: PropTypes.string.isRequired, - files: PropTypes.array.isRequired + files: PropTypes.array.isRequired, + isExpanded: PropTypes.bool.isRequired, + collapseSidebar: PropTypes.func.isRequired, + expandSidebar: PropTypes.func.isRequired }; export default Editor; diff --git a/client/modules/IDE/components/Sidebar.jsx b/client/modules/IDE/components/Sidebar.jsx index b5bc469c..dbf9350e 100644 --- a/client/modules/IDE/components/Sidebar.jsx +++ b/client/modules/IDE/components/Sidebar.jsx @@ -2,8 +2,6 @@ import React, { PropTypes } from 'react'; import classNames from 'classnames'; import InlineSVG from 'react-inlinesvg'; // import SidebarItem from './SidebarItem'; -const rightArrowUrl = require('../../../images/right-arrow.svg'); -const leftArrowUrl = require('../../../images/left-arrow.svg'); const folderUrl = require('../../../images/folder.svg'); const downArrowUrl = require('../../../images/down-arrow.svg'); import ConnectedFileNode from './FileNode'; @@ -60,20 +58,6 @@ class Sidebar extends React.Component { - -
{ /*