Merge pull request #737 from seanyesmunt/redux-cleanup

Move all redux code into /redux folder
This commit is contained in:
Liam Cardenas 2017-11-16 12:39:50 -05:00 committed by GitHub
commit 1f20995e99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
107 changed files with 279 additions and 258 deletions

View file

@ -1,10 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectPageTitle } from "selectors/navigation"; import { selectPageTitle } from "redux/selectors/navigation";
import { selectUser } from "selectors/user"; import { selectUser } from "redux/selectors/user";
import { doCheckUpgradeAvailable, doAlertError } from "actions/app"; import { doCheckUpgradeAvailable, doAlertError } from "redux/actions/app";
import { doRecordScroll } from "actions/navigation"; import { doRecordScroll } from "redux/actions/navigation";
import { doFetchRewardedContent } from "actions/content"; import { doFetchRewardedContent } from "redux/actions/content";
import App from "./view"; import App from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectUserEmail } from "selectors/user"; import { selectUserEmail } from "redux/selectors/user";
import CardVerify from "./view"; import CardVerify from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,10 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { makeSelectClaimForUri } from "selectors/claims"; import { makeSelectClaimForUri } from "redux/selectors/claims";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { doResolveUri } from "actions/content"; import { doResolveUri } from "redux/actions/content";
import { makeSelectTotalItemsForChannel } from "selectors/content"; import { makeSelectTotalItemsForChannel } from "redux/selectors/content";
import { makeSelectIsUriResolving } from "selectors/content"; import { makeSelectIsUriResolving } from "redux/selectors/content";
import ChannelTile from "./view"; import ChannelTile from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { makeSelectBlockDate } from "selectors/wallet"; import { makeSelectBlockDate } from "redux/selectors/wallet";
import { doFetchBlock } from "actions/wallet"; import { doFetchBlock } from "redux/actions/wallet";
import DateTime from "./view"; import DateTime from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,9 +1,9 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { makeSelectFileInfoForUri } from "selectors/file_info"; import { makeSelectFileInfoForUri } from "redux/selectors/file_info";
import { makeSelectCostInfoForUri } from "selectors/cost_info"; import { makeSelectCostInfoForUri } from "redux/selectors/cost_info";
import { doOpenModal } from "actions/app"; import { doOpenModal } from "redux/actions/app";
import { makeSelectClaimIsMine } from "selectors/claims"; import { makeSelectClaimIsMine } from "redux/selectors/claims";
import FileActions from "./view"; import FileActions from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,17 +1,17 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { doResolveUri } from "actions/content"; import { doResolveUri } from "redux/actions/content";
import { selectShowNsfw } from "selectors/settings"; import { selectShowNsfw } from "redux/selectors/settings";
import { import {
makeSelectClaimForUri, makeSelectClaimForUri,
makeSelectMetadataForUri, makeSelectMetadataForUri,
} from "selectors/claims"; } from "redux/selectors/claims";
import { makeSelectFileInfoForUri } from "selectors/file_info"; import { makeSelectFileInfoForUri } from "redux/selectors/file_info";
import { import {
makeSelectIsUriResolving, makeSelectIsUriResolving,
selectRewardContentClaimIds, selectRewardContentClaimIds,
} from "selectors/content"; } from "redux/selectors/content";
import FileCard from "./view"; import FileCard from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -4,10 +4,10 @@ import {
makeSelectClaimForUri, makeSelectClaimForUri,
makeSelectContentTypeForUri, makeSelectContentTypeForUri,
makeSelectMetadataForUri, makeSelectMetadataForUri,
} from "selectors/claims"; } from "redux/selectors/claims";
import FileDetails from "./view"; import FileDetails from "./view";
import { doOpenFileInFolder } from "actions/file_info"; import { doOpenFileInFolder } from "redux/actions/file_info";
import { makeSelectFileInfoForUri } from "selectors/file_info"; import { makeSelectFileInfoForUri } from "redux/selectors/file_info";
const select = (state, props) => ({ const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state), claim: makeSelectClaimForUri(props.uri)(state),

View file

@ -4,11 +4,11 @@ import {
makeSelectFileInfoForUri, makeSelectFileInfoForUri,
makeSelectDownloadingForUri, makeSelectDownloadingForUri,
makeSelectLoadingForUri, makeSelectLoadingForUri,
} from "selectors/file_info"; } from "redux/selectors/file_info";
import { makeSelectCostInfoForUri } from "selectors/cost_info"; import { makeSelectCostInfoForUri } from "redux/selectors/cost_info";
import { doFetchAvailability } from "actions/availability"; import { doFetchAvailability } from "redux/actions/availability";
import { doOpenFileInShell } from "actions/file_info"; import { doOpenFileInShell } from "redux/actions/file_info";
import { doPurchaseUri, doStartDownload } from "actions/content"; import { doPurchaseUri, doStartDownload } from "redux/actions/content";
import FileDownloadLink from "./view"; import FileDownloadLink from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,7 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doSearch } from "actions/search"; import { doSearch } from "redux/actions/search";
import { selectIsSearching, makeSelectSearchUris } from "selectors/search"; import {
selectIsSearching,
makeSelectSearchUris,
} from "redux/selectors/search";
import FileListSearch from "./view"; import FileListSearch from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,11 +1,11 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doFetchCostInfoForUri } from "actions/cost_info"; import { doFetchCostInfoForUri } from "redux/actions/cost_info";
import { import {
makeSelectCostInfoForUri, makeSelectCostInfoForUri,
makeSelectFetchingCostInfoForUri, makeSelectFetchingCostInfoForUri,
} from "selectors/cost_info"; } from "redux/selectors/cost_info";
import { makeSelectClaimForUri } from "selectors/claims"; import { makeSelectClaimForUri } from "redux/selectors/claims";
import FilePrice from "./view"; import FilePrice from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,17 +1,17 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { doResolveUri } from "actions/content"; import { doResolveUri } from "redux/actions/content";
import { import {
makeSelectClaimForUri, makeSelectClaimForUri,
makeSelectMetadataForUri, makeSelectMetadataForUri,
} from "selectors/claims"; } from "redux/selectors/claims";
import { makeSelectFileInfoForUri } from "selectors/file_info"; import { makeSelectFileInfoForUri } from "redux/selectors/file_info";
import { selectShowNsfw } from "selectors/settings"; import { selectShowNsfw } from "redux/selectors/settings";
import { import {
makeSelectIsUriResolving, makeSelectIsUriResolving,
selectRewardContentClaimIds, selectRewardContentClaimIds,
} from "selectors/content"; } from "redux/selectors/content";
import FileTile from "./view"; import FileTile from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -4,13 +4,13 @@ import { connect } from "react-redux";
import { import {
selectIsBackDisabled, selectIsBackDisabled,
selectIsForwardDisabled, selectIsForwardDisabled,
} from "selectors/navigation"; } from "redux/selectors/navigation";
import { selectBalance } from "selectors/wallet"; import { selectBalance } from "redux/selectors/wallet";
import { import {
doNavigate, doNavigate,
doHistoryBack, doHistoryBack,
doHistoryForward, doHistoryForward,
} from "actions/navigation"; } from "redux/actions/navigation";
import Header from "./view"; import Header from "./view";
const select = state => ({ const select = state => ({

View file

@ -3,7 +3,7 @@ import { connect } from "react-redux";
import { import {
selectUserInvitees, selectUserInvitees,
selectUserInviteStatusIsPending, selectUserInviteStatusIsPending,
} from "selectors/user"; } from "redux/selectors/user";
import InviteList from "./view"; import InviteList from "./view";
const select = state => ({ const select = state => ({

View file

@ -5,11 +5,11 @@ import {
selectUserInvitesRemaining, selectUserInvitesRemaining,
selectUserInviteNewIsPending, selectUserInviteNewIsPending,
selectUserInviteNewErrorMessage, selectUserInviteNewErrorMessage,
} from "selectors/user"; } from "redux/selectors/user";
import rewards from "rewards"; import rewards from "rewards";
import { makeSelectRewardAmountByType } from "selectors/rewards"; import { makeSelectRewardAmountByType } from "redux/selectors/rewards";
import { doUserInviteNew } from "actions/user"; import { doUserInviteNew } from "redux/actions/user";
const select = state => { const select = state => {
const selectReward = makeSelectRewardAmountByType(); const selectReward = makeSelectRewardAmountByType();

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import Link from "./view"; import Link from "./view";
const perform = dispatch => ({ const perform = dispatch => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import NsfwOverlay from "./view"; import NsfwOverlay from "./view";
const perform = dispatch => ({ const perform = dispatch => ({

View file

@ -4,9 +4,12 @@ import {
makeSelectClaimRewardError, makeSelectClaimRewardError,
makeSelectRewardByType, makeSelectRewardByType,
makeSelectIsRewardClaimPending, makeSelectIsRewardClaimPending,
} from "selectors/rewards"; } from "redux/selectors/rewards";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { doClaimRewardType, doClaimRewardClearError } from "actions/rewards"; import {
doClaimRewardType,
doClaimRewardClearError,
} from "redux/actions/rewards";
import RewardLink from "./view"; import RewardLink from "./view";
const makeSelect = () => { const makeSelect = () => {

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectClaimedRewards } from "selectors/rewards"; import { selectClaimedRewards } from "redux/selectors/rewards";
import RewardListClaimed from "./view"; import RewardListClaimed from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectUnclaimedRewardValue } from "selectors/rewards"; import { selectUnclaimedRewardValue } from "redux/selectors/rewards";
import RewardSummary from "./view"; import RewardSummary from "./view";
const select = state => ({ const select = state => ({

View file

@ -4,7 +4,7 @@ import Router from "./view.jsx";
import { import {
selectCurrentPage, selectCurrentPage,
selectCurrentParams, selectCurrentParams,
} from "selectors/navigation.js"; } from "redux/selectors/navigation.js";
const select = state => ({ const select = state => ({
params: selectCurrentParams(state), params: selectCurrentParams(state),

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doRemoveSnackBarSnack } from "actions/app"; import { doRemoveSnackBarSnack } from "redux/actions/app";
import { selectSnackBarSnacks } from "selectors/app"; import { selectSnackBarSnacks } from "redux/selectors/app";
import SnackBar from "./view"; import SnackBar from "./view";
const perform = dispatch => ({ const perform = dispatch => ({

View file

@ -1,8 +1,11 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectCurrentModal, selectDaemonVersionMatched } from "selectors/app"; import {
import { doCheckDaemonVersion } from "actions/app"; selectCurrentModal,
selectDaemonVersionMatched,
} from "redux/selectors/app";
import { doCheckDaemonVersion } from "redux/actions/app";
import SplashScreen from "./view"; import SplashScreen from "./view";
const select = state => { const select = state => {

View file

@ -1,7 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectCurrentPage, selectHeaderLinks } from "selectors/navigation"; import {
import { doNavigate } from "actions/navigation"; selectCurrentPage,
selectHeaderLinks,
} from "redux/selectors/navigation";
import { doNavigate } from "redux/actions/navigation";
import SubHeader from "./view"; import SubHeader from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectThemePath } from "selectors/settings.js"; import { selectThemePath } from "redux/selectors/settings.js";
import Theme from "./view"; import Theme from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,9 +1,9 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { doOpenModal } from "actions/app"; import { doOpenModal } from "redux/actions/app";
import { selectClaimedRewardsByTransactionId } from "selectors/rewards"; import { selectClaimedRewardsByTransactionId } from "redux/selectors/rewards";
import { selectAllMyClaimsByOutpoint } from "selectors/claims"; import { selectAllMyClaimsByOutpoint } from "redux/selectors/claims";
import TransactionList from "./view"; import TransactionList from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,12 +1,12 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doFetchTransactions } from "actions/wallet"; import { doFetchTransactions } from "redux/actions/wallet";
import { import {
selectBalance, selectBalance,
selectRecentTransactions, selectRecentTransactions,
selectHasTransactions, selectHasTransactions,
selectIsFetchingTransactions, selectIsFetchingTransactions,
} from "selectors/wallet"; } from "redux/selectors/wallet";
import TransactionListRecent from "./view"; import TransactionListRecent from "./view";

View file

@ -1,9 +1,9 @@
import React from "react"; import React from "react";
import lbryuri from "lbryuri"; import lbryuri from "lbryuri";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doResolveUri } from "actions/content"; import { doResolveUri } from "redux/actions/content";
import { makeSelectIsUriResolving } from "selectors/content"; import { makeSelectIsUriResolving } from "redux/selectors/content";
import { makeSelectClaimForUri } from "selectors/claims"; import { makeSelectClaimForUri } from "redux/selectors/claims";
import UriIndicator from "./view"; import UriIndicator from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,10 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doUserEmailNew, doUserInviteNew } from "actions/user"; import { doUserEmailNew, doUserInviteNew } from "redux/actions/user";
import { import {
selectEmailNewIsPending, selectEmailNewIsPending,
selectEmailNewErrorMessage, selectEmailNewErrorMessage,
} from "selectors/user"; } from "redux/selectors/user";
import UserEmailNew from "./view"; import UserEmailNew from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,11 +1,11 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doUserEmailVerify } from "actions/user"; import { doUserEmailVerify } from "redux/actions/user";
import { import {
selectEmailVerifyIsPending, selectEmailVerifyIsPending,
selectEmailToVerify, selectEmailToVerify,
selectEmailVerifyErrorMessage, selectEmailVerifyErrorMessage,
} from "selectors/user"; } from "redux/selectors/user";
import UserEmailVerify from "./view"; import UserEmailVerify from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,13 +1,13 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { doUserIdentityVerify } from "actions/user"; import { doUserIdentityVerify } from "redux/actions/user";
import rewards from "rewards"; import rewards from "rewards";
import { makeSelectRewardByType } from "selectors/rewards"; import { makeSelectRewardByType } from "redux/selectors/rewards";
import { import {
selectIdentityVerifyIsPending, selectIdentityVerifyIsPending,
selectIdentityVerifyErrorMessage, selectIdentityVerifyErrorMessage,
} from "selectors/user"; } from "redux/selectors/user";
import UserVerify from "./view"; import UserVerify from "./view";
const select = (state, props) => { const select = (state, props) => {

View file

@ -1,21 +1,21 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doChangeVolume } from "actions/app"; import { doChangeVolume } from "redux/actions/app";
import { selectVolume } from "selectors/app"; import { selectVolume } from "redux/selectors/app";
import { doPlayUri, doSetPlayingUri } from "actions/content"; import { doPlayUri, doSetPlayingUri } from "redux/actions/content";
import { import {
makeSelectMetadataForUri, makeSelectMetadataForUri,
makeSelectContentTypeForUri, makeSelectContentTypeForUri,
} from "selectors/claims"; } from "redux/selectors/claims";
import { import {
makeSelectFileInfoForUri, makeSelectFileInfoForUri,
makeSelectLoadingForUri, makeSelectLoadingForUri,
makeSelectDownloadingForUri, makeSelectDownloadingForUri,
} from "selectors/file_info"; } from "redux/selectors/file_info";
import { makeSelectCostInfoForUri } from "selectors/cost_info"; import { makeSelectCostInfoForUri } from "redux/selectors/cost_info";
import { selectShowNsfw } from "selectors/settings"; import { selectShowNsfw } from "redux/selectors/settings";
import Video from "./view"; import Video from "./view";
import { selectPlayingUri } from "selectors/content"; import { selectPlayingUri } from "redux/selectors/content";
const select = (state, props) => ({ const select = (state, props) => ({
costInfo: makeSelectCostInfoForUri(props.uri)(state), costInfo: makeSelectCostInfoForUri(props.uri)(state),

View file

@ -1,10 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCheckAddressIsMine, doGetNewAddress } from "actions/wallet"; import { doCheckAddressIsMine, doGetNewAddress } from "redux/actions/wallet";
import { import {
selectReceiveAddress, selectReceiveAddress,
selectGettingNewAddress, selectGettingNewAddress,
} from "selectors/wallet"; } from "redux/selectors/wallet";
import WalletAddress from "./view"; import WalletAddress from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectBalance } from "selectors/wallet"; import { selectBalance } from "redux/selectors/wallet";
import WalletBalance from "./view"; import WalletBalance from "./view";
const select = state => ({ const select = state => ({

View file

@ -4,12 +4,12 @@ import {
doSendDraftTransaction, doSendDraftTransaction,
doSetDraftTransactionAmount, doSetDraftTransactionAmount,
doSetDraftTransactionAddress, doSetDraftTransactionAddress,
} from "actions/wallet"; } from "redux/actions/wallet";
import { import {
selectDraftTransactionAmount, selectDraftTransactionAmount,
selectDraftTransactionAddress, selectDraftTransactionAddress,
selectDraftTransactionError, selectDraftTransactionError,
} from "selectors/wallet"; } from "redux/selectors/wallet";
import WalletSend from "./view"; import WalletSend from "./view";

View file

@ -1,9 +1,9 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doSendSupport } from "actions/wallet"; import { doSendSupport } from "redux/actions/wallet";
import WalletSendTip from "./view"; import WalletSendTip from "./view";
import { makeSelectTitleForUri } from "selectors/claims"; import { makeSelectTitleForUri } from "redux/selectors/claims";
import { selectIsSendingSupport } from "selectors/wallet"; import { selectIsSendingSupport } from "redux/selectors/wallet";
const select = (state, props) => ({ const select = (state, props) => ({
isPending: selectIsSendingSupport(state), isPending: selectIsSendingSupport(state),

View file

@ -1,8 +1,11 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import lbryuri from "lbryuri.js"; import lbryuri from "lbryuri.js";
import { selectWunderBarAddress, selectWunderBarIcon } from "selectors/search"; import {
import { doNavigate } from "actions/navigation"; selectWunderBarAddress,
selectWunderBarIcon,
} from "redux/selectors/search";
import { doNavigate } from "redux/actions/navigation";
import Wunderbar from "./view"; import Wunderbar from "./view";
const select = state => ({ const select = state => ({

View file

@ -5,9 +5,9 @@ import SnackBar from "component/snackBar";
import { Provider } from "react-redux"; import { Provider } from "react-redux";
import store from "store.js"; import store from "store.js";
import SplashScreen from "component/splash"; import SplashScreen from "component/splash";
import { doDaemonReady } from "actions/app"; import { doDaemonReady } from "redux/actions/app";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { doDownloadLanguages } from "actions/settings"; import { doDownloadLanguages } from "redux/actions/settings";
import * as types from "constants/action_types"; import * as types from "constants/action_types";
const env = ENV; const env = ENV;

View file

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { doLoadVideo, doSetPlayingUri } from "actions/content"; import { doLoadVideo, doSetPlayingUri } from "redux/actions/content";
import { makeSelectMetadataForUri } from "selectors/claims"; import { makeSelectMetadataForUri } from "redux/selectors/claims";
import ModalAffirmPurchase from "./view"; import ModalAffirmPurchase from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import ModalAuthFailure from "./view"; import ModalAuthFailure from "./view";
const select = state => ({}); const select = state => ({});

View file

@ -1,15 +1,15 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { doAuthNavigate } from "actions/navigation"; import { doAuthNavigate } from "redux/actions/navigation";
import { doSetClientSetting } from "actions/settings"; import { doSetClientSetting } from "redux/actions/settings";
import { selectUserIsRewardApproved } from "selectors/user"; import { selectUserIsRewardApproved } from "redux/selectors/user";
import { selectBalance } from "selectors/wallet"; import { selectBalance } from "redux/selectors/wallet";
import { import {
makeSelectHasClaimedReward, makeSelectHasClaimedReward,
makeSelectRewardByType, makeSelectRewardByType,
selectUnclaimedRewardValue, selectUnclaimedRewardValue,
} from "selectors/rewards"; } from "redux/selectors/rewards";
import * as settings from "constants/settings"; import * as settings from "constants/settings";
import ModalCreditIntro from "./view"; import ModalCreditIntro from "./view";

View file

@ -1,7 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doStartUpgrade, doCancelUpgrade } from "actions/app"; import { doStartUpgrade, doCancelUpgrade } from "redux/actions/app";
import { selectDownloadProgress, selectDownloadComplete } from "selectors/app"; import {
selectDownloadProgress,
selectDownloadComplete,
} from "redux/selectors/app";
import ModalDownloading from "./view"; import ModalDownloading from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import ModalError from "./view"; import ModalError from "./view";
const perform = dispatch => ({ const perform = dispatch => ({

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { makeSelectMetadataForUri } from "selectors/claims"; import { makeSelectMetadataForUri } from "redux/selectors/claims";
import ModalFileTimeout from "./view"; import ModalFileTimeout from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import rewards from "rewards"; import rewards from "rewards";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { makeSelectRewardByType } from "selectors/rewards"; import { makeSelectRewardByType } from "redux/selectors/rewards";
import ModalFirstReward from "./view"; import ModalFirstReward from "./view";
const select = (state, props) => { const select = (state, props) => {

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doQuit, doSkipWrongDaemonNotice } from "actions/app"; import { doQuit, doSkipWrongDaemonNotice } from "redux/actions/app";
import ModalIncompatibleDaemon from "./view"; import ModalIncompatibleDaemon from "./view";
const select = state => ({}); const select = state => ({});

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import ModalInsufficientBalance from "./view"; import ModalInsufficientBalance from "./view";
const select = state => ({}); const select = state => ({});

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import ModalInsufficientCredits from "./view"; import ModalInsufficientCredits from "./view";
const select = state => ({}); const select = state => ({});

View file

@ -1,9 +1,12 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { doDeleteFileAndGoBack } from "actions/file_info"; import { doDeleteFileAndGoBack } from "redux/actions/file_info";
import { makeSelectTitleForUri, makeSelectClaimIsMine } from "selectors/claims"; import {
import { makeSelectFileInfoForUri } from "selectors/file_info"; makeSelectTitleForUri,
makeSelectClaimIsMine,
} from "redux/selectors/claims";
import { makeSelectFileInfoForUri } from "redux/selectors/file_info";
import ModalRemoveFile from "./view"; import ModalRemoveFile from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { doAbandonClaim } from "actions/content"; import { doAbandonClaim } from "redux/actions/content";
import { selectTransactionItems } from "selectors/wallet"; import { selectTransactionItems } from "redux/selectors/wallet";
import ModalRevokeClaim from "./view"; import ModalRevokeClaim from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { doAuthNavigate } from "actions/navigation"; import { doAuthNavigate } from "redux/actions/navigation";
import ModalRewardApprovalRequired from "./view"; import ModalRewardApprovalRequired from "./view";
const perform = dispatch => ({ const perform = dispatch => ({

View file

@ -1,13 +1,13 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doOpenModal } from "actions/app"; import { doOpenModal } from "redux/actions/app";
import * as settings from "constants/settings"; import * as settings from "constants/settings";
import { selectCurrentModal, selectModalProps } from "selectors/app"; import { selectCurrentModal, selectModalProps } from "redux/selectors/app";
import { selectCurrentPage } from "selectors/navigation"; import { selectCurrentPage } from "redux/selectors/navigation";
import { selectCostForCurrentPageUri } from "selectors/cost_info"; import { selectCostForCurrentPageUri } from "redux/selectors/cost_info";
import { makeSelectClientSetting } from "selectors/settings"; import { makeSelectClientSetting } from "redux/selectors/settings";
import { selectUser } from "selectors/user"; import { selectUser } from "redux/selectors/user";
import { selectBalance } from "selectors/wallet"; import { selectBalance } from "redux/selectors/wallet";
import ModalRouter from "./view"; import ModalRouter from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import ModalTransactionFailed from "./view"; import ModalTransactionFailed from "./view";
const select = state => ({}); const select = state => ({});

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doDownloadUpgrade, doSkipUpgrade } from "actions/app"; import { doDownloadUpgrade, doSkipUpgrade } from "redux/actions/app";
import ModalUpgrade from "./view"; import ModalUpgrade from "./view";
const select = state => ({}); const select = state => ({});

View file

@ -2,8 +2,8 @@ import React from "react";
import * as settings from "constants/settings"; import * as settings from "constants/settings";
import * as modals from "constants/modal_types"; import * as modals from "constants/modal_types";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doCloseModal, doOpenModal } from "actions/app"; import { doCloseModal, doOpenModal } from "redux/actions/app";
import { doSetClientSetting } from "actions/settings"; import { doSetClientSetting } from "redux/actions/settings";
import ModalWelcome from "./view"; import ModalWelcome from "./view";
const perform = dispatch => () => ({ const perform = dispatch => () => ({

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectPathAfterAuth } from "selectors/navigation"; import { selectPathAfterAuth } from "redux/selectors/navigation";
import { import {
selectAuthenticationIsPending, selectAuthenticationIsPending,
selectEmailToVerify, selectEmailToVerify,
@ -9,7 +9,7 @@ import {
selectUser, selectUser,
selectUserIsPending, selectUserIsPending,
selectIdentityVerifyIsPending, selectIdentityVerifyIsPending,
} from "selectors/user"; } from "redux/selectors/user";
import AuthPage from "./view"; import AuthPage from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,6 +1,6 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectDaemonSettings } from "selectors/settings"; import { selectDaemonSettings } from "redux/selectors/settings";
import BackupPage from "./view"; import BackupPage from "./view";
const select = state => ({ const select = state => ({

View file

@ -3,18 +3,18 @@ import { connect } from "react-redux";
import { import {
doFetchClaimsByChannel, doFetchClaimsByChannel,
doFetchClaimCountByChannel, doFetchClaimCountByChannel,
} from "actions/content"; } from "redux/actions/content";
import { import {
makeSelectClaimForUri, makeSelectClaimForUri,
makeSelectClaimsInChannelForCurrentPage, makeSelectClaimsInChannelForCurrentPage,
makeSelectFetchingChannelClaims, makeSelectFetchingChannelClaims,
} from "selectors/claims"; } from "redux/selectors/claims";
import { import {
makeSelectCurrentParam, makeSelectCurrentParam,
selectCurrentParams, selectCurrentParams,
} from "selectors/navigation"; } from "redux/selectors/navigation";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { makeSelectTotalPagesForChannel } from "selectors/content"; import { makeSelectTotalPagesForChannel } from "redux/selectors/content";
import ChannelPage from "./view"; import ChannelPage from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,10 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doFetchFeaturedUris } from "actions/content"; import { doFetchFeaturedUris } from "redux/actions/content";
import { import {
selectFeaturedUris, selectFeaturedUris,
selectFetchingFeaturedUris, selectFetchingFeaturedUris,
} from "selectors/content"; } from "redux/selectors/content";
import DiscoverPage from "./view"; import DiscoverPage from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,19 +1,19 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { doFetchFileInfo } from "actions/file_info"; import { doFetchFileInfo } from "redux/actions/file_info";
import { makeSelectFileInfoForUri } from "selectors/file_info"; import { makeSelectFileInfoForUri } from "redux/selectors/file_info";
import { selectRewardContentClaimIds } from "selectors/content"; import { selectRewardContentClaimIds } from "redux/selectors/content";
import { doFetchCostInfoForUri } from "actions/cost_info"; import { doFetchCostInfoForUri } from "redux/actions/cost_info";
import { import {
makeSelectClaimForUri, makeSelectClaimForUri,
makeSelectContentTypeForUri, makeSelectContentTypeForUri,
makeSelectMetadataForUri, makeSelectMetadataForUri,
} from "selectors/claims"; } from "redux/selectors/claims";
import { makeSelectCostInfoForUri } from "selectors/cost_info"; import { makeSelectCostInfoForUri } from "redux/selectors/cost_info";
import { selectShowNsfw } from "selectors/settings"; import { selectShowNsfw } from "redux/selectors/settings";
import FilePage from "./view"; import FilePage from "./view";
import { makeSelectCurrentParam } from "selectors/navigation"; import { makeSelectCurrentParam } from "redux/selectors/navigation";
const select = (state, props) => ({ const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state), claim: makeSelectClaimForUri(props.uri)(state),

View file

@ -1,16 +1,16 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doFetchFileInfosAndPublishedClaims } from "actions/file_info"; import { doFetchFileInfosAndPublishedClaims } from "redux/actions/file_info";
import { import {
selectFileInfosDownloaded, selectFileInfosDownloaded,
selectIsFetchingFileListDownloadedOrPublished, selectIsFetchingFileListDownloadedOrPublished,
} from "selectors/file_info"; } from "redux/selectors/file_info";
import { import {
selectMyClaimsWithoutChannels, selectMyClaimsWithoutChannels,
selectIsFetchingClaimListMine, selectIsFetchingClaimListMine,
} from "selectors/claims"; } from "redux/selectors/claims";
import { doFetchClaimListMine } from "actions/content"; import { doFetchClaimListMine } from "redux/actions/content";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import FileListDownloaded from "./view"; import FileListDownloaded from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,13 +1,13 @@
import React from "react"; import React from "react";
import rewards from "rewards"; import rewards from "rewards";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doFetchClaimListMine } from "actions/content"; import { doFetchClaimListMine } from "redux/actions/content";
import { import {
selectMyClaimsWithoutChannels, selectMyClaimsWithoutChannels,
selectIsFetchingClaimListMine, selectIsFetchingClaimListMine,
} from "selectors/claims"; } from "redux/selectors/claims";
import { doClaimRewardType } from "actions/rewards"; import { doClaimRewardType } from "redux/actions/rewards";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import FileListPublished from "./view"; import FileListPublished from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { doAuthNavigate } from "actions/navigation"; import { doAuthNavigate } from "redux/actions/navigation";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doFetchAccessToken } from "actions/user"; import { doFetchAccessToken } from "redux/actions/user";
import { selectAccessToken, selectUser } from "selectors/user"; import { selectAccessToken, selectUser } from "redux/selectors/user";
import HelpPage from "./view"; import HelpPage from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,11 +1,11 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import InvitePage from "./view"; import InvitePage from "./view";
import { doFetchInviteStatus } from "actions/user"; import { doFetchInviteStatus } from "redux/actions/user";
import { import {
selectUserInviteStatusFailed, selectUserInviteStatusFailed,
selectUserInviteStatusIsPending, selectUserInviteStatusIsPending,
} from "selectors/user"; } from "redux/selectors/user";
const select = state => ({ const select = state => ({
isFailed: selectUserInviteStatusFailed(state), isFailed: selectUserInviteStatusFailed(state),

View file

@ -1,22 +1,22 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doNavigate, doHistoryBack } from "actions/navigation"; import { doNavigate, doHistoryBack } from "redux/actions/navigation";
import { doClaimRewardType } from "actions/rewards"; import { doClaimRewardType } from "redux/actions/rewards";
import { import {
selectMyClaims, selectMyClaims,
selectFetchingMyChannels, selectFetchingMyChannels,
selectMyChannelClaims, selectMyChannelClaims,
selectClaimsByUri, selectClaimsByUri,
} from "selectors/claims"; } from "redux/selectors/claims";
import { selectResolvingUris } from "selectors/content"; import { selectResolvingUris } from "redux/selectors/content";
import { import {
doFetchClaimListMine, doFetchClaimListMine,
doFetchChannelListMine, doFetchChannelListMine,
doResolveUri, doResolveUri,
doCreateChannel, doCreateChannel,
doPublish, doPublish,
} from "actions/content"; } from "redux/actions/content";
import { selectBalance } from "selectors/wallet"; import { selectBalance } from "redux/selectors/wallet";
import rewards from "rewards"; import rewards from "rewards";
import PublishPage from "./view"; import PublishPage from "./view";

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import Link from "component/link"; import Link from "component/link";
import { FormRow } from "component/form"; import { FormRow } from "component/form";
import { doShowSnackBar } from "actions/app"; import { doShowSnackBar } from "redux/actions/app";
import lbry from "../lbry.js"; import lbry from "../lbry.js";
class ReportPage extends React.Component { class ReportPage extends React.Component {

View file

@ -3,10 +3,10 @@ import { connect } from "react-redux";
import { import {
selectFetchingRewards, selectFetchingRewards,
selectUnclaimedRewards, selectUnclaimedRewards,
} from "selectors/rewards"; } from "redux/selectors/rewards";
import { selectUser } from "selectors/user"; import { selectUser } from "redux/selectors/user";
import { doAuthNavigate, doNavigate } from "actions/navigation"; import { doAuthNavigate, doNavigate } from "redux/actions/navigation";
import { doRewardList } from "actions/rewards"; import { doRewardList } from "redux/actions/rewards";
import RewardsPage from "./view"; import RewardsPage from "./view";
const select = (state, props) => { const select = (state, props) => {

View file

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { selectIsSearching, selectSearchQuery } from "selectors/search"; import { selectIsSearching, selectSearchQuery } from "redux/selectors/search";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import SearchPage from "./view"; import SearchPage from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,20 +1,20 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import * as settings from "constants/settings"; import * as settings from "constants/settings";
import { doClearCache } from "actions/app"; import { doClearCache } from "redux/actions/app";
import { import {
doSetDaemonSetting, doSetDaemonSetting,
doSetClientSetting, doSetClientSetting,
doGetThemes, doGetThemes,
doSetTheme, doSetTheme,
doChangeLanguage, doChangeLanguage,
} from "actions/settings"; } from "redux/actions/settings";
import { import {
makeSelectClientSetting, makeSelectClientSetting,
selectDaemonSettings, selectDaemonSettings,
selectLanguages, selectLanguages,
} from "selectors/settings"; } from "redux/selectors/settings";
import { selectCurrentLanguage } from "selectors/app"; import { selectCurrentLanguage } from "redux/selectors/app";
import SettingsPage from "./view"; import SettingsPage from "./view";
const select = state => ({ const select = state => ({

View file

@ -1,8 +1,8 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doResolveUri } from "actions/content"; import { doResolveUri } from "redux/actions/content";
import { makeSelectClaimForUri } from "selectors/claims"; import { makeSelectClaimForUri } from "redux/selectors/claims";
import { makeSelectIsUriResolving } from "selectors/content"; import { makeSelectIsUriResolving } from "redux/selectors/content";
import ShowPage from "./view"; import ShowPage from "./view";
const select = (state, props) => ({ const select = (state, props) => ({

View file

@ -1,10 +1,10 @@
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { doFetchTransactions } from "actions/wallet"; import { doFetchTransactions } from "redux/actions/wallet";
import { import {
selectTransactionItems, selectTransactionItems,
selectIsFetchingTransactions, selectIsFetchingTransactions,
} from "selectors/wallet"; } from "redux/selectors/wallet";
import TransactionHistoryPage from "./view"; import TransactionHistoryPage from "./view";
const select = state => ({ const select = state => ({

View file

@ -5,18 +5,18 @@ import {
selectUpgradeDownloadPath, selectUpgradeDownloadPath,
selectUpgradeDownloadItem, selectUpgradeDownloadItem,
selectUpgradeFilename, selectUpgradeFilename,
} from "selectors/app"; } from "redux/selectors/app";
import { doFetchDaemonSettings } from "actions/settings"; import { doFetchDaemonSettings } from "redux/actions/settings";
import { doBalanceSubscribe } from "actions/wallet"; import { doBalanceSubscribe } from "redux/actions/wallet";
import { doAuthenticate } from "actions/user"; import { doAuthenticate } from "redux/actions/user";
import { doFetchFileInfosAndPublishedClaims } from "actions/file_info"; import { doFetchFileInfosAndPublishedClaims } from "redux/actions/file_info";
import * as modals from "constants/modal_types"; import * as modals from "constants/modal_types";
const { remote, ipcRenderer, shell } = require("electron"); const { remote, ipcRenderer, shell } = require("electron");
const path = require("path"); const path = require("path");
const { download } = remote.require("electron-dl"); const { download } = remote.require("electron-dl");
const fs = remote.require("fs"); const fs = remote.require("fs");
const { lbrySettings: config } = require("../../../app/package.json"); const { lbrySettings: config } = require("../../../../app/package.json");
export function doOpenModal(modal, modalProps = {}) { export function doOpenModal(modal, modalProps = {}) {
return { return {

View file

@ -1,6 +1,6 @@
import * as types from "constants/action_types"; import * as types from "constants/action_types";
import lbry from "lbry"; import lbry from "lbry";
import { selectFetchingAvailability } from "selectors/availability"; import { selectFetchingAvailability } from "redux/selectors/availability";
export function doFetchAvailability(uri) { export function doFetchAvailability(uri) {
return function(dispatch, getState) { return function(dispatch, getState) {

View file

@ -3,18 +3,18 @@ import * as settings from "constants/settings";
import lbry from "lbry"; import lbry from "lbry";
import lbryio from "lbryio"; import lbryio from "lbryio";
import lbryuri from "lbryuri"; import lbryuri from "lbryuri";
import { makeSelectClientSetting } from "selectors/settings"; import { makeSelectClientSetting } from "redux/selectors/settings";
import { selectBalance, selectTransactionItems } from "selectors/wallet"; import { selectBalance, selectTransactionItems } from "redux/selectors/wallet";
import { import {
makeSelectFileInfoForUri, makeSelectFileInfoForUri,
selectDownloadingByOutpoint, selectDownloadingByOutpoint,
} from "selectors/file_info"; } from "redux/selectors/file_info";
import { selectResolvingUris } from "selectors/content"; import { selectResolvingUris } from "redux/selectors/content";
import { makeSelectCostInfoForUri } from "selectors/cost_info"; import { makeSelectCostInfoForUri } from "redux/selectors/cost_info";
import { doAlertError, doOpenModal } from "actions/app"; import { doAlertError, doOpenModal } from "redux/actions/app";
import { doClaimEligiblePurchaseRewards } from "actions/rewards"; import { doClaimEligiblePurchaseRewards } from "redux/actions/rewards";
import { selectBadgeNumber } from "selectors/app"; import { selectBadgeNumber } from "redux/selectors/app";
import { selectTotalDownloadProgress } from "selectors/file_info"; import { selectTotalDownloadProgress } from "redux/selectors/file_info";
import setBadge from "util/setBadge"; import setBadge from "util/setBadge";
import setProgressBar from "util/setProgressBar"; import setProgressBar from "util/setProgressBar";
import batchActions from "util/batchActions"; import batchActions from "util/batchActions";

View file

@ -1,10 +1,10 @@
import * as types from "constants/action_types"; import * as types from "constants/action_types";
import lbry from "lbry"; import lbry from "lbry";
import lbryio from "lbryio"; import lbryio from "lbryio";
import { doResolveUri } from "actions/content"; import { doResolveUri } from "redux/actions/content";
import { selectResolvingUris } from "selectors/content"; import { selectResolvingUris } from "redux/selectors/content";
import { selectClaimsByUri } from "selectors/claims"; import { selectClaimsByUri } from "redux/selectors/claims";
import { selectSettingsIsGenerous } from "selectors/settings"; import { selectSettingsIsGenerous } from "redux/selectors/settings";
export function doFetchCostInfoForUri(uri) { export function doFetchCostInfoForUri(uri) {
return function(dispatch, getState) { return function(dispatch, getState) {

View file

@ -1,19 +1,19 @@
import * as types from "constants/action_types"; import * as types from "constants/action_types";
import lbry from "lbry"; import lbry from "lbry";
import { doFetchClaimListMine, doAbandonClaim } from "actions/content"; import { doFetchClaimListMine, doAbandonClaim } from "redux/actions/content";
import { import {
selectClaimsByUri, selectClaimsByUri,
selectIsFetchingClaimListMine, selectIsFetchingClaimListMine,
selectMyClaimsOutpoints, selectMyClaimsOutpoints,
} from "selectors/claims"; } from "redux/selectors/claims";
import { import {
selectIsFetchingFileList, selectIsFetchingFileList,
selectFileInfosByOutpoint, selectFileInfosByOutpoint,
selectUrisLoading, selectUrisLoading,
selectTotalDownloadProgress, selectTotalDownloadProgress,
} from "selectors/file_info"; } from "redux/selectors/file_info";
import { doCloseModal } from "actions/app"; import { doCloseModal } from "redux/actions/app";
import { doNavigate, doHistoryBack } from "actions/navigation"; import { doNavigate, doHistoryBack } from "redux/actions/navigation";
import setProgressBar from "util/setProgressBar"; import setProgressBar from "util/setProgressBar";
import batchActions from "util/batchActions"; import batchActions from "util/batchActions";

View file

@ -6,8 +6,8 @@ import {
selectCurrentParams, selectCurrentParams,
selectHistoryStack, selectHistoryStack,
selectHistoryIndex, selectHistoryIndex,
} from "selectors/navigation"; } from "redux/selectors/navigation";
import { doSearch } from "actions/search"; import { doSearch } from "redux/actions/search";
import { toQueryString } from "util/query_params"; import { toQueryString } from "util/query_params";
export function doNavigate(path, params = {}, options = {}) { export function doNavigate(path, params = {}, options = {}) {

View file

@ -2,8 +2,8 @@ import * as types from "constants/action_types";
import * as modals from "constants/modal_types"; import * as modals from "constants/modal_types";
import lbryio from "lbryio"; import lbryio from "lbryio";
import rewards from "rewards"; import rewards from "rewards";
import { selectUnclaimedRewardsByType } from "selectors/rewards"; import { selectUnclaimedRewardsByType } from "redux/selectors/rewards";
import { selectUserIsRewardApproved } from "selectors/user"; import { selectUserIsRewardApproved } from "redux/selectors/user";
export function doRewardList() { export function doRewardList() {
return function(dispatch, getState) { return function(dispatch, getState) {

View file

@ -1,8 +1,8 @@
import * as types from "constants/action_types"; import * as types from "constants/action_types";
import lbryuri from "lbryuri"; import lbryuri from "lbryuri";
import { doResolveUri } from "actions/content"; import { doResolveUri } from "redux/actions/content";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import { selectCurrentPage } from "selectors/navigation"; import { selectCurrentPage } from "redux/selectors/navigation";
import batchActions from "util/batchActions"; import batchActions from "util/batchActions";
export function doSearch(rawQuery) { export function doSearch(rawQuery) {

View file

@ -1,6 +1,6 @@
import * as types from "constants/action_types"; import * as types from "constants/action_types";
import * as settings from "constants/settings"; import * as settings from "constants/settings";
import { doAlertError } from "actions/app"; import { doAlertError } from "redux/actions/app";
import batchActions from "util/batchActions"; import batchActions from "util/batchActions";
import lbry from "lbry"; import lbry from "lbry";

View file

@ -1,9 +1,9 @@
import * as types from "constants/action_types"; import * as types from "constants/action_types";
import * as modals from "constants/modal_types"; import * as modals from "constants/modal_types";
import lbryio from "lbryio"; import lbryio from "lbryio";
import { doOpenModal, doShowSnackBar } from "actions/app"; import { doOpenModal, doShowSnackBar } from "redux/actions/app";
import { doRewardList, doClaimRewardType } from "actions/rewards"; import { doRewardList, doClaimRewardType } from "redux/actions/rewards";
import { selectEmailToVerify, selectUser } from "selectors/user"; import { selectEmailToVerify, selectUser } from "redux/selectors/user";
import rewards from "rewards"; import rewards from "rewards";
export function doAuthenticate() { export function doAuthenticate() {

View file

@ -4,9 +4,9 @@ import {
selectDraftTransaction, selectDraftTransaction,
selectDraftTransactionAmount, selectDraftTransactionAmount,
selectBalance, selectBalance,
} from "selectors/wallet"; } from "redux/selectors/wallet";
import { doOpenModal, doShowSnackBar } from "actions/app"; import { doOpenModal, doShowSnackBar } from "redux/actions/app";
import { doNavigate } from "actions/navigation"; import { doNavigate } from "redux/actions/navigation";
import * as modals from "constants/modal_types"; import * as modals from "constants/modal_types";
export function doUpdateBalance() { export function doUpdateBalance() {

View file

@ -1,5 +1,5 @@
import { createSelector } from "reselect"; import { createSelector } from "reselect";
import { selectCurrentParams } from "selectors/navigation"; import { selectCurrentParams } from "redux/selectors/navigation";
import lbryuri from "lbryuri"; import lbryuri from "lbryuri";
import { makeSelectCurrentParam } from "./navigation"; import { makeSelectCurrentParam } from "./navigation";

View file

@ -1,5 +1,5 @@
import { createSelector } from "reselect"; import { createSelector } from "reselect";
import { selectCurrentParams } from "selectors/navigation"; import { selectCurrentParams } from "redux/selectors/navigation";
export const _selectState = state => state.costInfo || {}; export const _selectState = state => state.costInfo || {};

View file

@ -5,7 +5,7 @@ import {
selectIsFetchingClaimListMine, selectIsFetchingClaimListMine,
selectMyClaims, selectMyClaims,
selectMyClaimsOutpoints, selectMyClaimsOutpoints,
} from "selectors/claims"; } from "redux/selectors/claims";
export const _selectState = state => state.fileInfo || {}; export const _selectState = state => state.fileInfo || {};

Some files were not shown because too many files have changed in this diff Show more