From 5c6ed146ef311115769be3de59ce64ae89af264f Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 14 Mar 2024 00:19:47 +0000 Subject: [PATCH] Updated the About page --- src/api/about/content-types/about/schema.json | 11 ++++++++ src/components/about-page/5-texts.json | 19 +++++++++++++ .../1.0.0/full_documentation.json | 28 ++++++++++++++++++- types/generated/components.d.ts | 14 ++++++++++ types/generated/contentTypes.d.ts | 6 ++++ 5 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 src/components/about-page/5-texts.json diff --git a/src/api/about/content-types/about/schema.json b/src/api/about/content-types/about/schema.json index bff11d7..8323b34 100644 --- a/src/api/about/content-types/about/schema.json +++ b/src/api/about/content-types/about/schema.json @@ -36,6 +36,17 @@ } }, "component": "section.title-with-text" + }, + "MissionVisionValuesSection": { + "displayName": "5 Texts", + "type": "component", + "repeatable": false, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "component": "about-page.5-texts" } } } diff --git a/src/components/about-page/5-texts.json b/src/components/about-page/5-texts.json new file mode 100644 index 0000000..9ffc56a --- /dev/null +++ b/src/components/about-page/5-texts.json @@ -0,0 +1,19 @@ +{ + "collectionName": "components_section_5_texts", + "info": { + "displayName": "Mission, Vision and Values", + "description": "" + }, + "options": {}, + "attributes": { + "Mission": { + "type": "string" + }, + "Vision": { + "type": "string" + }, + "Values": { + "type": "richtext" + } + } +} 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 e22e763..34a1ced 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-13T23:19:31.710Z" + "x-generation-date": "2024-03-14T00:18:58.238Z" }, "x-strapi-config": { "path": "/documentation", @@ -98,6 +98,9 @@ "AboutSection": { "$ref": "#/components/schemas/SectionTitleWithTextComponent" }, + "MissionVisionValuesSection": { + "$ref": "#/components/schemas/AboutPage5TextsComponent" + }, "locale": { "type": "string" } @@ -118,6 +121,9 @@ "AboutSection": { "$ref": "#/components/schemas/SectionTitleWithTextComponent" }, + "MissionVisionValuesSection": { + "$ref": "#/components/schemas/AboutPage5TextsComponent" + }, "locale": { "type": "string" } @@ -248,6 +254,9 @@ "AboutSection": { "$ref": "#/components/schemas/SectionTitleWithTextComponent" }, + "MissionVisionValuesSection": { + "$ref": "#/components/schemas/AboutPage5TextsComponent" + }, "createdAt": { "type": "string", "format": "date-time" @@ -612,6 +621,23 @@ } } }, + "AboutPage5TextsComponent": { + "type": "object", + "properties": { + "id": { + "type": "number" + }, + "Mission": { + "type": "string" + }, + "Vision": { + "type": "string" + }, + "Values": { + "type": "string" + } + } + }, "HomeLocalizationRequest": { "required": [ "locale" diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index 45e30c2..af215ba 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -1,5 +1,18 @@ import type { Schema, Attribute } from '@strapi/strapi'; +export interface AboutPage5Texts extends Schema.Component { + collectionName: 'components_section_5_texts'; + info: { + displayName: 'Mission, Vision and Values'; + description: ''; + }; + attributes: { + Mission: Attribute.String; + Vision: Attribute.String; + Values: Attribute.RichText; + }; +} + export interface SectionTitleWithText extends Schema.Component { collectionName: 'components_section_title_with_texts'; info: { @@ -27,6 +40,7 @@ export interface TitleTitleWithTag extends Schema.Component { declare module '@strapi/types' { export module Shared { export interface Components { + 'about-page.5-texts': AboutPage5Texts; '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 29af2cc..a111991 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -391,6 +391,12 @@ export interface ApiAboutAbout extends Schema.SingleType { localized: true; }; }>; + MissionVisionValuesSection: Attribute.Component<'about-page.5-texts'> & + Attribute.SetPluginOptions<{ + i18n: { + localized: true; + }; + }>; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime;