Initial commit
This commit is contained in:
commit
5a3bf52ebb
86 changed files with 2639 additions and 0 deletions
42
studio/schemas/objects/projectMember.js
Normal file
42
studio/schemas/objects/projectMember.js
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
export default {
|
||||
type: 'object',
|
||||
name: 'projectMember',
|
||||
title: 'Project Member',
|
||||
fields: [
|
||||
{
|
||||
title: 'Person',
|
||||
name: 'person',
|
||||
type: 'reference',
|
||||
to: {type: 'person'}
|
||||
},
|
||||
{
|
||||
title: 'Roles',
|
||||
name: 'roles',
|
||||
type: 'array',
|
||||
of: [{type: 'string'}],
|
||||
options: {
|
||||
layout: 'radio',
|
||||
list: [
|
||||
{title: 'Designer', value: 'designer'},
|
||||
{title: 'Developer', value: 'developer'},
|
||||
{title: 'Editor', value: 'editor'},
|
||||
{title: 'Manager', value: 'manager'}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
preview: {
|
||||
select: {
|
||||
personName: 'person.name',
|
||||
roles: 'roles',
|
||||
media: 'person.image'
|
||||
},
|
||||
prepare (data) {
|
||||
return {
|
||||
...data,
|
||||
title: data.personName,
|
||||
subtitle: data.roles && data.roles.join('/')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue