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", "targetField": "identifier",
"required": true "required": true
}, },
"Hero": { "hero": {
"type": "component", "type": "component",
"repeatable": false, "repeatable": false,
"pluginOptions": { "pluginOptions": {

View file

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

View file

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

View file

@ -14,7 +14,7 @@
"name": "Apache 2.0", "name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html" "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": { "x-strapi-config": {
"plugins": [ "plugins": [
@ -6506,7 +6506,7 @@
} }
} }
}, },
"titel": { "title": {
"type": "string" "type": "string"
} }
} }
@ -6524,6 +6524,8 @@
] ]
}, },
"images": { "images": {
"type": "array",
"items": {
"type": "object", "type": "object",
"properties": { "properties": {
"id": { "id": {
@ -6653,6 +6655,7 @@
} }
} }
} }
}
}, },
"DynamicZoneFullTextComponent": { "DynamicZoneFullTextComponent": {
"type": "object", "type": "object",
@ -9093,7 +9096,7 @@
"slug": { "slug": {
"type": "string" "type": "string"
}, },
"Hero": { "hero": {
"$ref": "#/components/schemas/SharedHeroComponent" "$ref": "#/components/schemas/SharedHeroComponent"
}, },
"content": { "content": {
@ -9211,7 +9214,7 @@
"slug": { "slug": {
"type": "string" "type": "string"
}, },
"Hero": { "hero": {
"$ref": "#/components/schemas/SharedHeroComponent" "$ref": "#/components/schemas/SharedHeroComponent"
}, },
"content": { "content": {
@ -9308,7 +9311,7 @@
"slug": { "slug": {
"type": "string" "type": "string"
}, },
"Hero": { "hero": {
"$ref": "#/components/schemas/SharedHeroComponent" "$ref": "#/components/schemas/SharedHeroComponent"
}, },
"content": { "content": {

View file

@ -69,11 +69,12 @@ export interface DynamicZoneFullText extends Struct.ComponentSchema {
export interface DynamicZoneGallery extends Struct.ComponentSchema { export interface DynamicZoneGallery extends Struct.ComponentSchema {
collectionName: 'components_dynamic_zone_galleries'; collectionName: 'components_dynamic_zone_galleries';
info: { info: {
description: '';
displayName: 'Galerie'; displayName: 'Galerie';
icon: 'apps'; icon: 'apps';
}; };
attributes: { attributes: {
images: Schema.Attribute.Media<'images'> & Schema.Attribute.Required; images: Schema.Attribute.Media<'images', true> & Schema.Attribute.Required;
}; };
} }
@ -140,12 +141,13 @@ export interface ItemsNavbarSubItems extends Struct.ComponentSchema {
export interface SharedHero extends Struct.ComponentSchema { export interface SharedHero extends Struct.ComponentSchema {
collectionName: 'components_shared_heroes'; collectionName: 'components_shared_heroes';
info: { info: {
description: '';
displayName: 'hero'; displayName: 'hero';
icon: 'rocket'; icon: 'rocket';
}; };
attributes: { attributes: {
banner: Schema.Attribute.Media<'images'> & Schema.Attribute.Required; banner: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
titel: Schema.Attribute.String & Schema.Attribute.Required; title: Schema.Attribute.String & Schema.Attribute.Required;
}; };
} }

View file

@ -689,7 +689,7 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> & createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private; Schema.Attribute.Private;
Hero: Schema.Attribute.Component<'shared.hero', false> & hero: Schema.Attribute.Component<'shared.hero', false> &
Schema.Attribute.SetPluginOptions<{ Schema.Attribute.SetPluginOptions<{
i18n: { i18n: {
localized: true; localized: true;