Skip to content

Commit

Permalink
75 make a project info page (#83)
Browse files Browse the repository at this point in the history
* feat(backend): ✨ Add new Satellite and Project collection

* feat(frontend): ✨ Update documentation generation date and fetch projects from GraphQL API

Co-authored-by: Mats <mnyflot@gmail.com>

* style: 🎨 prettier

---------

Co-authored-by: Mats <mnyflot@gmail.com>
  • Loading branch information
2 people authored and GitHub committed Feb 16, 2024
1 parent 2cee488 commit 3a8a7f3
Show file tree
Hide file tree
Showing 16 changed files with 5,899 additions and 866 deletions.
34 changes: 34 additions & 0 deletions backend/src/api/project/content-types/project/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"kind": "collectionType",
"collectionName": "projects",
"info": {
"singularName": "project",
"pluralName": "projects",
"displayName": "Project",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string"
},
"description": {
"type": "text"
},
"article": {
"type": "blocks"
},
"satellites": {
"type": "relation",
"relation": "manyToMany",
"target": "api::satellite.satellite",
"inversedBy": "projects"
},
"slug": {
"type": "uid"
}
}
}
9 changes: 9 additions & 0 deletions backend/src/api/project/controllers/project.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

/**
* project controller
*/

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

module.exports = createCoreController('api::project.project');
Loading

0 comments on commit 3a8a7f3

Please sign in to comment.