Bump dev, apply JSX rules (#301)

This commit is contained in:
Jaco Greeff
2020-04-01 13:18:28 +02:00
committed by GitHub
parent cd5a881f32
commit 371262d056
18 changed files with 344 additions and 278 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
matrix:
step: ['build:release', 'docs:release']
name: ${{ matrix.step }}
if: "! contains(github.event.head_commit.message, '[CI Skip]')"
if: "! contains(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/ui'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
+1 -1
View File
@@ -32,7 +32,7 @@
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/runtime": "^7.9.2",
"@polkadot/dev": "^0.51.9",
"@polkadot/dev": "^0.52.1",
"@polkadot/ts": "^0.3.14",
"@types/jest": "^25.1.4",
"babel-plugin-transform-vue-template": "^0.4.2",
+30 -6
View File
@@ -58,13 +58,29 @@ function App ({ className }: Props): React.ReactElement<Props> | null {
</section>
<section>
<label>phrase</label>
<textarea cols={40} rows={4} readOnly value={phrase} />
<textarea
cols={40}
readOnly
rows={4}
value={phrase}
/>
</section>
<section>
<label>icons</label>
<Identicon className='icon' value={address} />
<Identicon className='icon' value={address} theme='polkadot' />
<Identicon className='icon' value={address} theme='beachball' />
<Identicon
className='icon'
value={address}
/>
<Identicon
className='icon'
theme='polkadot'
value={address}
/>
<Identicon
className='icon'
theme='beachball'
value={address}
/>
</section>
<section>
<label>address</label>
@@ -72,11 +88,19 @@ function App ({ className }: Props): React.ReactElement<Props> | null {
</section>
<section>
<label>ss58 format</label>
<select onChange={_onChangeSS58Format} value={ss58Format}>
<select
onChange={_onChangeSS58Format}
value={ss58Format}
>
{settings.availablePrefixes
.filter((_, index): boolean => index !== 0)
.map(({ text, value }): React.ReactNode => (
<option key={value} value={value}>{text}</option>
<option
key={value}
value={value}
>
{text}
</option>
))
}
</select>
+9 -3
View File
@@ -105,11 +105,17 @@ export default function App (): React.ReactElement<{}> | null {
<Text style={styles.mainTitle}>React-Native Example</Text>
</View>
<View style={styles.sectionContainer}>
<Button title='Generate Address' onPress={_onClickNew}></Button>
<Button
onPress={_onClickNew}
title='Generate Address'
/>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Phrase</Text>
<Text selectable={true} style={styles.sectionDescription}>
<Text
selectable={true}
style={styles.sectionDescription}
>
{phrase}
</Text>
</View>
@@ -129,8 +135,8 @@ export default function App (): React.ReactElement<{}> | null {
.map(({ text, value }): React.ReactNode => (
<Button
key={value}
title={text}
onPress={(): void => _onChangeSS58Format(value.toString())}
title={text}
/>
))
}
+3 -3
View File
@@ -40,9 +40,9 @@
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/runtime": "^7.9.2",
"@polkadot/keyring": "^2.7.0-beta.8",
"@polkadot/util": "^2.7.0-beta.8",
"@polkadot/util-crypto": "^2.7.0-beta.8",
"@polkadot/keyring": "^2.7.1",
"@polkadot/util": "^2.7.1",
"@polkadot/util-crypto": "^2.7.1",
"@react-native-community/cli-platform-ios": "^4.3.0",
"@types/react-test-renderer": "16.9.2",
"babel-jest": "^25.1.0",
+3 -3
View File
@@ -26,9 +26,9 @@
"react-is": "*"
},
"devDependencies": {
"@polkadot/keyring": "^2.7.0-beta.8",
"@polkadot/util": "^2.7.0-beta.8",
"@polkadot/util-crypto": "^2.7.0-beta.8",
"@polkadot/keyring": "^2.7.1",
"@polkadot/util": "^2.7.1",
"@polkadot/util-crypto": "^2.7.1",
"@types/react-copy-to-clipboard": "^4.3.0",
"@types/react-dom": "^16.9.5",
"@types/styled-components": "^5.0.1",
@@ -14,10 +14,10 @@ export default class Jdenticon extends React.PureComponent<Props> {
return (
<div
className={`container ${className}`}
style={style}
dangerouslySetInnerHTML={ {
dangerouslySetInnerHTML={{
__html: jdenticon.toSvg(publicKey.substr(2), size)
} }
}}
style={style}
/>
);
}
@@ -35,11 +35,11 @@ export default class Identicon extends React.PureComponent<Props> {
style={style}
>
<svg
height={size}
id={address}
name={address}
width={size}
height={size}
viewBox='0 0 64 64'
width={size}
>
{generateIcon(address, sixPoint).map(this.renderCircle)}
</svg>
@@ -47,14 +47,14 @@ export default class Identicon extends React.PureComponent<Props> {
);
}
private renderCircle = ({ cx, cy, r, fill }: Circle, key: number): React.ReactNode => {
private renderCircle = ({ cx, cy, fill, r }: Circle, key: number): React.ReactNode => {
return (
<circle
key={key}
cx={cx}
cy={cy}
r={r}
fill={fill}
key={key}
r={r}
/>
);
}
+1 -1
View File
@@ -28,8 +28,8 @@ function DisplayExtrinsic ({ address, className, genesisHash, size, style }: Pro
return (
<QrDisplay
className={className}
skipEncoding={true}
size={size}
skipEncoding
style={style}
value={data}
/>
+1 -1
View File
@@ -28,8 +28,8 @@ function DisplayNetworkSpecs ({ className, networkSpecs, size, style }: Props):
return (
<QrDisplay
className={className}
skipEncoding={true}
size={size}
skipEncoding
style={style}
value={data}
/>
+1 -1
View File
@@ -19,7 +19,7 @@
"react-native": "*"
},
"devDependencies": {
"@polkadot/util-crypto": "^2.7.0-beta.8",
"@polkadot/util-crypto": "^2.7.1",
"@types/react-native": "^0.61.23"
}
}
@@ -19,8 +19,8 @@ export default function Empty ({ size }: Props): React.ReactElement<Props> {
<Circle
cx='32'
cy='32'
r='32'
fill='#eee'
r='32'
/>
</Svg>
</View>
@@ -13,14 +13,14 @@ interface Props extends BaseProps {
sixPoint?: boolean;
}
function renderCircle ({ cx, cy, r, fill }: CircleType, key: number): React.ReactNode {
function renderCircle ({ cx, cy, fill, r }: CircleType, key: number): React.ReactNode {
return (
<SvgCircle
key={key}
cx={cx}
cy={cy}
r={r}
fill={fill}
key={key}
r={r}
/>
);
}
@@ -31,8 +31,8 @@ export default function Identicon ({ address, sixPoint, size }: Props): React.Re
<Svg
height={size}
id={address}
width={size}
viewBox='0 0 64 64'
width={size}
>
{generateIcon(address, sixPoint).map(renderCircle)}
</Svg>
+3 -3
View File
@@ -27,9 +27,9 @@
"store": "^2.0.12"
},
"devDependencies": {
"@polkadot/keyring": "^2.7.0-beta.8",
"@polkadot/types": "^1.9.0-beta.12",
"@polkadot/util": "^2.7.0-beta.8",
"@polkadot/keyring": "^2.7.1",
"@polkadot/types": "^1.9.1",
"@polkadot/util": "^2.7.1",
"@types/ledgerhq__hw-transport-node-hid": "^4.22.1",
"@types/ledgerhq__hw-transport-u2f": "^4.21.1",
"@types/mkdirp": "^1.0.0",
+1 -1
View File
@@ -14,7 +14,7 @@
"store": "^2.0.12"
},
"devDependencies": {
"@polkadot/util": "^2.7.0-beta.8",
"@polkadot/util": "^2.7.1",
"@types/store": "^2.0.2"
},
"peerDependencies": {
+2 -2
View File
@@ -17,8 +17,8 @@
"@polkadot/util-crypto": "*"
},
"devDependencies": {
"@polkadot/util": "^2.7.0-beta.8",
"@polkadot/util-crypto": "^2.7.0-beta.8",
"@polkadot/util": "^2.7.1",
"@polkadot/util-crypto": "^2.7.1",
"@types/color": "^3.0.1"
}
}
+1 -1
View File
@@ -18,7 +18,7 @@
"vue": "*"
},
"devDependencies": {
"@polkadot/util-crypto": "^2.7.0-beta.8",
"@polkadot/util-crypto": "^2.7.1",
"vue": "^2.6.11"
}
}
+274 -238
View File
File diff suppressed because it is too large Load Diff