Common components refactor #1

Merged
akinwale merged 42 commits from common-components-refactor into master 2018-04-05 04:57:30 +02:00
4 changed files with 555 additions and 385 deletions
Showing only changes of commit aac0ea9972 - Show all commits

File diff suppressed because it is too large Load diff

View file

@ -8,6 +8,14 @@ export { doOpenModal, doCloseModal, doShowSnackBar } from 'redux/actions/app';
export { doFetchClaimListMine, doAbandonClaim, doResolveUris, doResolveUri } from 'redux/actions/claims'; export { doFetchClaimListMine, doAbandonClaim, doResolveUris, doResolveUri } from 'redux/actions/claims';
export { doFetchCostInfoForUri } from 'redux/actions/cost_info'; export { doFetchCostInfoForUri } from 'redux/actions/cost_info';
export { doFetchFileInfo, doFileList, doFetchFileInfosAndPublishedClaims } from 'redux/actions/file_info'; export { doFetchFileInfo, doFileList, doFetchFileInfosAndPublishedClaims } from 'redux/actions/file_info';
export {
doNavigate,
doAuthNavigate,
doHistoryTraverse,
doHistoryBack,
doHistoryForward,
doRecordScroll
} from 'redux/actions/navigation';
export { doSearch } from 'redux/actions/search'; export { doSearch } from 'redux/actions/search';
export { export {
doUpdateBalance, doUpdateBalance,
@ -22,6 +30,10 @@ export {
doSendSupport doSendSupport
} from 'redux/actions/wallet'; } from 'redux/actions/wallet';
// utils
export { batchActions } from 'util/batchActions';
export { parseQueryParams, toQueryString } from 'util/query_params';
// reducers // reducers
export { claimsReducer } from 'redux/reducers/claims'; export { claimsReducer } from 'redux/reducers/claims';
export { costInfoReducer } from 'redux/reducers/cost_info'; export { costInfoReducer } from 'redux/reducers/cost_info';
@ -79,6 +91,22 @@ export {
selectTotalDownloadProgress selectTotalDownloadProgress
} from 'redux/selectors/file_info'; } from 'redux/selectors/file_info';
export {
computePageFromPath,
makeSelectCurrentParam,
selectCurrentPath,
selectCurrentPage,
selectCurrentParams,
selectHeaderLinks,
selectPageTitle,
selectPathAfterAuth,
selectIsBackDisabled,
selectIsForwardDisabled,
selectHistoryIndex,
selectHistoryStack,
selectActiveHistoryEntry
} from 'redux/selectors/navigation';
export { export {
makeSelectSearchUris, makeSelectSearchUris,
selectSearchQuery, selectSearchQuery,

View file

@ -1,9 +1,7 @@
// https://github.com/reactjs/redux/issues/911 // https://github.com/reactjs/redux/issues/911
function batchActions(...actions) { export function batchActions(...actions) {
return { return {
type: 'BATCH_ACTIONS', type: 'BATCH_ACTIONS',
actions, actions,
}; };
} }
export default batchActions;