UNPKG

@seidhr/sanity-plugin-muna-schemas

Version:

Muna or ᛗᚢᚾᚨ means remember in norse. Muna is a schema for the Sanity Studio that enables detailed descriptions of cultural heritage objects and knowledge about their contexts as well as pages about them (or anything else really.)

77 lines (75 loc) 1.96 kB
import { definedByGeoJSON } from '../../properties/object' export default { name: 'SpacetimeVolume', title: 'Spacetime volume', type: 'object', description: 'Comprises of 4 dimensional point sets (volumes) in physical spacetime regardless its true geometric form. Example: the spatio-temporal trajectory of the H.M.S. Victory from its building to its actual location.', descriptionEN: 'Comprises of 4 dimensional point sets (volumes) in physical spacetime regardless its true geometric form. Example: the spatio-temporal trajectory of the H.M.S. Victory from its building to its actual location.', fields: [ { name: 'description', title: 'Beskrivelse', titleEN: 'Description', description: 'A shortish description', type: 'LocaleBlockSimple', options: { semanticSanity: { '@type': '@json' } }, }, { name: 'temporalProjection', title: 'Tidsspenn', titleEN: 'Timespan', type: 'array', of: [{ type: 'Timespan' }], options: { semanticSanity: { '@container': '@set', '@type': '@id' } }, }, { name: 'spatialProjection', title: 'Fant sted ved', titleEN: 'Took place at', type: 'array', of: [{ type: 'reference', to: [{ type: 'Place' }] }], options: { semanticSanity: { '@container': '@set', '@type': '@id' } }, }, { name: 'hadPresence', title: 'Hadde tilstedeværelse', titleEN: 'Had presence', type: 'array', of: [{ type: 'Presence' }], options: { semanticSanity: { '@container': '@set', '@type': '@id' } }, }, definedByGeoJSON, ], preview: { select: { type: 'type', }, prepare(selection) { const { type } = selection return { title: type, } }, }, }