From f9eebe6c5d80ed6e0a52042068c51873a9364d42 Mon Sep 17 00:00:00 2001 From: Karthikeyan Date: Mon, 18 Oct 2021 11:56:56 +0530 Subject: [PATCH 01/24] feat(edp): added edp metric to homepage --- frontend/components/EdpMetrics.vue | 68 ++++++++++++++++++++++++++ frontend/frontend.config-cere-dev.js | 1 + frontend/frontend.config-cere-local.js | 1 + frontend/frontend.config-cere-stage.js | 1 + frontend/pages/index.vue | 3 ++ 5 files changed, 74 insertions(+) create mode 100644 frontend/components/EdpMetrics.vue diff --git a/frontend/components/EdpMetrics.vue b/frontend/components/EdpMetrics.vue new file mode 100644 index 00000000..30280d20 --- /dev/null +++ b/frontend/components/EdpMetrics.vue @@ -0,0 +1,68 @@ + + + + + diff --git a/frontend/frontend.config-cere-dev.js b/frontend/frontend.config-cere-dev.js index 1293f37a..7512e589 100644 --- a/frontend/frontend.config-cere-dev.js +++ b/frontend/frontend.config-cere-dev.js @@ -14,5 +14,6 @@ export const network = { historySize: 84, // 84 days erasPerDay: 1, validatorSetSize: 24, + enableEdpMetric: true, } export const paginationOptions = [10, 20, 50, 100] diff --git a/frontend/frontend.config-cere-local.js b/frontend/frontend.config-cere-local.js index 5e0c18d9..c14a4be4 100644 --- a/frontend/frontend.config-cere-local.js +++ b/frontend/frontend.config-cere-local.js @@ -14,5 +14,6 @@ export const network = { historySize: 84, // 84 days erasPerDay: 1, validatorSetSize: 24, + enableEdpMetric: true, } export const paginationOptions = [10, 20, 50, 100] diff --git a/frontend/frontend.config-cere-stage.js b/frontend/frontend.config-cere-stage.js index b9ed6642..eab3d097 100644 --- a/frontend/frontend.config-cere-stage.js +++ b/frontend/frontend.config-cere-stage.js @@ -14,5 +14,6 @@ export const network = { historySize: 84, // 84 days erasPerDay: 1, validatorSetSize: 24, + enableEdpMetric: true, } export const paginationOptions = [10, 20, 50, 100] diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index c2c79356..c7cbc546 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -3,6 +3,7 @@
+
@@ -67,6 +68,7 @@ import LastExtrinsics from '@/components/LastExtrinsics.vue' import LastEvents from '@/components/LastEvents.vue' import Chain from '@/components/Chain.vue' import Search from '@/components/Search.vue' +import Edp from '@/components/EdpMetrics.vue' // import Top10Rich from '@/components/Top10Rich.vue' import { network } from '@/frontend.config.js' @@ -78,6 +80,7 @@ export default { LastEvents, Chain, Search, + Edp, // Top10Rich, }, data: () => { From 936f395dda50fab6f26ffee8730aa4c6fc65478b Mon Sep 17 00:00:00 2001 From: Karthikeyan Date: Mon, 18 Oct 2021 12:03:34 +0530 Subject: [PATCH 02/24] feat(edp): added changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1c3e56a..5b92f849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Cerestats vNext -- Added API to add and get EDP info. \ No newline at end of file +- Added API to add and get EDP info. +- Added EDP metrics to homepage. \ No newline at end of file From 080c1f3ee3cc4df73cf64feb35666bcdd6f974a5 Mon Sep 17 00:00:00 2001 From: Karthikeyan Date: Mon, 18 Oct 2021 12:04:27 +0530 Subject: [PATCH 03/24] fix(edp): changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b92f849..aeead7a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,4 +2,4 @@ vNext - Added API to add and get EDP info. -- Added EDP metrics to homepage. \ No newline at end of file +- Added UI to show EDP metrics to homepage. \ No newline at end of file From 1836c5c836d085b0b6be60e5ab28cd33913fe823 Mon Sep 17 00:00:00 2001 From: Karthikeyan Date: Mon, 18 Oct 2021 17:44:27 +0530 Subject: [PATCH 04/24] feat(edp): designed ui to show edp metrics in homepage --- frontend/components/EdpMetrics.vue | 135 ++++++++++++++++++++----- frontend/frontend.config-cere-dev.js | 1 - frontend/frontend.config-cere-local.js | 1 - frontend/frontend.config-cere-stage.js | 1 - frontend/static/img/cere_logo_edp.png | Bin 0 -> 52645 bytes frontend/static/img/edp_banner_bg.png | Bin 0 -> 525342 bytes 6 files changed, 108 insertions(+), 30 deletions(-) create mode 100644 frontend/static/img/cere_logo_edp.png create mode 100644 frontend/static/img/edp_banner_bg.png diff --git a/frontend/components/EdpMetrics.vue b/frontend/components/EdpMetrics.vue index 30280d20..3cd89c61 100644 --- a/frontend/components/EdpMetrics.vue +++ b/frontend/components/EdpMetrics.vue @@ -1,20 +1,30 @@