mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
[web] Lint source code
This commit is contained in:
@@ -67,7 +67,7 @@ const dataObject = {
|
||||
index: { field: 'disc_number', type: Number }
|
||||
})
|
||||
if (vm.tracks.indices.length < 2) {
|
||||
vm.tracks.group({ index: { type: undefined } })
|
||||
vm.tracks.group()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ export default {
|
||||
},
|
||||
play() {
|
||||
webapi.player_play_uri(
|
||||
this.albums.items.map((a) => a.uri).join(','),
|
||||
this.albums.items.map((item) => item.uri).join(),
|
||||
true
|
||||
)
|
||||
}
|
||||
|
||||
@@ -62,10 +62,10 @@ const dataObject = {
|
||||
return Promise.all([
|
||||
spotifyApi.getArtist(to.params.id),
|
||||
spotifyApi.getArtistAlbums(to.params.id, {
|
||||
limit: PAGE_SIZE,
|
||||
offset: 0,
|
||||
include_groups: 'album,single',
|
||||
market: store.state.spotify.webapi_country
|
||||
limit: PAGE_SIZE,
|
||||
market: store.state.spotify.webapi_country,
|
||||
offset: 0
|
||||
})
|
||||
])
|
||||
},
|
||||
|
||||
@@ -131,7 +131,7 @@ export default {
|
||||
id: 2,
|
||||
name: this.$t('page.artist.sort.rating'),
|
||||
options: {
|
||||
criteria: [{ field: 'rating', type: Number, order: -1 }],
|
||||
criteria: [{ field: 'rating', order: -1, type: Number }],
|
||||
index: { field: 'rating', type: 'Digits' }
|
||||
}
|
||||
}
|
||||
@@ -169,7 +169,7 @@ export default {
|
||||
return this.$store.state.spotify.webapi_token_valid
|
||||
},
|
||||
track_uris() {
|
||||
return this.tracks_list.items.map((a) => a.uri).join(',')
|
||||
return this.tracks_list.items.map((item) => item.uri).join()
|
||||
},
|
||||
tracks() {
|
||||
const grouping = this.grouping_options.find(
|
||||
@@ -193,7 +193,7 @@ export default {
|
||||
},
|
||||
play() {
|
||||
webapi.player_play_uri(
|
||||
this.tracks_list.items.map((a) => a.uri).join(','),
|
||||
this.tracks_list.items.map((item) => item.uri).join(),
|
||||
true
|
||||
)
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
id: 2,
|
||||
name: this.$t('page.artists.sort.recently-added'),
|
||||
options: {
|
||||
criteria: [{ field: 'time_added', type: Date, order: -1 }],
|
||||
criteria: [{ field: 'time_added', order: -1, type: Date }],
|
||||
index: { field: 'time_added', type: Date }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ export default {
|
||||
methods: {
|
||||
play() {
|
||||
webapi.player_play_uri(
|
||||
this.albums.items.map((a) => a.uri).join(','),
|
||||
this.albums.items.map((item) => item.uri).join(),
|
||||
false
|
||||
)
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
id: 2,
|
||||
name: this.$t('page.composer.sort.rating'),
|
||||
options: {
|
||||
criteria: [{ field: 'rating', type: Number, order: -1 }],
|
||||
criteria: [{ field: 'rating', order: -1, type: Number }],
|
||||
index: { field: 'rating', type: 'Digits' }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
id: 2,
|
||||
name: this.$t('page.genre.sort.rating'),
|
||||
options: {
|
||||
criteria: [{ field: 'rating', type: Number, order: -1 }],
|
||||
criteria: [{ field: 'rating', order: -1, type: Number }],
|
||||
index: { field: 'rating', type: 'Digits' }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ const dataObject = {
|
||||
|
||||
set(vm, response) {
|
||||
vm.recently_added = new GroupedList(response.data.albums, {
|
||||
criteria: [{ field: 'time_added', type: Date, order: -1 }],
|
||||
criteria: [{ field: 'time_added', order: -1, type: Date }],
|
||||
index: { field: 'time_added', type: Date }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ export default {
|
||||
computed: {
|
||||
uris() {
|
||||
if (this.playlist.random) {
|
||||
return this.tracks.map((a) => a.uri).join(',')
|
||||
return this.tracks.map((item) => item.uri).join()
|
||||
}
|
||||
return this.playlist.uri
|
||||
}
|
||||
|
||||
@@ -65,8 +65,8 @@ const dataObject = {
|
||||
spotifyApi.getPlaylist(to.params.id),
|
||||
spotifyApi.getPlaylistTracks(to.params.id, {
|
||||
limit: PAGE_SIZE,
|
||||
offset: 0,
|
||||
market: store.state.spotify.webapi_country
|
||||
market: store.state.spotify.webapi_country,
|
||||
offset: 0
|
||||
})
|
||||
])
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user