« get me outta code hell

data: artist: more contribution-y properties - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-10 20:41:37 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-12 17:26:51 -0300
commit9f94010dfaec4f8461778c721738b8e424779294 (patch)
treea84e86fd48f32b42a99320a676f9398e16ee7402 /src/data/things
parent1ddf40efd310f70b0a8c71db0f651b74ff7bb466 (diff)
data: artist: more contribution-y properties
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/artist.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/data/things/artist.js b/src/data/things/artist.js
index 0878edd5..6e148d1d 100644
--- a/src/data/things/artist.js
+++ b/src/data/things/artist.js
@@ -154,6 +154,12 @@ export class Artist extends Thing {
       mode: input.value('contributions'),
     }),
 
+    trackCoverArtistContributions: reverseContributionList({
+      data: 'trackData',
+      list: input.value('coverArtistContribs'),
+      mode: input.value('contributions'),
+    }),
+
     albumsAsAlbumArtist: reverseContributionList({
       data: 'albumData',
       list: input.value('artistContribs'),
@@ -231,6 +237,30 @@ export class Artist extends Thing {
       list: input.value('commentatorArtists'),
     }),
 
+    albumArtistContributions: reverseContributionList({
+      data: 'albumData',
+      list: input.value('artistContribs'),
+      mode: input.value('contributions'),
+    }),
+
+    albumCoverArtistContributions: reverseContributionList({
+      data: 'albumData',
+      list: input.value('coverArtistContribs'),
+      mode: input.value('contributions'),
+    }),
+
+    albumWallpaperArtistContributions: reverseContributionList({
+      data: 'albumData',
+      list: input.value('wallpaperArtistContribs'),
+      mode: input.value('contributions'),
+    }),
+
+    albumBannerArtistContributions: reverseContributionList({
+      data: 'albumData',
+      list: input.value('bannerArtistContribs'),
+      mode: input.value('contributions'),
+    }),
+
     flashesAsContributor: reverseContributionList({
       data: 'flashData',
       list: input.value('contributorContribs'),