From 68b15a268e42517bbe656e6243d714b4562fc2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 9 Dec 2022 04:41:56 +0400 Subject: [PATCH] Create Paroles diff component --- .../parole/content-types/parole/schema.json | 5 +++ src/components/difference/paroles-diff.json | 33 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/components/difference/paroles-diff.json diff --git a/src/api/parole/content-types/parole/schema.json b/src/api/parole/content-types/parole/schema.json index 3716ce8..031fbaa 100644 --- a/src/api/parole/content-types/parole/schema.json +++ b/src/api/parole/content-types/parole/schema.json @@ -85,6 +85,11 @@ }, "prioriteArtistes": { "type": "string" + }, + "difference": { + "type": "component", + "repeatable": true, + "component": "difference.paroles-diff" } } } diff --git a/src/components/difference/paroles-diff.json b/src/components/difference/paroles-diff.json new file mode 100644 index 0000000..544e2ce --- /dev/null +++ b/src/components/difference/paroles-diff.json @@ -0,0 +1,33 @@ +{ + "collectionName": "components_diff_paroles_diffs", + "info": { + "displayName": "Paroles diff", + "icon": "american-sign-language-interpreting", + "description": "" + }, + "options": {}, + "attributes": { + "paroles": { + "type": "richtext" + }, + "date": { + "type": "datetime" + }, + "sources": { + "type": "enumeration", + "enum": [ + "transcription", + "francais", + "anglais", + "espagnol", + "allemand", + "italien" + ] + }, + "admin_user": { + "type": "relation", + "relation": "oneToOne", + "target": "admin::user" + } + } +}