Common components refactor #1
4 changed files with 555 additions and 385 deletions
906
build/index.js
906
build/index.js
File diff suppressed because it is too large
Load diff
28
src/index.js
28
src/index.js
|
@ -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,
|
||||||
|
|
|
@ -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;
|
|
||||||
|
|
Loading…
Reference in a new issue