diff options
Diffstat (limited to 'src/content/dependencies/generateAlbumTrackListMissingDuration.js')
-rw-r--r-- | src/content/dependencies/generateAlbumTrackListMissingDuration.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/content/dependencies/generateAlbumTrackListMissingDuration.js b/src/content/dependencies/generateAlbumTrackListMissingDuration.js deleted file mode 100644 index b5917982..00000000 --- a/src/content/dependencies/generateAlbumTrackListMissingDuration.js +++ /dev/null @@ -1,35 +0,0 @@ -export default { - contentDependencies: ['generateTextWithTooltip', 'generateTooltip'], - extraDependencies: ['html', 'language'], - - relations: (relation) => ({ - textWithTooltip: - relation('generateTextWithTooltip'), - - tooltip: - relation('generateTooltip'), - }), - - generate: (relations, {html, language}) => - language.encapsulate('trackList.item.withDuration', itemCapsule => - language.encapsulate(itemCapsule, 'duration', durationCapsule => - relations.textWithTooltip.slots({ - attributes: {class: 'missing-duration'}, - customInteractionCue: true, - - text: - language.$(durationCapsule, { - duration: - html.tag('span', {class: 'text-with-tooltip-interaction-cue'}, - language.$(durationCapsule, 'missing')), - }), - - tooltip: - relations.tooltip.slots({ - attributes: {class: 'missing-duration-tooltip'}, - - content: - language.$(durationCapsule, 'missing.info'), - }), - }))), -}; |