Compare commits

..

10 Commits

Author SHA1 Message Date
João Ramos
c73f61411c Merged in advertisement-banner (pull request #1)
Advertisement Banner
2024-04-08 22:49:56 +00:00
Joao Ramos
3d4005a62a Added support for an Advertisement Banner on the homepage
made home publish/draft
2024-04-08 18:48:35 +01:00
Tiago Ribeiro
5dbe466dff Added the arguments to Dockerfile 2024-04-01 00:39:58 +01:00
Tiago Ribeiro
277cafd45a Solved problems with Docker 2024-04-01 00:28:39 +01:00
Tiago Ribeiro
42bf8e1191 Updated the CMS to have the ability to choose the Banner image 2024-03-28 15:10:37 +00:00
Tiago Ribeiro
2cb916cfbf Added icons to the page 2024-03-19 13:41:08 +00:00
Tiago Ribeiro
bd0b7a32ff Created the rest of the structure of the CMS 2024-03-18 10:21:00 +00:00
Tiago Ribeiro
edeae4a8c3 Created the structure for the whole About page 2024-03-15 09:54:25 +00:00
Tiago Ribeiro
e3a6e5d551 Updated the structure of the About page 2024-03-14 18:37:52 +00:00
Tiago Ribeiro
e10f368fe4 Updated the code to use MySQL 2024-03-14 18:03:11 +00:00
76 changed files with 16987 additions and 771 deletions

10
.dockerignore Normal file
View File

@@ -0,0 +1,10 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git
.strapi
.tmp
build

View File

@@ -5,3 +5,11 @@ API_TOKEN_SALT=tobemodified
ADMIN_JWT_SECRET=tobemodified
TRANSFER_TOKEN_SALT=tobemodified
JWT_SECRET=tobemodified
# Database
DATABASE_URL=jdbc:mysql://tobemodified:3306/
DATABASE_CLIENT=mysql2
DATABASE_HOST=tobemodified
DATABASE_NAME=tobemodified
DATABASE_USERNAME=tobemodified
DATABASE_PASSWORD=tobemodified

1
.gitignore vendored
View File

@@ -112,3 +112,4 @@ exports
dist
build
.strapi-updater.json
.history

View File

@@ -1,5 +1,5 @@
# Creating multi-stage build for production
FROM node:18-alpine as build
FROM node:18-alpine3.18 as build
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev git > /dev/null 2>&1
ENV NODE_ENV=production
@@ -8,12 +8,17 @@ COPY package.json yarn.lock ./
RUN yarn global add node-gyp
RUN yarn config set network-timeout 600000 -g && yarn install --production
ENV PATH /opt/node_modules/.bin:$PATH
ENV NODE_ENV=production
ARG GCS_BUCKET_NAME
ARG GCS_SERVICE_ACCOUNT
WORKDIR /opt/app
COPY . .
RUN yarn build
# Creating final production image
FROM node:18-alpine
FROM node:18-alpine3.18
RUN apk add --no-cache vips-dev
ENV NODE_ENV=production
WORKDIR /opt/

View File

@@ -1,12 +1,25 @@
module.exports = [
'strapi::logger',
'strapi::errors',
'strapi::security',
'strapi::cors',
'strapi::poweredBy',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
"strapi::logger",
"strapi::errors",
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"connect-src": ["'self'", "https:"],
"img-src": ["'self'", "data:", "blob:", "storage.googleapis.com"],
"media-src": ["'self'", "data:", "blob:", "storage.googleapis.com"],
upgradeInsecureRequests: null,
},
},
},
},
"strapi::cors",
"strapi::poweredBy",
"strapi::query",
"strapi::body",
"strapi::session",
"strapi::favicon",
"strapi::public",
];

View File

@@ -1 +1,44 @@
module.exports = () => ({});
module.exports = ({ env }) => {
const serviceAccount = JSON.parse(atob(env("GCS_SERVICE_ACCOUNT")));
return {
upload: {
config: {
provider:
"@strapi-community/strapi-provider-upload-google-cloud-storage",
providerOptions: {
bucketName: env("GCS_BUCKET_NAME"),
publicFiles: true,
uniform: false,
gzip: true,
serviceAccount: {
...serviceAccount,
private_key: serviceAccount.private_key
.split(String.raw`\n`)
.join("\n"),
},
basePath: "",
},
},
},
publisher: {
enabled: true,
config: {
hooks: {
beforePublish: async ({ strapi, uid, entity }) => {
console.log("beforePublish");
},
afterPublish: async ({ strapi, uid, entity }) => {
console.log("afterPublish");
},
beforeUnpublish: async ({ strapi, uid, entity }) => {
console.log("beforeUnpublish");
},
afterUnpublish: async ({ strapi, uid, entity }) => {
console.log("afterUnpublish");
},
},
},
},
};
};

View File

@@ -1,10 +1,17 @@
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
app: {
keys: env.array('APP_KEYS'),
},
webhooks: {
populateRelations: env.bool('WEBHOOKS_POPULATE_RELATIONS', false),
},
});
module.exports = ({ env }) => {
const cronEnabled = env.bool("CRON_ENABLED", true)
console.log('cronEnabled', cronEnabled);
return {
host: env("HOST", "0.0.0.0"),
port: env.int("PORT", 1337),
app: {
keys: env.array("APP_KEYS"),
},
webhooks: {
populateRelations: env.bool("WEBHOOKS_POPULATE_RELATIONS", false),
},
cron: {
enabled: cronEnabled,
},
};
};

View File

@@ -1,38 +1,43 @@
{
"name": "encoach-cms",
"private": true,
"version": "0.1.0",
"description": "The Content Management System for the EnCoach website, developed by eCrop",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"devDependencies": {},
"dependencies": {
"@strapi/plugin-cloud": "^4.20.4",
"@strapi/plugin-color-picker": "^4.20.4",
"@strapi/plugin-documentation": "^4.20.5",
"@strapi/plugin-i18n": "^4.20.4",
"@strapi/plugin-users-permissions": "^4.20.4",
"@strapi/strapi": "^4.20.4",
"better-sqlite3": "8.6.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "5.3.4",
"strapi-plugin-import-export-entries": "^1.23.1",
"styled-components": "5.3.3"
},
"author": {
"name": "eCrop"
},
"strapi": {
"uuid": "5a0eb038-39c9-4d64-8f41-78376e285f85"
},
"engines": {
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}
"name": "encoach-cms",
"private": true,
"version": "0.1.0",
"description": "The Content Management System for the EnCoach website, developed by eCrop",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"devDependencies": {},
"dependencies": {
"@strapi-community/strapi-provider-upload-google-cloud-storage": "^4.10.5",
"@strapi/plugin-cloud": "^4.21.1",
"@strapi/plugin-color-picker": "^4.21.1",
"@strapi/plugin-documentation": "^4.20.5",
"@strapi/plugin-i18n": "^4.21.1",
"@strapi/plugin-users-permissions": "^4.21.1",
"@strapi/strapi": "^4.21.1",
"better-sqlite3": "8.6.0",
"esbuild": "^0.20.2",
"mysql2": "^3.9.2",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "5.3.4",
"strapi-plugin-import-export-entries": "^1.23.1",
"strapi-plugin-populate-deep": "^3.0.1",
"strapi-plugin-publisher": "^1.5.7",
"styled-components": "5.3.3"
},
"author": {
"name": "eCrop"
},
"strapi": {
"uuid": "5a0eb038-39c9-4d64-8f41-78376e285f85"
},
"engines": {
"node": ">=18.0.0 <=20.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}

View File

@@ -8,7 +8,7 @@
"description": ""
},
"options": {
"draftAndPublish": true
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
@@ -58,6 +58,27 @@
}
},
"component": "about-page.ceo-message"
},
"Capabilities": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "about-page.capabilities"
},
"Expertise": {
"displayName": "Expertise",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "about-page.expertise"
}
}
}

View File

@@ -0,0 +1,132 @@
{
"kind": "singleType",
"collectionName": "contacts",
"info": {
"singularName": "contact",
"pluralName": "contacts",
"displayName": "Contact",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"Title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Name": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Email": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Subject": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Submit": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"SelectType": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Feedback": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Bug": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Help": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"FieldRequired": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"InvalidEmail": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"TicketSuccess": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"TicketError": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* contact controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::contact.contact');

View File

@@ -0,0 +1,405 @@
{
"/contact": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ContactResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Contact"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/contact"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ContactResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Contact"
],
"parameters": [],
"operationId": "put/contact",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ContactRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Contact"
],
"parameters": [],
"operationId": "delete/contact"
}
},
"/contact/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ContactLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Contact"
],
"parameters": [],
"operationId": "post/contact/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ContactLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* contact router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::contact.contact');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* contact service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::contact.contact');

View File

@@ -0,0 +1,43 @@
{
"kind": "singleType",
"collectionName": "country_managers_contacts",
"info": {
"singularName": "country-managers-contact",
"pluralName": "country-managers-contacts",
"displayName": "CountryManagersContact"
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"Name": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Number": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Email": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* country-managers-contact controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::country-managers-contact.country-managers-contact');

View File

@@ -0,0 +1,405 @@
{
"/country-managers-contact": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CountryManagersContactResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Country-managers-contact"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/country-managers-contact"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CountryManagersContactResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Country-managers-contact"
],
"parameters": [],
"operationId": "put/country-managers-contact",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CountryManagersContactRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Country-managers-contact"
],
"parameters": [],
"operationId": "delete/country-managers-contact"
}
},
"/country-managers-contact/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CountryManagersContactLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Country-managers-contact"
],
"parameters": [],
"operationId": "post/country-managers-contact/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CountryManagersContactLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* country-managers-contact router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::country-managers-contact.country-managers-contact');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* country-managers-contact service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::country-managers-contact.country-managers-contact');

View File

@@ -0,0 +1,71 @@
{
"kind": "singleType",
"collectionName": "footers",
"info": {
"singularName": "footer",
"pluralName": "footers",
"displayName": "Footer",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"Navigation": {
"displayName": "Navigation",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "footer.navigation"
},
"Services": {
"displayName": "Services",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "footer.services"
},
"About": {
"displayName": "About",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "footer.about"
},
"GetInTouch": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "section.title-with-text"
},
"Copyright": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* footer controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::footer.footer');

View File

@@ -0,0 +1,405 @@
{
"/footer": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FooterResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Footer"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/footer"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FooterResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Footer"
],
"parameters": [],
"operationId": "put/footer",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FooterRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Footer"
],
"parameters": [],
"operationId": "delete/footer"
}
},
"/footer/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FooterLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Footer"
],
"parameters": [],
"operationId": "post/footer/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FooterLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* footer router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::footer.footer');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* footer service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::footer.footer');

View File

@@ -0,0 +1,39 @@
{
"kind": "singleType",
"collectionName": "histories",
"info": {
"singularName": "history",
"pluralName": "histories",
"displayName": "History",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"Title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Events": {
"displayName": "Event",
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "history-page.event"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* history controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::history.history');

View File

@@ -0,0 +1,405 @@
{
"/history": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HistoryResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"History"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/history"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HistoryResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"History"
],
"parameters": [],
"operationId": "put/history",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HistoryRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"History"
],
"parameters": [],
"operationId": "delete/history"
}
},
"/history/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HistoryLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"History"
],
"parameters": [],
"operationId": "post/history/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HistoryLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* history router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::history.history');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* history service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::history.history');

View File

@@ -16,13 +16,118 @@
}
},
"attributes": {
"Button_Get_Started": {
"GetStartedButton": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Modules": {
"displayName": "Modules",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "home-page.modules"
},
"LearnAI": {
"displayName": "TagTitleText",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "title.tag-title-text"
},
"LearnMore": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"EnCoachBenefits": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "title.tag-title-text"
},
"Interested": {
"displayName": "Interested Section",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "home-page.interested-section"
},
"CEOMessage": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "title.tag-title-text"
},
"OurPartners": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Accreditation": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Banner": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
],
"pluginOptions": {
"i18n": {
"localized": false
}
}
},
"AdvertisementBanner": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false,
"pluginOptions": {
"i18n": {
"localized": true
}
}
}
}
}

View File

@@ -0,0 +1,91 @@
{
"kind": "singleType",
"collectionName": "nav_bars",
"info": {
"singularName": "nav-bar",
"pluralName": "nav-bars",
"displayName": "NavBar"
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"Home": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Services": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Price": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"About": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"History": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Contact": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Platform": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Join": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"CountryManager": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* nav-bar controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::nav-bar.nav-bar');

View File

@@ -0,0 +1,405 @@
{
"/nav-bar": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NavBarResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Nav-bar"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/nav-bar"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NavBarResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Nav-bar"
],
"parameters": [],
"operationId": "put/nav-bar",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NavBarRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Nav-bar"
],
"parameters": [],
"operationId": "delete/nav-bar"
}
},
"/nav-bar/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NavBarLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Nav-bar"
],
"parameters": [],
"operationId": "post/nav-bar/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NavBarLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* nav-bar router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::nav-bar.nav-bar');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* nav-bar service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::nav-bar.nav-bar');

View File

@@ -0,0 +1,107 @@
{
"kind": "singleType",
"collectionName": "prices",
"info": {
"singularName": "price",
"pluralName": "prices",
"displayName": "Price",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"SignUp": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"PackageIncludes": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"PackageIncludesA": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"PackageIncludesB": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"PackageIncludesC": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Days": {
"displayName": "Singular & Plural",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "misc.singular-and-plural"
},
"Weeks": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "misc.singular-and-plural"
},
"Months": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "misc.singular-and-plural"
},
"EnCoach": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* price controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::price.price');

View File

@@ -0,0 +1,405 @@
{
"/price": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PriceResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Price"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/price"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PriceResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Price"
],
"parameters": [],
"operationId": "put/price",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PriceRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Price"
],
"parameters": [],
"operationId": "delete/price"
}
},
"/price/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PriceLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Price"
],
"parameters": [],
"operationId": "post/price/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PriceLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* price router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::price.price');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* price service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::price.price');

View File

@@ -0,0 +1,55 @@
{
"kind": "singleType",
"collectionName": "privacy_policies",
"info": {
"singularName": "privacy-policy",
"pluralName": "privacy-policies",
"displayName": "PrivacyPolicy",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"Title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"LastUpdate": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"General": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"Content": {
"displayName": "Title with Text and List",
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "section.title-with-text-and-list"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* privacy-policy controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::privacy-policy.privacy-policy');

View File

@@ -0,0 +1,405 @@
{
"/privacy-policy": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivacyPolicyResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Privacy-policy"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/privacy-policy"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivacyPolicyResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Privacy-policy"
],
"parameters": [],
"operationId": "put/privacy-policy",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivacyPolicyRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Privacy-policy"
],
"parameters": [],
"operationId": "delete/privacy-policy"
}
},
"/privacy-policy/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivacyPolicyLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Privacy-policy"
],
"parameters": [],
"operationId": "post/privacy-policy/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PrivacyPolicyLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* privacy-policy router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::privacy-policy.privacy-policy');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* privacy-policy service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::privacy-policy.privacy-policy');

View File

@@ -0,0 +1,78 @@
{
"kind": "singleType",
"collectionName": "servicess",
"info": {
"singularName": "services",
"pluralName": "servicess",
"displayName": "Services",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"Title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"ModuleEvaluation": {
"displayName": "Module Evaluation",
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "services-page.module-evaluation"
},
"ProgressTracking": {
"displayName": "Progress Tracking",
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "services-page.progress-tracking"
},
"CorporateEducationalInstitutions": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"CustomizedPackages": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "section.title-with-text"
},
"UnifiedEnglishLevelTest": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "services-page.progress-tracking"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* services controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::services.services');

View File

@@ -0,0 +1,405 @@
{
"/services": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServicesResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Services"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/services"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServicesResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Services"
],
"parameters": [],
"operationId": "put/services",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServicesRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Services"
],
"parameters": [],
"operationId": "delete/services"
}
},
"/services/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServicesLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Services"
],
"parameters": [],
"operationId": "post/services/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ServicesLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* services router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::services.services');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* services service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::services.services');

View File

@@ -0,0 +1,45 @@
{
"kind": "singleType",
"collectionName": "terms_and_conditionss",
"info": {
"singularName": "terms-and-conditions",
"pluralName": "terms-and-conditionss",
"displayName": "Terms and Conditions"
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"Title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"LastUpdate": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"Content": {
"type": "component",
"repeatable": true,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "section.title-with-text-and-list"
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* terms-and-conditions controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::terms-and-conditions.terms-and-conditions');

View File

@@ -0,0 +1,405 @@
{
"/terms-and-conditions": {
"get": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TermsAndConditionsResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Terms-and-conditions"
],
"parameters": [
{
"name": "sort",
"in": "query",
"description": "Sort by attributes ascending (asc) or descending (desc)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "pagination[withCount]",
"in": "query",
"description": "Return page/pageSize (default: true)",
"deprecated": false,
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "pagination[page]",
"in": "query",
"description": "Page number (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[pageSize]",
"in": "query",
"description": "Page size (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[start]",
"in": "query",
"description": "Offset value (default: 0)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "pagination[limit]",
"in": "query",
"description": "Number of entities to return (default: 25)",
"deprecated": false,
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "fields",
"in": "query",
"description": "Fields to return (ex: title,author)",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "populate",
"in": "query",
"description": "Relations to return",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "filters",
"in": "query",
"description": "Filters to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "object"
},
"style": "deepObject"
},
{
"name": "locale",
"in": "query",
"description": "Locale to apply",
"deprecated": false,
"required": false,
"schema": {
"type": "string"
}
}
],
"operationId": "get/terms-and-conditions"
},
"put": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TermsAndConditionsResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Terms-and-conditions"
],
"parameters": [],
"operationId": "put/terms-and-conditions",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TermsAndConditionsRequest"
}
}
}
}
},
"delete": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int64"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Terms-and-conditions"
],
"parameters": [],
"operationId": "delete/terms-and-conditions"
}
},
"/terms-and-conditions/localizations": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TermsAndConditionsLocalizationResponse"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
},
"tags": [
"Terms-and-conditions"
],
"parameters": [],
"operationId": "post/terms-and-conditions/localizations",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TermsAndConditionsLocalizationRequest"
}
}
}
}
}
}
}

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* terms-and-conditions router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::terms-and-conditions.terms-and-conditions');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* terms-and-conditions service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::terms-and-conditions.terms-and-conditions');

View File

@@ -0,0 +1,41 @@
{
"collectionName": "components_about_page_capabilities",
"info": {
"displayName": "Capabilities",
"description": ""
},
"options": {},
"attributes": {
"Title": {
"type": "string"
},
"Intro": {
"type": "text"
},
"Analytics": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"Predictive": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"NLP": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"Engine": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"ContinuousLearning": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
}
}
}

View File

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

View File

@@ -0,0 +1,41 @@
{
"collectionName": "components_about_page_expertise",
"info": {
"displayName": "Expertise",
"description": ""
},
"options": {},
"attributes": {
"Title": {
"type": "string"
},
"Intro": {
"type": "text"
},
"Language": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"IELTS": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"Alignment": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"Native": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"KnowledgeExperience": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
}
}
}

View File

@@ -0,0 +1,19 @@
{
"collectionName": "components_footer_abouts",
"info": {
"displayName": "About",
"description": ""
},
"options": {},
"attributes": {
"Terms": {
"type": "string"
},
"PrivacyPolicy": {
"type": "string"
},
"Text": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,27 @@
{
"collectionName": "components_footer_navigations",
"info": {
"displayName": "Navigation"
},
"options": {},
"attributes": {
"Text": {
"type": "string"
},
"WhyUs": {
"type": "string"
},
"Capabilities": {
"type": "string"
},
"Expertise": {
"type": "string"
},
"History": {
"type": "string"
},
"Contact": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,18 @@
{
"collectionName": "components_footer_services",
"info": {
"displayName": "Services"
},
"options": {},
"attributes": {
"Text": {
"type": "string"
},
"EnCoachBenefits": {
"type": "string"
},
"StudentTestimonials": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,18 @@
{
"collectionName": "components_history_page_events",
"info": {
"displayName": "Event"
},
"options": {},
"attributes": {
"Label": {
"type": "string"
},
"Date": {
"type": "string"
},
"Icon": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,21 @@
{
"collectionName": "components_home_page_interested_sections",
"info": {
"displayName": "Interested Section"
},
"options": {},
"attributes": {
"Tag": {
"type": "string"
},
"Title": {
"type": "string"
},
"ContactUs": {
"type": "string"
},
"WhatsAppContact": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,29 @@
{
"collectionName": "components_home_page_modules",
"info": {
"displayName": "Modules"
},
"options": {},
"attributes": {
"Reading": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"Listening": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"Writing": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
},
"Speaking": {
"type": "component",
"repeatable": false,
"component": "section.title-with-text"
}
}
}

View File

@@ -0,0 +1,15 @@
{
"collectionName": "components_misc_singular_and_plurals",
"info": {
"displayName": "Singular & Plural"
},
"options": {},
"attributes": {
"Singular": {
"type": "string"
},
"Plural": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,15 @@
{
"collectionName": "components_section_text_with_lists",
"info": {
"displayName": "Text with List"
},
"options": {},
"attributes": {
"Text": {
"type": "text"
},
"List": {
"type": "blocks"
}
}
}

View File

@@ -0,0 +1,19 @@
{
"collectionName": "components_section_title_with_text_and_lists",
"info": {
"displayName": "Title with Text and List",
"description": ""
},
"options": {},
"attributes": {
"Title": {
"type": "string"
},
"Text": {
"type": "text"
},
"List": {
"type": "richtext"
}
}
}

View File

@@ -10,7 +10,7 @@
"type": "string"
},
"Text": {
"type": "string"
"type": "text"
}
}
}

View File

@@ -0,0 +1,34 @@
{
"collectionName": "components_services_page_module_evaluations",
"info": {
"displayName": "Module Evaluation",
"description": ""
},
"options": {},
"attributes": {
"Title": {
"type": "string"
},
"Text": {
"type": "text"
},
"Evaluation": {
"type": "string"
},
"EvaluationValues": {
"type": "richtext"
},
"Acquire": {
"type": "string"
},
"AcquireValues": {
"type": "richtext"
},
"EvaluationIcon": {
"type": "string"
},
"AcquireIcon": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,21 @@
{
"collectionName": "components_services_page_progress_trackings",
"info": {
"displayName": "Progress Tracking"
},
"options": {},
"attributes": {
"Title": {
"type": "string"
},
"Text": {
"type": "string"
},
"Advantages": {
"type": "string"
},
"AdvantageValues": {
"type": "richtext"
}
}
}

View File

@@ -0,0 +1,21 @@
{
"collectionName": "components_services_page_unified_english_level_tests",
"info": {
"displayName": "UnifiedEnglishLevelTest"
},
"options": {},
"attributes": {
"Title": {
"type": "string"
},
"Text": {
"type": "string"
},
"Advantages": {
"type": "string"
},
"AdvantageValues": {
"type": "richtext"
}
}
}

View File

@@ -0,0 +1,19 @@
{
"collectionName": "components_title_tag_title_texts",
"info": {
"displayName": "Title with Tag and Text",
"description": ""
},
"options": {},
"attributes": {
"Tag": {
"type": "string"
},
"Title": {
"type": "string"
},
"Text": {
"type": "text"
}
}
}

View File

@@ -13,27 +13,232 @@ export interface AboutPage5Texts extends Schema.Component {
};
}
export interface AboutPageCapabilities extends Schema.Component {
collectionName: 'components_about_page_capabilities';
info: {
displayName: 'Capabilities';
description: '';
};
attributes: {
Title: Attribute.String;
Intro: Attribute.Text;
Analytics: Attribute.Component<'section.title-with-text'>;
Predictive: Attribute.Component<'section.title-with-text'>;
NLP: Attribute.Component<'section.title-with-text'>;
Engine: Attribute.Component<'section.title-with-text'>;
ContinuousLearning: Attribute.Component<'section.title-with-text'>;
};
}
export interface AboutPageCeoMessage extends Schema.Component {
collectionName: 'components_about_page_ceo_messages';
info: {
displayName: 'CEO Message';
description: '';
};
attributes: {
Title: Attribute.String;
name: Attribute.String;
Name: Attribute.String;
Text: Attribute.Text;
};
}
export interface AboutPageExpertise extends Schema.Component {
collectionName: 'components_about_page_expertise';
info: {
displayName: 'Expertise';
description: '';
};
attributes: {
Title: Attribute.String;
Intro: Attribute.Text;
Language: Attribute.Component<'section.title-with-text'>;
IELTS: Attribute.Component<'section.title-with-text'>;
Alignment: Attribute.Component<'section.title-with-text'>;
Native: Attribute.Component<'section.title-with-text'>;
KnowledgeExperience: Attribute.Component<'section.title-with-text'>;
};
}
export interface FooterAbout extends Schema.Component {
collectionName: 'components_footer_abouts';
info: {
displayName: 'About';
description: '';
};
attributes: {
Terms: Attribute.String;
PrivacyPolicy: Attribute.String;
Text: Attribute.String;
};
}
export interface FooterNavigation extends Schema.Component {
collectionName: 'components_footer_navigations';
info: {
displayName: 'Navigation';
};
attributes: {
Text: Attribute.String;
WhyUs: Attribute.String;
Capabilities: Attribute.String;
Expertise: Attribute.String;
History: Attribute.String;
Contact: Attribute.String;
};
}
export interface FooterServices extends Schema.Component {
collectionName: 'components_footer_services';
info: {
displayName: 'Services';
};
attributes: {
Text: Attribute.String;
EnCoachBenefits: Attribute.String;
StudentTestimonials: Attribute.String;
};
}
export interface HistoryPageEvent extends Schema.Component {
collectionName: 'components_history_page_events';
info: {
displayName: 'Event';
};
attributes: {
Label: Attribute.String;
Date: Attribute.String;
Icon: Attribute.String;
};
}
export interface HomePageInterestedSection extends Schema.Component {
collectionName: 'components_home_page_interested_sections';
info: {
displayName: 'Interested Section';
};
attributes: {
Tag: Attribute.String;
Title: Attribute.String;
ContactUs: Attribute.String;
WhatsAppContact: Attribute.String;
};
}
export interface HomePageModules extends Schema.Component {
collectionName: 'components_home_page_modules';
info: {
displayName: 'Modules';
};
attributes: {
Reading: Attribute.Component<'section.title-with-text'>;
Listening: Attribute.Component<'section.title-with-text'>;
Writing: Attribute.Component<'section.title-with-text'>;
Speaking: Attribute.Component<'section.title-with-text'>;
};
}
export interface MiscSingularAndPlural extends Schema.Component {
collectionName: 'components_misc_singular_and_plurals';
info: {
displayName: 'Singular & Plural';
};
attributes: {
Singular: Attribute.String;
Plural: Attribute.String;
};
}
export interface SectionTextWithList extends Schema.Component {
collectionName: 'components_section_text_with_lists';
info: {
displayName: 'Text with List';
};
attributes: {
Text: Attribute.Text;
List: Attribute.Blocks;
};
}
export interface SectionTitleWithTextAndList extends Schema.Component {
collectionName: 'components_section_title_with_text_and_lists';
info: {
displayName: 'Title with Text and List';
description: '';
};
attributes: {
Title: Attribute.String;
Text: Attribute.Text;
List: Attribute.RichText;
};
}
export interface SectionTitleWithText extends Schema.Component {
collectionName: 'components_section_title_with_texts';
info: {
displayName: 'Title with Text';
description: '';
};
attributes: {
Title: Attribute.String;
Text: Attribute.Text;
};
}
export interface ServicesPageModuleEvaluation extends Schema.Component {
collectionName: 'components_services_page_module_evaluations';
info: {
displayName: 'Module Evaluation';
description: '';
};
attributes: {
Title: Attribute.String;
Text: Attribute.Text;
Evaluation: Attribute.String;
EvaluationValues: Attribute.RichText;
Acquire: Attribute.String;
AcquireValues: Attribute.RichText;
EvaluationIcon: Attribute.String;
AcquireIcon: Attribute.String;
};
}
export interface ServicesPageProgressTracking extends Schema.Component {
collectionName: 'components_services_page_progress_trackings';
info: {
displayName: 'Progress Tracking';
};
attributes: {
Title: Attribute.String;
Text: Attribute.String;
Advantages: Attribute.String;
AdvantageValues: Attribute.RichText;
};
}
export interface ServicesPageUnifiedEnglishLevelTest extends Schema.Component {
collectionName: 'components_services_page_unified_english_level_tests';
info: {
displayName: 'UnifiedEnglishLevelTest';
};
attributes: {
Title: Attribute.String;
Text: Attribute.String;
Advantages: Attribute.String;
AdvantageValues: Attribute.RichText;
};
}
export interface TitleTagTitleText extends Schema.Component {
collectionName: 'components_title_tag_title_texts';
info: {
displayName: 'Title with Tag and Text';
description: '';
};
attributes: {
Tag: Attribute.String;
Title: Attribute.String;
Text: Attribute.Text;
};
}
@@ -53,8 +258,23 @@ declare module '@strapi/types' {
export module Shared {
export interface Components {
'about-page.5-texts': AboutPage5Texts;
'about-page.capabilities': AboutPageCapabilities;
'about-page.ceo-message': AboutPageCeoMessage;
'about-page.expertise': AboutPageExpertise;
'footer.about': FooterAbout;
'footer.navigation': FooterNavigation;
'footer.services': FooterServices;
'history-page.event': HistoryPageEvent;
'home-page.interested-section': HomePageInterestedSection;
'home-page.modules': HomePageModules;
'misc.singular-and-plural': MiscSingularAndPlural;
'section.text-with-list': SectionTextWithList;
'section.title-with-text-and-list': SectionTitleWithTextAndList;
'section.title-with-text': SectionTitleWithText;
'services-page.module-evaluation': ServicesPageModuleEvaluation;
'services-page.progress-tracking': ServicesPageProgressTracking;
'services-page.unified-english-level-test': ServicesPageUnifiedEnglishLevelTest;
'title.tag-title-text': TitleTagTitleText;
'title.title-with-tag': TitleTitleWithTag;
}
}

File diff suppressed because it is too large Load Diff

1671
yarn.lock

File diff suppressed because it is too large Load Diff