diff --git a/package-lock.json b/package-lock.json index 1febf74..4ca2d63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "webpage-cms", "version": "1.0.0", "dependencies": { - "@offset-dev/strapi-calendar": "^1.0.0-beta.1", + "@offset-dev/strapi-calendar": "^1.0.0", "@strapi/plugin-color-picker": "^5.1.1", "@strapi/plugin-documentation": "^5.1.1", "@strapi/plugin-graphql": "^5.1.1", @@ -1668,9 +1668,9 @@ } }, "node_modules/@offset-dev/strapi-calendar": { - "version": "1.0.0-beta.1", - "resolved": "https://registry.npmjs.org/@offset-dev/strapi-calendar/-/strapi-calendar-1.0.0-beta.1.tgz", - "integrity": "sha512-ipMPvE7D94FV8UaBElagdWO/pIyGEZXi880jjcE+mQZtavDwOD6ZyJKelRENTeMKxjN0zDT1Q13oAAJuJMG/iQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@offset-dev/strapi-calendar/-/strapi-calendar-1.0.0.tgz", + "integrity": "sha512-ZsMLnJKRXprFScTVIP1psAppoOeWnHNv3BpuJXiIxTnY16tLIG2PHPiWDWtA/aGh/yfqhUg1W5YMMlcLqmDOlA==", "license": "MIT", "dependencies": { "@fullcalendar/core": "^6.1.15", @@ -22415,9 +22415,9 @@ } }, "@offset-dev/strapi-calendar": { - "version": "1.0.0-beta.1", - "resolved": "https://registry.npmjs.org/@offset-dev/strapi-calendar/-/strapi-calendar-1.0.0-beta.1.tgz", - "integrity": "sha512-ipMPvE7D94FV8UaBElagdWO/pIyGEZXi880jjcE+mQZtavDwOD6ZyJKelRENTeMKxjN0zDT1Q13oAAJuJMG/iQ==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@offset-dev/strapi-calendar/-/strapi-calendar-1.0.0.tgz", + "integrity": "sha512-ZsMLnJKRXprFScTVIP1psAppoOeWnHNv3BpuJXiIxTnY16tLIG2PHPiWDWtA/aGh/yfqhUg1W5YMMlcLqmDOlA==", "requires": { "@fullcalendar/core": "^6.1.15", "@fullcalendar/daygrid": "^6.1.15", diff --git a/package.json b/package.json index 67aa774..4de1dc2 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "strapi": "strapi" }, "dependencies": { - "@offset-dev/strapi-calendar": "^1.0.0-beta.1", + "@offset-dev/strapi-calendar": "^1.0.0", "@strapi/plugin-color-picker": "^5.1.1", "@strapi/plugin-documentation": "^5.1.1", "@strapi/plugin-graphql": "^5.1.1", diff --git a/src/api/article/content-types/article/schema.json b/src/api/article/content-types/article/schema.json index 68f71e9..82cdd58 100644 --- a/src/api/article/content-types/article/schema.json +++ b/src/api/article/content-types/article/schema.json @@ -35,25 +35,19 @@ "image": { "type": "media", "multiple": false, - "required": true, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "attachment": { "type": "media", "multiple": true, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "date": { "pluginOptions": {}, - "type": "date", - "required": true + "type": "date" } } } diff --git a/src/api/event/content-types/event/schema.json b/src/api/event/content-types/event/schema.json index 0b72685..dce0824 100644 --- a/src/api/event/content-types/event/schema.json +++ b/src/api/event/content-types/event/schema.json @@ -28,10 +28,26 @@ "targetField": "title", "required": true }, + "content": { + "pluginOptions": {}, + "type": "blocks" + }, + "image": { + "type": "media", + "multiple": false, + "allowedTypes": ["images"], + "pluginOptions": {} + }, + "attachment": { + "type": "media", + "multiple": true, + "required": false, + "allowedTypes": ["images"], + "pluginOptions": {} + }, "date": { "pluginOptions": {}, - "type": "datetime", - "required": true + "type": "date" } } } diff --git a/src/api/operation/content-types/operation/schema.json b/src/api/operation/content-types/operation/schema.json index ed0ad7d..3947b37 100644 --- a/src/api/operation/content-types/operation/schema.json +++ b/src/api/operation/content-types/operation/schema.json @@ -28,22 +28,26 @@ "targetField": "title", "required": true }, + "content": { + "pluginOptions": {}, + "type": "blocks" + }, + "image": { + "type": "media", + "multiple": false, + "allowedTypes": ["images"], + "pluginOptions": {} + }, "attachment": { "type": "media", "multiple": true, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "date": { "pluginOptions": {}, - "type": "datetime", - "required": true - }, - "content": { - "type": "blocks" + "type": "date" } } } diff --git a/src/api/vehicle/content-types/vehicle/schema.json b/src/api/vehicle/content-types/vehicle/schema.json index a72e1cb..90c068c 100644 --- a/src/api/vehicle/content-types/vehicle/schema.json +++ b/src/api/vehicle/content-types/vehicle/schema.json @@ -34,20 +34,19 @@ "image": { "type": "media", "multiple": false, - "required": true, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} }, "attachment": { "type": "media", "multiple": true, "required": false, - "allowedTypes": [ - "images" - ], + "allowedTypes": ["images"], "pluginOptions": {} + }, + "date": { + "pluginOptions": {}, + "type": "date" } } } diff --git a/src/components/shared/seo.json b/src/components/shared/seo.json new file mode 100644 index 0000000..c268edb --- /dev/null +++ b/src/components/shared/seo.json @@ -0,0 +1,25 @@ +{ + "collectionName": "components_shared_seos", + "info": { + "displayName": "seo", + "icon": "search", + "description": "" + }, + "options": {}, + "attributes": { + "metaTitle": { + "required": true, + "type": "string", + "maxLength": 60 + }, + "metaDescription": { + "type": "string", + "required": true, + "minLength": 50 + }, + "keywords": { + "type": "text", + "regex": "[^,]+" + } + } +}