Updated the About page

This commit is contained in:
Tiago Ribeiro
2024-03-14 00:31:52 +00:00
parent 5c6ed146ef
commit 4530a8ec1f
5 changed files with 75 additions and 1 deletions

View File

@@ -47,6 +47,17 @@
}
},
"component": "about-page.5-texts"
},
"CEOMessage": {
"displayName": "CEO Message",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "about-page.ceo-message"
}
}
}

View File

@@ -0,0 +1,18 @@
{
"collectionName": "components_about_page_ceo_messages",
"info": {
"displayName": "CEO Message"
},
"options": {},
"attributes": {
"Title": {
"type": "string"
},
"name": {
"type": "string"
},
"Text": {
"type": "string"
}
}
}

View File

@@ -14,7 +14,7 @@
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"x-generation-date": "2024-03-14T00:18:58.238Z"
"x-generation-date": "2024-03-14T00:31:39.277Z"
},
"x-strapi-config": {
"path": "/documentation",
@@ -101,6 +101,9 @@
"MissionVisionValuesSection": {
"$ref": "#/components/schemas/AboutPage5TextsComponent"
},
"CEOMessage": {
"$ref": "#/components/schemas/AboutPageCeoMessageComponent"
},
"locale": {
"type": "string"
}
@@ -124,6 +127,9 @@
"MissionVisionValuesSection": {
"$ref": "#/components/schemas/AboutPage5TextsComponent"
},
"CEOMessage": {
"$ref": "#/components/schemas/AboutPageCeoMessageComponent"
},
"locale": {
"type": "string"
}
@@ -257,6 +263,9 @@
"MissionVisionValuesSection": {
"$ref": "#/components/schemas/AboutPage5TextsComponent"
},
"CEOMessage": {
"$ref": "#/components/schemas/AboutPageCeoMessageComponent"
},
"createdAt": {
"type": "string",
"format": "date-time"
@@ -638,6 +647,23 @@
}
}
},
"AboutPageCeoMessageComponent": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"Title": {
"type": "string"
},
"name": {
"type": "string"
},
"Text": {
"type": "string"
}
}
},
"HomeLocalizationRequest": {
"required": [
"locale"

View File

@@ -13,6 +13,18 @@ export interface AboutPage5Texts extends Schema.Component {
};
}
export interface AboutPageCeoMessage extends Schema.Component {
collectionName: 'components_about_page_ceo_messages';
info: {
displayName: 'CEO Message';
};
attributes: {
Title: Attribute.String;
name: Attribute.String;
Text: Attribute.String;
};
}
export interface SectionTitleWithText extends Schema.Component {
collectionName: 'components_section_title_with_texts';
info: {
@@ -41,6 +53,7 @@ declare module '@strapi/types' {
export module Shared {
export interface Components {
'about-page.5-texts': AboutPage5Texts;
'about-page.ceo-message': AboutPageCeoMessage;
'section.title-with-text': SectionTitleWithText;
'title.title-with-tag': TitleTitleWithTag;
}

View File

@@ -397,6 +397,12 @@ export interface ApiAboutAbout extends Schema.SingleType {
localized: true;
};
}>;
CEOMessage: Attribute.Component<'about-page.ceo-message'> &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;