From c3cb6416c3da69937ed600f2a54d9e30d98cb5f1 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 18 Jun 2024 18:05:32 -0300 Subject: content: chronology labels in contribution lists --- src/content/dependencies/generateContributionList.js | 7 ++++++- .../dependencies/generateContributionTooltipChronologySection.js | 1 + src/content/dependencies/generateFlashInfoPage.js | 4 +++- src/content/dependencies/generateTrackInfoPage.js | 4 +++- src/strings-default.yaml | 1 + 5 files changed, 14 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/content/dependencies/generateContributionList.js b/src/content/dependencies/generateContributionList.js index f22740b0..8e8c5020 100644 --- a/src/content/dependencies/generateContributionList.js +++ b/src/content/dependencies/generateContributionList.js @@ -8,7 +8,11 @@ export default { .map(contrib => relation('linkContribution', contrib)), }), - generate: (relations, {html}) => + slots: { + chronologyKind: {type: 'string'}, + }, + + generate: (relations, slots, {html}) => html.tag('ul', {[html.onlyIfContent]: true}, @@ -20,5 +24,6 @@ export default { showContribution: true, showChronology: true, preventWrapping: false, + chronologyKind: slots.chronologyKind, })))), }; diff --git a/src/content/dependencies/generateContributionTooltipChronologySection.js b/src/content/dependencies/generateContributionTooltipChronologySection.js index ef5c75b4..78c9051c 100644 --- a/src/content/dependencies/generateContributionTooltipChronologySection.js +++ b/src/content/dependencies/generateContributionTooltipChronologySection.js @@ -50,6 +50,7 @@ export default { 'flash', 'track', 'trackArt', + 'trackContribution', 'wallpaperArt'), }, }, diff --git a/src/content/dependencies/generateFlashInfoPage.js b/src/content/dependencies/generateFlashInfoPage.js index 96337d83..d06f0c01 100644 --- a/src/content/dependencies/generateFlashInfoPage.js +++ b/src/content/dependencies/generateFlashInfoPage.js @@ -147,7 +147,9 @@ export default { title: language.$('releaseInfo.contributors'), }), - relations.contributorContributionList, + relations.contributorContributionList.slots({ + chronologyKind: 'flash', + }), ]), relations.artistCommentarySection, diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index 7337b987..09cf55f6 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -217,7 +217,9 @@ export default { title: language.$('releaseInfo.contributors'), }), - relations.contributorContributionList, + relations.contributorContributionList.slots({ + chronologyKind: 'trackContribution', + }), ]), html.tags([ diff --git a/src/strings-default.yaml b/src/strings-default.yaml index 0958c06c..26107c0b 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -500,6 +500,7 @@ misc: flash: "flash" track: "track" trackArt: "track art" + trackContribution: "track contribution" wallpaperArt: "wallpaper art" # chronology: -- cgit 1.3.0-6-gf8a5