mirror of
https://github.com/koel/koel
synced 2024-12-21 10:03:10 +00:00
23 lines
545 B
Vue
23 lines
545 B
Vue
<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>
|
|
import { defineAsyncComponent, toRef } from 'vue'
|
|
import { overviewStore } from '@/stores'
|
|
|
|
const AlbumCard = defineAsyncComponent(() => import('@/components/album/AlbumCard.vue'))
|
|
|
|
const albums = toRef(overviewStore.state, 'mostPlayedAlbums')
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|