added a few common app actions, and wallet actions and selectors
This commit is contained in:
parent
2ae5556916
commit
89104793bb
3 changed files with 1572 additions and 901 deletions
2409
build/index.js
2409
build/index.js
File diff suppressed because it is too large
Load diff
40
src/index.js
40
src/index.js
|
@ -1,14 +1,26 @@
|
|||
// common
|
||||
import Lbry from 'lbry';
|
||||
import LbryApi from 'lbryapi';
|
||||
import Lbryuri from 'lbryuri';
|
||||
export { Lbry, LbryApi, Lbryuri };
|
||||
export { Lbry, Lbryuri };
|
||||
|
||||
// actions
|
||||
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 { doSearch } from 'redux/actions/search';
|
||||
export {
|
||||
doUpdateBalance,
|
||||
doBalanceSubscribe,
|
||||
doFetchTransactions,
|
||||
doFetchBlock,
|
||||
doGetNewAddress,
|
||||
doCheckAddressIsMine,
|
||||
doSendDraftTransaction,
|
||||
doSetDraftTransactionAmount,
|
||||
doSetDraftTransactionAddress,
|
||||
doSendSupport
|
||||
} from 'redux/actions/wallet';
|
||||
|
||||
// reducers
|
||||
export { claimsReducer } from 'redux/reducers/claims';
|
||||
|
@ -54,14 +66,14 @@ export {
|
|||
} from 'redux/selectors/cost_info';
|
||||
|
||||
export {
|
||||
makeSelectFileInfoForUri,
|
||||
makeSelectDownloadingForUri,
|
||||
makeSelectLoadingForUri,
|
||||
selectFileInfosByOutpoint,
|
||||
selectIsFetchingFileList,
|
||||
selectIsFetchingFileListDownloadedOrPublished,
|
||||
makeSelectFileInfoForUri,
|
||||
selectDownloadingByOutpoint,
|
||||
makeSelectDownloadingForUri,
|
||||
selectUrisLoading,
|
||||
makeSelectLoadingForUri,
|
||||
selectFileInfosDownloaded,
|
||||
selectDownloadingFileInfos,
|
||||
selectTotalDownloadProgress
|
||||
|
@ -75,3 +87,21 @@ export {
|
|||
selectWunderBarAddress,
|
||||
selectWunderBarIcon
|
||||
} from 'redux/selectors/search';
|
||||
|
||||
export {
|
||||
makeSelectBlockDate,
|
||||
selectBalance,
|
||||
selectTransactionsById,
|
||||
selectTransactionItems,
|
||||
selectRecentTransactions,
|
||||
selectHasTransactions,
|
||||
selectIsFetchingTransactions,
|
||||
selectIsSendingSupport,
|
||||
selectReceiveAddress,
|
||||
selectGettingNewAddress,
|
||||
selectDraftTransaction,
|
||||
selectDraftTransactionAmount,
|
||||
selectDraftTransactionAddress,
|
||||
selectDraftTransactionError,
|
||||
selectBlocks
|
||||
} from 'redux/selectors/wallet';
|
||||
|
|
24
src/redux/actions/app.js
Normal file
24
src/redux/actions/app.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
import * as ACTIONS from 'constants/action_types';
|
||||
|
||||
export function doOpenModal(modal, modalProps = {}) {
|
||||
return {
|
||||
type: ACTIONS.OPEN_MODAL,
|
||||
data: {
|
||||
modal,
|
||||
modalProps,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export function doCloseModal() {
|
||||
return {
|
||||
type: ACTIONS.CLOSE_MODAL,
|
||||
};
|
||||
}
|
||||
|
||||
export function doShowSnackBar(data) {
|
||||
return {
|
||||
type: ACTIONS.SHOW_SNACKBAR,
|
||||
data,
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue