component enhancements

This commit is contained in:
Julian Krauser 2024-11-02 12:46:48 +01:00
parent 9c8037277f
commit 832994d13e
6 changed files with 133 additions and 126 deletions

View file

@ -36,7 +36,7 @@
"targetField": "identifier",
"required": true
},
"Hero": {
"hero": {
"type": "component",
"repeatable": false,
"pluginOptions": {

View file

@ -2,17 +2,18 @@
"collectionName": "components_dynamic_zone_galleries",
"info": {
"displayName": "Galerie",
"icon": "apps"
"icon": "apps",
"description": ""
},
"options": {},
"attributes": {
"images": {
"type": "media",
"multiple": true,
"required": true,
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false,
"required": true
]
}
}
}

View file

@ -2,19 +2,20 @@
"collectionName": "components_shared_heroes",
"info": {
"displayName": "hero",
"icon": "rocket"
"icon": "rocket",
"description": ""
},
"options": {},
"attributes": {
"banner": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false,
"required": true
"required": true,
"allowedTypes": [
"images"
]
},
"titel": {
"title": {
"type": "string",
"required": true
}

View file

@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2024-11-01T12:34:04.379Z"
"x-generation-date": "2024-11-02T11:42:52.169Z"
},
"x-strapi-config": {
"plugins": [
@ -6506,7 +6506,7 @@
}
}
},
"titel": {
"title": {
"type": "string"
}
}
@ -6524,56 +6524,70 @@
]
},
"images": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"documentId": {
"type": "string"
},
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"documentId": {
"type": "string"
},
"name": {
"type": "string"
},
"alternativeText": {
"type": "string"
},
"caption": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"formats": {},
"hash": {
"type": "string"
},
"ext": {
"type": "string"
},
"mime": {
"type": "string"
},
"size": {
"type": "number",
"format": "float"
},
"url": {
"type": "string"
},
"previewUrl": {
"type": "string"
},
"provider": {
"type": "string"
},
"provider_metadata": {},
"related": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"documentId": {
"type": "string"
}
}
}
},
"folder": {
"type": "object",
"properties": {
"id": {
@ -6583,62 +6597,23 @@
"type": "string"
}
}
}
},
"folder": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"documentId": {
"type": "string"
}
}
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"documentId": {
"type": "string"
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"documentId": {
"type": "string"
}
}
},
"locale": {
"type": "string"
},
"localizations": {
"type": "array",
"items": {
},
"folderPath": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publishedAt": {
"type": "string",
"format": "date-time"
},
"createdBy": {
"type": "object",
"properties": {
"id": {
@ -6648,6 +6623,34 @@
"type": "string"
}
}
},
"updatedBy": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"documentId": {
"type": "string"
}
}
},
"locale": {
"type": "string"
},
"localizations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"documentId": {
"type": "string"
}
}
}
}
}
}
@ -9093,7 +9096,7 @@
"slug": {
"type": "string"
},
"Hero": {
"hero": {
"$ref": "#/components/schemas/SharedHeroComponent"
},
"content": {
@ -9211,7 +9214,7 @@
"slug": {
"type": "string"
},
"Hero": {
"hero": {
"$ref": "#/components/schemas/SharedHeroComponent"
},
"content": {
@ -9308,7 +9311,7 @@
"slug": {
"type": "string"
},
"Hero": {
"hero": {
"$ref": "#/components/schemas/SharedHeroComponent"
},
"content": {