[web] Fix linting errors

This commit is contained in:
chme
2022-02-19 07:05:59 +01:00
parent c78f861f45
commit 6519b18aa0
28 changed files with 51 additions and 21 deletions

View File

@@ -14,6 +14,7 @@ import { renderSVG } from '@/lib/SVGRenderer'
export default {
name: 'CoverArtwork',
props: ['artist', 'album', 'artwork_url', 'maxwidth', 'maxheight'],
emits: ['click'],
data() {
return {

View File

@@ -37,6 +37,7 @@
export default {
name: 'DropdownMenu',
// eslint-disable-next-line vue/prop-name-casing
props: ['modelValue', 'options'],
emits: ['update:modelValue'],

View File

@@ -119,6 +119,7 @@ export default {
components: { ListItemAlbum, ModalDialogAlbum, ModalDialog, CoverArtwork },
props: ['albums', 'media_kind'],
emits: ['play-count-changed', 'podcast-deleted'],
data() {
return {

View File

@@ -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>

View File

@@ -69,6 +69,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogAddRss',
props: ['show'],
emits: ['close', 'podcast-added'],
data() {
return {

View File

@@ -69,6 +69,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogAddUrlStream',
props: ['show'],
emits: ['close'],
data() {
return {

View File

@@ -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 {

View File

@@ -64,6 +64,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogArtist',
props: ['show', 'artist'],
emits: ['close'],
methods: {
play: function () {

View File

@@ -56,6 +56,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogComposer',
props: ['show', 'composer'],
emits: ['close'],
methods: {
play: function () {

View File

@@ -42,6 +42,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogDirectory',
props: ['show', 'directory'],
emits: ['close'],
methods: {
play: function () {

View File

@@ -44,6 +44,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogGenre',
props: ['show', 'genre'],
emits: ['close'],
methods: {
play: function () {

View File

@@ -54,6 +54,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogPlaylist',
props: ['show', 'playlist', 'uris'],
emits: ['close'],
methods: {
play: function () {

View File

@@ -65,6 +65,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogPlaylistSave',
props: ['show'],
emits: ['close'],
data() {
return {

View File

@@ -119,6 +119,7 @@ import SpotifyWebApi from 'spotify-web-api-js'
export default {
name: 'ModalDialogQueueItem',
props: ['show', 'item'],
emits: ['close'],
data() {
return {

View File

@@ -58,6 +58,7 @@ import webapi from '@/webapi'
export default {
name: 'ModalDialogRemotePairing',
props: ['show'],
emits: ['close'],
data() {
return {

View File

@@ -156,6 +156,7 @@ export default {
name: 'ModalDialogTrack',
props: ['show', 'track'],
emits: ['close', 'play-count-changed'],
data() {
return {

View File

@@ -49,6 +49,7 @@ export default {
name: 'ModalDialogUpdate',
components: { ModalDialog },
props: ['show'],
emits: ['close'],
data() {
return {

View File

@@ -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
}
}
}

View File

@@ -23,7 +23,7 @@
import * as types from '@/store/mutation_types'
export default {
name: 'Notifications',
name: 'NotificationList',
components: {},
data() {

View File

@@ -73,6 +73,7 @@ import webapi from '@/webapi'
export default {
name: 'SpotifyModalDialogAlbum',
props: ['show', 'album'],
emits: ['close'],
data() {
return {

View File

@@ -57,6 +57,7 @@ import webapi from '@/webapi'
export default {
name: 'SpotifyModalDialogArtist',
props: ['show', 'artist'],
emits: ['close'],
methods: {
play: function () {

View File

@@ -60,6 +60,7 @@ import webapi from '@/webapi'
export default {
name: 'SpotifyModalDialogPlaylist',
props: ['show', 'playlist'],
emits: ['close'],
methods: {
play: function () {

View File

@@ -81,6 +81,7 @@ import webapi from '@/webapi'
export default {
name: 'SpotifyModalDialogTrack',
props: ['show', 'track', 'album'],
emits: ['close'],
methods: {
play: function () {