From 30b9bdf37c823d28493c779d7b5ea63de88bf74f Mon Sep 17 00:00:00 2001 From: Jakob Moser Date: Thu, 13 Nov 2025 19:42:07 +0100 Subject: [PATCH] Add artist
--- karaokatalog/ui/static/components/pieces/Artist.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 karaokatalog/ui/static/components/pieces/Artist.js diff --git a/karaokatalog/ui/static/components/pieces/Artist.js b/karaokatalog/ui/static/components/pieces/Artist.js new file mode 100644 index 0000000..1f523ad --- /dev/null +++ b/karaokatalog/ui/static/components/pieces/Artist.js @@ -0,0 +1,14 @@ +import Song from "./Song.js" + +export default { + view: function (vnode) { + const { artist, songs } = vnode.attrs + return m( + "section.artist", + [ + m("h2", artist), + songs.map(song => m(Song, { song })), + ], + ) + }, +}