You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
828 B
50 lines
828 B
<template>
|
|
<div class="newAlbum">
|
|
<h1>{{ $t('home.newAlbum') }}</h1>
|
|
<div class="playlist-row">
|
|
<div class="playlists">
|
|
<CoverRow
|
|
type="album"
|
|
:items="albums"
|
|
sub-text="artist"
|
|
:show-play-button="true"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { newAlbums } from '@/api/album';
|
|
import NProgress from 'nprogress';
|
|
|
|
import CoverRow from '@/components/CoverRow.vue';
|
|
|
|
export default {
|
|
components: {
|
|
CoverRow,
|
|
},
|
|
data() {
|
|
return {
|
|
albums: [],
|
|
};
|
|
},
|
|
created() {
|
|
newAlbums({
|
|
area: 'EA',
|
|
limit: 100,
|
|
}).then(data => {
|
|
this.albums = data.albums;
|
|
NProgress.done();
|
|
});
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
h1 {
|
|
color: var(--color-text);
|
|
font-size: 56px;
|
|
}
|
|
</style>
|