Simplify form-row uses and remove "lang" from wrapped form groups.

This commit is contained in:
Buster Neece 2022-12-20 20:36:02 -06:00
parent 2f2a8fcdf7
commit 250dafcbb1
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
63 changed files with 696 additions and 672 deletions

View File

@ -1,6 +1,6 @@
<template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_name" :field="form.name">
<template #label>
{{ $gettext('Name') }}
@ -12,7 +12,7 @@
{{ $gettext('E-mail Address') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
@ -20,7 +20,7 @@
{{ $gettext('Customization') }}
</template>
<b-form-row>
<div class="form-row">
<b-col md="6">
<b-wrapped-form-group id="edit_form_locale"
:field="form.locale">
@ -59,7 +59,7 @@
</template>
</b-wrapped-form-group>
</b-col>
</b-form-row>
</div>
</b-form-fieldset>
</template>

View File

@ -2,24 +2,26 @@
<modal-form ref="modal" size="lg" :title="langTitle" :loading="loading" :disable-save-button="v$.form.$invalid"
@submit="submit" @hidden="clearContents">
<b-form-fieldset>
<b-form-row class="mb-3">
<div class="form-row mb-3">
<b-wrapped-form-checkbox class="col-md-12" id="form_edit_backup_enabled"
:field="v$.form.backup_enabled">
<template #label="{lang}">
<template #label>
{{ $gettext('Run Automatic Nightly Backups') }}
</template>
<template #description="{lang}">
{{ $gettext('Enable to have AzuraCast automatically run nightly backups at the time specified.') }}
<template #description>
{{
$gettext('Enable to have AzuraCast automatically run nightly backups at the time specified.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
<b-form-row v-if="v$.form.backup_enabled.$model">
<div class="form-row" v-if="v$.form.backup_enabled.$model">
<b-wrapped-form-group class="col-md-6" id="form_backup_time_code" :field="v$.form.backup_time_code">
<template #label="{lang}">
<template #label>
{{ $gettext('Scheduled Backup Time') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('If the end time is before the start time, the playlist will play overnight.') }}
</template>
<template #default="props">
@ -29,27 +31,31 @@
<b-wrapped-form-checkbox class="col-md-6" id="form_edit_exclude_media"
:field="v$.form.backup_exclude_media">
<template #label="{lang}">
<template #label>
{{ $gettext('Exclude Media from Backup') }}
</template>
<template #description="{lang}">
{{ $gettext('Excluding media from automated backups will save space, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.') }}
<template #description>
{{
$gettext('Excluding media from automated backups will save space, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.')
}}
</template>
</b-wrapped-form-checkbox>
<b-wrapped-form-group class="col-md-6" id="form_backup_keep_copies" :field="v$.form.backup_keep_copies"
input-type="number" :input-attrs="{min: '0', max: '365'}">
<template #label="{lang}">
<template #label>
{{ $gettext('Number of Backup Copies to Keep') }}
</template>
<template #description="{lang}">
{{ $gettext('Copies older than the specified number of days will automatically be deleted. Set to zero to disable automatic deletion.') }}
<template #description>
{{
$gettext('Copies older than the specified number of days will automatically be deleted. Set to zero to disable automatic deletion.')
}}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_backup_storage_location"
:field="v$.form.backup_storage_location">
<template #label="{lang}">
<template #label>
{{ $gettext('Storage Location') }}
</template>
<template #default="props">
@ -59,7 +65,7 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_backup_format" :field="v$.form.backup_format">
<template #label="{lang}">
<template #label>
{{ $gettext('Backup Format') }}
</template>
<template #default="props">
@ -67,7 +73,7 @@
:options="formatOptions"></b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
</modal-form>
</template>

View File

@ -6,10 +6,10 @@
<b-form v-if="logUrl === null" class="form vue-form" @submit.prevent="submit">
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_storage_location"
:field="v$.form.storage_location">
<template #label="{lang}">
<template #label>
{{ $gettext('Storage Location') }}
</template>
<template #default="props">
@ -20,11 +20,13 @@
<b-wrapped-form-group class="col-md-12" id="edit_form_path"
:field="v$.form.path">
<template #label="{lang}">
<template #label>
{{ $gettext('File Name') }}
</template>
<template #description="{lang}">
{{ $gettext('This will be the file name for your backup, include the extension for file type you wish to use.') }}
<template #description>
{{
$gettext('This will be the file name for your backup, include the extension for file type you wish to use.')
}}
<br>
<strong>
{{ $gettext('Supported file formats:') }}
@ -43,14 +45,16 @@
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_exclude_media"
:field="v$.form.exclude_media">
<template #label="{lang}">
<template #label>
{{ $gettext('Exclude Media from Backup') }}
</template>
<template #description="{lang}">
{{ $gettext('This will produce a significantly smaller backup, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.') }}
<template #description>
{{
$gettext('This will produce a significantly smaller backup, but you should make sure to back up your media elsewhere. Note that only locally stored media will be backed up.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
<invisible-submit-button/>

View File

@ -12,13 +12,13 @@
<b-overlay variant="card" :show="loading">
<div class="card-body">
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_public_theme"
:field="v$.form.public_theme">
<template #label="{lang}">
<template #label>
{{ $gettext('Base Theme for Public Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Select a theme to use as a base for station public pages and the login page.')
}}
@ -33,10 +33,10 @@
<b-col md="6">
<b-wrapped-form-checkbox class="mb-2" id="form_edit_hide_album_art"
:field="v$.form.hide_album_art">
<template #label="{lang}">
<template #label>
{{ $gettext('Hide Album Art on Public Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If selected, album art will not display on public-facing radio pages.')
}}
@ -45,10 +45,10 @@
<b-wrapped-form-checkbox id="form_edit_hide_product_name"
:field="v$.form.hide_product_name">
<template #label="{lang}">
<template #label>
{{ $gettext('Hide AzuraCast Branding on Public Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If selected, this will remove the AzuraCast branding from public-facing pages.')
}}
@ -58,10 +58,10 @@
<b-wrapped-form-group class="col-md-6" id="form_edit_homepage_redirect_url"
:field="v$.form.homepage_redirect_url">
<template #label="{lang}">
<template #label>
{{ $gettext('Homepage Redirect URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If a visitor is not signed in and visits the AzuraCast homepage, you can automatically redirect them to the URL specified here. Leave blank to redirect them to the login screen by default.')
}}
@ -70,10 +70,10 @@
<b-wrapped-form-group class="col-md-6" id="form_edit_default_album_art_url"
:field="v$.form.default_album_art_url">
<template #label="{lang}">
<template #label>
{{ $gettext('Default Album Art URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If a song has no album art, this URL will be listed instead. Leave blank to use the standard placeholder art.')
}}
@ -82,10 +82,10 @@
<b-wrapped-form-group class="col-md-12" id="edit_form_public_custom_css"
:field="v$.form.public_custom_css">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom CSS for Public Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This CSS will be applied to the station public pages and login page.')
}}
@ -98,10 +98,10 @@
<b-wrapped-form-group class="col-md-12" id="edit_form_public_custom_js"
:field="v$.form.public_custom_js">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom JS for Public Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This javascript code will be applied to the station public pages and login page.')
}}
@ -114,10 +114,10 @@
<b-wrapped-form-group class="col-md-12" id="edit_form_internal_custom_css"
:field="v$.form.internal_custom_css">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom CSS for Internal Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This CSS will be applied to the main management pages, like this one.')
}}
@ -127,7 +127,7 @@
v-model="props.field.$model"></codemirror-textarea>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
<b-button size="lg" type="submit" class="mt-3" variant="primary">
{{ $gettext('Save Changes') }}

View File

@ -1,11 +1,11 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('Field Name') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This will be used as the label when editing individual songs, and will show in API results.')
}}
@ -13,10 +13,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_short_name" :field="form.short_name">
<template #label="{lang}">
<template #label>
{{ $gettext('Programmatic Name') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Optionally specify an API-friendly name, such as "field_name". Leave this field blank to automatically create one based on the name.')
}}
@ -24,10 +24,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_auto_assign" :field="form.auto_assign">
<template #label="{lang}">
<template #label>
{{ $gettext('Automatically Set from ID3v2 Value') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Optionally select an ID3v2 metadata field that, if present, will be used to set this field\'s value.')
}}
@ -37,7 +37,7 @@
:options="autoAssignOptions"></b-form-select>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -14,7 +14,7 @@
<div class="card-body">
<b-overlay variant="card" :show="loading">
<b-form-row>
<div class="form-row">
<div class="col-md-7">
<fieldset>
<legend>{{ $gettext('Instructions') }}</legend>
@ -80,7 +80,7 @@
</div>
</form>
</div>
</b-form-row>
</div>
</b-overlay>
</div>
</div>

View File

@ -1,20 +1,22 @@
<template>
<b-tab :title="langTabTitle" active>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('Role Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="edit_form_global_permissions"
:field="form.permissions.global">
<template #label="{lang}">
<template #label>
{{ $gettext('Global Permissions') }}
</template>
<template #description="{lang}">
{{ $gettext('Users with this role will have these permissions across the entire installation.') }}
<template #description>
{{
$gettext('Users with this role will have these permissions across the entire installation.')
}}
</template>
<template #default="props">
<b-form-checkbox-group :id="props.id" :options="globalPermissionOptions"
@ -22,7 +24,7 @@
</b-form-checkbox-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -15,14 +15,14 @@
</div>
<b-card-body>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12"
:id="'edit_form_station_permissions_'+row.station_id"
:field="v$.row.permissions">
<template #label="{lang}">
<template #label>
{{ $gettext('Station Permissions') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Users with this role will have these permissions for this single station.') }}
</template>
<template #default="props">
@ -31,7 +31,7 @@
</b-form-checkbox-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-card-body>
</b-card>

View File

@ -1,12 +1,12 @@
<template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_base_url" :field="form.base_url" input-type="url">
<template #label="{lang}">
<template #label>
{{ $gettext('Site Base URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The base URL where this service is located. Use either the external IP address or fully-qualified domain name (if one exists) pointing to this server.')
}}
@ -14,10 +14,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_instance_name" :field="form.instance_name">
<template #label="{lang}">
<template #label>
{{ $gettext('AzuraCast Instance Name') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This name will appear as a sub-header next to the AzuraCast logo, to help identify this server.')
}}
@ -26,10 +26,10 @@
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_prefer_browser_url"
:field="form.prefer_browser_url">
<template #label="{lang}">
<template #label>
{{ $gettext('Prefer Browser URL (If Available)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If this setting is set to "Yes", the browser URL will be used instead of the base URL when it\'s available. Set to "No" to always use the base URL.')
}}
@ -38,10 +38,10 @@
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_use_radio_proxy"
:field="form.use_radio_proxy">
<template #label="{lang}">
<template #label>
{{ $gettext('Use Web Proxy for Radio') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('By default, radio stations broadcast on their own ports (i.e. 8000). If you\'re using a service like CloudFlare or accessing your radio station by SSL, you should enable this feature, which routes all radio through the web ports (80 and 443).')
}}
@ -49,10 +49,10 @@
</b-wrapped-form-checkbox>
<b-wrapped-form-group class="col-md-6" id="edit_form_history_keep_days" :field="form.history_keep_days">
<template #label="{lang}">
<template #label>
{{ $gettext('Days of Playback History to Keep') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Set longer to preserve more playback history and listener metadata for stations. Set shorter to save disk space.')
}}
@ -65,10 +65,10 @@
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_enable_static_nowplaying"
:field="form.enable_static_nowplaying">
<template #label="{lang}">
<template #label>
{{ $gettext('Use High-Performance Now Playing Updates') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Uses either Websockets, Server-Sent Events (SSE) or static JSON files to serve Now Playing data on public pages. This improves performance, especially with large listener volume. Disable this if you are encountering problems with the service or use multiple URLs to serve your public pages.')
}}
@ -77,17 +77,17 @@
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_enable_advanced_features"
:field="form.enable_advanced_features">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable Advanced Features') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Enable certain advanced features in the web interface, including advanced playlist configuration, station port assignment, changing base media directories and other functionality that should only be used by users who are comfortable with advanced functionality.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
</template>

View File

@ -4,12 +4,12 @@
{{ $gettext('Privacy') }}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_analytics" :field="form.analytics">
<template #label="{lang}">
<template #label>
{{ $gettext('Listener Analytics Collection') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Aggregate listener statistics are used to show station reports across the system. IP-based listener statistics are used to view live listener tracking and may be required for royalty reports.')
}}
@ -37,7 +37,7 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
@ -45,13 +45,13 @@
{{ $gettext('Security') }}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_always_use_ssl"
:field="form.always_use_ssl">
<template #label="{lang}">
<template #label>
{{ $gettext('Always Use HTTPS') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Set to "Yes" to always use "https://" secure URLs, and to automatically redirect to the secure URL when an insecure URL is visited.')
}}
@ -60,10 +60,10 @@
<b-wrapped-form-group class="col-md-12" id="edit_form_api_access_control"
:field="form.api_access_control">
<template #label="{lang}">
<template #label>
{{ $gettext('API "Access-Control-Allow-Origin" Header') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Set to * to allow all sources, or specify a list of origins separated by a comma (,).')
}}
@ -74,7 +74,7 @@
</a>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
</template>

View File

@ -4,12 +4,12 @@
{{ $gettext('AzuraCast Update Checks') }}
</template>
<b-form-row>
<div class="form-row">
<b-form-markup class="col-md-6" id="form_release_channel">
<template #label="{lang}">
<template #label>
{{ $gettext('Release Channel') }}
</template>
<template #description="{lang}">
<template #description>
<a href="https://docs.azuracast.com/en/getting-started/updates/release-channels"
target="_blank">
{{ $gettext('Learn more about release channels in the AzuraCast docs.') }}
@ -23,14 +23,14 @@
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_check_for_updates"
:field="form.check_for_updates">
<template #label="{lang}">
<template #label>
{{ $gettext('Show Update Announcements') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Show new releases within your update channel on the AzuraCast homepage.') }}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
@ -43,13 +43,13 @@
}}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_acme_domains"
:field="form.acme_domains">
<template #label="{lang}">
<template #label>
{{ $gettext('Domain Name(s)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('All listed domain names should point to this AzuraCast installation. Separate multiple domain names with commas.')
}}
@ -58,10 +58,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_acme_email"
:field="form.acme_email" input-type="email">
<template #label="{lang}">
<template #label>
{{ $gettext('E-mail Address (Optional)') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Enter your e-mail address to receive updates about your certificate.') }}
</template>
</b-wrapped-form-group>
@ -75,7 +75,7 @@
</span>
</b-button>
</div>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
@ -86,64 +86,64 @@
{{ $gettext('Used for "Forgot Password" functionality, web hooks and other functions.') }}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_mail_enabled"
:field="form.mail_enabled">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable Mail Delivery') }}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
<b-form-row v-if="form.mail_enabled.$model" class="mt-2">
<div class="form-row mt-2" v-if="form.mail_enabled.$model">
<b-wrapped-form-group class="col-md-6" id="edit_form_mail_sender_name"
:field="form.mail_sender_name">
<template #label="{lang}">
<template #label>
{{ $gettext('Sender Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_mail_sender_email"
:field="form.mail_sender_email" input-type="email">
<template #label="{lang}">
<template #label>
{{ $gettext('Sender E-mail Address') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-4" id="edit_form_mail_smtp_host"
:field="form.mail_smtp_host">
<template #label="{lang}">
<template #label>
{{ $gettext('SMTP Host') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-3" id="edit_form_mail_smtp_port"
:field="form.mail_smtp_port" input-type="number">
<template #label="{lang}">
<template #label>
{{ $gettext('SMTP Port') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-checkbox class="col-md-5" id="edit_form_mail_smtp_secure"
:field="form.mail_smtp_secure">
<template #label="{lang}">
<template #label>
{{ $gettext('Use Secure (TLS) SMTP Connection') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Usually enabled for port 465, disabled for ports 587 or 25.') }}
</template>
</b-wrapped-form-checkbox>
<b-wrapped-form-group class="col-md-6" id="edit_form_mail_smtp_username"
:field="form.mail_smtp_username">
<template #label="{lang}">
<template #label>
{{ $gettext('SMTP Username') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_mail_smtp_password"
:field="form.mail_smtp_password" input-type="password">
<template #label="{lang}">
<template #label>
{{ $gettext('SMTP Password') }}
</template>
</b-wrapped-form-group>
@ -157,7 +157,7 @@
</span>
</b-button>
</div>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
@ -165,9 +165,9 @@
{{ $gettext('Avatar Service') }}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_avatar_service" :field="form.avatar_service">
<template #label="{lang}">
<template #label>
{{ $gettext('Avatar Service') }}
</template>
<template #default="props">
@ -178,11 +178,11 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_avatar_default_url"
:field="form.avatar_default_url">
<template #label="{lang}">
<template #label>
{{ $gettext('Default Avatar URL') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
@ -190,26 +190,26 @@
{{ $gettext('Album Art') }}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-6" id="use_external_album_art_in_apis"
:field="form.use_external_album_art_in_apis">
<template #label="{lang}">
<template #label>
{{ $gettext('Check Web Services for Album Art for "Now Playing" Tracks') }}
</template>
</b-wrapped-form-checkbox>
<b-wrapped-form-checkbox class="col-md-6" id="use_external_album_art_when_processing_media"
:field="form.use_external_album_art_when_processing_media">
<template #label="{lang}">
<template #label>
{{ $gettext('Check Web Services for Album Art When Uploading Media') }}
</template>
</b-wrapped-form-checkbox>
<b-wrapped-form-group class="col-md-12" id="edit_form_last_fm_api_key" :field="form.last_fm_api_key">
<template #label="{lang}">
<template #label>
{{ $gettext('Last.fm API Key') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('This service can provide album art for tracks where none is available locally.') }}
<br>
<a href="https://www.last.fm/api/account/create" target="_blank">
@ -217,7 +217,7 @@
</a>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<streaming-log-modal ref="acmeModal"></streaming-log-modal>

View File

@ -2,7 +2,7 @@
<b-modal id="send_test_message" centered ref="modal" :title="langTitle">
<b-form @submit.prevent="doSendTest">
<b-wrapped-form-group id="email_address" :field="v$.emailAddress" autofocus>
<template #label="{lang}">
<template #label>
{{ $gettext('E-mail Address') }}
</template>
</b-wrapped-form-group>

View File

@ -8,7 +8,8 @@
<div class="card-body">
<b-overlay variant="card" :show="loading">
<b-form-row>
<div class="form-row">
<div class="col-md-7">
<fieldset>
<legend>
@ -63,7 +64,7 @@
<flow-upload :target-url="apiUrl" @complete="relist"></flow-upload>
</div>
</b-form-row>
</div>
</b-overlay>
</div>
</div>

View File

@ -1,20 +1,20 @@
<template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('New Station Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="edit_form_description" :field="form.description"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('New Station Description') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="edit_form_clone" :field="form.clone">
<template #label="{lang}">
<template #label>
{{ $gettext('Copy to New Station') }}
</template>
<template #default="props">
@ -26,7 +26,7 @@
></b-form-checkbox-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</template>
<script>

View File

@ -1,36 +1,36 @@
<template>
<b-form-group>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_is_enabled" :field="form.is_enabled">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable Broadcasting') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('If disabled, the station will not broadcast or shuffle its AutoDJ.') }}
</template>
</b-wrapped-form-checkbox>
<b-wrapped-form-group v-if="showAdvanced" class="col-md-6" id="edit_form_radio_base_dir"
:field="form.radio_base_dir" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Base Station Directory') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The parent directory where station playlist and configuration files are stored. Leave blank to use default directory.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
<b-overlay variant="card" :show="storageLocationsLoading">
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_media_storage_location"
:field="form.media_storage_location">
<template #label="{lang}">
<template #label>
{{ $gettext('Media Storage Location') }}
</template>
<template #default="props">
@ -41,7 +41,7 @@
<b-wrapped-form-group class="col-md-12" id="edit_form_recordings_storage_location"
:field="form.recordings_storage_location">
<template #label="{lang}">
<template #label>
{{ $gettext('Live Recordings Storage Location') }}
</template>
<template #default="props">
@ -52,7 +52,7 @@
<b-wrapped-form-group class="col-md-12" id="edit_form_podcasts_storage_location"
:field="form.podcasts_storage_location">
<template #label="{lang}">
<template #label>
{{ $gettext('Podcasts Storage Location') }}
</template>
<template #default="props">
@ -60,7 +60,7 @@
:options="storageLocationOptions.podcasts_storage_location"></b-form-select>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-overlay>
</b-form-fieldset>
</b-form-group>

View File

@ -1,12 +1,12 @@
<template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_backend_type"
:field="form.backend_type">
<template #label="{lang}">
<template #label>
{{ $gettext('AutoDJ Service') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This software shuffles from playlists of music constantly and plays when no other radio source is available.')
}}
@ -17,18 +17,18 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="isBackendEnabled">
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-7" id="edit_form_backend_crossfade_type"
:field="form.backend_config.crossfade_type">
<template #label="{lang}">
<template #label>
{{ $gettext('Crossfade Method') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Choose a method to use when transitioning from one song to another. Smart Mode considers the volume of the two tracks when fading for a smoother effect, but requires more CPU resources.')
}}
@ -43,21 +43,21 @@
<b-wrapped-form-group class="col-md-5" id="edit_form_backend_crossfade"
:field="form.backend_config.crossfade" input-type="number"
:input-attrs="{ min: '0.0', max: '30.0', step: '0.1' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Crossfade Duration (Seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Number of seconds to overlap songs.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
<b-form-row>
</div>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_backend_config_audio_processing_method"
:field="form.backend_config.audio_processing_method">
<template #label="{lang}">
<template #label>
{{ $gettext('Audio Processing Method') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Choose a method to use for processing audio which produces a more uniform and "full" sound for your station.')
}}
@ -68,7 +68,7 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="isStereoToolEnabled && isStereoToolInstalled">
@ -85,13 +85,13 @@
</template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-7" id="edit_form_backend_stereo_tool_license_key"
:field="form.backend_config.stereo_tool_license_key" input-type="text">
<template #label="{lang}">
<template #label>
{{ $gettext('Stereo Tool License Key') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Provide a valid license key from Thimeo. Functionality is limited without a license key.')
}}
@ -99,7 +99,7 @@
</b-wrapped-form-group>
<b-form-markup class="col-md-5" id="edit_form_backend_stereo_tool_config">
<template #label="{lang}">
<template #label>
{{ $gettext('Upload Stereo Tool Configuration') }}
</template>
@ -109,7 +109,7 @@
}}
</p>
</b-form-markup>
</b-form-row>
</div>
</b-form-fieldset>
</b-form-fieldset>
@ -118,14 +118,14 @@
{{ $gettext('Advanced Configuration') }}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-6"
id="edit_form_backend_use_manual_autodj"
:field="form.backend_config.use_manual_autodj" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Manual AutoDJ Mode') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This mode disables AzuraCast\'s AutoDJ management, using Liquidsoap itself to manage song playback. "Next Song" and some other features will not be available.')
}}
@ -135,10 +135,10 @@
<b-wrapped-form-checkbox class="col-md-6"
id="edit_form_backend_enable_replaygain_metadata"
:field="form.backend_config.enable_replaygain_metadata" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Use Replaygain Metadata') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Instruct Liquidsoap to use any replaygain metadata associated with a song to control its volume level. This may increase CPU consumption.')
}}
@ -148,10 +148,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_telnet_port"
:field="form.backend_config.telnet_port" input-type="number"
:input-attrs="{ min: '0' }" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Customize Internal Request Processing Port') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This port is not used by any external process. Only modify this port if the assigned port is in use. Leave blank to automatically assign a port.')
}}
@ -161,10 +161,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_autodj_queue_length"
:field="form.backend_config.autodj_queue_length" input-type="number"
:input-attrs="{ min: '2', max: '25' }" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('AutoDJ Queue Length') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This determines how many songs in advance the AutoDJ will automatically fill the queue.')
}}
@ -173,10 +173,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_charset"
:field="form.backend_config.charset" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Character Set Encoding') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('For most cases, use the default UTF-8 encoding. The older ISO-8859-1 encoding can be used if accepting connections from Shoutcast 1 DJs or using other legacy software.')
}}
@ -190,10 +190,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_performance_mode"
:field="form.backend_config.performance_mode" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Liquidsoap Performance Tuning') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If your installation is constrained by CPU or memory, you can change this setting to tune the resources used by Liquidsoap.')
}}
@ -208,16 +208,16 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_duplicate_prevention_time_range"
:field="form.backend_config.duplicate_prevention_time_range"
input-type="number" :input-attrs="{ min: '0', max: '1440' }" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Duplicate Prevention Time Range (Minutes)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This specifies the time range (in minutes) of the song history that the duplicate song prevention algorithm should take into account.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
</b-form-fieldset>
</template>

View File

@ -1,12 +1,12 @@
<template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_frontend_type"
:field="form.frontend_type">
<template #label="{lang}">
<template #label>
{{ $gettext('Broadcasting Service') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('This software delivers your broadcast to the listening audience.') }}
</template>
<template #default="props">
@ -15,46 +15,46 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="isLocalFrontend">
<b-form-fieldset v-if="isShoutcastFrontend">
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_frontend_sc_license_id"
:field="form.frontend_config.sc_license_id">
<template #label="{lang}">
<template #label>
{{ $gettext('Shoutcast License ID') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_frontend_sc_user_id"
:field="form.frontend_config.sc_user_id">
<template #label="{lang}">
<template #label>
{{ $gettext('Shoutcast User ID') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_frontend_source_pw"
:field="form.frontend_config.source_pw">
<template #label="{lang}">
<template #label>
{{ $gettext('Customize Source Password') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Leave blank to automatically generate a new password.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_frontend_admin_pw"
:field="form.frontend_config.admin_pw">
<template #label="{lang}">
<template #label>
{{ $gettext('Customize Administrator Password') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Leave blank to automatically generate a new password.') }}
</template>
</b-wrapped-form-group>
@ -62,10 +62,10 @@
<b-wrapped-form-group v-if="showAdvanced" class="col-md-6" id="edit_form_frontend_port"
:field="form.frontend_config.port" input-type="number"
:input-attrs="{min: '0'}" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Customize Broadcasting Port') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('No other program can be using this port. Leave blank to automatically assign a port.')
}}
@ -74,28 +74,28 @@
<b-wrapped-form-group v-if="showAdvanced" class="col-md-6" id="edit_form_max_listeners"
:field="form.frontend_config.max_listeners" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Maximum Listeners') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Maximum number of total listeners across all streams. Leave blank to use the default.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="showAdvanced">
<b-form-row>
<div class="form-row">
<b-col md="5">
<b-wrapped-form-group id="edit_form_frontend_banned_ips"
:field="form.frontend_config.banned_ips" input-type="textarea"
:input-attrs="{class: 'text-preformatted'}" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Banned IP Addresses') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('List one IP address or group (in CIDR format) per line.') }}
</template>
</b-wrapped-form-group>
@ -103,10 +103,10 @@
<b-wrapped-form-group id="edit_form_frontend_allowed_ips"
:field="form.frontend_config.allowed_ips" input-type="textarea"
:input-attrs="{class: 'text-preformatted'}" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Allowed IP Addresses') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('List one IP address or group (in CIDR format) per line.') }}
</template>
</b-wrapped-form-group>
@ -114,10 +114,10 @@
<b-wrapped-form-group id="edit_form_frontend_banned_user_agents"
:field="form.frontend_config.banned_user_agents" input-type="textarea"
:input-attrs="{class: 'text-preformatted'}" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Banned User Agents') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('List one user agent per line. Wildcards (*) are allowed.') }}
</template>
</b-wrapped-form-group>
@ -126,10 +126,10 @@
<b-wrapped-form-group class="col-md-7" id="edit_form_frontend_banned_countries"
:field="form.frontend_config.banned_countries"
advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Banned Countries') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Select the countries that are not allowed to connect to the streams.') }}
</template>
<template #default="props">
@ -142,7 +142,7 @@
</b-button>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="showAdvanced">
@ -157,16 +157,16 @@
</ul>
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_frontend_custom_config"
:field="form.frontend_config.custom_config" input-type="textarea"
:input-attrs="{class: 'text-preformatted', spellcheck: 'false', 'max-rows': 25, rows: 5}"
advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Custom Configuration') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
</b-form-fieldset>
</template>

View File

@ -11,41 +11,41 @@
</template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_enable_hls"
:field="form.enable_hls">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable HTTP Live Streaming (HLS)') }}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="form.enable_hls.$model">
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_backend_hls_enable_on_public_player"
:field="form.backend_config.hls_enable_on_public_player">
<template #label="{lang}">
<template #label>
{{ $gettext('Show HLS Stream on Public Player') }}
</template>
</b-wrapped-form-checkbox>
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_backend_hls_is_default"
:field="form.backend_config.hls_is_default">
<template #label="{lang}">
<template #label>
{{ $gettext('Make HLS Stream Default in Public Player') }}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="showAdvanced && form.enable_hls.$model">
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-4"
id="edit_form_backend_hls_segment_length"
:field="form.backend_config.hls_segment_length" input-type="number"
:input-attrs="{ min: '0', max: '60' }" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Segment Length (Seconds)') }}
</template>
</b-wrapped-form-group>
@ -54,7 +54,7 @@
id="edit_form_backend_hls_segments_in_playlist"
:field="form.backend_config.hls_segments_in_playlist" input-type="number"
:input-attrs="{ min: '0', max: '60' }" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Segments in Playlist') }}
</template>
</b-wrapped-form-group>
@ -63,11 +63,11 @@
id="edit_form_backend_hls_segments_overhead"
:field="form.backend_config.hls_segments_overhead" input-type="number"
:input-attrs="{ min: '0', max: '60' }" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Segments Overhead') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
</b-form-fieldset>
</b-form-fieldset>

View File

@ -1,30 +1,30 @@
<template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="edit_form_description" :field="form.description"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Description') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_genre" :field="form.genre">
<template #label="{lang}">
<template #label>
{{ $gettext('Genre') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_url" :field="form.url" input-type="url">
<template #label="{lang}">
<template #label>
{{ $gettext('Web Site URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Note: This should be the public-facing homepage of the radio station, not the AzuraCast URL. It will be included in broadcast details.')
}}
@ -32,10 +32,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="edit_form_timezone" :field="form.timezone">
<template #label="{lang}">
<template #label>
{{ $gettext('Time Zone') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Scheduled playlists and other timed items will be controlled by this time zone.')
}}
@ -48,10 +48,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_default_album_art_url"
:field="form.default_album_art_url">
<template #label="{lang}">
<template #label>
{{ $gettext('Default Album Art URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If a song has no album art, this URL will be listed instead. Leave blank to use the standard placeholder art.')
}}
@ -60,10 +60,10 @@
<b-wrapped-form-group v-if="showAdvanced" class="col-md-6" id="edit_form_short_name"
:field="form.short_name" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('URL Stub') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Optionally specify a short URL-friendly name, such as "my_station_name", that will be used in this station\'s URLs. Leave this field blank to automatically create one based on the station name.')
}}
@ -72,10 +72,10 @@
<b-wrapped-form-group v-if="showAdvanced" class="col-md-6" id="edit_form_api_history_items"
:field="form.api_history_items" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Number of Visible Recent Songs') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Customize the number of songs that will appear in the "Song History" section for this station and in all public APIs.')
}}
@ -85,7 +85,7 @@
:options="historyItemsOptions"></b-form-select>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
@ -93,17 +93,17 @@
{{ $gettext('Public Pages') }}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_enable_public_page"
:field="form.enable_public_page">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable Public Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Show the station in public pages and general API results.') }}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
@ -111,13 +111,13 @@
{{ $gettext('On-Demand Streaming') }}
</template>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_enable_on_demand"
:field="form.enable_on_demand">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable On-Demand Streaming') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If enabled, music from playlists with on-demand streaming enabled will be available to stream via a specialized public page.')
}}
@ -127,16 +127,16 @@
<b-wrapped-form-checkbox v-if="form.enable_on_demand.$model" class="col-md-12"
id="edit_form_enable_on_demand_download"
:field="form.enable_on_demand_download">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable Downloads on On-Demand Page') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If enabled, a download button will also be present on the public "On-Demand" page.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
</template>

View File

@ -11,30 +11,30 @@
</template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_enable_requests"
:field="form.enable_requests">
<template #label="{lang}">
<template #label>
{{ $gettext('Allow Song Requests') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Enable listeners to request a song for play on your station. Only songs that are already in your playlists are requestable.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="form.enable_requests.$model">
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_request_delay"
:field="form.request_delay" input-type="number"
:input-attrs="{ min: '0', max: '1440' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Request Minimum Delay (Minutes)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If requests are enabled, this specifies the minimum delay (in minutes) between a request being submitted and being played. If set to zero, a minor delay of 15 seconds is applied to prevent request floods.')
}}
@ -44,16 +44,16 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_request_threshold"
:field="form.request_threshold" input-type="number"
:input-attrs="{ min: '0', max: '1440' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Request Last Played Threshold (Minutes)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This specifies the minimum time (in minutes) between a song playing on the radio and being available to request again. Set to 0 for no threshold.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
</b-form-fieldset>
</b-form-fieldset>

View File

@ -6,43 +6,43 @@
</template>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_enable_streamers"
:field="form.enable_streamers">
<template #label="{lang}">
<template #label>
{{ $gettext('Allow Streamers / DJs') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If enabled, streamers (or DJs) will be able to connect directly to your stream and broadcast live music that interrupts the AutoDJ stream.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="form.enable_streamers.$model">
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_backend_record_streams"
:field="form.backend_config.record_streams">
<template #label="{lang}">
<template #label>
{{ $gettext('Record Live Broadcasts') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If enabled, AzuraCast will automatically record any live broadcasts made to this station to per-broadcast recordings.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset v-if="form.backend_config.record_streams.$model">
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_record_streams_format"
:field="form.backend_config.record_streams_format">
<template #label="{lang}">
<template #label>
{{ $gettext('Live Broadcast Recording Format') }}
</template>
@ -55,7 +55,7 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_record_streams_bitrate"
:field="form.backend_config.record_streams_bitrate">
<template #label="{lang}">
<template #label>
{{ $gettext('Live Broadcast Recording Bitrate (kbps)') }}
</template>
@ -65,18 +65,18 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
<b-form-fieldset>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_disconnect_deactivate_streamer"
:field="form.disconnect_deactivate_streamer" input-type="number"
:input-attrs="{ min: '0' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Deactivate Streamer on Disconnect (Seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This is the number of seconds until a streamer who has been manually disconnected can reconnect to the stream. Set to 0 to allow the streamer to immediately reconnect.')
}}
@ -87,10 +87,10 @@
id="edit_form_backend_dj_port"
:field="form.backend_config.dj_port" input-type="number"
:input-attrs="{ min: '0' }" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Customize DJ/Streamer Port') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('No other program can be using this port. Leave blank to automatically assign a port.')
}}
@ -104,10 +104,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_dj_buffer"
:field="form.backend_config.dj_buffer" input-type="number"
:input-attrs="{ min: '0', max: '60' }">
<template #label="{lang}">
<template #label>
{{ $gettext('DJ/Streamer Buffer Time (Seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The number of seconds of signal to store in case of interruption. Set to the lowest value that your DJs can use without stream interruptions.')
}}
@ -117,16 +117,16 @@
<b-wrapped-form-group v-if="showAdvanced" class="col-md-6"
id="edit_form_backend_dj_mount_point"
:field="form.backend_config.dj_mount_point" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Customize DJ/Streamer Mount Point') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If your streaming software requires a specific mount point path, specify it here. Otherwise, use the default.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-fieldset>
</b-form-fieldset>
</b-form-fieldset>

View File

@ -8,7 +8,7 @@
<div class="card-body">
<b-overlay variant="card" :show="loading">
<b-form-row>
<div class="form-row">
<div class="col-md-7">
<fieldset>
<legend>
@ -71,7 +71,7 @@
<flow-upload :target-url="apiUrl" @complete="relist" @error="onError"></flow-upload>
</div>
</b-form-row>
</div>
</b-overlay>
</div>
</div>

View File

@ -1,8 +1,8 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_edit_adapter" :field="form.adapter">
<template #label="{lang}">
<template #label>
{{ $gettext('Storage Adapter') }}
</template>
<template #default="props">
@ -24,10 +24,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_path" :field="form.path">
<template #label="{lang}">
<template #label>
{{ $gettext('Path/Suffix') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('For local filesystems, this is the base path of the directory. For remote filesystems, this is the folder prefix.')
}}
@ -35,16 +35,16 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_storageQuota" :field="form.storageQuota">
<template #label="{lang}">
<template #label>
{{ $gettext('Storage Quota') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Set a maximum disk space that this storage location can use. Specify the size with unit, i.e. "8 GB". Units are measured in 1024 bytes. Leave blank to default to the available space on the disk.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
<b-card v-show="form.adapter.$model === 's3'" class="mb-3" no-body>
@ -55,45 +55,45 @@
</div>
<b-card-body>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_edit_s3CredentialKey"
:field="form.s3CredentialKey">
<template #label="{lang}">
<template #label>
{{ $gettext('Access Key ID') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_s3CredentialSecret"
:field="form.s3CredentialSecret">
<template #label="{lang}">
<template #label>
{{ $gettext('Secret Key') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_s3Endpoint" :field="form.s3Endpoint">
<template #label="{lang}">
<template #label>
{{ $gettext('Endpoint') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_s3Bucket" :field="form.s3Bucket">
<template #label="{lang}">
<template #label>
{{ $gettext('Bucket Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_s3Region" :field="form.s3Region">
<template #label="{lang}">
<template #label>
{{ $gettext('Region') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_s3Version" :field="form.s3Version">
<template #label="{lang}">
<template #label>
{{ $gettext('API Version') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-card-body>
</b-card>
@ -106,19 +106,19 @@
</div>
<b-card-body>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_edit_dropboxAuthToken"
:field="form.dropboxAuthToken">
<template #label="{lang}">
<template #label>
{{ $gettext('Dropbox Generated Access Token') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Note: Dropbox now only issues short-lived tokens that will not work for this purpose. If your token begins with "sl", it is short-lived and will not work correctly.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-card-body>
</b-card>
@ -131,10 +131,10 @@
</div>
<b-card-body>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12 col-lg-6" id="form_edit_sftpHost"
:field="form.sftpHost">
<template #label="{lang}">
<template #label>
{{ $gettext('SFTP Host') }}
</template>
</b-wrapped-form-group>
@ -142,39 +142,39 @@
<b-wrapped-form-group class="col-md-12 col-lg-6" id="form_edit_sftpPort" input-type="number" min="1"
step="1"
:field="form.sftpPort">
<template #label="{lang}">
<template #label>
{{ $gettext('SFTP Port') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12 col-lg-6" id="form_edit_sftpUsername"
:field="form.sftpUsername">
<template #label="{lang}">
<template #label>
{{ $gettext('SFTP Username') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12 col-lg-6" id="form_edit_sftpPassword"
:field="form.sftpPassword">
<template #label="{lang}">
<template #label>
{{ $gettext('SFTP Password') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_sftpPrivateKeyPassPhrase"
:field="form.sftpPrivateKeyPassPhrase">
<template #label="{lang}">
<template #label>
{{ $gettext('SFTP Private Key Pass Phrase') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_sftpPrivateKey" input-type="textarea"
:field="form.sftpPrivateKey">
<template #label="{lang}">
<template #label>
{{ $gettext('SFTP Private Key') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-card-body>
</b-card>

View File

@ -1,15 +1,15 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_email" :field="form.email" input-type="email">
<template #label="{lang}">
<template #label>
{{ $gettext('E-mail Address') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_new_password" :field="form.new_password"
input-type="password">
<template #label="{lang}">
<template #label>
{{ $gettext('Reset Password') }}
{{ $gettext('Password') }}
</template>
@ -19,14 +19,14 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="edit_form_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('Display Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="edit_form_roles"
:field="form.roles">
<template #label="{lang}">
<template #label>
{{ $gettext('Roles') }}
</template>
<template #default="props">
@ -34,7 +34,7 @@
</b-form-checkbox-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -3,9 +3,7 @@
<template #default>
<slot name="default" v-bind="{ id, field, state: fieldState }">
<b-form-checkbox v-bind="inputAttrs" v-model="field.$model" :id="id" :name="name">
<slot name="label" :lang="'lang_'+id">
</slot>
<slot name="label"></slot>
<span v-if="isRequired" class="text-danger">
<span aria-hidden="true">*</span>
<span class="sr-only">Required</span>
@ -22,7 +20,7 @@
</template>
<template #description="slotProps">
<slot name="description" v-bind="slotProps" :lang="'lang_'+id+'_desc'"></slot>
<slot name="description" v-bind="slotProps"></slot>
</template>
<template v-for="(_, slot) of filteredScopedSlots" v-slot:[slot]="scope">

View File

@ -16,7 +16,7 @@
</template>
<template #label="slotProps">
<slot v-bind="slotProps" name="label" :lang="'lang_'+id"></slot>
<slot v-bind="slotProps" name="label"></slot>
<span v-if="isRequired" class="text-danger">
<span aria-hidden="true">*</span>
<span class="sr-only">Required</span>
@ -26,7 +26,7 @@
</span>
</template>
<template #description="slotProps">
<slot v-bind="slotProps" name="description" :lang="'lang_'+id+'_desc'"></slot>
<slot v-bind="slotProps" name="description"></slot>
</template>
<template v-for="(_, slot) of filteredScopedSlots" v-slot:[slot]="scope">

View File

@ -20,7 +20,7 @@
<b-wrapped-form-group id="password" name="password" label-class="mb-2" :field="v$.form.password"
input-type="password">
<template #label="{lang}">
<template #label>
<icon icon="vpn_key" class="mr-1"></icon>
{{ $gettext('Password') }}
</template>

View File

@ -35,7 +35,7 @@
<b-wrapped-form-group id="username" name="username" label-class="mb-2" :field="v$.username"
input-type="email">
<template #label="{lang}">
<template #label>
<icon icon="email" class="mr-1"></icon>
{{ $gettext('E-mail Address') }}
</template>
@ -43,7 +43,7 @@
<b-wrapped-form-group id="password" name="password" label-class="mb-2" :field="v$.password"
input-type="password">
<template #label="{lang}">
<template #label>
<icon icon="vpn_key" class="mr-1"></icon>
{{ $gettext('Password') }}
</template>

View File

@ -14,7 +14,7 @@
<div class="card-body">
<b-form-group>
<b-form-row>
<div class="form-row">
<b-form-group class="col-md-6" label-for="intro_file">
<template #label>
{{ $gettext('Select Custom Fallback File') }}
@ -44,7 +44,7 @@
{{ $gettext('There is no existing custom fallback file associated with this station.') }}
</div>
</b-form-group>
</b-form-row>
</div>
</b-form-group>
</div>
</section>

View File

@ -1,18 +1,20 @@
<template>
<b-tab :title="langTabTitle" active>
<b-form-group>
<b-form-row class="mb-3">
<div class="form-row mb-3">
<b-wrapped-form-group class="col-md-12" id="edit_form_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('Programmatic Name') }}
</template>
<template #description="{lang}">
{{ $gettext('A name for this stream that will be used internally in code. Should only contain letters, numbers, and underscores (i.e. "stream_lofi").') }}
<template #description>
{{
$gettext('A name for this stream that will be used internally in code. Should only contain letters, numbers, and underscores (i.e. "stream_lofi").')
}}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_format" :field="form.format">
<template #label="{lang}">
<template #label>
{{ $gettext('Audio Format') }}
</template>
<template #default="props">
@ -26,7 +28,7 @@
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_bitrate" :field="form.bitrate">
<template #label="{lang}">
<template #label>
{{ $gettext('Audio Bitrate (kbps)') }}
</template>
<template #default="props">
@ -39,7 +41,7 @@
></b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -1,6 +1,6 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-form-group class="col-md-6" label-for="edit_form_song_length">
<template #label>
{{ $gettext('Song Length') }}
@ -11,10 +11,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_amplify" :field="form.amplify"
input-type="number" :input-attrs="{ step: '0.1' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Amplify: Amplification (dB)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The volume in decibels to amplify the track with. Leave blank to use the system default.')
}}
@ -23,10 +23,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_fade_overlap" :field="form.fade_overlap"
input-type="number" :input-attrs="{ step: '0.1' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom Fading: Overlap Time (seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The time that this song should overlap its surrounding songs when fading. Leave blank to use the system default.')
}}
@ -35,10 +35,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_fade_in" :field="form.fade_in"
input-type="number" :input-attrs="{ step: '0.1' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom Fading: Fade-In Time (seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The time period that the song should fade in. Leave blank to use the system default.')
}}
@ -47,10 +47,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_fade_out" :field="form.fade_out"
input-type="number" :input-attrs="{ step: '0.1' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom Fading: Fade-Out Time (seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The time period that the song should fade out. Leave blank to use the system default.')
}}
@ -59,24 +59,24 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_cue_in" :field="form.cue_in"
input-type="number" :input-attrs="{ step: '0.1' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom Cues: Cue-In Point (seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Seconds from the start of the song that the AutoDJ should start playing.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_cue_out" :field="form.cue_out"
input-type="number" :input-attrs="{ step: '0.1' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom Cues: Cue-Out Point (seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Seconds from the start of the song that the AutoDJ should stop playing.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -1,54 +1,54 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_path" :field="form.path">
<template #label="{lang}">
<template #label>
{{ $gettext('File Name') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The relative path of the file in the station\'s media directory.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_title" :field="form.title">
<template #label="{lang}">
<template #label>
{{ $gettext('Song Title') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_artist" :field="form.artist">
<template #label="{lang}">
<template #label>
{{ $gettext('Song Artist') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_genre" :field="form.genre">
<template #label="{lang}">
<template #label>
{{ $gettext('Song Genre') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_album" :field="form.album">
<template #label="{lang}">
<template #label>
{{ $gettext('Song Album') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_lyrics" :field="form.lyrics" input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Song Lyrics') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_isrc" :field="form.isrc">
<template #label="{lang}">
<template #label>
{{ $gettext('ISRC') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('International Standard Recording Code, used for licensing reports.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -2,7 +2,7 @@
<b-modal id="rename_file" centered ref="modal" :title="langRenameFile">
<b-form @submit.prevent="doRename">
<b-wrapped-form-group id="new_directory_name" :field="v$.form.newPath" autofocus>
<template #label="{lang}">
<template #label>
{{ $gettext('New File Name') }}
</template>
</b-wrapped-form-group>

View File

@ -1,38 +1,33 @@
<template>
<b-tab :title="langTabTitle">
<b-form-group>
<b-form-row class="mb-3">
<div class="form-row mb-3">
<b-wrapped-form-group class="col-md-12" id="edit_form_custom_listen_url"
:field="form.custom_listen_url" advanced>
<template #label="{lang}">
<template #label>
{{ $gettext('Mount Point URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('You can set a custom URL for this stream that AzuraCast will use when referring to it. Leave empty to use the default value.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
<b-form-row v-if="isIcecast">
</div>
<div class="form-row" v-if="isIcecast">
<b-wrapped-form-group class="col-md-12" id="edit_form_frontend_config" :field="form.frontend_config"
input-type="textarea" advanced
:input-attrs="{class: 'text-preformatted', spellcheck: 'false', 'max-rows': 25, rows: 5}">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom Frontend Configuration') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('You can include any special mount point settings here, in either JSON { key: \'value\' } format or XML &lt;key&gt;value&lt;/key&gt;')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -1,20 +1,20 @@
<template>
<b-tab :title="langTabTitle">
<b-form-group>
<b-form-row class="mb-3">
<div class="form-row mb-3">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_enable_autodj" :field="form.enable_autodj">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable AutoDJ') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('If enabled, the AutoDJ will automatically play music to this mount point.') }}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
<b-form-row v-if="form.enable_autodj.$model">
<div class="form-row" v-if="form.enable_autodj.$model">
<b-wrapped-form-group class="col-md-6" id="edit_form_autodj_format" :field="form.autodj_format">
<template #label="{lang}">
<template #label>
{{ $gettext('AutoDJ Format') }}
</template>
<template #default="props">
@ -29,7 +29,7 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_autodj_bitrate" :field="form.autodj_bitrate"
v-if="formatSupportsBitrateOptions">
<template #label="{lang}">
<template #label>
{{ $gettext('AutoDJ Bitrate (kbps)') }}
</template>
<template #default="props">
@ -42,7 +42,7 @@
></b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -1,14 +1,12 @@
<template>
<b-tab :title="langTabTitle" active>
<b-form-group>
<b-form-row class="mb-3">
<div class="form-row mb-3">
<b-wrapped-form-group class="col-md-6" id="edit_form_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('Mount Point URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This name should always begin with a slash (/), and must be a valid URL, such as /autodj.mp3')
}}
@ -16,10 +14,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_display_name" :field="form.display_name">
<template #label="{lang}">
<template #label>
{{ $gettext('Display Name') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The display name assigned to this mount point when viewing it on administrative or public pages. Leave blank to automatically generate one.')
}}
@ -28,10 +26,10 @@
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_is_visible_on_public_pages"
:field="form.is_visible_on_public_pages">
<template #label="{lang}">
<template #label>
{{ $gettext('Show on Public Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Enable to allow listeners to select this mount point on this station\'s public pages.')
}}
@ -39,10 +37,10 @@
</b-wrapped-form-checkbox>
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_is_default" :field="form.is_default">
<template #label="{lang}">
<template #label>
{{ $gettext('Set as Default Mount Point') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If this mount is the default, it will be played on the radio preview and the public radio page in this system.')
}}
@ -50,10 +48,10 @@
</b-wrapped-form-checkbox>
<b-wrapped-form-group class="col-md-6" id="edit_form_relay_url" :field="form.relay_url">
<template #label="{lang}">
<template #label>
{{ $gettext('Relay Stream URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Enter the full URL of another stream to relay its broadcast through this mount point.')
}}
@ -61,10 +59,10 @@
</b-wrapped-form-group>
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_is_public" :field="form.is_public">
<template #label="{lang}">
<template #label>
{{ $gettext('Publish to "Yellow Pages" Directories') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Enable to advertise this mount point on "Yellow Pages" public radio directories.')
}}
@ -74,10 +72,10 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_max_listener_duration"
:field="form.max_listener_duration" input-type="number"
:input-attrs="{min: '0', max: '2147483647'}">
<template #label="{lang}">
<template #label>
{{ $gettext('Max Listener Duration') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Set the length of time (seconds) a listener will stay connected to the stream. If set to 0, listeners can stay connected infinitely.')
}}
@ -86,7 +84,7 @@
<template v-if="isShoutcast">
<b-wrapped-form-group class="col-md-6" id="edit_form_authhash" :field="form.authhash">
<template #label="{lang}">
<template #label>
{{ $gettext('YP Directory Authorization Hash') }}
</template>
<template #description><span v-html="langAuthhashDesc"></span></template>
@ -94,17 +92,17 @@
</template>
<template v-if="isIcecast">
<b-wrapped-form-group class="col-md-6" id="edit_form_fallback_mount" :field="form.fallback_mount">
<template #label="{lang}">
<template #label>
{{ $gettext('Fallback Mount') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If this mount point is not playing audio, listeners will automatically be redirected to this mount point. The default is /error.mp3, a repeating error message.')
}}
</template>
</b-wrapped-form-group>
</template>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -1,7 +1,7 @@
<template>
<b-tab :title="$gettext('Intro')">
<b-form-group>
<b-form-row>
<div class="form-row">
<b-form-group class="col-md-6" label-for="intro_file">
<template #label>
{{ $gettext('Select Intro File') }}
@ -35,7 +35,7 @@
{{ $gettext('There is no existing intro file associated with this mount point.') }}
</div>
</b-form-group>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>
@ -80,7 +80,7 @@ const deleteIntro = () => {
});
} else {
hasIntro.value = false;
emit('update:modelValue', null);
}
};

View File

@ -2,15 +2,15 @@
<modal-form ref="modal" id="clone_modal" :title="langTitle" :error="error"
:disable-save-button="v$.form.$invalid" @submit="doSubmit" @hidden="clearContents">
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_edit_name" :field="v$.form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('New Playlist Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_clone" :field="v$.form.clone">
<template #label="{lang}">
<template #label>
{{ $gettext('Customize Copy') }}
</template>
<template #default="props">
@ -24,7 +24,7 @@
</b-form-checkbox-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</modal-form>
</template>

View File

@ -1,12 +1,12 @@
<template>
<b-tab :title="langTabTitle">
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_backend_options" :field="form.backend_options">
<template #label="{lang}">
<template #label>
{{ $gettext('Advanced Manual AutoDJ Scheduling Options') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Control how this playlist is handled by the AutoDJ software.') }}
</template>
<template #default="props">
@ -23,7 +23,7 @@
</b-form-checkbox-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -1,18 +1,18 @@
<template>
<b-tab :title="langTabTitle" active>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_edit_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('Playlist Name') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-checkbox class="col-md-6" id="form_edit_is_enabled" :field="form.is_enabled">
<template #label="{lang}">
<template #label>
{{ $gettext('Enable') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If disabled, the playlist will not be included in radio playback, but can still be managed.')
}}
@ -20,7 +20,7 @@
</b-wrapped-form-checkbox>
<b-wrapped-form-group class="col-md-12" id="edit_form_source" :field="form.source">
<template #label="{lang}">
<template #label>
{{ $gettext('Source') }}
</template>
<template #default="props">
@ -36,7 +36,7 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
<b-card v-show="form.source.$model === 'songs'" class="mb-3" no-body>
@ -47,13 +47,13 @@
</div>
<b-card-body>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-checkbox class="col-md-6" id="form_edit_avoid_duplicates"
:field="form.avoid_duplicates">
<template #label="{lang}">
<template #label>
{{ $gettext('Avoid Duplicate Artists/Titles') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Whether the AutoDJ should attempt to avoid duplicate artists and track titles when playing media from this playlist.')
}}
@ -62,10 +62,10 @@
<b-wrapped-form-checkbox class="col-md-6" id="form_edit_include_in_on_demand"
:field="form.include_in_on_demand">
<template #label="{lang}">
<template #label>
{{ $gettext('Include in On-Demand Player') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If this station has on-demand streaming and downloading enabled, only songs that are in playlists with this setting enabled will be visible.')
}}
@ -74,7 +74,7 @@
<b-wrapped-form-group class="col-md-6" id="form_edit_include_in_requests"
:field="form.include_in_requests">
<template #description="{lang}">
<template #description>
{{
$gettext('If requests are enabled for your station, users will be able to request media that is on this playlist.')
}}
@ -87,7 +87,7 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_is_jingle" :field="form.is_jingle">
<template #description="{lang}">
<template #description>
{{
$gettext('Enable this setting to prevent metadata from being sent to the AutoDJ for files in this playlist. This is useful if the playlist contains jingles or bumpers.')
}}
@ -100,7 +100,7 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_type" :field="form.type">
<template #label="{lang}">
<template #label>
{{ $gettext('Playlist Type') }}
</template>
<template #default="props">
@ -138,7 +138,7 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_order" :field="form.order">
<template #label="{lang}">
<template #label>
{{ $gettext('Song Playback Order') }}
</template>
<template #default="props">
@ -164,7 +164,7 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
<b-form-fieldset v-show="form.type.$model === 'default'">
@ -173,12 +173,12 @@
</template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_edit_weight" :field="form.weight">
<template #label="{lang}">
<template #label>
{{ $gettext('Playlist Weight') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Higher weight playlists are played more frequently compared to other lower-weight playlists.')
}}
@ -188,7 +188,7 @@
:state="props.state"></b-form-select>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-form-fieldset>
@ -198,20 +198,20 @@
</template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_edit_play_per_songs"
:field="form.play_per_songs" input-type="number"
:input-attrs="{min: '0', max: '150'}">
<template #label="{lang}">
<template #label>
{{ $gettext('Number of Songs Between Plays') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This playlist will play every $x songs, where $x is specified here.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-form-fieldset>
@ -221,22 +221,22 @@
</template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_edit_play_per_minutes"
:field="form.play_per_minutes" input-type="number"
:input-attrs="{min: '0', max: '360'}">
<template #label="{lang}">
<template #label>
{{ $gettext('Number of Minutes Between Plays') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This playlist will play every $x minutes, where $x is specified here.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-form-fieldset>
@ -246,18 +246,18 @@
</template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_edit_play_per_hour_minute"
:field="form.play_per_hour_minute" input-type="number"
:input-attrs="{min: '0', max: '59'}">
<template #label="{lang}">
<template #label>
{{ $gettext('Minute of Hour to Play') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Specify the minute of every hour that this playlist should play.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-form-fieldset>
</b-card-body>
@ -271,15 +271,15 @@
</div>
<b-card-body>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_edit_remote_url" :field="form.remote_url">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote URL') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_remote_type" :field="form.remote_type">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote URL Type') }}
</template>
<template #default="props">
@ -295,10 +295,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_remote_buffer" :field="form.remote_buffer">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Playback Buffer (Seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The length of playback time that Liquidsoap should buffer when playing this remote playlist. Shorter times may lead to intermittent playback on unstable connections.')
}}
@ -310,7 +310,7 @@
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-card-body>
</b-card>

View File

@ -15,13 +15,13 @@
</div>
<b-card-body>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-4" :id="'edit_form_start_time_'+index"
:field="v$.row.start_time">
<template #label="{lang}">
<template #label>
{{ $gettext('Start Time') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('To play once per day, set the start and end times to the same value.') }}.00
</template>
<template #default="props">
@ -31,10 +31,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-4" :id="'edit_form_end_time_'+index" :field="v$.row.end_time">
<template #label="{lang}">
<template #label>
{{ $gettext('End Time') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If the end time is before the start time, the playlist will play overnight.')
}}
@ -56,10 +56,10 @@
<b-wrapped-form-group class="col-md-4" :id="'edit_form_start_date_'+index"
:field="v$.row.start_date">
<template #label="{lang}">
<template #label>
{{ $gettext('Start Date') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('To set this schedule to run only within a certain date range, specify a start and end date.')
}}
@ -71,7 +71,7 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-4" :id="'edit_form_end_date_'+index" :field="v$.row.end_date">
<template #label="{lang}">
<template #label>
{{ $gettext('End Date') }}
</template>
<template #default="props">
@ -82,19 +82,19 @@
<b-wrapped-form-checkbox class="col-md-4" :id="'edit_form_loop_once_'+index"
:field="v$.row.loop_once">
<template #label="{lang}">
<template #label>
{{ $gettext('Loop Once') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Only loop through playlist once.') }}
</template>
</b-wrapped-form-checkbox>
<b-wrapped-form-group class="col-md-4" :id="'edit_form_days_'+index" :field="v$.row.days">
<template #label="{lang}">
<template #label>
{{ $gettext('Scheduled Play Days of Week') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Leave blank to play on every day of the week.') }}
</template>
<template #default="props">
@ -103,7 +103,7 @@
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-card-body>
</b-card>

View File

@ -1,38 +1,40 @@
<template>
<b-tab :title="langTitle" active>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_edit_title" :field="form.title">
<template #label="{lang}">
<template #label>
{{ $gettext('Episode') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_link" :field="form.link">
<template #label="{lang}">
<template #label>
{{ $gettext('Website') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Typically a website with content about the episode.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_description" :field="form.description"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Description') }}
</template>
<template #description="{lang}">
{{ $gettext('The description of the episode. The typical maximum amount of text allowed for this is 4000 characters.') }}
<template #description>
{{
$gettext('The description of the episode. The typical maximum amount of text allowed for this is 4000 characters.')
}}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_publish_date" :field="form.publish_date">
<template #label="{lang}">
<template #label>
{{ $gettext('Publish Date') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The date when the episode should be published.') }}
</template>
<template #default="props">
@ -42,11 +44,13 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_publish_time" :field="form.publish_time">
<template #label="{lang}">
<template #label>
{{ $gettext('Publish Time') }}
</template>
<template #description="{lang}">
{{ $gettext('The time when the episode should be published (according to the stations timezone).') }}
<template #description>
{{
$gettext('The time when the episode should be published (according to the stations timezone).')
}}
</template>
<template #default="props">
<b-form-timepicker :id="props.id" v-model="props.field.$model"
@ -55,14 +59,16 @@
</b-wrapped-form-group>
<b-wrapped-form-checkbox class="col-md-12" id="form_edit_explicit" :field="form.explicit">
<template #label="{lang}">
<template #label>
{{ $gettext('Contains explicit content') }}
</template>
<template #description="{lang}">
{{ $gettext('Indicates the presence of explicit content (explicit language or adult content). Apple Podcasts displays an Explicit parental advisory graphic for your episode if turned on. Episodes containing explicit material arent available in some Apple Podcasts territories.') }}
<template #description>
{{
$gettext('Indicates the presence of explicit content (explicit language or adult content). Apple Podcasts displays an Explicit parental advisory graphic for your episode if turned on. Episodes containing explicit material arent available in some Apple Podcasts territories.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -1,7 +1,7 @@
<template>
<b-tab :title="$gettext('Media')">
<b-form-group>
<b-form-row>
<div class="form-row">
<b-form-group class="col-md-6" label-for="media_file">
<template #label>
{{ $gettext('Select Media File') }}
@ -35,7 +35,7 @@
{{ $gettext('There is no existing media associated with this episode.') }}
</div>
</b-form-group>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -1,38 +1,40 @@
<template>
<b-tab :title="langTitle" active>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_edit_title" :field="form.title">
<template #label="{lang}">
<template #label>
{{ $gettext('Podcast Title') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_link" :field="form.link">
<template #label="{lang}">
<template #label>
{{ $gettext('Website') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Typically the home page of a podcast.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_description" :field="form.description"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Description') }}
</template>
<template #description="{lang}">
{{ $gettext('The description of your podcast. The typical maximum amount of text allowed for this is 4000 characters.') }}
<template #description>
{{
$gettext('The description of your podcast. The typical maximum amount of text allowed for this is 4000 characters.')
}}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_language" :field="form.language">
<template #label="{lang}">
<template #label>
{{ $gettext('Language') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The language spoken on the podcast.') }}
</template>
<template #default="props">
@ -42,28 +44,32 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_author" :field="form.author">
<template #label="{lang}">
<template #label>
{{ $gettext('Author') }}
</template>
<template #description="{lang}">
{{ $gettext('The contact person of the podcast. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.') }}
<template #description>
{{
$gettext('The contact person of the podcast. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.')
}}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_edit_email" :field="form.email" input-type="email">
<template #label="{lang}">
<template #label>
{{ $gettext('E-Mail') }}
</template>
<template #description="{lang}">
{{ $gettext('The email of the podcast contact. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.') }}
<template #description>
{{
$gettext('The email of the podcast contact. May be required in order to list the podcast on services like Apple Podcasts, Spotify, Google Podcasts, etc.')
}}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_edit_categories" :field="form.categories">
<template #label="{lang}">
<template #label>
{{ $gettext('Categories') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Select the category/categories that best reflects the content of your podcast.') }}
</template>
<template #default="props">
@ -72,7 +78,7 @@
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -1,24 +1,21 @@
<template>
<b-tab :title="langTabTitle">
<b-form-row class="mb-3">
<div class="form-row mb-3">
<b-wrapped-form-checkbox class="col-md-12" id="edit_form_enable_autodj" :field="form.enable_autodj">
<template #label="{lang}">
<template #label>
{{ $gettext('Broadcast AutoDJ to Remote Station') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If enabled, the AutoDJ on this installation will automatically play music to this mount point.')
}}
</template>
</b-wrapped-form-checkbox>
</div>
</b-form-row>
<b-form-row v-if="form.enable_autodj.$model">
<div class="form-row" v-if="form.enable_autodj.$model">
<b-wrapped-form-group class="col-md-6" id="edit_form_autodj_format" :field="form.autodj_format">
<template #label="{lang}">
<template #label>
{{ $gettext('AutoDJ Format') }}
</template>
<template #default="props">
@ -29,7 +26,7 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_autodj_bitrate" :field="form.autodj_bitrate"
v-if="formatSupportsBitrateOptions">
<template #label="{lang}">
<template #label>
{{ $gettext('AutoDJ Bitrate (kbps)') }}
</template>
<template #default="props">
@ -39,10 +36,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_source_port" :field="form.source_port">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Station Source Port') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If the port you broadcast to is different from the one you listed in the URL above, specify the source port here.')
}}
@ -50,10 +47,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_source_mount" :field="form.source_mount">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Station Source Mountpoint/SID') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If the mountpoint (i.e. /radio.mp3) or Shoutcast SID (i.e. 2) you broadcast to is different from the one listed above, specify the source mount point here.')
}}
@ -61,10 +58,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_source_username" :field="form.source_username">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Station Source Username') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If you are broadcasting using AutoDJ, enter the source username here. This may be blank.')
}}
@ -72,24 +69,23 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_source_password" :field="form.source_password">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Station Source Password') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('If you are broadcasting using AutoDJ, enter the source password here.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_is_public" :field="form.is_public">
<template #label="{lang}">
<template #label>
{{ $gettext('Publish to "Yellow Pages" Directories') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Enable to advertise this relay on "Yellow Pages" public radio directories.') }}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-tab>
</template>

View File

@ -1,9 +1,9 @@
<template>
<b-tab :title="langTabTitle" active>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="edit_form_type" :field="form.type">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Station Type') }}
</template>
<template #default="props">
@ -18,10 +18,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_display_name" :field="form.display_name">
<template #label="{lang}">
<template #label>
{{ $gettext('Display Name') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The display name assigned to this relay when viewing it on administrative or public pages. Leave blank to automatically generate one.')
}}
@ -29,10 +29,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_url" :field="form.url">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Station Listening URL') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Example: if the remote radio URL is http://station.example.com:8000/radio.mp3, enter "http://station.example.com:8000".')
}}
@ -40,10 +40,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_mount" :field="form.mount">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Station Listening Mountpoint/SID') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Specify a mountpoint (i.e. "/radio.mp3") or a Shoutcast SID (i.e. "2") to specify a specific stream to use for statistics or broadcasting.')
}}
@ -51,10 +51,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_admin_password" :field="form.admin_password">
<template #label="{lang}">
<template #label>
{{ $gettext('Remote Station Administrator Password') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('To retrieve detailed unique listeners and client details, an administrator password is often required.')
}}
@ -63,17 +63,17 @@
<b-wrapped-form-checkbox class="col-md-6" id="edit_form_is_visible_on_public_pages"
:field="form.is_visible_on_public_pages">
<template #label="{lang}">
<template #label>
{{ $gettext('Show on Public Pages') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Enable to allow listeners to select this relay on this station\'s public pages.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -44,24 +44,26 @@
<b-form-fieldset>
<b-wrapped-form-group name="start_date" id="form_start_date" :field="v$.form.start_date"
input-type="date">
<template #label="{lang}">
<template #label>
{{ $gettext('Start Date') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group name="end_date" id="form_end_date" :field="v$.form.end_date"
input-type="date">
<template #label="{lang}">
<template #label>
{{ $gettext('End Date') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-checkbox name="fetch_isrc" id="form_edit_fetch_isrc" :field="v$.form.fetch_isrc">
<template #label="{lang}">
<template #label>
{{ $gettext('Attempt to Automatically Retrieve ISRC When Missing') }}
</template>
<template #description="{lang}">
{{ $gettext('If enabled, AzuraCast will connect to the MusicBrainz database to attempt to find an ISRC for any files where one is missing. Disabling this may improve performance.') }}
<template #description>
{{
$gettext('If enabled, AzuraCast will connect to the MusicBrainz database to attempt to find an ISRC for any files where one is missing. Disabling this may improve performance.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-fieldset>

View File

@ -1,8 +1,8 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_username" :field="form.username">
<template #label="{lang}">
<template #label>
{{ $gettext('Username') }}
</template>
</b-wrapped-form-group>
@ -23,15 +23,17 @@
<b-wrapped-form-group class="col-md-12" id="edit_form_publicKeys" :field="form.publicKeys"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('SSH Public Keys') }}
</template>
<template #description="{lang}">
{{ $gettext('Optionally supply SSH public keys this user can use to connect instead of a password. Enter one key per line.') }}
<template #description>
{{
$gettext('Optionally supply SSH public keys this user can use to connect instead of a password. Enter one key per line.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -17,13 +17,15 @@
<div class="card-body">
<b-form-group>
<b-form-row>
<div class="form-row">
<b-form-group class="col-md-6" label-for="stereo_tool_configuration_file">
<template #label>
{{ $gettext('Select Configuration File') }}
</template>
<template #description>
{{ $gettext('This configuration file should be a valid .sts file exported from Stereo Tool.') }}
{{
$gettext('This configuration file should be a valid .sts file exported from Stereo Tool.')
}}
</template>
<flow-upload :target-url="apiUrl" :valid-mime-types="acceptMimeTypes"
@ -48,7 +50,7 @@
{{ $gettext('There is no Stereo Tool configuration file present.') }}
</div>
</b-form-group>
</b-form-row>
</div>
</b-form-group>
</div>
</section>

View File

@ -1,35 +1,35 @@
<template>
<b-tab :title="langTabTitle" active>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_streamer_username" :field="form.streamer_username">
<template #label="{lang}">
<template #label>
{{ $gettext('Streamer Username') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The streamer will use this username to connect to the radio server.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="edit_form_streamer_password" :field="form.streamer_password"
input-type="password">
<template #label="{lang}">
<template #label>
{{ $gettext('Streamer password') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The streamer will use this password to connect to the radio server.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
<b-form-row>
</div>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="edit_form_display_name" :field="form.display_name">
<template #label="{lang}">
<template #label>
{{ $gettext('Streamer Display Name') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('This is the informal display name that will be shown in API responses if the streamer/DJ is live.')
}}
@ -38,38 +38,38 @@
<b-wrapped-form-group class="col-md-6" id="edit_form_comments" :field="form.comments"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Comments') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Internal notes or comments about the user, visible only on this control panel.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
<b-form-row class="mt-3">
</div>
<div class="form-row mt-3">
<b-wrapped-form-checkbox class="col-md-6" id="form_edit_is_active" :field="form.is_active">
<template #label="{lang}">
<template #label>
{{ $gettext('Account is Active') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Enable to allow this account to log in and stream.') }}
</template>
</b-wrapped-form-checkbox>
<b-wrapped-form-checkbox class="col-md-6" id="form_edit_enforce_schedule"
:field="form.enforce_schedule">
<template #label="{lang}">
<template #label>
{{ $gettext('Enforce Schedule Times') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If enabled, this streamer will only be able to connect during their scheduled broadcast times.')
}}
</template>
</b-wrapped-form-checkbox>
</b-form-row>
</div>
</b-form-group>
</b-tab>
</template>

View File

@ -15,10 +15,10 @@
</div>
<b-card-body>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-4" :id="'edit_form_start_time_'+index"
:field="v$.row.start_time">
<template #label="{lang}">
<template #label>
{{ $gettext('Start Time') }}
</template>
<template #default="props">
@ -28,10 +28,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-4" :id="'edit_form_end_time_'+index" :field="v$.row.end_time">
<template #label="{lang}">
<template #label>
{{ $gettext('End Time') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('If the end time is before the start time, the schedule entry will continue overnight.')
}}
@ -53,10 +53,10 @@
<b-wrapped-form-group class="col-md-4" :id="'edit_form_start_date_'+index"
:field="v$.row.start_date" input-type="date">
<template #label="{lang}">
<template #label>
{{ $gettext('Start Date') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('To set this schedule to run only within a certain date range, specify a start and end date.')
}}
@ -65,16 +65,16 @@
<b-wrapped-form-group class="col-md-4" :id="'edit_form_end_date_'+index" :field="v$.row.end_date"
input-type="date">
<template #label="{lang}">
<template #label>
{{ $gettext('End Date') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-4" :id="'edit_form_days_'+index" :field="v$.row.days">
<template #label="{lang}">
<template #label>
{{ $gettext('Scheduled Play Days of Week') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Leave blank to play on every day of the week.') }}
</template>
<template #default="props">
@ -83,7 +83,7 @@
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</b-card-body>
</b-card>

View File

@ -1,23 +1,27 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_edit_name" :field="form.name">
<template #label="{lang}">
<template #label>
{{ $gettext('Web Hook Name') }}
</template>
<template #description="{lang}">
{{ $gettext('Choose a name for this webhook that will help you distinguish it from others. This will only be shown on the administration page.') }}
<template #description>
{{
$gettext('Choose a name for this webhook that will help you distinguish it from others. This will only be shown on the administration page.')
}}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group v-if="triggerOptions.length > 0" class="col-md-12"
id="edit_form_triggers"
:field="form.triggers">
<template #label="{lang}">
<template #label>
{{ $gettext('Web Hook Triggers') }}
</template>
<template #description="{lang}">
{{ $gettext('This web hook will only run when the selected event(s) occur on this specific station.') }}
<template #description>
{{
$gettext('This web hook will only run when the selected event(s) occur on this specific station.')
}}
</template>
<template #default="props">
<b-form-checkbox-group :id="props.id" :options="triggerOptions"
@ -25,7 +29,7 @@
</b-form-checkbox-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -1,6 +1,6 @@
<template>
<b-wrapped-form-group class="col-md-12" id="form_config_rate_limit" :field="form.config.rate_limit">
<template #label="{lang}">
<template #label>
{{ $gettext('Only Post Once Every...') }}
</template>
<template #default="props">

View File

@ -3,11 +3,11 @@
<common-formatting-info :now-playing-url="nowPlayingUrl"></common-formatting-info>
<b-form-group>
<b-form-row>
<div class="form-row">
<template v-if="hasTrigger('song_changed')">
<b-wrapped-form-group class="col-md-12" id="form_config_message" :field="form.config.message"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Body on Song Change') }}
</template>
</b-wrapped-form-group>
@ -16,7 +16,7 @@
<b-wrapped-form-group class="col-md-12" id="form_config_message_song_changed_live"
:field="form.config.message_song_changed_live"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Body on Song Change with Stramer/DJ Connected') }}
</template>
</b-wrapped-form-group>
@ -24,7 +24,7 @@
<template v-if="hasTrigger('live_connect')">
<b-wrapped-form-group class="col-md-12" id="form_config_message_live_connect"
:field="form.config.message_live_connect" input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Body on Streamer/DJ Connect') }}
</template>
</b-wrapped-form-group>
@ -32,7 +32,7 @@
<template v-if="hasTrigger('live_disconnect')">
<b-wrapped-form-group class="col-md-12" id="form_config_message_live_disconnect"
:field="form.config.message_live_disconnect" input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Body on Streamer/DJ Disconnect') }}
</template>
</b-wrapped-form-group>
@ -40,7 +40,7 @@
<template v-if="hasTrigger('station_offline')">
<b-wrapped-form-group class="col-md-12" id="form_config_message_station_offline"
:field="form.config.message_station_offline" input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Body on Station Offline') }}
</template>
</b-wrapped-form-group>
@ -48,12 +48,12 @@
<template v-if="hasTrigger('station_online')">
<b-wrapped-form-group class="col-md-12" id="form_config_message_station_online"
:field="form.config.message_station_online" input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Body on Station Online') }}
</template>
</b-wrapped-form-group>
</template>
</b-form-row>
</div>
</b-form-group>
</div>
</template>

View File

@ -1,65 +1,65 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_config_webhook_url" :field="form.config.webhook_url"
input-type="url">
<template #label="{lang}">
<template #label>
{{ $gettext('Discord Web Hook URL') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('This URL is provided within the Discord application.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
<common-formatting-info :now-playing-url="nowPlayingUrl"></common-formatting-info>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_config_content" :field="form.config.content">
<template #label="{lang}">
<template #label>
{{ $gettext('Main Message Content') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_title" :field="form.config.title">
<template #label="{lang}">
<template #label>
{{ $gettext('Title') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_description" :field="form.config.description">
<template #label="{lang}">
<template #label>
{{ $gettext('Description') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_url" :field="form.config.url" input-type="url">
<template #label="{lang}">
<template #label>
{{ $gettext('URL') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_author" :field="form.config.author">
<template #label="{lang}">
<template #label>
{{ $gettext('Author') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_thumbnail" :field="form.config.thumbnail"
input-type="url">
<template #label="{lang}">
<template #label>
{{ $gettext('Thumbnail Image URL') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_footer" :field="form.config.footer">
<template #label="{lang}">
<template #label>
{{ $gettext('Footer Text') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -1,33 +1,33 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_config_to" :field="form.config.to">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Recipient(s)') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('E-mail addresses can be separated by commas.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
<common-formatting-info :now-playing-url="nowPlayingUrl"></common-formatting-info>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_config_subject" :field="form.config.subject">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Subject') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_config_message" :field="form.config.message">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Body') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -29,33 +29,33 @@
</b-form-group>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_config_webhook_url" :field="form.config.webhook_url"
input-type="url">
<template #label="{lang}">
<template #label>
{{ $gettext('Web Hook URL') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The URL that will receive the POST messages any time an event is triggered.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_basic_auth_username"
:field="form.config.basic_auth_username">
<template #label="{lang}">
<template #label>
{{ $gettext('Optional: HTTP Basic Authentication Username') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('If your web hook requires HTTP basic authentication, provide the username here.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_basic_auth_password"
:field="form.config.basic_auth_password">
<template #label="{lang}">
<template #label>
{{ $gettext('Optional: HTTP Basic Authentication Password') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('If your web hook requires HTTP basic authentication, provide the password here.') }}
</template>
</b-wrapped-form-group>
@ -63,16 +63,16 @@
<b-wrapped-form-group class="col-md-6" id="form_config_timeout"
:field="form.config.timeout" input-type="number"
:input-attrs="{ min: '0.0', max: '600.0', step: '0.1' }">
<template #label="{lang}">
<template #label>
{{ $gettext('Optional: Request Timeout (Seconds)') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('The number of seconds to wait for a response from the remote server before cancelling the request.')
}}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -1,15 +1,15 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_config_tracking_id" :field="form.config.tracking_id">
<template #label="{lang}">
<template #label>
{{ $gettext('GA Property Tracking ID') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The property ID used to track live listeners.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -31,31 +31,31 @@
</b-form-group>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_config_instance_url" :field="form.config.instance_url">
<template #label="{lang}">
<template #label>
{{ $gettext('Mastodon Instance URL') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('If your Mastodon username is "@test@example.com", enter "example.com".') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_access_token"
:field="form.config.access_token">
<template #label="{lang}">
<template #label>
{{ $gettext('Access Token') }}
</template>
</b-wrapped-form-group>
<common-rate-limit-fields :form="form"></common-rate-limit-fields>
</b-form-row>
</div>
</b-form-group>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_config_visibility" :field="form.config.visibility">
<template #label="{lang}">
<template #label>
{{ $gettext('Message Visibility') }}
</template>
<template #default="props">
@ -64,7 +64,7 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
<common-social-post-fields :form="form" :now-playing-url="nowPlayingUrl"></common-social-post-fields>

View File

@ -1,34 +1,34 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_config_matomo_url" :field="form.config.matomo_url"
input-type="url">
<template #label="{lang}">
<template #label>
{{ $gettext('Matomo Installation Base URL') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The full base URL of your Matomo installation.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_site_id" :field="form.config.site_id">
<template #label="{lang}">
<template #label>
{{ $gettext('Matomo Site ID') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The numeric site ID for this site.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_token" :field="form.config.token">
<template #label="{lang}">
<template #label>
{{ $gettext('Matomo API Token') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Optionally supply an API token to allow IP address overriding.') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -1,11 +1,11 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_config_bot_token" :field="form.config.bot_token">
<template #label="{lang}">
<template #label>
{{ $gettext('Bot Token') }}
</template>
<template #description="{lang}">
<template #description>
<a href="https://core.telegram.org/bots#botfather" target="_blank">
{{ $gettext('See the Telegram Documentation for more details.') }}
</a>
@ -13,10 +13,10 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_chat_id" :field="form.config.chat_id">
<template #label="{lang}">
<template #label>
{{ $gettext('Chat ID') }}
</template>
<template #description="{lang}">
<template #description>
{{
$gettext('Unique identifier for the target chat or username of the target channel (in the format @channelusername).')
}}
@ -24,32 +24,32 @@
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_api" :field="form.config.api">
<template #label="{lang}">
<template #label>
{{ $gettext('Custom API Base URL') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('Leave blank to use the default Telegram API URL (recommended).') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
<common-formatting-info :now-playing-url="nowPlayingUrl"></common-formatting-info>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-12" id="form_config_text" :field="form.config.text"
input-type="textarea">
<template #label="{lang}">
<template #label>
{{ $gettext('Main Message Content') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12" id="form_config_parse_mode" :field="form.config.parse_mode">
<template #label="{lang}">
<template #label>
{{ $gettext('Message parsing mode') }}
</template>
<template #description="{lang}">
<template #description>
<a href="https://core.telegram.org/bots/api#sendmessage" target="_blank">
{{ $gettext('See the Telegram documentation for more details.') }}
</a>
@ -60,7 +60,7 @@
</b-form-radio-group>
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -1,27 +1,27 @@
<template>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_config_station_id" :field="form.config.station_id">
<template #label="{lang}">
<template #label>
{{ $gettext('TuneIn Station ID') }}
</template>
<template #description="{lang}">
<template #description>
{{ $gettext('The station ID will be a numeric string that starts with the letter S.') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_partner_id" :field="form.config.partner_id">
<template #label="{lang}">
<template #label>
{{ $gettext('TuneIn Partner ID') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_partner_key" :field="form.config.partner_key">
<template #label="{lang}">
<template #label>
{{ $gettext('TuneIn Partner Key') }}
</template>
</b-wrapped-form-group>
</b-form-row>
</div>
</b-form-group>
</template>

View File

@ -32,34 +32,34 @@
</b-form-group>
<b-form-group>
<b-form-row>
<div class="form-row">
<b-wrapped-form-group class="col-md-6" id="form_config_consumer_key" :field="form.config.consumer_key">
<template #label="{lang}">
<template #label>
{{ $gettext('Consumer Key (API Key)') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_consumer_secret"
:field="form.config.consumer_secret">
<template #label="{lang}">
<template #label>
{{ $gettext('Consumer Secret (API Secret)') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_token" :field="form.config.token">
<template #label="{lang}">
<template #label>
{{ $gettext('Access Token') }}
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-6" id="form_config_token_secret" :field="form.config.token_secret">
<template #label="{lang}">
<template #label>
{{ $gettext('Access Token Secret') }}
</template>
</b-wrapped-form-group>
<common-rate-limit-fields :form="form"></common-rate-limit-fields>
</b-form-row>
</div>
</b-form-group>
<common-social-post-fields :form="form" :now-playing-url="nowPlayingUrl"></common-social-post-fields>