Move advanced AutoDJ functions into separate visually-warned tab.

This commit is contained in:
Buster "Silver Eagle" Neece 2020-04-01 21:31:31 -05:00
parent 30e68273df
commit 70c3ce0da7
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
6 changed files with 120 additions and 89 deletions

View File

@ -9,6 +9,7 @@
<form-source :form="$v.form"></form-source>
<form-schedule :form="$v.form" :schedule-items="form.schedule_items"
:station-time-zone="stationTimeZone"></form-schedule>
<form-advanced :form="$v.form"></form-advanced>
</b-tabs>
<invisible-submit-button/>
@ -31,11 +32,12 @@
import FormBasicInfo from './form/PlaylistFormBasicInfo';
import FormSource from './form/PlaylistFormSource';
import FormSchedule from './form/PlaylistFormSchedule';
import FormAdvanced from './form/PlaylistFormAdvanced';
import InvisibleSubmitButton from '../components/InvisibleSubmitButton';
export default {
name: 'EditModal',
components: { FormSchedule, FormSource, FormBasicInfo, InvisibleSubmitButton },
components: { FormSchedule, FormSource, FormBasicInfo, FormAdvanced, InvisibleSubmitButton },
mixins: [validationMixin],
props: {
createUrl: String,

View File

@ -0,0 +1,54 @@
<template>
<b-tab :title="langTabTitle">
<b-form-group>
<b-row>
<b-alert show variant="warning">
<h4 class="alert-heading">
<translate>Warning</translate>
</h4>
<p class="mb-0">
<translate>If any of these options are enabled, this playlist will be managed directly via Liquidsoap instead of via AzuraCast. This can have unintended effects and should only be used when you are comfortable with the results.</translate>
</p>
</b-alert>
<b-form-group class="col-md-6" label-for="edit_form_order">
<template v-slot:label>
<translate>Advanced Manual AutoDJ Scheduling Options</translate>
</template>
<template v-slot:description>
<translate>Control how this playlist is handled by the AutoDJ software.</translate>
</template>
<b-form-checkbox-group stacked id="edit_form_backend_options" v-model="form.backend_options.$model">
<b-form-checkbox value="interrupt">
<translate>Interrupt other songs to play at scheduled time.</translate>
</b-form-checkbox>
<b-form-checkbox value="loop_once">
<translate>Only loop through playlist once.</translate>
</b-form-checkbox>
<b-form-checkbox value="single_track">
<translate>Only play one track at scheduled time.</translate>
</b-form-checkbox>
<b-form-checkbox value="merge">
<translate>Merge playlist to play as a single track.</translate>
</b-form-checkbox>
</b-form-checkbox-group>
</b-form-group>
</b-row>
</b-form-group>
</b-tab>
</template>
<script>
export default {
name: 'PlaylistEditAdvanced',
props: {
form: Object
},
computed: {
langTabTitle () {
return this.$gettext('Advanced');
}
}
};
</script>

View File

@ -12,6 +12,7 @@
<translate>This field is required.</translate>
</b-form-invalid-feedback>
</b-form-group>
<b-form-group class="col-md-6" label-for="form_edit_weight">
<template v-slot:label>
<translate>Playlist Weight</translate>
@ -25,6 +26,7 @@
<translate>This field is required.</translate>
</b-form-invalid-feedback>
</b-form-group>
<b-form-group class="col-md-12" label-for="form_edit_is_enabled">
<template v-slot:description>
<translate>If disabled, the playlist will not be included in radio playback, but can still be managed.</translate>
@ -33,7 +35,8 @@
<translate>Is Enabled</translate>
</b-form-checkbox>
</b-form-group>
<b-form-group class="col-md-6" label-for="edit_form_type">
<b-form-group class="col-md-12" label-for="edit_form_type">
<template v-slot:label>
<translate>Playlist Type</translate>
</template>
@ -77,35 +80,6 @@
</b-form-radio>
</b-form-radio-group>
</b-form-group>
<b-form-group class="col-md-6" label-for="edit_form_order">
<template v-slot:label>
<translate>AutoDJ Scheduling Options</translate>
</template>
<template v-slot:description>
<translate>Control how this playlist is handled by the AutoDJ software.</translate>
<br>
<b>
<translate>Warning</translate>
:</b>
<translate>These functions are internal to Liquidsoap and will affect how your AutoDJ works.</translate>
</template>
<b-form-checkbox-group stacked id="edit_form_backend_options" v-model="form.backend_options.$model">
<b-form-checkbox value="interrupt">
<translate>Interrupt other songs to play at scheduled time.</translate>
</b-form-checkbox>
<b-form-checkbox value="loop_once">
<translate>Only loop through playlist once.</translate>
</b-form-checkbox>
<b-form-checkbox value="single_track">
<translate>Only play one track at scheduled time.</translate>
</b-form-checkbox>
<b-form-checkbox value="merge">
<translate>Merge playlist to play as a single track.</translate>
</b-form-checkbox>
</b-form-checkbox-group>
</b-form-group>
</b-row>
</b-form-group>

View File

@ -38,7 +38,7 @@ msgid "Add Files to Playlist"
msgstr ""
#: ./vue/StationPlaylists.vue:18
#: ./vue/station_playlists/PlaylistEditModal.vue:55
#: ./vue/station_playlists/PlaylistEditModal.vue:57
msgid "Add Playlist"
msgstr ""
@ -52,10 +52,15 @@ msgstr ""
msgid "Add Streamer"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:69
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:50
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:72
msgid "Advanced"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:15
msgid "Advanced Manual AutoDJ Scheduling Options"
msgstr ""
#: ./vue/station_media/form/MediaFormAdvancedSettings.vue:92
msgid "Advanced Playback Settings"
msgstr ""
@ -86,7 +91,7 @@ msgstr ""
#: ./vue/station_media/MediaEditModal.vue:172
#: ./vue/station_media/MediaMoveFilesModal.vue:92
#: ./vue/station_media/MediaNewDirectoryModal.vue:76
#: ./vue/station_playlists/PlaylistEditModal.vue:177
#: ./vue/station_playlists/PlaylistEditModal.vue:179
#: ./vue/station_streamers/StreamerEditModal.vue:152
msgid "An error occurred and your request could not be completed."
msgstr ""
@ -106,15 +111,11 @@ msgstr ""
msgid "Auto-Assigned"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:82
msgid "AutoDJ Scheduling Options"
msgstr ""
#: ./vue/station_media/MediaMoveFilesModal.vue:6
msgid "Back"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:228
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:202
#: ./vue/station_streamers/form/StreamerFormBasicInfo.vue:90
msgid "Basic Info"
msgstr ""
@ -128,7 +129,7 @@ msgid "Broadcasts"
msgstr ""
#: ./vue/station_media/MediaEditModal.vue:164
#: ./vue/station_playlists/PlaylistEditModal.vue:169
#: ./vue/station_playlists/PlaylistEditModal.vue:171
#: ./vue/station_streamers/StreamerEditModal.vue:144
msgid "Changes saved."
msgstr ""
@ -141,7 +142,7 @@ msgstr ""
#: ./vue/station_media/MediaMoveFilesModal.vue:34
#: ./vue/station_media/MediaNewDirectoryModal.vue:15
#: ./vue/station_media/MediaRenameModal.vue:16
#: ./vue/station_playlists/PlaylistEditModal.vue:17
#: ./vue/station_playlists/PlaylistEditModal.vue:18
#: ./vue/station_streamers/StreamerBroadcastsModal.vue:20
#: ./vue/station_streamers/StreamerEditModal.vue:15
msgid "Close"
@ -155,7 +156,7 @@ msgstr ""
msgid "Continuous Play"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:85
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:18
msgid "Control how this playlist is handled by the AutoDJ software."
msgstr ""
@ -197,7 +198,7 @@ msgstr ""
msgid "Custom Fields"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:214
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:188
msgid "Default"
msgstr ""
@ -281,7 +282,7 @@ msgstr ""
msgid "Edit Media"
msgstr ""
#: ./vue/station_playlists/PlaylistEditModal.vue:54
#: ./vue/station_playlists/PlaylistEditModal.vue:56
msgid "Edit Playlist"
msgstr ""
@ -351,8 +352,8 @@ msgid "Full Volume"
msgstr ""
#: ./vue/StationPlaylists.vue:170
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:42
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:113
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:45
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:87
msgid "General Rotation"
msgstr ""
@ -360,11 +361,11 @@ msgstr ""
msgid "Hide Metadata from Listeners (\"Jingle Mode\")"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:216
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:190
msgid "High"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:19
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:20
msgid "Higher weight playlists are played more frequently compared to other lower-weight playlists."
msgstr ""
@ -372,11 +373,15 @@ msgstr ""
msgid "Home"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:119
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:9
msgid "If any of these options are enabled, this playlist will be managed directly via Liquidsoap instead of via AzuraCast. This can have unintended effects and should only be used when you are comfortable with the results."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:93
msgid "If auto-assignment is enabled, use this playlist as one of the targets for songs to be redistributed into. This will overwrite the existing contents of this playlist."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:29
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:31
msgid "If disabled, the playlist will not be included in radio playback, but can still be managed."
msgstr ""
@ -396,7 +401,7 @@ msgstr ""
msgid "If the end time is before the start time, the schedule entry will continue overnight."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:122
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:96
msgid "Include in Automated Assignment"
msgstr ""
@ -408,11 +413,11 @@ msgstr ""
msgid "International Standard Recording Code, used for licensing reports."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:95
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:23
msgid "Interrupt other songs to play at scheduled time."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:32
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:34
msgid "Is Enabled"
msgstr ""
@ -424,7 +429,7 @@ msgstr ""
msgid "Jingle Mode"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:74
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:77
msgid "Learn about Advanced Playlists"
msgstr ""
@ -446,15 +451,15 @@ msgstr ""
msgid "Loading..."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:212
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:186
msgid "Low"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:72
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:75
msgid "Manually define how this playlist is used in Liquidsoap configuration."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:104
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:32
msgid "Merge playlist to play as a single track."
msgstr ""
@ -470,7 +475,7 @@ msgstr ""
msgid "Microphone Source"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:185
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:159
msgid "Minute of Hour to Play"
msgstr ""
@ -553,11 +558,11 @@ msgstr ""
msgid "Notes"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:161
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:135
msgid "Number of Minutes Between Plays"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:137
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:111
msgid "Number of Songs Between Plays"
msgstr ""
@ -569,8 +574,8 @@ msgstr ""
msgid "Once per %{songs} Songs"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:62
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:179
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:65
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:153
msgid "Once per Hour"
msgstr ""
@ -578,21 +583,21 @@ msgstr ""
msgid "Once per Hour (at %{minute})"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:55
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:155
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:58
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:129
msgid "Once per x Minutes"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:48
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:131
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:51
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:105
msgid "Once per x Songs"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:98
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:26
msgid "Only loop through playlist once."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:101
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:29
msgid "Only play one track at scheduled time."
msgstr ""
@ -609,15 +614,15 @@ msgstr ""
msgid "Play"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:58
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:61
msgid "Play exactly once every <i>x</i> minutes."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:51
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:54
msgid "Play exactly once every <i>x</i> songs."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:65
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:68
msgid "Play once per hour at the specified minute."
msgstr ""
@ -645,11 +650,11 @@ msgstr ""
msgid "Playlist order set."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:37
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:40
msgid "Playlist Type"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:16
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:17
msgid "Playlist Weight"
msgstr ""
@ -750,7 +755,7 @@ msgid "Save"
msgstr ""
#: ./vue/station_media/MediaEditModal.vue:19
#: ./vue/station_playlists/PlaylistEditModal.vue:20
#: ./vue/station_playlists/PlaylistEditModal.vue:21
#: ./vue/station_streamers/StreamerEditModal.vue:18
msgid "Save Changes"
msgstr ""
@ -886,11 +891,11 @@ msgstr ""
msgid "Source"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:188
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:162
msgid "Specify the minute of every hour that this playlist should play."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:44
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:47
msgid "Standard playlist, shuffles with other standard playlists based on weight."
msgstr ""
@ -979,18 +984,14 @@ msgstr ""
msgid "The volume in decibels to amplify the track with. Leave blank to use the system default."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:90
msgid "These functions are internal to Liquidsoap and will affect how your AutoDJ works."
msgstr ""
#: ./vue/station_media/MediaNewDirectoryModal.vue:9
#: ./vue/station_media/MediaRenameModal.vue:10
#: ./vue/station_media/form/MediaFormBasicInfo.vue:14
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:11
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:24
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:146
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:170
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:194
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:25
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:120
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:144
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:168
#: ./vue/station_playlists/form/PlaylistFormSchedule.vue:38
#: ./vue/station_playlists/form/PlaylistFormSchedule.vue:51
#: ./vue/station_playlists/form/PlaylistFormSchedule.vue:74
@ -1016,11 +1017,11 @@ msgstr ""
msgid "This playlist currently has no scheduled times. It will play at all times. To add a new scheduled time, click the button below."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:164
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:138
msgid "This playlist will play every $x minutes, where $x is specified below."
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:140
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:114
msgid "This playlist will play every $x songs, where $x is specified below."
msgstr ""
@ -1098,7 +1099,7 @@ msgstr ""
msgid "Volume"
msgstr ""
#: ./vue/station_playlists/form/PlaylistFormBasicInfo.vue:88
#: ./vue/station_playlists/form/PlaylistFormAdvanced.vue:6
msgid "Warning"
msgstr ""

View File

@ -51,7 +51,7 @@
"dist/material.js": "dist/material-df68dbf23f.js",
"dist/radio_player.js": "dist/radio_player-f88abea4e8.js",
"dist/station_media.js": "dist/station_media-539908ba2c.js",
"dist/station_playlists.js": "dist/station_playlists-51c13da9b8.js",
"dist/station_playlists.js": "dist/station_playlists-67405e62ad.js",
"dist/station_streamers.js": "dist/station_streamers-957ceccb35.js",
"dist/vue_gettext.js": "dist/vue_gettext-5797c82c60.js",
"dist/webcaster.js": "dist/webcaster-23f4c0f3cf.js",

File diff suppressed because one or more lines are too long