« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js')
-rw-r--r--src/content/dependencies/generateReleaseInfoContributionsLineWikiEditsPart.js51
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,
-                      }))),
-                }),
-          }),
-      })),
-};