Skip to content

Commit

Permalink
remove unless code
Browse files Browse the repository at this point in the history
  • Loading branch information
phobal committed Apr 20, 2018
1 parent 9763182 commit cdfabcf
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 221 deletions.
41 changes: 0 additions & 41 deletions app/actions/counter.js

This file was deleted.

Empty file added app/components/.githook
Empty file.
37 changes: 0 additions & 37 deletions app/components/Counter.css

This file was deleted.

44 changes: 0 additions & 44 deletions app/components/Counter.js

This file was deleted.

14 changes: 0 additions & 14 deletions app/components/Home.css

This file was deleted.

21 changes: 0 additions & 21 deletions app/components/Home.js

This file was deleted.

16 changes: 0 additions & 16 deletions app/containers/CounterPage.js

This file was deleted.

15 changes: 0 additions & 15 deletions app/containers/HomePage.js

This file was deleted.

21 changes: 0 additions & 21 deletions app/reducers/counter.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
// @flow
import { combineReducers } from 'redux';
import { routerReducer as router } from 'react-router-redux';
import counter from './counter';
import source from './source';

const rootReducer = combineReducers({
counter,
router,
source,
});
Expand Down
6 changes: 0 additions & 6 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
import Video from './containers/Video';

export default () => (
<App>
<Switch>
<Route path="/counter" component={CounterPage} />
<Route path="/" component={Video} />
</Switch>
</App>
);
// http://jx.vgoodapi.com/jx.php?url=https://v.qq.com/x/cover/ejtoj98r02phutz.html

// https://v.qq.com/x/cover/ejtoj98r02phutz.html
6 changes: 2 additions & 4 deletions app/store/configureStore.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import { createHashHistory } from 'history';
import { routerMiddleware, routerActions } from 'react-router-redux';
import { createLogger } from 'redux-logger';
import rootReducer from '../reducers';
import * as counterActions from '../actions/counter';
import type { counterStateType } from '../reducers/counter';
// import type { counterStateType } from '../reducers/counter';

const history = createHashHistory();

const configureStore = (initialState?: counterStateType) => {
const configureStore = (initialState) => {
// Redux Configuration
const middleware = [];
const enhancers = [];
Expand All @@ -34,7 +33,6 @@ const configureStore = (initialState?: counterStateType) => {

// Redux DevTools Configuration
const actionCreators = {
...counterActions,
...routerActions,
};
// If Redux DevTools Extension is installed use it, otherwise use Redux compose
Expand Down

0 comments on commit cdfabcf

Please sign in to comment.