2019-07-01 21:49:51 +02:00
|
|
|
import * as CLAIM_VALUES from 'constants/claim';
|
2018-04-05 04:57:29 +02:00
|
|
|
import * as ACTIONS from 'constants/action_types';
|
2019-07-01 21:49:51 +02:00
|
|
|
import * as LICENSES from 'constants/licenses';
|
|
|
|
import * as PAGES from 'constants/pages';
|
2018-05-27 22:30:07 +02:00
|
|
|
import * as SETTINGS from 'constants/settings';
|
2018-10-23 05:31:57 +02:00
|
|
|
import * as SORT_OPTIONS from 'constants/sort_options';
|
2019-07-01 21:49:51 +02:00
|
|
|
import * as THUMBNAIL_STATUSES from 'constants/thumbnail_upload_statuses';
|
|
|
|
import * as TRANSACTIONS from 'constants/transaction_types';
|
2019-02-18 17:24:18 +01:00
|
|
|
import { SEARCH_TYPES, SEARCH_OPTIONS } from 'constants/search';
|
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
|
|
|
// constants
|
2019-02-18 17:24:18 +01:00
|
|
|
export {
|
|
|
|
ACTIONS,
|
2019-07-01 21:49:51 +02:00
|
|
|
CLAIM_VALUES,
|
|
|
|
LICENSES,
|
2019-02-18 17:24:18 +01:00
|
|
|
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,
|
2018-05-21 19:20:22 +02:00
|
|
|
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 {
|
2018-05-25 13:34:12 +02:00
|
|
|
doFetchClaimsByChannel,
|
2018-04-05 04:57:29 +02:00
|
|
|
doFetchClaimListMine,
|
|
|
|
doAbandonClaim,
|
|
|
|
doResolveUris,
|
|
|
|
doResolveUri,
|
2019-04-23 19:22:14 +02:00
|
|
|
doFetchChannelListMine,
|
|
|
|
doCreateChannel,
|
2019-07-01 03:16:44 +02:00
|
|
|
doUpdateChannel,
|
2019-06-11 20:11:18 +02:00
|
|
|
doClaimSearch,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/actions/claims';
|
|
|
|
|
2019-05-27 15:59:21 +02:00
|
|
|
export { doDeletePurchasedUri, doPurchaseUri, doFileGet } from 'redux/actions/file';
|
2019-05-21 21:18:07 +02:00
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
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';
|
|
|
|
|
2019-07-01 21:49:51 +02:00
|
|
|
export {
|
|
|
|
doResetThumbnailStatus,
|
|
|
|
doClearPublish,
|
|
|
|
doUpdatePublishForm,
|
|
|
|
doUploadThumbnail,
|
|
|
|
doPrepareEdit,
|
|
|
|
doPublish,
|
|
|
|
doCheckPendingPublishes
|
|
|
|
} from 'redux/actions/publish';
|
|
|
|
|
2018-05-15 06:15:35 +02:00
|
|
|
export {
|
|
|
|
doSearch,
|
|
|
|
doUpdateSearchQuery,
|
|
|
|
doFocusSearchInput,
|
|
|
|
doBlurSearchInput,
|
2019-01-29 17:44:10 +01:00
|
|
|
setSearchApi,
|
2019-02-18 17:24:18 +01:00
|
|
|
doUpdateSearchOptions,
|
2018-05-15 06:15:35 +02:00
|
|
|
} from 'redux/actions/search';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
2019-03-20 14:54:36 +01:00
|
|
|
export { savePosition } from 'redux/actions/content';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
export {
|
|
|
|
doUpdateBalance,
|
|
|
|
doBalanceSubscribe,
|
2019-04-18 09:56:16 +02:00
|
|
|
doUpdateTotalBalance,
|
|
|
|
doTotalBalanceSubscribe,
|
2018-04-05 04:57:29 +02:00
|
|
|
doFetchTransactions,
|
|
|
|
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,
|
2018-10-17 20:22:17 +02:00
|
|
|
doSetTransactionListFilter,
|
2018-11-07 16:55:44 +01:00
|
|
|
doUpdateBlockHeight,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/actions/wallet';
|
|
|
|
|
2019-06-11 20:11:18 +02:00
|
|
|
export { doToggleTagFollow, doAddTag, doDeleteTag } from 'redux/actions/tags';
|
2019-06-10 04:45:47 +02:00
|
|
|
|
2019-06-12 03:14:37 +02:00
|
|
|
export { doCommentList, doCommentCreate } from 'redux/actions/comments';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
// 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';
|
2019-05-09 15:57:58 +02:00
|
|
|
export { isClaimNsfw } from 'util/claim';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
// reducers
|
|
|
|
export { claimsReducer } from 'redux/reducers/claims';
|
2019-07-01 21:49:51 +02:00
|
|
|
export { commentReducer } from 'redux/reducers/comments';
|
|
|
|
export { contentReducer } from 'redux/reducers/content';
|
2018-04-05 04:57:29 +02:00
|
|
|
export { fileInfoReducer } from 'redux/reducers/file_info';
|
2019-07-01 21:49:51 +02:00
|
|
|
export { fileReducer } from 'redux/reducers/file';
|
2018-04-05 04:57:29 +02:00
|
|
|
export { notificationsReducer } from 'redux/reducers/notifications';
|
2019-07-01 21:49:51 +02:00
|
|
|
export { publishReducer } from 'redux/reducers/publish';
|
2018-04-05 04:57:29 +02:00
|
|
|
export { searchReducer } from 'redux/reducers/search';
|
2019-06-13 18:10:27 +02:00
|
|
|
export { tagsReducerBuilder } from 'redux/reducers/tags';
|
2019-07-01 21:49:51 +02:00
|
|
|
export { walletReducer } from 'redux/reducers/wallet';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
|
|
|
// selectors
|
2019-03-20 14:54:36 +01:00
|
|
|
export { makeSelectContentPositionForUri } from 'redux/selectors/content';
|
|
|
|
|
2018-11-12 19:01:14 +01:00
|
|
|
export { selectToast, selectError } from 'redux/selectors/notifications';
|
2018-04-05 04:57:29 +02:00
|
|
|
|
2019-05-21 21:18:07 +02:00
|
|
|
export {
|
|
|
|
selectFailedPurchaseUris,
|
|
|
|
selectPurchasedUris,
|
|
|
|
selectPurchasedStreamingUrls,
|
2019-05-27 15:59:21 +02:00
|
|
|
selectPurchaseUriErrorMessage,
|
2019-05-21 21:18:07 +02:00
|
|
|
selectLastPurchasedUri,
|
|
|
|
makeSelectStreamingUrlForUri,
|
|
|
|
} from 'redux/selectors/file';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
export {
|
|
|
|
makeSelectClaimForUri,
|
|
|
|
makeSelectClaimIsMine,
|
|
|
|
makeSelectFetchingChannelClaims,
|
2018-05-25 13:34:12 +02:00
|
|
|
makeSelectClaimsInChannelForPage,
|
2018-04-05 04:57:29 +02:00
|
|
|
makeSelectMetadataForUri,
|
2019-05-06 19:57:07 +02:00
|
|
|
makeSelectMetadataItemForUri,
|
|
|
|
makeSelectThumbnailForUri,
|
|
|
|
makeSelectCoverForUri,
|
2018-04-05 04:57:29 +02:00
|
|
|
makeSelectTitleForUri,
|
2019-05-06 04:00:45 +02:00
|
|
|
makeSelectDateForUri,
|
2019-07-01 03:16:44 +02:00
|
|
|
makeSelectAmountForUri,
|
2019-06-10 04:45:47 +02:00
|
|
|
makeSelectTagsForUri,
|
2018-04-05 04:57:29 +02:00
|
|
|
makeSelectContentTypeForUri,
|
|
|
|
makeSelectIsUriResolving,
|
|
|
|
makeSelectTotalItemsForChannel,
|
|
|
|
makeSelectTotalPagesForChannel,
|
2018-07-11 01:15:39 +02:00
|
|
|
makeSelectNsfwCountFromUris,
|
|
|
|
makeSelectNsfwCountForChannel,
|
2019-04-23 21:02:32 +02:00
|
|
|
makeSelectClaimIsNsfw,
|
2018-08-02 05:31:51 +02:00
|
|
|
makeSelectRecommendedContentForUri,
|
2019-01-28 20:38:28 +01:00
|
|
|
makeSelectFirstRecommendedFileForUri,
|
2018-10-18 19:46:31 +02:00
|
|
|
makeSelectChannelForClaimUri,
|
2018-10-25 18:57:55 +02:00
|
|
|
makeSelectClaimIsPending,
|
|
|
|
makeSelectPendingByUri,
|
2019-02-19 02:30:10 +01:00
|
|
|
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,
|
2019-06-11 20:36:01 +02:00
|
|
|
selectMyClaimUrisWithoutChannels,
|
2018-04-05 04:57:29 +02:00
|
|
|
selectAllMyClaimsByOutpoint,
|
|
|
|
selectMyClaimsOutpoints,
|
|
|
|
selectFetchingMyChannels,
|
|
|
|
selectMyChannelClaims,
|
|
|
|
selectResolvingUris,
|
|
|
|
selectPlayingUri,
|
|
|
|
selectChannelClaimCounts,
|
2019-02-19 02:30:10 +01:00
|
|
|
selectCurrentChannelPage,
|
2019-06-11 20:11:18 +02:00
|
|
|
selectFetchingClaimSearch,
|
|
|
|
selectLastClaimSearchUris,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/selectors/claims';
|
|
|
|
|
2019-06-12 03:14:37 +02:00
|
|
|
export { makeSelectCommentsForUri } from 'redux/selectors/comments';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
export {
|
|
|
|
makeSelectFileInfoForUri,
|
|
|
|
makeSelectDownloadingForUri,
|
|
|
|
makeSelectLoadingForUri,
|
|
|
|
selectFileInfosByOutpoint,
|
|
|
|
selectIsFetchingFileList,
|
|
|
|
selectIsFetchingFileListDownloadedOrPublished,
|
|
|
|
selectDownloadingByOutpoint,
|
|
|
|
selectUrisLoading,
|
|
|
|
selectFileInfosDownloaded,
|
|
|
|
selectDownloadingFileInfos,
|
|
|
|
selectTotalDownloadProgress,
|
|
|
|
selectSearchDownloadUris,
|
2018-10-23 05:31:57 +02:00
|
|
|
selectFileListDownloadedSort,
|
|
|
|
selectFileListPublishedSort,
|
2019-06-10 04:45:47 +02:00
|
|
|
selectDownloadedUris,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/selectors/file_info';
|
|
|
|
|
2019-07-01 21:49:51 +02:00
|
|
|
export {
|
|
|
|
selectPublishFormValues,
|
|
|
|
selectIsStillEditing,
|
|
|
|
selectMyClaimForUri,
|
|
|
|
selectIsResolvingPublishUris,
|
|
|
|
selectTakeOverAmount,
|
|
|
|
} from 'redux/selectors/publish';
|
|
|
|
|
2018-04-05 04:57:29 +02:00
|
|
|
export { selectSearchState };
|
|
|
|
export {
|
|
|
|
makeSelectSearchUris,
|
|
|
|
selectSearchValue,
|
2019-02-18 17:24:18 +01:00
|
|
|
selectSearchOptions,
|
2018-04-05 04:57:29 +02:00
|
|
|
selectIsSearching,
|
|
|
|
selectSearchUrisByQuery,
|
2018-05-15 06:15:35 +02:00
|
|
|
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 {
|
|
|
|
selectBalance,
|
2019-04-18 09:56:16 +02:00
|
|
|
selectTotalBalance,
|
2018-04-05 04:57:29 +02:00
|
|
|
selectTransactionsById,
|
2019-05-14 06:50:21 +02:00
|
|
|
selectSupportsByOutpoint,
|
2018-04-05 04:57:29 +02:00
|
|
|
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,
|
2018-10-17 20:22:17 +02:00
|
|
|
selectTransactionListFilter,
|
2018-04-05 04:57:29 +02:00
|
|
|
} from 'redux/selectors/wallet';
|
2019-06-10 04:45:47 +02:00
|
|
|
|
2019-06-11 20:11:18 +02:00
|
|
|
export { selectFollowedTags, selectUnfollowedTags } from 'redux/selectors/tags';
|