twreporter-redux
Version:
redux actions and reducers for twreporter website
50 lines (48 loc) • 1.53 kB
JavaScript
import entities from './reducers/entities'
import formAPIURL from './utils/form-api-url'
import pagination from './utils/pagination'
import reduxStateFields from './constants/redux-state-field-names'
import indexPage from './reducers/index-page'
import { denormalizePosts, denormalizeTopics } from './utils/denormalize-asset'
import { post, posts } from './reducers/posts'
import { topic, topics } from './reducers/topics'
import bookmarks from './reducers/bookmarks'
import { fetchIndexPageContent, fetchCategoriesPostsOnIndexPage } from './actions/index-page'
import { fetchAFullPost, fetchListedPosts, fetchEditorPickedPosts,
fetchInfographicPostsOnIndexPage, fetchPhotographyPostsOnIndexPage } from './actions/posts'
import { fetchAFullTopic, fetchTopics, fetchTopicsOnIndexPage } from './actions/topics'
import { createBookmark, getBookmarks, deleteBookmark, getCurrentBookmark } from './actions/bookmarks'
export default {
actions: {
fetchEditorPickedPosts,
fetchCategoriesPostsOnIndexPage,
fetchTopics,
fetchAFullPost,
fetchAFullTopic,
fetchListedPosts,
fetchIndexPageContent,
fetchTopicsOnIndexPage,
fetchInfographicPostsOnIndexPage,
fetchPhotographyPostsOnIndexPage,
createBookmark,
getBookmarks,
deleteBookmark,
getCurrentBookmark,
},
reducers: {
entities,
post,
posts,
topic,
topics,
indexPage,
bookmarks,
},
reduxStateFields,
utils: {
denormalizePosts,
denormalizeTopics,
formAPIURL,
pagination,
},
}