From c80809029813c3e3b1f47582912cec5ddbe4d136 Mon Sep 17 00:00:00 2001 From: zlayine Date: Mon, 7 Aug 2023 18:27:44 +0300 Subject: [PATCH] updated transaction UI flow --- package-lock.json | 26 ++++++++-- package.json | 1 + resources/js/components/Identicon.vue | 30 +++++++++++ resources/js/components/SignTransaction.vue | 24 ++++++--- resources/js/components/Slideover.vue | 9 +++- .../js/components/WalletConnectButton.vue | 5 +- .../js/components/pages/Transactions.vue | 51 ++++++++++++++++--- .../common/DetailsTransactionSlideover.vue | 15 ++++-- resources/js/store/index.ts | 15 +++--- 9 files changed, 142 insertions(+), 34 deletions(-) create mode 100644 resources/js/components/Identicon.vue diff --git a/package-lock.json b/package-lock.json index 2459ea3..10e1866 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "@polkadot/api": "^10.9.1", "@polkadot/keyring": "^12.3.2", "@polkadot/types": "^10.9.1", + "@polkadot/ui-shared": "^3.5.1", "@polkadot/util": "^12.3.2", "@polkadot/util-crypto": "^10.4.2", "@tailwindcss/forms": "^0.5.3", @@ -2721,6 +2722,27 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==" }, + "node_modules/@polkadot/ui-shared": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@polkadot/ui-shared/-/ui-shared-3.5.1.tgz", + "integrity": "sha512-YXOVfm4YDbkTOyVPu6duhHN1L6/kntzk4Zx2IM8mPXRAdV7nexKPh9nasG/DJth0oqomCuhAhH+B61UueCmXUQ==", + "dependencies": { + "colord": "^2.9.3", + "tslib": "^2.5.3" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@polkadot/util": "*", + "@polkadot/util-crypto": "*" + } + }, + "node_modules/@polkadot/ui-shared/node_modules/tslib": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.1.tgz", + "integrity": "sha512-t0hLfiEKfMUoqhG+U1oid7Pva4bbDPHYfJNiB7BiIjRkj1pyC++4N3huJfqY6aRH6VTB0rvtzQwjM4K6qpfOig==" + }, "node_modules/@polkadot/util": { "version": "12.3.2", "resolved": "https://registry.npmjs.org/@polkadot/util/-/util-12.3.2.tgz", @@ -6105,9 +6127,7 @@ "node_modules/colord": { "version": "2.9.3", "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.3.tgz", - "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==", - "dev": true, - "peer": true + "integrity": "sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==" }, "node_modules/colorette": { "version": "2.0.20", diff --git a/package.json b/package.json index 42214ac..018530b 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "@polkadot/api": "^10.9.1", "@polkadot/keyring": "^12.3.2", "@polkadot/types": "^10.9.1", + "@polkadot/ui-shared": "^3.5.1", "@polkadot/util": "^12.3.2", "@polkadot/util-crypto": "^10.4.2", "@tailwindcss/forms": "^0.5.3", diff --git a/resources/js/components/Identicon.vue b/resources/js/components/Identicon.vue new file mode 100644 index 0000000..c77afc8 --- /dev/null +++ b/resources/js/components/Identicon.vue @@ -0,0 +1,30 @@ + + + diff --git a/resources/js/components/SignTransaction.vue b/resources/js/components/SignTransaction.vue index 00a1b68..75bb26d 100644 --- a/resources/js/components/SignTransaction.vue +++ b/resources/js/components/SignTransaction.vue @@ -1,20 +1,26 @@