4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-13 12:46:41 +00:00

Vue3: Remove unnecessary wrapping div.

This commit is contained in:
Buster Neece 2022-12-17 19:07:15 -06:00
parent 8259989f6a
commit 27e5be80ee
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
40 changed files with 2503 additions and 2558 deletions

View File

@ -1,5 +1,4 @@
<template>
<div>
<h3 class="card-subtitle">{{ $gettext('New Key Generated') }}</h3>
<p class="card-text">
@ -26,7 +25,6 @@
<p class="card-text">
{{ $gettext('You can only perform the actions your user account is allowed to perform.') }}
</p>
</div>
</template>
<script setup>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-fieldset>
<b-form-row>
<b-wrapped-form-group class="col-md-6" id="form_name" :field="form.name">
@ -62,7 +61,6 @@
</b-col>
</b-form-row>
</b-form-fieldset>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Custom Fields') }}</h2>
@ -42,7 +41,6 @@
<edit-modal ref="editModal" :create-url="listUrl" :auto-assign-types="autoAssignTypes"
@relist="relist"></edit-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<div class="card mb-3">
<div class="card-header bg-primary-dark">
<h2 class="card-title">
@ -25,7 +24,6 @@
</div>
<streaming-log-modal ref="modal"></streaming-log-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Roles & Permissions') }}</h2>
@ -48,7 +47,6 @@
<edit-modal ref="editModal" :create-url="listUrl" :station-permissions="stationPermissions" :stations="stations"
:global-permissions="globalPermissions" @relist="relist"></edit-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-fieldset>
<template #label>
{{ $gettext('Privacy') }}
@ -77,7 +76,6 @@
</b-wrapped-form-group>
</b-form-row>
</b-form-fieldset>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-fieldset>
<template #label>
{{ $gettext('AzuraCast Update Checks') }}
@ -224,7 +223,6 @@
<streaming-log-modal ref="acmeModal"></streaming-log-modal>
<admin-settings-test-message-modal :test-message-url="testMessageUrl"></admin-settings-test-message-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Stations') }}</h2>
@ -47,7 +46,6 @@
@relist="relist"></admin-stations-edit-modal>
<admin-stations-clone-modal ref="cloneModal" @relist="relist"></admin-stations-clone-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-group>
<b-form-fieldset>
<b-form-row>
@ -65,7 +64,6 @@
</b-overlay>
</b-form-fieldset>
</b-form-group>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-fieldset>
<b-form-row>
<b-wrapped-form-group class="col-md-12" id="edit_form_backend_type"
@ -221,7 +220,6 @@
</b-form-row>
</b-form-fieldset>
</b-form-fieldset>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-fieldset>
<b-form-row>
<b-wrapped-form-group class="col-md-12" id="edit_form_frontend_type"
@ -170,7 +169,6 @@
</b-form-row>
</b-form-fieldset>
</b-form-fieldset>
</div>
</template>
<script>

View File

@ -1,12 +1,13 @@
<template>
<div>
<b-form-fieldset v-if="isBackendEnabled">
<b-form-fieldset>
<template #label>
{{ $gettext('HTTP Live Streaming (HLS)') }}
</template>
<template #description>
{{ $gettext('HTTP Live Streaming (HLS) is a new adaptive-bitrate technology supported by some clients. It does not use the standard broadcasting frontends.') }}
{{
$gettext('HTTP Live Streaming (HLS) is a new adaptive-bitrate technology supported by some clients. It does not use the standard broadcasting frontends.')
}}
</template>
<b-form-fieldset>
@ -71,7 +72,6 @@
</b-form-fieldset>
</b-form-fieldset>
<backend-disabled v-else></backend-disabled>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-fieldset>
<b-form-row>
<b-wrapped-form-group class="col-md-12" id="edit_form_name" :field="form.name">
@ -139,7 +138,6 @@
</b-wrapped-form-checkbox>
</b-form-row>
</b-form-fieldset>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-fieldset v-if="isBackendEnabled">
<b-form-fieldset>
<template #label>
@ -59,7 +58,6 @@
</b-form-fieldset>
</b-form-fieldset>
<backend-disabled v-else></backend-disabled>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-fieldset v-if="isBackendEnabled">
<b-form-fieldset>
<template #label>
@ -133,7 +132,6 @@
</b-form-fieldset>
</b-form-fieldset>
<backend-disabled v-else></backend-disabled>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Storage Locations') }}</h2>
@ -16,7 +15,8 @@
</b-button>
</b-card-body>
<data-table ref="datatable" id="admin_storage_locations" :show-toolbar="false" :fields="fields" :responsive="false"
<data-table ref="datatable" id="admin_storage_locations" :show-toolbar="false" :fields="fields"
:responsive="false"
:api-url="listUrlForType">
<template #cell(actions)="row">
<b-button-group size="sm">
@ -51,7 +51,6 @@
</b-card>
<edit-modal ref="editModal" :create-url="listUrl" :type="activeType" @relist="relist"></edit-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-group>
<b-form-row>
<b-wrapped-form-group class="col-md-12" id="form_edit_adapter" :field="form.adapter">
@ -29,7 +28,9 @@
{{ $gettext('Path/Suffix') }}
</template>
<template #description="{lang}">
{{ $gettext('For local filesystems, this is the base path of the directory. For remote filesystems, this is the folder prefix.') }}
{{
$gettext('For local filesystems, this is the base path of the directory. For remote filesystems, this is the folder prefix.')
}}
</template>
</b-wrapped-form-group>
@ -38,7 +39,9 @@
{{ $gettext('Storage Quota') }}
</template>
<template #description="{lang}">
{{ $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.') }}
{{
$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>
@ -110,7 +113,9 @@
{{ $gettext('Dropbox Generated Access Token') }}
</template>
<template #description="{lang}">
{{ $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.') }}
{{
$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>
@ -134,7 +139,8 @@
</template>
</b-wrapped-form-group>
<b-wrapped-form-group class="col-md-12 col-lg-6" id="form_edit_sftpPort" input-type="number" min="1" step="1"
<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}">
{{ $gettext('SFTP Port') }}
@ -172,7 +178,6 @@
</b-form-group>
</b-card-body>
</b-card>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Users') }}</h2>
@ -42,7 +41,6 @@
</b-card>
<edit-modal ref="editModal" :create-url="listUrl" :roles="roles" @relist="relist"></edit-modal>
</div>
</template>
<script>

View File

@ -1,7 +1,5 @@
<template>
<div>
<audio ref="audio" v-if="isPlaying" v-bind:title="title"/>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div style="display: contents">
<audio-player ref="player" :volume="volume" :is-muted="isMuted"></audio-player>
<div class="ml-3 player-inline" v-if="isPlaying">
@ -41,7 +40,6 @@
</div>
</div>
</div>
</div>
</template>
<style lang="scss">

View File

@ -1,5 +1,4 @@
<template>
<div>
<div class="public-page">
<div class="card">
<div class="card-body">
@ -30,7 +29,6 @@
<song-history-modal :show-album-art="showAlbumArt" ref="history_modal"></song-history-modal>
<request-modal :show-album-art="showAlbumArt" :request-list-uri="requestListUri"
:custom-fields="customFields"></request-modal>
</div>
</template>
<script setup>

View File

@ -1,5 +1,4 @@
<template>
<div>
<setup-step :step="2"></setup-step>
<b-card no-body>
@ -10,7 +9,9 @@
</div>
<info-card>
{{ $gettext('Continue the setup process by creating your first radio station below. You can edit any of these details later.') }}
{{
$gettext('Continue the setup process by creating your first radio station below. You can edit any of these details later.')
}}
</info-card>
<admin-stations-form v-bind="$props" ref="form" :is-edit-mode="false" :create-url="createUrl"
@ -20,7 +21,6 @@
</template>
</admin-stations-form>
</b-card>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('HLS Streams') }}</h2>
@ -45,7 +44,6 @@
</b-card>
<edit-modal ref="editModal" :create-url="listUrl" @relist="relist" @needs-restart="mayNeedRestart"></edit-modal>
</div>
</template>
<script>

View File

@ -1,7 +1,8 @@
<template>
<div>
<p>
{{ $gettext('Set cue and fade points using the visual editor. The timestamps will be saved to the corresponding fields in the advanced playback settings.') }}
{{
$gettext('Set cue and fade points using the visual editor. The timestamps will be saved to the corresponding fields in the advanced playback settings.')
}}
</p>
<b-form-group>
@ -43,7 +44,6 @@
</b-button>
</b-button-group>
</b-form-group>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Mount Points') }}</h2>
@ -58,7 +57,6 @@
<edit-modal ref="editModal" :create-url="listUrl" :new-intro-url="newIntroUrl"
:show-advanced="showAdvanced" :station-frontend-type="stationFrontendType"
@relist="relist" @needs-restart="mayNeedRestart"></edit-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<b-row class="align-items-center">
@ -130,7 +129,6 @@
<reorder-modal ref="reorderModal"></reorder-modal>
<import-modal ref="importModal" @relist="relist"></import-modal>
<clone-modal ref="cloneModal" @relist="relist" @needs-restart="mayNeedRestart"></clone-modal>
</div>
</template>
<script>

View File

@ -1,8 +1,7 @@
<template>
<div>
<episodes-view v-if="activePodcast" v-bind="$props" :podcast="activePodcast" @clear-podcast="onClearPodcast"></episodes-view>
<episodes-view v-if="activePodcast" v-bind="$props" :podcast="activePodcast"
@clear-podcast="onClearPodcast"></episodes-view>
<list-view v-else v-bind="$props" @select-podcast="onSelectPodcast"></list-view>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<b-row class="row align-items-center">
@ -67,7 +66,6 @@
<edit-modal ref="editEpisodeModal" :create-url="podcast.links.episodes" :station-time-zone="stationTimeZone"
:new-art-url="podcast.links.episode_new_art" :new-media-url="podcast.links.episode_new_media"
:locale="locale" :podcast-id="podcast.id" @relist="relist"></edit-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<b-row class="align-items-center">
@ -51,7 +50,6 @@
<edit-modal ref="editPodcastModal" :create-url="listUrl" :station-time-zone="stationTimeZone"
:new-art-url="newArtUrl" :language-options="languageOptions"
:categories-options="categoriesOptions" @relist="relist"></edit-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<profile-header v-bind="$props" :np="np"></profile-header>
<div class="row" id="profile">
@ -30,7 +29,6 @@
</template>
</div>
</div>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Upcoming Song Queue') }}</h2>
@ -51,7 +50,6 @@
</b-card>
<queue-logs-modal ref="logs_modal"></queue-logs-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Remote Relays') }}</h2>
@ -51,7 +50,6 @@
<remote-edit-modal ref="editModal" :create-url="listUrl"
@relist="relist" @needs-restart="mayNeedRestart"></remote-edit-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Song Requests') }}</h2>
@ -50,7 +49,6 @@
</template>
</data-table>
</b-card>
</div>
</template>
<script>

View File

@ -1,12 +1,13 @@
<template>
<div>
<b-card no-body>
<b-card-header header-bg-variant="primary-dark">
<h2 class="card-title">{{ $gettext('Web Hooks') }}</h2>
</b-card-header>
<info-card>
{{ $gettext('Web hooks let you connect to external web services and broadcast changes to your station to them.') }}
{{
$gettext('Web hooks let you connect to external web services and broadcast changes to your station to them.')
}}
</info-card>
<b-card-body body-class="card-padding-sm">
@ -55,7 +56,6 @@
<edit-modal ref="editModal" :create-url="listUrl" :webhook-types="webhookTypes"
:trigger-titles="langTriggerTitles" :trigger-descriptions="langTriggerDescriptions"
:now-playing-url="nowPlayingUrl" @relist="relist"></edit-modal>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-group>
<b-form-row>
<b-wrapped-form-group class="col-md-12" id="form_config_webhook_url" :field="form.config.webhook_url"
@ -62,7 +61,6 @@
</b-wrapped-form-group>
</b-form-row>
</b-form-group>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-group>
<b-form-row>
<b-wrapped-form-group class="col-md-12" id="form_config_to" :field="form.config.to">
@ -30,7 +29,6 @@
</b-wrapped-form-group>
</b-form-row>
</b-form-group>
</div>
</template>
<script>

View File

@ -1,15 +1,18 @@
<template>
<div>
<b-form-group>
<template #label>
{{ $gettext('Web Hook Details') }}
</template>
<p class="card-text">
{{ $gettext('Web hooks automatically send a HTTP POST request to the URL you specify to notify it any time one of the triggers you specify occurs on your station.') }}
{{
$gettext('Web hooks automatically send a HTTP POST request to the URL you specify to notify it any time one of the triggers you specify occurs on your station.')
}}
</p>
<p class="card-text">
{{ $gettext('The body of the POST message is the exact same as the NowPlaying API response for your station.') }}
{{
$gettext('The body of the POST message is the exact same as the NowPlaying API response for your station.')
}}
</p>
<ul>
<li>
@ -19,7 +22,9 @@
</li>
</ul>
<p class="card-text">
{{ $gettext('In order to process quickly, web hooks have a short timeout, so the responding service should be optimized to handle the request in under 2 seconds.') }}
{{
$gettext('In order to process quickly, web hooks have a short timeout, so the responding service should be optimized to handle the request in under 2 seconds.')
}}
</p>
</b-form-group>
@ -62,12 +67,13 @@
{{ $gettext('Optional: Request Timeout (Seconds)') }}
</template>
<template #description="{lang}">
{{ $gettext('The number of seconds to wait for a response from the remote server before cancelling the request.') }}
{{
$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>
</b-form-group>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-group>
<template #label>
{{ $gettext('Mastodon Account Details') }}
@ -69,7 +68,6 @@
</b-form-group>
<common-social-post-fields :form="form" :now-playing-url="nowPlayingUrl"></common-social-post-fields>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-group>
<b-form-row>
<b-wrapped-form-group class="col-md-6" id="form_config_bot_token" :field="form.config.bot_token">
@ -63,7 +62,6 @@
</b-wrapped-form-group>
</b-form-row>
</b-form-group>
</div>
</template>
<script>

View File

@ -1,5 +1,4 @@
<template>
<div>
<b-form-group>
<template #label>
{{ $gettext('Twitter Account Details') }}
@ -64,7 +63,6 @@
</b-form-group>
<common-social-post-fields :form="form" :now-playing-url="nowPlayingUrl"></common-social-post-fields>
</div>
</template>
<script>