[yoga-4] add new field: article
This commit is contained in:
parent
2d4487263d
commit
56dda3233a
6
yoga-app/src/app/services/[slug]/page.tsx
Normal file
6
yoga-app/src/app/services/[slug]/page.tsx
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
export default async function ServiceDetails() {
|
||||||
|
return (
|
||||||
|
<h1>hello </h1>
|
||||||
|
)
|
||||||
|
}
|
||||||
@ -13,6 +13,7 @@ export interface YogaSingleService {
|
|||||||
image?: { data: Media };
|
image?: { data: Media };
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: { data: YogaSingleService[] };
|
localizations?: { data: YogaSingleService[] };
|
||||||
};
|
};
|
||||||
@ -25,6 +26,7 @@ export interface YogaSingleService_Plain {
|
|||||||
image?: Media_Plain;
|
image?: Media_Plain;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService_Plain[];
|
localizations?: YogaSingleService_Plain[];
|
||||||
}
|
}
|
||||||
@ -37,6 +39,7 @@ export interface YogaSingleService_NoRelations {
|
|||||||
image?: number;
|
image?: number;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService[];
|
localizations?: YogaSingleService[];
|
||||||
}
|
}
|
||||||
@ -49,6 +52,7 @@ export interface YogaSingleService_AdminPanelLifeCycle {
|
|||||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService[];
|
localizations?: YogaSingleService[];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,8 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"singularName": "yoga-single-service",
|
"singularName": "yoga-single-service",
|
||||||
"pluralName": "yoga-single-services",
|
"pluralName": "yoga-single-services",
|
||||||
"displayName": "YogaSingleService"
|
"displayName": "YogaSingleService",
|
||||||
|
"description": ""
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"draftAndPublish": true
|
"draftAndPublish": true
|
||||||
@ -40,14 +41,15 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
|
"type": "media",
|
||||||
|
"multiple": false,
|
||||||
|
"required": false,
|
||||||
"allowedTypes": [
|
"allowedTypes": [
|
||||||
"images",
|
"images",
|
||||||
"files",
|
"files",
|
||||||
"videos",
|
"videos",
|
||||||
"audios"
|
"audios"
|
||||||
],
|
],
|
||||||
"type": "media",
|
|
||||||
"multiple": false,
|
|
||||||
"pluginOptions": {
|
"pluginOptions": {
|
||||||
"i18n": {
|
"i18n": {
|
||||||
"localized": true
|
"localized": true
|
||||||
@ -69,6 +71,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"article": {
|
||||||
|
"type": "richtext"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
yoga-cms/types/generated/contentTypes.d.ts
vendored
2
yoga-cms/types/generated/contentTypes.d.ts
vendored
@ -1677,6 +1677,7 @@ export interface ApiYogaSingleServiceYogaSingleService
|
|||||||
extends Struct.CollectionTypeSchema {
|
extends Struct.CollectionTypeSchema {
|
||||||
collectionName: 'yoga_single_services';
|
collectionName: 'yoga_single_services';
|
||||||
info: {
|
info: {
|
||||||
|
description: '';
|
||||||
displayName: 'YogaSingleService';
|
displayName: 'YogaSingleService';
|
||||||
pluralName: 'yoga-single-services';
|
pluralName: 'yoga-single-services';
|
||||||
singularName: 'yoga-single-service';
|
singularName: 'yoga-single-service';
|
||||||
@ -1690,6 +1691,7 @@ export interface ApiYogaSingleServiceYogaSingleService
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
attributes: {
|
attributes: {
|
||||||
|
article: Schema.Attribute.RichText;
|
||||||
buttonLink: Schema.Attribute.String &
|
buttonLink: Schema.Attribute.String &
|
||||||
Schema.Attribute.SetPluginOptions<{
|
Schema.Attribute.SetPluginOptions<{
|
||||||
i18n: {
|
i18n: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user