added vue transitions, added recent radio stations
This commit is contained in:
parent
56b20e7080
commit
9e8f972e93
3 changed files with 110 additions and 55 deletions
|
@ -1,6 +1,6 @@
|
|||
Vue.component('sidebar-library-item', {
|
||||
template: '#sidebar-library-item',
|
||||
props: ['name', 'page'],
|
||||
props: ['name', 'page', 'cd-click'],
|
||||
methods: {}
|
||||
});
|
||||
|
||||
|
@ -46,6 +46,9 @@ const app = new Vue({
|
|||
playerLCD: {
|
||||
playbackDuration: 0
|
||||
},
|
||||
radio: {
|
||||
personal: []
|
||||
},
|
||||
playlists: {
|
||||
listing: [],
|
||||
details: {}
|
||||
|
@ -74,6 +77,13 @@ const app = new Vue({
|
|||
return []
|
||||
}
|
||||
},
|
||||
async getRadioStations() {
|
||||
this.radio.personal = await this.mk.api.recentRadioStations("",
|
||||
{
|
||||
"platform": "web",
|
||||
"art[url]": "f"
|
||||
});
|
||||
},
|
||||
unauthorize() {
|
||||
this.mk.unauthorize()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue