copy compressed version of data, remove translations

This commit is contained in:
Alec Armbruster 2024-10-04 07:23:30 -07:00
parent 5422e32f40
commit 11069c7d45
No known key found for this signature in database
GPG Key ID: 52BC7C84E960FD1B
2 changed files with 5 additions and 12 deletions

View File

@ -105,10 +105,6 @@
"advanced.debug": "debug", "advanced.debug": "debug",
"advanced.debug.title": "enable debug features", "advanced.debug.title": "enable debug features",
"advanced.debug.description": "gives you access to a page with various info that can be useful for debugging.", "advanced.debug.description": "gives you access to a page with various info that can be useful for debugging.",
"advanced.debug.device": "device",
"advanced.debug.app": "app",
"advanced.debug.settings": "settings",
"advanced.debug.version": "version",
"advanced.data": "settings data", "advanced.data": "settings data",

View File

@ -12,13 +12,10 @@
import settings, { storedSettings } from "$lib/state/settings"; import settings, { storedSettings } from "$lib/state/settings";
$: sections = [ $: sections = [
{ title: $t("settings.advanced.debug.device"), data: device }, { title: "device", data: device },
{ title: $t("settings.advanced.debug.app"), data: app }, { title: "app", data: app },
{ { title: "settings", data: $storedSettings },
title: $t("settings.advanced.debug.settings"), { title: "version", data: $version },
data: $storedSettings,
},
{ title: $t("settings.advanced.debug.version"), data: $version },
]; ];
let lastCopiedSection: number | null = null; let lastCopiedSection: number | null = null;
@ -51,7 +48,7 @@
on:click={() => { on:click={() => {
clearTimeout(lastCopiedSectionResetTimeout); clearTimeout(lastCopiedSectionResetTimeout);
lastCopiedSection = i; lastCopiedSection = i;
copyURL(JSON.stringify(data, null, 2)); copyURL(JSON.stringify(data));
}} }}
> >
<CopyIcon regularIcon check={lastCopiedSection === i} /> <CopyIcon regularIcon check={lastCopiedSection === i} />