diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-20 16:08:20 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-08-17 15:53:45 -0300 |
commit | cb140119b46d2f35d364461379b3ea9130d8a063 (patch) | |
tree | 2c087f4f19872a81118856ba6f7729cd6041f971 /src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js | |
parent | bbfecd71976859e591d3ebef62853f4c0481484f (diff) |
content: generateArtistCredit
Diffstat (limited to 'src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js')
-rw-r--r-- | src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js b/src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js deleted file mode 100644 index a2a103b6..00000000 --- a/src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js +++ /dev/null @@ -1,51 +0,0 @@ -export default { - contentDependencies: [ - 'generateTextWithTooltip', - 'generateTooltip', - 'linkContribution', - ], - - extraDependencies: ['language'], - - relations: (relation, contributions) => ({ - textWithTooltip: - relation('generateTextWithTooltip'), - - tooltip: - relation('generateTooltip'), - - contributionLinks: - contributions - .map(contrib => relation('linkContribution', contrib)), - }), - - generate: (relations, {language}) => - language.encapsulate('misc.artistLink.withEditsForWiki', capsule => - relations.textWithTooltip.slots({ - attributes: - {class: 'wiki-edits'}, - - text: - language.$(capsule, 'edits'), - - tooltip: - relations.tooltip.slots({ - attributes: - {class: 'wiki-edits-tooltip'}, - - content: - language.$(capsule, 'editsLine', { - [language.onlyIfOptions]: ['artists'], - - artists: - language.formatConjunctionList( - relations.contributionLinks.map(link => - link.slots({ - showAnnotation: true, - trimAnnotation: true, - preventTooltip: true, - }))), - }), - }), - })), -}; |