mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
[web] Remove unused functions
This commit is contained in:
parent
9964018f0e
commit
6b37de78ba
@ -137,12 +137,6 @@ export default {
|
|||||||
name: 'PageSettingsOnlineServices',
|
name: 'PageSettingsOnlineServices',
|
||||||
components: { ContentWithHeading, TabsSettings },
|
components: { ContentWithHeading, TabsSettings },
|
||||||
|
|
||||||
filters: {
|
|
||||||
join(array) {
|
|
||||||
return array.join(', ')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
lastfm_login: {
|
lastfm_login: {
|
||||||
@ -157,18 +151,9 @@ export default {
|
|||||||
lastfm() {
|
lastfm() {
|
||||||
return this.$store.state.lastfm
|
return this.$store.state.lastfm
|
||||||
},
|
},
|
||||||
|
|
||||||
spotify() {
|
spotify() {
|
||||||
return this.$store.state.spotify
|
return this.$store.state.spotify
|
||||||
},
|
},
|
||||||
|
|
||||||
spotify_required_scope() {
|
|
||||||
if (this.spotify.webapi_required_scope) {
|
|
||||||
return this.spotify.webapi_required_scope.split(' ')
|
|
||||||
}
|
|
||||||
return []
|
|
||||||
},
|
|
||||||
|
|
||||||
spotify_missing_scope() {
|
spotify_missing_scope() {
|
||||||
if (
|
if (
|
||||||
this.spotify.webapi_token_valid &&
|
this.spotify.webapi_token_valid &&
|
||||||
@ -182,6 +167,12 @@ export default {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
return []
|
return []
|
||||||
|
},
|
||||||
|
spotify_required_scope() {
|
||||||
|
if (this.spotify.webapi_required_scope) {
|
||||||
|
return this.spotify.webapi_required_scope.split(' ')
|
||||||
|
}
|
||||||
|
return []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -189,7 +180,6 @@ export default {
|
|||||||
logout_spotify() {
|
logout_spotify() {
|
||||||
webapi.spotify_logout()
|
webapi.spotify_logout()
|
||||||
},
|
},
|
||||||
|
|
||||||
login_lastfm() {
|
login_lastfm() {
|
||||||
webapi.lastfm_login(this.lastfm_login).then((response) => {
|
webapi.lastfm_login(this.lastfm_login).then((response) => {
|
||||||
this.lastfm_login.user = ''
|
this.lastfm_login.user = ''
|
||||||
@ -205,7 +195,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
logoutLastfm() {
|
logoutLastfm() {
|
||||||
webapi.lastfm_logout()
|
webapi.lastfm_logout()
|
||||||
}
|
}
|
||||||
|
@ -101,8 +101,6 @@ export default {
|
|||||||
name: 'PageSettingsRemotesOutputs',
|
name: 'PageSettingsRemotesOutputs',
|
||||||
components: { ContentWithHeading, TabsSettings },
|
components: { ContentWithHeading, TabsSettings },
|
||||||
|
|
||||||
filters: {},
|
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
pairing_req: { pin: '' },
|
pairing_req: { pin: '' },
|
||||||
@ -111,12 +109,11 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
pairing() {
|
|
||||||
return this.$store.state.pairing
|
|
||||||
},
|
|
||||||
|
|
||||||
outputs() {
|
outputs() {
|
||||||
return this.$store.state.outputs
|
return this.$store.state.outputs
|
||||||
|
},
|
||||||
|
pairing() {
|
||||||
|
return this.$store.state.pairing
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -124,13 +121,11 @@ export default {
|
|||||||
kickoff_pairing() {
|
kickoff_pairing() {
|
||||||
webapi.pairing_kickoff(this.pairing_req)
|
webapi.pairing_kickoff(this.pairing_req)
|
||||||
},
|
},
|
||||||
|
|
||||||
output_toggle(outputId) {
|
|
||||||
webapi.output_toggle(outputId)
|
|
||||||
},
|
|
||||||
|
|
||||||
kickoff_verification(outputId) {
|
kickoff_verification(outputId) {
|
||||||
webapi.output_update(outputId, this.verification_req)
|
webapi.output_update(outputId, this.verification_req)
|
||||||
|
},
|
||||||
|
output_toggle(outputId) {
|
||||||
|
webapi.output_toggle(outputId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user