feat: move developer buttons to dev options
Some checks failed
TrafficCue CI / check (push) Failing after 57s
TrafficCue CI / build (push) Successful in 50s

This commit is contained in:
Cfp
2025-08-11 09:39:48 +02:00
parent 04acffd996
commit a2064e8dbb
3 changed files with 45 additions and 23 deletions

View File

@ -32,6 +32,7 @@
import SettingsSidebar from "./sidebar/settings/SettingsSidebar.svelte";
import AboutSidebar from "./sidebar/settings/AboutSidebar.svelte";
import OfflineMapsSidebar from "./sidebar/settings/OfflineMapsSidebar.svelte";
import DeveloperSidebar from "./sidebar/settings/DeveloperSidebar.svelte";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const views: Record<string, Component<any>> = {
@ -43,7 +44,8 @@
user: UserSidebar,
settings: SettingsSidebar,
about: AboutSidebar,
"offline-maps": OfflineMapsSidebar
"offline-maps": OfflineMapsSidebar,
"dev-options": DeveloperSidebar
};
let isDragging = false;
@ -207,27 +209,6 @@
>
Join Remote Location
</Button>
<Button
variant="outline"
onclick={async () => {
// await say("This is a test of the text to speech system.");
await say("Dies ist ein Test des Text-zu-Sprache-Systems.");
}}
>
Test TTS
</Button>
<Button
variant="outline"
onclick={async () => {
const name = prompt("Name?");
if(!name) return;
const url = prompt("URL?");
if (!url) return;
await downloadPMTiles(url, name);
}}
>
Test Offline tiles
</Button>
</div>
</Popover.Content>
</Popover.Root>