« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/listing-spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/listing-spec.js')
-rw-r--r--src/listing-spec.js36
1 files changed, 32 insertions, 4 deletions
diff --git a/src/listing-spec.js b/src/listing-spec.js
index bfea397c..142c5976 100644
--- a/src/listing-spec.js
+++ b/src/listing-spec.js
@@ -196,15 +196,22 @@ listingSpec.push({
 
 listingSpec.push({
   directory: 'tags/by-name',
-  stringsKey: 'listTags.byName',
-  contentFunction: 'listTagsByName',
+  stringsKey: 'listArtTags.byName',
+  contentFunction: 'listArtTagsByName',
   featureFlag: 'enableArtTagUI',
 });
 
 listingSpec.push({
   directory: 'tags/by-uses',
-  stringsKey: 'listTags.byUses',
-  contentFunction: 'listTagsByUses',
+  stringsKey: 'listArtTags.byUses',
+  contentFunction: 'listArtTagsByUses',
+  featureFlag: 'enableArtTagUI',
+});
+
+listingSpec.push({
+  directory: 'tags/network',
+  stringsKey: 'listArtTags.network',
+  contentFunction: 'listArtTagNetwork',
   featureFlag: 'enableArtTagUI',
 });
 
@@ -238,6 +245,27 @@ listingSpec.push({
   groupUnderOther: true,
 });
 
+// Dunkass mock. Listings should be Things! In the fuuuuture!
+class Listing {
+  static properties = {};
+
+  constructor() {
+    Object.assign(this, this.constructor.properties);
+  }
+
+  static hasPropertyDescriptor(key) {
+    return Object.hasOwn(this.properties, key);
+  }
+}
+
+for (const [index, listing] of listingSpec.entries()) {
+  class ListingSubclass extends Listing {
+    static properties = listing;
+  }
+
+  listingSpec.splice(index, 1, new ListingSubclass);
+}
+
 {
   const errors = [];