Upgrade Prettier to 2.0.4. Reformatted all JS files

This commit is contained in:
Deluan
2020-04-20 09:09:29 -04:00
parent de115ff466
commit b3f70538a9
55 changed files with 318 additions and 286 deletions
+5 -5
View File
@@ -29,7 +29,7 @@ const Player = () => {
showMediaSession: true,
defaultPosition: {
top: 300,
left: 120
left: 120,
},
locale: {
playListsText: translate('player.playListsText'),
@@ -55,9 +55,9 @@ const Player = () => {
order: translate('player.playModeText.order'),
orderLoop: translate('player.playModeText.orderLoop'),
singleLoop: translate('player.playModeText.singleLoop'),
shufflePlay: translate('player.playModeText.shufflePlay')
}
}
shufflePlay: translate('player.playModeText.shufflePlay'),
},
},
}
const addQueueToOptions = (queue) => {
@@ -65,7 +65,7 @@ const Player = () => {
...defaultOptions,
autoPlay: true,
clearPriorAudioLists: queue.clear,
audioLists: queue.queue.map((item) => item)
audioLists: queue.queue.map((item) => item),
}
}
+7 -7
View File
@@ -13,33 +13,33 @@ const mapToAudioLists = (item) => ({
name: item.title,
singer: item.artist,
cover: subsonic.url('getCoverArt', item.id, { size: 300 }),
musicSrc: subsonic.url('stream', item.id, { ts: true })
musicSrc: subsonic.url('stream', item.id, { ts: true }),
})
const addTrack = (data) => ({
type: PLAYER_ADD_TRACK,
data
data,
})
const setTrack = (data) => ({
type: PLAYER_SET_TRACK,
data
data,
})
const playAlbum = (id, data) => ({
type: PLAYER_PLAY_ALBUM,
data,
id
id,
})
const syncQueue = (data) => ({
type: PLAYER_SYNC_QUEUE,
data
data,
})
const scrobbled = (id) => ({
type: PLAYER_SCROBBLE,
data: id
data: id,
})
const playQueueReducer = (
@@ -61,7 +61,7 @@ const playQueueReducer = (
const newQueue = previousState.queue.map((item) => {
return {
...item,
scrobbled: item.scrobbled || item.trackId === data
scrobbled: item.scrobbled || item.trackId === data,
}
})
return { queue: newQueue, clear: false }