Bump dev (w/ jsx linting) (#514)

This commit is contained in:
Jaco
2021-08-26 11:29:23 +03:00
committed by GitHub
parent 28956664cc
commit 9c47628233
11 changed files with 673 additions and 819 deletions
+5 -5
View File
@@ -30,16 +30,16 @@
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/runtime": "^7.15.3",
"@polkadot/dev": "^0.62.60",
"@polkadot/ts": "^0.4.4",
"@polkadot/x-bundle": "^7.2.1",
"@types/jest": "^26.0.24",
"@polkadot/dev": "^0.62.62",
"@polkadot/ts": "^0.4.6",
"@polkadot/x-bundle": "^7.2.2-5",
"@types/jest": "^27.0.1",
"babel-plugin-transform-vue-template": "^0.4.2",
"empty": "^0.10.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"react-native": "^0.64.2",
"react-native": "^0.65.1",
"vue-template-compiler": "^2.6.14",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
+18 -12
View File
@@ -1,7 +1,7 @@
// Copyright 2017-2021 @polkadot/example-react authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React, { useEffect, useState } from 'react';
import React, { useCallback, useEffect, useState } from 'react';
import { Button, SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, View } from 'react-native';
import { Colors } from 'react-native/Libraries/NewAppScreen';
@@ -57,17 +57,22 @@ export default function App (): React.ReactElement | null {
const [phrase, setPhrase] = useState<string | null>(null);
const [ss58Format, setSS58Format] = useState(42);
const _onClickNew = (): void => {
const phrase = mnemonicGenerate(12);
const { address } = keyring.createFromUri(phrase);
const _onClickNew = useCallback(
(): void => {
const phrase = mnemonicGenerate(12);
const { address } = keyring.createFromUri(phrase);
setAddress(keyring.encodeAddress(address, ss58Format));
setPhrase(phrase);
};
setAddress(keyring.encodeAddress(address, ss58Format));
setPhrase(phrase);
},
[ss58Format]
);
const _onChangeSS58Format = (value: string): void => {
setSS58Format(parseInt(value, 10));
};
const _onChangeSS58Format = useCallback(
(value: string) =>
() => setSS58Format(parseInt(value, 10)),
[]
);
useEffect((): void => {
isReady && _onClickNew();
@@ -108,7 +113,8 @@ export default function App (): React.ReactElement | null {
<SafeAreaView>
<ScrollView
contentInsetAdjustmentBehavior='automatic'
style={styles.scrollView}>
style={styles.scrollView}
>
<View style={styles.body}>
<View style={styles.sectionContainer}>
<Text style={styles.mainTitle}>React-Native Example</Text>
@@ -144,7 +150,7 @@ export default function App (): React.ReactElement | null {
.map(({ text, value }): React.ReactNode => (
<Button
key={value}
onPress={(): void => _onChangeSS58Format(value.toString())}
onPress={_onChangeSS58Format(value.toString())}
title={text}
/>
))
+4 -4
View File
@@ -12,19 +12,19 @@
"test": "jest"
},
"dependencies": {
"@polkadot/keyring": "^7.2.1",
"@polkadot/keyring": "^7.2.2-5",
"@polkadot/reactnative-identicon": "0.85.2-0",
"@polkadot/ui-keyring": "0.85.2-0",
"@polkadot/ui-settings": "0.85.2-0",
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"@polkadot/util": "^7.2.2-5",
"@polkadot/util-crypto": "^7.2.2-5",
"@react-native-community/async-storage": "^1.12.1",
"fast-text-encoding": "^1.0.3",
"get-yarn-workspaces": "^1.0.2",
"os-browserify": "^0.3.0",
"process": "^0.11.10",
"react": "^17.0.2",
"react-native": "^0.64.2",
"react-native": "^0.65.1",
"react-native-crypto": "^2.2.0",
"react-native-randombytes": "^3.6.1",
"stream-http": "^3.2.0"
+7 -7
View File
@@ -13,16 +13,16 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/keyring": "^7.2.1",
"@polkadot/keyring": "^7.2.2-5",
"@polkadot/ui-settings": "0.85.2-0",
"@polkadot/ui-shared": "0.85.2-0",
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"@polkadot/util": "^7.2.2-5",
"@polkadot/util-crypto": "^7.2.2-5",
"color": "^3.2.1",
"ethereum-blockies-base64": "^1.0.2",
"jdenticon": "3.1.1",
"react-copy-to-clipboard": "^5.0.3",
"styled-components": "^5.3.0"
"react-copy-to-clipboard": "^5.0.4",
"styled-components": "^5.3.1"
},
"peerDependencies": {
"@polkadot/keyring": "*",
@@ -36,8 +36,8 @@
"devDependencies": {
"@types/react-copy-to-clipboard": "^5.0.1",
"@types/react-dom": "^17.0.9",
"@types/styled-components": "^5.1.12",
"styled-components": "^5.3.0",
"@types/styled-components": "^5.1.13",
"styled-components": "^5.3.1",
"xmlserializer": "^0.6.1"
}
}
+4 -4
View File
@@ -10,15 +10,15 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"@polkadot/util": "^7.2.2-5",
"@polkadot/util-crypto": "^7.2.2-5",
"qrcode-generator": "^1.4.4",
"react-qr-reader": "^2.2.1",
"styled-components": "^5.3.0"
"styled-components": "^5.3.1"
},
"devDependencies": {
"@types/react-qr-reader": "^2.1.4",
"@types/styled-components": "^5.1.12"
"@types/styled-components": "^5.1.13"
},
"peerDependencies": {
"@polkadot/util": "*",
+3 -3
View File
@@ -14,9 +14,9 @@
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/ui-shared": "0.85.2-0",
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"react-native-svg": "^12.2.0"
"@polkadot/util": "^7.2.2-5",
"@polkadot/util-crypto": "^7.2.2-5",
"react-native-svg": "^12.1.1"
},
"peerDependencies": {
"@polkadot/util": "*",
+3 -3
View File
@@ -14,10 +14,10 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/hw-ledger": "^7.2.1",
"@polkadot/keyring": "^7.2.1",
"@polkadot/hw-ledger": "^7.2.2-5",
"@polkadot/keyring": "^7.2.2-5",
"@polkadot/ui-settings": "0.85.2-0",
"@polkadot/util": "^7.2.1",
"@polkadot/util": "^7.2.2-5",
"mkdirp": "^1.0.4",
"rxjs": "^7.3.0",
"store": "^2.0.12"
+2 -2
View File
@@ -10,8 +10,8 @@
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/networks": "^7.2.1",
"@polkadot/util": "^7.2.1",
"@polkadot/networks": "^7.2.2-5",
"@polkadot/util": "^7.2.2-5",
"eventemitter3": "^4.0.7",
"store": "^2.0.12"
},
+2 -2
View File
@@ -17,8 +17,8 @@
"@polkadot/util-crypto": "*"
},
"devDependencies": {
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"@polkadot/util": "^7.2.2-5",
"@polkadot/util-crypto": "^7.2.2-5",
"@types/color": "^3.0.2",
"@types/xmlserializer": "^0.6.2"
}
+2 -2
View File
@@ -14,8 +14,8 @@
"dependencies": {
"@babel/runtime": "^7.15.3",
"@polkadot/ui-shared": "0.85.2-0",
"@polkadot/util": "^7.2.1",
"@polkadot/util-crypto": "^7.2.1",
"@polkadot/util": "^7.2.2-5",
"@polkadot/util-crypto": "^7.2.2-5",
"jdenticon": "3.1.1"
},
"peerDependencies": {
+623 -775
View File
File diff suppressed because it is too large Load Diff