Skip to content

Commit 06fcc3d

Browse files
committed
Update project structure
1 parent b71df09 commit 06fcc3d

File tree

13 files changed

+17
-13
lines changed

13 files changed

+17
-13
lines changed

src/app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react';
22
import { Route, IndexRoute, Router, hashHistory } from 'react-router';
3-
import Login from './auth/login';
4-
import Dashboard from './dashboard/dashboard';
5-
import PostsIndex from './posts/posts-index';
6-
import PostsEdit from './posts/posts-edit';
3+
import Login from './components/auth/login';
4+
import Dashboard from './components/dashboard/dashboard';
5+
import PostsIndex from './components/posts/posts-index';
6+
import PostsEdit from './components/posts/posts-edit';
77
import { Navbar, Nav, NavItem } from 'react-bootstrap';
88
import { IndexLinkContainer, LinkContainer } from 'react-router-bootstrap';
9-
import { Auth } from './auth/auth';
9+
import { Auth } from './services/auth';
1010
import { Provider } from 'react-redux';
1111
import store from './store';
1212

src/auth/login.js renamed to src/components/auth/login.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import {Auth} from './auth';
2+
import { Auth } from '../../services/auth';
33

44
export default class Login extends React.Component {
55
constructor(props, context) {
@@ -60,4 +60,4 @@ export default class Login extends React.Component {
6060

6161
Login.contextTypes = {
6262
router: React.PropTypes.object
63-
};
63+
};
File renamed without changes.

src/posts/posts-edit.js renamed to src/components/posts/posts-edit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
22
import Textarea from 'react-textarea-autosize';
33
import axios from 'axios';
4-
import store from '../store';
5-
import * as postsActions from '../actions/posts-actions';
4+
import store from '../../store';
5+
import * as postsActions from '../../store/actions/posts-actions';
66

77
// import { connect } from 'react-redux'
88
// import store from '../store';

src/posts/posts-index.js renamed to src/components/posts/posts-index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { connect } from 'react-redux'
33
import { Link } from 'react-router';
44
import { PostsList } from './posts-list';
55
import SearchInput from '../shared/search-input';
6-
import store from '../store';
7-
import * as postsActions from '../actions/posts-actions';
6+
import store from '../../store';
7+
import * as postsActions from '../../store/actions/posts-actions';
88

99
@connect((state) => {
1010
return {
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { applyMiddleware, createStore, combineReducers, compose } from 'redux';
22
import createLogger from 'redux-logger';
33
import thunk from 'redux-thunk';
4-
import reducers from './reducers/index';
4+
import reducers from './store/reducers/index';
55

66
const logger = createLogger({collapsed: true});
77

File renamed without changes.

0 commit comments

Comments
 (0)