web/debug: show all data as json

This commit is contained in:
wukko 2024-07-13 19:07:35 +06:00
parent 15caad7e36
commit c5fbff560b
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -17,33 +17,22 @@
<div id="advanced-page"> <div id="advanced-page">
<h3>device:</h3> <h3>device:</h3>
<div class="message-container subtext"> <div class="message-container subtext">
is.iPad: {device.is.iPad} {JSON.stringify(device, null, 2)}
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}
</div> </div>
<h3>app:</h3> <h3>app:</h3>
<div class="message-container subtext"> <div class="message-container subtext">
is.installed: {app.is.installed} {JSON.stringify(app, null, 2)}
</div> </div>
<h3>settings:</h3> <h3>settings:</h3>
<div class="message-container subtext pre"> <div class="message-container subtext">
{JSON.stringify($storedSettings, null, 2)} {JSON.stringify($storedSettings, null, 2)}
</div> </div>
<h3>version:</h3> <h3>version:</h3>
<div class="message-container subtext"> <div class="message-container subtext">
version: {version.version} {JSON.stringify(version, null, 2)}
commit: {version.commit.slice(0, 7)}
branch: {version.branch}
remote: {version.remote}
</div> </div>
</div> </div>
{/if} {/if}
@ -63,9 +52,6 @@
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: var(--button); background: var(--button);
padding: var(--padding); padding: var(--padding);
} white-space: pre-wrap;
.pre {
white-space: pre;
} }
</style> </style>