« get me outta code hell

implement flash act pages, rework flash sidebar layout - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-11 14:32:28 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-11 14:44:34 -0300
commit3a871cf43a11b87392d26320c736b516925da684 (patch)
tree113eb17e10d4f542366578111bdaa169985911be /src/data
parent3cd6f9edc58171e33ed6af565db84113e2488f25 (diff)
implement flash act pages, rework flash sidebar layout
Diffstat (limited to 'src/data')
-rw-r--r--src/data/things/flash.js6
-rw-r--r--src/data/yaml.js4
2 files changed, 8 insertions, 2 deletions
diff --git a/src/data/things/flash.js b/src/data/things/flash.js
index 8fb1edfa..52e30f88 100644
--- a/src/data/things/flash.js
+++ b/src/data/things/flash.js
@@ -12,6 +12,7 @@ import {
 import {
   color,
   contributionList,
+  directory,
   fileExtension,
   name,
   referenceList,
@@ -117,12 +118,15 @@ export class Flash extends Thing {
 }
 
 export class FlashAct extends Thing {
+  static [Thing.referenceType] = 'flash-act';
+
   static [Thing.getPropertyDescriptors] = () => ({
     // Update & expose
 
     name: name('Unnamed Flash Act'),
+    directory: directory(),
     color: color(),
-    anchor: simpleString(),
+
     jump: simpleString(),
 
     jumpColor: {
diff --git a/src/data/yaml.js b/src/data/yaml.js
index c799be5f..0ecc1f1e 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -434,8 +434,10 @@ export const processFlashDocument = makeProcessDocument(T.Flash, {
 export const processFlashActDocument = makeProcessDocument(T.FlashAct, {
   propertyFieldMapping: {
     name: 'Act',
+    directory: 'Directory',
+
     color: 'Color',
-    anchor: 'Anchor',
+
     jump: 'Jump',
     jumpColor: 'Jump Color',
   },