From e2f041a19f00cb0ea1eae32d7de0467733e1d9b2 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 26 Aug 2022 14:56:49 +0800 Subject: [PATCH] add consensus view --- src/@core/layouts/modules.js | 9 +- src/navigation/horizontal/index.js | 1 - src/navigation/vertical/index.js | 11 ++- src/router/index.js | 10 ++- src/views/ConsensusStates.vue | 137 ++++++++++++----------------- src/views/StateSync.vue | 16 ++-- 6 files changed, 83 insertions(+), 101 deletions(-) delete mode 100644 src/navigation/horizontal/index.js diff --git a/src/@core/layouts/modules.js b/src/@core/layouts/modules.js index adda4fdc..4d525a10 100644 --- a/src/@core/layouts/modules.js +++ b/src/@core/layouts/modules.js @@ -25,6 +25,11 @@ export default () => ([ title: 'uptime', route: 'uptime', }, + { + scope: 'normal', + title: 'parameters', + route: 'parameters', + }, { scope: 'normal', title: 'statesync', @@ -32,8 +37,8 @@ export default () => ([ }, { scope: 'normal', - title: 'parameters', - route: 'parameters', + title: 'consensus', + route: 'consensus', }, { scope: 'cos-mos', diff --git a/src/navigation/horizontal/index.js b/src/navigation/horizontal/index.js deleted file mode 100644 index c940fc47..00000000 --- a/src/navigation/horizontal/index.js +++ /dev/null @@ -1 +0,0 @@ -// unimplement diff --git a/src/navigation/vertical/index.js b/src/navigation/vertical/index.js index 41f69c49..3538da27 100644 --- a/src/navigation/vertical/index.js +++ b/src/navigation/vertical/index.js @@ -36,6 +36,11 @@ function processMenu() { icon: 'LifeBuoyIcon', }) } + chainMenus.push({ + title: 'Github', + href: 'https://github.com/ping-pub/explorer', + icon: 'GithubIcon', + }) chainMenus.push({ title: 'Discord', href: 'https://discord.gg/CmjYVSr6GW', @@ -47,9 +52,9 @@ function processMenu() { icon: 'TwitterIcon', }) chainMenus.push({ - title: 'Github', - href: 'https://github.com/ping-pub/explorer', - icon: 'GithubIcon', + title: 'Telegram', + href: 'https://t.me/pingpub', + icon: 'SendIcon', }) return chainMenus diff --git a/src/router/index.js b/src/router/index.js index ffb8425d..94d531ef 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -362,11 +362,17 @@ const router = new VueRouter({ }, // common modules { - path: '/tools/consensus-states', + path: '/:chain/consensus', name: 'consensus', component: () => import('@/views/ConsensusStates.vue'), meta: { - layout: 'full', + pageTitle: 'Consensus State', + breadcrumb: [ + { + text: 'Consensus State', + active: true, + }, + ], }, }, { diff --git a/src/views/ConsensusStates.vue b/src/views/ConsensusStates.vue index 47ac6485..b71afdf8 100644 --- a/src/views/ConsensusStates.vue +++ b/src/views/ConsensusStates.vue @@ -1,36 +1,7 @@