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