From c7f74b9d64e4853c5420cbad28e6f2717cae2ff5 Mon Sep 17 00:00:00 2001 From: lzzfnc Date: Sat, 20 Nov 2021 13:59:28 +0100 Subject: [PATCH] test contents --- api/contribution/config/routes.json | 52 +++++++++++++++++++ api/contribution/controllers/contribution.js | 8 +++ api/contribution/models/contribution.js | 8 +++ .../models/contribution.settings.json | 28 ++++++++++ api/contribution/services/contribution.js | 8 +++ api/corpus/config/routes.json | 52 +++++++++++++++++++ api/corpus/controllers/corpus.js | 8 +++ api/corpus/models/corpus.js | 8 +++ api/corpus/models/corpus.settings.json | 31 +++++++++++ api/corpus/services/corpus.js | 8 +++ api/function/models/function.settings.json | 4 ++ api/module/config/routes.json | 52 +++++++++++++++++++ api/module/controllers/module.js | 8 +++ api/module/models/module.js | 8 +++ api/module/models/module.settings.json | 27 ++++++++++ api/module/services/module.js | 8 +++ api/project/config/routes.json | 52 +++++++++++++++++++ api/project/controllers/project.js | 8 +++ api/project/models/project.js | 8 +++ api/project/models/project.settings.json | 34 ++++++++++++ api/project/services/project.js | 8 +++ api/sp16/config/routes.json | 28 ++++++++++ api/sp16/controllers/sp16.js | 8 +++ api/sp16/models/sp16.js | 8 +++ api/sp16/models/sp16.settings.json | 34 ++++++++++++ api/sp16/services/sp16.js | 8 +++ components/contents/content.json | 25 +++++++++ components/project/documentation.json | 25 +++++++++ components/project/project-documentation.json | 25 +++++++++ components/project/references.json | 19 +++++++ 30 files changed, 608 insertions(+) create mode 100644 api/contribution/config/routes.json create mode 100644 api/contribution/controllers/contribution.js create mode 100644 api/contribution/models/contribution.js create mode 100644 api/contribution/models/contribution.settings.json create mode 100644 api/contribution/services/contribution.js create mode 100644 api/corpus/config/routes.json create mode 100644 api/corpus/controllers/corpus.js create mode 100644 api/corpus/models/corpus.js create mode 100644 api/corpus/models/corpus.settings.json create mode 100644 api/corpus/services/corpus.js create mode 100644 api/module/config/routes.json create mode 100644 api/module/controllers/module.js create mode 100644 api/module/models/module.js create mode 100644 api/module/models/module.settings.json create mode 100644 api/module/services/module.js create mode 100644 api/project/config/routes.json create mode 100644 api/project/controllers/project.js create mode 100644 api/project/models/project.js create mode 100644 api/project/models/project.settings.json create mode 100644 api/project/services/project.js create mode 100644 api/sp16/config/routes.json create mode 100644 api/sp16/controllers/sp16.js create mode 100644 api/sp16/models/sp16.js create mode 100644 api/sp16/models/sp16.settings.json create mode 100644 api/sp16/services/sp16.js create mode 100644 components/contents/content.json create mode 100644 components/project/documentation.json create mode 100644 components/project/project-documentation.json create mode 100644 components/project/references.json diff --git a/api/contribution/config/routes.json b/api/contribution/config/routes.json new file mode 100644 index 0000000..15cc4ff --- /dev/null +++ b/api/contribution/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/contributions", + "handler": "contribution.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/contributions/count", + "handler": "contribution.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/contributions/:id", + "handler": "contribution.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/contributions", + "handler": "contribution.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/contributions/:id", + "handler": "contribution.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/contributions/:id", + "handler": "contribution.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/contribution/controllers/contribution.js b/api/contribution/controllers/contribution.js new file mode 100644 index 0000000..e860895 --- /dev/null +++ b/api/contribution/controllers/contribution.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/contribution/models/contribution.js b/api/contribution/models/contribution.js new file mode 100644 index 0000000..0054d33 --- /dev/null +++ b/api/contribution/models/contribution.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/contribution/models/contribution.settings.json b/api/contribution/models/contribution.settings.json new file mode 100644 index 0000000..01d2bde --- /dev/null +++ b/api/contribution/models/contribution.settings.json @@ -0,0 +1,28 @@ +{ + "kind": "collectionType", + "collectionName": "contributions", + "info": { + "name": "contribution" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "title": { + "type": "string", + "required": true, + "unique": true + }, + "contents": { + "type": "richtext", + "required": true + }, + "credits": { + "type": "richtext", + "required": true + } + } +} diff --git a/api/contribution/services/contribution.js b/api/contribution/services/contribution.js new file mode 100644 index 0000000..6538a8c --- /dev/null +++ b/api/contribution/services/contribution.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/api/corpus/config/routes.json b/api/corpus/config/routes.json new file mode 100644 index 0000000..e9cec05 --- /dev/null +++ b/api/corpus/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/corpuses", + "handler": "corpus.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/corpuses/count", + "handler": "corpus.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/corpuses/:id", + "handler": "corpus.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/corpuses", + "handler": "corpus.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/corpuses/:id", + "handler": "corpus.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/corpuses/:id", + "handler": "corpus.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/corpus/controllers/corpus.js b/api/corpus/controllers/corpus.js new file mode 100644 index 0000000..e860895 --- /dev/null +++ b/api/corpus/controllers/corpus.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/corpus/models/corpus.js b/api/corpus/models/corpus.js new file mode 100644 index 0000000..0054d33 --- /dev/null +++ b/api/corpus/models/corpus.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/corpus/models/corpus.settings.json b/api/corpus/models/corpus.settings.json new file mode 100644 index 0000000..c032853 --- /dev/null +++ b/api/corpus/models/corpus.settings.json @@ -0,0 +1,31 @@ +{ + "kind": "collectionType", + "collectionName": "corpora", + "info": { + "name": "corpus", + "description": "" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "title": { + "type": "string", + "required": true, + "unique": true + }, + "description": { + "type": "richtext", + "required": true + }, + "contents": { + "type": "dynamiczone", + "components": [ + "contents.content" + ] + } + } +} diff --git a/api/corpus/services/corpus.js b/api/corpus/services/corpus.js new file mode 100644 index 0000000..6538a8c --- /dev/null +++ b/api/corpus/services/corpus.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/api/function/models/function.settings.json b/api/function/models/function.settings.json index 3516183..c7c9eb5 100644 --- a/api/function/models/function.settings.json +++ b/api/function/models/function.settings.json @@ -44,6 +44,10 @@ ], "required": true, "min": 1 + }, + "description": { + "type": "richtext", + "required": true } } } diff --git a/api/module/config/routes.json b/api/module/config/routes.json new file mode 100644 index 0000000..3d81844 --- /dev/null +++ b/api/module/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/modules", + "handler": "module.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/modules/count", + "handler": "module.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/modules/:id", + "handler": "module.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/modules", + "handler": "module.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/modules/:id", + "handler": "module.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/modules/:id", + "handler": "module.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/module/controllers/module.js b/api/module/controllers/module.js new file mode 100644 index 0000000..e860895 --- /dev/null +++ b/api/module/controllers/module.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/module/models/module.js b/api/module/models/module.js new file mode 100644 index 0000000..0054d33 --- /dev/null +++ b/api/module/models/module.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/module/models/module.settings.json b/api/module/models/module.settings.json new file mode 100644 index 0000000..582d22d --- /dev/null +++ b/api/module/models/module.settings.json @@ -0,0 +1,27 @@ +{ + "kind": "collectionType", + "collectionName": "modules", + "info": { + "name": "module" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "name": { + "type": "string", + "required": true, + "unique": true + }, + "description": { + "type": "richtext", + "required": true + }, + "functions": { + "collection": "function" + } + } +} diff --git a/api/module/services/module.js b/api/module/services/module.js new file mode 100644 index 0000000..6538a8c --- /dev/null +++ b/api/module/services/module.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/api/project/config/routes.json b/api/project/config/routes.json new file mode 100644 index 0000000..0cbac70 --- /dev/null +++ b/api/project/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/projects", + "handler": "project.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/projects/count", + "handler": "project.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/projects/:id", + "handler": "project.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/projects", + "handler": "project.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/projects/:id", + "handler": "project.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/projects/:id", + "handler": "project.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/project/controllers/project.js b/api/project/controllers/project.js new file mode 100644 index 0000000..e860895 --- /dev/null +++ b/api/project/controllers/project.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/project/models/project.js b/api/project/models/project.js new file mode 100644 index 0000000..0054d33 --- /dev/null +++ b/api/project/models/project.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/project/models/project.settings.json b/api/project/models/project.settings.json new file mode 100644 index 0000000..8c54a06 --- /dev/null +++ b/api/project/models/project.settings.json @@ -0,0 +1,34 @@ +{ + "kind": "collectionType", + "collectionName": "projects", + "info": { + "name": "project", + "description": "" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "title": { + "type": "string", + "required": true, + "unique": true + }, + "description": { + "type": "richtext", + "required": true + }, + "colophon": { + "type": "richtext", + "required": true + }, + "project_documentation": { + "type": "component", + "repeatable": false, + "component": "project.project-documentation" + } + } +} diff --git a/api/project/services/project.js b/api/project/services/project.js new file mode 100644 index 0000000..6538a8c --- /dev/null +++ b/api/project/services/project.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/api/sp16/config/routes.json b/api/sp16/config/routes.json new file mode 100644 index 0000000..bb4b265 --- /dev/null +++ b/api/sp16/config/routes.json @@ -0,0 +1,28 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/sp-16", + "handler": "sp16.find", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/sp-16", + "handler": "sp16.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/sp-16", + "handler": "sp16.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/api/sp16/controllers/sp16.js b/api/sp16/controllers/sp16.js new file mode 100644 index 0000000..e860895 --- /dev/null +++ b/api/sp16/controllers/sp16.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers) + * to customize this controller + */ + +module.exports = {}; diff --git a/api/sp16/models/sp16.js b/api/sp16/models/sp16.js new file mode 100644 index 0000000..0054d33 --- /dev/null +++ b/api/sp16/models/sp16.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks) + * to customize this model + */ + +module.exports = {}; diff --git a/api/sp16/models/sp16.settings.json b/api/sp16/models/sp16.settings.json new file mode 100644 index 0000000..cc3682c --- /dev/null +++ b/api/sp16/models/sp16.settings.json @@ -0,0 +1,34 @@ +{ + "kind": "singleType", + "collectionName": "sp16s", + "info": { + "name": "sp16" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "title": { + "type": "string", + "required": true + }, + "description": { + "type": "richtext" + }, + "cover": { + "model": "file", + "via": "related", + "allowedTypes": [ + "images", + "files", + "videos" + ], + "plugin": "upload", + "required": false, + "pluginOptions": {} + } + } +} diff --git a/api/sp16/services/sp16.js b/api/sp16/services/sp16.js new file mode 100644 index 0000000..6538a8c --- /dev/null +++ b/api/sp16/services/sp16.js @@ -0,0 +1,8 @@ +'use strict'; + +/** + * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services) + * to customize this service + */ + +module.exports = {}; diff --git a/components/contents/content.json b/components/contents/content.json new file mode 100644 index 0000000..571f34b --- /dev/null +++ b/components/contents/content.json @@ -0,0 +1,25 @@ +{ + "collectionName": "components_contents_contents", + "info": { + "name": "content", + "icon": "hamburger" + }, + "options": {}, + "attributes": { + "text": { + "type": "richtext" + }, + "media": { + "collection": "file", + "via": "related", + "allowedTypes": [ + "files", + "images", + "videos" + ], + "plugin": "upload", + "required": false, + "pluginOptions": {} + } + } +} diff --git a/components/project/documentation.json b/components/project/documentation.json new file mode 100644 index 0000000..92dadfa --- /dev/null +++ b/components/project/documentation.json @@ -0,0 +1,25 @@ +{ + "collectionName": "components_project_documentations", + "info": { + "name": "documentation", + "icon": "campground" + }, + "options": {}, + "attributes": { + "text": { + "type": "richtext" + }, + "media": { + "collection": "file", + "via": "related", + "allowedTypes": [ + "files", + "images", + "videos" + ], + "plugin": "upload", + "required": false, + "pluginOptions": {} + } + } +} diff --git a/components/project/project-documentation.json b/components/project/project-documentation.json new file mode 100644 index 0000000..4c79e6a --- /dev/null +++ b/components/project/project-documentation.json @@ -0,0 +1,25 @@ +{ + "collectionName": "components_project_project_documentations", + "info": { + "name": "project documentation", + "icon": "book-open", + "description": "" + }, + "options": {}, + "attributes": { + "contents": { + "type": "richtext", + "required": true + }, + "documentation": { + "type": "component", + "repeatable": false, + "component": "project.documentation" + }, + "references": { + "type": "component", + "repeatable": false, + "component": "project.references" + } + } +} diff --git a/components/project/references.json b/components/project/references.json new file mode 100644 index 0000000..f6be8f8 --- /dev/null +++ b/components/project/references.json @@ -0,0 +1,19 @@ +{ + "collectionName": "components_project_references", + "info": { + "name": "references", + "icon": "anchor" + }, + "options": {}, + "attributes": { + "contributions": { + "collection": "contribution" + }, + "corpora": { + "collection": "corpus" + }, + "functions": { + "collection": "function" + } + } +}