Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 10 support #299

Merged
merged 10 commits into from
Jul 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ workflows:
- test-unit:
requires:
- prep-deps-npm
- test-integration-mascara-chrome:
requires:
- prep-deps-npm
- prep-scss
# - test-integration-mascara-chrome:
# requires:
# - prep-deps-npm
# - prep-scss
# - test-integration-mascara-firefox:
# requires:
# - prep-deps-npm
Expand All @@ -53,7 +53,7 @@ workflows:
- test-unit
- test-e2e-chrome
# - test-e2e-firefox
- test-integration-mascara-chrome
# - test-integration-mascara-chrome
# - test-integration-mascara-firefox
- test-integration-flat-chrome
- test-integration-flat-firefox
Expand Down Expand Up @@ -92,7 +92,7 @@ workflows:
jobs:
prep-deps-npm:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -108,7 +108,7 @@ jobs:

prep-build:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -127,7 +127,7 @@ jobs:

prep-docs:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -142,7 +142,7 @@ jobs:

prep-scss:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -161,7 +161,7 @@ jobs:

test-lint:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -172,7 +172,7 @@ jobs:

# test-deps:
# docker:
# - image: circleci/node:8.15.0-browsers
# - image: circleci/node:10.16.0-browsers
# steps:
# - checkout
# - restore_cache:
Expand All @@ -183,7 +183,7 @@ jobs:

test-e2e-chrome:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -208,7 +208,7 @@ jobs:

test-e2e-firefox:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -229,7 +229,7 @@ jobs:

test-e2e-beta-chrome:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -245,7 +245,7 @@ jobs:

test-e2e-beta-firefox:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -266,7 +266,7 @@ jobs:

job-screens:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -283,7 +283,7 @@ jobs:

job-publish-prerelease:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -310,7 +310,7 @@ jobs:

job-publish-release:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -323,7 +323,7 @@ jobs:

job-publish-postrelease:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -346,7 +346,7 @@ jobs:

test-unit:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -359,7 +359,7 @@ jobs:
environment:
browsers: '["Firefox"]'
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -383,7 +383,7 @@ jobs:
environment:
browsers: '["Chrome"]'
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -402,7 +402,7 @@ jobs:
environment:
browsers: '["Firefox"]'
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -426,7 +426,7 @@ jobs:
environment:
browsers: '["Chrome"]'
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- checkout
- restore_cache:
Expand All @@ -443,7 +443,7 @@ jobs:

all-tests-pass:
docker:
- image: circleci/node:8.15.0-browsers
- image: circleci/node:10.16.0-browsers
steps:
- run:
name: All Tests Passed
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.15.0
v10.16.0
5 changes: 4 additions & 1 deletion old-ui/app/add-suggested-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ AddSuggestedTokenScreen.prototype.render = function () {

h('div', [
h(Tooltip, {
position: 'top',
title: 'The contract of the actual token contract. Click for more info.',
position: 'top',
id: 'addSuggestedToken',
}, [
h('a', {
style: { fontWeight: 'bold', paddingRight: '10px'},
href: 'https://support.metamask.io/kb/article/24-what-is-a-token-contract-address',
target: '_blank',
'data-tip': '',
'data-for': 'addSuggestedToken',
}, [
h('span', 'Token Contract Address '),
h('i.fa.fa-question-circle'),
Expand Down
4 changes: 2 additions & 2 deletions old-ui/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ const NoticeScreen = require('./components/notice')
const generateLostAccountsNotice = require('../lib/lost-accounts-notice')
// other views
const ConfigScreen = require('./config')
const AddTokenScreen = require('./components/add-token')
import AddTokenScreen from './components/add-token'
const ConfirmAddTokenScreen = require('./components/confirm-add-token')
const RemoveTokenScreen = require('./remove-token')
import RemoveTokenScreen from './remove-token'
const AddSuggestedTokenScreen = require('./add-suggested-token')
const Import = require('./accounts/import')
const ForgetDeviceScreen = require('./components/connect-hardware/forget-screen')
Expand Down
9 changes: 5 additions & 4 deletions old-ui/app/components/add-token/add-token.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CUSTOM_TOKEN_TAB = 'CUSTOM_TOKEN'

const { POA_CODE, MAINNET_CODE } = require('../../../../app/scripts/controllers/network/enums')

class AddTokenScreen extends Component {
export default class AddTokenScreen extends Component {

static contextTypes = {
t: PropTypes.func,
Expand Down Expand Up @@ -175,11 +175,14 @@ class AddTokenScreen extends Component {

h('div', [
h(Tooltip, {
position: 'top',
title: 'The contract of the actual token contract.',
position: 'top',
id: 'addToken',
}, [
h('span', {
style: { fontWeight: 'bold'},
'data-tip': '',
'data-for': 'addToken',
}, 'Token Address' /* this.context.t('tokenAddress')*/),
]),
]),
Expand Down Expand Up @@ -556,5 +559,3 @@ class AddTokenScreen extends Component {
return validDecimals
}
}

module.exports = AddTokenScreen
4 changes: 2 additions & 2 deletions old-ui/app/components/add-token/add-token.container.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { connect } from 'react-redux'
import AddToken from './add-token.component'
import AddTokenScreen from './add-token.component'

const { setPendingTokens, clearPendingTokens, displayWarning, goHome, addToken, showConfirmAddTokensPage } = require('../../../../ui/app/actions')

Expand All @@ -26,4 +26,4 @@ const mapDispatchToProps = dispatch => {
}


export default connect(mapStateToProps, mapDispatchToProps)(AddToken)
export default connect(mapStateToProps, mapDispatchToProps)(AddTokenScreen)
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export default class InfoBox extends Component {
'token-list__token--disabled': tokenAlreadyAdded,
})}
onClick={() => !tokenAlreadyAdded && onToggleToken(results[i])}
key={key || 'tokenRow'}>
key={key || 'tokenRow'}
data-tip=""
data-for={`addToken{key}`}
>
<div
className="token-list__token-icon"
style={{
Expand All @@ -60,8 +63,9 @@ export default class InfoBox extends Component {
position="top"
title={title}
key={i}
id={`addToken{i}`}
>
{tokenRow()}
{tokenRow(i)}
</Tooltip> : tokenRow(i)
)
})
Expand Down
88 changes: 0 additions & 88 deletions old-ui/app/components/balance.js

This file was deleted.

Loading