« get me outta code hell

data: I may be stupid - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/album/AsideTrackSection.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-07-08 09:08:11 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-07-08 09:08:11 -0300
commit1d7814841c796654390d97db0d8a7430737b27b7 (patch)
treeb3a06617026f73b6c4f3b101e81b48705f0b2470 /src/data/things/album/AsideTrackSection.js
parent2ccb0588a304b3ce8855651e8a30f895a57880c0 (diff)
data: I may be stupid
Diffstat (limited to 'src/data/things/album/AsideTrackSection.js')
-rw-r--r--src/data/things/album/AsideTrackSection.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/data/things/album/AsideTrackSection.js b/src/data/things/album/AsideTrackSection.js
new file mode 100644
index 00000000..9b1f9b57
--- /dev/null
+++ b/src/data/things/album/AsideTrackSection.js
@@ -0,0 +1,20 @@
+// Annoying subclass just for direct access in YAML-loading.
+
+import Thing from '#thing';
+
+import {TrackSection} from './TrackSection.js';
+
+export class AsideTrackSection extends TrackSection {
+  static [Thing.getPropertyDescriptors] = () => ({
+    style: {
+      flags: {expose: true},
+      expose: {compute: () => 'aside'},
+    },
+  });
+
+  static [Thing.yamlDocumentSpec] = {
+    fields: {
+      'Aside Section': {property: 'name'},
+    },
+  };
+}