-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 32-add-react-components
- Loading branch information
Showing
36 changed files
with
846 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Start dev container", | ||
"type": "shell", | ||
"command": "docker compose --file .devcontainer/docker-compose.yaml up", | ||
"windows": { | ||
"command": "docker compose --file .devcontainer\\docker-compose.yaml up" | ||
}, | ||
"group": "none", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "new" | ||
}, | ||
"runOptions": { | ||
"runOn": "folderOpen" | ||
} | ||
}, | ||
{ | ||
"label": "Stop dev container", | ||
"type": "shell", | ||
"command": "docker compose --file .devcontainer/docker-compose.yaml down", | ||
"windows": { | ||
"command": "docker compose --file .devcontainer\\docker-compose.yaml down" | ||
}, | ||
"group": "none", | ||
"presentation": { | ||
"reveal": "always", | ||
"panel": "new" | ||
} | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
126 changes: 126 additions & 0 deletions
126
strapi/src/api/association/content-types/association/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{ | ||
"kind": "singleType", | ||
"collectionName": "associations", | ||
"info": { | ||
"singularName": "association", | ||
"pluralName": "associations", | ||
"displayName": "Association", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"attributes": { | ||
"association_name": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "string", | ||
"required": true, | ||
"default": "CLIC", | ||
"unique": true | ||
}, | ||
"about": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "richtext", | ||
"required": false | ||
}, | ||
"logo": { | ||
"type": "media", | ||
"multiple": false, | ||
"required": true, | ||
"allowedTypes": [ | ||
"images" | ||
], | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
} | ||
}, | ||
"gallery": { | ||
"type": "media", | ||
"multiple": true, | ||
"required": false, | ||
"allowedTypes": [ | ||
"images", | ||
"videos" | ||
], | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
} | ||
}, | ||
"official_documents": { | ||
"type": "media", | ||
"multiple": true, | ||
"required": false, | ||
"allowedTypes": [ | ||
"files" | ||
], | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
} | ||
}, | ||
"social_links": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::social-link.social-link" | ||
}, | ||
"members": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::member.member" | ||
}, | ||
"partners": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::partner.partner" | ||
}, | ||
"address": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "string", | ||
"required": true, | ||
"unique": true, | ||
"default": "CLIC, INN 132, Station 14, EPFL, CH-1015 Lausanne" | ||
}, | ||
"email": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "email", | ||
"default": "clic@epfl.ch", | ||
"unique": false | ||
}, | ||
"phone": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": false | ||
} | ||
}, | ||
"type": "string", | ||
"default": "+41 21 693 81 28", | ||
"unique": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* association controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::association.association'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* association router | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreRouter('api::association.association'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* association service | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreService('api::association.association'); |
72 changes: 72 additions & 0 deletions
72
strapi/src/api/commission/content-types/commission/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "commissions", | ||
"info": { | ||
"singularName": "commission", | ||
"pluralName": "commissions", | ||
"displayName": "Commission", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": true | ||
}, | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"attributes": { | ||
"commission_name": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "string", | ||
"required": true, | ||
"unique": true | ||
}, | ||
"news": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::news.news", | ||
"mappedBy": "commissions" | ||
}, | ||
"description": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "richtext", | ||
"required": true | ||
}, | ||
"small_description": { | ||
"pluginOptions": { | ||
"i18n": { | ||
"localized": true | ||
} | ||
}, | ||
"type": "text", | ||
"required": true | ||
}, | ||
"members": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::member.member", | ||
"mappedBy": "commissions" | ||
}, | ||
"social_links": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::social-link.social-link", | ||
"mappedBy": "commission" | ||
}, | ||
"partners": { | ||
"type": "relation", | ||
"relation": "manyToMany", | ||
"target": "api::partner.partner", | ||
"inversedBy": "commissions" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* commission controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::commission.commission'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* commission router | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreRouter('api::commission.commission'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* commission service | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi'; | ||
|
||
export default factories.createCoreService('api::commission.commission'); |
Oops, something went wrong.