From 139b42416aba55beb8ec8462aa7a631d344fd539 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 12 May 2022 10:03:10 +0800 Subject: [PATCH] add consensus state monitor tool --- src/router/index.js | 8 ++ src/views/ConsensusStates.vue | 186 ++++++++++++++++++++++++++++ src/views/Home.vue | 31 +---- src/views/components/FullHeader.vue | 41 ++++++ 4 files changed, 239 insertions(+), 27 deletions(-) create mode 100644 src/views/ConsensusStates.vue create mode 100644 src/views/components/FullHeader.vue diff --git a/src/router/index.js b/src/router/index.js index 2d75d502..dd40ecc6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -347,6 +347,14 @@ const router = new VueRouter({ }, }, // common modules + { + path: '/tools/consensus-states', + name: 'consensus', + component: () => import('@/views/ConsensusStates.vue'), + meta: { + layout: 'full', + }, + }, { path: '/error/error-404', name: 'error-404', diff --git a/src/views/ConsensusStates.vue b/src/views/ConsensusStates.vue new file mode 100644 index 00000000..8bf982e0 --- /dev/null +++ b/src/views/ConsensusStates.vue @@ -0,0 +1,186 @@ + + + + + + + + + + + + + Please select a chain. + + + + {{ chain_name }} + + + + + + + Moniter + + + + + {{ httpstatus }}: {{ httpStatusText }} + + + + + Round: {{ item.round }} {{ item.precommits_bit_array }} + + + {{ showName(i, pre) }} + + + + + + + + + diff --git a/src/views/Home.vue b/src/views/Home.vue index 34b0ce31..ce671447 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,22 +1,6 @@ - - - - - - Wallet - - + @@ -135,16 +119,14 @@