Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-rest-spread",
"react-hot-loader/babel",
"emotion"
"react-hot-loader/babel"
]
}
23 changes: 10 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@
"license": "ISC",
"private": true,
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0"
},
"devDependencies": {
"autoprefixer": "^8.1.0",
"babel-eslint": "^8.2.2",
"eslint": "^4.19.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
"babel-plugin-transform-class-properties": "^6.24.1",
Expand All @@ -34,24 +44,11 @@
"less": "^3.0.1",
"less-loader": "^4.1.0",
"postcss-loader": "^2.1.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-hot-loader": "^4.0.0",
"react-loadable": "^5.3.1",
"react-router-dom": "^4.2.2",
"react-spinners": "^0.2.6",
"rimraf": "^2.6.2",
"style-loader": "^0.20.3",
"webpack": "^4.1.1",
"webpack-cli": "^2.0.12",
"webpack-dev-server": "^3.1.1"
},
"devDependencies": {
"babel-eslint": "^8.2.2",
"eslint": "^4.19.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0"
}
}
15 changes: 0 additions & 15 deletions src/containers/Home/Home.js

This file was deleted.

46 changes: 0 additions & 46 deletions src/containers/Home/Home.less

This file was deleted.

27 changes: 0 additions & 27 deletions src/containers/Home/components/Content.js

This file was deleted.

24 changes: 0 additions & 24 deletions src/containers/Home/components/Header.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/containers/Home/package.json

This file was deleted.

15 changes: 0 additions & 15 deletions src/containers/Loading/Loading.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/containers/Loading/Loading.less

This file was deleted.

3 changes: 0 additions & 3 deletions src/containers/Loading/package.json

This file was deleted.

19 changes: 0 additions & 19 deletions src/containers/NotFound/NotFound.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/containers/NotFound/NotFound.less

This file was deleted.

3 changes: 0 additions & 3 deletions src/containers/NotFound/package.json

This file was deleted.

36 changes: 11 additions & 25 deletions src/containers/index.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
import React from 'react';
// import package
import { HashRouter as Router, Route, Switch } from 'react-router-dom';
import Loadable from 'react-loadable';
// import relative path
import Loading from './Loading';
import NotFound from './NotFound';

const LoadComponent = loader => Loadable({
loader,
loading: Loading,
});

const Home = LoadComponent(() => import('./Home'));

const Main = () => (
<Router>
<Switch>
<Route exact path="/" component={Home} />
<Route component={NotFound} />
</Switch>
</Router>
);

export default Main;
import React, { Component } from 'react';

export default class Main extends Component {
render() {
return (
<div>
<span>Hello, I`m ReactMaker.</span>
</div>
);
}
}
Binary file removed src/static/images/facebook.png
Binary file not shown.
Binary file removed src/static/images/github.png
Binary file not shown.
Binary file removed src/static/images/logo.png
Binary file not shown.
2 changes: 0 additions & 2 deletions src/theme/variables.less

This file was deleted.

Loading