« get me outta code hell

AsideTrackSection.js « album « things « data « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/album/AsideTrackSection.js
blob: 9b1f9b5791e2b42d4ef6f664843e415ae0f75d47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Annoying subclass just for direct access in YAML-loading.

import Thing from '#thing';

import {TrackSection} from './TrackSection.js';

export class AsideTrackSection extends TrackSection {
  static [Thing.getPropertyDescriptors] = () => ({
    style: {
      flags: {expose: true},
      expose: {compute: () => 'aside'},
    },
  });

  static [Thing.yamlDocumentSpec] = {
    fields: {
      'Aside Section': {property: 'name'},
    },
  };
}