diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-05-23 11:05:18 -0300 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-05-23 11:05:18 -0300 |
| commit | b0ee6c87f95b65225e5e8c0119959833f599b3bb (patch) | |
| tree | 51bea1cbc2e52963fc10ae019beb496545d3ee2d /src/content | |
| parent | e44bf9442d564160209a0b38e388ef914b56fd3e (diff) | |
content, data: additional file chronology links
Diffstat (limited to 'src/content')
3 files changed, 19 insertions, 1 deletions
diff --git a/src/content/dependencies/generateAdditionalFilesListChunk.js b/src/content/dependencies/generateAdditionalFilesListChunk.js index 18d5b894..37f0e3ce 100644 --- a/src/content/dependencies/generateAdditionalFilesListChunk.js +++ b/src/content/dependencies/generateAdditionalFilesListChunk.js @@ -98,6 +98,14 @@ export default { relations.artistCredit.setSlots({ normalStringKey: entryCapsule + '.credit', + + showAnnotation: true, + showExternalLinks: true, + showChronology: true, + + chronologyKind: + // Sorry, lol + slots.string.replace(/s$/, ''), }); if (!html.isBlank(relations.artistCredit)) { diff --git a/src/content/dependencies/generateContributionTooltipChronologySection.js b/src/content/dependencies/generateContributionTooltipChronologySection.js index 0cabc877..58bbddd0 100644 --- a/src/content/dependencies/generateContributionTooltipChronologySection.js +++ b/src/content/dependencies/generateContributionTooltipChronologySection.js @@ -3,7 +3,15 @@ function getName(thing) { return null; } - if (thing.isArtwork || thing.isMusicVideo) { + if (thing.isAdditionalFile) { + return thing.thing.name; + } + + if (thing.isArtwork) { + return thing.thing.name; + } + + if (thing.isMusicVideo) { return thing.thing.name; } diff --git a/src/content/dependencies/linkAnythingMan.js b/src/content/dependencies/linkAnythingMan.js index 6efa5fe1..d37c47e0 100644 --- a/src/content/dependencies/linkAnythingMan.js +++ b/src/content/dependencies/linkAnythingMan.js @@ -11,6 +11,8 @@ export default { ? relation('linkTrack', thing) : thing.isMusicVideo ? relation('linkAnythingMan', thing.thing) + : thing.isAdditionalFile + ? relation('linkAnythingMan', thing.thing) : null), }), |