diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 14:07:13 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 14:07:13 -0400 |
| commit | 1f37e5d6b0c6fccc9c46aabd7bd402375131d452 (patch) | |
| tree | e441757a73dd2b2cb346ce33b90bf185c614fe7c /src/data/things/content/CommentaryEntry.js | |
| parent | aa3cb2dd34780fd97873340c3faf7388993fa8d8 (diff) | |
data: break up content.js, flash.js, sorting-rule.js
Diffstat (limited to 'src/data/things/content/CommentaryEntry.js')
| -rw-r--r-- | src/data/things/content/CommentaryEntry.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/data/things/content/CommentaryEntry.js b/src/data/things/content/CommentaryEntry.js new file mode 100644 index 00000000..32d69213 --- /dev/null +++ b/src/data/things/content/CommentaryEntry.js @@ -0,0 +1,20 @@ +import {V} from '#composite'; +import Thing from '#thing'; + +import {exposeConstant} from '#composite/control-flow'; + +import {hasAnnotationPart} from '#composite/things/content'; + +import {ContentEntry} from './ContentEntry.js'; + +export class CommentaryEntry extends ContentEntry { + static [Thing.wikiData] = 'commentaryData'; + + static [Thing.getPropertyDescriptors] = () => ({ + // Expose only + + isCommentaryEntry: exposeConstant(V(true)), + + isWikiEditorCommentary: hasAnnotationPart(V('wiki editor')), + }); +} |