Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion backend/api/global/models/global.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,22 @@
"companyData": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "global.company-data"
},
"footer": {
"type": "component",
"repeatable": false,
"component": "global.footer-data"
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "global.footer"
}
}
}
52 changes: 52 additions & 0 deletions backend/api/project/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/projects",
"handler": "project.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/projects/count",
"handler": "project.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/projects/:id",
"handler": "project.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/projects",
"handler": "project.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/projects/:id",
"handler": "project.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/projects/:id",
"handler": "project.delete",
"config": {
"policies": []
}
}
]
}
8 changes: 8 additions & 0 deletions backend/api/project/controllers/project.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/

module.exports = {};
8 changes: 8 additions & 0 deletions backend/api/project/models/project.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};
98 changes: 98 additions & 0 deletions backend/api/project/models/project.settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"kind": "collectionType",
"collectionName": "projects",
"info": {
"name": "Project",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"projectType": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"linkPath": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"linkLabel": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"description": {
"type": "richtext",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"blocks": {
"type": "dynamiczone",
"components": [
"project.title-block",
"project.blockquote-block",
"project.image-block",
"project.paragraph-block"
],
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"path": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true,
"unique": false
},
"companyName": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"image": {
"model": "file",
"via": "related",
"allowedTypes": [
"images"
],
"plugin": "upload",
"required": false,
"pluginOptions": {
"i18n": {
"localized": true
}
}
}
}
}
8 changes: 8 additions & 0 deletions backend/api/project/services/project.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
* to customize this service
*/

module.exports = {};
13 changes: 13 additions & 0 deletions backend/components/global/footer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"collectionName": "components_global_footers",
"info": {
"name": "footer",
"icon": "angle-down"
},
"options": {},
"attributes": {
"description": {
"type": "richtext"
}
}
}
13 changes: 13 additions & 0 deletions backend/components/project/blockquote-block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"collectionName": "components_project_blockquote_blocks",
"info": {
"name": "blockquoteBlock",
"icon": "align-right"
},
"options": {},
"attributes": {
"text": {
"type": "string"
}
}
}
20 changes: 20 additions & 0 deletions backend/components/project/image-block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"collectionName": "components_project_image_blocks",
"info": {
"name": "imageBlock",
"icon": "image"
},
"options": {},
"attributes": {
"image": {
"model": "file",
"via": "related",
"allowedTypes": [
"images"
],
"plugin": "upload",
"required": false,
"pluginOptions": {}
}
}
}
13 changes: 13 additions & 0 deletions backend/components/project/paragraph-block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"collectionName": "components_project_paragraph_blocks",
"info": {
"name": "paragraphBlock",
"icon": "align-center"
},
"options": {},
"attributes": {
"text": {
"type": "string"
}
}
}
13 changes: 13 additions & 0 deletions backend/components/project/title-block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"collectionName": "components_project_title_blocks",
"info": {
"name": "titleBlock",
"icon": "angle-up"
},
"options": {},
"attributes": {
"title": {
"type": "string"
}
}
}
17 changes: 17 additions & 0 deletions backend/components/section/projects-section.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"collectionName": "components_section_projects_sections",
"info": {
"name": "projectsSection",
"icon": "air-freshener",
"description": ""
},
"options": {},
"attributes": {
"sectionTitle": {
"type": "string"
},
"sectionTitleColor": {
"type": "string"
}
}
}
Loading