From 7e45773d0221cb1c28b76bf4cd3e6f3d064d3448 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Sat, 10 Jun 2023 16:16:52 +0100 Subject: [PATCH] diagnostics panel --- .../builder/portal/account/debugLogs.svelte | 0 .../builder/portal/account/diagnostics.svelte | 81 ----------------- .../portal/settings/diagnostics.svelte | 86 +++++++++++++++++++ packages/builder/src/stores/portal/menu.js | 12 +-- packages/frontend-core/src/api/app.js | 6 +- packages/server/src/api/controllers/dev.ts | 39 +++++++-- packages/server/src/api/routes/dev.ts | 4 +- 7 files changed, 128 insertions(+), 100 deletions(-) delete mode 100644 packages/builder/src/pages/builder/portal/account/debugLogs.svelte delete mode 100644 packages/builder/src/pages/builder/portal/account/diagnostics.svelte create mode 100644 packages/builder/src/pages/builder/portal/settings/diagnostics.svelte diff --git a/packages/builder/src/pages/builder/portal/account/debugLogs.svelte b/packages/builder/src/pages/builder/portal/account/debugLogs.svelte deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/builder/src/pages/builder/portal/account/diagnostics.svelte b/packages/builder/src/pages/builder/portal/account/diagnostics.svelte deleted file mode 100644 index 3dd73ae980..0000000000 --- a/packages/builder/src/pages/builder/portal/account/diagnostics.svelte +++ /dev/null @@ -1,81 +0,0 @@ - - -{#if $auth.isAdmin} - - - Diagnostics - -
-          {JSON.stringify(diagnosticInfo, null, 2)}
-        
- - -
- -
- -
-
-{/if} - - diff --git a/packages/builder/src/pages/builder/portal/settings/diagnostics.svelte b/packages/builder/src/pages/builder/portal/settings/diagnostics.svelte new file mode 100644 index 0000000000..7a35945b37 --- /dev/null +++ b/packages/builder/src/pages/builder/portal/settings/diagnostics.svelte @@ -0,0 +1,86 @@ + + +{#if $auth.isAdmin && diagnosticInfo} + + + Diagnostics + Please include this diagnostic information in support requests and github issues + by clicking the button on the top right to copy to clipboard. + + +
+
+ +
+