* algolia integration skeleton * Configuration Defaults * Implemented partial entries with lazy loading of complete file * Moved backend selection logic to actioncreators * basic pagination for entries * general search skeleton * Basic search result listing * Redo search for different search terms * search results pagination * Changing integration config & handling * Changing integration config & handling * new integration config model
48 lines
1.4 KiB
JavaScript
48 lines
1.4 KiB
JavaScript
import auth from './auth';
|
|
import config from './config';
|
|
import editor from './editor';
|
|
import integrations, * as fromIntegrations from './integrations';
|
|
import entries, * as fromEntries from './entries';
|
|
import editorialWorkflow, * as fromEditorialWorkflow from './editorialWorkflow';
|
|
import entryDraft from './entryDraft';
|
|
import collections from './collections';
|
|
import medias, * as fromMedias from './medias';
|
|
|
|
const reducers = {
|
|
auth,
|
|
config,
|
|
collections,
|
|
integrations,
|
|
editor,
|
|
entries,
|
|
editorialWorkflow,
|
|
entryDraft,
|
|
medias
|
|
};
|
|
|
|
export default reducers;
|
|
|
|
/*
|
|
* Selectors
|
|
*/
|
|
export const selectEntry = (state, collection, slug) =>
|
|
fromEntries.selectEntry(state.entries, collection, slug);
|
|
|
|
export const selectEntries = (state, collection) =>
|
|
fromEntries.selectEntries(state.entries, collection);
|
|
|
|
export const selectSearchedEntries = (state) =>
|
|
fromEntries.selectSearchedEntries(state.entries);
|
|
|
|
export const selectUnpublishedEntry = (state, status, slug) =>
|
|
fromEditorialWorkflow.selectUnpublishedEntry(state.editorialWorkflow, status, slug);
|
|
|
|
export const selectUnpublishedEntries = (state, status) =>
|
|
fromEditorialWorkflow.selectUnpublishedEntries(state.editorialWorkflow, status);
|
|
|
|
export const selectIntegration = (state, collection, hook) =>
|
|
fromIntegrations.selectIntegration(state.integrations, collection, hook);
|
|
|
|
export const getMedia = (state, path) =>
|
|
fromMedias.getMedia(state.medias, path);
|