From 9f4d4b725a8fe7a3db47fefe13dc02a838c12058 Mon Sep 17 00:00:00 2001 From: Roopesh Saravanan Date: Tue, 4 Apr 2023 22:00:01 +0530 Subject: [PATCH 1/8] Implemented a web page for prefix report --- src/router.js | 11 + src/views/Prefixes.vue | 365 +++++++++++ src/views/charts/PrefixDependenciesChart.vue | 600 ++++++++++++++++++ src/views/charts/layouts.js | 9 + .../charts/tables/PrefixDependenciesTable.vue | 145 +++++ 5 files changed, 1130 insertions(+) create mode 100644 src/views/Prefixes.vue create mode 100644 src/views/charts/PrefixDependenciesChart.vue create mode 100644 src/views/charts/tables/PrefixDependenciesTable.vue diff --git a/src/router.js b/src/router.js index 65c6acff..6316b157 100644 --- a/src/router.js +++ b/src/router.js @@ -8,6 +8,7 @@ import API from '@/views/Api' import Contact from '@/views/Contact' import Countries from '@/views/Countries' import Networks from '@/views/Networks' +import Prefixes from '@/views/Prefixes' import Corona from '@/views/Corona' import ROV from '@/views/ROV' import MetisHome from '@/views/MetisHome' @@ -104,6 +105,16 @@ export default new Router({ }, meta: { title: 'Network Report - IHR' }, }, + { + name: 'prefixes', + path: `${routerBase}prefixes/:asn?`, + components: { + header: Header, + footer: Footer, + default: Prefixes, + }, + meta: { title: 'Prefix Report - IHR' }, + }, { name: 'rov', path: `${routerBase}rov`, diff --git a/src/views/Prefixes.vue b/src/views/Prefixes.vue new file mode 100644 index 00000000..128c62cc --- /dev/null +++ b/src/views/Prefixes.vue @@ -0,0 +1,365 @@ + + + + + diff --git a/src/views/charts/PrefixDependenciesChart.vue b/src/views/charts/PrefixDependenciesChart.vue new file mode 100644 index 00000000..f7caaa82 --- /dev/null +++ b/src/views/charts/PrefixDependenciesChart.vue @@ -0,0 +1,600 @@ + + + + + diff --git a/src/views/charts/layouts.js b/src/views/charts/layouts.js index e370387e..7661f666 100644 --- a/src/views/charts/layouts.js +++ b/src/views/charts/layouts.js @@ -81,6 +81,15 @@ var AS_INTERDEPENDENCIES_LAYOUT = { }, } +var PREFIX_DEPENDENCIES_LAYOUT = { + ...COMMON_WITH_LEGEND, + yaxis: { + title: '', + domain: [0.6, 1], + range: [0, 101], + }, +} + var HEGEMONY_ALARMS_LAYOUT = { ...COMMON_WITH_LEGEND, yaxis: { diff --git a/src/views/charts/tables/PrefixDependenciesTable.vue b/src/views/charts/tables/PrefixDependenciesTable.vue new file mode 100644 index 00000000..70fd337d --- /dev/null +++ b/src/views/charts/tables/PrefixDependenciesTable.vue @@ -0,0 +1,145 @@ + + + + From f254fb30b247676221c1dc53c3a92862595df3e6 Mon Sep 17 00:00:00 2001 From: Roopesh Saravanan Date: Fri, 7 Apr 2023 10:50:21 +0530 Subject: [PATCH 2/8] Revise work based on received feedback --- src/router.js | 3 +- src/views/Prefixes.vue | 36 +++++----- src/views/charts/PrefixDependenciesChart.vue | 75 ++------------------ src/views/charts/layouts.js | 1 + 4 files changed, 26 insertions(+), 89 deletions(-) diff --git a/src/router.js b/src/router.js index 6316b157..e9a10170 100644 --- a/src/router.js +++ b/src/router.js @@ -107,7 +107,8 @@ export default new Router({ }, { name: 'prefixes', - path: `${routerBase}prefixes/:asn?`, + path: `${routerBase}prefixes/:prefix?`, + //path: `${routerBase}prefixes/:prefix/:prefix_length?`, components: { header: Header, footer: Footer, diff --git a/src/views/Prefixes.vue b/src/views/Prefixes.vue index 128c62cc..9ee85938 100644 --- a/src/views/Prefixes.vue +++ b/src/views/Prefixes.vue @@ -1,6 +1,6 @@