« get me outta code hell

finish up cosmetic style changes - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-11-26 23:44:08 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-11-26 23:44:08 -0400
commit003f594f6348b55109dd66416e75fcc2a88faade (patch)
treeb4cb05ed4e145e604356786a1d98926040fe5ff0 /src/page
parent768927503b5948b846b9a6cddf4b788ca9792e8c (diff)
finish up cosmetic style changes
Diffstat (limited to 'src/page')
-rw-r--r--src/page/album-commentary.js2
-rw-r--r--src/page/album.js3
-rw-r--r--src/page/artist-alias.js2
-rw-r--r--src/page/artist.js60
-rw-r--r--src/page/flash.js2
-rw-r--r--src/page/group.js2
-rw-r--r--src/page/index.js2
-rw-r--r--src/page/listing.js2
-rw-r--r--src/page/static.js2
-rw-r--r--src/page/tag.js13
-rw-r--r--src/page/track.js4
11 files changed, 31 insertions, 63 deletions
diff --git a/src/page/album-commentary.js b/src/page/album-commentary.js
index e3a63baf..a0ac8d94 100644
--- a/src/page/album-commentary.js
+++ b/src/page/album-commentary.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Album commentary page and index specifications.
 
 import {filterAlbumsByCommentary} from '../util/wiki-data.js';
diff --git a/src/page/album.js b/src/page/album.js
index 14d4a9d2..009ed55d 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Album page specification.
 
 import {
@@ -30,6 +28,7 @@ export function write(album, {wikiData}) {
       duration: language.formatDuration(track.duration ?? 0),
       track: link.track(track),
     };
+
     return html.tag('li',
       {style: getLinkThemeString(track.color)},
       compareArrays(
diff --git a/src/page/artist-alias.js b/src/page/artist-alias.js
index 3d882f65..e2b16046 100644
--- a/src/page/artist-alias.js
+++ b/src/page/artist-alias.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Artist alias redirect pages.
 // (Makes old permalinks bring visitors to the up-to-date page.)
 
diff --git a/src/page/artist.js b/src/page/artist.js
index f6a81f67..1b5a5060 100644
--- a/src/page/artist.js
+++ b/src/page/artist.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Artist page specification.
 //
 // NB: See artist-alias.js for artist alias redirect pages.
@@ -161,16 +159,13 @@ export function write(artist, {wikiData}) {
       ? language.$('artistPage.creditList.entry.rerelease', {entry})
       : !empty(artists)
       ? contrib.what || contrib.whatArray?.length
-        ? language.$(
-            'artistPage.creditList.entry.withArtists.withContribution',
-            {
-              entry,
-              artists: getArtistString(artists),
-              contribution: contrib.whatArray
-                ? language.formatUnitList(contrib.whatArray)
-                : contrib.what,
-            }
-          )
+        ? language.$('artistPage.creditList.entry.withArtists.withContribution', {
+            entry,
+            artists: getArtistString(artists),
+            contribution: contrib.whatArray
+              ? language.formatUnitList(contrib.whatArray)
+              : contrib.what,
+          })
         : language.$('artistPage.creditList.entry.withArtists', {
             entry,
             artists: getArtistString(artists),
@@ -227,15 +222,12 @@ export function write(artist, {wikiData}) {
                 original: track.originalReleaseTrack,
                 entry: language.$('artistPage.creditList.entry.track.withDuration', {
                   track: link.track(track),
-                  duration: language.formatDuration(
-                    track.duration ?? 0
-                  ),
+                  duration: language.formatDuration(track.duration ?? 0),
                 }),
                 ...props,
               }))
               .map(({original, ...opts}) =>
-                html.tag(
-                  'li',
+                html.tag('li',
                   {class: original && 'rerelease'},
                   generateEntryAccents({
                     getArtistString,
@@ -282,20 +274,14 @@ export function write(artist, {wikiData}) {
     type: 'data',
     path: ['artist', artist.directory],
     data: ({serializeContribs, serializeLink}) => {
-      const serializeArtistsAndContrib = bindOpts(
-        unbound_serializeArtistsAndContrib,
-        {
-          serializeContribs,
-          serializeLink,
-        }
-      );
-
-      const serializeTrackListChunks = bindOpts(
-        unbound_serializeTrackListChunks,
-        {
-          serializeLink,
-        }
-      );
+      const serializeArtistsAndContrib = bindOpts(unbound_serializeArtistsAndContrib, {
+        serializeContribs,
+        serializeLink,
+      });
+
+      const serializeTrackListChunks = bindOpts(unbound_serializeTrackListChunks, {
+        serializeLink,
+      });
 
       return {
         albums: {
@@ -663,12 +649,12 @@ export function write(artist, {wikiData}) {
 
 // Utility functions
 
-function generateNavForArtist(
-  artist,
-  isGallery,
-  hasGallery,
-  {generateInfoGalleryLinks, link, language, wikiData}
-) {
+function generateNavForArtist(artist, isGallery, hasGallery, {
+  generateInfoGalleryLinks,
+  language,
+  link,
+  wikiData,
+}) {
   const {wikiInfo} = wikiData;
 
   const infoGalleryLinks =
diff --git a/src/page/flash.js b/src/page/flash.js
index 237dd47f..74a6b4aa 100644
--- a/src/page/flash.js
+++ b/src/page/flash.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Flash page and index specifications.
 
 import {empty} from '../util/sugar.js';
diff --git a/src/page/group.js b/src/page/group.js
index 2bd6da96..c261565b 100644
--- a/src/page/group.js
+++ b/src/page/group.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Group page specifications.
 
 import {
diff --git a/src/page/index.js b/src/page/index.js
index 149503f0..f580cbea 100644
--- a/src/page/index.js
+++ b/src/page/index.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // NB: This is the index for the page/ directory and contains exports for all
 // other modules here! It's not the page spec for the homepage - see
 // homepage.js for that.
diff --git a/src/page/listing.js b/src/page/listing.js
index 65982f83..cb297a89 100644
--- a/src/page/listing.js
+++ b/src/page/listing.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Listing page specification.
 //
 // The targets here are a bit different than for most pages: rather than data
diff --git a/src/page/static.js b/src/page/static.js
index 8925b606..2a0f5e53 100644
--- a/src/page/static.js
+++ b/src/page/static.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Static content page specification. (These are static pages coded into the
 // wiki data folder, used for a variety of purposes, e.g. wiki info,
 // changelog, and so on.)
diff --git a/src/page/tag.js b/src/page/tag.js
index faa0df22..da4f194a 100644
--- a/src/page/tag.js
+++ b/src/page/tag.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Art tag page specification.
 
 export function condition({wikiData}) {
@@ -28,8 +26,8 @@ export function write(tag, {wikiData}) {
       getThemeString,
       getTrackCover,
       html,
-      link,
       language,
+      link,
     }) => ({
       title: language.$('tagPage.title', {tag: tag.name}),
       theme: getThemeString(tag.color),
@@ -79,10 +77,11 @@ export function write(tag, {wikiData}) {
 
 // Utility functions
 
-function generateTagNav(
-  tag,
-  {link, language, wikiData}
-) {
+function generateTagNav(tag, {
+  language,
+  link,
+  wikiData,
+}) {
   return {
     linkContainerClasses: ['nav-links-hierarchy'],
     links: [
diff --git a/src/page/track.js b/src/page/track.js
index cf937248..b61defe2 100644
--- a/src/page/track.js
+++ b/src/page/track.js
@@ -1,5 +1,3 @@
-/** @format */
-
 // Track page specification.
 
 import {
@@ -64,7 +62,7 @@ export function write(track, {wikiData}) {
   const hasCommentary =
     track.commentary || otherReleases.some((t) => t.commentary);
 
-  const generateCommentary = ({link, language, transformMultiline}) =>
+  const generateCommentary = ({language, link, transformMultiline}) =>
     transformMultiline([
       track.commentary,
       ...otherReleases.map((track) =>