From c5fbff560b1f67b3bfee7150499a405586960874 Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 13 Jul 2024 19:07:35 +0600 Subject: [PATCH] web/debug: show all data as json --- .../settings/advanced/debug/+page.svelte | 24 ++++--------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/web/src/routes/settings/advanced/debug/+page.svelte b/web/src/routes/settings/advanced/debug/+page.svelte index 8103018b..621985d5 100644 --- a/web/src/routes/settings/advanced/debug/+page.svelte +++ b/web/src/routes/settings/advanced/debug/+page.svelte @@ -17,33 +17,22 @@

device:

- is.iPad: {device.is.iPad} - is.iPhone: {device.is.iPhone} - is.iOS: {device.is.iOS} - is.android: {device.is.android} - is.mobile: {device.is.mobile} - prefers.language: {device.prefers.language} - prefers.reducedMotion: {device.prefers.reducedMotion} - prefers.reducedTransparency: {device.prefers.reducedTransparency} - userAgent: {device.userAgent} + {JSON.stringify(device, null, 2)}

app:

- is.installed: {app.is.installed} + {JSON.stringify(app, null, 2)}

settings:

-
+
{JSON.stringify($storedSettings, null, 2)}

version:

- version: {version.version} - commit: {version.commit.slice(0, 7)} - branch: {version.branch} - remote: {version.remote} + {JSON.stringify(version, null, 2)}
{/if} @@ -63,9 +52,6 @@ border-radius: var(--border-radius); background: var(--button); padding: var(--padding); - } - - .pre { - white-space: pre; + white-space: pre-wrap; }