« get me outta code hell

content: misc. code style updates - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-12 16:55:42 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-12 16:55:42 -0300
commit898969a17b90f9c11af78ad268bb3accbb090654 (patch)
treeb48947329374e685a7a5db026c28428301f74426 /src/content/dependencies
parent45895eee6b93a40f433a442d13829d1339f82801 (diff)
content: misc. code style updates
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateAdditionalFilesList.js10
-rw-r--r--src/content/dependencies/generateAdditionalFilesShortcut.js10
-rw-r--r--src/content/dependencies/generateAlbumSocialEmbed.js12
-rw-r--r--src/content/dependencies/generateAlbumSocialEmbedDescription.js4
-rw-r--r--src/content/dependencies/generateAlbumStyleRules.js4
-rw-r--r--src/content/dependencies/generateAlbumTrackList.js10
-rw-r--r--src/content/dependencies/generateAlbumTrackListItem.js12
-rw-r--r--src/content/dependencies/generateFooterLocalizationLinks.js12
-rw-r--r--src/content/dependencies/linkAlbumAdditionalFile.js4
-rw-r--r--src/content/dependencies/linkThing.js12
10 files changed, 15 insertions, 75 deletions
diff --git a/src/content/dependencies/generateAdditionalFilesList.js b/src/content/dependencies/generateAdditionalFilesList.js
index f698f032..d280a633 100644
--- a/src/content/dependencies/generateAdditionalFilesList.js
+++ b/src/content/dependencies/generateAdditionalFilesList.js
@@ -25,10 +25,7 @@ function validateFileMapping(v, validateValue) {
 }
 
 export default {
-  extraDependencies: [
-    'html',
-    'language',
-  ],
+  extraDependencies: ['html', 'language'],
 
   data(additionalFiles) {
     return {
@@ -47,10 +44,7 @@ export default {
     },
   },
 
-  generate(data, slots, {
-    html,
-    language,
-  }) {
+  generate(data, slots, {html, language}) {
     if (!slots.fileLinks) {
       return html.blank();
     }
diff --git a/src/content/dependencies/generateAdditionalFilesShortcut.js b/src/content/dependencies/generateAdditionalFilesShortcut.js
index 7dfe07b3..17280da5 100644
--- a/src/content/dependencies/generateAdditionalFilesShortcut.js
+++ b/src/content/dependencies/generateAdditionalFilesShortcut.js
@@ -1,10 +1,7 @@
 import {empty} from '../../util/sugar.js';
 
 export default {
-  extraDependencies: [
-    'html',
-    'language',
-  ],
+  extraDependencies: ['html', 'language'],
 
   data(additionalFiles) {
     return {
@@ -12,10 +9,7 @@ export default {
     };
   },
 
-  generate(data, {
-    html,
-    language,
-  }) {
+  generate(data, {html, language}) {
     if (empty(data.titles)) {
       return html.blank();
     }
diff --git a/src/content/dependencies/generateAlbumSocialEmbed.js b/src/content/dependencies/generateAlbumSocialEmbed.js
index 656bd997..079899d3 100644
--- a/src/content/dependencies/generateAlbumSocialEmbed.js
+++ b/src/content/dependencies/generateAlbumSocialEmbed.js
@@ -5,11 +5,7 @@ export default {
     'generateAlbumSocialEmbedDescription',
   ],
 
-  extraDependencies: [
-    'absoluteTo',
-    'language',
-    'urls',
-  ],
+  extraDependencies: ['absoluteTo', 'language', 'urls'],
 
   relations(relation, album) {
     const relations = {};
@@ -44,11 +40,7 @@ export default {
     return data;
   },
 
-  generate(data, relations, {
-    absoluteTo,
-    language,
-    urls,
-  }) {
+  generate(data, relations, {absoluteTo, language, urls}) {
     const socialEmbed = {};
 
     if (data.hasHeading) {
diff --git a/src/content/dependencies/generateAlbumSocialEmbedDescription.js b/src/content/dependencies/generateAlbumSocialEmbedDescription.js
index 5fa67b26..40f696f8 100644
--- a/src/content/dependencies/generateAlbumSocialEmbedDescription.js
+++ b/src/content/dependencies/generateAlbumSocialEmbedDescription.js
@@ -28,9 +28,7 @@ export default {
     return data;
   },
 
-  generate(data, {
-    language,
-  }) {
+  generate(data, {language}) {
     return language.formatString(
       'albumPage.socialEmbed.body' + [
         data.hasDuration && '.withDuration',
diff --git a/src/content/dependencies/generateAlbumStyleRules.js b/src/content/dependencies/generateAlbumStyleRules.js
index c9547836..6a894d71 100644
--- a/src/content/dependencies/generateAlbumStyleRules.js
+++ b/src/content/dependencies/generateAlbumStyleRules.js
@@ -1,9 +1,7 @@
 import {empty} from '../../util/sugar.js';
 
 export default {
-  extraDependencies: [
-    'to',
-  ],
+  extraDependencies: ['to'],
 
   data(album) {
     const data = {};
diff --git a/src/content/dependencies/generateAlbumTrackList.js b/src/content/dependencies/generateAlbumTrackList.js
index ce174953..7734cda5 100644
--- a/src/content/dependencies/generateAlbumTrackList.js
+++ b/src/content/dependencies/generateAlbumTrackList.js
@@ -39,10 +39,7 @@ export default {
     'generateAlbumTrackListItem',
   ],
 
-  extraDependencies: [
-    'html',
-    'language',
-  ],
+  extraDependencies: ['html', 'language'],
 
   relations(relation, album) {
     const relations = {};
@@ -90,10 +87,7 @@ export default {
     return data;
   },
 
-  generate(data, relations, {
-    html,
-    language,
-  }) {
+  generate(data, relations, {html, language}) {
     const listTag = (data.hasTrackNumbers ? 'ol' : 'ul');
 
     if (relations.itemsByTrackSection) {
diff --git a/src/content/dependencies/generateAlbumTrackListItem.js b/src/content/dependencies/generateAlbumTrackListItem.js
index fe46153d..0db641bc 100644
--- a/src/content/dependencies/generateAlbumTrackListItem.js
+++ b/src/content/dependencies/generateAlbumTrackListItem.js
@@ -6,11 +6,7 @@ export default {
     'linkTrack',
   ],
 
-  extraDependencies: [
-    'getColors',
-    'html',
-    'language',
-  ],
+  extraDependencies: ['getColors', 'html', 'language'],
 
   relations(relation, track) {
     const relations = {};
@@ -43,11 +39,7 @@ export default {
     return data;
   },
 
-  generate(data, relations, {
-    getColors,
-    html,
-    language,
-  }) {
+  generate(data, relations, {getColors, html, language}) {
     const stringOpts = {
       duration: language.formatDuration(data.duration),
       track: relations.trackLink,
diff --git a/src/content/dependencies/generateFooterLocalizationLinks.js b/src/content/dependencies/generateFooterLocalizationLinks.js
index 01b5b209..b4970b17 100644
--- a/src/content/dependencies/generateFooterLocalizationLinks.js
+++ b/src/content/dependencies/generateFooterLocalizationLinks.js
@@ -42,15 +42,3 @@ export default {
       }));
   },
 };
-
-/*
-function unbound_getFooterLocalizationLinks({
-  html,
-  defaultLanguage,
-  language,
-  languages,
-  pagePath,
-  to,
-}) {
-}
-*/
diff --git a/src/content/dependencies/linkAlbumAdditionalFile.js b/src/content/dependencies/linkAlbumAdditionalFile.js
index 27c0ba9c..39e7111e 100644
--- a/src/content/dependencies/linkAlbumAdditionalFile.js
+++ b/src/content/dependencies/linkAlbumAdditionalFile.js
@@ -1,7 +1,5 @@
 export default {
-  contentDependencies: [
-    'linkTemplate',
-  ],
+  contentDependencies: ['linkTemplate'],
 
   relations(relation) {
     return {
diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js
index 03aa9836..4ebf4d76 100644
--- a/src/content/dependencies/linkThing.js
+++ b/src/content/dependencies/linkThing.js
@@ -1,11 +1,6 @@
 export default {
-  contentDependencies: [
-    'linkTemplate',
-  ],
-
-  extraDependencies: [
-    'html',
-  ],
+  contentDependencies: ['linkTemplate'],
+  extraDependencies: ['html'],
 
   relations(relation) {
     return {
@@ -26,7 +21,6 @@ export default {
   },
 
   slots: {
-    // content: relations.linkTemplate.getSlotDescription('content'),
     content: {type: 'html'},
 
     preferShortName: {type: 'boolean', default: false},
@@ -43,8 +37,6 @@ export default {
 
     anchor: {type: 'boolean', default: false},
 
-    // attributes: relations.linkTemplate.getSlotDescription('attributes'),
-    // hash: relations.linkTemplate.getSlotDescription('hash'),
     attributes: {validate: v => v.isAttributes},
     hash: {type: 'string'},
   },