115 lines
2.1 KiB
JSON
115 lines
2.1 KiB
JSON
{
|
|
"$schema": "https://emdashcms.com/seed.schema.json",
|
|
"version": "1",
|
|
"meta": {
|
|
"name": "E2E Test Fixture",
|
|
"description": "Schema for E2E tests"
|
|
},
|
|
"taxonomies": [
|
|
{
|
|
"name": "category",
|
|
"label": "Categories",
|
|
"labelSingular": "Category",
|
|
"hierarchical": true,
|
|
"collections": ["posts"],
|
|
"terms": [
|
|
{ "slug": "news", "label": "News" },
|
|
{ "slug": "tutorials", "label": "Tutorials" },
|
|
{ "slug": "opinion", "label": "Opinion" }
|
|
]
|
|
},
|
|
{
|
|
"name": "tag",
|
|
"label": "Tags",
|
|
"labelSingular": "Tag",
|
|
"hierarchical": false,
|
|
"collections": ["posts"]
|
|
}
|
|
],
|
|
"sections": [
|
|
{
|
|
"slug": "hero",
|
|
"title": "Hero Section",
|
|
"description": "Main hero area",
|
|
"content": [
|
|
{
|
|
"_type": "block",
|
|
"_key": "b1",
|
|
"style": "normal",
|
|
"children": [{ "_type": "span", "_key": "s1", "text": "Welcome to our site" }],
|
|
"markDefs": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"collections": [
|
|
{
|
|
"slug": "posts",
|
|
"label": "Posts",
|
|
"labelSingular": "Post",
|
|
"supports": ["drafts", "revisions", "search"],
|
|
"commentsEnabled": true,
|
|
"fields": [
|
|
{
|
|
"slug": "title",
|
|
"label": "Title",
|
|
"type": "string",
|
|
"required": true,
|
|
"searchable": true
|
|
},
|
|
{
|
|
"slug": "featured_image",
|
|
"label": "Featured Image",
|
|
"type": "image"
|
|
},
|
|
{
|
|
"slug": "body",
|
|
"label": "Body",
|
|
"type": "portableText",
|
|
"searchable": true
|
|
},
|
|
{
|
|
"slug": "excerpt",
|
|
"label": "Excerpt",
|
|
"type": "text",
|
|
"searchable": true
|
|
},
|
|
{
|
|
"slug": "theme_color",
|
|
"label": "Theme Color",
|
|
"type": "string",
|
|
"widget": "color:picker"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"slug": "pages",
|
|
"label": "Pages",
|
|
"labelSingular": "Page",
|
|
"supports": ["drafts", "revisions", "search"],
|
|
"fields": [
|
|
{
|
|
"slug": "title",
|
|
"label": "Title",
|
|
"type": "string",
|
|
"required": true,
|
|
"searchable": true
|
|
},
|
|
{
|
|
"slug": "body",
|
|
"label": "Body",
|
|
"type": "portableText",
|
|
"searchable": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"bylines": [
|
|
{
|
|
"id": "fixture-editorial",
|
|
"slug": "fixture-editorial",
|
|
"displayName": "Fixture Editorial"
|
|
}
|
|
]
|
|
}
|