lbry-redux/src/index.js

228 lines
5.9 KiB
JavaScript
Raw Normal View History

2018-04-05 03:57:29 +01:00
import * as ACTIONS from 'constants/action_types';
2018-06-14 16:22:16 -04:00
import * as THUMBNAIL_STATUSES from 'constants/thumbnail_upload_statuses';
2018-05-27 21:30:07 +01:00
import * as SEARCH_TYPES from 'constants/search';
import * as SETTINGS from 'constants/settings';
2018-07-17 12:52:23 -04:00
import * as TRANSACTIONS from 'constants/transaction_types';
2018-10-22 23:31:57 -04:00
import * as SORT_OPTIONS from 'constants/sort_options';
import * as PAGES from 'constants/pages';
2018-04-05 03:57:29 +01:00
import Lbry from 'lbry';
import Lbryapi from 'lbryapi';
import { selectState as selectSearchState } from 'redux/selectors/search';
2018-01-11 13:12:37 +01:00
2018-04-05 03:57:29 +01:00
// types
2018-11-12 13:01:14 -05:00
export { Toast } from 'types/Notification';
2018-04-05 03:57:29 +01:00
// constants
2018-11-12 13:01:14 -05:00
export { ACTIONS, THUMBNAIL_STATUSES, SEARCH_TYPES, SETTINGS, TRANSACTIONS, SORT_OPTIONS, PAGES };
2018-04-05 03:57:29 +01:00
// common
export { Lbry, Lbryapi };
export {
regexInvalidURI,
regexAddress,
parseURI,
buildURI,
normalizeURI,
isURIValid,
isURIClaimable,
2018-04-24 14:14:47 -04:00
isNameValid,
convertToShareLink,
2018-04-05 03:57:29 +01:00
} from 'lbryURI';
// actions
2018-11-12 13:01:14 -05:00
export { doToast, doDismissToast, doError, doDismissError } from 'redux/actions/notifications';
2018-04-05 03:57:29 +01:00
export {
doFetchClaimsByChannel,
doFetchClaimCountByChannel,
2018-04-05 03:57:29 +01:00
doFetchClaimListMine,
doAbandonClaim,
doResolveUris,
doResolveUri,
doFetchFeaturedUris,
doFetchTrendingUris,
2018-04-05 03:57:29 +01:00
} from 'redux/actions/claims';
export { doFetchCostInfoForUri } from 'redux/actions/cost_info';
export {
doFetchFileInfo,
doFileList,
doFetchFileInfosAndPublishedClaims,
2018-10-22 23:31:57 -04:00
doSetFileListSort,
2018-04-05 03:57:29 +01:00
} from 'redux/actions/file_info';
export {
doSearch,
doUpdateSearchQuery,
doFocusSearchInput,
doBlurSearchInput,
} from 'redux/actions/search';
2018-04-05 03:57:29 +01:00
2018-04-24 14:14:47 -04:00
export { doBlackListedOutpointsSubscribe } from 'redux/actions/blacklist';
2018-04-05 03:57:29 +01:00
export {
doUpdateBalance,
doBalanceSubscribe,
doFetchTransactions,
doFetchBlock,
doGetNewAddress,
doCheckAddressIsMine,
doSendDraftTransaction,
doSetDraftTransactionAmount,
doSetDraftTransactionAddress,
2018-10-25 12:57:55 -04:00
doSendTip,
2018-07-17 22:55:40 -04:00
doWalletEncrypt,
doWalletDecrypt,
doWalletUnlock,
doWalletStatus,
doSetTransactionListFilter,
2018-11-07 10:55:44 -05:00
doUpdateBlockHeight,
2018-04-05 03:57:29 +01:00
} from 'redux/actions/wallet';
// utils
export { batchActions } from 'util/batchActions';
export { parseQueryParams, toQueryString } from 'util/query_params';
2018-10-25 12:57:55 -04:00
export { formatCredits, formatFullPrice, creditsToString } from 'util/formatCredits';
2018-04-05 03:57:29 +01:00
// reducers
export { claimsReducer } from 'redux/reducers/claims';
export { costInfoReducer } from 'redux/reducers/cost_info';
export { fileInfoReducer } from 'redux/reducers/file_info';
export { notificationsReducer } from 'redux/reducers/notifications';
export { searchReducer } from 'redux/reducers/search';
export { walletReducer } from 'redux/reducers/wallet';
2018-04-24 14:14:47 -04:00
export { blacklistReducer } from 'redux/reducers/blacklist';
2018-04-05 03:57:29 +01:00
// selectors
2018-04-24 14:14:47 -04:00
export { selectBlackListedOutpoints } from 'redux/selectors/blacklist';
2018-11-12 13:01:14 -05:00
export { selectToast, selectError } from 'redux/selectors/notifications';
2018-04-05 03:57:29 +01:00
export {
makeSelectClaimForUri,
makeSelectClaimIsMine,
makeSelectFetchingChannelClaims,
makeSelectClaimsInChannelForCurrentPage,
makeSelectClaimsInChannelForPage,
2018-04-05 03:57:29 +01:00
makeSelectMetadataForUri,
makeSelectTitleForUri,
makeSelectContentTypeForUri,
makeSelectIsUriResolving,
makeSelectTotalItemsForChannel,
makeSelectTotalPagesForChannel,
2018-07-10 19:15:39 -04:00
makeSelectNsfwCountFromUris,
makeSelectNsfwCountForChannel,
2018-08-01 23:31:51 -04:00
makeSelectRecommendedContentForUri,
makeSelectChannelForClaimUri,
2018-10-25 12:57:55 -04:00
makeSelectClaimIsPending,
makeSelectPendingByUri,
selectPendingById,
2018-04-05 03:57:29 +01:00
selectClaimsById,
selectClaimsByUri,
selectAllClaimsByChannel,
selectMyClaimsRaw,
selectAbandoningIds,
selectMyActiveClaims,
selectAllFetchingChannelClaims,
selectIsFetchingClaimListMine,
selectPendingClaims,
selectMyClaims,
selectMyClaimsWithoutChannels,
selectAllMyClaimsByOutpoint,
selectMyClaimsOutpoints,
selectFetchingMyChannels,
selectMyChannelClaims,
selectResolvingUris,
selectFeaturedUris,
selectFetchingFeaturedUris,
selectTrendingUris,
selectFetchingTrendingUris,
2018-04-05 03:57:29 +01:00
selectPlayingUri,
selectChannelClaimCounts,
} from 'redux/selectors/claims';
export {
makeSelectFetchingCostInfoForUri,
makeSelectCostInfoForUri,
selectAllCostInfoByUri,
selectCostForCurrentPageUri,
selectFetchingCostInfo,
} from 'redux/selectors/cost_info';
export {
makeSelectFileInfoForUri,
makeSelectDownloadingForUri,
makeSelectLoadingForUri,
selectFileInfosByOutpoint,
selectIsFetchingFileList,
selectIsFetchingFileListDownloadedOrPublished,
selectDownloadingByOutpoint,
selectUrisLoading,
selectFileInfosDownloaded,
selectDownloadingFileInfos,
selectTotalDownloadProgress,
selectSearchDownloadUris,
2018-10-22 23:31:57 -04:00
selectFileListDownloadedSort,
selectFileListPublishedSort,
2018-04-05 03:57:29 +01:00
} from 'redux/selectors/file_info';
export {
computePageFromPath,
makeSelectCurrentParam,
selectCurrentPath,
selectCurrentPage,
selectCurrentParams,
selectHeaderLinks,
selectPageTitle,
selectPathAfterAuth,
selectIsBackDisabled,
selectIsForwardDisabled,
selectHistoryIndex,
selectHistoryStack,
selectActiveHistoryEntry,
} from 'redux/selectors/navigation';
export { selectSearchState };
export {
makeSelectSearchUris,
selectSearchQuery,
selectSearchValue,
selectIsSearching,
selectSearchUrisByQuery,
selectWunderBarAddress,
selectSearchBarFocused,
2018-08-14 23:57:35 -04:00
selectSearchSuggestions,
2018-04-05 03:57:29 +01:00
} from 'redux/selectors/search';
export {
makeSelectBlockDate,
selectBalance,
selectTransactionsById,
selectTransactionItems,
selectRecentTransactions,
selectHasTransactions,
selectIsFetchingTransactions,
selectIsSendingSupport,
selectReceiveAddress,
selectGettingNewAddress,
selectDraftTransaction,
selectDraftTransactionAmount,
selectDraftTransactionAddress,
selectDraftTransactionError,
selectBlocks,
2018-07-17 22:55:40 -04:00
selectWalletIsEncrypted,
selectWalletState,
selectWalletEncryptPending,
selectWalletEncryptSucceeded,
2018-07-18 14:42:34 -04:00
selectWalletEncryptResult,
2018-07-17 22:55:40 -04:00
selectWalletDecryptPending,
selectWalletDecryptSucceeded,
2018-07-18 14:42:34 -04:00
selectWalletDecryptResult,
2018-07-17 22:55:40 -04:00
selectWalletUnlockPending,
selectWalletUnlockSucceeded,
2018-07-18 14:42:34 -04:00
selectWalletUnlockResult,
selectTransactionListFilter,
2018-04-05 03:57:29 +01:00
} from 'redux/selectors/wallet';