[yoga-15] improve service list rendering

This commit is contained in:
Schneider Roland
2025-09-10 10:49:34 +02:00
parent c0ca7108c7
commit 8fc0f924b8
11 changed files with 62 additions and 12 deletions

View File

@@ -14,6 +14,8 @@ export interface YogaSingleService {
imageAlt?: string;
name?: string;
article?: any;
articleImage?: { data: Media };
priority?: number;
locale: string;
localizations?: { data: YogaSingleService[] };
};
@@ -27,6 +29,8 @@ export interface YogaSingleService_Plain {
imageAlt?: string;
name?: string;
article?: any;
articleImage?: Media_Plain;
priority?: number;
locale: string;
localizations?: YogaSingleService_Plain[];
}
@@ -40,6 +44,8 @@ export interface YogaSingleService_NoRelations {
imageAlt?: string;
name?: string;
article?: any;
articleImage?: number;
priority?: number;
locale: string;
localizations?: YogaSingleService[];
}
@@ -53,6 +59,8 @@ export interface YogaSingleService_AdminPanelLifeCycle {
imageAlt?: string;
name?: string;
article?: any;
articleImage?: AdminPanelRelationPropertyModification<Media_Plain>;
priority?: number;
locale: string;
localizations?: YogaSingleService[];
}

View File

@@ -74,6 +74,18 @@
},
"article": {
"type": "blocks"
},
"articleImage": {
"allowedTypes": [
"images",
"files"
],
"type": "media",
"multiple": false
},
"priority": {
"type": "integer",
"default": 100
}
}
}

View File

@@ -1840,6 +1840,7 @@ export interface ApiYogaSingleServiceYogaSingleService
};
attributes: {
article: Schema.Attribute.Blocks;
articleImage: Schema.Attribute.Media<'images' | 'files'>;
buttonLink: Schema.Attribute.String &
Schema.Attribute.SetPluginOptions<{
i18n: {
@@ -1884,6 +1885,7 @@ export interface ApiYogaSingleServiceYogaSingleService
localized: true;
};
}>;
priority: Schema.Attribute.Integer & Schema.Attribute.DefaultTo<100>;
publishedAt: Schema.Attribute.DateTime;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &