change file names
This commit is contained in:
parent
57f39d5a64
commit
fb5d640b45
5 changed files with 17 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
|
||||
class EditorHidden extends React.Component {
|
||||
class EditorAccessibility extends React.Component {
|
||||
componentDidMount() {
|
||||
|
||||
}
|
||||
|
@ -27,10 +27,10 @@ class EditorHidden extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
EditorHidden.propTypes = {
|
||||
EditorAccessibility.propTypes = {
|
||||
toggleBeep: PropTypes.func.isRequired,
|
||||
lintMessages: PropTypes.array.isRequired,
|
||||
lineNo: PropTypes.number.isRequired,
|
||||
};
|
||||
|
||||
export default EditorHidden;
|
||||
export default EditorAccessibility;
|
|
@ -1,6 +1,6 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import Editor from '../components/Editor';
|
||||
import EditorHidden from '../components/EditorHidden';
|
||||
import EditorAccessibility from '../components/EditorAccessibility';
|
||||
import Sidebar from '../components/Sidebar';
|
||||
import PreviewFrame from '../components/PreviewFrame';
|
||||
import Toolbar from '../components/Toolbar';
|
||||
|
@ -13,7 +13,7 @@ import { connect } from 'react-redux';
|
|||
import * as FileActions from '../actions/files';
|
||||
import * as IDEActions from '../actions/ide';
|
||||
import * as ProjectActions from '../actions/project';
|
||||
import * as EditorHiddenActions from '../actions/editorHidden';
|
||||
import * as EditorAccessibilityActions from '../actions/editorAccessibility';
|
||||
import * as PreferencesActions from '../actions/preferences';
|
||||
import { getFile, getHTMLFile, getJSFiles, getCSSFiles, setSelectedFile } from '../reducers/files';
|
||||
|
||||
|
@ -104,14 +104,14 @@ class IDEView extends React.Component {
|
|||
updateFileName={this.props.updateFileName}
|
||||
/>
|
||||
<div className="editor-console-container">
|
||||
<EditorHidden
|
||||
<EditorAccessibility
|
||||
toggleBeep={this.props.toggleBeep}
|
||||
lintMessages={this.props.editorHidden.lintMessages}
|
||||
lineNo={this.props.editorHidden.lineNo}
|
||||
lintMessages={this.props.editorAccessibility.lintMessages}
|
||||
lineNo={this.props.editorAccessibility.lineNo}
|
||||
/>
|
||||
<Editor
|
||||
enableBeep={this.props.editorHidden.enableBeep}
|
||||
lintMessages={this.props.editorHidden.lintMessages}
|
||||
enableBeep={this.props.editorAccessibility.enableBeep}
|
||||
lintMessages={this.props.editorAccessibility.lintMessages}
|
||||
updateLineNumber={this.props.updateLineNumber}
|
||||
updateLintMessage={this.props.updateLintMessage}
|
||||
clearLintMessage={this.props.clearLintMessage}
|
||||
|
@ -191,7 +191,7 @@ IDEView.propTypes = {
|
|||
}).isRequired,
|
||||
setProjectName: PropTypes.func.isRequired,
|
||||
openPreferences: PropTypes.func.isRequired,
|
||||
editorHidden: PropTypes.shape({
|
||||
editorAccessibility: PropTypes.shape({
|
||||
enableBeep: PropTypes.bool.isRequired,
|
||||
lintMessages: PropTypes.array.isRequired,
|
||||
lineNo: PropTypes.number.isRequired
|
||||
|
@ -248,7 +248,7 @@ function mapStateToProps(state) {
|
|||
cssFiles: getCSSFiles(state.files),
|
||||
ide: state.ide,
|
||||
preferences: state.preferences,
|
||||
editorHidden: state.editorHidden,
|
||||
editorAccessibility: state.editorAccessibility,
|
||||
user: state.user,
|
||||
project: state.project
|
||||
};
|
||||
|
@ -256,7 +256,7 @@ function mapStateToProps(state) {
|
|||
|
||||
function mapDispatchToProps(dispatch) {
|
||||
return bindActionCreators(Object.assign({},
|
||||
EditorHiddenActions,
|
||||
EditorAccessibilityActions,
|
||||
FileActions,
|
||||
ProjectActions,
|
||||
IDEActions,
|
||||
|
|
|
@ -6,7 +6,7 @@ const initialState = {
|
|||
lintMessages: []
|
||||
};
|
||||
|
||||
const editorHidden = (state = initialState, action) => {
|
||||
const editorAccessibility = (state = initialState, action) => {
|
||||
switch (action.type) {
|
||||
case ActionTypes.TOGGLE_BEEP:
|
||||
return Object.assign({}, state, { enableBeep: !state.enableBeep });
|
||||
|
@ -24,4 +24,4 @@ const editorHidden = (state = initialState, action) => {
|
|||
}
|
||||
};
|
||||
|
||||
export default editorHidden;
|
||||
export default editorAccessibility;
|
|
@ -3,7 +3,7 @@ import files from './modules/IDE/reducers/files';
|
|||
import ide from './modules/IDE/reducers/ide';
|
||||
import preferences from './modules/IDE/reducers/preferences';
|
||||
import project from './modules/IDE/reducers/project';
|
||||
import editorHidden from './modules/IDE/reducers/editorHidden';
|
||||
import editorAccessibility from './modules/IDE/reducers/editorAccessibility';
|
||||
import user from './modules/User/reducers';
|
||||
import sketches from './modules/Sketch/reducers';
|
||||
import { reducer as form } from 'redux-form';
|
||||
|
@ -16,7 +16,7 @@ const rootReducer = combineReducers({
|
|||
user,
|
||||
project,
|
||||
sketches,
|
||||
editorHidden
|
||||
editorAccessibility
|
||||
});
|
||||
|
||||
export default rootReducer;
|
||||
|
|
Loading…
Reference in a new issue