Merge pull request #503 from sxlmnwb/master

regex: enable consensus dumpurl on old code
This commit is contained in:
ping 2023-09-09 09:48:26 +08:00 committed by GitHub
commit 4a2e1b8a42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2043 additions and 2083 deletions

2
auto-imports.d.ts vendored
View File

@ -121,6 +121,7 @@ declare global {
const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter']
const useArrayFind: typeof import('@vueuse/core')['useArrayFind']
const useArrayFindIndex: typeof import('@vueuse/core')['useArrayFindIndex']
const useArrayFindLast: typeof import('@vueuse/core')['useArrayFindLast']
const useArrayJoin: typeof import('@vueuse/core')['useArrayJoin']
const useArrayMap: typeof import('@vueuse/core')['useArrayMap']
const useArrayReduce: typeof import('@vueuse/core')['useArrayReduce']
@ -423,6 +424,7 @@ declare module 'vue' {
readonly useArrayFilter: UnwrapRef<typeof import('@vueuse/core')['useArrayFilter']>
readonly useArrayFind: UnwrapRef<typeof import('@vueuse/core')['useArrayFind']>
readonly useArrayFindIndex: UnwrapRef<typeof import('@vueuse/core')['useArrayFindIndex']>
readonly useArrayFindLast: UnwrapRef<typeof import('@vueuse/core')['useArrayFindLast']>
readonly useArrayJoin: UnwrapRef<typeof import('@vueuse/core')['useArrayJoin']>
readonly useArrayMap: UnwrapRef<typeof import('@vueuse/core')['useArrayMap']>
readonly useArrayReduce: UnwrapRef<typeof import('@vueuse/core')['useArrayReduce']>

View File

@ -93,9 +93,9 @@ async function onChange () {
}
async function fetchPosition() {
// let dumpurl = rpc.value.replace('consensus_state', 'dump_consensus_state');
let dumpurl = rpc.value.replace('consensus_state', 'dump_consensus_state');
try {
const response = await fetch(rpc.value);
const response = await fetch(dumpurl);
if (!response.ok) {
throw new Error(`HTTP error: ${response.status}`);
}

4120
yarn.lock

File diff suppressed because it is too large Load Diff