2024-06-24 19:05:51 +02:00
|
|
|
<script lang="ts">
|
2024-07-03 19:54:44 +02:00
|
|
|
import { t } from "$lib/i18n/translations";
|
2024-06-24 19:05:51 +02:00
|
|
|
|
|
|
|
import { videoQualityOptions } from "$lib/types/settings";
|
|
|
|
import { youtubeVideoCodecOptions } from "$lib/types/settings";
|
|
|
|
|
2024-07-03 19:54:44 +02:00
|
|
|
import SettingsCategory from "$components/settings/SettingsCategory.svelte";
|
|
|
|
import Switcher from "$components/buttons/Switcher.svelte";
|
|
|
|
import SettingsButton from "$components/buttons/SettingsButton.svelte";
|
|
|
|
import SettingsToggle from "$components/buttons/SettingsToggle.svelte";
|
2024-06-24 19:05:51 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<SettingsCategory
|
2024-07-03 19:54:44 +02:00
|
|
|
title={$t("settings.video.quality")}
|
|
|
|
description={$t("settings.video.quality.description")}
|
2024-06-24 19:05:51 +02:00
|
|
|
>
|
|
|
|
<Switcher big={true}>
|
|
|
|
{#each videoQualityOptions as value}
|
|
|
|
<SettingsButton settingContext="save" settingId="videoQuality" settingValue={value}>
|
2024-07-03 19:54:44 +02:00
|
|
|
{$t(`settings.video.quality.${value}`)}
|
2024-06-24 19:05:51 +02:00
|
|
|
</SettingsButton>
|
|
|
|
{/each}
|
|
|
|
</Switcher>
|
|
|
|
|
|
|
|
</SettingsCategory>
|
|
|
|
|
|
|
|
<SettingsCategory
|
2024-07-03 19:54:44 +02:00
|
|
|
title={$t("settings.video.youtube.codec")}
|
|
|
|
description={$t("settings.video.youtube.codec.description")}
|
2024-06-24 19:05:51 +02:00
|
|
|
>
|
|
|
|
<Switcher big={true}>
|
|
|
|
{#each youtubeVideoCodecOptions as value}
|
|
|
|
<SettingsButton settingContext="save" settingId="youtubeVideoCodec" settingValue={value}>
|
2024-07-03 19:54:44 +02:00
|
|
|
{$t(`settings.video.youtube.codec.${value}`)}
|
2024-06-24 19:05:51 +02:00
|
|
|
</SettingsButton>
|
|
|
|
{/each}
|
|
|
|
</Switcher>
|
|
|
|
|
|
|
|
</SettingsCategory>
|
|
|
|
|
2024-07-03 19:54:44 +02:00
|
|
|
<SettingsCategory title={$t("settings.video.twitter.gif")}>
|
2024-06-29 18:51:24 +02:00
|
|
|
<SettingsToggle
|
2024-06-24 19:05:51 +02:00
|
|
|
settingContext="save"
|
|
|
|
settingId="twitterGif"
|
2024-07-03 19:54:44 +02:00
|
|
|
title={$t("settings.video.twitter.gif.title")}
|
|
|
|
description={$t("settings.video.twitter.gif.description")}
|
2024-06-24 19:05:51 +02:00
|
|
|
/>
|
|
|
|
</SettingsCategory>
|
|
|
|
|
2024-07-03 19:54:44 +02:00
|
|
|
<SettingsCategory title={$t("settings.video.tiktok.h265")}>
|
2024-06-29 18:51:24 +02:00
|
|
|
<SettingsToggle
|
2024-06-24 19:05:51 +02:00
|
|
|
settingContext="save"
|
|
|
|
settingId="tiktokH265"
|
2024-07-03 19:54:44 +02:00
|
|
|
title={$t("settings.video.tiktok.h265.title")}
|
|
|
|
description={$t("settings.video.tiktok.h265.description")}
|
2024-06-24 19:05:51 +02:00
|
|
|
/>
|
|
|
|
</SettingsCategory>
|