2018-04-05 04:57:29 +02:00
|
|
|
import * as ACTIONS from 'constants/action_types';
|
2018-05-05 21:17:57 +02:00
|
|
|
import * as MODALS from 'constants/modal_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 SEARCH_TYPES from 'constants/search';
|
|
|
|
import * as SETTINGS from 'constants/settings';
|
2018-04-05 04:57:29 +02: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 04:57:29 +02:00
|
|
|
// types
|
|
|
|
export { Notification } from 'types/Notification';
|
|
|
|
|
|
|
|
// constants
|
2018-06-14 22:22:16 +02:00
|
|
|
export { ACTIONS, MODALS, THUMBNAIL_STATUSES, SEARCH_TYPES, SETTINGS };
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
// common
|
|
|
|
export { Lbry, Lbryapi };
|
|
|
|
export {
|
|
|
|
regexInvalidURI,
|
|
|
|
regexAddress,
|
|
|
|
parseURI,
|
|
|
|
buildURI,
|
|
|
|
normalizeURI,
|
|
|
|
isURIValid,
|
|
|
|
isURIClaimable,
|
2018-04-24 20:14:47 +02:00
|
|
|
isNameValid,
|
2018-05-21 19:20:22 +02:00
|
|
|
convertToShareLink,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'lbryURI';
|
|
|
|
|
|
|
|
// actions
|
2018-04-19 20:55:37 +02:00
|
|
|
export { doNotify, doHideNotification } from 'redux/actions/notifications';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
export {
|
2018-05-25 13:34:12 +02:00
|
|
|
doFetchClaimsByChannel,
|
|
|
|
doFetchClaimCountByChannel,
|
2018-04-05 04:57:29 +02:00
|
|
|
doFetchClaimListMine,
|
|
|
|
doAbandonClaim,
|
|
|
|
doResolveUris,
|
|
|
|
doResolveUri,
|
|
|
|
doFetchFeaturedUris,
|
2018-06-06 02:24:01 +02:00
|
|
|
doFetchTrendingUris,
|
2018-04-05 04:57:29 +02:00
|
|
|
doFetchRewardedContent,
|
|
|
|
} from 'redux/actions/claims';
|
|
|
|
|
|
|
|
export { doFetchCostInfoForUri } from 'redux/actions/cost_info';
|
|
|
|
|
|
|
|
export {
|
|
|
|
doFetchFileInfo,
|
|
|
|
doFileList,
|
|
|
|
doFetchFileInfosAndPublishedClaims,
|
|
|
|
} from 'redux/actions/file_info';
|
|
|
|
|
2018-05-15 06:15:35 +02:00
|
|
|
export {
|
|
|
|
doSearch,
|
|
|
|
doUpdateSearchQuery,
|
|
|
|
doFocusSearchInput,
|
|
|
|
doBlurSearchInput,
|
|
|
|
} from 'redux/actions/search';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
2018-04-24 20:14:47 +02:00
|
|
|
export { doBlackListedOutpointsSubscribe } from 'redux/actions/blacklist';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
export {
|
|
|
|
doUpdateBalance,
|
|
|
|
doBalanceSubscribe,
|
|
|
|
doFetchTransactions,
|
|
|
|
doFetchBlock,
|
|
|
|
doGetNewAddress,
|
|
|
|
doCheckAddressIsMine,
|
|
|
|
doSendDraftTransaction,
|
|
|
|
doSetDraftTransactionAmount,
|
|
|
|
doSetDraftTransactionAddress,
|
|
|
|
doSendSupport,
|
|
|
|
} from 'redux/actions/wallet';
|
|
|
|
|
|
|
|
// utils
|
|
|
|
export { batchActions } from 'util/batchActions';
|
|
|
|
export { parseQueryParams, toQueryString } from 'util/query_params';
|
|
|
|
export { formatCredits, formatFullPrice } from 'util/formatCredits';
|
|
|
|
|
|
|
|
// 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 20:14:47 +02:00
|
|
|
export { blacklistReducer } from 'redux/reducers/blacklist';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
// selectors
|
2018-04-24 20:14:47 +02:00
|
|
|
export { selectBlackListedOutpoints } from 'redux/selectors/blacklist';
|
|
|
|
|
2018-04-19 20:55:37 +02:00
|
|
|
export {
|
|
|
|
selectNotification,
|
|
|
|
selectNotificationProps,
|
|
|
|
selectSnack,
|
|
|
|
} from 'redux/selectors/notifications';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
export {
|
|
|
|
makeSelectClaimForUri,
|
|
|
|
makeSelectClaimIsMine,
|
|
|
|
makeSelectFetchingChannelClaims,
|
|
|
|
makeSelectClaimsInChannelForCurrentPage,
|
2018-05-25 13:34:12 +02:00
|
|
|
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-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,
|
2018-06-06 02:24:01 +02:00
|
|
|
selectTrendingUris,
|
|
|
|
selectFetchingTrendingUris,
|
2018-04-05 04:57:29 +02:00
|
|
|
selectPlayingUri,
|
|
|
|
selectChannelClaimCounts,
|
|
|
|
selectRewardContentClaimIds,
|
|
|
|
} 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,
|
|
|
|
} from 'redux/selectors/file_info';
|
|
|
|
|
|
|
|
export {
|
|
|
|
computePageFromPath,
|
|
|
|
makeSelectCurrentParam,
|
|
|
|
selectCurrentPath,
|
|
|
|
selectCurrentPage,
|
|
|
|
selectCurrentParams,
|
|
|
|
selectHeaderLinks,
|
|
|
|
selectPageTitle,
|
|
|
|
selectPathAfterAuth,
|
|
|
|
selectIsBackDisabled,
|
|
|
|
selectIsForwardDisabled,
|
|
|
|
selectHistoryIndex,
|
|
|
|
selectHistoryStack,
|
|
|
|
selectActiveHistoryEntry,
|
|
|
|
selectNavLinks,
|
|
|
|
} from 'redux/selectors/navigation';
|
|
|
|
|
|
|
|
export { selectSearchState };
|
|
|
|
export {
|
|
|
|
makeSelectSearchUris,
|
|
|
|
selectSearchQuery,
|
|
|
|
selectSearchValue,
|
|
|
|
selectIsSearching,
|
|
|
|
selectSearchUrisByQuery,
|
|
|
|
selectWunderBarAddress,
|
2018-05-15 06:15:35 +02:00
|
|
|
selectSearchBarFocused,
|
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,
|
|
|
|
} from 'redux/selectors/wallet';
|