2023-01-04 16:57:12 +03:00
|
|
|
<script setup lang="ts">
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
useHeadFixed({
|
|
|
|
title: () => `${t('settings.preferences.label')} | ${t('nav.settings')}`,
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
2022-12-26 11:50:11 +03:00
|
|
|
<template>
|
2022-12-28 04:12:56 +03:00
|
|
|
<MainContent back-on-small-screen>
|
2022-12-26 11:50:11 +03: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-27 20:38:38 +03: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 02:03:50 +03:00
|
|
|
<SettingsToggleItem
|
2023-01-09 14:32:49 +03:00
|
|
|
:checked="getFeatureFlag('experimentalVirtualScroller')"
|
|
|
|
@click="toggleFeatureFlag('experimentalVirtualScroller')"
|
2022-12-27 20:38:38 +03:00
|
|
|
>
|
|
|
|
{{ $t('settings.feature_flags.virtual_scroll') }}
|
2022-12-28 02:03:50 +03:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2023-01-06 20:39:37 +03:00
|
|
|
:checked="getFeatureFlag('experimentalGitHubCards')"
|
2022-12-27 20:38:38 +03:00
|
|
|
@click="toggleFeatureFlag('experimentalGitHubCards')"
|
|
|
|
>
|
|
|
|
{{ $t('settings.feature_flags.github_cards') }}
|
2022-12-28 02:03:50 +03:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2023-01-06 20:39:37 +03:00
|
|
|
:checked="getFeatureFlag('experimentalUserPicker')"
|
2022-12-27 23:07:19 +03:00
|
|
|
@click="toggleFeatureFlag('experimentalUserPicker')"
|
2022-12-27 20:38:38 +03:00
|
|
|
>
|
2022-12-27 23:07:19 +03:00
|
|
|
{{ $t('settings.feature_flags.user_picker') }}
|
2022-12-28 02:03:50 +03:00
|
|
|
</SettingsToggleItem>
|
2022-12-26 11:50:11 +03:00
|
|
|
</MainContent>
|
|
|
|
</template>
|