From cf501348a9fd590df2329830860e2e28d2d96d7b Mon Sep 17 00:00:00 2001 From: "Daryn St. Pierre" Date: Mon, 6 Jul 2020 10:47:58 -0400 Subject: [PATCH 1/2] created a Diagnostics page that displas the Kuma config in a readable format. --- src/router.js | 10 +++ src/views/Diagnostics.vue | 157 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 167 insertions(+) create mode 100644 src/views/Diagnostics.vue diff --git a/src/router.js b/src/router.js index ef6307ccfe..4fa738d3fc 100644 --- a/src/router.js +++ b/src/router.js @@ -103,6 +103,16 @@ export default (store) => { breadcrumb: 'Overview' } }, + // diagnostics + { + path: '/diagnostics', + name: 'diagnostics', + component: () => import(/* webpackChunkName: "diagnostics" */ '@/views/Diagnostics'), + meta: { + title: 'Diagnostics', + breadcrumb: 'Diagnostics' + } + }, // remote CPs { path: '/remote-cp', diff --git a/src/views/Diagnostics.vue b/src/views/Diagnostics.vue new file mode 100644 index 0000000000..0c5c1f44ff --- /dev/null +++ b/src/views/Diagnostics.vue @@ -0,0 +1,157 @@ + + + + + From d85e0451afdac938f3f3dced7c62a17a80adef6a Mon Sep 17 00:00:00 2001 From: "Daryn St. Pierre" Date: Mon, 6 Jul 2020 11:01:50 -0400 Subject: [PATCH 2/2] added clipboard functionality. --- src/views/Diagnostics.vue | 46 +++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/src/views/Diagnostics.vue b/src/views/Diagnostics.vue index 0c5c1f44ff..ce3e043fca 100644 --- a/src/views/Diagnostics.vue +++ b/src/views/Diagnostics.vue @@ -6,22 +6,36 @@ -
-

- You can view this configuration at {{ configUrl }} -

- -
+ + + +