mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 04:42:58 -05:00
[web-src] Update to Vue CLI 4 and fix linter issues
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'ListItemDirectory',
|
||||
props: [ 'directory' ]
|
||||
props: ['directory']
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'ListItemGenre',
|
||||
props: [ 'genre' ]
|
||||
props: ['genre']
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
webapi.player_play({ 'item_id': this.item.id })
|
||||
webapi.player_play({ item_id: this.item.id })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'ModalDialog',
|
||||
props: [ 'show' ]
|
||||
props: ['show']
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogAddRss',
|
||||
props: [ 'show' ],
|
||||
props: ['show'],
|
||||
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -49,7 +49,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogAddUrlStream',
|
||||
props: [ 'show' ],
|
||||
props: ['show'],
|
||||
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -51,7 +51,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogAlbum',
|
||||
props: [ 'show', 'album', 'media_kind' ],
|
||||
props: ['show', 'album', 'media_kind'],
|
||||
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -44,7 +44,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogArtist',
|
||||
props: [ 'show', 'artist' ],
|
||||
props: ['show', 'artist'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -34,7 +34,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogDirectory',
|
||||
props: [ 'show', 'directory' ],
|
||||
props: ['show', 'directory'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -34,7 +34,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogGenre',
|
||||
props: [ 'show', 'genre' ],
|
||||
props: ['show', 'genre'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -44,7 +44,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogPlaylist',
|
||||
props: [ 'show', 'playlist' ],
|
||||
props: ['show', 'playlist'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -46,7 +46,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogPlaylistSave',
|
||||
props: [ 'show' ],
|
||||
props: ['show'],
|
||||
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -79,7 +79,7 @@ import SpotifyWebApi from 'spotify-web-api-js'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogQueueItem',
|
||||
props: [ 'show', 'item' ],
|
||||
props: ['show', 'item'],
|
||||
|
||||
data () {
|
||||
return {
|
||||
@@ -95,7 +95,7 @@ export default {
|
||||
|
||||
play: function () {
|
||||
this.$emit('close')
|
||||
webapi.player_play({ 'item_id': this.item.id })
|
||||
webapi.player_play({ item_id: this.item.id })
|
||||
},
|
||||
|
||||
open_album: function () {
|
||||
|
||||
@@ -41,7 +41,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'ModalDialogRemotePairing',
|
||||
props: [ 'show' ],
|
||||
props: ['show'],
|
||||
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -152,14 +152,14 @@ export default {
|
||||
},
|
||||
|
||||
mark_new: function () {
|
||||
webapi.library_track_update(this.track.id, { 'play_count': 'reset' }).then(() => {
|
||||
webapi.library_track_update(this.track.id, { play_count: 'reset' }).then(() => {
|
||||
this.$emit('play_count_changed')
|
||||
this.$emit('close')
|
||||
})
|
||||
},
|
||||
|
||||
mark_played: function () {
|
||||
webapi.library_track_update(this.track.id, { 'play_count': 'increment' }).then(() => {
|
||||
webapi.library_track_update(this.track.id, { play_count: 'increment' }).then(() => {
|
||||
this.$emit('play_count_changed')
|
||||
this.$emit('close')
|
||||
})
|
||||
|
||||
@@ -9,7 +9,7 @@ import * as types from '@/store/mutation_types'
|
||||
|
||||
export default {
|
||||
name: 'NavbarItemLink',
|
||||
props: [ 'to' ],
|
||||
props: ['to'],
|
||||
|
||||
computed: {
|
||||
is_active () {
|
||||
|
||||
@@ -32,7 +32,7 @@ export default {
|
||||
name: 'NavbarItemOutput',
|
||||
components: { RangeSlider },
|
||||
|
||||
props: [ 'output' ],
|
||||
props: ['output'],
|
||||
|
||||
computed: {
|
||||
type_class () {
|
||||
@@ -61,7 +61,7 @@ export default {
|
||||
|
||||
set_enabled: function () {
|
||||
const values = {
|
||||
'selected': !this.output.selected
|
||||
selected: !this.output.selected
|
||||
}
|
||||
webapi.output_update(this.output.id, values)
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@ export default {
|
||||
name: 'PlayerButtonPlayPause',
|
||||
|
||||
props: {
|
||||
'icon_style': String,
|
||||
'show_disabled_message': Boolean
|
||||
icon_style: String,
|
||||
show_disabled_message: Boolean
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
||||
@@ -51,7 +51,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'SpotifyModalDialogAlbum',
|
||||
props: [ 'show', 'album' ],
|
||||
props: ['show', 'album'],
|
||||
|
||||
data () {
|
||||
return {
|
||||
|
||||
@@ -44,7 +44,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'SpotifyModalDialogArtist',
|
||||
props: [ 'show', 'artist' ],
|
||||
props: ['show', 'artist'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -48,7 +48,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'SpotifyModalDialogPlaylist',
|
||||
props: [ 'show', 'playlist' ],
|
||||
props: ['show', 'playlist'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
@@ -63,7 +63,7 @@ import webapi from '@/webapi'
|
||||
|
||||
export default {
|
||||
name: 'SpotifyModalDialogTrack',
|
||||
props: [ 'show', 'track', 'album' ],
|
||||
props: ['show', 'track', 'album'],
|
||||
|
||||
methods: {
|
||||
play: function () {
|
||||
|
||||
Reference in New Issue
Block a user