[web] Lint source code

This commit is contained in:
Alain Nussbaumer 2024-03-24 11:01:06 +01:00
parent 979f0c2a33
commit 439867b95b
4 changed files with 29 additions and 36 deletions

View File

@ -52,8 +52,8 @@ export default {
data() {
return {
show_details_modal: false,
selected_directory: ''
selected_directory: '',
show_details_modal: false
}
},
@ -67,6 +67,16 @@ export default {
},
methods: {
open_dialog(directory) {
this.selected_directory = directory.path
this.show_details_modal = true
},
open_directory(directory) {
this.$router.push({
name: 'files',
query: { directory: directory.path }
})
},
open_parent_directory() {
const parent = this.current_directory.slice(
0,
@ -88,18 +98,6 @@ export default {
}
})
}
},
open_directory(directory) {
this.$router.push({
name: 'files',
query: { directory: directory.path }
})
},
open_dialog(directory) {
this.selected_directory = directory.path
this.show_details_modal = true
}
}
}

View File

@ -58,12 +58,11 @@ export default {
},
computed: {
state() {
return this.$store.state.player
},
is_next() {
return this.current_position < 0 || this.position >= this.current_position
},
state() {
return this.$store.state.player
}
},

View File

@ -79,27 +79,24 @@ export default {
emits: ['close'],
methods: {
play() {
this.$emit('close')
webapi.player_play_uri(this.playlist.uri, false)
},
queue_add() {
this.$emit('close')
webapi.queue_add(this.playlist.uri)
},
queue_add_next() {
this.$emit('close')
webapi.queue_add_next(this.playlist.uri)
},
open_playlist() {
this.$emit('close')
this.$router.push({
name: 'playlist-spotify',
params: { id: this.playlist.id }
})
},
play() {
this.$emit('close')
webapi.player_play_uri(this.playlist.uri, false)
},
queue_add() {
this.$emit('close')
webapi.queue_add(this.playlist.uri)
},
queue_add_next() {
this.$emit('close')
webapi.queue_add_next(this.playlist.uri)
}
}
}

View File

@ -141,7 +141,6 @@ export default {
offset: 0,
selected_album: {},
show_album_details_modal: false,
show_details_modal: false,
total: 0
}
@ -173,9 +172,9 @@ export default {
spotifyApi.setAccessToken(this.$store.state.spotify.webapi_token)
spotifyApi
.getArtistAlbums(this.artist.id, {
include_groups: 'album,single',
limit: PAGE_SIZE,
offset: this.offset,
include_groups: 'album,single'
offset: this.offset
})
.then((data) => {
this.append_albums(data)