UNPKG

@websolutespa/payload-plugin-bowl

Version:

Bowl PayloadCms plugin of the BOM Repository

97 lines (96 loc) 3.21 kB
import { isRole } from '../core'; import { roles } from '../types'; export const App = (options)=>({ type: 'withGlobal', slug: options.slug.app, admin: { group: options.group.config }, access: { read: isRole(roles.Admin, roles.Contributor, roles.Editor, roles.Guest, roles.User), update: isRole(roles.Admin, roles.Contributor, roles.Editor) }, fields: [ { type: 'group', name: 'brand', fields: [ { type: 'text', name: 'name', defaultValue: 'Mixer', required: true }, { type: 'text', name: 'businessName', defaultValue: 'Mixer Spa' }, { type: 'text', name: 'appName', defaultValue: 'Mixer' }, { type: 'withMedia', name: 'logo' }, { type: 'text', name: 'email', defaultValue: 'info@websolute.it' }, { type: 'text', name: 'telephone', defaultValue: '+39 0721 411112' }, { type: 'text', name: 'address', defaultValue: 'Strada della Campanara, 15' }, { type: 'text', name: 'city', defaultValue: 'Pesaro' }, { type: 'text', name: 'provinceCode', defaultValue: 'PU' }, { type: 'text', name: 'zipCode', defaultValue: '61122' }, { type: 'text', name: 'countryCode', defaultValue: 'IT' }, { type: 'text', name: 'twitterName', defaultValue: '@websolute' }, { type: 'array', name: 'social', fields: [ { type: 'text', name: 'key' }, { type: 'text', name: 'url' } ] } ] } ] }); //# sourceMappingURL=App.js.map