Commit 02cf9431 by jaymehta

.

2 parents 7e83fdb3 0c119c66
...@@ -5,6 +5,12 @@ module.exports = [ ...@@ -5,6 +5,12 @@ module.exports = [
name: "strapi::security", name: "strapi::security",
config: { config: {
contentSecurityPolicy: { contentSecurityPolicy: {
formLimit: "256mb", // modify form body
jsonLimit: "256mb", // modify JSON body
textLimit: "256mb", // modify text body
formidable: {
maxFileSize: 200 * 1024 * 1024, // multipart data, modify here limit of uploaded file size
},
useDefaults: true, useDefaults: true,
directives: { directives: {
"connect-src": ["'self'", "https:"], "connect-src": ["'self'", "https:"],
......
This diff could not be displayed because it is too large.
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
"@strapi/provider-email-nodemailer": "^4.3.8", "@strapi/provider-email-nodemailer": "^4.3.8",
"@strapi/provider-upload-aws-s3": "^4.3.9", "@strapi/provider-upload-aws-s3": "^4.3.9",
"@strapi/strapi": "4.3.6", "@strapi/strapi": "4.3.6",
"axios": "^1.1.3",
"better-sqlite3": "7.4.6", "better-sqlite3": "7.4.6",
"csv-parse": "^5.5.5", "csv-parse": "^5.5.5",
"mysql": "^2.18.1", "mysql": "^2.18.1",
......
{
"kind": "collectionType",
"collectionName": "blogs",
"info": {
"singularName": "blog",
"pluralName": "blogs",
"displayName": "Blogs",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"title": {
"type": "text"
},
"categories": {
"type": "string"
},
"read": {
"type": "string"
},
"description": {
"type": "richtext"
},
"slug": {
"type": "uid",
"targetField": "title"
},
"name": {
"type": "string"
},
"profilePic": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"date": {
"type": "date"
}
}
}
'use strict';
/**
* blog controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::blog.blog');
'use strict';
/**
* blog router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::blog.blog');
'use strict';
/**
* blog service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::blog.blog');
...@@ -23,6 +23,13 @@ ...@@ -23,6 +23,13 @@
}, },
"type": { "type": {
"type": "string" "type": "string"
},
"image": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
} }
} }
} }
...@@ -84,11 +84,7 @@ ...@@ -84,11 +84,7 @@
}, },
"activityType": { "activityType": {
"type": "enumeration", "type": "enumeration",
"enum": [ "enum": ["indoor", "outdoor", "both"]
"indoor",
"outdoor",
"both"
]
}, },
"giftSomeone": { "giftSomeone": {
"type": "boolean" "type": "boolean"
...@@ -125,6 +121,18 @@ ...@@ -125,6 +121,18 @@
}, },
"toDate": { "toDate": {
"type": "time" "type": "time"
},
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": ["images"]
},
"rating": {
"type": "decimal"
},
"off": {
"type": "integer"
} }
} }
} }
{
"kind": "collectionType",
"collectionName": "testimonials",
"info": {
"singularName": "testimonial",
"pluralName": "testimonials",
"displayName": "Testimonial",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"rating": {
"type": "integer"
},
"description": {
"type": "text"
},
"title": {
"type": "string"
}
}
}
'use strict';
/**
* testimonial controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::testimonial.testimonial');
'use strict';
/**
* testimonial router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::testimonial.testimonial');
'use strict';
/**
* testimonial service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::testimonial.testimonial');
...@@ -7,7 +7,6 @@ const { ...@@ -7,7 +7,6 @@ const {
validateRegisterBody, validateRegisterBody,
} = require("@strapi/plugin-users-permissions/server/controllers/validation/auth"); } = require("@strapi/plugin-users-permissions/server/controllers/validation/auth");
const { getService } = require("@strapi/plugin-users-permissions/server/utils"); const { getService } = require("@strapi/plugin-users-permissions/server/utils");
const { default: axios } = require("axios");
const sanitizeUser = (user, ctx) => { const sanitizeUser = (user, ctx) => {
const { auth } = ctx.state; const { auth } = ctx.state;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!