mirror of
https://github.com/koel/koel
synced 2024-12-24 19:43:06 +00:00
20 lines
559 B
Vue
20 lines
559 B
Vue
<template>
|
|
<section>
|
|
<h1>Top Artists</h1>
|
|
<ol v-if="artists.length" class="two-cols top-artist-list">
|
|
<li v-for="artist in artists" :key="artist.id">
|
|
<ArtistCard :artist="artist" layout="compact"/>
|
|
</li>
|
|
</ol>
|
|
<p v-else class="text-secondary">No artists found.</p>
|
|
</section>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { toRef } from 'vue'
|
|
import { overviewStore } from '@/stores'
|
|
|
|
import ArtistCard from '@/components/artist/ArtistCard.vue'
|
|
|
|
const artists = toRef(overviewStore.state, 'mostPlayedArtists')
|
|
</script>
|