diff --git a/src/api/blog/content-types/blog/schema.json b/src/api/blog/content-types/blog/schema.json new file mode 100644 index 0000000..3c8fe03 --- /dev/null +++ b/src/api/blog/content-types/blog/schema.json @@ -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" + } + } +} diff --git a/src/api/blog/controllers/blog.js b/src/api/blog/controllers/blog.js new file mode 100644 index 0000000..f325a06 --- /dev/null +++ b/src/api/blog/controllers/blog.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * blog controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::blog.blog'); diff --git a/src/api/blog/routes/blog.js b/src/api/blog/routes/blog.js new file mode 100644 index 0000000..62d1fe1 --- /dev/null +++ b/src/api/blog/routes/blog.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * blog router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::blog.blog'); diff --git a/src/api/blog/services/blog.js b/src/api/blog/services/blog.js new file mode 100644 index 0000000..f15940c --- /dev/null +++ b/src/api/blog/services/blog.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * blog service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::blog.blog'); diff --git a/src/api/description/content-types/description/schema.json b/src/api/description/content-types/description/schema.json new file mode 100644 index 0000000..30e499d --- /dev/null +++ b/src/api/description/content-types/description/schema.json @@ -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 + } + } +} diff --git a/src/api/description/controllers/description.js b/src/api/description/controllers/description.js new file mode 100644 index 0000000..c02cb43 --- /dev/null +++ b/src/api/description/controllers/description.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * description controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::description.description'); diff --git a/src/api/description/routes/description.js b/src/api/description/routes/description.js new file mode 100644 index 0000000..340b993 --- /dev/null +++ b/src/api/description/routes/description.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * description router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::description.description'); diff --git a/src/api/description/services/description.js b/src/api/description/services/description.js new file mode 100644 index 0000000..270377a --- /dev/null +++ b/src/api/description/services/description.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * description service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::description.description'); diff --git a/src/api/diplome/content-types/diplome/schema.json b/src/api/diplome/content-types/diplome/schema.json new file mode 100644 index 0000000..21ed58a --- /dev/null +++ b/src/api/diplome/content-types/diplome/schema.json @@ -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" + } + } +} diff --git a/src/api/diplome/controllers/diplome.js b/src/api/diplome/controllers/diplome.js new file mode 100644 index 0000000..215405c --- /dev/null +++ b/src/api/diplome/controllers/diplome.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * diplome controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::diplome.diplome'); diff --git a/src/api/diplome/routes/diplome.js b/src/api/diplome/routes/diplome.js new file mode 100644 index 0000000..82e2af1 --- /dev/null +++ b/src/api/diplome/routes/diplome.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * diplome router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::diplome.diplome'); diff --git a/src/api/diplome/services/diplome.js b/src/api/diplome/services/diplome.js new file mode 100644 index 0000000..ab50e05 --- /dev/null +++ b/src/api/diplome/services/diplome.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * diplome service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::diplome.diplome'); diff --git a/src/api/experience/content-types/experience/schema.json b/src/api/experience/content-types/experience/schema.json new file mode 100644 index 0000000..c1869fb --- /dev/null +++ b/src/api/experience/content-types/experience/schema.json @@ -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 + } + } +} diff --git a/src/api/experience/controllers/experience.js b/src/api/experience/controllers/experience.js new file mode 100644 index 0000000..a811483 --- /dev/null +++ b/src/api/experience/controllers/experience.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * experience controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::experience.experience'); diff --git a/src/api/experience/routes/experience.js b/src/api/experience/routes/experience.js new file mode 100644 index 0000000..46e5124 --- /dev/null +++ b/src/api/experience/routes/experience.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * experience router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::experience.experience'); diff --git a/src/api/experience/services/experience.js b/src/api/experience/services/experience.js new file mode 100644 index 0000000..3787576 --- /dev/null +++ b/src/api/experience/services/experience.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * experience service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::experience.experience'); diff --git a/src/api/language/content-types/language/schema.json b/src/api/language/content-types/language/schema.json new file mode 100644 index 0000000..4ff43b0 --- /dev/null +++ b/src/api/language/content-types/language/schema.json @@ -0,0 +1,27 @@ +{ + "kind": "collectionType", + "collectionName": "languages", + "info": { + "singularName": "language", + "pluralName": "languages", + "displayName": "Langages", + "description": "" + }, + "options": { + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "name": { + "type": "string", + "unique": true, + "required": true + }, + "color": { + "type": "string" + }, + "icon": { + "type": "string" + } + } +} diff --git a/src/api/language/controllers/language.js b/src/api/language/controllers/language.js new file mode 100644 index 0000000..95d18dc --- /dev/null +++ b/src/api/language/controllers/language.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * language controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::language.language'); diff --git a/src/api/language/routes/language.js b/src/api/language/routes/language.js new file mode 100644 index 0000000..c9a9292 --- /dev/null +++ b/src/api/language/routes/language.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * language router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::language.language'); diff --git a/src/api/language/services/language.js b/src/api/language/services/language.js new file mode 100644 index 0000000..d597ae2 --- /dev/null +++ b/src/api/language/services/language.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * language service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::language.language'); diff --git a/src/api/project/content-types/project/schema.json b/src/api/project/content-types/project/schema.json new file mode 100644 index 0000000..75feb06 --- /dev/null +++ b/src/api/project/content-types/project/schema.json @@ -0,0 +1,127 @@ +{ + "kind": "collectionType", + "collectionName": "projects", + "info": { + "singularName": "project", + "pluralName": "projects", + "displayName": "Projets", + "description": "" + }, + "options": { + "draftAndPublish": true + }, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "attributes": { + "name": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "string", + "required": true + }, + "type": { + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "type": "enumeration", + "enum": [ + "personal", + "school", + "business" + ], + "required": true, + "default": "personal" + }, + "description": { + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "type": "richtext", + "required": false + }, + "featured": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "boolean", + "default": false, + "required": true + }, + "imageURL": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "string" + }, + "languages": { + "type": "relation", + "relation": "oneToMany", + "target": "api::language.language" + }, + "technologies": { + "type": "relation", + "relation": "oneToMany", + "target": "api::technologie.technologie" + }, + "goal": { + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "type": "text" + }, + "git": { + "type": "component", + "repeatable": false, + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "required": false, + "component": "components.git-repo" + }, + "url": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "string", + "required": false + }, + "domain": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "enumeration", + "enum": [ + "web", + "bot", + "software", + "portable_software", + "mobile", + "game" + ], + "required": true, + "default": "web" + } + } +} diff --git a/src/api/project/controllers/project.js b/src/api/project/controllers/project.js new file mode 100644 index 0000000..edcf1de --- /dev/null +++ b/src/api/project/controllers/project.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * project controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::project.project'); diff --git a/src/api/project/routes/project.js b/src/api/project/routes/project.js new file mode 100644 index 0000000..345a51f --- /dev/null +++ b/src/api/project/routes/project.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * project router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::project.project'); diff --git a/src/api/project/services/project.js b/src/api/project/services/project.js new file mode 100644 index 0000000..4a8706b --- /dev/null +++ b/src/api/project/services/project.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * project service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::project.project'); diff --git a/src/api/technologie/content-types/technologie/schema.json b/src/api/technologie/content-types/technologie/schema.json new file mode 100644 index 0000000..f3bb983 --- /dev/null +++ b/src/api/technologie/content-types/technologie/schema.json @@ -0,0 +1,27 @@ +{ + "kind": "collectionType", + "collectionName": "technologies", + "info": { + "singularName": "technologie", + "pluralName": "technologies", + "displayName": "Technologies", + "description": "" + }, + "options": { + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "name": { + "type": "string", + "required": true, + "unique": true + }, + "color": { + "type": "string" + }, + "icon": { + "type": "string" + } + } +} diff --git a/src/api/technologie/controllers/technologie.js b/src/api/technologie/controllers/technologie.js new file mode 100644 index 0000000..c66a7c5 --- /dev/null +++ b/src/api/technologie/controllers/technologie.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * technologie controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::technologie.technologie'); diff --git a/src/api/technologie/routes/technologie.js b/src/api/technologie/routes/technologie.js new file mode 100644 index 0000000..261164c --- /dev/null +++ b/src/api/technologie/routes/technologie.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * technologie router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::technologie.technologie'); diff --git a/src/api/technologie/services/technologie.js b/src/api/technologie/services/technologie.js new file mode 100644 index 0000000..4e00e60 --- /dev/null +++ b/src/api/technologie/services/technologie.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * technologie service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::technologie.technologie'); diff --git a/src/api/testimonial/content-types/testimonial/schema.json b/src/api/testimonial/content-types/testimonial/schema.json new file mode 100644 index 0000000..d934a6e --- /dev/null +++ b/src/api/testimonial/content-types/testimonial/schema.json @@ -0,0 +1,54 @@ +{ + "kind": "collectionType", + "collectionName": "testimonials", + "info": { + "singularName": "testimonial", + "pluralName": "testimonials", + "displayName": "Témoignages", + "description": "" + }, + "options": { + "draftAndPublish": true + }, + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "attributes": { + "content": { + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "type": "richtext", + "required": true + }, + "name": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "string", + "required": true + }, + "role": { + "pluginOptions": { + "i18n": { + "localized": true + } + }, + "type": "string" + }, + "logo": { + "pluginOptions": { + "i18n": { + "localized": false + } + }, + "type": "string" + } + } +} diff --git a/src/api/testimonial/controllers/testimonial.js b/src/api/testimonial/controllers/testimonial.js new file mode 100644 index 0000000..038ea69 --- /dev/null +++ b/src/api/testimonial/controllers/testimonial.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * testimonial controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::testimonial.testimonial'); diff --git a/src/api/testimonial/routes/testimonial.js b/src/api/testimonial/routes/testimonial.js new file mode 100644 index 0000000..4cb87cf --- /dev/null +++ b/src/api/testimonial/routes/testimonial.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * testimonial router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::testimonial.testimonial'); diff --git a/src/api/testimonial/services/testimonial.js b/src/api/testimonial/services/testimonial.js new file mode 100644 index 0000000..98d913e --- /dev/null +++ b/src/api/testimonial/services/testimonial.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * testimonial service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::testimonial.testimonial'); diff --git a/src/components/components/git-repo.json b/src/components/components/git-repo.json new file mode 100644 index 0000000..747f326 --- /dev/null +++ b/src/components/components/git-repo.json @@ -0,0 +1,22 @@ +{ + "collectionName": "components_components_git_repos", + "info": { + "displayName": "Git Repo", + "icon": "code", + "description": "" + }, + "options": {}, + "attributes": { + "url": { + "type": "string", + "required": true + }, + "provider": { + "type": "enumeration", + "enum": [ + "GitHub", + "GitLab" + ] + } + } +}