add content, add swagger
This commit is contained in:
24
src/components/sections/home-hero.json
Normal file
24
src/components/sections/home-hero.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"collectionName": "components_sections_home_heroes",
|
||||
"info": {
|
||||
"displayName": "HomeHero"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"badge": {
|
||||
"type": "string"
|
||||
},
|
||||
"stats": {
|
||||
"type": "component",
|
||||
"component": "shared.attribute",
|
||||
"repeatable": true
|
||||
}
|
||||
},
|
||||
"config": {}
|
||||
}
|
||||
18
src/components/shared/attribute.json
Normal file
18
src/components/shared/attribute.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"collectionName": "components_shared_attributes",
|
||||
"info": {
|
||||
"displayName": "Attribute"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"key": {
|
||||
"type": "string",
|
||||
"required": false
|
||||
},
|
||||
"value": {
|
||||
"type": "string",
|
||||
"required": false
|
||||
}
|
||||
},
|
||||
"config": {}
|
||||
}
|
||||
14
src/components/shared/product.json
Normal file
14
src/components/shared/product.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"collectionName": "components_shared_products",
|
||||
"info": {
|
||||
"displayName": "Product"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"config": {}
|
||||
}
|
||||
Reference in New Issue
Block a user