From 57aef1001e12ce8cefa8243894eaa5f0e90be6b1 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Sun, 1 May 2022 16:15:57 +0200 Subject: [PATCH] Remove deprecated slot syntax --- front/.eslintrc.js | 1 - front/src/components/audio/ChannelForm.vue | 5 +- front/src/components/auth/Settings.vue | 195 ++++++++++-------- .../src/components/auth/SubsonicTokenForm.vue | 72 ++++--- .../channels/UploadMetadataForm.vue | 5 +- front/src/components/common/ActionTable.vue | 63 +++--- .../src/components/common/AttachmentInput.vue | 2 +- .../components/federation/LibraryWidget.vue | 2 +- front/src/components/library/AlbumDetail.vue | 5 +- .../src/components/library/AlbumDropdown.vue | 24 ++- front/src/components/library/ArtistDetail.vue | 5 +- front/src/components/library/EditCard.vue | 34 +-- front/src/components/library/EditForm.vue | 16 +- front/src/components/library/EditList.vue | 2 +- front/src/components/library/TrackBase.vue | 34 +-- front/src/components/library/TrackDetail.vue | 5 +- .../manage/moderation/InstancePolicyForm.vue | 36 ++-- .../manage/moderation/NotesThread.vue | 34 +-- .../manage/moderation/ReportCard.vue | 20 +- front/src/components/playlists/Editor.vue | 41 ++-- front/src/views/admin/ChannelDetail.vue | 34 +-- front/src/views/admin/library/AlbumDetail.vue | 34 +-- .../src/views/admin/library/ArtistDetail.vue | 34 +-- .../src/views/admin/library/LibraryDetail.vue | 34 +-- front/src/views/admin/library/TagDetail.vue | 34 +-- front/src/views/admin/library/TrackDetail.vue | 34 +-- .../src/views/admin/library/UploadDetail.vue | 34 +-- front/src/views/auth/ProfileOverview.vue | 11 +- front/src/views/channels/DetailBase.vue | 34 +-- front/src/views/content/libraries/Form.vue | 36 ++-- front/src/views/content/libraries/Quota.vue | 108 ++++++---- front/src/views/content/remote/Card.vue | 34 +-- front/src/views/library/DetailAlbums.vue | 38 ++-- front/src/views/library/DetailOverview.vue | 38 ++-- front/src/views/library/DetailTracks.vue | 38 ++-- front/src/views/playlists/Detail.vue | 41 ++-- front/src/views/radios/Detail.vue | 41 ++-- 37 files changed, 707 insertions(+), 551 deletions(-) diff --git a/front/.eslintrc.js b/front/.eslintrc.js index 7749e1d1b..7ee26a281 100644 --- a/front/.eslintrc.js +++ b/front/.eslintrc.js @@ -36,7 +36,6 @@ module.exports = { '@typescript-eslint/ban-ts-comment': 'off', // TODO (wvffle): Enable typescript rules later - 'vue/require-explicit-emits': 'off', '@typescript-eslint/no-this-alias': 'off', '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-unused-vars': 'off', diff --git a/front/src/components/audio/ChannelForm.vue b/front/src/components/audio/ChannelForm.vue index 1259074fe..6823cd6da 100644 --- a/front/src/components/audio/ChannelForm.vue +++ b/front/src/components/audio/ChannelForm.vue @@ -99,10 +99,7 @@ :image-class="newValues.content_category === 'podcast' ? '' : 'circular'" @delete="newValues.cover = null" > - + Channel Picture diff --git a/front/src/components/auth/Settings.vue b/front/src/components/auth/Settings.vue index 3daeb9001..3196b5bc4 100644 --- a/front/src/components/auth/Settings.vue +++ b/front/src/components/auth/Settings.vue @@ -117,10 +117,7 @@ @input="submitAvatar($event)" @delete="avatar = {uuid: null}" > - + Avatar @@ -186,35 +183,41 @@ Change password -

- - Change your password? - -

-
+ + + diff --git a/front/src/views/content/remote/Card.vue b/front/src/views/content/remote/Card.vue index 3972707b4..f160d19f6 100644 --- a/front/src/views/content/remote/Card.vue +++ b/front/src/views/content/remote/Card.vue @@ -199,23 +199,29 @@ Unfollow -

- - Unfollow this library? - -

-
+ + + diff --git a/front/src/views/library/DetailAlbums.vue b/front/src/views/library/DetailAlbums.vue index 784cbf7c4..15248a9cb 100644 --- a/front/src/views/library/DetailAlbums.vue +++ b/front/src/views/library/DetailAlbums.vue @@ -7,24 +7,26 @@ :controls="false" :filters="{playable: true, ordering: '-creation_date', library: object.uuid}" > - -

- - This library is empty, you should upload something in it! - - - You may need to follow this library to see its content. - -

-
+ diff --git a/front/src/views/library/DetailOverview.vue b/front/src/views/library/DetailOverview.vue index 7316bc1a5..a6dad29ad 100644 --- a/front/src/views/library/DetailOverview.vue +++ b/front/src/views/library/DetailOverview.vue @@ -16,24 +16,26 @@ :controls="false" :filters="{playable: true, ordering: '-creation_date', library: object.uuid}" > - -

- - This library is empty, you should upload something in it! - - - You may need to follow this library to see its content. - -

-
+ diff --git a/front/src/views/library/DetailTracks.vue b/front/src/views/library/DetailTracks.vue index b808a291f..50a3773e6 100644 --- a/front/src/views/library/DetailTracks.vue +++ b/front/src/views/library/DetailTracks.vue @@ -6,24 +6,26 @@ :search="true" :filters="{playable: true, library: object.uuid, ordering: '-creation_date'}" > - -

- - This library is empty, you should upload something in it! - - - You may need to follow this library to see its content. - -

-
+ diff --git a/front/src/views/playlists/Detail.vue b/front/src/views/playlists/Detail.vue index 93e99523a..5fc264e76 100644 --- a/front/src/views/playlists/Detail.vue +++ b/front/src/views/playlists/Detail.vue @@ -81,24 +81,29 @@ Delete -

- Do you want to delete the playlist "%{ playlist }"? -

-

- - This will completely delete this playlist and cannot be undone. - -

-
- - Delete playlist - -
+ + +
diff --git a/front/src/views/radios/Detail.vue b/front/src/views/radios/Detail.vue index bfa432110..3c7751b95 100644 --- a/front/src/views/radios/Detail.vue +++ b/front/src/views/radios/Detail.vue @@ -41,24 +41,29 @@ :action="deleteRadio" > Delete -

- Do you want to delete the radio "%{ radio }"? -

-

- - This will completely delete this radio and cannot be undone. - -

-

- - Delete radio - -

+ + +