[yoga-15] improve service list rendering
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
@@ -74,6 +74,18 @@
|
||||
},
|
||||
"article": {
|
||||
"type": "blocks"
|
||||
},
|
||||
"articleImage": {
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
},
|
||||
"priority": {
|
||||
"type": "integer",
|
||||
"default": 100
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
yoga-cms/types/generated/contentTypes.d.ts
vendored
2
yoga-cms/types/generated/contentTypes.d.ts
vendored
@@ -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'> &
|
||||
|
||||
Reference in New Issue
Block a user