remove some dead code/files, change react components to .jsx files because of sublime syntax highlighting, fix linting errors

This commit is contained in:
Cassie Tarakajian 2016-11-08 18:54:54 -05:00
parent f40ecebfba
commit fc83040c8f
40 changed files with 21 additions and 29 deletions

View file

@ -1,19 +0,0 @@
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { Router, browserHistory } from 'react-router'
import configureStore from './store'
import routes from './routes'
require('./styles/main.scss');
const history = browserHistory
const initialState = window.__INITIAL_STATE__
const store = configureStore(initialState)
render(
<Provider store={store}>
<Router history={history} routes={routes(store)} />
</Provider>,
document.getElementById('root')
)

19
client/index.jsx Normal file
View file

@ -0,0 +1,19 @@
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import configureStore from './store';
import routes from './routes';
require('./styles/main.scss');
const history = browserHistory;
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
render(
<Provider store={store}>
<Router history={history} routes={routes(store)} />
</Provider>,
document.getElementById('root')
);

View file

@ -295,7 +295,6 @@ PreviewFrame.propTypes = {
isPlaying: PropTypes.bool.isRequired, isPlaying: PropTypes.bool.isRequired,
isTextOutputPlaying: PropTypes.bool.isRequired, isTextOutputPlaying: PropTypes.bool.isRequired,
textOutput: PropTypes.bool.isRequired, textOutput: PropTypes.bool.isRequired,
head: PropTypes.object.isRequired,
content: PropTypes.string, content: PropTypes.string,
htmlFile: PropTypes.shape({ htmlFile: PropTypes.shape({
content: PropTypes.string.isRequired content: PropTypes.string.isRequired

View file

@ -324,9 +324,6 @@ class IDEView extends React.Component {
cssFiles={this.props.cssFiles} cssFiles={this.props.cssFiles}
files={this.props.files} files={this.props.files}
content={this.props.selectedFile.content} content={this.props.selectedFile.content}
head={
<link type="text/css" rel="stylesheet" href="/preview-styles.css" />
}
isPlaying={this.props.ide.isPlaying} isPlaying={this.props.ide.isPlaying}
isTextOutputPlaying={this.props.ide.isTextOutputPlaying} isTextOutputPlaying={this.props.ide.isTextOutputPlaying}
textOutput={this.props.preferences.textOutput} textOutput={this.props.preferences.textOutput}

View file

@ -1,4 +0,0 @@
html, body {
margin: 0;
padding: 0;
}

View file

@ -6,7 +6,7 @@ module.exports = {
entry: { entry: {
app: ['babel-polyfill', app: ['babel-polyfill',
'webpack-hot-middleware/client', 'webpack-hot-middleware/client',
'./client/index.js', './client/index.jsx',
], ],
vendor: [ vendor: [
'react', 'react',

View file

@ -14,7 +14,7 @@ module.exports = {
entry: { entry: {
app: [ app: [
'babel-polyfill', 'babel-polyfill',
'./client/index.js' './client/index.jsx'
], ],
vendor: [ vendor: [
'react', 'react',