2023-01-04 22:57:12 +09:00
|
|
|
<script setup lang="ts">
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
useHeadFixed({
|
|
|
|
title: () => `${t('settings.preferences.label')} | ${t('nav.settings')}`,
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
2022-12-26 17:50:11 +09:00
|
|
|
<template>
|
2022-12-28 10:12:56 +09:00
|
|
|
<MainContent back-on-small-screen>
|
2022-12-26 17:50:11 +09:00
|
|
|
<template #title>
|
|
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
|
|
<span>{{ $t('settings.preferences.label') }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
2022-12-28 02:38:38 +09:00
|
|
|
<h3 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
|
|
|
|
<div i-ri-flask-line />
|
|
|
|
{{ $t('settings.feature_flags.title') }}
|
|
|
|
</h3>
|
2022-12-28 08:03:50 +09:00
|
|
|
<SettingsToggleItem
|
2022-12-28 02:38:38 +09:00
|
|
|
:checked="currentUserFeatureFlags.experimentalVirtualScroll"
|
|
|
|
@click="toggleFeatureFlag('experimentalVirtualScroll')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.feature_flags.virtual_scroll') }}
|
2022-12-28 08:03:50 +09:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2022-12-28 02:38:38 +09:00
|
|
|
:checked="currentUserFeatureFlags.experimentalGitHubCards"
|
|
|
|
@click="toggleFeatureFlag('experimentalGitHubCards')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.feature_flags.github_cards') }}
|
2022-12-28 08:03:50 +09:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2022-12-28 05:07:19 +09:00
|
|
|
:checked="currentUserFeatureFlags.experimentalUserPicker"
|
|
|
|
@click="toggleFeatureFlag('experimentalUserPicker')"
|
2022-12-28 02:38:38 +09:00
|
|
|
>
|
2022-12-28 05:07:19 +09:00
|
|
|
{{ $t('settings.feature_flags.user_picker') }}
|
2022-12-28 08:03:50 +09:00
|
|
|
</SettingsToggleItem>
|
2022-12-26 17:50:11 +09:00
|
|
|
</MainContent>
|
|
|
|
</template>
|