« get me outta code hell

content: listTagsBy{Name,Uses} -> listArtTagsBy{Name,Uses} - 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-10-08 12:42:15 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-02-25 20:03:27 -0400
commit3686bdacef66d9bc911b6ad02fdee18cb15ecf56 (patch)
tree475efa364181e0dd7acb13bcecafe69c158d856a
parent7315e62bee168c2934e9a34388844abb8b627cc1 (diff)
content: listTagsBy{Name,Uses} -> listArtTagsBy{Name,Uses}
-rw-r--r--src/content/dependencies/listArtTagsByName.js (renamed from src/content/dependencies/listTagsByName.js)0
-rw-r--r--src/content/dependencies/listArtTagsByUses.js (renamed from src/content/dependencies/listTagsByUses.js)0
-rw-r--r--src/listing-spec.js8
-rw-r--r--src/strings-default.yaml46
4 files changed, 27 insertions, 27 deletions
diff --git a/src/content/dependencies/listTagsByName.js b/src/content/dependencies/listArtTagsByName.js
index 31856478..31856478 100644
--- a/src/content/dependencies/listTagsByName.js
+++ b/src/content/dependencies/listArtTagsByName.js
diff --git a/src/content/dependencies/listTagsByUses.js b/src/content/dependencies/listArtTagsByUses.js
index fcd324f7..fcd324f7 100644
--- a/src/content/dependencies/listTagsByUses.js
+++ b/src/content/dependencies/listArtTagsByUses.js
diff --git a/src/listing-spec.js b/src/listing-spec.js
index 749f009a..024700ea 100644
--- a/src/listing-spec.js
+++ b/src/listing-spec.js
@@ -196,15 +196,15 @@ 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',
 });
 
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 5834facd..3e49197b 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -1644,6 +1644,29 @@ listingPage:
         title: "{DATE}"
         item: "{ALBUM}"
 
+  listArtTags:
+
+    # listArtTags.byName:
+    #   List art tags alphabetically without sorting or chunking by
+    #   any other criteria. Also displays the number of times each
+    #   art tag has been featured.
+
+    byName:
+      title: "Tags - by Name"
+      title.short: "...by Name"
+      item: "{TAG} ({TIMES_USED})"
+
+    # listArtTags.byUses:
+    #   List art tags by number of times used, falling back to an
+    #   alphabetical sort if two art tags have been featured the same
+    #   number of times. Art tags which haven't haven't been featured
+    #   at all yet are totally excluded from the list.
+
+    byUses:
+      title: "Tags - by Uses"
+      title.short: "...by Uses"
+      item: "{TAG} ({TIMES_USED})"
+
   listArtists:
 
     # listArtists.byName:
@@ -1971,29 +1994,6 @@ listingPage:
         title.withDate: "{ALBUM} ({DATE})"
         item: "{TRACK}"
 
-  listTags:
-
-    # listTags.byName:
-    #   List art tags alphabetically without sorting or chunking by
-    #   any other criteria. Also displays the number of times each
-    #   art tag has been featured.
-
-    byName:
-      title: "Tags - by Name"
-      title.short: "...by Name"
-      item: "{TAG} ({TIMES_USED})"
-
-    # listTags.byUses:
-    #   List art tags by number of times used, falling back to an
-    #   alphabetical sort if two art tags have been featured the same
-    #   number of times. Art tags which haven't haven't been featured
-    #   at all yet are totally excluded from the list.
-
-    byUses:
-      title: "Tags - by Uses"
-      title.short: "...by Uses"
-      item: "{TAG} ({TIMES_USED})"
-
   other:
 
     # other.allSheetMusic: