Skip to content

Commit

Permalink
Update npm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Mar 20, 2020
1 parent 2007e2a commit 71fb4e1
Show file tree
Hide file tree
Showing 34 changed files with 17,495 additions and 13,788 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

6 changes: 0 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,6 @@ jobs:
- run:
name: sentry sourcemaps upload
command: npm run sentry:publish
# - run:
# name: github gh-pages docs publish
# command: >
# git config user.name metamaskbot
# git config user.email admin@metamask.io
# gh-pages -d docs/jsdocs

test-unit:
docker:
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
},

"plugins": [
"babel",
"mocha",
"chai",
"react",
"json"
],
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

Uncompressed builds can be found in `/dist`, compressed builds can be found in `/builds` once they're built.

## Contributing

You can re-generate the docs locally by running `npm run doc`, and contributors can update the hosted docs by running `npm run publish-docs`.

### Running Tests

Requires `mocha` installed. Run `npm install -g mocha`.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/platforms/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class ExtensionPlatform {
})
}

_subscribeToNotificationClicked = () => {
_subscribeToNotificationClicked () {
if (extension.notifications.onClicked.hasListener(this._viewOnExplorer)) {
extension.notifications.onClicked.removeListener(this._viewOnExplorer)
}
Expand Down
25 changes: 25 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = function (api) {
api.cache(false)
return {
presets: [
[
'@babel/preset-env',
{
targets: {
browsers: [
'chrome >= 58',
'firefox >= 56.2',
],
},
},
],
'@babel/preset-react',
],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-optional-chaining',
],
}
}
22 changes: 14 additions & 8 deletions mascara/src/app/first-time/import-account-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@ import classnames from 'classnames'
import LoadingScreen from './loading-screen'
import {importNewAccount, hideWarning} from '../../../../ui/app/actions'

const Input = ({ label, placeholder, onChange, errorMessage, type = 'text' }) => (
class Input extends Component {

static propTypes = {
label: PropTypes.string.isRequired,
placeholder: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
errorMessage: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired,
}

render () {
const {label, type, placeholder, errorMessage, onChange} = this.props
return (
<div className="import-account__input-wrapper">
<div className="import-account__input-label">{label}</div>
<input
Expand All @@ -19,14 +31,8 @@ const Input = ({ label, placeholder, onChange, errorMessage, type = 'text' }) =>
<div className="import-account__input-error-message">{errorMessage}</div>
</div>
)

Input.prototype.propTypes = {
label: PropTypes.string.isRequired,
placeholder: PropTypes.string.isRequired,
type: PropTypes.string.isRequired,
errorMessage: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired,
}
}

class ImportAccountScreen extends Component {
static OPTIONS = {
Expand Down
1 change: 1 addition & 0 deletions old-ui/app/components/add-token/add-token.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default class AddTokenScreen extends Component {
address: PropTypes.string,
dispatch: PropTypes.func,
network: PropTypes.string,
addToken: PropTypes.func,
}

constructor (props) {
Expand Down
2 changes: 2 additions & 0 deletions old-ui/app/components/app-bar/networks-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class NetworksMenu extends Component {
provider: PropTypes.any.isRequired,
frequentRpcList: PropTypes.array.isRequired,
isNetworkMenuOpen: PropTypes.bool,
setProviderType: PropTypes.function,
showDeleteRPC: PropTypes.function,
}

render () {
Expand Down
5 changes: 5 additions & 0 deletions old-ui/app/components/buy-button-subview.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ import PropTypes from 'prop-types'
import { getMetaMaskAccounts } from '../../../ui/app/selectors'

class BuyButtonSubview extends Component {
static propTypes = {
isSubLoading: PropTypes.bool,
identity: PropTypes.object,
account: PropTypes.object,
}
render () {
return (
<div style={{ width: '100%' }}>
Expand Down
5 changes: 5 additions & 0 deletions old-ui/app/components/fiat-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import PropTypes from 'prop-types'
import { DAI_CODE, POA_SOKOL_CODE, RSK_TESTNET_CODE, GOERLI_TESTNET_CODE } from '../../../app/scripts/controllers/network/enums'

class FiatValue extends Component {
static propTypes = {
value: PropTypes.number,
valueStyle: PropTypes.object,
dimStyle: PropTypes.object,
}
render = () => {
const props = this.props
let { conversionRate } = props
Expand Down
8 changes: 8 additions & 0 deletions old-ui/app/components/pending-msg-details.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import React, {Component} from 'react'
import AccountPanel from './account-panel'
import PropTypes from 'prop-types'

export default class PendingMsgDetails extends Component {
static propTypes = {
txData: PropTypes.object,
selectedAddress: PropTypes.string,
identities: PropTypes.object,
accounts: PropTypes.array,
imageifyIdenticons: PropTypes.any,
}
render () {
var state = this.props
var msgData = state.txData
Expand Down
7 changes: 7 additions & 0 deletions old-ui/app/components/pending-msg.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import React, { Component } from 'react'
import PendingTxDetails from './pending-msg-details'
import PropTypes from 'prop-types'

export default class PendingMsg extends Component {
static propTypes = {
txData: PropTypes.object,
cancelMessage: PropTypes.function,
signMessage: PropTypes.function,
}

render () {
var state = this.props
var msgData = state.txData
Expand Down
9 changes: 9 additions & 0 deletions old-ui/app/components/pending-personal-msg-details.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import React, {Component} from 'react'
import AccountPanel from './account-panel'
import BinaryRenderer from './binary-renderer'
import PropTypes from 'prop-types'

export default class PendingMsgDetails extends Component {
static propTypes = {
txData: PropTypes.object,
selectedAddress: PropTypes.string,
identities: PropTypes.object,
accounts: PropTypes.object,
imageifyIdenticons: PropTypes.object,
}

render () {
var state = this.props
var msgData = state.txData
Expand Down
7 changes: 7 additions & 0 deletions old-ui/app/components/pending-personal-msg.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import React, { Component } from 'react'
import PendingTxDetails from './pending-personal-msg-details'
import PropTypes from 'prop-types'

export default class PendingMsg extends Component {
static propTypes = {
txData: PropTypes.object,
cancelPersonalMessage: PropTypes.function,
signPersonalMessage: PropTypes.function,
}

render () {
var state = this.props
var msgData = state.txData
Expand Down
9 changes: 9 additions & 0 deletions old-ui/app/components/pending-typed-msg-details.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
import React, {Component} from 'react'
import AccountPanel from './account-panel'
import TypedMessageRenderer from './typed-message-renderer'
import PropTypes from 'prop-types'

export default class PendingMsgDetails extends Component {
static propTypes = {
txData: PropTypes.object,
selectedAddress: PropTypes.string,
identities: PropTypes.object,
accounts: PropTypes.array,
imageifyIdenticons: PropTypes.any,
}

render () {
var state = this.props
var msgData = state.txData
Expand Down
7 changes: 7 additions & 0 deletions old-ui/app/components/pending-typed-msg.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import React, { Component } from 'react'
import PendingTxDetails from './pending-typed-msg-details'
import PropTypes from 'prop-types'

export default class PendingMsg extends Component {
static propTypes = {
txData: PropTypes.object,
cancelTypedMessage: PropTypes.function,
signTypedMessage: PropTypes.function,
}

render () {
var state = this.props
var msgData = state.txData
Expand Down
12 changes: 12 additions & 0 deletions old-ui/app/components/send/send-profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,20 @@ import { addressSummary } from '../../util'
import EthBalance from '../eth-balance'
import TokenBalance from '../token-balance'
import { getMetaMaskAccounts } from '../../../../ui/app/selectors'
import PropTypes from 'prop-types'

class SendProfile extends Component {
static propTypes = {
address: PropTypes.string,
account: PropTypes.object,
identity: PropTypes.object,
network: PropTypes.string,
conversionRate: PropTypes.number,
currentCurrency: PropTypes.string,
isToken: PropTypes.bool,
token: PropTypes.any,
}

render () {
const props = this.props
const {
Expand Down
8 changes: 8 additions & 0 deletions old-ui/app/components/tooltip.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import React, { Component } from 'react'
import ReactTooltip from 'react-tooltip'
import PropTypes from 'prop-types'

class Tooltip extends Component {

static propTypes = {
position: PropTypes.any,
title: PropTypes.string,
id: PropTypes.any,
children: PropTypes.any,
}

render () {
const props = this.props
const { position, title, children, id } = props
Expand Down
1 change: 1 addition & 0 deletions old-ui/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class ConfigScreen extends Component {
static propTypes = {
dispatch: PropTypes.func,
metamask: PropTypes.object,
warning: PropTypes.string,
}

render () {
Expand Down
Loading

0 comments on commit 71fb4e1

Please sign in to comment.