parent
3f980923f9
commit
a7fade8724
@ -22,7 +22,6 @@ module.exports = {
|
||||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'empty/object',
|
||||
'\\.(md)$': '<rootDir>/jest/mocks/empty.js'
|
||||
},
|
||||
modulePathIgnorePatterns: ['<rootDir>/packages/apps-config/build'],
|
||||
setupFilesAfterEnv: ['<rootDir>/jest/jest-setup.ts'],
|
||||
testEnvironment: 'jsdom',
|
||||
testTimeout: 90000,
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
"@polkadot/hw-ledger": "^7.3.1",
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/networks": "^7.3.1",
|
||||
"@polkadot/phishing": "^0.6.275",
|
||||
"@polkadot/phishing": "^0.6.277",
|
||||
"@polkadot/types": "^5.7.1",
|
||||
"@polkadot/types-known": "^5.7.1",
|
||||
"@polkadot/types-support": "^5.7.1",
|
||||
@ -73,7 +73,7 @@
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@crustio/crust-pin": "^1.0.0",
|
||||
"@pinata/sdk": "^1.1.23",
|
||||
"@polkadot/dev": "^0.62.62",
|
||||
"@polkadot/dev": "^0.62.65",
|
||||
"@polkadot/ts": "^0.4.6",
|
||||
"@types/bn.js": "^4.11.6",
|
||||
"@types/chart.js": "^2.9.34",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.15.0",
|
||||
"@babel/polyfill": "^7.12.1",
|
||||
"@polkadot/dev": "^0.62.62",
|
||||
"@polkadot/dev": "^0.62.65",
|
||||
"@polkadot/react-components": "^0.95.2-76",
|
||||
"electron-log": "^4.3.5",
|
||||
"electron-updater": "^4.3.10"
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@polkadot/apps-config": "^0.95.2-76",
|
||||
"@polkadot/apps-routing": "^0.95.2-76",
|
||||
"@polkadot/dev": "^0.62.62",
|
||||
"@polkadot/dev": "^0.62.65",
|
||||
"@polkadot/react-api": "^0.95.2-76",
|
||||
"@polkadot/react-components": "^0.95.2-76",
|
||||
"@polkadot/react-hooks": "^0.95.2-76",
|
||||
|
||||
@ -6,9 +6,9 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@polkadot/phishing": "^0.6.275",
|
||||
"@polkadot/phishing": "^0.6.277",
|
||||
"@polkadot/react-components": "^0.95.2-76",
|
||||
"@polkadot/vanitygen": "^0.45.3",
|
||||
"@polkadot/vanitygen": "^0.45.4-1",
|
||||
"detect-browser": "^5.2.0",
|
||||
"file-saver": "^2.0.5"
|
||||
},
|
||||
|
||||
@ -687,8 +687,8 @@ function Account ({ account: { address, meta }, className = '', delegation, filt
|
||||
/>
|
||||
</div>
|
||||
</td>
|
||||
<td className='media--1500'/>
|
||||
<td/>
|
||||
<td className='media--1500' />
|
||||
<td />
|
||||
<td>
|
||||
<AddressInfo
|
||||
address={address}
|
||||
|
||||
@ -142,13 +142,13 @@ export class AccountsPage {
|
||||
|
||||
this.renderResult = render(
|
||||
<>
|
||||
<div id='tooltips'/>
|
||||
<div id='tooltips' />
|
||||
<Suspense fallback='...'>
|
||||
<QueueProvider value={queue}>
|
||||
<MemoryRouter>
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
<ApiContext.Provider value={mockApi}>
|
||||
<Overview onStatusChange={noop}/>
|
||||
<Overview onStatusChange={noop} />
|
||||
</ApiContext.Provider>
|
||||
</ThemeProvider>
|
||||
</MemoryRouter>
|
||||
|
||||
@ -29,7 +29,7 @@ function Bounties ({ className }: Props): React.ReactElement {
|
||||
|
||||
return (
|
||||
<div className={className}>
|
||||
<Summary activeBounties={bounties?.length}/>
|
||||
<Summary activeBounties={bounties?.length} />
|
||||
<Button.Group>
|
||||
<BountyCreate />
|
||||
</Button.Group>
|
||||
|
||||
@ -75,7 +75,7 @@ function Bounty ({ bestNumber, bounty, className = '', description, index, isEve
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<BountyStatusView bountyStatus={bountyStatus}/>
|
||||
<BountyStatusView bountyStatus={bountyStatus} />
|
||||
</td>
|
||||
<td><FormatBalance value={value} /></td>
|
||||
<td>
|
||||
|
||||
@ -35,7 +35,7 @@ function VotingDescriptionInfo ({ className, proposal, status }: Props): React.R
|
||||
data-testid='voting-description'
|
||||
>
|
||||
{bestProposalName && votingDescriptions.current[bestProposalName] &&
|
||||
<LabelHelp help={votingDescriptions.current[bestProposalName]}/>
|
||||
<LabelHelp help={votingDescriptions.current[bestProposalName]} />
|
||||
}
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -37,7 +37,7 @@ function VotingSummary ({ className, proposal, status }: Props): JSX.Element {
|
||||
<div className='voting-summary-text'><span>{t('Aye')}</span> <b>{ayes}/{threshold}</b></div>
|
||||
<div className='voting-summary-text'><span>{t('Nay')}</span> <b>{nays}/{nayThreshold}</b></div>
|
||||
<div className='link-info'>
|
||||
<VotingLink/>
|
||||
<VotingLink />
|
||||
<VotingDescriptionInfo
|
||||
proposal={proposal}
|
||||
status={status}
|
||||
|
||||
@ -21,7 +21,7 @@ function BountyInfo ({ className = '', description, type = 'info' }: Props): Rea
|
||||
<div className={className}>
|
||||
{type === 'warning' && (
|
||||
<div className='info-icon'>
|
||||
<Icon icon={'exclamation-triangle'}/>
|
||||
<Icon icon={'exclamation-triangle'} />
|
||||
</div>
|
||||
)}
|
||||
<div className='description'>
|
||||
|
||||
@ -35,7 +35,7 @@ function VotersColumn ({ className, option, proposals, status }: Props): React.R
|
||||
data-testid={`voters_${option}_${accountId.toString()}`}
|
||||
key={accountId.toString()}
|
||||
>
|
||||
<AddressSmall value={accountId}/>
|
||||
<AddressSmall value={accountId} />
|
||||
</div>),
|
||||
[option, votes]);
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ function BountiesApp ({ basePath, className = '' }: Props): React.ReactElement<P
|
||||
basePath={basePath}
|
||||
items={itemsRef.current}
|
||||
/>
|
||||
<Bounties/>
|
||||
<Bounties />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
@ -115,13 +115,13 @@ export class BountiesPage {
|
||||
|
||||
return render(
|
||||
<>
|
||||
<div id='tooltips'/>
|
||||
<div id='tooltips' />
|
||||
<Suspense fallback='...'>
|
||||
<QueueProvider value={queue}>
|
||||
<MemoryRouter>
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
<ApiContext.Provider value={mockApi}>
|
||||
<Bounties/>
|
||||
<Bounties />
|
||||
</ApiContext.Provider>
|
||||
</ThemeProvider>
|
||||
</MemoryRouter>
|
||||
|
||||
@ -22,7 +22,7 @@ function Voters ({ balance, voters }: Props): React.ReactElement<Props> {
|
||||
return (
|
||||
<>
|
||||
<td className='all expand'>
|
||||
<Expander summary={<FormatBalance value={balance} />} >
|
||||
<Expander summary={<FormatBalance value={balance} />}>
|
||||
{voters.map((who): React.ReactNode =>
|
||||
<AddressMini
|
||||
key={who.toString()}
|
||||
|
||||
@ -177,7 +177,7 @@ function Sign ({ className = '' }: Props): React.ReactElement<Props> {
|
||||
{isLocked && (
|
||||
<div className='unlock-overlay-warning'>
|
||||
<div className='unlock-overlay-content'>
|
||||
{t<string>('You need to unlock this account to be able to sign data.')}<br/>
|
||||
{t<string>('You need to unlock this account to be able to sign data.')}<br />
|
||||
<Button.Group>
|
||||
<Button
|
||||
icon='unlock'
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.15.3",
|
||||
"@polkadot/api": "^5.7.1",
|
||||
"@polkadot/extension-dapp": "^0.39.4-5",
|
||||
"@polkadot/extension-dapp": "^0.39.4-6",
|
||||
"@substrate/connect": "^0.3.18",
|
||||
"fflate": "^0.7.1",
|
||||
"rxjs": "^7.3.0"
|
||||
|
||||
@ -11,11 +11,11 @@
|
||||
"@fortawesome/react-fontawesome": "^0.1.15",
|
||||
"@polkadot/keyring": "^7.3.1",
|
||||
"@polkadot/react-api": "^0.95.2-76",
|
||||
"@polkadot/react-identicon": "^0.85.3",
|
||||
"@polkadot/react-qr": "^0.85.3",
|
||||
"@polkadot/react-identicon": "^0.85.4-1",
|
||||
"@polkadot/react-qr": "^0.85.4-1",
|
||||
"@polkadot/react-query": "^0.95.2-76",
|
||||
"@polkadot/ui-keyring": "^0.85.3",
|
||||
"@polkadot/ui-settings": "^0.85.3",
|
||||
"@polkadot/ui-keyring": "^0.85.4-1",
|
||||
"@polkadot/ui-settings": "^0.85.4-1",
|
||||
"@polkadot/util": "^7.3.1",
|
||||
"@polkadot/util-crypto": "^7.3.1",
|
||||
"chart.js": "^2.9.4",
|
||||
|
||||
@ -231,7 +231,7 @@ function createBalanceItems (formatIndex: number, lookup: Record<string, string>
|
||||
<FormatBalance
|
||||
className='result'
|
||||
formatIndex={formatIndex}
|
||||
labelPost={<IconVoid/>}
|
||||
labelPost={<IconVoid />}
|
||||
value={balancesAll.freeBalance.add(balancesAll.reservedBalance)}
|
||||
/>
|
||||
</React.Fragment>
|
||||
@ -242,7 +242,7 @@ function createBalanceItems (formatIndex: number, lookup: Record<string, string>
|
||||
<FormatBalance
|
||||
className='result'
|
||||
formatIndex={formatIndex}
|
||||
labelPost={<IconVoid/>}
|
||||
labelPost={<IconVoid />}
|
||||
value={(balancesAll as DeriveBalancesAll).availableBalance}
|
||||
/>
|
||||
</React.Fragment>
|
||||
@ -321,7 +321,7 @@ function createBalanceItems (formatIndex: number, lookup: Record<string, string>
|
||||
<FormatBalance
|
||||
className='result'
|
||||
formatIndex={formatIndex}
|
||||
labelPost={<IconVoid/>}
|
||||
labelPost={<IconVoid />}
|
||||
value={balancesAll.reservedBalance}
|
||||
/>
|
||||
</React.Fragment>
|
||||
@ -332,7 +332,7 @@ function createBalanceItems (formatIndex: number, lookup: Record<string, string>
|
||||
<FormatBalance
|
||||
className='result'
|
||||
formatIndex={formatIndex}
|
||||
labelPost={<IconVoid/>}
|
||||
labelPost={<IconVoid />}
|
||||
value={ownBonded}
|
||||
>
|
||||
{otherBonded.length !== 0 && (
|
||||
@ -340,7 +340,7 @@ function createBalanceItems (formatIndex: number, lookup: Record<string, string>
|
||||
<FormatBalance
|
||||
formatIndex={formatIndex}
|
||||
key={index}
|
||||
labelPost={<IconVoid/>}
|
||||
labelPost={<IconVoid />}
|
||||
value={bonded}
|
||||
/>
|
||||
)})</>
|
||||
|
||||
@ -35,7 +35,7 @@ function AddressSmall ({ children, className = '', defaultName, onClickName, ove
|
||||
<div className={displayAsGrid ? 'addressGrid' : ''}>
|
||||
{parentAddress && (
|
||||
<div className='parentAccountName'>
|
||||
<ParentAccount address={parentAddress}/>
|
||||
<ParentAccount address={parentAddress} />
|
||||
</div>
|
||||
)}
|
||||
<AccountName
|
||||
|
||||
@ -100,9 +100,9 @@ function InputFile ({ accept, className = '', clearContent, help, isDisabled, is
|
||||
ref={dropRef}
|
||||
>
|
||||
{({ getInputProps, getRootProps }): JSX.Element => (
|
||||
<div {...getRootProps({ className: `ui--InputFile${isError ? ' error' : ''} ${className}` })} >
|
||||
<div {...getRootProps({ className: `ui--InputFile${isError ? ' error' : ''} ${className}` })}>
|
||||
<input {...getInputProps()} />
|
||||
<em className='label' >
|
||||
<em className='label'>
|
||||
{
|
||||
!file || clearContent
|
||||
? placeholder || t<string>('click to select or drag and drop the file here')
|
||||
|
||||
@ -8,7 +8,7 @@ import styled from 'styled-components';
|
||||
|
||||
function Divider ({ className = '' }: DividerProps): React.ReactElement {
|
||||
return (
|
||||
<div className={`ui--Menu__Divider ${className}`}/>
|
||||
<div className={`ui--Menu__Divider ${className}`} />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ function Base (props: ModalProps): React.ReactElement<ModalProps> {
|
||||
className={`theme--${theme} ui--Modal ${className} size-${size}`}
|
||||
data-testid={testId}
|
||||
>
|
||||
<DisableGlobalScroll/>
|
||||
<DisableGlobalScroll />
|
||||
<div
|
||||
className='ui--Modal__overlay'
|
||||
onClick={onClose}
|
||||
|
||||
@ -46,7 +46,7 @@ function TestModal () {
|
||||
function renderModal () {
|
||||
return render(
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
<TestModal/>
|
||||
<TestModal />
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
@ -23,7 +23,7 @@ function TestPopup () {
|
||||
|
||||
function renderPopup () {
|
||||
return render(
|
||||
<TestPopup/>
|
||||
<TestPopup />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user