mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 04:42:58 -05:00
[web] Fix linting errors
This commit is contained in:
@@ -14,6 +14,7 @@ import { renderSVG } from '@/lib/SVGRenderer'
|
||||
export default {
|
||||
name: 'CoverArtwork',
|
||||
props: ['artist', 'album', 'artwork_url', 'maxwidth', 'maxheight'],
|
||||
emits: ['click'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
export default {
|
||||
name: 'DropdownMenu',
|
||||
|
||||
// eslint-disable-next-line vue/prop-name-casing
|
||||
props: ['modelValue', 'options'],
|
||||
emits: ['update:modelValue'],
|
||||
|
||||
|
||||
@@ -119,6 +119,7 @@ export default {
|
||||
components: { ListItemAlbum, ModalDialogAlbum, ModalDialog, CoverArtwork },
|
||||
|
||||
props: ['albums', 'media_kind'],
|
||||
emits: ['play-count-changed', 'podcast-deleted'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -50,7 +50,8 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'ModalDialog',
|
||||
props: ['show', 'title', 'ok_action', 'delete_action', 'close_action']
|
||||
props: ['show', 'title', 'ok_action', 'delete_action', 'close_action'],
|
||||
emits: ['delete', 'close', 'ok']
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogAddRss',
|
||||
props: ['show'],
|
||||
emits: ['close', 'podcast-added'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -69,6 +69,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogAddUrlStream',
|
||||
props: ['show'],
|
||||
emits: ['close'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -100,6 +100,7 @@ export default {
|
||||
name: 'ModalDialogAlbum',
|
||||
components: { CoverArtwork },
|
||||
props: ['show', 'album', 'media_kind', 'new_tracks'],
|
||||
emits: ['close', 'remove-podcast', 'play-count-changed'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -64,6 +64,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogArtist',
|
||||
props: ['show', 'artist'],
|
||||
emits: ['close'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -56,6 +56,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogComposer',
|
||||
props: ['show', 'composer'],
|
||||
emits: ['close'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -42,6 +42,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogDirectory',
|
||||
props: ['show', 'directory'],
|
||||
emits: ['close'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -44,6 +44,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogGenre',
|
||||
props: ['show', 'genre'],
|
||||
emits: ['close'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -54,6 +54,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogPlaylist',
|
||||
props: ['show', 'playlist', 'uris'],
|
||||
emits: ['close'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -65,6 +65,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogPlaylistSave',
|
||||
props: ['show'],
|
||||
emits: ['close'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -119,6 +119,7 @@ import SpotifyWebApi from 'spotify-web-api-js'
|
||||
export default {
|
||||
name: 'ModalDialogQueueItem',
|
||||
props: ['show', 'item'],
|
||||
emits: ['close'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -58,6 +58,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'ModalDialogRemotePairing',
|
||||
props: ['show'],
|
||||
emits: ['close'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -156,6 +156,7 @@ export default {
|
||||
name: 'ModalDialogTrack',
|
||||
|
||||
props: ['show', 'track'],
|
||||
emits: ['close', 'play-count-changed'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -49,6 +49,7 @@ export default {
|
||||
name: 'ModalDialogUpdate',
|
||||
components: { ModalDialog },
|
||||
props: ['show'],
|
||||
emits: ['close'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -102,14 +102,7 @@
|
||||
<navbar-item-link to="/settings/webinterface">
|
||||
Settings
|
||||
</navbar-item-link>
|
||||
<a
|
||||
class="navbar-item"
|
||||
@click.stop.prevent="
|
||||
show_update_dialog = true
|
||||
show_settings_menu = false
|
||||
show_burger_menu = false
|
||||
"
|
||||
>
|
||||
<a class="navbar-item" @click.stop.prevent="open_update_dialog()">
|
||||
Update Library
|
||||
</a>
|
||||
<navbar-item-link to="/about"> About </navbar-item-link>
|
||||
@@ -253,6 +246,12 @@ export default {
|
||||
methods: {
|
||||
on_click_outside_settings() {
|
||||
this.show_settings_menu = !this.show_settings_menu
|
||||
},
|
||||
|
||||
open_update_dialog() {
|
||||
this.show_update_dialog = true
|
||||
this.show_settings_menu = false
|
||||
this.show_burger_menu = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
import * as types from '@/store/mutation_types'
|
||||
|
||||
export default {
|
||||
name: 'Notifications',
|
||||
name: 'NotificationList',
|
||||
components: {},
|
||||
|
||||
data() {
|
||||
@@ -73,6 +73,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'SpotifyModalDialogAlbum',
|
||||
props: ['show', 'album'],
|
||||
emits: ['close'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -57,6 +57,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'SpotifyModalDialogArtist',
|
||||
props: ['show', 'artist'],
|
||||
emits: ['close'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -60,6 +60,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'SpotifyModalDialogPlaylist',
|
||||
props: ['show', 'playlist'],
|
||||
emits: ['close'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -81,6 +81,7 @@ import webapi from '@/webapi'
|
||||
export default {
|
||||
name: 'SpotifyModalDialogTrack',
|
||||
props: ['show', 'track', 'album'],
|
||||
emits: ['close'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
Reference in New Issue
Block a user