« get me outta code hell

content: generateListingIndexList: yeet unnecessary color attribute - 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>2023-08-02 13:09:21 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-08-02 13:09:37 -0300
commit96b504fe08383cfc9a2c474521334e14025cb000 (patch)
tree26f5ff8a7d91ee55c19bc6b536ef1286d4190436
parent00644623eb6c99a33b3b08771f4f23841f747b88 (diff)
content: generateListingIndexList: yeet unnecessary color attribute
-rw-r--r--src/content/dependencies/generateListingIndexList.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/content/dependencies/generateListingIndexList.js b/src/content/dependencies/generateListingIndexList.js
index e4a2f5c7..0d8900e4 100644
--- a/src/content/dependencies/generateListingIndexList.js
+++ b/src/content/dependencies/generateListingIndexList.js
@@ -1,7 +1,7 @@
 import {empty, stitchArrays} from '../../util/sugar.js';
 
 export default {
-  contentDependencies: ['generateColorStyleVariables', 'linkListing'],
+  contentDependencies: ['linkListing'],
   extraDependencies: ['html', 'language', 'wikiData'],
 
   sprawl({listingTargetSpec, wikiInfo}) {
@@ -19,8 +19,6 @@ export default {
               !listing.featureFlag ||
               sprawl.wikiInfo[listing.featureFlag]));
 
-    query.wikiColor = sprawl.wikiInfo.color;
-
     query.targets =
       sprawl.listingTargetSpec
         .filter((target, index) => !empty(targetListings[index]));
@@ -34,8 +32,6 @@ export default {
 
   relations(relation, query) {
     return {
-      wikiColorVariables: relation('generateColorStyleVariables', query.wikiColor),
-
       listingLinks:
         query.targetListings
           .map(listings =>
@@ -109,7 +105,7 @@ export default {
                   class: targetIndex === data.currentTargetIndex && 'current',
                 },
                 [
-                  html.tag('summary', {style: relations.wikiColorVariables},
+                  html.tag('summary',
                     html.tag('span', {class: 'group-name'}, targetTitle)),
 
                   listingLinkList,