From cb140119b46d2f35d364461379b3ea9130d8a063 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 20 Jun 2024 16:08:20 -0300 Subject: content: generateArtistCredit --- ...ateReleaseInfoContributionsLineWikiEditsPart.js | 51 ---------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js (limited to 'src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js') 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, - }))), - }), - }), - })), -}; -- cgit 1.3.0-6-gf8a5