mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-09 07:30:58 +00:00
merge master
This commit is contained in:
commit
f7bde2d306
@ -17,6 +17,7 @@
|
|||||||
"import/prefer-default-export": 0,
|
"import/prefer-default-export": 0,
|
||||||
"no-use-before-define": 0,
|
"no-use-before-define": 0,
|
||||||
"no-plusplus": 0,
|
"no-plusplus": 0,
|
||||||
|
"jest/no-disabled-tests": 0,
|
||||||
"class-methods-use-this": 0,
|
"class-methods-use-this": 0,
|
||||||
"react/require-default-props": 0,
|
"react/require-default-props": 0,
|
||||||
"react/forbid-prop-types": 0,
|
"react/forbid-prop-types": 0,
|
||||||
|
14
package.json
14
package.json
@ -44,18 +44,18 @@
|
|||||||
"express": "^4.16.4",
|
"express": "^4.16.4",
|
||||||
"friendly-errors-webpack-plugin": "^1.7.0",
|
"friendly-errors-webpack-plugin": "^1.7.0",
|
||||||
"git-revision-webpack-plugin": "^3.0.3",
|
"git-revision-webpack-plugin": "^3.0.3",
|
||||||
"hdkey": "^0.8.0",
|
"hdkey": "^1.1.0",
|
||||||
"history": "^4.7.2",
|
"history": "^4.7.2",
|
||||||
"html-webpack-plugin": "^3.2.0",
|
"html-webpack-plugin": "^3.2.0",
|
||||||
"jest-fetch-mock": "^1.6.5",
|
"jest-fetch-mock": "^2.1.0",
|
||||||
"morgan": "^1.9.1",
|
"morgan": "^1.9.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prop-types": "^15.6.2",
|
"prop-types": "^15.6.2",
|
||||||
"raf": "^3.4.1",
|
"raf": "^3.4.1",
|
||||||
"raven-js": "^3.27.0",
|
"raven-js": "^3.27.0",
|
||||||
"rc-tooltip": "^3.7.3",
|
"rc-tooltip": "^3.7.3",
|
||||||
"react": "^16.7.0",
|
"react": "^16.8.0",
|
||||||
"react-dom": "^16.7.0",
|
"react-dom": "^16.8.0",
|
||||||
"react-hot-loader": "^4.6.5",
|
"react-hot-loader": "^4.6.5",
|
||||||
"react-intl": "^2.8.0",
|
"react-intl": "^2.8.0",
|
||||||
"react-json-view": "^1.19.1",
|
"react-json-view": "^1.19.1",
|
||||||
@ -80,11 +80,11 @@
|
|||||||
"trezor-bridge-communicator": "1.0.2",
|
"trezor-bridge-communicator": "1.0.2",
|
||||||
"trezor-connect": "7.0.0-beta.2",
|
"trezor-connect": "7.0.0-beta.2",
|
||||||
"wallet-address-validator": "^0.2.4",
|
"wallet-address-validator": "^0.2.4",
|
||||||
"web3": "1.0.0-beta.35",
|
"web3": "1.0.0-beta.41",
|
||||||
"webpack": "^4.29.1",
|
"webpack": "^4.29.1",
|
||||||
"webpack-build-notifier": "^0.1.30",
|
"webpack-build-notifier": "^0.1.30",
|
||||||
"webpack-bundle-analyzer": "^3.0.3",
|
"webpack-bundle-analyzer": "^3.0.3",
|
||||||
"whatwg-fetch": "^2.0.4",
|
"whatwg-fetch": "^3.0.0",
|
||||||
"yarn-run-all": "^3.1.1"
|
"yarn-run-all": "^3.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -131,7 +131,7 @@
|
|||||||
"trezor-translations-manager": "^1.0.3",
|
"trezor-translations-manager": "^1.0.3",
|
||||||
"webpack-cli": "^3.2.3",
|
"webpack-cli": "^3.2.3",
|
||||||
"webpack-dev-server": "^3.1.14",
|
"webpack-dev-server": "^3.1.14",
|
||||||
"yargs": "11.0.0"
|
"yargs": "12.0.5"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"fsevents": "1.2.7"
|
"fsevents": "1.2.7"
|
||||||
|
@ -40,9 +40,9 @@ describe('device utils', () => {
|
|||||||
|
|
||||||
it('isWebUSB', () => {
|
it('isWebUSB', () => {
|
||||||
const data = [
|
const data = [
|
||||||
{ transport: { type: 'ParallelTransport', version: 'webusb' } },
|
{ transport: { type: 'webusb', version: '1.6.0' } },
|
||||||
{ transport: { type: null, version: 'aaaaaa' } },
|
{ transport: { type: null, version: 'aaaaaa' } },
|
||||||
{ transport: { type: 'ParallelTransport', version: 'webusb' } },
|
{ transport: { type: 'webusb' } },
|
||||||
];
|
];
|
||||||
|
|
||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
|
@ -79,7 +79,7 @@ export const getStatusName = (deviceStatus: string): string => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const isWebUSB = (transport: Transport) => !!((transport.type && transport.version.indexOf('webusb') >= 0));
|
export const isWebUSB = (transport: Transport) => !!((transport.type && transport.type === 'webusb'));
|
||||||
|
|
||||||
export const isDisabled = (selectedDevice: TrezorDevice, devices: Array<TrezorDevice>, transport: Transport) => {
|
export const isDisabled = (selectedDevice: TrezorDevice, devices: Array<TrezorDevice>, transport: Transport) => {
|
||||||
if (isWebUSB(transport)) return false; // always enabled if webusb
|
if (isWebUSB(transport)) return false; // always enabled if webusb
|
||||||
|
@ -236,7 +236,7 @@ class LeftNavigation extends React.PureComponent<Props, State> {
|
|||||||
isOpen={this.props.wallet.dropdownOpened}
|
isOpen={this.props.wallet.dropdownOpened}
|
||||||
icon={(
|
icon={(
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{showWalletType ? (
|
{showWalletType && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={walletTooltipMsg}
|
content={walletTooltipMsg}
|
||||||
maxWidth={200}
|
maxWidth={200}
|
||||||
@ -258,7 +258,7 @@ class LeftNavigation extends React.PureComponent<Props, State> {
|
|||||||
/>
|
/>
|
||||||
</WalletTypeIconWrapper>
|
</WalletTypeIconWrapper>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
) : null
|
)
|
||||||
}
|
}
|
||||||
{this.props.devices.length > 1 && (
|
{this.props.devices.length > 1 && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
@ -108,9 +108,9 @@ class SignVerify extends Component <Props> {
|
|||||||
const verifyAddressError = this.getError('verifyAddress');
|
const verifyAddressError = this.getError('verifyAddress');
|
||||||
return (
|
return (
|
||||||
<Content>
|
<Content>
|
||||||
<Title>Sign & Verify</Title>
|
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<Sign>
|
<Sign>
|
||||||
|
<Title>Sign Message</Title>
|
||||||
<Row>
|
<Row>
|
||||||
<Input
|
<Input
|
||||||
topLabel="Address"
|
topLabel="Address"
|
||||||
@ -157,6 +157,7 @@ class SignVerify extends Component <Props> {
|
|||||||
</RowButtons>
|
</RowButtons>
|
||||||
</Sign>
|
</Sign>
|
||||||
<Verify>
|
<Verify>
|
||||||
|
<Title>Verify message</Title>
|
||||||
<Row>
|
<Row>
|
||||||
<Input
|
<Input
|
||||||
topLabel="Address"
|
topLabel="Address"
|
||||||
|
@ -10,7 +10,7 @@ describe('Dashboard page', () => {
|
|||||||
.matchImageSnapshot();
|
.matchImageSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('content', () => {
|
it.skip('content', () => {
|
||||||
cy.getTestElement('Dashboard__page__content')
|
cy.getTestElement('Dashboard__page__content')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.matchImageSnapshot();
|
.matchImageSnapshot();
|
||||||
@ -18,7 +18,7 @@ describe('Dashboard page', () => {
|
|||||||
|
|
||||||
// Menu
|
// Menu
|
||||||
|
|
||||||
it('device header', () => {
|
it.skip('device header', () => {
|
||||||
cy.getTestElement('Main__page__device__header')
|
cy.getTestElement('Main__page__device__header')
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.matchImageSnapshot();
|
.matchImageSnapshot();
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import '@babel/polyfill';
|
||||||
import './commands';
|
import './commands';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user