2019-07-07 08:22:56 +02:00
|
|
|
<template>
|
2022-02-19 06:18:01 +01:00
|
|
|
<div class="fd-page-with-tabs">
|
2022-02-19 06:39:14 +01:00
|
|
|
<tabs-settings />
|
2022-05-29 18:49:00 +02:00
|
|
|
<content-with-heading>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #heading-left>
|
|
|
|
<div class="title is-4" v-text="$t('page.settings.general.language')" />
|
|
|
|
</template>
|
|
|
|
<template #content>
|
|
|
|
<dropdown-menu v-model="locale" :options="locales" />
|
|
|
|
</template>
|
|
|
|
</content-with-heading>
|
2020-01-04 18:53:27 +01:00
|
|
|
<content-with-heading>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #heading-left>
|
2022-05-29 18:49:00 +02:00
|
|
|
<div
|
|
|
|
class="title is-4"
|
|
|
|
v-text="$t('page.settings.general.navigation-items')"
|
|
|
|
/>
|
2020-08-23 08:52:46 +02:00
|
|
|
</template>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #content>
|
2022-05-29 18:49:00 +02:00
|
|
|
<p
|
|
|
|
class="content"
|
|
|
|
v-text="$t('page.settings.general.navigation-item-selection')"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="notification is-size-7"
|
|
|
|
v-text="$t('page.settings.general.navigation-item-selection-info')"
|
|
|
|
/>
|
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_menu_item_playlists"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.playlists')" />
|
|
|
|
</template>
|
2020-08-23 08:52:46 +02:00
|
|
|
</settings-checkbox>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_menu_item_music"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.music')" />
|
|
|
|
</template>
|
2020-08-23 08:52:46 +02:00
|
|
|
</settings-checkbox>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_menu_item_podcasts"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.podcasts')" />
|
|
|
|
</template>
|
2020-08-23 08:52:46 +02:00
|
|
|
</settings-checkbox>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_menu_item_audiobooks"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.audiobooks')" />
|
|
|
|
</template>
|
2020-08-23 08:52:46 +02:00
|
|
|
</settings-checkbox>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_menu_item_radio"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.radio')" />
|
|
|
|
</template>
|
2020-08-23 08:52:46 +02:00
|
|
|
</settings-checkbox>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_menu_item_files"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.files')" />
|
|
|
|
</template>
|
2020-08-23 08:52:46 +02:00
|
|
|
</settings-checkbox>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_menu_item_search"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.search')" />
|
|
|
|
</template>
|
2020-08-23 08:52:46 +02:00
|
|
|
</settings-checkbox>
|
|
|
|
</template>
|
|
|
|
</content-with-heading>
|
|
|
|
<content-with-heading>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #heading-left>
|
2022-05-29 18:49:00 +02:00
|
|
|
<div
|
|
|
|
class="title is-4"
|
|
|
|
v-text="$t('page.settings.general.album-lists')"
|
|
|
|
/>
|
2020-08-23 08:52:46 +02:00
|
|
|
</template>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #content>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_cover_artwork_in_album_lists"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.show-coverart')" />
|
|
|
|
</template>
|
2020-08-23 08:52:46 +02:00
|
|
|
</settings-checkbox>
|
|
|
|
</template>
|
|
|
|
</content-with-heading>
|
|
|
|
<content-with-heading>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #heading-left>
|
2022-05-29 18:49:00 +02:00
|
|
|
<div
|
|
|
|
class="title is-4"
|
|
|
|
v-text="$t('page.settings.general.now-playing-page')"
|
|
|
|
/>
|
2020-01-04 18:53:27 +01:00
|
|
|
</template>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #content>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_composer_now_playing"
|
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.show-composer')" />
|
|
|
|
</template>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #info>
|
2022-05-20 13:44:22 +02:00
|
|
|
<span v-text="$t('page.settings.general.show-composer-info')" />
|
2022-02-19 06:39:14 +01:00
|
|
|
</template>
|
2020-03-14 14:13:37 +01:00
|
|
|
</settings-checkbox>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-textfield
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_composer_for_genre"
|
|
|
|
:disabled="!settings_option_show_composer_now_playing"
|
2023-06-30 03:44:35 +02:00
|
|
|
:placeholder="$t('page.settings.general.genres')"
|
2022-05-29 18:49:00 +02:00
|
|
|
>
|
2022-05-20 13:44:22 +02:00
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.show-composer-genres')" />
|
|
|
|
</template>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #info>
|
2022-05-29 18:49:00 +02:00
|
|
|
<p
|
|
|
|
class="help"
|
|
|
|
v-text="$t('page.settings.general.show-composer-genres-info-1')"
|
|
|
|
/>
|
|
|
|
<p
|
|
|
|
class="help"
|
|
|
|
v-text="$t('page.settings.general.show-composer-genres-info-2')"
|
|
|
|
/>
|
|
|
|
<p
|
|
|
|
class="help"
|
|
|
|
v-text="$t('page.settings.general.show-composer-genres-info-3')"
|
|
|
|
/>
|
2020-03-14 14:13:37 +01:00
|
|
|
</template>
|
|
|
|
</settings-textfield>
|
2023-02-05 12:49:16 +01:00
|
|
|
<settings-checkbox
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="show_filepath_now_playing"
|
|
|
|
>
|
|
|
|
<template #label>
|
|
|
|
<span v-text="$t('page.settings.general.show-path')" />
|
|
|
|
</template>
|
|
|
|
</settings-checkbox>
|
2020-01-04 18:53:27 +01:00
|
|
|
</template>
|
|
|
|
</content-with-heading>
|
2020-12-01 15:58:40 +00:00
|
|
|
<content-with-heading>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #heading-left>
|
2022-05-29 18:49:00 +02:00
|
|
|
<div
|
|
|
|
class="title is-4"
|
|
|
|
v-text="$t('page.settings.general.recently-added-page')"
|
|
|
|
/>
|
2020-12-01 15:58:40 +00:00
|
|
|
</template>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #content>
|
2022-05-29 18:49:00 +02:00
|
|
|
<settings-intfield
|
|
|
|
category_name="webinterface"
|
|
|
|
option_name="recently_added_limit"
|
|
|
|
>
|
2022-02-19 06:39:14 +01:00
|
|
|
<template #label>
|
2022-05-29 18:49:00 +02:00
|
|
|
<span
|
|
|
|
v-text="$t('page.settings.general.recently-added-page-info')"
|
|
|
|
/>
|
2022-02-19 06:39:14 +01:00
|
|
|
</template>
|
2020-12-01 15:58:40 +00:00
|
|
|
</settings-intfield>
|
|
|
|
</template>
|
|
|
|
</content-with-heading>
|
2020-01-04 18:53:27 +01:00
|
|
|
</div>
|
2019-07-07 08:22:56 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-02-19 06:18:01 +01:00
|
|
|
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
|
|
|
import TabsSettings from '@/components/TabsSettings.vue'
|
|
|
|
import SettingsCheckbox from '@/components/SettingsCheckbox.vue'
|
|
|
|
import SettingsTextfield from '@/components/SettingsTextfield.vue'
|
|
|
|
import SettingsIntfield from '@/components/SettingsIntfield.vue'
|
2022-05-20 13:44:22 +02:00
|
|
|
import DropdownMenu from '@/components/DropdownMenu.vue'
|
2019-07-07 08:22:56 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'SettingsPageWebinterface',
|
2022-02-19 06:39:14 +01:00
|
|
|
components: {
|
|
|
|
ContentWithHeading,
|
|
|
|
TabsSettings,
|
|
|
|
SettingsCheckbox,
|
|
|
|
SettingsTextfield,
|
2022-05-20 13:44:22 +02:00
|
|
|
SettingsIntfield,
|
|
|
|
DropdownMenu
|
2022-02-19 06:39:14 +01:00
|
|
|
},
|
2019-07-07 08:22:56 +02:00
|
|
|
|
|
|
|
computed: {
|
2022-02-19 06:39:14 +01:00
|
|
|
settings_option_show_composer_now_playing() {
|
2019-07-07 08:22:56 +02:00
|
|
|
return this.$store.getters.settings_option_show_composer_now_playing
|
2022-05-20 13:44:22 +02:00
|
|
|
},
|
2023-02-05 12:49:16 +01:00
|
|
|
|
|
|
|
settings_option_show_filepath_now_playing() {
|
|
|
|
return this.$store.getters.settings_option_show_filepath_now_playing
|
|
|
|
},
|
|
|
|
|
2022-05-20 13:44:22 +02:00
|
|
|
locale: {
|
|
|
|
get() {
|
2022-06-05 19:19:00 +02:00
|
|
|
let languages = this.$i18n.availableLocales
|
2023-06-03 18:52:17 +02:00
|
|
|
let locale = languages.find((lang) => lang === this.$i18n.locale)
|
2022-06-05 19:19:00 +02:00
|
|
|
let partial = this.$i18n.locale.split('-')[0]
|
|
|
|
if (!locale) {
|
2023-06-03 18:52:17 +02:00
|
|
|
locale = languages.find((lang) => lang === partial)
|
2022-06-05 19:19:00 +02:00
|
|
|
}
|
|
|
|
if (!locale) {
|
2023-06-03 18:52:17 +02:00
|
|
|
locale = languages.forEach((lang) => lang.split('-')[0] === partial)
|
2022-06-05 19:19:00 +02:00
|
|
|
}
|
|
|
|
return locale
|
2022-05-20 13:44:22 +02:00
|
|
|
},
|
|
|
|
set(locale) {
|
|
|
|
this.$i18n.locale = locale
|
|
|
|
}
|
|
|
|
},
|
|
|
|
locales: {
|
|
|
|
get() {
|
|
|
|
return this.$i18n.availableLocales.map((item) => {
|
|
|
|
return { id: item, name: this.$t('language.' + item) }
|
|
|
|
})
|
|
|
|
}
|
2019-07-07 08:22:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-02-19 06:39:14 +01:00
|
|
|
<style></style>
|