2023-01-04 14:57:12 +01:00
|
|
|
<script setup lang="ts">
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
useHeadFixed({
|
|
|
|
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-01-15 15:19:22 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'hideBoostCount')"
|
|
|
|
@click="togglePreferences('hideBoostCount')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.hide_boost_count') }}
|
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'hideFavoriteCount')"
|
|
|
|
@click="togglePreferences('hideFavoriteCount')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.hide_favorite_count') }}
|
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'hideFollowerCount')"
|
|
|
|
@click="togglePreferences('hideFollowerCount')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.hide_follower_count') }}
|
|
|
|
</SettingsToggleItem>
|
2023-01-21 11:19:03 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'hideTranslation')"
|
|
|
|
@click="togglePreferences('hideTranslation')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.hide_translation') }}
|
|
|
|
</SettingsToggleItem>
|
2023-01-24 21:46:33 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'hideAccountHoverCard')"
|
|
|
|
@click="togglePreferences('hideAccountHoverCard')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.hide_account_hover_card') }}
|
|
|
|
</SettingsToggleItem>
|
2023-01-17 13:55:36 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'grayscaleMode')"
|
|
|
|
@click="togglePreferences('grayscaleMode')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.grayscale_mode') }}
|
|
|
|
</SettingsToggleItem>
|
2023-01-19 19:33:50 +01:00
|
|
|
<SettingsToggleItem
|
|
|
|
:checked="getPreferences(userSettings, 'enableAutoplay')"
|
|
|
|
@click="togglePreferences('enableAutoplay')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.preferences.enable_autoplay') }}
|
|
|
|
</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>
|
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') }}
|
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') }}
|
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') }}
|
2022-12-28 00:03:50 +01:00
|
|
|
</SettingsToggleItem>
|
2022-12-26 09:50:11 +01:00
|
|
|
</MainContent>
|
|
|
|
</template>
|