2023-01-04 14:57:12 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
2023-04-16 21:33:51 +02:00
|
|
|
useHydratedHead({
|
2023-01-04 14:57:12 +01:00
|
|
|
title: () => `${t('settings.preferences.label')} | ${t('nav.settings')}`,
|
|
|
|
})
|
2023-01-12 18:52:52 +01:00
|
|
|
|
|
|
|
const userSettings = useUserSettings()
|
2023-01-04 14:57:12 +01:00
|
|
|
</script>
|
|
|
|
|
2022-12-26 09:50:11 +01:00
|
|
|
<template>
|
2022-12-28 02:12:56 +01:00
|
|
|
<MainContent back-on-small-screen>
|
2023-01-17 13:55:36 +01:00
|
|
|
<template #title>
|
|
|
|
<h1 text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
|
|
{{ $t('settings.preferences.label') }}
|
|
|
|
</h1>
|
|
|
|
</template>
|
2023-02-03 18:12:48 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'hideAltIndicatorOnPosts')"
|
|
|
|
@click="togglePreferences('hideAltIndicatorOnPosts')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.hide_alt_indi_on_posts') }}
|
|
|
|
</SettingsToggleItem>
|
2023-01-15 15:19:22 +01:00
|
|
|
<SettingsToggleItem
|
2023-02-03 18:27:40 +01:00
|
|
|
:checked="getPreferences(userSettings, 'hideAccountHoverCard')"
|
|
|
|
@click="togglePreferences('hideAccountHoverCard')"
|
2023-01-15 15:19:22 +01:00
|
|
|
>
|
2023-02-03 18:27:40 +01:00
|
|
|
{{ $t('settings.preferences.hide_account_hover_card') }}
|
2023-01-15 15:19:22 +01:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2023-02-03 18:27:40 +01:00
|
|
|
:checked="getPreferences(userSettings, 'enableAutoplay')"
|
2023-02-15 11:34:23 +01:00
|
|
|
:disabled="getPreferences(userSettings, 'enableDataSaving')"
|
2023-02-03 18:27:40 +01:00
|
|
|
@click="togglePreferences('enableAutoplay')"
|
2023-01-15 15:19:22 +01:00
|
|
|
>
|
2023-02-03 18:27:40 +01:00
|
|
|
{{ $t('settings.preferences.enable_autoplay') }}
|
2023-01-15 15:19:22 +01:00
|
|
|
</SettingsToggleItem>
|
2024-01-18 09:18:49 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'optimizeForLowPerformanceDevice')"
|
|
|
|
@click="togglePreferences('optimizeForLowPerformanceDevice')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.optimize_for_low_performance_device') }}
|
|
|
|
</SettingsToggleItem>
|
2023-02-15 11:34:23 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'enableDataSaving')"
|
|
|
|
@click="togglePreferences('enableDataSaving')"
|
|
|
|
>
|
|
|
|
{{ $t("settings.preferences.enable_data_saving") }}
|
|
|
|
<template #description>
|
|
|
|
{{ $t("settings.preferences.enable_data_saving_description") }}
|
|
|
|
</template>
|
|
|
|
</SettingsToggleItem>
|
2023-01-15 15:19:22 +01:00
|
|
|
<SettingsToggleItem
|
2023-02-03 18:27:40 +01:00
|
|
|
:checked="getPreferences(userSettings, 'enablePinchToZoom')"
|
|
|
|
@click="togglePreferences('enablePinchToZoom')"
|
2023-01-26 13:41:43 +01:00
|
|
|
>
|
2023-02-03 18:27:40 +01:00
|
|
|
{{ $t('settings.preferences.enable_pinch_to_zoom') }}
|
2023-01-26 13:41:43 +01:00
|
|
|
</SettingsToggleItem>
|
2023-05-06 17:52:33 +02:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'useStarFavoriteIcon')"
|
|
|
|
@click="togglePreferences('useStarFavoriteIcon')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.use_star_favorite_icon') }}
|
|
|
|
</SettingsToggleItem>
|
2023-02-03 18:27:40 +01:00
|
|
|
<h2 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
|
|
|
|
<div i-ri-hearts-line />
|
|
|
|
{{ $t('settings.preferences.wellbeing') }}
|
|
|
|
</h2>
|
2023-01-26 13:41:43 +01:00
|
|
|
<SettingsToggleItem
|
2023-02-03 18:27:40 +01:00
|
|
|
:checked="getPreferences(userSettings, 'grayscaleMode')"
|
|
|
|
@click="togglePreferences('grayscaleMode')"
|
2023-01-15 15:19:22 +01:00
|
|
|
>
|
2023-02-03 18:27:40 +01:00
|
|
|
{{ $t('settings.preferences.grayscale_mode') }}
|
2023-01-15 15:19:22 +01:00
|
|
|
</SettingsToggleItem>
|
2023-01-24 21:46:33 +01:00
|
|
|
<SettingsToggleItem
|
2023-02-03 18:27:40 +01:00
|
|
|
:checked="getPreferences(userSettings, 'hideBoostCount')"
|
|
|
|
@click="togglePreferences('hideBoostCount')"
|
2023-01-24 21:46:33 +01:00
|
|
|
>
|
2023-02-03 18:27:40 +01:00
|
|
|
{{ $t('settings.preferences.hide_boost_count') }}
|
2023-01-24 21:46:33 +01:00
|
|
|
</SettingsToggleItem>
|
2023-01-17 13:55:36 +01:00
|
|
|
<SettingsToggleItem
|
2023-02-03 18:27:40 +01:00
|
|
|
:checked="getPreferences(userSettings, 'hideFavoriteCount')"
|
|
|
|
@click="togglePreferences('hideFavoriteCount')"
|
2023-01-17 13:55:36 +01:00
|
|
|
>
|
2023-02-03 18:27:40 +01:00
|
|
|
{{ $t('settings.preferences.hide_favorite_count') }}
|
2023-01-17 13:55:36 +01:00
|
|
|
</SettingsToggleItem>
|
2023-01-19 19:33:50 +01:00
|
|
|
<SettingsToggleItem
|
2023-02-03 18:27:40 +01:00
|
|
|
:checked="getPreferences(userSettings, 'hideReplyCount')"
|
|
|
|
@click="togglePreferences('hideReplyCount')"
|
2023-01-19 19:33:50 +01:00
|
|
|
>
|
2023-02-03 18:27:40 +01:00
|
|
|
{{ $t('settings.preferences.hide_reply_count') }}
|
2023-01-19 19:33:50 +01:00
|
|
|
</SettingsToggleItem>
|
2023-02-01 15:43:27 +01:00
|
|
|
<SettingsToggleItem
|
2023-02-03 18:27:40 +01:00
|
|
|
:checked="getPreferences(userSettings, 'hideFollowerCount')"
|
|
|
|
@click="togglePreferences('hideFollowerCount')"
|
2023-02-01 15:43:27 +01:00
|
|
|
>
|
2023-02-03 18:27:40 +01:00
|
|
|
{{ $t('settings.preferences.hide_follower_count') }}
|
2023-02-01 15:43:27 +01:00
|
|
|
</SettingsToggleItem>
|
2023-02-04 18:02:05 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'hideUsernameEmojis')"
|
|
|
|
@click="togglePreferences('hideUsernameEmojis')"
|
|
|
|
>
|
|
|
|
{{ $t("settings.preferences.hide_username_emojis") }}
|
2023-02-05 14:00:25 +01:00
|
|
|
<template #description>
|
|
|
|
{{ $t('settings.preferences.hide_username_emojis_description') }}
|
|
|
|
</template>
|
2023-02-04 18:02:05 +01:00
|
|
|
</SettingsToggleItem>
|
2023-04-28 09:38:44 +02:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'hideNews')"
|
|
|
|
@click="togglePreferences('hideNews')"
|
|
|
|
>
|
|
|
|
{{ $t("settings.preferences.hide_news") }}
|
|
|
|
</SettingsToggleItem>
|
2023-04-23 12:21:33 +02:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'zenMode')"
|
|
|
|
@click="togglePreferences('zenMode')"
|
|
|
|
>
|
|
|
|
{{ $t("settings.preferences.zen_mode") }}
|
|
|
|
<template #description>
|
|
|
|
{{ $t('settings.preferences.zen_mode_description') }}
|
|
|
|
</template>
|
|
|
|
</SettingsToggleItem>
|
2023-01-17 13:55:36 +01:00
|
|
|
<h2 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
|
2022-12-27 18:38:38 +01:00
|
|
|
<div i-ri-flask-line />
|
2023-01-15 15:19:22 +01:00
|
|
|
{{ $t('settings.preferences.title') }}
|
2023-01-17 13:55:36 +01:00
|
|
|
</h2>
|
2023-11-07 10:57:44 +01:00
|
|
|
<!-- Embedded Media -->
|
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'experimentalEmbeddedMedia')"
|
|
|
|
@click="togglePreferences('experimentalEmbeddedMedia')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.embedded_media') }}
|
|
|
|
<template #description>
|
|
|
|
{{ $t('settings.preferences.embedded_media_description') }}
|
|
|
|
</template>
|
|
|
|
</SettingsToggleItem>
|
2022-12-28 00:03:50 +01:00
|
|
|
<SettingsToggleItem
|
2023-01-15 15:19:22 +01:00
|
|
|
:checked="getPreferences(userSettings, 'experimentalVirtualScroller')"
|
|
|
|
@click="togglePreferences('experimentalVirtualScroller')"
|
2022-12-27 18:38:38 +01:00
|
|
|
>
|
2023-01-15 15:19:22 +01:00
|
|
|
{{ $t('settings.preferences.virtual_scroll') }}
|
2023-07-14 21:01:35 +02:00
|
|
|
<template #description>
|
|
|
|
{{ $t('settings.preferences.virtual_scroll_description') }}
|
|
|
|
</template>
|
2022-12-28 00:03:50 +01:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2023-01-15 15:19:22 +01:00
|
|
|
:checked="getPreferences(userSettings, 'experimentalGitHubCards')"
|
|
|
|
@click="togglePreferences('experimentalGitHubCards')"
|
2022-12-27 18:38:38 +01:00
|
|
|
>
|
2023-01-15 15:19:22 +01:00
|
|
|
{{ $t('settings.preferences.github_cards') }}
|
2023-07-14 21:01:35 +02:00
|
|
|
<template #description>
|
|
|
|
{{ $t('settings.preferences.github_cards_description') }}
|
|
|
|
</template>
|
2022-12-28 00:03:50 +01:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2023-01-15 15:19:22 +01:00
|
|
|
:checked="getPreferences(userSettings, 'experimentalUserPicker')"
|
|
|
|
@click="togglePreferences('experimentalUserPicker')"
|
2022-12-27 18:38:38 +01:00
|
|
|
>
|
2023-01-15 15:19:22 +01:00
|
|
|
{{ $t('settings.preferences.user_picker') }}
|
2023-07-14 21:01:35 +02:00
|
|
|
<template #description>
|
|
|
|
{{ $t('settings.preferences.user_picker_description') }}
|
|
|
|
</template>
|
2022-12-28 00:03:50 +01:00
|
|
|
</SettingsToggleItem>
|
2022-12-26 09:50:11 +01:00
|
|
|
</MainContent>
|
|
|
|
</template>
|