2016-08-10 21:36:11 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// NPM imports
|
2016-07-07 23:23:18 +02:00
|
|
|
import { routerReducer as routing } from "react-router-redux";
|
|
|
|
import { combineReducers } from "redux";
|
|
|
|
|
2016-08-10 21:36:11 +02:00
|
|
|
// Import all the available reducers
|
2016-07-07 23:23:18 +02:00
|
|
|
import auth from "./auth";
|
2016-08-10 21:36:11 +02:00
|
|
|
import entities from "./entities";
|
|
|
|
import paginatedMaker from "./paginated";
|
2016-08-07 00:58:36 +02:00
|
|
|
import webplayer from "./webplayer";
|
2016-07-07 23:23:18 +02:00
|
|
|
|
2016-08-10 21:36:11 +02:00
|
|
|
// Actions
|
2016-07-07 23:23:18 +02:00
|
|
|
import * as ActionTypes from "../actions";
|
|
|
|
|
2016-08-10 21:36:11 +02:00
|
|
|
// Build paginated reducer
|
|
|
|
const paginated = paginatedMaker([
|
2016-08-05 00:00:25 +02:00
|
|
|
ActionTypes.API_REQUEST,
|
|
|
|
ActionTypes.API_SUCCESS,
|
2016-08-10 23:50:23 +02:00
|
|
|
ActionTypes.API_FAILURE,
|
2016-08-05 00:00:25 +02:00
|
|
|
]);
|
2016-07-07 23:23:18 +02:00
|
|
|
|
2016-08-10 21:36:11 +02:00
|
|
|
// Export the combined reducers
|
|
|
|
export default combineReducers({
|
2016-07-07 23:23:18 +02:00
|
|
|
routing,
|
|
|
|
auth,
|
2016-08-10 21:36:11 +02:00
|
|
|
entities,
|
|
|
|
paginated,
|
2016-08-10 23:50:23 +02:00
|
|
|
webplayer,
|
2016-07-07 23:23:18 +02:00
|
|
|
});
|