-
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.
* chore: add nvmrc * feat: add announcement model * chore: bump version to 0.9.0
- Loading branch information
1 parent
d47c6c1
commit 4bc424e
Showing
8 changed files
with
2,943 additions
and
566 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/iron |
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
34 changes: 34 additions & 0 deletions
34
src/api/announcement/content-types/announcement/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,34 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "announcements", | ||
"info": { | ||
"singularName": "announcement", | ||
"pluralName": "announcements", | ||
"displayName": "Announcement" | ||
}, | ||
"options": { | ||
"draftAndPublish": false | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"text": { | ||
"type": "text", | ||
"required": true | ||
}, | ||
"networks": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::network.network" | ||
}, | ||
"environments": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::environment.environment" | ||
}, | ||
"isCritical": { | ||
"type": "boolean", | ||
"default": false, | ||
"required": true | ||
} | ||
} | ||
} |
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 @@ | ||
/** | ||
* announcement controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::announcement.announcement'); |
Oops, something went wrong.