Fix auto-fixable linter issues
This commit is contained in:
parent
73b1dc8f30
commit
bbdb3dcb9d
93 changed files with 249 additions and 224 deletions
|
|
@ -71,7 +71,7 @@ const store: Module<State, RootState> = {
|
|||
page_size: 50,
|
||||
ordering: '-creation_date'
|
||||
}
|
||||
const promise = axios.get('favorites/tracks/all/', { params: params })
|
||||
const promise = axios.get('favorites/tracks/all/', { params })
|
||||
return promise.then((response) => {
|
||||
logger.info('Fetched a batch of ' + response.data.results.length + ' favorites')
|
||||
response.data.results.forEach((result: { track: string }) => {
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export default createStore<RootState>({
|
|||
mbid: track.mbid,
|
||||
uploads: track.uploads,
|
||||
listen_url: track.listen_url,
|
||||
artist: artist,
|
||||
artist,
|
||||
album: {}
|
||||
}
|
||||
if (track.album) {
|
||||
|
|
@ -119,7 +119,7 @@ export default createStore<RootState>({
|
|||
title: track.album.title,
|
||||
mbid: track.album.mbid,
|
||||
cover: track.album.cover,
|
||||
artist: artist
|
||||
artist
|
||||
}
|
||||
}
|
||||
return data
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ const store: Module<State, RootState> = {
|
|||
commit('follows', { library: uuid, follow: null })
|
||||
}, () => {
|
||||
logger.info('Error while unsubscribing from library')
|
||||
commit('follows', { library: uuid, follow: follow })
|
||||
commit('follows', { library: uuid, follow })
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ const store: Module<State, RootState> = {
|
|||
page_size: 100,
|
||||
ordering: '-creation_date'
|
||||
}
|
||||
promise = axios.get('moderation/content-filters/', { params: params })
|
||||
promise = axios.get('moderation/content-filters/', { params })
|
||||
}
|
||||
return promise.then((response) => {
|
||||
logger.info('Fetched a batch of ' + response.data.results.length + ' filters')
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ const store: Module<State, RootState> = {
|
|||
currentTime: 0,
|
||||
errored: false,
|
||||
bufferProgress: 0,
|
||||
looping: 0
|
||||
looping: 0
|
||||
},
|
||||
mutations: {
|
||||
reset (state) {
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ const store: Module<State, RootState> = {
|
|||
|
||||
const total = tracks.length
|
||||
tracks.forEach((track: Track, i: number) => {
|
||||
const promise = dispatch('append', { track: track, index: index })
|
||||
const promise = dispatch('append', { track, index })
|
||||
index += 1
|
||||
|
||||
if (callback && i + 1 === total) {
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ const store: Module<State, RootState> = {
|
|||
radio_type: type,
|
||||
related_object_id: objectId,
|
||||
custom_radio: customRadioId,
|
||||
config: config
|
||||
config
|
||||
}
|
||||
|
||||
if (clientOnly) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue