Adjust more relative paths

pull/3/head
Vladimir Volek 6 years ago
parent cb14cfdfe7
commit 9a735f7b96

@ -1,8 +1,8 @@
/* @flow */ /* @flow */
import * as ACCOUNT from './constants/account'; import * as ACCOUNT from 'actions/constants/account';
import type { Action, TrezorDevice } from 'flowtype'; import type { Action, TrezorDevice } from 'flowtype';
import type { State } from '../reducers/AccountsReducer'; import type { State } from 'reducers/AccountsReducer';
export type AccountAction = export type AccountAction =
AccountFromStorageAction AccountFromStorageAction

@ -3,10 +3,10 @@
import TrezorConnect from 'trezor-connect'; import TrezorConnect from 'trezor-connect';
import HDKey from 'hdkey'; import HDKey from 'hdkey';
import EthereumjsUtil from 'ethereumjs-util'; import EthereumjsUtil from 'ethereumjs-util';
import * as DISCOVERY from './constants/discovery'; import * as DISCOVERY from 'actions/constants/discovery';
import * as ACCOUNT from './constants/account'; import * as ACCOUNT from 'actions/constants/account';
import * as TOKEN from './constants/token'; import * as TOKEN from 'actions/constants/token';
import * as NOTIFICATION from './constants/notification'; import * as NOTIFICATION from 'actions/constants/notification';
import * as AccountsActions from './AccountsActions'; import * as AccountsActions from './AccountsActions';
import { getNonceAsync, getBalanceAsync, getTokenBalanceAsync } from './Web3Actions'; import { getNonceAsync, getBalanceAsync, getTokenBalanceAsync } from './Web3Actions';
@ -16,7 +16,7 @@ import type {
ThunkAction, AsyncAction, Action, GetState, Dispatch, TrezorDevice, ThunkAction, AsyncAction, Action, GetState, Dispatch, TrezorDevice,
} from 'flowtype'; } from 'flowtype';
import type { Discovery, State } from '../reducers/DiscoveryReducer'; import type { Discovery, State } from 'reducers/DiscoveryReducer';
export type DiscoveryAction = { export type DiscoveryAction = {
type: typeof DISCOVERY.FROM_STORAGE, type: typeof DISCOVERY.FROM_STORAGE,

@ -1,18 +1,18 @@
/* @flow */ /* @flow */
import * as CONNECT from './constants/TrezorConnect'; import * as CONNECT from 'actions/constants/TrezorConnect';
import * as ACCOUNT from './constants/account'; import * as ACCOUNT from 'actions/constants/account';
import * as TOKEN from './constants/token'; import * as TOKEN from 'actions/constants/token';
import * as DISCOVERY from './constants/discovery'; import * as DISCOVERY from 'actions/constants/discovery';
import * as STORAGE from './constants/localStorage'; import * as STORAGE from 'actions/constants/localStorage';
import * as PENDING from './constants/pendingTx'; import * as PENDING from 'actions/constants/pendingTx';
import { JSONRequest, httpRequest } from '../utils/networkUtils'; import { JSONRequest, httpRequest } from 'utils/networkUtils';
import type { import type {
ThunkAction, AsyncAction, GetState, Dispatch, TrezorDevice, ThunkAction, AsyncAction, GetState, Dispatch, TrezorDevice,
} from 'flowtype'; } from 'flowtype';
import type { Config, Coin, TokensCollection } from '../reducers/LocalStorageReducer'; import type { Config, Coin, TokensCollection } from 'reducers/LocalStorageReducer';
import AppConfigJSON from 'data/appConfig.json'; import AppConfigJSON from 'data/appConfig.json';
import Erc20AbiJSON from 'data/ERC20Abi.json'; import Erc20AbiJSON from 'data/ERC20Abi.json';

@ -1,12 +1,12 @@
/* @flow */ /* @flow */
import * as LOG from './constants/log'; import * as LOG from 'actions/constants/log';
import type { import type {
Action, ThunkAction, GetState, Dispatch, Action, ThunkAction, GetState, Dispatch,
} from 'flowtype'; } from 'flowtype';
import type { LogEntry } from '../reducers/LogReducer'; import type { LogEntry } from 'reducers/LogReducer';
export type LogAction = { export type LogAction = {
type: typeof LOG.OPEN, type: typeof LOG.OPEN,

@ -3,13 +3,13 @@
import TrezorConnect, { UI, UI_EVENT } from 'trezor-connect'; import TrezorConnect, { UI, UI_EVENT } from 'trezor-connect';
import type { Device } from 'trezor-connect'; import type { Device } from 'trezor-connect';
import * as MODAL from './constants/modal'; import * as MODAL from 'actions/constants/modal';
import * as CONNECT from './constants/TrezorConnect'; import * as CONNECT from 'actions/constants/TrezorConnect';
import type { import type {
ThunkAction, AsyncAction, Action, GetState, Dispatch, TrezorDevice, ThunkAction, AsyncAction, Action, GetState, Dispatch, TrezorDevice,
} from 'flowtype'; } from 'flowtype';
import type { State } from '../reducers/ModalReducer'; import type { State } from 'reducers/ModalReducer';
export type ModalAction = { export type ModalAction = {
type: typeof MODAL.CLOSE type: typeof MODAL.CLOSE

@ -1,12 +1,12 @@
/* @flow */ /* @flow */
import * as NOTIFICATION from './constants/notification'; import * as NOTIFICATION from 'actions/constants/notification';
import type { import type {
Action, AsyncAction, GetState, Dispatch, RouterLocationState, Action, AsyncAction, GetState, Dispatch, RouterLocationState,
} from 'flowtype'; } from 'flowtype';
import type { CallbackAction } from '../reducers/NotificationReducer'; import type { CallbackAction } from 'reducers/NotificationReducer';
export type NotificationAction = { export type NotificationAction = {
type: typeof NOTIFICATION.ADD, type: typeof NOTIFICATION.ADD,

@ -1,8 +1,8 @@
/* @flow */ /* @flow */
import * as PENDING from './constants/pendingTx'; import * as PENDING from 'actions/constants/pendingTx';
import type { State, PendingTx } from '../reducers/PendingTxReducer'; import type { State, PendingTx } from 'reducers/PendingTxReducer';
export type PendingTxAction = { export type PendingTxAction = {
type: typeof PENDING.FROM_STORAGE, type: typeof PENDING.FROM_STORAGE,

@ -2,11 +2,11 @@
import TrezorConnect from 'trezor-connect'; import TrezorConnect from 'trezor-connect';
import * as RECEIVE from './constants/receive'; import * as RECEIVE from 'actions/constants/receive';
import * as NOTIFICATION from './constants/notification'; import * as NOTIFICATION from 'actions/constants/notification';
import { initialState } from '../reducers/ReceiveReducer'; import { initialState } from 'reducers/ReceiveReducer';
import type { State } from '../reducers/ReceiveReducer'; import type { State } from 'reducers/ReceiveReducer';
import type { import type {
TrezorDevice, ThunkAction, AsyncAction, Action, GetState, Dispatch, TrezorDevice, ThunkAction, AsyncAction, Action, GetState, Dispatch,

@ -2,16 +2,16 @@
import { LOCATION_CHANGE } from 'react-router-redux'; import { LOCATION_CHANGE } from 'react-router-redux';
import * as ACCOUNT from './constants/account'; import * as ACCOUNT from 'actions/constants/account';
import * as SEND from './constants/send'; import * as SEND from 'actions/constants/send';
import * as NOTIFICATION from './constants/notification'; import * as NOTIFICATION from 'actions/constants/notification';
import * as PENDING from './constants/pendingTx'; import * as PENDING from 'actions/constants/pendingTx';
import * as SendFormActions from './SendFormActions'; import * as SendFormActions from './SendFormActions';
import * as SessionStorageActions from './SessionStorageActions'; import * as SessionStorageActions from './SessionStorageActions';
import * as stateUtils from '../reducers/utils'; import * as stateUtils from 'reducers/utils';
import { initialState } from '../reducers/SelectedAccountReducer'; import { initialState } from 'reducers/SelectedAccountReducer';
import type { import type {
Coin, Coin,

@ -7,17 +7,17 @@ import EthereumjsTx from 'ethereumjs-tx';
import TrezorConnect from 'trezor-connect'; import TrezorConnect from 'trezor-connect';
import { push } from 'react-router-redux'; import { push } from 'react-router-redux';
import BigNumber from 'bignumber.js'; import BigNumber from 'bignumber.js';
import { strip } from '../utils/ethUtils'; import { strip } from 'utils/ethUtils';
import { estimateGas, getGasPrice, pushTx } from './Web3Actions'; import { estimateGas, getGasPrice, pushTx } from './Web3Actions';
import * as SessionStorageActions from './SessionStorageActions'; import * as SessionStorageActions from './SessionStorageActions';
import * as NOTIFICATION from './constants/notification'; import * as NOTIFICATION from 'actions/constants/notification';
import * as SEND from './constants/send'; import * as SEND from 'actions/constants/send';
import { initialState } from '../reducers/SendFormReducer'; import { initialState } from 'reducers/SendFormReducer';
import { findAccount } from '../reducers/AccountsReducer'; import { findAccount } from 'reducers/AccountsReducer';
import { findToken } from '../reducers/TokensReducer'; import { findToken } from 'reducers/TokensReducer';
import { findDevice } from '../reducers/utils'; import { findDevice } from 'reducers/utils';
import * as stateUtils from '../reducers/utils'; import * as stateUtils from 'reducers/utils';
import type { import type {
PendingTx, PendingTx,
@ -29,13 +29,13 @@ import type {
RouterLocationState, RouterLocationState,
TrezorDevice, TrezorDevice,
} from 'flowtype'; } from 'flowtype';
import type { State as AccountState } from '../reducers/SelectedAccountReducer'; import type { State as AccountState } from 'reducers/SelectedAccountReducer';
import type { Web3Instance } from '../reducers/Web3Reducer'; import type { Web3Instance } from 'reducers/Web3Reducer';
import type { Config, Coin } from '../reducers/LocalStorageReducer'; import type { Config, Coin } from 'reducers/LocalStorageReducer';
import type { Token } from '../reducers/TokensReducer'; import type { Token } from 'reducers/TokensReducer';
import type { State, FeeLevel } from '../reducers/SendFormReducer'; import type { State, FeeLevel } from 'reducers/SendFormReducer';
import type { Account } from '../reducers/AccountsReducer'; import type { Account } from 'reducers/AccountsReducer';
import type { Props } from '../components/wallet/account/send'; import type { Props } from 'components/wallet/account/send';
export type SendTxAction = { export type SendTxAction = {
type: typeof SEND.TX_COMPLETE, type: typeof SEND.TX_COMPLETE,

@ -1,7 +1,7 @@
/* @flow */ /* @flow */
import type { State as SendFormState } from '../reducers/SendFormReducer'; import type { State as SendFormState } from 'reducers/SendFormReducer';
import type { import type {
ThunkAction, ThunkAction,
GetState, GetState,

@ -2,16 +2,16 @@
import EthereumjsUtil from 'ethereumjs-util'; import EthereumjsUtil from 'ethereumjs-util';
import * as SUMMARY from './constants/summary'; import * as SUMMARY from 'actions/constants/summary';
import * as TOKEN from './constants/token'; import * as TOKEN from 'actions/constants/token';
import { resolveAfter } from '../utils/promiseUtils'; import { resolveAfter } from 'utils/promiseUtils';
import { initialState } from '../reducers/SummaryReducer'; import { initialState } from 'reducers/SummaryReducer';
import type { import type {
ThunkAction, AsyncAction, Action, GetState, Dispatch, ThunkAction, AsyncAction, Action, GetState, Dispatch,
} from 'flowtype'; } from 'flowtype';
import type { State } from '../reducers/SummaryReducer'; import type { State } from 'reducers/SummaryReducer';
import type { Token } from '../reducers/TokensReducer'; import type { Token } from 'reducers/TokensReducer';
export type SummaryAction = { export type SummaryAction = {
type: typeof SUMMARY.INIT, type: typeof SUMMARY.INIT,

@ -1,15 +1,15 @@
/* @flow */ /* @flow */
import * as TOKEN from './constants/token'; import * as TOKEN from 'actions/constants/token';
import { getTokenInfoAsync, getTokenBalanceAsync } from './Web3Actions'; import { getTokenInfoAsync, getTokenBalanceAsync } from './Web3Actions';
import type { import type {
GetState, AsyncAction, Action, Dispatch, GetState, AsyncAction, Action, Dispatch,
} from 'flowtype'; } from 'flowtype';
import type { State, Token } from '../reducers/TokensReducer'; import type { State, Token } from 'reducers/TokensReducer';
import type { Account } from '../reducers/AccountsReducer'; import type { Account } from 'reducers/AccountsReducer';
import type { NetworkToken } from '../reducers/LocalStorageReducer'; import type { NetworkToken } from 'reducers/LocalStorageReducer';
export type TokenAction = { export type TokenAction = {
type: typeof TOKEN.FROM_STORAGE, type: typeof TOKEN.FROM_STORAGE,

@ -4,14 +4,14 @@
import TrezorConnect, { import TrezorConnect, {
UI, DEVICE, DEVICE_EVENT, UI_EVENT, TRANSPORT_EVENT, UI, DEVICE, DEVICE_EVENT, UI_EVENT, TRANSPORT_EVENT,
} from 'trezor-connect'; } from 'trezor-connect';
import * as TOKEN from './constants/token'; import * as TOKEN from 'actions/constants/token';
import * as CONNECT from './constants/TrezorConnect'; import * as CONNECT from 'actions/constants/TrezorConnect';
import * as NOTIFICATION from './constants/notification'; import * as NOTIFICATION from 'actions/constants/notification';
import * as WALLET from './constants/wallet'; import * as WALLET from 'actions/constants/wallet';
import { push } from 'react-router-redux'; import { push } from 'react-router-redux';
import * as DiscoveryActions from './DiscoveryActions'; import * as DiscoveryActions from './DiscoveryActions';
import { resolveAfter } from '../utils/promiseUtils'; import { resolveAfter } from 'utils/promiseUtils';
import type { import type {

@ -2,9 +2,9 @@
import { LOCATION_CHANGE } from 'react-router-redux'; import { LOCATION_CHANGE } from 'react-router-redux';
import * as WALLET from './constants/wallet'; import * as WALLET from 'actions/constants/wallet';
import * as CONNECT from './constants/TrezorConnect'; import * as CONNECT from 'actions/constants/TrezorConnect';
import * as stateUtils from '../reducers/utils'; import * as stateUtils from 'reducers/utils';
import type { Device } from 'trezor-connect'; import type { Device } from 'trezor-connect';
import type import type

@ -10,9 +10,9 @@ import TrezorConnect from 'trezor-connect';
import type { ContractFactory, EstimateGasOptions } from 'web3'; import type { ContractFactory, EstimateGasOptions } from 'web3';
import type BigNumber from 'bignumber.js'; import type BigNumber from 'bignumber.js';
import type { TransactionStatus, TransactionReceipt } from 'web3'; import type { TransactionStatus, TransactionReceipt } from 'web3';
import { strip } from '../utils/ethUtils'; import { strip } from 'utils/ethUtils';
import * as WEB3 from './constants/web3'; import * as WEB3 from 'actions/constants/web3';
import * as PENDING from './constants/pendingTx'; import * as PENDING from 'actions/constants/pendingTx';
import * as AccountsActions from './AccountsActions'; import * as AccountsActions from './AccountsActions';
import * as TokenActions from './TokenActions'; import * as TokenActions from './TokenActions';
@ -23,11 +23,11 @@ import type {
AsyncAction, AsyncAction,
} from 'flowtype'; } from 'flowtype';
import type { Account } from '../reducers/AccountsReducer'; import type { Account } from 'reducers/AccountsReducer';
import type { PendingTx } from '../reducers/PendingTxReducer'; import type { PendingTx } from 'reducers/PendingTxReducer';
import type { Web3Instance } from '../reducers/Web3Reducer'; import type { Web3Instance } from 'reducers/Web3Reducer';
import type { Token } from '../reducers/TokensReducer'; import type { Token } from 'reducers/TokensReducer';
import type { NetworkToken } from '../reducers/LocalStorageReducer'; import type { NetworkToken } from 'reducers/LocalStorageReducer';
export type Web3Action = { export type Web3Action = {
type: typeof WEB3.READY, type: typeof WEB3.READY,

@ -17,4 +17,4 @@ window.onbeforeunload = () => {
store.dispatch(onBeforeUnload()); store.dispatch(onBeforeUnload());
}; };
// Application life cycle starts in ./services/WalletService.js // Application life cycle starts in services/WalletService.js

@ -1,10 +1,10 @@
/* @flow */ /* @flow */
import { RATE_UPDATE } from '../services/CoinmarketcapService'; import { RATE_UPDATE } from 'services/CoinmarketcapService';
import type { Action } from 'flowtype'; import type { Action } from 'flowtype';
import type { FiatRateAction } from '../services/CoinmarketcapService'; import type { FiatRateAction } from 'services/CoinmarketcapService';
export type Fiat = { export type Fiat = {
+network: string; +network: string;

@ -7,20 +7,20 @@ import store, { history } from '../store';
import ErrorBoundary from 'support/ErrorBoundary'; import ErrorBoundary from 'support/ErrorBoundary';
import LandingPageContainer from '../components/landing'; import LandingPageContainer from 'components/landing';
import WalletContainer from '../components/wallet'; import WalletContainer from 'components/wallet';
import BootloaderContainer from '../components/wallet/pages/Bootloader'; import BootloaderContainer from 'components/wallet/pages/Bootloader';
import InitializeContainer from '../components/wallet/pages/Initialize'; import InitializeContainer from 'components/wallet/pages/Initialize';
import AcquireContainer from '../components/wallet/pages/Acquire'; import AcquireContainer from 'components/wallet/pages/Acquire';
import UnreadableDeviceContainer from '../components/wallet/pages/UnreadableDevice'; import UnreadableDeviceContainer from 'components/wallet/pages/UnreadableDevice';
import DashboardContainer from '../components/wallet/pages/Dashboard'; import DashboardContainer from 'components/wallet/pages/Dashboard';
import SummaryContainer from '../components/wallet/account/summary'; import SummaryContainer from 'components/wallet/account/summary';
import SendFormContainer from '../components/wallet/account/send'; import SendFormContainer from 'components/wallet/account/send';
import ReceiveContainer from '../components/wallet/account/receive'; import ReceiveContainer from 'components/wallet/account/receive';
import SignVerifyContainer from '../components/wallet/account/sign/SignVerify'; import SignVerifyContainer from 'components/wallet/account/sign/SignVerify';
import DeviceSettingsContainer from '../components/wallet/pages/DeviceSettings'; import DeviceSettingsContainer from 'components/wallet/pages/DeviceSettings';
import WalletSettingsContainer from '../components/wallet/pages/WalletSettings'; import WalletSettingsContainer from 'components/wallet/pages/WalletSettings';
const App = () => ( const App = () => (
<Provider store={store}> <Provider store={store}>

@ -1,8 +1,8 @@
/* @flow */ /* @flow */
import { JSONRequest, httpRequest } from '../utils/networkUtils'; import { JSONRequest, httpRequest } from 'utils/networkUtils';
import { resolveAfter } from '../utils/promiseUtils'; import { resolveAfter } from 'utils/promiseUtils';
import { READY } from 'actions/constants/localStorage'; import { READY } from 'actions/constants/localStorage';
import type { import type {
@ -15,7 +15,7 @@ import type {
AsyncAction, AsyncAction,
GetState, GetState,
} from 'flowtype'; } from 'flowtype';
import type { Config, FiatValueTicker } from '../reducers/LocalStorageReducer'; import type { Config, FiatValueTicker } from 'reducers/LocalStorageReducer';
export const RATE_UPDATE: 'rate__update' = 'rate__update'; export const RATE_UPDATE: 'rate__update' = 'rate__update';

@ -14,7 +14,7 @@ import * as DISCOVERY from 'actions/constants/discovery';
import * as SEND from 'actions/constants/send'; import * as SEND from 'actions/constants/send';
import * as WEB3 from 'actions/constants/web3'; import * as WEB3 from 'actions/constants/web3';
import * as PENDING from 'actions/constants/pendingTx'; import * as PENDING from 'actions/constants/pendingTx';
import { findAccountTokens } from '../reducers/TokensReducer'; import { findAccountTokens } from 'reducers/TokensReducer';
import type { import type {
Middleware, Middleware,
@ -28,10 +28,10 @@ import type {
} from 'flowtype'; } from 'flowtype';
import type { TrezorDevice } from 'flowtype'; import type { TrezorDevice } from 'flowtype';
import type { Account } from '../reducers/AccountsReducer'; import type { Account } from 'reducers/AccountsReducer';
import type { Token } from '../reducers/TokensReducer'; import type { Token } from 'reducers/TokensReducer';
import type { PendingTx } from '../reducers/PendingTxReducer'; import type { PendingTx } from 'reducers/PendingTxReducer';
import type { Discovery } from '../reducers/DiscoveryReducer'; import type { Discovery } from 'reducers/DiscoveryReducer';
// https://github.com/STRML/react-localstorage/blob/master/react-localstorage.js // https://github.com/STRML/react-localstorage/blob/master/react-localstorage.js

@ -8,8 +8,8 @@ import thunk from 'redux-thunk';
// import { useRouterHistory } from 'react-router'; // import { useRouterHistory } from 'react-router';
import createHistory from 'history/createHashHistory'; import createHistory from 'history/createHashHistory';
import { createLogger } from 'redux-logger'; import { createLogger } from 'redux-logger';
import reducers from '../reducers'; import reducers from 'reducers';
import services from '../services'; import services from 'services';
import Raven from 'raven-js'; import Raven from 'raven-js';
import RavenMiddleware from 'redux-raven-middleware'; import RavenMiddleware from 'redux-raven-middleware';

Loading…
Cancel
Save