Skip to content

Commit

Permalink
Merge branch 'main' of github.com:MarleneJiang/ByteDream-JueJin into …
Browse files Browse the repository at this point in the history
…code
  • Loading branch information
Plumbiu committed Feb 12, 2023
2 parents 09d05e3 + fbcc092 commit a1567e0
Show file tree
Hide file tree
Showing 13 changed files with 295 additions and 14 deletions.
11 changes: 10 additions & 1 deletion backend/src/api/colum/content-types/colum/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"info": {
"singularName": "colum",
"pluralName": "colums",
"displayName": "colum"
"displayName": "colum",
"description": ""
},
"options": {
"draftAndPublish": true
Expand All @@ -21,6 +22,14 @@
"relation": "oneToMany",
"target": "api::article.article",
"mappedBy": "columId"
},
"cover": {
"type": "string",
"required": true
},
"describe": {
"type": "string",
"required": true
}
}
}
5 changes: 5 additions & 0 deletions backend/src/api/global/content-types/global/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
"type": "component",
"repeatable": false,
"component": "articles.ads"
},
"contentAds": {
"type": "component",
"repeatable": false,
"component": "articles.content-ad"
}
}
}
22 changes: 22 additions & 0 deletions backend/src/components/articles/content-ad.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"collectionName": "components_articles_content_ads",
"info": {
"displayName": "ContentAd",
"description": ""
},
"options": {},
"attributes": {
"img": {
"type": "string",
"required": true
},
"url": {
"type": "string",
"required": true
},
"ad": {
"type": "string",
"required": true
}
}
}
4 changes: 4 additions & 0 deletions backend/src/components/layouts/ads.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"type": "string",
"required": true,
"unique": false
},
"url": {
"type": "string",
"required": true
}
}
}
Loading

0 comments on commit a1567e0

Please sign in to comment.