Renamed the source collection to credits

This commit is contained in:
DrMint 2021-12-21 02:02:50 +01:00
parent da4545a0cf
commit ce842f0baf
10 changed files with 113 additions and 61 deletions

View File

@ -34,6 +34,13 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::glossary-item-type.glossary-item-type"
},
"thumbnail": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
}
}
}

View File

@ -12,24 +12,27 @@
},
"pluginOptions": {},
"attributes": {
"content": {
"pluginOptions": {},
"type": "dynamiczone",
"components": [
"page-builder.text",
"page-builder.tabs",
"page-builder.gallery",
"page-builder.grid"
]
},
"title": {
"pluginOptions": {},
"type": "string"
},
"authors": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"slug": {
"type": "string",
"required": true,
"unique": true,
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"categories": {
"type": "relation",
"relation": "oneToMany",
"target": "api::category.category"
},
"translations": {
"displayName": "Posts",
"type": "component",
"repeatable": true,
"component": "translations.posts"
}
}
}

View File

@ -33,6 +33,13 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::weapon-story-type.weapon-story-type"
},
"thumbnail": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
}
}
}

View File

@ -1,21 +1,16 @@
{
"collectionName": "components_basics_sources",
"collectionName": "components_basics_credits",
"info": {
"displayName": "Source",
"icon": "book-reader",
"displayName": "Credits",
"icon": "user",
"description": ""
},
"options": {},
"attributes": {
"scanners": {
"source_language": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"cleaners": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
"relation": "oneToOne",
"target": "api::language.language"
},
"transcribers": {
"type": "relation",
@ -32,23 +27,28 @@
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"scanners": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"cleaners": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"typesetters": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"source_language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"footnotes": {
"type": "text"
},
"Subbers": {
"subbers": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
},
"footnotes": {
"type": "text"
}
}
}

View File

@ -16,10 +16,10 @@
"note": {
"type": "text"
},
"source": {
"credits": {
"type": "component",
"repeatable": false,
"component": "basics.source",
"component": "basics.credits",
"required": true
}
}

View File

@ -20,12 +20,6 @@
"files"
]
},
"source": {
"type": "component",
"repeatable": false,
"component": "basics.source",
"required": true
},
"status": {
"type": "enumeration",
"enum": [
@ -36,6 +30,12 @@
],
"default": "Incomplete",
"required": true
},
"credits": {
"type": "component",
"repeatable": false,
"component": "basics.credits",
"required": true
}
}
}

View File

@ -0,0 +1,36 @@
{
"collectionName": "components_translations_posts",
"info": {
"displayName": "Posts",
"icon": "icons"
},
"options": {},
"attributes": {
"Status": {
"type": "enumeration",
"enum": [
"Incomplete",
"Draft",
"Review",
"Done"
],
"default": "Incomplete",
"required": true
},
"title": {
"type": "string",
"required": true
},
"excerpt": {
"type": "text",
"maxLength": 150
},
"thumbnail": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
}
}
}

View File

@ -20,13 +20,6 @@
"images"
]
},
"source": {
"displayName": "Source",
"type": "component",
"repeatable": false,
"component": "basics.source",
"required": true
},
"status": {
"type": "enumeration",
"enum": [
@ -37,6 +30,12 @@
],
"default": "Incomplete",
"required": true
},
"credits": {
"type": "component",
"repeatable": false,
"component": "basics.credits",
"required": true
}
}
}

View File

@ -10,12 +10,6 @@
"text": {
"type": "richtext"
},
"source": {
"type": "component",
"repeatable": false,
"component": "basics.source",
"required": true
},
"language": {
"type": "relation",
"relation": "oneToOne",
@ -31,6 +25,12 @@
],
"default": "Incomplete",
"required": true
},
"credits": {
"type": "component",
"repeatable": false,
"component": "basics.credits",
"required": true
}
}
}

View File

@ -19,12 +19,6 @@
"video_embed": {
"type": "string"
},
"source": {
"type": "component",
"repeatable": false,
"component": "basics.source",
"required": true
},
"subfile": {
"type": "media",
"multiple": false,
@ -43,6 +37,12 @@
],
"required": true,
"default": "Incomplete"
},
"credits": {
"type": "component",
"repeatable": false,
"component": "basics.credits",
"required": true
}
}
}