diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-02-09 17:28:21 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-02-09 17:28:21 -0400 |
| commit | 3c98e89daad1e312907c6f5f614b44b38f65408e (patch) | |
| tree | 69dee2add4069c8331dae0880c266bee7b6313a6 /src/data | |
| parent | df5ff85bdc2d56cbb8ef4d104dd7b82867ecca73 (diff) | |
data, content, html: FlashAct.nameHTML
Diffstat (limited to 'src/data')
| -rw-r--r-- | src/data/things/content/CreditingSourcesEntry.js | 4 | ||||
| -rw-r--r-- | src/data/things/content/ReferencingSourcesEntry.js | 4 | ||||
| -rw-r--r-- | src/data/things/flash/FlashAct.js | 27 |
3 files changed, 29 insertions, 6 deletions
diff --git a/src/data/things/content/CreditingSourcesEntry.js b/src/data/things/content/CreditingSourcesEntry.js index 0f7e266e..6b9880f1 100644 --- a/src/data/things/content/CreditingSourcesEntry.js +++ b/src/data/things/content/CreditingSourcesEntry.js @@ -3,6 +3,8 @@ import Thing from '#thing'; import {exposeConstant} from '#composite/control-flow'; +import {hasAnnotationPart} from '#composite/things/content'; + import {ContentEntry} from './ContentEntry.js'; export class CreditingSourcesEntry extends ContentEntry { @@ -13,5 +15,7 @@ export class CreditingSourcesEntry extends ContentEntry { // Expose only isCreditingSourcesEntry: exposeConstant(V(true)), + + isWikiEditorSource: hasAnnotationPart(V('wiki editor')), }); } diff --git a/src/data/things/content/ReferencingSourcesEntry.js b/src/data/things/content/ReferencingSourcesEntry.js index 4b27b313..de7deba0 100644 --- a/src/data/things/content/ReferencingSourcesEntry.js +++ b/src/data/things/content/ReferencingSourcesEntry.js @@ -3,6 +3,8 @@ import Thing from '#thing'; import {exposeConstant} from '#composite/control-flow'; +import {hasAnnotationPart} from '#composite/things/content'; + import {ContentEntry} from './ContentEntry.js'; export class ReferencingSourcesEntry extends ContentEntry { @@ -13,5 +15,7 @@ export class ReferencingSourcesEntry extends ContentEntry { // Expose only isReferencingSourceEntry: exposeConstant(V(true)), + + isWikiEditorSource: hasAnnotationPart(V('wiki editor')), }); } diff --git a/src/data/things/flash/FlashAct.js b/src/data/things/flash/FlashAct.js index 66d4ee1b..d1c64b4b 100644 --- a/src/data/things/flash/FlashAct.js +++ b/src/data/things/flash/FlashAct.js @@ -1,13 +1,26 @@ - import {input, V} from '#composite'; import Thing from '#thing'; -import {isContentString} from '#validators'; +import {isContentString, isString} from '#validators'; import {withPropertyFromObject} from '#composite/data'; -import {exposeConstant, exposeDependency, exposeUpdateValueOrContinue} - from '#composite/control-flow'; -import {color, directory, name, soupyFind, soupyReverse, thing, thingList} - from '#composite/wiki-properties'; + +import { + exitWithoutDependency, + exposeConstant, + exposeDependency, + exposeUpdateValueOrContinue, +} from '#composite/control-flow'; + +import { + color, + directory, + name, + simpleString, + soupyFind, + soupyReverse, + thing, + thingList +} from '#composite/wiki-properties'; export class FlashAct extends Thing { static [Thing.referenceType] = 'flash-act'; @@ -20,6 +33,7 @@ export class FlashAct extends Thing { side: thing(V(FlashSide)), name: name(V('Unnamed Flash Act')), + nameHTML: simpleString(), directory: directory(), color: color(), @@ -63,6 +77,7 @@ export class FlashAct extends Thing { static [Thing.yamlDocumentSpec] = { fields: { 'Act': {property: 'name'}, + 'Act HTML': {property: 'nameHTML'}, 'Directory': {property: 'directory'}, 'Color': {property: 'color'}, |