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,
isTextOutputPlaying: PropTypes.bool.isRequired,
textOutput: PropTypes.bool.isRequired,
head: PropTypes.object.isRequired,
content: PropTypes.string,
htmlFile: PropTypes.shape({
content: PropTypes.string.isRequired

View file

@ -324,9 +324,6 @@ class IDEView extends React.Component {
cssFiles={this.props.cssFiles}
files={this.props.files}
content={this.props.selectedFile.content}
head={
<link type="text/css" rel="stylesheet" href="/preview-styles.css" />
}
isPlaying={this.props.ide.isPlaying}
isTextOutputPlaying={this.props.ide.isTextOutputPlaying}
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: {
app: ['babel-polyfill',
'webpack-hot-middleware/client',
'./client/index.js',
'./client/index.jsx',
],
vendor: [
'react',

View file

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