From 4530a8ec1fc43ec7b761fda9a4f7461e1fe54250 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 14 Mar 2024 00:31:52 +0000 Subject: [PATCH] Updated the About page --- src/api/about/content-types/about/schema.json | 11 ++++++++ src/components/about-page/ceo-message.json | 18 ++++++++++++ .../1.0.0/full_documentation.json | 28 ++++++++++++++++++- types/generated/components.d.ts | 13 +++++++++ types/generated/contentTypes.d.ts | 6 ++++ 5 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 src/components/about-page/ceo-message.json diff --git a/src/api/about/content-types/about/schema.json b/src/api/about/content-types/about/schema.json index 8323b34..b5a269d 100644 --- a/src/api/about/content-types/about/schema.json +++ b/src/api/about/content-types/about/schema.json @@ -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" } } } diff --git a/src/components/about-page/ceo-message.json b/src/components/about-page/ceo-message.json new file mode 100644 index 0000000..b3d5c08 --- /dev/null +++ b/src/components/about-page/ceo-message.json @@ -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" + } + } +} diff --git a/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 34a1ced..8240e43 100644 --- a/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -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" diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index af215ba..09a824d 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -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; } diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index a111991..3bdf439 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -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;