« get me outta code hell

content: gAIPArtworksChunkedList: don't style rereleases - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-27 21:07:20 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-27 21:07:20 -0300
commitd3f13b864dddec7ef191aca769794695323ed498 (patch)
tree58b6394db532ef051699234f509c92ab0f77abb4
parent168fd6d42dafa6832f6f5d4c52f23c6d57cba082 (diff)
content: gAIPArtworksChunkedList: don't style rereleases
-rw-r--r--src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js b/src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js
index b5514128..2a8a2bbf 100644
--- a/src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js
+++ b/src/content/dependencies/generateArtistInfoPageArtworksChunkedList.js
@@ -32,8 +32,6 @@ export default {
           date: album.coverArtDate,
           contribs: album.coverArtistContribs,
         },
-        // ...getContributionDescription(album.coverArtistContribs),
-        // ...getOtherArtistLinks(album.coverArtistContribs),
       })),
 
       ...artist.albumsAsWallpaperArtist.map(album => ({
@@ -44,8 +42,6 @@ export default {
           date: album.coverArtDate,
           contribs: album.wallpaperArtistContribs,
         },
-        // ...getContributionDescription(album.wallpaperArtistContribs),
-        // ...getOtherArtistLinks(album.wallpaperArtistContribs),
       })),
 
       ...artist.albumsAsBannerArtist.map(album => ({
@@ -56,8 +52,6 @@ export default {
           date: album.coverArtDate,
           contribs: album.bannerArtistContribs,
         },
-        // ...getContributionDescription(album.bannerArtistContribs),
-        // ...getOtherArtistLinks(album.bannerArtistContribs),
       })),
 
       ...artist.tracksAsCoverArtist.map(track => ({
@@ -69,10 +63,6 @@ export default {
           track: track,
           contribs: track.coverArtistContribs,
         },
-        // rerelease: track.originalReleaseTrack !== null,
-        // trackLink: relation('linkTrack', track),
-        // ...getContributionDescription(track.coverArtistContribs),
-        // ...getOtherArtistLinks(track.coverArtistContribs),
       })),
     ];
 
@@ -120,10 +110,6 @@ export default {
         query.chunks.map(({chunk}) =>
           chunk.map(({type}) => type)),
 
-      itemTrackRereleases:
-        query.chunks.map(({chunk}) =>
-          chunk.map(({track}) => track ? !!track.originalReleaseTrack : null)),
-
       itemContributions:
         query.chunks.map(({chunk}) =>
           chunk.map(({contribs}) =>
@@ -144,7 +130,6 @@ export default {
         itemTrackLinks: relations.itemTrackLinks,
         itemOtherArtistLinks: relations.itemOtherArtistLinks,
         itemTypes: data.itemTypes,
-        itemTrackRereleases: data.itemTrackRereleases,
         itemContributions: data.itemContributions,
       }).map(({
           chunk,
@@ -169,19 +154,16 @@ export default {
                 otherArtistLinks: itemOtherArtistLinks,
                 type: itemTypes,
                 contribution: itemContributions,
-                rerelease: itemTrackRereleases,
               }).map(({
                   item,
                   trackLink,
                   otherArtistLinks,
                   type,
                   contribution,
-                  rerelease,
                 }) =>
                   item.slots({
                     otherArtistLinks,
                     contribution,
-                    rerelease,
 
                     content:
                       (type === 'trackCover'