Chonicles + updated deps
This commit is contained in:
parent
6245b8ee91
commit
3cb3d23d0b
File diff suppressed because it is too large
Load Diff
|
@ -10,10 +10,9 @@
|
|||
"strapi": "strapi"
|
||||
},
|
||||
"dependencies": {
|
||||
"@strapi/plugin-graphql": "4.2.2",
|
||||
"@strapi/strapi": "4.2.2",
|
||||
"sqlite3": "5.0.8",
|
||||
"strapi-plugin-meilisearch": "0.6.6"
|
||||
"@strapi/plugin-graphql": "4.2.3",
|
||||
"@strapi/strapi": "4.2.3",
|
||||
"sqlite3": "5.0.9"
|
||||
},
|
||||
"author": {
|
||||
"name": "A Strapi developer"
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "chronicles",
|
||||
"info": {
|
||||
"singularName": "chronicle",
|
||||
"pluralName": "chronicles",
|
||||
"displayName": "🟪 Chronicles",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"attributes": {
|
||||
"slug": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"unique": true,
|
||||
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
||||
},
|
||||
"translations": {
|
||||
"displayName": "chronicles",
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "translations.chronicles"
|
||||
},
|
||||
"date_start": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "basics.datepicker",
|
||||
"required": true
|
||||
},
|
||||
"chapter": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::chronicles-chapter.chronicles-chapter",
|
||||
"inversedBy": "chronicles"
|
||||
},
|
||||
"date_end": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "basics.datepicker",
|
||||
"required": true
|
||||
},
|
||||
"contents": {
|
||||
"type": "relation",
|
||||
"relation": "manyToMany",
|
||||
"target": "api::content.content",
|
||||
"inversedBy": "chronicles"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* chronicle controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::chronicle.chronicle');
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* chronicle router.
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::chronicle.chronicle');
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* chronicle service.
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::chronicle.chronicle');
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "chronicles_chapters",
|
||||
"info": {
|
||||
"singularName": "chronicles-chapter",
|
||||
"pluralName": "chronicles-chapters",
|
||||
"displayName": "🟪 Chronicles Chapters"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"attributes": {
|
||||
"slug": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"unique": true,
|
||||
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
||||
},
|
||||
"titles": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "translations.simple-title"
|
||||
},
|
||||
"chronicles": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::chronicle.chronicle",
|
||||
"mappedBy": "chapter"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* chronicles-chapter controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::chronicles-chapter.chronicles-chapter');
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* chronicles-chapter router.
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::chronicles-chapter.chronicles-chapter');
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* chronicles-chapter service.
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::chronicles-chapter.chronicles-chapter');
|
|
@ -52,6 +52,12 @@
|
|||
"relation": "manyToOne",
|
||||
"target": "api::contents-group.contents-group",
|
||||
"inversedBy": "contents"
|
||||
},
|
||||
"chronicles": {
|
||||
"type": "relation",
|
||||
"relation": "manyToMany",
|
||||
"target": "api::chronicle.chronicle",
|
||||
"mappedBy": "contents"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -480,6 +480,33 @@
|
|||
},
|
||||
"special_pages": {
|
||||
"type": "string"
|
||||
},
|
||||
"scan": {
|
||||
"type": "string"
|
||||
},
|
||||
"scanlation": {
|
||||
"type": "string"
|
||||
},
|
||||
"scanners": {
|
||||
"type": "string"
|
||||
},
|
||||
"cleaners": {
|
||||
"type": "string"
|
||||
},
|
||||
"typesetters": {
|
||||
"type": "string"
|
||||
},
|
||||
"notes": {
|
||||
"type": "string"
|
||||
},
|
||||
"cover": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "string"
|
||||
},
|
||||
"no_source_warning": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"collectionName": "components_translations_chronicles",
|
||||
"info": {
|
||||
"displayName": "chronicles",
|
||||
"icon": "ad",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"summary": {
|
||||
"type": "text"
|
||||
},
|
||||
"language": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::language.language"
|
||||
},
|
||||
"body": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "collections-component.body"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue