web: add local processing setting & api type
response is not handled at all yet, this is a raw draft
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
<UpdateNotification />
|
||||
{/if}
|
||||
<div id="content">
|
||||
{#if $settings.advanced.duck}
|
||||
{#if $settings.advanced.localProcessing}
|
||||
<ProcessingQueue />
|
||||
{/if}
|
||||
{#if ($turnstileEnabled && $page.url.pathname === "/") || $turnstileCreated}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
};
|
||||
|
||||
onMount(() => {
|
||||
if (!($settings.advanced.duck && $settings.advanced.debug)) {
|
||||
if (!($settings.advanced.localProcessing && $settings.advanced.debug)) {
|
||||
goto("/", { replaceState: true });
|
||||
}
|
||||
});
|
||||
|
||||
@@ -15,15 +15,6 @@
|
||||
/>
|
||||
</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>
|
||||
|
||||
@@ -56,6 +56,15 @@
|
||||
/>
|
||||
</SettingsCategory>
|
||||
|
||||
<SettingsCategory sectionId="local-processing" title={$t("settings.advanced.local-processing")} beta>
|
||||
<SettingsToggle
|
||||
settingContext="advanced"
|
||||
settingId="localProcessing"
|
||||
title={$t("settings.advanced.local-processing.title")}
|
||||
description={$t("settings.advanced.local-processing.description")}
|
||||
/>
|
||||
</SettingsCategory>
|
||||
|
||||
<style>
|
||||
.category-inside-group {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user