From 3ca8c14c2cc05a011283357fb90a0ec62de0e340 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 29 Sep 2020 10:37:29 +0300 Subject: [PATCH 1/2] sidebar and fio requests --- src/components/ManageAccounts.vue | 2 +- src/components/TopActions.vue | 12 ++++++++++-- src/components/popups/fio/ShowFioRequests.vue | 3 ++- src/views/_ViewBase.vue | 10 ++++++++++ yarn.lock | 8 ++++---- 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/components/ManageAccounts.vue b/src/components/ManageAccounts.vue index 7931cb3..7184fb8 100644 --- a/src/components/ManageAccounts.vue +++ b/src/components/ManageAccounts.vue @@ -201,7 +201,7 @@ &:not(.collapsed){ &.mobile { - z-index:9999999999999999; + z-index:9999; background:white; width:100%; } diff --git a/src/components/TopActions.vue b/src/components/TopActions.vue index 99d3ce2..2ec8aab 100644 --- a/src/components/TopActions.vue +++ b/src/components/TopActions.vue @@ -15,6 +15,9 @@ Settings Back +
+ +
Send Money
@@ -80,7 +83,8 @@ 'scatter', 'topActionsColor', 'currencies', - 'loadingBalances' + 'loadingBalances', + 'collapsedSidebar' ]), currency(){ return PriceService.fiatSymbol() @@ -128,6 +132,9 @@ PopupService.push(Popups.editNetworkAccount(selectedNetwork)); })); }, + toggleCollapsed(){ + this[UIActions.SET_COLLAPSED_SIDEBAR](!this.collapsedSidebar); + }, friends(){ if(!this.hasPremium){ PopupService.push(Popups.goPremium(success => { @@ -223,7 +230,8 @@ }, ...mapActions([ - UIActions.SET_THEME + UIActions.SET_THEME, + UIActions.SET_COLLAPSED_SIDEBAR, ]) } } diff --git a/src/components/popups/fio/ShowFioRequests.vue b/src/components/popups/fio/ShowFioRequests.vue index ba85782..9b1bd8d 100644 --- a/src/components/popups/fio/ShowFioRequests.vue +++ b/src/components/popups/fio/ShowFioRequests.vue @@ -140,7 +140,8 @@ if(this.fioData.length >= 5) break; const request = requests[i]; - const sharedSecret = await window.wallet.createSharedSecret('fio', this.account.publicKey, request.payee_fio_public_key).catch(() => null); + const key = this.state === STATES.RECEIVED ? request.payee_fio_public_key : request.payer_fio_public_key; + const sharedSecret = await window.wallet.createSharedSecret('fio', this.account.publicKey, key).catch(() => null); if(!sharedSecret) continue; const content = await plugin.decrypt('new_funds_content', request.content, sharedSecret).catch(err => { diff --git a/src/views/_ViewBase.vue b/src/views/_ViewBase.vue index b5343a7..be4b6fb 100644 --- a/src/views/_ViewBase.vue +++ b/src/views/_ViewBase.vue @@ -300,6 +300,16 @@ min-height:calc(100vh - #{$mobilenavbarheight}); } } + + .main-panel { + width:calc(100% - #{$accountssidebar} + 7px); + + transition:width 0.2s ease; + + &.expanded { + width:calc(100% + 7px); + } + } } diff --git a/yarn.lock b/yarn.lock index 844027a..527f816 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1309,10 +1309,10 @@ web3 "^1.2.0" web3-provider-engine "^15.0.4" -"@walletpack/fio@^0.0.27": - version "0.0.27" - resolved "https://registry.yarnpkg.com/@walletpack/fio/-/fio-0.0.27.tgz#300814243006f7cdea222642d90f0ea7030607ec" - integrity sha512-ak79iHiYkhpKS5SoxZk3NYUGnedfV5LzpUKN8WS640fWToonQAYA3Dx+7Uxef+hVVmnQAvjuz48w428TU0t3PQ== +"@walletpack/fio@^0.0.28": + version "0.0.28" + resolved "https://registry.yarnpkg.com/@walletpack/fio/-/fio-0.0.28.tgz#551df9216ea362c83200aa5b782db0983ad35dc5" + integrity sha512-CJkj0Cgrd33kFZbuQd/+2h8tvF/4VwlG6Jo3AWZJ6QLj/j5AuE6KS3bRDZPupJA1sWBKazl5ZMdeUQiCkCfVEg== dependencies: "@fioprotocol/fiojs" "^1.0.1" "@walletpack/core" "^1.0.50" From a7749c21c4e28b5591336ca1b23e225d657456e7 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 29 Sep 2020 10:37:56 +0300 Subject: [PATCH 2/2] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2e980f7..3f8e2d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bridge", - "version": "1.0.12", + "version": "1.0.13", "private": true, "scripts": { "build": "npm run check && yarn && cross-env NODE_ENV=production BABEL_ENV=prod vue-cli-service build && npm run zip",