diff --git a/src/components/ArtistExtras.svelte b/src/components/ArtistExtras.svelte new file mode 100644 index 0000000..8f8ab79 --- /dev/null +++ b/src/components/ArtistExtras.svelte @@ -0,0 +1,821 @@ + + +{#if artist} + {#if part === "latest"} + {#if latest} + +

Latest release

+
+
+
+
+
+ +
+
+ Latest · {(latest.record_type ?? "album").toUpperCase()} +
+
{latest.title}
+
+ {year(latest)} + {#if latest.track_count} + · + {latest.track_count} tracks + {/if} +
+
+ + +
+
+
+
+ {/if} + {:else} +
+ {#if timeline} +
+

Releases by year

+ + {timeline.last - timeline.first + 1} years · {timeline.total} releases + +
+
+ {#each timeline.cols as c (c.year)} +
+ + {String(c.year).slice(2)} +
+ {/each} +
+ {/if} + + {#if related.length} +

Fans also like

+
+ {#each related as a (a.id)} + + {/each} +
+ {/if} + + {#if owned.length} +

In your library

+
+ {#each owned as o (o.album.id)} + + {/each} +
+ {/if} + + {#if bio || profile?.listeners || profile?.tags?.length} +

About

+
+ {#if profile?.listeners || profile?.plays} +
+ {#if profile.listeners} + {fmt(profile.listeners)}listeners + {/if} + {#if profile.plays} + {fmt(profile.plays)}plays + {/if} +
+ {/if} + {#if bio}

{bio}

{/if} + {#if profile?.tags?.length} +
+ {#each profile.tags as t (t)}{t}{/each} +
+ {/if} +
+ {/if} + + + +
+ {/if} +{/if} + + diff --git a/src/views/CatalogArtist.svelte b/src/views/CatalogArtist.svelte index cf4de75..57dceb8 100644 --- a/src/views/CatalogArtist.svelte +++ b/src/views/CatalogArtist.svelte @@ -1,5 +1,6 @@