2022-04-15 14:24:30 +00:00
|
|
|
|
<template>
|
2024-04-04 22:20:42 +00:00
|
|
|
|
<div class="space-y-3">
|
|
|
|
|
<FormRow v-if="isPlus">
|
|
|
|
|
<div>
|
2024-01-23 22:50:50 +00:00
|
|
|
|
<CheckBox v-model="preferences.make_uploads_public" name="make_upload_public" />
|
|
|
|
|
Make uploaded songs public by default
|
2024-04-04 22:20:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
</FormRow>
|
|
|
|
|
<FormRow>
|
|
|
|
|
<div>
|
2024-03-25 22:59:38 +00:00
|
|
|
|
<CheckBox v-model="preferences.continuous_playback" name="continuous_playback" />
|
|
|
|
|
Playing a song triggers continuous playback of the entire playlist, album, artist, or genre
|
2024-04-04 22:20:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
</FormRow>
|
|
|
|
|
<FormRow v-if="isPhone">
|
|
|
|
|
<div>
|
2024-01-23 22:50:50 +00:00
|
|
|
|
<CheckBox v-model="preferences.show_now_playing_notification" name="notify" />
|
2024-03-12 04:48:57 +00:00
|
|
|
|
Show “Now Playing” notification
|
2024-04-04 22:20:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
</FormRow>
|
|
|
|
|
<FormRow v-if="!isPhone">
|
|
|
|
|
<div>
|
2024-01-23 22:50:50 +00:00
|
|
|
|
<CheckBox v-model="preferences.confirm_before_closing" name="confirm_closing" />
|
2022-04-15 14:24:30 +00:00
|
|
|
|
Confirm before closing Koel
|
2024-04-04 22:20:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
</FormRow>
|
|
|
|
|
<FormRow v-if="isPhone">
|
|
|
|
|
<div>
|
2024-01-23 22:50:50 +00:00
|
|
|
|
<CheckBox v-model="preferences.transcode_on_mobile" name="transcode_on_mobile" />
|
2022-04-15 14:24:30 +00:00
|
|
|
|
Convert and play media at 128kbps on mobile
|
2024-04-04 22:20:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
</FormRow>
|
|
|
|
|
<FormRow>
|
|
|
|
|
<div>
|
2024-01-23 22:50:50 +00:00
|
|
|
|
<CheckBox v-model="preferences.show_album_art_overlay" name="show_album_art_overlay" />
|
2022-04-15 14:24:30 +00:00
|
|
|
|
Show a translucent, blurred overlay of the current album’s art
|
2024-04-04 22:20:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
</FormRow>
|
2022-04-15 14:24:30 +00:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2022-04-15 17:00:08 +00:00
|
|
|
|
<script lang="ts" setup>
|
2022-04-15 14:24:30 +00:00
|
|
|
|
import isMobile from 'ismobilejs'
|
|
|
|
|
import { preferenceStore as preferences } from '@/stores'
|
2024-01-23 22:50:50 +00:00
|
|
|
|
import { useKoelPlus } from '@/composables'
|
|
|
|
|
|
2024-04-04 22:20:42 +00:00
|
|
|
|
import CheckBox from '@/components/ui/form/CheckBox.vue'
|
|
|
|
|
import FormRow from '@/components/ui/form/FormRow.vue'
|
2022-04-15 14:24:30 +00:00
|
|
|
|
|
2022-04-15 17:00:08 +00:00
|
|
|
|
const isPhone = isMobile.phone
|
2024-01-23 22:50:50 +00:00
|
|
|
|
const { isPlus } = useKoelPlus()
|
2022-04-15 14:24:30 +00:00
|
|
|
|
</script>
|
|
|
|
|
|
2024-04-04 20:13:35 +00:00
|
|
|
|
<style lang="postcss" scoped>
|
2022-04-15 14:24:30 +00:00
|
|
|
|
label {
|
2024-04-04 22:20:42 +00:00
|
|
|
|
@apply text-base;
|
2022-04-15 14:24:30 +00:00
|
|
|
|
}
|
|
|
|
|
</style>
|