[yoga-20] subscribe.component.tsx: make image editable

This commit is contained in:
Roland Schneider
2025-08-27 09:21:20 +02:00
parent 917918d742
commit 622f2a7686
18 changed files with 166 additions and 41 deletions

View File

@@ -1,5 +1,9 @@
// Interface automatically generated by schemas-to-ts
import { Media } from '../components/shared/Media';
import { Media_Plain } from '../components/shared/Media';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface YogaSubscribeNowComponent {
id: number;
attributes: {
@@ -7,6 +11,7 @@ export interface YogaSubscribeNowComponent {
header?: string;
placeHolderEmail?: string;
buttonSubscribeLabel?: string;
image?: { data: Media };
};
}
export interface YogaSubscribeNowComponent_Plain {
@@ -15,6 +20,7 @@ export interface YogaSubscribeNowComponent_Plain {
header?: string;
placeHolderEmail?: string;
buttonSubscribeLabel?: string;
image?: Media_Plain;
}
export interface YogaSubscribeNowComponent_NoRelations {
@@ -23,6 +29,7 @@ export interface YogaSubscribeNowComponent_NoRelations {
header?: string;
placeHolderEmail?: string;
buttonSubscribeLabel?: string;
image?: number;
}
export interface YogaSubscribeNowComponent_AdminPanelLifeCycle {
@@ -31,4 +38,5 @@ export interface YogaSubscribeNowComponent_AdminPanelLifeCycle {
header?: string;
placeHolderEmail?: string;
buttonSubscribeLabel?: string;
image?: AdminPanelRelationPropertyModification<Media_Plain>;
}

View File

@@ -4,7 +4,8 @@
"info": {
"singularName": "yoga-subscribe-now-component",
"pluralName": "yoga-subscribe-now-components",
"displayName": "YogaSubscribeNowComponent"
"displayName": "YogaSubscribeNowComponent",
"description": ""
},
"options": {
"draftAndPublish": true
@@ -22,6 +23,14 @@
},
"buttonSubscribeLabel": {
"type": "string"
},
"image": {
"allowedTypes": [
"images",
"files"
],
"type": "media",
"multiple": false
}
}
}

View File

@@ -2038,6 +2038,7 @@ export interface ApiYogaSubscribeNowComponentYogaSubscribeNowComponent
extends Struct.CollectionTypeSchema {
collectionName: 'yoga_subscribe_now_components';
info: {
description: '';
displayName: 'YogaSubscribeNowComponent';
pluralName: 'yoga-subscribe-now-components';
singularName: 'yoga-subscribe-now-component';
@@ -2051,6 +2052,7 @@ export interface ApiYogaSubscribeNowComponentYogaSubscribeNowComponent
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
header: Schema.Attribute.String;
image: Schema.Attribute.Media<'images' | 'files'>;
locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation<
'oneToMany',