From fea39800099aa2335a03bc5a28ee2b64a164798a Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 13 Aug 2021 23:08:04 +0800 Subject: [PATCH] finish account --- package.json | 2 + src/layouts/components/Navbar.vue | 60 ++++- src/libs/data/data.js | 56 +++-- src/libs/fetch.js | 32 +++ src/router/index.js | 58 ++++- src/views/FormWizardNumber.vue | 315 +++++++++++++++++++++++++++ src/views/SummaryAssetsComponent.vue | 2 +- src/views/UserAccounts.vue | 227 +++++++++++++++++++ src/views/UserAddressBook.vue | 11 + src/views/UserPortfolio.vue | 0 src/views/UserSetting.vue | 11 + yarn.lock | 20 +- 12 files changed, 771 insertions(+), 23 deletions(-) create mode 100644 src/views/FormWizardNumber.vue create mode 100644 src/views/UserAccounts.vue create mode 100644 src/views/UserAddressBook.vue create mode 100644 src/views/UserPortfolio.vue create mode 100644 src/views/UserSetting.vue diff --git a/package.json b/package.json index 10b2b33f..cf40908f 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "vue-echarts": "5.0.0-beta.0", "vue-feather-icons": "5.1.0", "vue-flatpickr-component": "8.1.6", + "vue-flex-waterfall": "^1.0.7", "vue-form-wizard": "0.8.4", "vue-i18n": "8.22.2", "vue-loader": "^15.9.6", @@ -67,6 +68,7 @@ "vuex": "3.6.0" }, "devDependencies": { + "@cosmjs/launchpad": "^0.25.6", "@vue/cli-plugin-babel": "~4.5.9", "@vue/cli-plugin-eslint": "~4.5.9", "@vue/cli-plugin-router": "~4.5.9", diff --git a/src/layouts/components/Navbar.vue b/src/layouts/components/Navbar.vue index 3318fc16..c703c8de 100644 --- a/src/layouts/components/Navbar.vue +++ b/src/layouts/components/Navbar.vue @@ -61,14 +61,65 @@ + + + + + + + + + + + Portofolio + + + + + Accounts + + + + + Address Book + + + + + Setting + + + + diff --git a/src/views/SummaryAssetsComponent.vue b/src/views/SummaryAssetsComponent.vue index b0075186..31434222 100644 --- a/src/views/SummaryAssetsComponent.vue +++ b/src/views/SummaryAssetsComponent.vue @@ -1,7 +1,7 @@ - Onchain Assets + Assets + + + + + + + {{ item.name }} + + + + + + + + + {{ acc.chain }} + + + + + + + + + ${{ formatBalance(balances[acc.addr]) }} + + + {{ acc.addr }} + + + + + + + + + + {{ formatDenom(b.denom) }} + + + {{ formatAmount(b.amount) }} + ${{ formatCurrency(b.amount, b.denom) }} + + + + + + + + + + + + + + + + + Import Accounts + + + + + + + + + + + + diff --git a/src/views/UserAddressBook.vue b/src/views/UserAddressBook.vue new file mode 100644 index 00000000..8c56444e --- /dev/null +++ b/src/views/UserAddressBook.vue @@ -0,0 +1,11 @@ + + + + + + + diff --git a/src/views/UserPortfolio.vue b/src/views/UserPortfolio.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/UserSetting.vue b/src/views/UserSetting.vue new file mode 100644 index 00000000..8c56444e --- /dev/null +++ b/src/views/UserSetting.vue @@ -0,0 +1,11 @@ + + + + + + + diff --git a/yarn.lock b/yarn.lock index aa5af979..00398a92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -950,6 +950,19 @@ bech32 "^1.1.4" readonly-date "^1.0.0" +"@cosmjs/launchpad@^0.25.6": + version "0.25.6" + resolved "https://registry.yarnpkg.com/@cosmjs/launchpad/-/launchpad-0.25.6.tgz#c75f5d21be57af55fcb892f929520fa97f2d5bcc" + integrity sha512-4Yhn4cX50UE6jZz/hWqKeeCmvrlrz0BBwOdYX/29k25FqP+oLAow1xKm6UxgYuuAq8Pg/bUvswxSqwegZJTb6g== + dependencies: + "@cosmjs/amino" "^0.25.6" + "@cosmjs/crypto" "^0.25.6" + "@cosmjs/encoding" "^0.25.6" + "@cosmjs/math" "^0.25.6" + "@cosmjs/utils" "^0.25.6" + axios "^0.21.1" + fast-deep-equal "^3.1.3" + "@cosmjs/math@^0.25.6": version "0.25.6" resolved "https://registry.yarnpkg.com/@cosmjs/math/-/math-0.25.6.tgz#25c7b106aaded889a5b80784693caa9e654b0c28" @@ -2304,7 +2317,7 @@ axios-mock-adapter@1.19.0: fast-deep-equal "^3.1.3" is-buffer "^2.0.3" -axios@0.21.1: +axios@0.21.1, axios@^0.21.1: version "0.21.1" resolved "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz" integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA== @@ -11061,6 +11074,11 @@ vue-flatpickr-component@8.1.6: dependencies: flatpickr "^4.6.6" +vue-flex-waterfall@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/vue-flex-waterfall/-/vue-flex-waterfall-1.0.7.tgz#843597024eb3f880a03b949baad1f6b4be9f68ff" + integrity sha512-YaxIUEvBQAOwBMastaJ8z5gFZFa+pZHHrpoTcZxxfCRZUdOxFBjLoyzCP9q+T8WlAhjeHD+Zsaeor9kKzRpccg== + vue-form-wizard@0.8.4: version "0.8.4" resolved "https://registry.npmjs.org/vue-form-wizard/-/vue-form-wizard-0.8.4.tgz"