2023-01-04 14:57:12 +01:00
|
|
|
<script setup lang="ts">
|
2023-01-09 21:20:26 +01:00
|
|
|
const { $t } = useFluent()
|
2023-01-04 14:57:12 +01:00
|
|
|
|
|
|
|
useHeadFixed({
|
2023-01-09 21:20:26 +01:00
|
|
|
title: () => `${$t('settings_preferences_label')} | ${$t('nav_settings')}`,
|
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>
|
2022-12-26 09:50:11 +01:00
|
|
|
<template #title>
|
|
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
2023-01-09 21:20:26 +01:00
|
|
|
<span>{{ $t('settings_preferences_label') }}</span>
|
2022-12-26 09:50:11 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
2022-12-27 18:38:38 +01:00
|
|
|
<h3 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
|
|
|
|
<div i-ri-flask-line />
|
2023-01-09 21:20:26 +01:00
|
|
|
{{ $t('settings_feature_flags_title') }}
|
2022-12-27 18:38:38 +01:00
|
|
|
</h3>
|
2022-12-28 00:03:50 +01:00
|
|
|
<SettingsToggleItem
|
2023-01-09 12:32:49 +01:00
|
|
|
:checked="getFeatureFlag('experimentalVirtualScroller')"
|
|
|
|
@click="toggleFeatureFlag('experimentalVirtualScroller')"
|
2022-12-27 18:38:38 +01:00
|
|
|
>
|
2023-01-09 21:20:26 +01:00
|
|
|
{{ $t('settings_feature_flags_virtual_scroll') }}
|
2022-12-28 00:03:50 +01:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2023-01-06 18:39:37 +01:00
|
|
|
:checked="getFeatureFlag('experimentalGitHubCards')"
|
2022-12-27 18:38:38 +01:00
|
|
|
@click="toggleFeatureFlag('experimentalGitHubCards')"
|
|
|
|
>
|
2023-01-09 21:20:26 +01:00
|
|
|
{{ $t('settings_feature_flags_github_cards') }}
|
2022-12-28 00:03:50 +01:00
|
|
|
</SettingsToggleItem>
|
|
|
|
<SettingsToggleItem
|
2023-01-06 18:39:37 +01:00
|
|
|
:checked="getFeatureFlag('experimentalUserPicker')"
|
2022-12-27 21:07:19 +01:00
|
|
|
@click="toggleFeatureFlag('experimentalUserPicker')"
|
2022-12-27 18:38:38 +01:00
|
|
|
>
|
2023-01-09 21:20:26 +01:00
|
|
|
{{ $t('settings_feature_flags_user_picker') }}
|
2022-12-28 00:03:50 +01:00
|
|
|
</SettingsToggleItem>
|
2022-12-26 09:50:11 +01:00
|
|
|
</MainContent>
|
|
|
|
</template>
|