« get me outta code hell

data: ContentEntry.withSourceText (first try) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/content.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-05-01 13:07:22 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-05-06 12:29:05 -0300
commitaefa7862874e51c07d265e8505ead5662d2158e1 (patch)
treefa412c62ad9b32c1a3bdd004d6d37499dc840849 /src/data/things/content.js
parentcad44bfd247272ea8c11764d3b65dfd6a1b2b224 (diff)
data: ContentEntry.withSourceText (first try)
Diffstat (limited to 'src/data/things/content.js')
-rw-r--r--src/data/things/content.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/data/things/content.js b/src/data/things/content.js
index 7cf487f1..d68fd5be 100644
--- a/src/data/things/content.js
+++ b/src/data/things/content.js
@@ -9,12 +9,13 @@ import {contentString, referenceList, simpleDate, soupyFind, thing}
 
 import {
   exposeConstant,
+  exposeDependency,
   exposeDependencyOrContinue,
   exposeUpdateValueOrContinue,
   withResultOfAvailabilityCheck,
 } from '#composite/control-flow';
 
-import {withWebArchiveDate} from '#composite/things/content';
+import {withWebArchiveDate, withSourceText} from '#composite/things/content';
 
 export class ContentEntry extends Thing {
   static [Thing.getPropertyDescriptors] = ({Artist}) => ({
@@ -96,6 +97,13 @@ export class ContentEntry extends Thing {
     // Update only
 
     find: soupyFind(),
+
+    // Expose only
+
+    sourceText: [
+      withSourceText(),
+      exposeDependency({dependency: '#sourceText'}),
+    ],
   });
 
   static [Thing.yamlDocumentSpec] = {