lbry-redux/src/index.js

225 lines
5.5 KiB
JavaScript
Raw Normal View History

2018-04-05 04:57:29 +02:00
import * as ACTIONS from 'constants/action_types';
2018-06-14 22:22:16 +02:00
import * as THUMBNAIL_STATUSES from 'constants/thumbnail_upload_statuses';
2018-05-27 22:30:07 +02:00
import * as SETTINGS from 'constants/settings';
2018-07-17 18:52:23 +02:00
import * as TRANSACTIONS from 'constants/transaction_types';
2018-10-23 05:31:57 +02:00
import * as SORT_OPTIONS from 'constants/sort_options';
import * as PAGES from 'constants/pages';
2019-02-18 17:24:18 +01:00
import { SEARCH_TYPES, SEARCH_OPTIONS } from 'constants/search';
2018-10-23 05:31:57 +02:00
2018-04-05 04:57:29 +02:00
import Lbry from 'lbry';
import { selectState as selectSearchState } from 'redux/selectors/search';
2018-01-11 13:12:37 +01:00
2018-04-05 04:57:29 +02:00
// types
2018-11-12 19:01:14 +01:00
export { Toast } from 'types/Notification';
2018-04-05 04:57:29 +02:00
// constants
2019-02-18 17:24:18 +01:00
export {
ACTIONS,
THUMBNAIL_STATUSES,
SEARCH_TYPES,
SEARCH_OPTIONS,
SETTINGS,
TRANSACTIONS,
SORT_OPTIONS,
PAGES,
};
2018-04-05 04:57:29 +02:00
// common
2019-03-11 03:03:28 +01:00
export { Lbry };
2018-04-05 04:57:29 +02:00
export {
regexInvalidURI,
regexAddress,
parseURI,
buildURI,
normalizeURI,
isURIValid,
isURIClaimable,
2018-04-24 20:14:47 +02:00
isNameValid,
convertToShareLink,
2018-04-05 04:57:29 +02:00
} from 'lbryURI';
// actions
2018-11-12 19:01:14 +01:00
export { doToast, doDismissToast, doError, doDismissError } from 'redux/actions/notifications';
2018-04-05 04:57:29 +02:00
export {
doFetchClaimsByChannel,
doFetchClaimCountByChannel,
2018-04-05 04:57:29 +02:00
doFetchClaimListMine,
doAbandonClaim,
doResolveUris,
doResolveUri,
} from 'redux/actions/claims';
export {
doFetchFileInfo,
doFileList,
doFetchFileInfosAndPublishedClaims,
2018-10-23 05:31:57 +02:00
doSetFileListSort,
2018-04-05 04:57:29 +02:00
} from 'redux/actions/file_info';
export {
doSearch,
doUpdateSearchQuery,
doFocusSearchInput,
doBlurSearchInput,
2019-01-29 17:44:10 +01:00
setSearchApi,
2019-02-18 17:24:18 +01:00
doUpdateSearchOptions,
} from 'redux/actions/search';
2018-04-05 04:57:29 +02:00
export {
doUpdateBalance,
doBalanceSubscribe,
doFetchTransactions,
doFetchBlock,
doGetNewAddress,
doCheckAddressIsMine,
doSendDraftTransaction,
doSetDraftTransactionAmount,
doSetDraftTransactionAddress,
2018-10-25 18:57:55 +02:00
doSendTip,
2018-07-18 04:55:40 +02:00
doWalletEncrypt,
doWalletDecrypt,
doWalletUnlock,
doWalletStatus,
doSetTransactionListFilter,
2018-11-07 16:55:44 +01:00
doUpdateBlockHeight,
2018-04-05 04:57:29 +02:00
} from 'redux/actions/wallet';
// utils
export { batchActions } from 'util/batchActions';
export { parseQueryParams, toQueryString } from 'util/query_params';
2018-10-25 18:57:55 +02:00
export { formatCredits, formatFullPrice, creditsToString } from 'util/formatCredits';
2018-04-05 04:57:29 +02:00
// reducers
export { claimsReducer } from 'redux/reducers/claims';
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';
// selectors
2018-11-12 19:01:14 +01:00
export { selectToast, selectError } from 'redux/selectors/notifications';
2018-04-05 04:57:29 +02:00
export {
makeSelectClaimForUri,
makeSelectClaimIsMine,
makeSelectFetchingChannelClaims,
makeSelectClaimsInChannelForCurrentPage,
makeSelectClaimsInChannelForPage,
2018-04-05 04:57:29 +02:00
makeSelectMetadataForUri,
makeSelectTitleForUri,
makeSelectContentTypeForUri,
makeSelectIsUriResolving,
makeSelectTotalItemsForChannel,
makeSelectTotalPagesForChannel,
2018-07-11 01:15:39 +02:00
makeSelectNsfwCountFromUris,
makeSelectNsfwCountForChannel,
2018-08-02 05:31:51 +02:00
makeSelectRecommendedContentForUri,
makeSelectFirstRecommendedFileForUri,
makeSelectChannelForClaimUri,
2018-10-25 18:57:55 +02:00
makeSelectClaimIsPending,
makeSelectPendingByUri,
makeSelectClaimsInChannelForCurrentPageState,
2018-10-25 18:57:55 +02:00
selectPendingById,
2018-04-05 04:57:29 +02:00
selectClaimsById,
selectClaimsByUri,
selectAllClaimsByChannel,
selectMyClaimsRaw,
selectAbandoningIds,
selectMyActiveClaims,
selectAllFetchingChannelClaims,
selectIsFetchingClaimListMine,
selectPendingClaims,
selectMyClaims,
selectMyClaimsWithoutChannels,
selectAllMyClaimsByOutpoint,
selectMyClaimsOutpoints,
selectFetchingMyChannels,
selectMyChannelClaims,
selectResolvingUris,
selectFeaturedUris,
selectFetchingFeaturedUris,
selectTrendingUris,
selectFetchingTrendingUris,
2018-04-05 04:57:29 +02:00
selectPlayingUri,
selectChannelClaimCounts,
selectCurrentChannelPage,
2018-04-05 04:57:29 +02:00
} from 'redux/selectors/claims';
export {
makeSelectFileInfoForUri,
makeSelectDownloadingForUri,
makeSelectLoadingForUri,
selectFileInfosByOutpoint,
selectIsFetchingFileList,
selectIsFetchingFileListDownloadedOrPublished,
selectDownloadingByOutpoint,
selectUrisLoading,
selectFileInfosDownloaded,
selectDownloadingFileInfos,
selectTotalDownloadProgress,
selectSearchDownloadUris,
2018-10-23 05:31:57 +02:00
selectFileListDownloadedSort,
selectFileListPublishedSort,
2018-04-05 04:57:29 +02: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,
2019-02-18 17:24:18 +01:00
selectSearchOptions,
2018-04-05 04:57:29 +02:00
selectIsSearching,
selectSearchUrisByQuery,
selectWunderBarAddress,
selectSearchBarFocused,
2018-08-15 05:57:35 +02:00
selectSearchSuggestions,
2019-02-18 17:24:18 +01:00
makeSelectQueryWithOptions,
2018-04-05 04:57:29 +02:00
} from 'redux/selectors/search';
export {
makeSelectBlockDate,
selectBalance,
selectTransactionsById,
selectTransactionItems,
selectRecentTransactions,
selectHasTransactions,
selectIsFetchingTransactions,
selectIsSendingSupport,
selectReceiveAddress,
selectGettingNewAddress,
selectDraftTransaction,
selectDraftTransactionAmount,
selectDraftTransactionAddress,
selectDraftTransactionError,
selectBlocks,
2018-07-18 04:55:40 +02:00
selectWalletIsEncrypted,
selectWalletState,
selectWalletEncryptPending,
selectWalletEncryptSucceeded,
2018-07-18 20:42:34 +02:00
selectWalletEncryptResult,
2018-07-18 04:55:40 +02:00
selectWalletDecryptPending,
selectWalletDecryptSucceeded,
2018-07-18 20:42:34 +02:00
selectWalletDecryptResult,
2018-07-18 04:55:40 +02:00
selectWalletUnlockPending,
selectWalletUnlockSucceeded,
2018-07-18 20:42:34 +02:00
selectWalletUnlockResult,
selectTransactionListFilter,
2018-04-05 04:57:29 +02:00
} from 'redux/selectors/wallet';