From d92ba1538cdef32632c717a2275e3659d2fe1a0c Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 7 Aug 2021 23:22:41 +0800 Subject: [PATCH] Fix router bug --- public/favicon.ico | Bin 0 -> 81902 bytes public/logo.png | Bin 0 -> 10158 bytes public/logo.svg | 158 ++++++++++++++++++++++++++++++++++++++ src/libs/fetch.js | 2 +- src/router/index.js | 21 ++--- src/store/chains/index.js | 12 +-- src/views/Staking.vue | 12 --- 7 files changed, 172 insertions(+), 33 deletions(-) create mode 100644 public/favicon.ico create mode 100644 public/logo.png create mode 100644 public/logo.svg diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..55f987ce7de3a5ae97dd05f7050326cea5a4ac8e GIT binary patch literal 81902 zcmeI5d5{!EzQ=3C4Go{`5@GBMBc35^yme#W+dnq;kB!*3;Ra7s1VKgn$3${r)S zjNfEcTEk>#efpPKzx@4vsVEuvZ(F{CpTAOyMrJ7gt|-cHA=@CAXQ=f!Rc8M&L%I6j z6fSg4N8!!Ol?$URk7l(alR(xD?;Agqh@4 zTtiA!X(<`KBv>+fF_%)5rMDSm%;I2~kg+(2xJYgfN%^?NL0!h<9O5RqBP5;)i-WpM zTpaXH%nW+(42kcq%%ColGHWX)Wx6Wv4vBwqrc0N5GF_EIrr;b>b+1A0%XC!>nTm5w z0@E^Gx=hbp6PTW<)R5dCl3JYC&M?SKoI~n_%)+@r>SsT#M93V}Y0`kwBy({MVT@S{ zaW%x)S^=&Ym-yLYU<;EL%o9_J9S#lV&>;EL%o zaWMm13~cEFu9z;9G8x!nU`rQp#dNtRlYuQ&rl5p?t&rT8$-tH>Q&DOHu9zm>;Oe)j zVrw9-h6r2NKzFr5RIaE@v&E_eS5#WF^&WAR3btb5Y6!5kie}bCuRx2CisqjIOuNVO+daHe2>wtxyVw23se<72}d-E7AGZ z0GW=vLy%DAMO!Pk}2&l4i?be;`{#VtT6^T>VBCThX{mAzQx$PmO}BG+U~T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Mz(_%-w>Hv8gk6 z3pxS!S=E`lN>N7QK99M5mUSa=-^sB1eqmFW9d_SkxX-FC>^5asuM*ZR=opK-j9w+Y zTNKn-)rEI~qO4S`>cYE4QEpT`;q9}myH+_Fao?4eb=eX3U8-2sMcg*X3ah_iRd+Jt z?^u5hPsDxKDv|wXRd=Ih-&;Kot7mCd7r_hI2>ZGzid7xBvSczl?86beC&TLOxc7wJ zN8g$7jIJrve4R&}agGk1)=o-}uis$XLH9`)n!p1gmnU4Ti2O7MjLxf9b;9eja#OUv8of}ps{13jjP6v5o5BkW31}L zcy8<%tGX<;4@@1yqSP5WMxUz~I>xFFUBLU989K(QE;MfnbxibmSg2!0=zk;BF;;aW L_4`5{qt^XDi^Fq| literal 0 HcmV?d00001 diff --git a/public/logo.png b/public/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..78b07ba442fa8f1aac364ebcc93969f5d7f47f4a GIT binary patch literal 10158 zcmcI~c|4Tw_xGR)Q}(^=yAj5oeP5zsFd~F$48}5KUsCp6)(IgaOJlMY*_Y%)L`n7~ zyJU@$P&~KK_WWMY>-YSg?>~>1F*Eml?sJ{%Y}fmoBLQJzKm)l10f9g?*9>*df%k{N zE1K#&@YjcD*avu{_BOof3j$qWI(w0U9_6!xK;SMc(%R1&eq9;uob_xVH|*6>AvcgRuxPL83$4(MnGI z8tS~NLCOFFPmCXmH^|ci=c^o~#{VZ@W#IGKWhs8%KS})D)%dl}7UZ>tBY1VZd@#K7 zk_r-NX*n5QMI}jT1(=eI+!bCKn6#o4Oi@Z&Rstri3{y~+RpR~ohaXtY$H`gQTvz|^ zwSaGG{H}g}-pW!^fq{XNfwGcbJ}y$yN=iynFc~Qs83}+w!Z#S_hYFIw`3n5QK^NnT z_Q87lVZCs?XB<(tz5M;u_yI}(+JdL|zie^7f2#>lm{btTTS{6IcDAK|2;uPmnbgzs zUus`Jy#Qd9zvcaJ8T%rGy)jbe7+)`cA2dcU0E6=r_-8RE^uNz~`}=tOxl<>!6vhMN z36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VOwOhMw27ZaU>vX1GB)!Ph8gY2 z+mjr1NjQC?4ZZG#izLx_R!YF9c)~MdfWiAIg-X>RvmCP2|Li~NuIZWRR%ts%{x2KB BLM;FQ literal 0 HcmV?d00001 diff --git a/public/logo.svg b/public/logo.svg new file mode 100644 index 00000000..2e3a50df --- /dev/null +++ b/public/logo.svg @@ -0,0 +1,158 @@ + + + + diff --git a/src/libs/fetch.js b/src/libs/fetch.js index 7ca86dac..e72a8084 100644 --- a/src/libs/fetch.js +++ b/src/libs/fetch.js @@ -27,7 +27,7 @@ async function refetchVersion(chain) { const re = /(\d+(\.\d+)*)/i const version = sdk.match(re) return version[0] - }) + }).catch(() => null) } const chainAPI = class ChainFetch { diff --git a/src/router/index.js b/src/router/index.js index cb277d79..c90bab8f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,6 +1,5 @@ import Vue from 'vue' import VueRouter from 'vue-router' -import fetch from 'node-fetch' import store from '../store' Vue.use(VueRouter) @@ -190,20 +189,12 @@ const router = new VueRouter({ router.beforeEach((to, from, next) => { const c = to.params.chain - const has = Object.keys(store.state.chains.config).findIndex(i => i === c) - if (has > -1) { - const chain = store.state.chains.config[c] - store.commit('select', { chain_name: c }) - if (chain.sdk_version) { - fetch(`${chain.api}/node_info`) - .then(res => res.json()) - .then(json => { - const sdk = json.application_version.build_deps.find(e => e.startsWith('github.com/cosmos/cosmos-sdk')) - const re = /(\d+(\.\d+)*)/i - const version = sdk.match(re) - store.commit('setup_sdk_version', { chain_name: c, version: version[0] }) - }) - } + store.commit('select', { chain_name: c }) + + const config = JSON.parse(localStorage.getItem('chains')) + console.log(config, c) + // const has = Object.keys(config).findIndex(i => i === c) + if (!config || Object.keys(config).findIndex(i => i === c) > -1) { next() } else if (c) { next({ name: 'chain-404' }) diff --git a/src/store/chains/index.js b/src/store/chains/index.js index d1a830a8..7a263a43 100644 --- a/src/store/chains/index.js +++ b/src/store/chains/index.js @@ -1,10 +1,5 @@ let chains = {} -const localChains = localStorage.getItem('chains') -if (localChains) { - chains = JSON.parse(localChains) -} - const configs = require.context('.', false, /\.json$/) const update = {} @@ -13,6 +8,13 @@ configs.keys().forEach(k => { update[c.chain_name] = c }) +const localChains = localStorage.getItem('chains') +if (localChains) { + chains = JSON.parse(localChains) +} else { + chains = update +} + Object.keys(update).forEach(key => { const chain = update[key] fetch(`${chain.api}/node_info`) diff --git a/src/views/Staking.vue b/src/views/Staking.vue index bf79d836..a3e16f76 100644 --- a/src/views/Staking.vue +++ b/src/views/Staking.vue @@ -130,12 +130,6 @@ export default { tdClass: 'text-right', thClass: 'text-right', }, - { - key: 'apr', - formatter: (value, i, data) => this.apr(value, i, data), - tdClass: 'text-right', - thClass: 'text-right', - }, { key: 'operation' }, ], } @@ -144,9 +138,6 @@ export default { this.$http.getStakingPool().then(res => { this.stakingPool = res }) - this.$http.getMintingInflation().then(res => { - this.mintInflation = res - }) this.$http.getStakingParameters().then(res => { this.stakingParameters = res }) @@ -181,9 +172,6 @@ export default { tokenFormatter(amount, denom) { return formatToken({ amount, denom }) }, - apr(value, i, data) { - return `${percent((1 - data.commission.rate) * this.mintInflation)} %` - }, rankBadge(data) { const { index, item } = data if (index === 0) {