diff --git a/api/awtis/config/routes.json b/api/awtis/config/routes.json new file mode 100644 index 0000000..f941bd0 --- /dev/null +++ b/api/awtis/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/awtis", + "handler": "awtis.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/awtis/count", + "handler": "awtis.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/awtis/:id", + "handler": "awtis.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/awtis", + "handler": "awtis.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/awtis/:id", + "handler": "awtis.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/awtis/:id", + "handler": "awtis.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/awtis/controllers/awtis.js b/api/awtis/controllers/awtis.js new file mode 100644 index 0000000..a589b84 --- /dev/null +++ b/api/awtis/controllers/awtis.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/awtis/models/awtis.js b/api/awtis/models/awtis.js new file mode 100644 index 0000000..319ea80 --- /dev/null +++ b/api/awtis/models/awtis.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/awtis/models/awtis.settings.json b/api/awtis/models/awtis.settings.json new file mode 100644 index 0000000..ea9db2d --- /dev/null +++ b/api/awtis/models/awtis.settings.json @@ -0,0 +1,46 @@ +{ + "kind": "collectionType", + "collectionName": "awtis", + "info": { + "name": "awtis", + "description": "" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "attributes": { + "alias": { + "type": "string", + "unique": true, + "required": true + }, + "prenom": { + "type": "string" + }, + "nom": { + "type": "string" + }, + "bio": { + "type": "richtext" + }, + "naissance": { + "type": "date" + }, + "photo": { + "collection": "file", + "via": "related", + "allowedTypes": [ + "images" + ], + "plugin": "upload", + "required": false + }, + "miziks": { + "via": "awtis", + "collection": "mizik", + "dominant": true + } + } +} diff --git a/api/awtis/services/awtis.js b/api/awtis/services/awtis.js new file mode 100644 index 0000000..1f5330e --- /dev/null +++ b/api/awtis/services/awtis.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/api/mizik/config/routes.json b/api/mizik/config/routes.json new file mode 100644 index 0000000..4f72bbe --- /dev/null +++ b/api/mizik/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/mizik", + "handler": "mizik.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/mizik/count", + "handler": "mizik.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/mizik/:id", + "handler": "mizik.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/mizik", + "handler": "mizik.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/mizik/:id", + "handler": "mizik.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/mizik/:id", + "handler": "mizik.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/mizik/controllers/mizik.js b/api/mizik/controllers/mizik.js new file mode 100644 index 0000000..a589b84 --- /dev/null +++ b/api/mizik/controllers/mizik.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/v3.x/concepts/controllers.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/mizik/models/mizik.js b/api/mizik/models/mizik.js new file mode 100644 index 0000000..319ea80 --- /dev/null +++ b/api/mizik/models/mizik.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/v3.x/concepts/models.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/mizik/models/mizik.settings.json b/api/mizik/models/mizik.settings.json new file mode 100644 index 0000000..8598442 --- /dev/null +++ b/api/mizik/models/mizik.settings.json @@ -0,0 +1,44 @@ +{ + "kind": "collectionType", + "collectionName": "mizik", + "info": { + "name": "mizik", + "description": "" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "attributes": { + "titre": { + "type": "string", + "required": true + }, + "transcription": { + "type": "richtext" + }, + "traductions": { + "type": "component", + "repeatable": false, + "component": "trad.traductions" + }, + "annee": { + "type": "integer" + }, + "liens": { + "type": "component", + "repeatable": true, + "component": "url.liens" + }, + "awtis": { + "collection": "awtis", + "via": "miziks" + }, + "kouteyAchtey": { + "type": "component", + "repeatable": true, + "component": "store.store" + } + } +} diff --git a/api/mizik/services/mizik.js b/api/mizik/services/mizik.js new file mode 100644 index 0000000..1f5330e --- /dev/null +++ b/api/mizik/services/mizik.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/v3.x/concepts/services.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/components/store/store.json b/components/store/store.json new file mode 100644 index 0000000..7d0f7a0 --- /dev/null +++ b/components/store/store.json @@ -0,0 +1,28 @@ +{ + "collectionName": "components_store_stores", + "info": { + "name": "Album", + "icon": "music", + "description": "" + }, + "options": {}, + "attributes": { + "lien": { + "type": "string", + "required": true + }, + "store": { + "type": "enumeration", + "enum": [ + "Tidal", + "Spotify", + "Deezer", + "Qobuz", + "PlayStore", + "AppleMusic", + "Autre" + ], + "required": true + } + } +} diff --git a/components/trad/traductions.json b/components/trad/traductions.json new file mode 100644 index 0000000..5b2d607 --- /dev/null +++ b/components/trad/traductions.json @@ -0,0 +1,17 @@ +{ + "collectionName": "components_trad_traductions", + "info": { + "name": "traductions", + "icon": "spell-check", + "description": "" + }, + "options": {}, + "attributes": { + "francais": { + "type": "richtext" + }, + "english": { + "type": "richtext" + } + } +} diff --git a/components/url/liens.json b/components/url/liens.json new file mode 100644 index 0000000..1991b5b --- /dev/null +++ b/components/url/liens.json @@ -0,0 +1,27 @@ +{ + "collectionName": "components_url_liens", + "info": { + "name": "liens", + "icon": "link", + "description": "" + }, + "options": {}, + "attributes": { + "lien": { + "type": "string", + "required": true + }, + "Hebergeur": { + "type": "enumeration", + "enum": [ + "YouTube", + "PeerTube", + "DailyMotion", + "Vimeo", + "SoundCloud", + "Autre" + ], + "required": true + } + } +}