Updated deps + content group to content folders
This commit is contained in:
parent
633bd97309
commit
81584f6ff7
File diff suppressed because it is too large
Load Diff
|
@ -10,9 +10,9 @@
|
||||||
"strapi": "strapi"
|
"strapi": "strapi"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strapi/plugin-graphql": "4.2.3",
|
"@strapi/plugin-graphql": "4.3.4",
|
||||||
"@strapi/strapi": "4.2.3",
|
"@strapi/strapi": "4.3.4",
|
||||||
"sqlite3": "5.0.9"
|
"sqlite3": "5.0.11"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"name": "A Strapi developer"
|
"name": "A Strapi developer"
|
||||||
|
|
|
@ -47,17 +47,17 @@
|
||||||
"repeatable": true,
|
"repeatable": true,
|
||||||
"component": "translations.title"
|
"component": "translations.title"
|
||||||
},
|
},
|
||||||
"group": {
|
|
||||||
"type": "relation",
|
|
||||||
"relation": "manyToOne",
|
|
||||||
"target": "api::contents-group.contents-group",
|
|
||||||
"inversedBy": "contents"
|
|
||||||
},
|
|
||||||
"chronicles": {
|
"chronicles": {
|
||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "manyToMany",
|
"relation": "manyToMany",
|
||||||
"target": "api::chronicle.chronicle",
|
"target": "api::chronicle.chronicle",
|
||||||
"mappedBy": "contents"
|
"mappedBy": "contents"
|
||||||
|
},
|
||||||
|
"folders": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "manyToMany",
|
||||||
|
"target": "api::contents-folder.contents-folder",
|
||||||
|
"mappedBy": "contents"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
{
|
||||||
|
"kind": "collectionType",
|
||||||
|
"collectionName": "contents_folders",
|
||||||
|
"info": {
|
||||||
|
"singularName": "contents-folder",
|
||||||
|
"pluralName": "contents-folders",
|
||||||
|
"displayName": "🟡 Contents Folders",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"draftAndPublish": false
|
||||||
|
},
|
||||||
|
"attributes": {
|
||||||
|
"slug": {
|
||||||
|
"type": "string",
|
||||||
|
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
||||||
|
"unique": true,
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"titles": {
|
||||||
|
"type": "component",
|
||||||
|
"repeatable": true,
|
||||||
|
"component": "translations.simple-title",
|
||||||
|
"required": true,
|
||||||
|
"min": 1
|
||||||
|
},
|
||||||
|
"subfolders": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "oneToMany",
|
||||||
|
"target": "api::contents-folder.contents-folder",
|
||||||
|
"mappedBy": "parent_folder"
|
||||||
|
},
|
||||||
|
"parent_folder": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "manyToOne",
|
||||||
|
"target": "api::contents-folder.contents-folder",
|
||||||
|
"inversedBy": "subfolders"
|
||||||
|
},
|
||||||
|
"contents": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "manyToMany",
|
||||||
|
"target": "api::content.content",
|
||||||
|
"inversedBy": "folders"
|
||||||
|
},
|
||||||
|
"sequence": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false,
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* contents-folder controller
|
||||||
|
*/
|
||||||
|
|
||||||
|
const { createCoreController } = require('@strapi/strapi').factories;
|
||||||
|
|
||||||
|
module.exports = createCoreController('api::contents-folder.contents-folder');
|
|
@ -0,0 +1,9 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* contents-folder router.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||||
|
|
||||||
|
module.exports = createCoreRouter('api::contents-folder.contents-folder');
|
|
@ -0,0 +1,9 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* contents-folder service.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const { createCoreService } = require('@strapi/strapi').factories;
|
||||||
|
|
||||||
|
module.exports = createCoreService('api::contents-folder.contents-folder');
|
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
"kind": "collectionType",
|
|
||||||
"collectionName": "contents_groups",
|
|
||||||
"info": {
|
|
||||||
"singularName": "contents-group",
|
|
||||||
"pluralName": "contents-groups",
|
|
||||||
"displayName": "🟡 Contents Groups",
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"draftAndPublish": false
|
|
||||||
},
|
|
||||||
"attributes": {
|
|
||||||
"slug": {
|
|
||||||
"type": "string",
|
|
||||||
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
|
||||||
"unique": true,
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"contents": {
|
|
||||||
"type": "relation",
|
|
||||||
"relation": "oneToMany",
|
|
||||||
"target": "api::content.content",
|
|
||||||
"mappedBy": "group"
|
|
||||||
},
|
|
||||||
"combine": {
|
|
||||||
"type": "boolean",
|
|
||||||
"default": true,
|
|
||||||
"required": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* contents-group controller
|
|
||||||
*/
|
|
||||||
|
|
||||||
const { createCoreController } = require('@strapi/strapi').factories;
|
|
||||||
|
|
||||||
module.exports = createCoreController('api::contents-group.contents-group');
|
|
|
@ -1,9 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* contents-group router.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
|
||||||
|
|
||||||
module.exports = createCoreRouter('api::contents-group.contents-group');
|
|
|
@ -1,9 +0,0 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* contents-group service.
|
|
||||||
*/
|
|
||||||
|
|
||||||
const { createCoreService } = require('@strapi/strapi').factories;
|
|
||||||
|
|
||||||
module.exports = createCoreService('api::contents-group.contents-group');
|
|
|
@ -513,6 +513,12 @@
|
||||||
},
|
},
|
||||||
"anchor_link_copied": {
|
"anchor_link_copied": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"folders": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"empty_folder_message": {
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue