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 { doFetchCostInfoForUri } from 'redux/actions/cost_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 {
|
||||
doUpdateBalance,
|
||||
|
@ -22,6 +30,10 @@ export {
|
|||
doSendSupport
|
||||
} from 'redux/actions/wallet';
|
||||
|
||||
// utils
|
||||
export { batchActions } from 'util/batchActions';
|
||||
export { parseQueryParams, toQueryString } from 'util/query_params';
|
||||
|
||||
// reducers
|
||||
export { claimsReducer } from 'redux/reducers/claims';
|
||||
export { costInfoReducer } from 'redux/reducers/cost_info';
|
||||
|
@ -79,6 +91,22 @@ export {
|
|||
selectTotalDownloadProgress
|
||||
} from 'redux/selectors/file_info';
|
||||
|
||||
export {
|
||||
computePageFromPath,
|
||||
makeSelectCurrentParam,
|
||||
selectCurrentPath,
|
||||
selectCurrentPage,
|
||||
selectCurrentParams,
|
||||
selectHeaderLinks,
|
||||
selectPageTitle,
|
||||
selectPathAfterAuth,
|
||||
selectIsBackDisabled,
|
||||
selectIsForwardDisabled,
|
||||
selectHistoryIndex,
|
||||
selectHistoryStack,
|
||||
selectActiveHistoryEntry
|
||||
} from 'redux/selectors/navigation';
|
||||
|
||||
export {
|
||||
makeSelectSearchUris,
|
||||
selectSearchQuery,
|
||||
|
|
|
@ -262,7 +262,7 @@ Lbry.resolve = (params = {}) =>
|
|||
reject
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
const lbryProxy = new Proxy(Lbry, {
|
||||
get(target, name) {
|
||||
if (name in target) {
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
// https://github.com/reactjs/redux/issues/911
|
||||
function batchActions(...actions) {
|
||||
export function batchActions(...actions) {
|
||||
return {
|
||||
type: 'BATCH_ACTIONS',
|
||||
actions,
|
||||
};
|
||||
}
|
||||
|
||||
export default batchActions;
|
||||
|
|
Loading…
Reference in a new issue