« get me outta code hell

data: isAlbum, isTrack, isArtist, isCommentaryEntry, etc - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/flash.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-07-10 08:28:41 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-10 08:28:41 -0300
commit0674d61d13ebaafe3b36dd84b7ab90db7f99ceb4 (patch)
treefa081814a1e44f003fb44b8cdbf6ed782c879c9b /src/data/things/flash.js
parentb9afcbf668f52d55550eddcc9ff164ee66aadeae (diff)
data: isAlbum, isTrack, isArtist, isCommentaryEntry, etc
Diffstat (limited to 'src/data/things/flash.js')
-rw-r--r--src/data/things/flash.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/data/things/flash.js b/src/data/things/flash.js
index 160221f0..73b22746 100644
--- a/src/data/things/flash.js
+++ b/src/data/things/flash.js
@@ -149,6 +149,12 @@ export class Flash extends Thing {
 
     // Expose only
 
+    isFlash: [
+      exposeConstant({
+        value: input.value(true),
+      }),
+    ],
+
     commentatorArtists: commentatorArtists(),
 
     act: [
@@ -317,6 +323,12 @@ export class FlashAct extends Thing {
 
     // Expose only
 
+    isFlashAct: [
+      exposeConstant({
+        value: input.value(true),
+      }),
+    ],
+
     side: [
       withFlashSide(),
       exposeDependency({dependency: '#flashSide'}),
@@ -372,6 +384,14 @@ export class FlashSide extends Thing {
     // Update only
 
     find: soupyFind(),
+
+    // Expose only
+
+    isFlashSide: [
+      exposeConstant({
+        value: input.value(true),
+      }),
+    ],
   });
 
   static [Thing.yamlDocumentSpec] = {