commit
781a39c039
After Width: | Height: | Size: 913 B |
After Width: | Height: | Size: 3.3 KiB |
@ -1,66 +0,0 @@ |
|||||||
|
|
||||||
# Created by https://www.gitignore.io/api/osx,node |
|
||||||
|
|
||||||
### OSX ### |
|
||||||
.DS_Store |
|
||||||
.AppleDouble |
|
||||||
.LSOverride |
|
||||||
|
|
||||||
# Icon must end with two \r |
|
||||||
Icon
|
|
||||||
|
|
||||||
# Thumbnails |
|
||||||
._* |
|
||||||
|
|
||||||
# Files that might appear in the root of a volume |
|
||||||
.DocumentRevisions-V100 |
|
||||||
.fseventsd |
|
||||||
.Spotlight-V100 |
|
||||||
.TemporaryItems |
|
||||||
.Trashes |
|
||||||
.VolumeIcon.icns |
|
||||||
|
|
||||||
# Directories potentially created on remote AFP share |
|
||||||
.AppleDB |
|
||||||
.AppleDesktop |
|
||||||
Network Trash Folder |
|
||||||
Temporary Items |
|
||||||
.apdisk |
|
||||||
|
|
||||||
|
|
||||||
### Node ### |
|
||||||
# Logs |
|
||||||
logs |
|
||||||
*.log |
|
||||||
npm-debug.log* |
|
||||||
|
|
||||||
# Runtime data |
|
||||||
pids |
|
||||||
*.pid |
|
||||||
*.seed |
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover |
|
||||||
lib-cov |
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul |
|
||||||
coverage |
|
||||||
|
|
||||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) |
|
||||||
.grunt |
|
||||||
|
|
||||||
# node-waf configuration |
|
||||||
.lock-wscript |
|
||||||
|
|
||||||
# Compiled binary addons (http://nodejs.org/api/addons.html) |
|
||||||
build/Release |
|
||||||
|
|
||||||
# Dependency directory |
|
||||||
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git |
|
||||||
node_modules |
|
||||||
|
|
||||||
# Optional npm cache directory |
|
||||||
.npm |
|
||||||
|
|
||||||
# Optional REPL history |
|
||||||
.node_repl_history |
|
||||||
|
|
@ -1,87 +0,0 @@ |
|||||||
const Component = require('react').Component |
|
||||||
const h = require('react-hyperscript') |
|
||||||
const PropTypes = require('prop-types') |
|
||||||
const inherits = require('util').inherits |
|
||||||
const connect = require('react-redux').connect |
|
||||||
const actions = require('../../actions') |
|
||||||
const { getCurrentViewContext } = require('../../selectors') |
|
||||||
const classnames = require('classnames') |
|
||||||
|
|
||||||
const NewAccountCreateForm = require('./create-form') |
|
||||||
const NewAccountImportForm = require('../import') |
|
||||||
|
|
||||||
function mapStateToProps (state) { |
|
||||||
return { |
|
||||||
displayedForm: getCurrentViewContext(state), |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
function mapDispatchToProps (dispatch) { |
|
||||||
return { |
|
||||||
displayForm: form => dispatch(actions.setNewAccountForm(form)), |
|
||||||
showQrView: (selected, identity) => dispatch(actions.showQrView(selected, identity)), |
|
||||||
showExportPrivateKeyModal: () => { |
|
||||||
dispatch(actions.showModal({ name: 'EXPORT_PRIVATE_KEY' })) |
|
||||||
}, |
|
||||||
hideModal: () => dispatch(actions.hideModal()), |
|
||||||
setAccountLabel: (address, label) => dispatch(actions.setAccountLabel(address, label)), |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
inherits(AccountDetailsModal, Component) |
|
||||||
function AccountDetailsModal (props) { |
|
||||||
Component.call(this) |
|
||||||
|
|
||||||
this.state = { |
|
||||||
displayedForm: props.displayedForm, |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
AccountDetailsModal.contextTypes = { |
|
||||||
t: PropTypes.func, |
|
||||||
} |
|
||||||
|
|
||||||
module.exports = connect(mapStateToProps, mapDispatchToProps)(AccountDetailsModal) |
|
||||||
|
|
||||||
|
|
||||||
AccountDetailsModal.prototype.render = function () { |
|
||||||
const { displayedForm, displayForm } = this.props |
|
||||||
|
|
||||||
return h('div.new-account', {}, [ |
|
||||||
|
|
||||||
h('div.new-account__header', [ |
|
||||||
|
|
||||||
h('div.new-account__title', this.context.t('newAccount')), |
|
||||||
|
|
||||||
h('div.new-account__tabs', [ |
|
||||||
|
|
||||||
h('div.new-account__tabs__tab', { |
|
||||||
className: classnames('new-account__tabs__tab', { |
|
||||||
'new-account__tabs__selected': displayedForm === 'CREATE', |
|
||||||
'new-account__tabs__unselected cursor-pointer': displayedForm !== 'CREATE', |
|
||||||
}), |
|
||||||
onClick: () => displayForm('CREATE'), |
|
||||||
}, this.context.t('createDen')), |
|
||||||
|
|
||||||
h('div.new-account__tabs__tab', { |
|
||||||
className: classnames('new-account__tabs__tab', { |
|
||||||
'new-account__tabs__selected': displayedForm === 'IMPORT', |
|
||||||
'new-account__tabs__unselected cursor-pointer': displayedForm !== 'IMPORT', |
|
||||||
}), |
|
||||||
onClick: () => displayForm('IMPORT'), |
|
||||||
}, this.context.t('import')), |
|
||||||
|
|
||||||
]), |
|
||||||
|
|
||||||
]), |
|
||||||
|
|
||||||
h('div.new-account__form', [ |
|
||||||
|
|
||||||
displayedForm === 'CREATE' |
|
||||||
? h(NewAccountCreateForm) |
|
||||||
: h(NewAccountImportForm), |
|
||||||
|
|
||||||
]), |
|
||||||
|
|
||||||
]) |
|
||||||
} |
|
@ -1,15 +1,15 @@ |
|||||||
const Component = require('react').Component |
const Component = require('react').Component |
||||||
const PropTypes = require('prop-types') |
const PropTypes = require('prop-types') |
||||||
const h = require('react-hyperscript') |
const h = require('react-hyperscript') |
||||||
const actions = require('../actions') |
const actions = require('../../store/actions') |
||||||
const genAccountLink = require('etherscan-link').createAccountLink |
const genAccountLink = require('etherscan-link').createAccountLink |
||||||
const connect = require('react-redux').connect |
const connect = require('react-redux').connect |
||||||
const Dropdown = require('./dropdown').Dropdown |
const Dropdown = require('./dropdown').Dropdown |
||||||
const DropdownMenuItem = require('./dropdown').DropdownMenuItem |
const DropdownMenuItem = require('./dropdown').DropdownMenuItem |
||||||
const copyToClipboard = require('copy-to-clipboard') |
const copyToClipboard = require('copy-to-clipboard') |
||||||
const { checksumAddress } = require('../util') |
const { checksumAddress } = require('../../helpers/utils/util') |
||||||
|
|
||||||
import Identicon from './identicon' |
import Identicon from '../ui/identicon' |
||||||
|
|
||||||
class AccountDropdowns extends Component { |
class AccountDropdowns extends Component { |
||||||
constructor (props) { |
constructor (props) { |
@ -1,9 +1,9 @@ |
|||||||
const inherits = require('util').inherits |
const inherits = require('util').inherits |
||||||
const Component = require('react').Component |
const Component = require('react').Component |
||||||
const h = require('react-hyperscript') |
const h = require('react-hyperscript') |
||||||
import Identicon from './identicon' |
import Identicon from '../ui/identicon' |
||||||
const formatBalance = require('../util').formatBalance |
const formatBalance = require('../../helpers/utils/util').formatBalance |
||||||
const addressSummary = require('../util').addressSummary |
const addressSummary = require('../../helpers/utils/util').addressSummary |
||||||
|
|
||||||
module.exports = AccountPanel |
module.exports = AccountPanel |
||||||
|
|
@ -1,8 +1,8 @@ |
|||||||
import React, { PureComponent } from 'react' |
import React, { PureComponent } from 'react' |
||||||
import PropTypes from 'prop-types' |
import PropTypes from 'prop-types' |
||||||
import classnames from 'classnames' |
import classnames from 'classnames' |
||||||
import Identicon from '../identicon' |
import Identicon from '../../ui/identicon' |
||||||
import { DEFAULT_ROUTE } from '../../routes' |
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes' |
||||||
const NetworkIndicator = require('../network') |
const NetworkIndicator = require('../network') |
||||||
|
|
||||||
export default class AppHeader extends PureComponent { |
export default class AppHeader extends PureComponent { |
@ -1,9 +1,9 @@ |
|||||||
import React, { Component } from 'react' |
import React, { Component } from 'react' |
||||||
import PropTypes from 'prop-types' |
import PropTypes from 'prop-types' |
||||||
import classnames from 'classnames' |
import classnames from 'classnames' |
||||||
import { Tabs, Tab } from '../../tabs' |
import { Tabs, Tab } from '../../../ui/tabs' |
||||||
import { ConfirmPageContainerSummary, ConfirmPageContainerWarning } from './' |
import { ConfirmPageContainerSummary, ConfirmPageContainerWarning } from '.' |
||||||
import ErrorMessage from '../../error-message' |
import ErrorMessage from '../../../ui/error-message' |
||||||
|
|
||||||
export default class ConfirmPageContainerContent extends Component { |
export default class ConfirmPageContainerContent extends Component { |
||||||
static propTypes = { |
static propTypes = { |
2
ui/app/components/confirm-page-container/confirm-page-container-content/confirm-page-container-summary/confirm-page-container-summary.component.js → ui/app/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-summary/confirm-page-container-summary.component.js
2
ui/app/components/confirm-page-container/confirm-page-container-content/confirm-page-container-summary/confirm-page-container-summary.component.js → ui/app/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-summary/confirm-page-container-summary.component.js
@ -1,7 +1,7 @@ |
|||||||
import React from 'react' |
import React from 'react' |
||||||
import PropTypes from 'prop-types' |
import PropTypes from 'prop-types' |
||||||
import classnames from 'classnames' |
import classnames from 'classnames' |
||||||
import Identicon from '../../../identicon' |
import Identicon from '../../../../ui/identicon' |
||||||
|
|
||||||
const ConfirmPageContainerSummary = props => { |
const ConfirmPageContainerSummary = props => { |
||||||
const { |
const { |
0
ui/app/components/confirm-page-container/confirm-page-container-content/confirm-page-container-warning/confirm-page-container-warning.component.js → ui/app/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-warning/confirm-page-container-warning.component.js
0
ui/app/components/confirm-page-container/confirm-page-container-content/confirm-page-container-warning/confirm-page-container-warning.component.js → ui/app/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-warning/confirm-page-container-warning.component.js
@ -1,6 +1,6 @@ |
|||||||
@import './confirm-page-container-warning/index'; |
@import 'confirm-page-container-warning/index'; |
||||||
|
|
||||||
@import './confirm-page-container-summary/index'; |
@import 'confirm-page-container-summary/index'; |
||||||
|
|
||||||
.confirm-page-container-content { |
.confirm-page-container-content { |
||||||
overflow-y: auto; |
overflow-y: auto; |
@ -1,8 +1,8 @@ |
|||||||
import React, { Component } from 'react' |
import React, { Component } from 'react' |
||||||
import PropTypes from 'prop-types' |
import PropTypes from 'prop-types' |
||||||
import SenderToRecipient from '../sender-to-recipient' |
import SenderToRecipient from '../../ui/sender-to-recipient' |
||||||
import { PageContainerFooter } from '../page-container' |
import { PageContainerFooter } from '../../ui/page-container' |
||||||
import { ConfirmPageContainerHeader, ConfirmPageContainerContent, ConfirmPageContainerNavigation } from './' |
import { ConfirmPageContainerHeader, ConfirmPageContainerContent, ConfirmPageContainerNavigation } from '.' |
||||||
|
|
||||||
export default class ConfirmPageContainer extends Component { |
export default class ConfirmPageContainer extends Component { |
||||||
static contextTypes = { |
static contextTypes = { |
@ -0,0 +1,7 @@ |
|||||||
|
@import 'confirm-page-container-content/index'; |
||||||
|
|
||||||
|
@import 'confirm-page-container-header/index'; |
||||||
|
|
||||||
|
@import 'confirm-detail-row/index'; |
||||||
|
|
||||||
|
@import 'confirm-page-container-navigation/index'; |
@ -1,15 +1,15 @@ |
|||||||
const Component = require('react').Component |
const Component = require('react').Component |
||||||
const PropTypes = require('prop-types') |
const PropTypes = require('prop-types') |
||||||
const h = require('react-hyperscript') |
const h = require('react-hyperscript') |
||||||
const actions = require('../../../actions') |
const actions = require('../../../../store/actions') |
||||||
const genAccountLink = require('../../../../lib/account-link.js') |
const genAccountLink = require('../../../../../lib/account-link.js') |
||||||
const connect = require('react-redux').connect |
const connect = require('react-redux').connect |
||||||
const Dropdown = require('./dropdown').Dropdown |
const Dropdown = require('./dropdown').Dropdown |
||||||
const DropdownMenuItem = require('./dropdown').DropdownMenuItem |
const DropdownMenuItem = require('./dropdown').DropdownMenuItem |
||||||
import Identicon from '../../identicon' |
import Identicon from '../../../ui/identicon' |
||||||
const { checksumAddress } = require('../../../util') |
const { checksumAddress } = require('../../../../helpers/utils/util') |
||||||
const copyToClipboard = require('copy-to-clipboard') |
const copyToClipboard = require('copy-to-clipboard') |
||||||
const { formatBalance } = require('../../../util') |
const { formatBalance } = require('../../../../helpers/utils/util') |
||||||
|
|
||||||
|
|
||||||
class AccountDropdowns extends Component { |
class AccountDropdowns extends Component { |
@ -1,7 +1,7 @@ |
|||||||
import React from 'react' |
import React from 'react' |
||||||
import assert from 'assert' |
import assert from 'assert' |
||||||
import { createMockStore } from 'redux-test-utils' |
import { createMockStore } from 'redux-test-utils' |
||||||
import { mountWithRouter } from '../../../../../test/lib/render-helpers' |
import { mountWithRouter } from '../../../../../../test/lib/render-helpers' |
||||||
import NetworkDropdown from '../network-dropdown' |
import NetworkDropdown from '../network-dropdown' |
||||||
import { DropdownMenuItem } from '../components/dropdown' |
import { DropdownMenuItem } from '../components/dropdown' |
||||||
import NetworkDropdownIcon from '../components/network-dropdown-icon' |
import NetworkDropdownIcon from '../components/network-dropdown-icon' |
@ -1,10 +1,10 @@ |
|||||||
import { connect } from 'react-redux' |
import { connect } from 'react-redux' |
||||||
import { showModal } from '../../../actions' |
import { showModal } from '../../../../store/actions' |
||||||
import { |
import { |
||||||
decGWEIToHexWEI, |
decGWEIToHexWEI, |
||||||
decimalToHex, |
decimalToHex, |
||||||
hexWEIToDecGWEI, |
hexWEIToDecGWEI, |
||||||
} from '../../../helpers/conversions.util' |
} from '../../../../helpers/utils/conversions.util' |
||||||
import AdvancedGasInputs from './advanced-gas-inputs.component' |
import AdvancedGasInputs from './advanced-gas-inputs.component' |
||||||
|
|
||||||
function convertGasPriceForInputs (gasPriceInHexWEI) { |
function convertGasPriceForInputs (gasPriceInHexWEI) { |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue