diff options
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/album.js | 2 | ||||
-rw-r--r-- | src/data/things/art-tag.js | 1 | ||||
-rw-r--r-- | src/data/things/flash.js | 1 | ||||
-rw-r--r-- | src/data/things/group.js | 2 | ||||
-rw-r--r-- | src/data/things/homepage-layout.js | 6 | ||||
-rw-r--r-- | src/data/things/news-entry.js | 1 | ||||
-rw-r--r-- | src/data/things/static-page.js | 1 | ||||
-rw-r--r-- | src/data/things/thing.js | 1 | ||||
-rw-r--r-- | src/data/things/wiki-info.js | 2 |
9 files changed, 17 insertions, 0 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js index f451a7e9..546fda3b 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -181,6 +181,8 @@ export class Album extends Thing { } export class TrackSectionHelper extends Thing { + static [Thing.friendlyName] = `Track Section`; + static [Thing.getPropertyDescriptors] = () => ({ name: name('Unnamed Track Section'), color: color(), diff --git a/src/data/things/art-tag.js b/src/data/things/art-tag.js index 1266a4e0..6503beec 100644 --- a/src/data/things/art-tag.js +++ b/src/data/things/art-tag.js @@ -16,6 +16,7 @@ import Thing from './thing.js'; export class ArtTag extends Thing { static [Thing.referenceType] = 'tag'; + static [Thing.friendlyName] = `Art Tag`; static [Thing.getPropertyDescriptors] = ({Album, Track}) => ({ // Update & expose diff --git a/src/data/things/flash.js b/src/data/things/flash.js index 52e30f88..e3ef9f5c 100644 --- a/src/data/things/flash.js +++ b/src/data/things/flash.js @@ -119,6 +119,7 @@ export class Flash extends Thing { export class FlashAct extends Thing { static [Thing.referenceType] = 'flash-act'; + static [Thing.friendlyName] = `Flash Act`; static [Thing.getPropertyDescriptors] = () => ({ // Update & expose diff --git a/src/data/things/group.js b/src/data/things/group.js index d5ae03e7..8764a9db 100644 --- a/src/data/things/group.js +++ b/src/data/things/group.js @@ -83,6 +83,8 @@ export class Group extends Thing { } export class GroupCategory extends Thing { + static [Thing.friendlyName] = `Group Category`; + static [Thing.getPropertyDescriptors] = ({Group}) => ({ // Update & expose diff --git a/src/data/things/homepage-layout.js b/src/data/things/homepage-layout.js index de9d0e50..bfa971ca 100644 --- a/src/data/things/homepage-layout.js +++ b/src/data/things/homepage-layout.js @@ -26,6 +26,8 @@ import { import Thing from './thing.js'; export class HomepageLayout extends Thing { + static [Thing.friendlyName] = `Homepage Layout`; + static [Thing.getPropertyDescriptors] = ({HomepageLayoutRow}) => ({ // Update & expose @@ -47,6 +49,8 @@ export class HomepageLayout extends Thing { } export class HomepageLayoutRow extends Thing { + static [Thing.friendlyName] = `Homepage Row`; + static [Thing.getPropertyDescriptors] = ({Album, Group}) => ({ // Update & expose @@ -75,6 +79,8 @@ export class HomepageLayoutRow extends Thing { } export class HomepageLayoutAlbumsRow extends HomepageLayoutRow { + static [Thing.friendlyName] = `Homepage Albums Row`; + static [Thing.getPropertyDescriptors] = (opts, {Album, Group} = opts) => ({ ...HomepageLayoutRow[Thing.getPropertyDescriptors](opts), diff --git a/src/data/things/news-entry.js b/src/data/things/news-entry.js index ba065c25..36da0299 100644 --- a/src/data/things/news-entry.js +++ b/src/data/things/news-entry.js @@ -9,6 +9,7 @@ import Thing from './thing.js'; export class NewsEntry extends Thing { static [Thing.referenceType] = 'news-entry'; + static [Thing.friendlyName] = `News Entry`; static [Thing.getPropertyDescriptors] = () => ({ // Update & expose diff --git a/src/data/things/static-page.js b/src/data/things/static-page.js index f03e4405..ab9c5f98 100644 --- a/src/data/things/static-page.js +++ b/src/data/things/static-page.js @@ -10,6 +10,7 @@ import Thing from './thing.js'; export class StaticPage extends Thing { static [Thing.referenceType] = 'static'; + static [Thing.friendlyName] = `Static Page`; static [Thing.getPropertyDescriptors] = () => ({ // Update & expose diff --git a/src/data/things/thing.js b/src/data/things/thing.js index a47f8506..def7e914 100644 --- a/src/data/things/thing.js +++ b/src/data/things/thing.js @@ -9,6 +9,7 @@ import CacheableObject from './cacheable-object.js'; export default class Thing extends CacheableObject { static referenceType = Symbol.for('Thing.referenceType'); + static friendlyName = Symbol.for(`Thing.friendlyName`); static getPropertyDescriptors = Symbol('Thing.getPropertyDescriptors'); static getSerializeDescriptors = Symbol('Thing.getSerializeDescriptors'); diff --git a/src/data/things/wiki-info.js b/src/data/things/wiki-info.js index 0460f272..6286a267 100644 --- a/src/data/things/wiki-info.js +++ b/src/data/things/wiki-info.js @@ -14,6 +14,8 @@ import { import Thing from './thing.js'; export class WikiInfo extends Thing { + static [Thing.friendlyName] = `Wiki Info`; + static [Thing.getPropertyDescriptors] = ({Group}) => ({ // Update & expose |