Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Settings')
.icon(MdSettings)
.child(
S.editor()
.id('siteSettings')
.schemaType('siteSettings')
.documentId('siteSettings')
),
S.listItem()
.title('Attendees')
.schemaType('attendee')
.child(S.documentTypeList('attendee').title('Attendees')),
S.listItem()
.title('Speakers')
.icon(MdPerson)
.schemaType('speaker')
.child(S.documentTypeList('speaker').title('Speakers')),
// This returns an array of all the document types
// defined in schema.js. We filter out those that we have
// defined the structure above
export default () =>
S.list()
.title("Content")
.items([
S.listItem()
.title("Company Info")
.schemaType("companyInfo")
.child(
S.editor()
.id('companyInfo')
.schemaType("companyInfo")
.documentId("company-info")
),
S.listItem()
.title('Website')
.schemaType("page")
.child(
S.list()
.title("Website")
.id('website')
.items([
/* S.documentTypeListItem('navigation').title('Navigation'), */
S.documentTypeListItem('route').title('Routes') ,
S.documentTypeListItem('page').title('Pages'),
sectionItems
delay(
S.documentList({
id: 'title-list',
title: 'Titles!',
options: {
filter: 'defined(title)'
}
})
)
),
S.listItem()
.title('Singleton?')
.child(
delay(
S.editor({id: 'editor', options: {id: 'circular', type: 'referenceTest'}}).title(
'Specific title!'
)
)
)
.showIcon(false),
S.documentListItem()
.id('grrm')
.schemaType('author')
.child(
S.component(JsonDocumentDump)
.id('json-dump')
.options({pass: 'through'})
.menuItems([
S.menuItem()
.title('Reload')
export default () =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Settings')
.icon(MdSettings)
.child(
S.editor()
.id('siteSettings')
.schemaType('siteSettings')
.documentId('siteSettings')
),
S.listItem()
.title('Blog posts')
.schemaType('post')
.child(S.documentTypeList('post').title('Blog posts')),
S.listItem()
.title('Authors')
.icon(MdPerson)
.schemaType('author')
.child(S.documentTypeList('author').title('Authors')),
S.listItem()
.title('Categories')
.schemaType('category')
export default () =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Settings')
.icon(MdSettings)
.child(
S.editor()
.id('siteSettings')
.schemaType('siteSettings')
.documentId('siteSettings')
),
S.listItem()
.title('Blog posts')
.schemaType('post')
.child(S.documentTypeList('post').title('Blog posts')),
S.listItem()
.title('Authors')
.icon(MdPerson)
.schemaType('author')
.child(S.documentTypeList('author').title('Authors')),
S.listItem()
.title('Categories')
.schemaType('category')
export default () =>
S.list()
.title('Site')
.items([
S.listItem()
.title('Site config')
.icon(MdSettings)
.child(
S.editor()
.id('config')
.schemaType('site-config')
.documentId('global-config')
),
S.listItem()
.title('Pages')
.icon(MdDashboard)
.schemaType('page')
.child(S.documentTypeList('page').title('Pages')),
S.listItem()
.title('Routes')
.schemaType('route')
.child(S.documentTypeList('route').title('Routes')),
S.listItem()
.title('Ads')
.schemaType('ad')
export default () =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Settings')
.icon(MdSettings)
.child(
S.editor()
.id('siteSettings')
.schemaType('siteSettings')
.documentId('siteSettings')
),
S.listItem()
.title('Blog posts')
.schemaType('post')
.child(
S.documentTypeList('post')
.title('Blog posts')
.child(documentId =>
S.document()
.documentId(documentId)
.schemaType('post')
.views([S.view.form(), S.view.component(Preview)])
)
export default () =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Settings')
.child(
S.editor()
.id('siteSettings')
.schemaType('siteSettings')
.documentId('siteSettings')
)
.icon(MdSettings),
S.listItem()
.title('Projects')
.schemaType('project')
.child(S.documentTypeList('project').title('Projects')),
S.listItem()
.title('People')
.schemaType('person')
.child(S.documentTypeList('person').title('People')),
S.listItem()
.title('Categories')
.schemaType('category')
export default () =>
S.list()
.title('Content')
.items([
S.listItem()
.title('Site Settings')
.child(
S.editor()
.id('siteSettings')
.schemaType('siteSettings')
.documentId('siteSettings')
)
.icon(MdSettings),
S.listItem()
.title('Company Info')
.child(
S.editor()
.id('companyInfo')
.schemaType('companyInfo')
.documentId('companyInfo')
)
.icon(MdBusiness),
S.listItem()
.title('Projects')
.title("Publisher Logos")
.schemaType("logos")
.child(S.documentTypeList("logos").title("Publisher Logos")),
])
),
S.listItem()
.title("Website Pages")
.child(
S.list()
.title("Pages")
.items([
S.listItem()
.title("Home Page")
.icon(MdInsertDriveFile)
.child(
S.editor()
.schemaType("homePage")
.documentId("homePage")
),
S.listItem()
.title("Work Page")
.icon(MdInsertDriveFile)
.child(
S.editor()
.schemaType("workPage")
.documentId("workPage")
),
S.listItem()
.title("Bio Page")
.icon(MdInsertDriveFile)
.child(
S.editor()