Bumps, yarn stale (#3352)
* Bumps, yarn stale * Bump berry * WIP * Rewrite
This commit is contained in:
parent
a6315aa915
commit
7b64762478
86
.yarn/releases/yarn-2.1.1.js
vendored
Executable file
86
.yarn/releases/yarn-2.1.1.js
vendored
Executable file
File diff suppressed because one or more lines are too long
56
.yarn/releases/yarn-rc.js
vendored
56
.yarn/releases/yarn-rc.js
vendored
File diff suppressed because one or more lines are too long
@ -8,4 +8,4 @@ plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.js
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-rc.js
|
||||
yarnPath: .yarn/releases/yarn-2.1.1.js
|
||||
|
||||
22
package.json
22
package.json
@ -33,13 +33,13 @@
|
||||
"afterSign": "electron-builder-notarize"
|
||||
},
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^1.28.0-beta.2",
|
||||
"@polkadot/api-contract": "^1.28.0-beta.2",
|
||||
"@polkadot/keyring": "^3.1.0-beta.3",
|
||||
"@polkadot/types": "^1.28.0-beta.2",
|
||||
"@polkadot/util": "^3.1.0-beta.3",
|
||||
"@polkadot/util-crypto": "^3.1.0-beta.3",
|
||||
"@polkadot/wasm-crypto": "^1.3.0-beta.28",
|
||||
"@polkadot/api": "^1.28.0-beta.3",
|
||||
"@polkadot/api-contract": "^1.28.0-beta.3",
|
||||
"@polkadot/keyring": "^3.1.0-beta.4",
|
||||
"@polkadot/types": "^1.28.0-beta.3",
|
||||
"@polkadot/util": "^3.1.0-beta.4",
|
||||
"@polkadot/util-crypto": "^3.1.0-beta.4",
|
||||
"@polkadot/wasm-crypto": "^1.3.0-beta.29",
|
||||
"babel-core": "^7.0.0-bridge.0"
|
||||
},
|
||||
"scripts": {
|
||||
@ -81,13 +81,13 @@
|
||||
"@babel/register": "^7.10.5",
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@pinata/sdk": "^1.1.10",
|
||||
"@polkadot/dev": "^0.55.32",
|
||||
"@polkadot/ts": "^0.3.33",
|
||||
"@polkadot/dev": "^0.55.33",
|
||||
"@polkadot/ts": "^0.3.34",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"@types/chart.js": "^2.9.23",
|
||||
"@types/file-saver": "^2.0.1",
|
||||
"@types/i18next": "^13.0.0",
|
||||
"@types/jest": "^26.0.8",
|
||||
"@types/jest": "^26.0.9",
|
||||
"@types/react-beautiful-dnd": "^13.0.0",
|
||||
"@types/react-copy-to-clipboard": "^4.3.0",
|
||||
"@types/react-dom": "^16.9.8",
|
||||
@ -100,7 +100,7 @@
|
||||
"devtron": "^1.4.0",
|
||||
"dnslink-cloudflare": "^3.0.0",
|
||||
"electron": "^9.1.2",
|
||||
"electron-builder": "^22.8.1",
|
||||
"electron-builder": "^22.8.0",
|
||||
"electron-builder-notarize": "^1.2.0",
|
||||
"i18next-scanner": "^2.11.0",
|
||||
"react": "^16.13.1",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.11.1",
|
||||
"@babel/polyfill": "^7.10.4",
|
||||
"@polkadot/dev": "^0.55.32",
|
||||
"@polkadot/dev": "^0.55.33",
|
||||
"@polkadot/react-components": "0.53.0-beta.20",
|
||||
"electron-log": "^4.2.2",
|
||||
"electron-updater": "^4.3.5"
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
"@babel/core": "^7.11.1",
|
||||
"@babel/polyfill": "^7.10.4",
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/dev": "^0.55.32",
|
||||
"@polkadot/dev": "^0.55.33",
|
||||
"@polkadot/react-components": "0.53.0-beta.20",
|
||||
"@polkadot/react-signer": "0.53.0-beta.20",
|
||||
"punycode": "^2.1.1",
|
||||
|
||||
@ -36,6 +36,7 @@ function BaseOverlay ({ children, className = '', icon, type }: Props): React.Re
|
||||
<Button
|
||||
className='closeIcon'
|
||||
icon='times'
|
||||
isBasic
|
||||
isCircular
|
||||
onClick={toggleHidden}
|
||||
/>
|
||||
@ -45,36 +46,52 @@ function BaseOverlay ({ children, className = '', icon, type }: Props): React.Re
|
||||
}
|
||||
|
||||
export default React.memo(styled(BaseOverlay)`
|
||||
border: 1px solid transparent;
|
||||
background: white;
|
||||
border: 0 solid transparent;
|
||||
border-bottom-left-radius: 0.25rem;
|
||||
border-right-width: 0px;
|
||||
border-top-width: 0px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-width: 0.25rem;
|
||||
right: 0;
|
||||
line-height: 1.5em;
|
||||
padding: 0 2rem;
|
||||
padding: 0 1rem;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 0;
|
||||
max-width: 55rem;
|
||||
z-index: 500;
|
||||
|
||||
&:before {
|
||||
border-radius: 0.25rem;
|
||||
bottom: 0;
|
||||
content: ' ';
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
&.isError {
|
||||
background: #ffe6e6;
|
||||
border-color: #c00;
|
||||
color: #4d0000;
|
||||
&:before {
|
||||
background: rgba(255, 12, 12, 0.05);
|
||||
}
|
||||
|
||||
border-color: rgba(255, 12, 12, 1);
|
||||
}
|
||||
|
||||
&.isInfo {
|
||||
background: #fff6cb;
|
||||
border-color: #e7c000;
|
||||
color: #6b5900;
|
||||
&:before {
|
||||
background: rgba(255, 196, 12, 0.05);
|
||||
}
|
||||
|
||||
border-color: rgba(255, 196, 12, 1);
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
max-width: 50rem;
|
||||
padding: 1em 2rem;
|
||||
padding: 1em;
|
||||
position: relative;
|
||||
|
||||
.contentIcon {
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/react-components": "0.53.0-beta.20",
|
||||
"@polkadot/vanitygen": "^0.19.0-beta.0",
|
||||
"@polkadot/vanitygen": "^0.19.0-beta.1",
|
||||
"detect-browser": "^5.1.1",
|
||||
"file-saver": "^2.0.2"
|
||||
}
|
||||
|
||||
@ -19,7 +19,8 @@ function BannerDOT (): React.ReactElement | null {
|
||||
return (
|
||||
<Banner type='warning'>
|
||||
<p><Trans key='dotRenom1'>On approximately August 21st at 13:15 UTC (block number 1,248,328), the DOT token will undergo a <a href='#/poll'>redenomination</a> from its original sale.</Trans></p>
|
||||
<p><Trans key='dotRenom2'>New DOTs will be 100x smaller than DOTs (old). Therefore, your DOT balance will be 100x higher and the price per DOT will be 100x lower. The percentage of the DOTs you own relative to total supply will be unchanged. This will not affect the total value of your position. See the <a
|
||||
<p><Trans key='dotRenom2'>New DOTs will be 100x smaller than DOTs (old). Therefore, your DOT balance will be 100x higher and the price per DOT will be 100x lower. The percentage of the DOTs you own relative to total supply will be unchanged. This will not affect the total value of your position.</Trans></p>
|
||||
<p><Trans key='dotRenom3'>See the <a
|
||||
href='https://polkadot.network/the-results-are-in/'
|
||||
rel='noopener noreferrer'
|
||||
target='_blank'
|
||||
|
||||
@ -7,7 +7,6 @@ import { AmountValidateState } from '../types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { BN_ZERO } from '@polkadot/util';
|
||||
|
||||
@ -47,7 +46,7 @@ function ValidateAmount ({ amount, delegatingAccount, onError }: Props): React.R
|
||||
if (error || warning) {
|
||||
return (
|
||||
<article className={error ? 'error' : 'warning'}>
|
||||
<div><Icon icon='exclamation-triangle' />{error || warning}</div>
|
||||
<div>{error || warning}</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
@ -12,6 +12,6 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/api-contract": "^1.28.0-beta.2"
|
||||
"@polkadot/api-contract": "^1.28.0-beta.3"
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
import { AccountId, Hash, Proposal, ProposalIndex } from '@polkadot/types/interfaces';
|
||||
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import { Button, Icon, Modal, ProposedAction, VoteAccount, VoteActions, VoteToggle } from '@polkadot/react-components';
|
||||
import { Button, Modal, ProposedAction, VoteAccount, VoteActions, VoteToggle } from '@polkadot/react-components';
|
||||
import { useAccounts, useToggle } from '@polkadot/react-hooks';
|
||||
import { isBoolean } from '@polkadot/util';
|
||||
|
||||
@ -85,7 +85,7 @@ function Voting ({ hash, idNumber, isDisabled, members, prime, proposal }: Props
|
||||
</Modal.Columns>
|
||||
{isPrime && (
|
||||
<article className='warning'>
|
||||
<div><Icon icon='exclamation-triangle' />{t<string>('You are voting with this collective\'s prime account. The vote will be the default outcome in case of any abstentions.')}</div>
|
||||
<div>{t<string>('You are voting with this collective\'s prime account. The vote will be the default outcome in case of any abstentions.')}</div>
|
||||
</article>
|
||||
)}
|
||||
</Modal.Content>
|
||||
|
||||
@ -106,7 +106,9 @@ function PollApp ({ className }: Props): React.ReactElement<Props> {
|
||||
<p><Trans key='poll1'>The Polkadot DOT denomination vote: Seventy-two hours after the DOT token becomes transferable, the most popular option from this poll will decide the denomination used for the DOT token.</Trans></p>
|
||||
<p><Trans key='poll2'>This is an <a href='https://en.wikipedia.org/wiki/Approval_voting' rel='noreferrer' target='_blank'>approval vote</a>. There are four options and you may select any combination of them. The most popular of the four will be selected as the final DOT denomination three days after DOT token transfers are enabled.</Trans></p>
|
||||
<p><Trans key='poll3'>Please see the <a href='https://medium.com/polkadot-network/the-first-polkadot-vote-1fc1b8bd357b' rel='noreferrer' target='_blank'>Medium article </a> for more information</Trans></p>
|
||||
<p className='pollAll'><Trans key='poll4'><b>Please vote for any combination of options</b></Trans></p>
|
||||
{canVote && (
|
||||
<p className='pollAll'><Trans key='poll4'><b>Please vote for any combination of options</b></Trans></p>
|
||||
)}
|
||||
<div className={`options ${canVote ? 'canVote' : ''}`}>
|
||||
{options.map(([label, desc, value, onChange], index) =>
|
||||
<Columar
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
import { KeypairType } from '@polkadot/util-crypto/types';
|
||||
|
||||
import React, { useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
||||
import { Button, Dropdown, Icon, Input, Modal, StatusContext } from '@polkadot/react-components';
|
||||
import { Button, Dropdown, Input, Modal, StatusContext } from '@polkadot/react-components';
|
||||
import keyring from '@polkadot/ui-keyring';
|
||||
import { assert, u8aToHex } from '@polkadot/util';
|
||||
import { keyExtractSuri, mnemonicValidate } from '@polkadot/util-crypto';
|
||||
@ -92,7 +92,7 @@ function InjectKeys ({ onClose }: Props): React.ReactElement<Props> | null {
|
||||
value={suri}
|
||||
/>
|
||||
<article className='warning'>
|
||||
<div><Icon icon='exclamation-triangle' />{t<string>('This operation will submit the seed via an RPC call. Do not perform this operation on a public RPC node, but ensure that the node is local, connected to your validator and secure.')}</div>
|
||||
<div>{t<string>('This operation will submit the seed via an RPC call. Do not perform this operation on a public RPC node, but ensure that the node is local, connected to your validator and secure.')}</div>
|
||||
</article>
|
||||
</Modal.Column>
|
||||
<Modal.Column>
|
||||
|
||||
@ -7,7 +7,6 @@ import { AmountValidateState } from '../types';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
import { BN_TEN, BN_THOUSAND, BN_ZERO, formatBalance } from '@polkadot/util';
|
||||
|
||||
@ -73,7 +72,7 @@ function ValidateAmount ({ currentAmount, onError, stashId, value }: Props): Rea
|
||||
if (error || warning) {
|
||||
return (
|
||||
<article className={error ? 'error' : 'warning'}>
|
||||
<div><Icon icon='exclamation-triangle' />{error || warning}</div>
|
||||
<div>{error || warning}</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
@ -6,7 +6,6 @@ import { DeriveBalancesAll } from '@polkadot/api-derive/types';
|
||||
import { AccountId, StakingLedger } from '@polkadot/types/interfaces';
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
import { Option } from '@polkadot/types';
|
||||
import { useApi, useCall } from '@polkadot/react-hooks';
|
||||
|
||||
@ -73,7 +72,7 @@ function ValidateController ({ accountId, controllerId, defaultController, onErr
|
||||
|
||||
return (
|
||||
<article className={isFatal ? 'error' : 'warning'}>
|
||||
<div><Icon icon='exclamation-triangle' />{error}</div>
|
||||
<div>{error}</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
import { I18nProps } from '@polkadot/react-components/types';
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
|
||||
import { useTranslation } from '../../translate';
|
||||
|
||||
@ -37,7 +36,7 @@ function ValidateSessionEd25519 ({ onError, sessionId, stashId }: Props): React.
|
||||
|
||||
return (
|
||||
<article className='warning'>
|
||||
<div><Icon icon='exclamation-triangle' />{error}</div>
|
||||
<div>{error}</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
|
||||
import BN from 'bn.js';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { Icon } from '@polkadot/react-components';
|
||||
|
||||
import { useTranslation } from '../../translate';
|
||||
|
||||
@ -38,7 +37,7 @@ function InputValidationUnstakeThreshold ({ onError, unstakeThreshold }: Props):
|
||||
|
||||
return (
|
||||
<article className='warning'>
|
||||
<div><Icon icon='exclamation-triangle' />{error}</div>
|
||||
<div>{error}</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { AddressMini, Icon, InputAddress, Labelled, TxButton } from '@polkadot/react-components';
|
||||
import { AddressMini, InputAddress, Labelled, TxButton } from '@polkadot/react-components';
|
||||
|
||||
import styled from 'styled-components';
|
||||
|
||||
@ -66,10 +66,7 @@ function SetKey ({ allAccounts, className = '', isMine, sudoKey }: Props): React
|
||||
</section>
|
||||
{willLose && (
|
||||
<article className='warning padded'>
|
||||
<div>
|
||||
<Icon icon='exclamation-triangle' />
|
||||
{t<string>('You will no longer have sudo access')}
|
||||
</div>
|
||||
<div>{t<string>('You will no longer have sudo access')}</div>
|
||||
</article>
|
||||
)}
|
||||
</section>
|
||||
|
||||
@ -6,7 +6,7 @@ import { AccountId, Hash } from '@polkadot/types/interfaces';
|
||||
|
||||
import BN from 'bn.js';
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import { Button, Icon, Modal, VoteAccount, VoteActions, VoteToggle } from '@polkadot/react-components';
|
||||
import { Button, Modal, VoteAccount, VoteActions, VoteToggle } from '@polkadot/react-components';
|
||||
import { useAccounts, useToggle } from '@polkadot/react-hooks';
|
||||
import { isBoolean } from '@polkadot/util';
|
||||
|
||||
@ -55,7 +55,7 @@ function Voting ({ hash, prime, proposalId }: Props): React.ReactElement<Props>
|
||||
/>
|
||||
{isPrime && (
|
||||
<article className='warning'>
|
||||
<div><Icon icon='exclamation-triangle' />{t<string>('You are voting with this collective\'s prime account. The vote will be the default outcome in case of any abstentions.')}</div>
|
||||
<div>{t<string>('You are voting with this collective\'s prime account. The vote will be the default outcome in case of any abstentions.')}</div>
|
||||
</article>
|
||||
)}
|
||||
</Modal.Content>
|
||||
|
||||
@ -31,8 +31,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/ui/tree/master/packages/ui-reactive#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.11.2",
|
||||
"@polkadot/api": "^1.28.0-beta.2",
|
||||
"@polkadot/extension-dapp": "^0.33.0-beta.0",
|
||||
"@polkadot/api": "^1.28.0-beta.3",
|
||||
"@polkadot/extension-dapp": "^0.33.0-beta.1",
|
||||
"rxjs-compat": "^6.6.2"
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,15 +14,15 @@
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.30",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.14.0",
|
||||
"@fortawesome/react-fontawesome": "^0.1.11",
|
||||
"@polkadot/keyring": "^3.1.0-beta.3",
|
||||
"@polkadot/keyring": "^3.1.0-beta.4",
|
||||
"@polkadot/react-api": "0.53.0-beta.20",
|
||||
"@polkadot/react-identicon": "^0.58.0-beta.2",
|
||||
"@polkadot/react-qr": "^0.58.0-beta.2",
|
||||
"@polkadot/react-identicon": "^0.58.0-beta.3",
|
||||
"@polkadot/react-qr": "^0.58.0-beta.3",
|
||||
"@polkadot/react-query": "0.53.0-beta.20",
|
||||
"@polkadot/ui-keyring": "^0.58.0-beta.2",
|
||||
"@polkadot/ui-settings": "^0.58.0-beta.2",
|
||||
"@polkadot/util": "^3.1.0-beta.3",
|
||||
"@polkadot/util-crypto": "^3.1.0-beta.3",
|
||||
"@polkadot/ui-keyring": "^0.58.0-beta.3",
|
||||
"@polkadot/ui-settings": "^0.58.0-beta.3",
|
||||
"@polkadot/util": "^3.1.0-beta.4",
|
||||
"@polkadot/util-crypto": "^3.1.0-beta.4",
|
||||
"chart.js": "^2.9.3",
|
||||
"codeflask": "^1.4.1",
|
||||
"i18next": "^19.6.3",
|
||||
@ -38,7 +38,7 @@
|
||||
"react-markdown": "^4.3.1",
|
||||
"react-router": "^5.2.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-tooltip": "^4.2.7",
|
||||
"react-tooltip": "^4.2.8",
|
||||
"semantic-ui-css": "^2.4.1",
|
||||
"semantic-ui-react": "^0.88.2",
|
||||
"store": "^2.0.12",
|
||||
|
||||
@ -179,9 +179,23 @@ export default createGlobalStyle<Props>`
|
||||
|
||||
&.error,
|
||||
&.warning {
|
||||
font-size: 0.95rem;
|
||||
border-left-width: 0.25rem;
|
||||
line-height: 1.5;
|
||||
margin-left: 2.25rem;
|
||||
padding: 0.75rem 1rem;
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
|
||||
&:before {
|
||||
border-radius: 0.25rem;
|
||||
bottom: 0;
|
||||
content: ' ';
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
|
||||
&.nomargin {
|
||||
@ -189,9 +203,11 @@ export default createGlobalStyle<Props>`
|
||||
}
|
||||
|
||||
&.error {
|
||||
background: #fff6f6;
|
||||
border-color: #e0b4b4;
|
||||
color: #9f3a38;
|
||||
&:before {
|
||||
background: rgba(255, 12, 12, 0.05);
|
||||
}
|
||||
|
||||
border-color: rgba(255, 12, 12, 1);
|
||||
}
|
||||
|
||||
&.padded {
|
||||
@ -203,8 +219,11 @@ export default createGlobalStyle<Props>`
|
||||
}
|
||||
|
||||
&.warning {
|
||||
background: #ffffe0;
|
||||
border-color: #eeeeae;
|
||||
&:before {
|
||||
background: rgba(255, 196, 12, 0.05);
|
||||
}
|
||||
|
||||
border-color: rgba(255, 196, 12, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user