mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-17 16:41:48 +03:00
1aa118283e
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
39 lines
1.2 KiB
Vue
39 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
const { t } = useI18n()
|
|
|
|
useHeadFixed({
|
|
title: () => `${t('settings.preferences.label')} | ${t('nav.settings')}`,
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<MainContent back-on-small-screen>
|
|
<template #title>
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
<span>{{ $t('settings.preferences.label') }}</span>
|
|
</div>
|
|
</template>
|
|
<h3 px6 py4 mt2 font-bold text-xl flex="~ gap-1" items-center>
|
|
<div i-ri-flask-line />
|
|
{{ $t('settings.feature_flags.title') }}
|
|
</h3>
|
|
<SettingsToggleItem
|
|
:checked="getFeatureFlag('experimentalVirtualScroll')"
|
|
@click="toggleFeatureFlag('experimentalVirtualScroll')"
|
|
>
|
|
{{ $t('settings.feature_flags.virtual_scroll') }}
|
|
</SettingsToggleItem>
|
|
<SettingsToggleItem
|
|
:checked="getFeatureFlag('experimentalGitHubCards')"
|
|
@click="toggleFeatureFlag('experimentalGitHubCards')"
|
|
>
|
|
{{ $t('settings.feature_flags.github_cards') }}
|
|
</SettingsToggleItem>
|
|
<SettingsToggleItem
|
|
:checked="getFeatureFlag('experimentalUserPicker')"
|
|
@click="toggleFeatureFlag('experimentalUserPicker')"
|
|
>
|
|
{{ $t('settings.feature_flags.user_picker') }}
|
|
</SettingsToggleItem>
|
|
</MainContent>
|
|
</template>
|