2022-06-10 10:47:46 +00:00
|
|
|
<template>
|
|
|
|
<section>
|
|
|
|
<h1>Top Albums</h1>
|
|
|
|
<ol class="two-cols top-album-list">
|
|
|
|
<li v-for="album in albums" :key="album.id">
|
|
|
|
<AlbumCard :album="album" layout="compact"/>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2022-07-07 18:05:46 +00:00
|
|
|
import { toRef } from 'vue'
|
2022-06-10 10:47:46 +00:00
|
|
|
import { overviewStore } from '@/stores'
|
|
|
|
|
2022-07-07 18:05:46 +00:00
|
|
|
import AlbumCard from '@/components/album/AlbumCard.vue'
|
2022-06-10 10:47:46 +00:00
|
|
|
|
|
|
|
const albums = toRef(overviewStore.state, 'mostPlayedAlbums')
|
|
|
|
</script>
|