2022-04-15 14:24:30 +00:00
|
|
|
|
<template>
|
|
|
|
|
<div>
|
2024-03-12 04:48:57 +00:00
|
|
|
|
<div v-if="isPlus" class="form-row">
|
2024-01-23 22:50:50 +00:00
|
|
|
|
<label>
|
|
|
|
|
<CheckBox v-model="preferences.make_uploads_public" name="make_upload_public" />
|
|
|
|
|
Make uploaded songs public by default
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="isPhone" class="form-row">
|
2022-04-15 14:24:30 +00:00
|
|
|
|
<label>
|
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
|
2022-04-15 14:24:30 +00:00
|
|
|
|
</label>
|
|
|
|
|
</div>
|
2022-12-02 16:17:37 +00:00
|
|
|
|
<div v-if="!isPhone" class="form-row">
|
2022-04-15 14:24:30 +00:00
|
|
|
|
<label>
|
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
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
2022-12-02 16:17:37 +00:00
|
|
|
|
<div v-if="isPhone" class="form-row">
|
2022-04-15 14:24:30 +00:00
|
|
|
|
<label>
|
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
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-row">
|
|
|
|
|
<label>
|
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
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</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'
|
|
|
|
|
|
2022-07-15 07:23:55 +00:00
|
|
|
|
import CheckBox from '@/components/ui/CheckBox.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>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
label {
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
}
|
|
|
|
|
</style>
|