Skip to content

Commit 4bc424e

Browse files
authored
feat: announcements (#47)
* chore: add nvmrc * feat: add announcement model * chore: bump version to 0.9.0
1 parent d47c6c1 commit 4bc424e

File tree

8 files changed

+2943
-566
lines changed

8 files changed

+2943
-566
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/iron

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cowprotocol/cms-parent",
3-
"version": "0.8.0",
3+
"version": "0.9.0",
44
"description": "Cow Protocol CMS",
55
"private": true,
66
"license": "(MIT OR Apache-2.0)",
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"kind": "collectionType",
3+
"collectionName": "announcements",
4+
"info": {
5+
"singularName": "announcement",
6+
"pluralName": "announcements",
7+
"displayName": "Announcement"
8+
},
9+
"options": {
10+
"draftAndPublish": false
11+
},
12+
"pluginOptions": {},
13+
"attributes": {
14+
"text": {
15+
"type": "text",
16+
"required": true
17+
},
18+
"networks": {
19+
"type": "relation",
20+
"relation": "oneToMany",
21+
"target": "api::network.network"
22+
},
23+
"environments": {
24+
"type": "relation",
25+
"relation": "oneToMany",
26+
"target": "api::environment.environment"
27+
},
28+
"isCritical": {
29+
"type": "boolean",
30+
"default": false,
31+
"required": true
32+
}
33+
}
34+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* announcement controller
3+
*/
4+
5+
import { factories } from '@strapi/strapi'
6+
7+
export default factories.createCoreController('api::announcement.announcement');

0 commit comments

Comments
 (0)