(WIP) changes to playlist/album pages, added <artwork-material>

This commit is contained in:
booploops 2022-01-17 23:49:34 -08:00
parent fcaa891648
commit cd48e25acc
7 changed files with 269 additions and 158 deletions

View file

@ -0,0 +1,33 @@
<script type="text/x-template" id="artwork-material">
<div class="artworkMaterial">
<img :src="src"/>
<img :src="src"/>
</div>
</script>
<script>
Vue.component('artwork-material', {
template: '#artwork-material',
data: function () {
return {
src: ""
}
},
mounted() {
this.src = app.getMediaItemArtwork(this.url, this.size)
},
props: {
url: {
type: String,
required: true
},
size: {
type: [String, Number],
required: false,
default: '32'
}
},
methods: {
}
});
</script>