Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7a3a559ea | ||
|
|
a7228422e4 | ||
|
|
6a13c62eab | ||
|
|
874a7f17ff | ||
|
|
b008094f30 | ||
|
|
5396b8f73f | ||
|
|
96b0470ee7 | ||
|
|
0a5bea1d4a | ||
|
|
573f92f00d | ||
|
|
d0bac4cfb1 | ||
|
|
e00e1b8d6d | ||
|
|
9705f1de4a | ||
|
|
bd849e317a | ||
|
|
69754474f2 |
@@ -1 +0,0 @@
|
|||||||
2.8.2
|
|
||||||
-32
@@ -1,32 +0,0 @@
|
|||||||
3
|
|
||||||
|
|
||||||
0.57.2
|
|
||||||
0.57.3
|
|
||||||
0.66.2
|
|
||||||
0.66.3
|
|
||||||
0.71.2
|
|
||||||
0.71.3
|
|
||||||
0.84.2
|
|
||||||
0.84.3
|
|
||||||
0.85.2
|
|
||||||
0.85.3
|
|
||||||
0.85.4
|
|
||||||
0.85.5
|
|
||||||
0.86.2
|
|
||||||
0.86.3
|
|
||||||
0.86.4
|
|
||||||
0.86.5
|
|
||||||
0.86.6
|
|
||||||
0.86.7
|
|
||||||
0.87.2
|
|
||||||
0.87.3
|
|
||||||
0.87.4
|
|
||||||
0.87.5
|
|
||||||
0.87.6
|
|
||||||
0.87.7
|
|
||||||
0.89.2
|
|
||||||
0.89.3
|
|
||||||
|
|
||||||
2.6.2
|
|
||||||
2.7.2
|
|
||||||
2.8.2
|
|
||||||
+1
-3
@@ -1,7 +1,5 @@
|
|||||||
build/
|
build/
|
||||||
build-cjs/
|
build-*/
|
||||||
build-esm/
|
|
||||||
build-docs/
|
|
||||||
coverage/
|
coverage/
|
||||||
node_modules/
|
node_modules/
|
||||||
tmp/
|
tmp/
|
||||||
|
|||||||
@@ -1,5 +1,26 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2.9.3 Jul 30, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Bump to `@polkadot/util` 10.1.2
|
||||||
|
|
||||||
|
|
||||||
|
## 2.9.2 Jul 24, 2022
|
||||||
|
|
||||||
|
Contributed:
|
||||||
|
|
||||||
|
- Adjust vue-identicon with no props/data duplication (Thanks to https://github.com/vikiival)
|
||||||
|
|
||||||
|
|
||||||
|
## 2.9.1 Jul 21, 2022
|
||||||
|
|
||||||
|
Changes:
|
||||||
|
|
||||||
|
- Bump to `@polkadot/util` 10.1.1
|
||||||
|
|
||||||
|
|
||||||
## 2.8.2 Jul 10, 2022
|
## 2.8.2 Jul 10, 2022
|
||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,4 @@
|
|||||||
628 Jaco 2.8.2 (#664)
|
634 Jaco 2.9.3 (#671)
|
||||||
7 YJ fix #224: decrease frame size to 1024, set multipart bool (#225)
|
7 YJ fix #224: decrease frame size to 1024, set multipart bool (#225)
|
||||||
4 Antoine Estienne Refactor logic to better use prefix (#491)
|
4 Antoine Estienne Refactor logic to better use prefix (#491)
|
||||||
4 kwingram25 fix ff api url issue (#289)
|
4 kwingram25 fix ff api url issue (#289)
|
||||||
@@ -27,6 +27,7 @@
|
|||||||
1 Nantian fix bigint type (#510)
|
1 Nantian fix bigint type (#510)
|
||||||
1 Nikhil Ranjan Updated to valid javascript (#271)
|
1 Nikhil Ranjan Updated to valid javascript (#271)
|
||||||
1 Shawn Tabrizi Add a new `notification` setting (#498)
|
1 Shawn Tabrizi Add a new `notification` setting (#498)
|
||||||
|
1 Viki Val :bug: identicon has isAlternative both as data and prop (#668)
|
||||||
1 Wei Tang Add Kulupu to the network selection list (#254)
|
1 Wei Tang Add Kulupu to the network selection list (#254)
|
||||||
1 WoeOm add darwinia ss58 (#379)
|
1 WoeOm add darwinia ss58 (#379)
|
||||||
1 yuhui1208 [Stores] make FileStroe read key safely (#338)
|
1 yuhui1208 [Stores] make FileStroe read key safely (#338)
|
||||||
|
|||||||
+13
-9
@@ -11,7 +11,11 @@
|
|||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
|
"versions": {
|
||||||
|
"git": "2.9.3",
|
||||||
|
"npm": "2.9.3"
|
||||||
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
@@ -28,11 +32,11 @@
|
|||||||
"test:one": "polkadot-dev-run-test"
|
"test:one": "polkadot-dev-run-test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.18.6",
|
"@babel/core": "^7.18.9",
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"@polkadot/dev": "^0.67.68",
|
"@polkadot/dev": "^0.67.86",
|
||||||
"@polkadot/x-bundle": "^10.0.2",
|
"@polkadot/x-bundle": "^10.1.2",
|
||||||
"@types/jest": "^28.1.4",
|
"@types/jest": "^28.1.6",
|
||||||
"babel-loader": "^8.2.5",
|
"babel-loader": "^8.2.5",
|
||||||
"babel-plugin-transform-vue-template": "^0.4.2",
|
"babel-plugin-transform-vue-template": "^0.4.2",
|
||||||
"empty": "^0.10.1",
|
"empty": "^0.10.1",
|
||||||
@@ -40,10 +44,10 @@
|
|||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-is": "^18.2.0",
|
"react-is": "^18.2.0",
|
||||||
"react-native": "^0.69.1",
|
"react-native": "^0.69.3",
|
||||||
"stream-browserify": "^3.0.0",
|
"stream-browserify": "^3.0.0",
|
||||||
"vue-template-compiler": "^2.6.14",
|
"vue-template-compiler": "^2.7.8",
|
||||||
"webpack": "^5.73.0",
|
"webpack": "^5.74.0",
|
||||||
"webpack-cli": "^4.10.0",
|
"webpack-cli": "^4.10.0",
|
||||||
"webpack-serve": "^4.0.0"
|
"webpack-serve": "^4.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6"
|
"@babel/runtime": "^7.18.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/example-react', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/example-react', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6"
|
"@babel/runtime": "^7.18.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/example-vue', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/example-vue', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -17,15 +17,15 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"@polkadot/keyring": "^10.0.2",
|
"@polkadot/keyring": "^10.1.2",
|
||||||
"@polkadot/ui-settings": "2.8.2",
|
"@polkadot/ui-settings": "2.9.3",
|
||||||
"@polkadot/ui-shared": "2.8.2",
|
"@polkadot/ui-shared": "2.9.3",
|
||||||
"@polkadot/util": "^10.0.2",
|
"@polkadot/util": "^10.1.2",
|
||||||
"@polkadot/util-crypto": "^10.0.2",
|
"@polkadot/util-crypto": "^10.1.2",
|
||||||
"color": "^3.2.1",
|
"color": "^3.2.1",
|
||||||
"ethereum-blockies-base64": "^1.0.2",
|
"ethereum-blockies-base64": "^1.0.2",
|
||||||
"jdenticon": "3.1.1",
|
"jdenticon": "3.1.1",
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
"styled-components": "^5.3.5"
|
"styled-components": "^5.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react-copy-to-clipboard": "^5.0.2",
|
"@types/react-copy-to-clipboard": "^5.0.4",
|
||||||
"@types/react-dom": "^18.0.6",
|
"@types/react-dom": "^18.0.6",
|
||||||
"@types/styled-components": "^5.1.25",
|
"@types/styled-components": "^5.1.25",
|
||||||
"styled-components": "^5.3.5",
|
"styled-components": "^5.3.5",
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/react-identicon', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/react-identicon', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -17,13 +17,13 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"@polkadot/ui-settings": "2.8.2",
|
"@polkadot/ui-settings": "2.9.3",
|
||||||
"@polkadot/util": "^10.0.2",
|
"@polkadot/util": "^10.1.2",
|
||||||
"@polkadot/util-crypto": "^10.0.2",
|
"@polkadot/util-crypto": "^10.1.2",
|
||||||
"qrcode-generator": "^1.4.4",
|
"qrcode-generator": "^1.4.4",
|
||||||
"react-qr-reader": "^2.2.1",
|
"react-qr-reader": "^2.2.1",
|
||||||
"styled-components": "^5.3.5"
|
"styled-components": "^5.3.5"
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/react-qr', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/react-qr', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -17,17 +17,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"@polkadot/ui-shared": "2.8.2",
|
"@polkadot/ui-shared": "2.9.3",
|
||||||
"@polkadot/util": "^10.0.2",
|
"@polkadot/util": "^10.1.2",
|
||||||
"@polkadot/util-crypto": "^10.0.2",
|
"@polkadot/util-crypto": "^10.1.2",
|
||||||
"react-native-svg": "^12.3.0"
|
"react-native-svg": "^12.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react-native": "^0.69.2"
|
"@types/react-native": "^0.69.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "*",
|
"@polkadot/util": "*",
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/reactnative-identicon', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/reactnative-identicon', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
"url": "https://github.com/polkadot-js/ui.git"
|
"url": "https://github.com/polkadot-js/ui.git"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"@polkadot/util": "^10.0.2"
|
"@polkadot/util": "^10.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-assets', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/ui-assets', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -16,16 +16,16 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"@polkadot/keyring": "^10.0.2",
|
"@polkadot/keyring": "^10.1.2",
|
||||||
"@polkadot/ui-settings": "2.8.2",
|
"@polkadot/ui-settings": "2.9.3",
|
||||||
"@polkadot/util": "^10.0.2",
|
"@polkadot/util": "^10.1.2",
|
||||||
"@polkadot/util-crypto": "^10.0.2",
|
"@polkadot/util-crypto": "^10.1.2",
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
"rxjs": "^7.5.5",
|
"rxjs": "^7.5.6",
|
||||||
"store": "^2.0.12"
|
"store": "^2.0.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-keyring', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/ui-keyring', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -17,12 +17,12 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"@polkadot/networks": "^10.0.2",
|
"@polkadot/networks": "^10.1.2",
|
||||||
"@polkadot/util": "^10.0.2",
|
"@polkadot/util": "^10.1.2",
|
||||||
"eventemitter3": "^4.0.7",
|
"eventemitter3": "^4.0.7",
|
||||||
"store": "^2.0.12"
|
"store": "^2.0.12"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-settings', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/ui-settings', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -17,17 +17,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"color": "^3.2.1"
|
"color": "^3.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@polkadot/util": "^10.0.2",
|
"@polkadot/util": "^10.1.2",
|
||||||
"@polkadot/util-crypto": "^10.0.2",
|
"@polkadot/util-crypto": "^10.1.2",
|
||||||
"@types/color": "^3.0.3",
|
"@types/color": "^3.0.3",
|
||||||
"@types/xmlserializer": "^0.6.2",
|
"@types/xmlserializer": "^0.6.3",
|
||||||
"xmlserializer": "^0.6.1"
|
"xmlserializer": "^0.6.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/ui-shared', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/ui-shared', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
@@ -17,17 +17,17 @@
|
|||||||
"./detectPackage.cjs"
|
"./detectPackage.cjs"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "2.8.2",
|
"version": "2.9.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.18.6",
|
"@babel/runtime": "^7.18.9",
|
||||||
"@polkadot/ui-shared": "2.8.2",
|
"@polkadot/ui-shared": "2.9.3",
|
||||||
"@polkadot/util": "^10.0.2",
|
"@polkadot/util": "^10.1.2",
|
||||||
"@polkadot/util-crypto": "^10.0.2",
|
"@polkadot/util-crypto": "^10.1.2",
|
||||||
"jdenticon": "3.1.1"
|
"jdenticon": "3.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vue": "^2.6.14"
|
"vue": "^2.7.8"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@polkadot/util": "*",
|
"@polkadot/util": "*",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ interface Account {
|
|||||||
interface Data {
|
interface Data {
|
||||||
address: string;
|
address: string;
|
||||||
iconSize: number;
|
iconSize: number;
|
||||||
isAlternative: boolean;
|
isAlternativeIcon: boolean;
|
||||||
publicKey: string;
|
publicKey: string;
|
||||||
type: 'beachball' | 'empty' | 'jdenticon' | 'polkadot' | 'substrate';
|
type: 'beachball' | 'empty' | 'jdenticon' | 'polkadot' | 'substrate';
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,7 @@ export const Identicon = Vue.extend({
|
|||||||
return {
|
return {
|
||||||
address: '',
|
address: '',
|
||||||
iconSize: DEFAULT_SIZE,
|
iconSize: DEFAULT_SIZE,
|
||||||
isAlternative: false,
|
isAlternativeIcon: false,
|
||||||
publicKey: '0x',
|
publicKey: '0x',
|
||||||
type: 'empty'
|
type: 'empty'
|
||||||
};
|
};
|
||||||
@@ -69,7 +69,7 @@ export const Identicon = Vue.extend({
|
|||||||
createData: function (): void {
|
createData: function (): void {
|
||||||
this.iconSize = this.size as number || DEFAULT_SIZE;
|
this.iconSize = this.size as number || DEFAULT_SIZE;
|
||||||
this.type = this.theme as 'empty';
|
this.type = this.theme as 'empty';
|
||||||
|
this.isAlternativeIcon = this.isAlternative as boolean || false;
|
||||||
this.recodeAddress();
|
this.recodeAddress();
|
||||||
},
|
},
|
||||||
recodeAddress: function (): void {
|
recodeAddress: function (): void {
|
||||||
@@ -81,7 +81,7 @@ export const Identicon = Vue.extend({
|
|||||||
},
|
},
|
||||||
props: ['prefix', 'isAlternative', 'size', 'theme', 'value'],
|
props: ['prefix', 'isAlternative', 'size', 'theme', 'value'],
|
||||||
render (h): VNode {
|
render (h): VNode {
|
||||||
const { address, iconSize, isAlternative, publicKey, type } = this.$data as Data;
|
const { address, iconSize, isAlternativeIcon, publicKey, type } = this.$data as Data;
|
||||||
|
|
||||||
if (type === 'empty') {
|
if (type === 'empty') {
|
||||||
return h('Empty', { attrs: { key: address, size: iconSize } }, []);
|
return h('Empty', { attrs: { key: address, size: iconSize } }, []);
|
||||||
@@ -92,7 +92,7 @@ export const Identicon = Vue.extend({
|
|||||||
// TODO: substrate
|
// TODO: substrate
|
||||||
const cmp = type.charAt(0).toUpperCase() + type.slice(1);
|
const cmp = type.charAt(0).toUpperCase() + type.slice(1);
|
||||||
|
|
||||||
return h(cmp, { attrs: { address, isAlternative, key: address, size: iconSize } }, []);
|
return h(cmp, { attrs: { address, isAlternative: isAlternativeIcon, key: address, size: iconSize } }, []);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
|
|
||||||
// Do not edit, auto-generated by @polkadot/dev
|
// Do not edit, auto-generated by @polkadot/dev
|
||||||
|
|
||||||
export const packageInfo = { name: '@polkadot/vue-identicon', path: 'auto', type: 'auto', version: '2.8.2' };
|
export const packageInfo = { name: '@polkadot/vue-identicon', path: 'auto', type: 'auto', version: '2.9.3' };
|
||||||
|
|||||||
Reference in New Issue
Block a user