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.)

142 lines (133 loc) 3.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _gi = require("react-icons/gi"); var _datatype = require("../../../../properties/datatype"); var _coalesceLabel = require("../../../../../helpers/coalesceLabel"); var _documentInternationalization = _interopRequireDefault(require("config:@sanity/document-internationalization")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = { name: 'SiteSettings', type: 'document', title: 'Nettsideinnstillinger', titleEN: 'Site Settings', icon: _gi.GiSettingsKnobs, // '__experimental_actions': ['update', /* 'create', 'delete', */ 'publish'], groups: [{ name: 'media', title: 'Media' }], fields: [{ name: 'label', title: 'Tittel', titleEN: 'Title', type: 'LocalizedString' }, { name: 'description', title: 'Beskrivelse', titleEN: 'Description', type: 'LocalizedText' }, { name: 'frontpage', title: 'Forside', titleEN: 'Frontpage', type: 'reference', to: [{ type: 'Page' }], options: { filter: '__i18n_lang == $base', filterParams: { base: _documentInternationalization.default.base }, semanticSanity: { '@type': '@id' } } }, { name: 'footer', title: 'Footer page', description: 'Select page for the footer', type: 'reference', to: [{ type: 'Page' }], options: { semanticSanity: { '@type': '@id' } } }, { name: 'keyword', title: 'Nøkkelord', titleEN: 'Keywords', description: 'Legg til nøkkelord som beskriver nettsiden', descriptionEN: 'Add keywords that describes your blog', type: 'LocalizedKeyword' }, { name: 'publisher', title: 'Utgiver', type: 'array', of: [{ type: 'reference', to: [{ type: 'Actor' }] }], options: { semanticSanity: { '@container': '@list', '@type': '@id' } } }, _datatype.license, { name: 'logo', title: 'Logo', description: 'Bruk helst en SVG hvor fargen er satt med currentColor', descriptionEN: 'Best choice is to use an SVG where the color are set with currentColor', group: 'media', type: 'image', fields: [{ name: 'alt', type: 'string', title: 'Alternative text', description: 'Important for SEO and accessiblity.', options: { isHighlighted: true } }], options: { semanticSanity: { '@type': '@json' } } }, { name: 'image', title: 'Bilde', titleEN: 'Image', description: 'Facebook anbefaler 1200x630 (størrelsen blir endret automatisk)', descriptionEN: 'Facebook recommends 1200x630 (will be auto resized)', group: 'media', type: 'DigitalObjectImage', options: { semanticSanity: { '@type': '@json' } } }], preview: { select: { title: 'label' }, prepare(_ref) { var title = _ref.title; return { title: (0, _coalesceLabel.coalesceLabel)(title) }; } } }; exports.default = _default; //# sourceMappingURL=SiteSettings.js.map