Chonicles + updated deps

This commit is contained in:
DrMint 2022-07-22 01:16:51 +02:00
parent 6245b8ee91
commit 3cb3d23d0b
13 changed files with 1102 additions and 1354 deletions

2252
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,10 +10,9 @@
"strapi": "strapi" "strapi": "strapi"
}, },
"dependencies": { "dependencies": {
"@strapi/plugin-graphql": "4.2.2", "@strapi/plugin-graphql": "4.2.3",
"@strapi/strapi": "4.2.2", "@strapi/strapi": "4.2.3",
"sqlite3": "5.0.8", "sqlite3": "5.0.9"
"strapi-plugin-meilisearch": "0.6.6"
}, },
"author": { "author": {
"name": "A Strapi developer" "name": "A Strapi developer"

View File

@ -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"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronicle controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::chronicle.chronicle');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronicle router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::chronicle.chronicle');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronicle service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::chronicle.chronicle');

View File

@ -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"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronicles-chapter controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::chronicles-chapter.chronicles-chapter');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronicles-chapter router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::chronicles-chapter.chronicles-chapter');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* chronicles-chapter service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::chronicles-chapter.chronicles-chapter');

View File

@ -52,6 +52,12 @@
"relation": "manyToOne", "relation": "manyToOne",
"target": "api::contents-group.contents-group", "target": "api::contents-group.contents-group",
"inversedBy": "contents" "inversedBy": "contents"
},
"chronicles": {
"type": "relation",
"relation": "manyToMany",
"target": "api::chronicle.chronicle",
"mappedBy": "contents"
} }
} }
} }

View File

@ -480,6 +480,33 @@
}, },
"special_pages": { "special_pages": {
"type": "string" "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"
} }
} }
} }

View File

@ -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"
}
}
}