mirror of
https://github.com/koel/koel
synced 2024-12-25 03:53:05 +00:00
18 lines
531 B
Vue
18 lines
531 B
Vue
<template>
|
|
<section>
|
|
<h1>Top Artists</h1>
|
|
<ol class="two-cols top-artist-list">
|
|
<li v-for="artist in artists" :key="artist.id">
|
|
<ArtistCard :artist="artist" layout="compact"/>
|
|
</li>
|
|
</ol>
|
|
</section>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { defineAsyncComponent, toRef } from 'vue'
|
|
import { overviewStore } from '@/stores'
|
|
|
|
const ArtistCard = defineAsyncComponent(() => import('@/components/artist/ArtistCard.vue'))
|
|
const artists = toRef(overviewStore.state, 'mostPlayedArtists')
|
|
</script>
|