portfolio/admin/schemas/index.js

50 lines
1.9 KiB
JavaScript
Raw Permalink Normal View History

export const schemas = {
works: {
title: { type: 'text', label: 'Title' },
date: { type: 'text', label: 'Date' },
type: { type: 'text', label: 'Type' },
score: { type: 'text', label: 'Score URL' },
gallery: { type: 'text', label: 'Gallery' },
soundcloud_trackid: { type: 'text', label: 'SoundCloud Track ID' },
vimeo_trackid: { type: 'text', label: 'Vimeo Track ID' },
instrument_tags: { type: 'text', label: 'Instrument Tags' },
priority: { type: 'number', label: 'Priority' }
},
publications: {
citationKey: { type: 'text', label: 'Citation Key' },
entryType: { type: 'text', label: 'Entry Type' },
entryTags: { type: 'textarea', label: 'Entry Tags (JSON)' }
},
events: {
title: { type: 'text', label: 'Title' },
start_date: { type: 'text', label: 'Start Date' },
end_date: { type: 'text', label: 'End Date' },
location: { type: 'text', label: 'Location' },
type: { type: 'text', label: 'Type' },
program: { type: 'textarea', label: 'Program' },
works_list: { type: 'textarea', label: 'Works List' }
},
releases: {
title: { type: 'text', label: 'Title' },
year: { type: 'text', label: 'Year' },
album_art: { type: 'text', label: 'Album Art' },
discogs_id: { type: 'text', label: 'Discogs ID' },
buy_link: { type: 'text', label: 'Buy Link' },
spotify_id: { type: 'text', label: 'Spotify ID' }
},
talks: {
title: { type: 'text', label: 'Title' },
date: { type: 'text', label: 'Date' },
location: { type: 'text', label: 'Location' },
type: { type: 'text', label: 'Type' }
}
}
export const collections = [
{ key: 'works', label: 'Works', file: 'works.json' },
{ key: 'publications', label: 'Publications', file: 'publications.json' },
{ key: 'events', label: 'Events', file: 'events.json' },
{ key: 'releases', label: 'Releases', file: 'releases.json' },
{ key: 'talks', label: 'Talks', file: 'talks.json' }
]