diff --git a/backend/.tmp/data.db b/backend/.tmp/data.db index acaeb045..8c52f5bf 100644 Binary files a/backend/.tmp/data.db and b/backend/.tmp/data.db differ diff --git a/backend/src/api/colum/content-types/colum/schema.json b/backend/src/api/colum/content-types/colum/schema.json index 25f7b6a2..bae51a40 100644 --- a/backend/src/api/colum/content-types/colum/schema.json +++ b/backend/src/api/colum/content-types/colum/schema.json @@ -4,7 +4,8 @@ "info": { "singularName": "colum", "pluralName": "colums", - "displayName": "colum" + "displayName": "colum", + "description": "" }, "options": { "draftAndPublish": true @@ -21,6 +22,14 @@ "relation": "oneToMany", "target": "api::article.article", "mappedBy": "columId" + }, + "cover": { + "type": "string", + "required": true + }, + "describe": { + "type": "string", + "required": true } } } diff --git a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json index 42adfc30..ded9c480 100644 --- a/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/backend/src/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "2023-02-12T04:51:09.525Z" + "x-generation-date": "2023-02-12T05:42:21.560Z" }, "x-strapi-config": { "path": "/documentation", @@ -701,6 +701,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -1608,6 +1614,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -2548,6 +2560,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -3455,6 +3473,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -4580,6 +4604,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -5428,6 +5458,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -6309,6 +6345,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -7157,6 +7199,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -7360,7 +7408,9 @@ "properties": { "data": { "required": [ - "column" + "column", + "cover", + "describe" ], "type": "object", "properties": { @@ -7380,6 +7430,12 @@ ], "example": "string or id" } + }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" } } } @@ -8037,6 +8093,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -8162,6 +8224,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -8864,6 +8932,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -8989,6 +9063,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -9724,6 +9804,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -9849,6 +9935,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -10551,6 +10643,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -10676,6 +10774,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -12999,6 +13103,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -13846,6 +13956,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -14726,6 +14842,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -15573,6 +15695,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -16481,6 +16609,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -17331,6 +17465,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -18214,6 +18354,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" @@ -19064,6 +19210,12 @@ } } }, + "cover": { + "type": "string" + }, + "describe": { + "type": "string" + }, "createdAt": { "type": "string", "format": "date-time" diff --git a/frontend/server/api/articles/[id].ts b/frontend/server/api/articles/[id].ts index 3d21ad2f..b8308aff 100644 --- a/frontend/server/api/articles/[id].ts +++ b/frontend/server/api/articles/[id].ts @@ -62,6 +62,8 @@ export default defineEventHandler(async (event): Promise => { data{ attributes{ column + cover + describe articles{ data{ id diff --git a/frontend/types/IArticle.ts b/frontend/types/IArticle.ts index df420b8d..3433e9be 100644 --- a/frontend/types/IArticle.ts +++ b/frontend/types/IArticle.ts @@ -24,6 +24,8 @@ interface IColumnArticleItem { } interface IColumn { column: string + cover: string + describe: string articles: { data: IColumnArticleItem[] } } export interface IArticle {