Skip to content

Commit

Permalink
Merge pull request #3 from oxypomme/features/models
Browse files Browse the repository at this point in the history
Features/models
  • Loading branch information
oxypomme authored Mar 7, 2022
2 parents d9c55e0 + b347bae commit 92899f3
Show file tree
Hide file tree
Showing 33 changed files with 756 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/api/blog/content-types/blog/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"kind": "collectionType",
"collectionName": "blogs",
"info": {
"singularName": "blog",
"pluralName": "blogs",
"displayName": "Blog",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"content": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "richtext"
},
"media": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string"
}
}
}
9 changes: 9 additions & 0 deletions src/api/blog/controllers/blog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* blog controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::blog.blog');
9 changes: 9 additions & 0 deletions src/api/blog/routes/blog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* blog router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::blog.blog');
9 changes: 9 additions & 0 deletions src/api/blog/services/blog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* blog service.
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::blog.blog');
66 changes: 66 additions & 0 deletions src/api/description/content-types/description/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"kind": "singleType",
"collectionName": "descriptions",
"info": {
"singularName": "description",
"pluralName": "descriptions",
"displayName": "Description",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"role": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"avatar": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"maxLength": 2048,
"regex": "https?://.*",
"minLength": 7
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"birthdate": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "date",
"required": true
},
"name": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string",
"required": true
}
}
}
9 changes: 9 additions & 0 deletions src/api/description/controllers/description.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* description controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::description.description');
9 changes: 9 additions & 0 deletions src/api/description/routes/description.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* description router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::description.description');
9 changes: 9 additions & 0 deletions src/api/description/services/description.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* description service.
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::description.description');
82 changes: 82 additions & 0 deletions src/api/diplome/content-types/diplome/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"kind": "collectionType",
"collectionName": "diplomes",
"info": {
"singularName": "diplome",
"pluralName": "diplomes",
"displayName": "Diplomes",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"start": {
"type": "date",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"end": {
"type": "date",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"name": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"location": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
},
"required": true
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"isApprentice": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "boolean",
"default": false,
"required": true
},
"logo": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string"
}
}
}
9 changes: 9 additions & 0 deletions src/api/diplome/controllers/diplome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* diplome controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::diplome.diplome');
9 changes: 9 additions & 0 deletions src/api/diplome/routes/diplome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* diplome router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::diplome.diplome');
9 changes: 9 additions & 0 deletions src/api/diplome/services/diplome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* diplome service.
*/

const { createCoreService } = require('@strapi/strapi').factories;

module.exports = createCoreService('api::diplome.diplome');
91 changes: 91 additions & 0 deletions src/api/experience/content-types/experience/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"kind": "collectionType",
"collectionName": "experiences",
"info": {
"singularName": "experience",
"pluralName": "experiences",
"displayName": "Travails",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"start": {
"type": "date",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"end": {
"type": "date",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": false
},
"name": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": true
},
"location": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": false
}
},
"required": false
},
"role": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text",
"required": false
},
"logo": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "string"
},
"isApprentice": {
"pluginOptions": {
"i18n": {
"localized": false
}
},
"type": "boolean",
"default": false
}
}
}
9 changes: 9 additions & 0 deletions src/api/experience/controllers/experience.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* experience controller
*/

const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::experience.experience');
9 changes: 9 additions & 0 deletions src/api/experience/routes/experience.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* experience router.
*/

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::experience.experience');
Loading

0 comments on commit 92899f3

Please sign in to comment.