From 9a4f174a7c85d7e4f78088ce4cb79cba7749082c Mon Sep 17 00:00:00 2001 From: Peng Zhong <172531+nylira@users.noreply.github.com> Date: Tue, 10 Apr 2018 14:42:19 +0200 Subject: [PATCH 1/5] convert old tooltip to new tooltips --- .../renderer/components/common/NiToolBar.vue | 46 ++---------- .../components/govern/PageProposals.vue | 6 +- .../components/govern/PageProposalsNew.vue | 3 +- .../govern/PageProposalsNewAdjust.vue | 3 +- .../govern/PageProposalsNewAmend.vue | 3 +- .../govern/PageProposalsNewCreate.vue | 3 +- .../govern/PageProposalsNewText.vue | 3 +- .../govern/PageProposalsNewUpgrade.vue | 3 +- .../renderer/components/monitor/PageBlock.vue | 8 +-- .../components/monitor/PageBlocks.vue | 3 +- .../components/staking/PageDelegate.vue | 3 +- .../components/staking/PageStaking.vue | 6 +- .../components/wallet/PageTransactions.vue | 3 +- .../renderer/components/wallet/PageWallet.vue | 6 +- app/src/renderer/main.js | 4 +- .../styles/vendor/vue-directive-tooltip.styl | 72 +++++++++++++++++++ archive/components/PageDelegatePower.vue | 3 +- archive/components/PageDelegateProposals.vue | 6 +- archive/components/PageDelegateSlashes.vue | 6 +- archive/components/PageDelegateVotes.vue | 6 +- package.json | 42 ++++++----- yarn.lock | 10 +++ 22 files changed, 140 insertions(+), 108 deletions(-) create mode 100644 app/src/renderer/styles/vendor/vue-directive-tooltip.styl diff --git a/app/src/renderer/components/common/NiToolBar.vue b/app/src/renderer/components/common/NiToolBar.vue index 67ae92fee0..eb9980964b 100644 --- a/app/src/renderer/components/common/NiToolBar.vue +++ b/app/src/renderer/components/common/NiToolBar.vue @@ -2,15 +2,12 @@ .ni-tool-bar .ni-tool-bar-container .main: slot - a.back(@click="$router.go(-1)") + a.back(@click="$router.go(-1)" v-tooltip.bottom="'Back'") i.material-icons arrow_back - .label Back - a.help(@click="enableModalHelp") + a.help(@click="enableModalHelp" v-tooltip.bottom="'Help'") i.material-icons help_outline - .label Help - a.sign-out(@click="signOut") + a.sign-out(@click="signOut" v-tooltip.bottom.end="'Sign Out'") i.material-icons exit_to_app - .label Sign Out