Skip to content

Commit e4bc02e

Browse files
committed
change dir-files structure
1 parent 67e0688 commit e4bc02e

File tree

17 files changed

+69
-87
lines changed

17 files changed

+69
-87
lines changed

docs/public/assets/app.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-redux-immutable-webpack-ssr-starter",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "React + React-Router + Redux + ImmutableJS + Bootstrap with with Server side rendering, Hot Reload and redux-devtools STARTER",
55
"main": "src/index.js",
66
"engines": {

src/app/components/backToTop/backToTopButton/UpIcon.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
import React from 'react';
44
import PropTypes from 'prop-types';
55

6-
const UpIcon = ({color}) => {
7-
return (
8-
<svg
9-
width="24px"
10-
height="24px"
11-
viewBox="0 0 512 512"
12-
fill={`${color}`} >
13-
<path d="M256,213.7L256,213.7L256,213.7l174.2,167.2c4.3,4.2,11.4,4.1,15.8-0.2l30.6-29.9c4.4-4.3,4.5-11.3,0.2-15.5L264.1,131.1
14-
c-2.2-2.2-5.2-3.2-8.1-3c-3-0.1-5.9,0.9-8.1,3L35.2,335.3c-4.3,4.2-4.2,11.2,0.2,15.5L66,380.7c4.4,4.3,11.5,4.4,15.8,0.2L256,213.7z" />
15-
</svg>
16-
);
17-
};
6+
const UpIcon = ({
7+
color
8+
}) => (
9+
<svg
10+
width="24px"
11+
height="24px"
12+
viewBox="0 0 512 512"
13+
fill={`${color}`} >
14+
<path d="M256,213.7L256,213.7L256,213.7l174.2,167.2c4.3,4.2,11.4,4.1,15.8-0.2l30.6-29.9c4.4-4.3,4.5-11.3,0.2-15.5L264.1,131.1
15+
c-2.2-2.2-5.2-3.2-8.1-3c-3-0.1-5.9,0.9-8.1,3L35.2,335.3c-4.3,4.2-4.2,11.2,0.2,15.5L66,380.7c4.4,4.3,11.5,4.4,15.8,0.2L256,213.7z" />
16+
</svg>
17+
);
18+
1819

1920
UpIcon.propTypes = {
2021
color: PropTypes.string

src/app/components/index.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
// @flow weak
22

3-
import Jumbotron from './jumbotron/Jumbotron';
4-
import NavigationBar from './navigation/NavigationBar';
5-
import BackToTop from './backToTop/BackToTop';
6-
import AnimatedView from './animatedView/AnimatedView';
7-
8-
export {
9-
AnimatedView,
10-
Jumbotron,
11-
NavigationBar,
12-
BackToTop
13-
};
3+
export { default as Jumbotron } from './jumbotron/Jumbotron';
4+
export { default as NavigationBar } from './navigation/NavigationBar';
5+
export { default as BackToTop } from './backToTop/BackToTop';

src/app/components/jumbotron/Jumbotron.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
import React from 'react';
44
import PropTypes from 'prop-types';
55

6-
const Jumbotron = (props) => (
6+
const Jumbotron = ({
7+
children
8+
}) => (
79
<div className="jumbotron">
8-
{props.children}
10+
{ children }
911
</div>
1012
);
1113

File renamed without changes.

src/app/containers/app/App.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ import {
88
BackToTop
99
} from '../../components';
1010
import navigationModel from '../../models/navigation.json';
11-
import { bindActionCreators } from 'redux';
12-
import { connect } from 'react-redux';
13-
import * as viewsActions from '../../redux/modules/views';
1411
import { fromJS } from 'immutable';
1512
import MainRoutes from '../../routes/MainRoutes';
1613
import { withRouter } from 'react-router';
@@ -51,25 +48,4 @@ class App extends PureComponent {
5148
}
5249
}
5350

54-
const mapStateToProps = (state) => {
55-
return {
56-
currentView: state.getIn(['views', 'currentView'])
57-
};
58-
};
59-
60-
const mapDispatchToProps = (dispatch) => {
61-
return {
62-
actions : bindActionCreators(
63-
{
64-
...viewsActions
65-
},
66-
dispatch)
67-
};
68-
};
69-
70-
export default withRouter(
71-
connect(
72-
mapStateToProps,
73-
mapDispatchToProps
74-
)(App)
75-
);
51+
export default withRouter(App);

src/app/containers/app/index.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// @flow weak
2+
3+
import { connect } from 'react-redux';
4+
import { bindActionCreators } from 'redux';
5+
import * as viewsActions from '../../redux/modules/views';
6+
import App from './App';
7+
8+
const mapStateToProps = (state) => {
9+
return {
10+
currentView: state.getIn(['views', 'currentView'])
11+
};
12+
};
13+
14+
const mapDispatchToProps = (dispatch) => {
15+
return {
16+
actions : bindActionCreators(
17+
{
18+
...viewsActions
19+
},
20+
dispatch)
21+
};
22+
};
23+
24+
export default connect(
25+
mapStateToProps,
26+
mapDispatchToProps
27+
)(App);

src/app/containers/index.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
// @flow weak
22

3-
import App from './app/App';
4-
import ConnectedHome from './home/Home';
5-
import ConnectedAbout from './about/About';
6-
7-
export {
8-
App,
9-
ConnectedHome,
10-
ConnectedAbout
11-
};
3+
export { default as App } from './app/App';
4+
export { default as AnimatedView } from './animatedView/AnimatedView';

src/app/models/navigation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"brand": "React Redux Immutable Starter",
2+
"brand": "React Redux Immutable webpack ssr Starter",
33
"leftLinks": [],
44
"rightLinks": [
55
{

0 commit comments

Comments
 (0)