mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-11 06:20:17 -05:00
[web] Lint source code
This commit is contained in:
@@ -81,7 +81,7 @@ import webapi from '@/webapi'
|
||||
const PAGE_SIZE = 50
|
||||
|
||||
const dataObject = {
|
||||
load: function (to) {
|
||||
load(to) {
|
||||
const spotifyApi = new SpotifyWebApi()
|
||||
spotifyApi.setAccessToken(store.state.spotify.webapi_token)
|
||||
return Promise.all([
|
||||
|
||||
@@ -60,9 +60,7 @@ const dataObject = {
|
||||
vm.playlists = new GroupByList(response.data.playlists)
|
||||
vm.tracks = new GroupByList(response.data.tracks)
|
||||
} else {
|
||||
vm.dirs = vm.$store.state.config.directories.map((dir) => {
|
||||
return { path: dir }
|
||||
})
|
||||
vm.dirs = vm.$store.state.config.directories.map((dir) => ({ path: dir }))
|
||||
vm.playlists = new GroupByList()
|
||||
vm.tracks = new GroupByList()
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ const dataObject = {
|
||||
type: 'album',
|
||||
expression:
|
||||
'media_kind is music having track_count > 3 order by time_added desc',
|
||||
limit: limit
|
||||
limit
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ export default {
|
||||
)
|
||||
// Filters out null tracks and adds a position to the playable tracks
|
||||
data.items.forEach((item) => {
|
||||
const track = item.track
|
||||
const { track } = item
|
||||
if (track) {
|
||||
if (track.is_playable) {
|
||||
track.position = ++position
|
||||
|
||||
Reference in New Issue
Block a user