« get me outta code hell

content: normalize generate*StyleTag -> relation suffix styleTag - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-05-27 18:51:15 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-05-27 18:51:15 -0300
commitcc3487d6ab66b82d8a3a7dc5042651185fa639ff (patch)
tree35f02c543cc513c70616b85c8ef50bc3ae065ae7
parent792548d5115e65b97b161781f325adfe268f8a28 (diff)
content: normalize generate*StyleTag -> relation suffix styleTag
-rw-r--r--src/content/dependencies/generateAlbumWallpaperStyleTag.js6
-rw-r--r--src/content/dependencies/generateWikiWallpaperStyleTag.js4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/content/dependencies/generateAlbumWallpaperStyleTag.js b/src/content/dependencies/generateAlbumWallpaperStyleTag.js
index 2c18deaf..47864a1d 100644
--- a/src/content/dependencies/generateAlbumWallpaperStyleTag.js
+++ b/src/content/dependencies/generateAlbumWallpaperStyleTag.js
@@ -3,7 +3,7 @@ export default {
   extraDependencies: ['html'],
 
   relations: (relation, album) => ({
-    wallpaperStyle:
+    wallpaperStyleTag:
       (album.hasWallpaperArt
         ? relation('generateWallpaperStyleTag')
         : null),
@@ -27,8 +27,8 @@ export default {
   }),
 
   generate: (data, relations, {html}) =>
-    (relations.wallpaperStyle
-      ? relations.wallpaperStyle.slots({
+    (relations.wallpaperStyleTag
+      ? relations.wallpaperStyleTag.slots({
           singleWallpaperPath: data.singleWallpaperPath,
           singleWallpaperStyle: data.singleWallpaperStyle,
           wallpaperPartPaths: data.wallpaperPartPaths,
diff --git a/src/content/dependencies/generateWikiWallpaperStyleTag.js b/src/content/dependencies/generateWikiWallpaperStyleTag.js
index d29b1f8f..3024ff79 100644
--- a/src/content/dependencies/generateWikiWallpaperStyleTag.js
+++ b/src/content/dependencies/generateWikiWallpaperStyleTag.js
@@ -7,7 +7,7 @@ export default {
   }),
 
   relations: (relation) => ({
-    wallpaperStyle:
+    wallpaperStyleTag:
       relation('generateWallpaperStyleTag'),
   }),
 
@@ -19,7 +19,7 @@ export default {
   }),
 
   generate: (data, relations) =>
-    relations.wallpaperStyle.slots({
+    relations.wallpaperStyleTag.slots({
       singleWallpaperPath: data.path,
     }),
 };