« get me outta code hell

bam (Thing subclasses: several steps, one file) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/thing/artist.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-12 17:38:27 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-12 17:40:01 -0400
commit95bd943d62473e53de11cd6368e540cd48e4231a (patch)
treea6e1f0a21222eaeb01a270d8202a31616903649b /src/thing/artist.js
parentcfa02cb03a363c46408db7f0ec54bd3a7e4ad018 (diff)
bam (Thing subclasses: several steps, one file)
Diffstat (limited to 'src/thing/artist.js')
-rw-r--r--src/thing/artist.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/thing/artist.js b/src/thing/artist.js
deleted file mode 100644
index bbb2a93..0000000
--- a/src/thing/artist.js
+++ /dev/null
@@ -1,48 +0,0 @@
-import Thing from './thing.js';
-
-import {
-    isDirectory,
-    isName,
-    isString,
-    isURL,
-    validateArrayItems,
-    validateReferenceList,
-} from './validators.js';
-
-export default class Artist extends Thing {
-    static [Thing.referenceType] = 'artist';
-
-    static propertyDescriptors = {
-        // Update & expose
-
-        name: {
-            flags: {update: true, expose: true},
-
-            update: {
-                default: 'Unnamed Artist',
-                validate: isName
-            }
-        },
-
-        directory: {
-            flags: {update: true, expose: true},
-            update: {validate: isDirectory},
-            expose: Thing.directoryExpose
-        },
-
-        urls: {
-            flags: {update: true, expose: true},
-            update: {validate: validateArrayItems(isURL)}
-        },
-
-        aliasRefs: {
-            flags: {update: true, expose: true},
-            update: {validate: validateReferenceList('artist')}
-        },
-
-        contextNotes: {
-            flags: {update: true, expose: true},
-            update: {validate: isString}
-        },
-    };
-}