« get me outta code hell

CommentaryEntry.js « content « things « data « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/content/CommentaryEntry.js
blob: 32d6921393a11fa354ade25fbae2548e4e56569b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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')),
  });
}