web/settings/advanced: add a toggle for local processing

This commit is contained in:
wukko 2024-12-22 23:04:37 +06:00
parent a9515d376a
commit 41600dab4f
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
3 changed files with 16 additions and 1 deletions

View file

@ -113,6 +113,10 @@
"advanced.data": "data management",
"advanced.duck": "local processing",
"advanced.duck.title": "process everything on device",
"advanced.duck.description": "very wip, may cause critical issues or not work at all. this toggle will probably be gone by release.",
"processing.community": "community instances",
"processing.enable_custom.title": "use a custom processing server",
"processing.enable_custom.description": "cobalt will use a custom processing instance if you choose to. even though cobalt has some security measures in place, we are not responsible for any damages done via a community instance, as we have no control over them.\n\nplease be mindful of what instances you use and make sure they're hosted by people you trust.",

View file

@ -91,7 +91,9 @@
<UpdateNotification />
{/if}
<div id="content">
<ProcessingQueue />
{#if $settings.advanced.duck}
<ProcessingQueue />
{/if}
{#if ($turnstileEnabled && $page.url.pathname === "/") || $turnstileCreated}
<Turnstile />
{/if}

View file

@ -15,6 +15,15 @@
/>
</SettingsCategory>
<SettingsCategory sectionId="local-processing" title={$t("settings.advanced.duck")} beta>
<SettingsToggle
settingContext="advanced"
settingId="duck"
title={$t("settings.advanced.duck.title")}
description={$t("settings.advanced.duck.description")}
/>
</SettingsCategory>
<SettingsCategory sectionId="data" title={$t("settings.advanced.data")}>
<ManageSettings />
</SettingsCategory>