Fix router bug

This commit is contained in:
liangping 2021-08-07 23:22:41 +08:00
parent aaee720df8
commit d92ba1538c
7 changed files with 172 additions and 33 deletions

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
public/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

158
public/logo.svg Normal file
View File

@ -0,0 +1,158 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="150px" height="132px" viewBox="0 0 150 132" enable-background="new 0 0 150 132" xml:space="preserve"> <image id="image0" width="150" height="132" x="0" y="0"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACECAYAAAByH9JyAAAABGdBTUEAALGPC/xhBQAAACBjSFJN
AAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAA
CXBIWXMAAAsTAAALEwEAmpwYAAAhMUlEQVR42u2dd3Qcx5ngf9Uzg0HGAGDOFHOSxJwgkpJFiUlp
ZUqyTxv87s67f9jvnqST6NXaXj1bli3aku58/uN2L3h3veuzFUmJsqhMMWcwixJzEpMAzACDAQYT
6v7o6ZnumZ4ETDdm35vvPTx0V/i6uuo3XdVfVX0t1j/bQV4idQcyKUrqEsjkPNIYJZPS6fJKyc+A
x1LTSON1ZKp+mZTWEKedq3E1SJzGuFSdBn26Y5lcrkxx8SIk6TfEAVI6gRrz66fec6w2LiKZBHQn
t43+NKmRkqvcND5DUFxe+GSKabiTfMQeqCYDTyOly5imoFCZxPU7VCl1lgNUIBkFPIX6YzTeU0pb
FBaqTKLknNIeqAB+VYIqZ6i0sB8AQ4oFKsgVLPugugcpVxvTl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TZjX6FCmJg9SNUWinfArbog0pQkS9UAH8PeO2DKj1hShFA
pcmTxDzIlaCiN1AdA/6xGKCCZHMD9OfGh2YE/1SCit5ABfAUQrML9i9UoDc3QH9CpYGQ+AhQCaos
ZTak2YTgA9Ny9gNUkMaOlSEooxRg7u8amPgVN6QtQZWUJoSIfS3EbqgyMBbbCV0UUGkBLwHfRTAq
NW1GqDoQhIsMqjCIDguhAsEfgJPFBBXA/wc7rs0UQPhquQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAy
MS0wOC0wN1QxMDoyMToxNyswMDowMMxA6lsAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDgtMDdU
MTA6MjE6MTcrMDA6MDC9HVLnAAAAAElFTkSuQmCC" />
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -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 {

View File

@ -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' })

View File

@ -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`)

View File

@ -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) {