Updated strapi to 4.0.2

This commit is contained in:
DrMint 2021-12-25 16:05:08 +01:00
parent edfcff5b35
commit ea9a1f568a
7 changed files with 2164 additions and 1563 deletions

3637
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,10 +10,10 @@
"strapi": "strapi"
},
"dependencies": {
"@strapi/plugin-graphql": "^4.0.0",
"@strapi/plugin-i18n": "4.0.0",
"@strapi/plugin-users-permissions": "4.0.0",
"@strapi/strapi": "4.0.0",
"@strapi/plugin-graphql": "^4.0.2",
"@strapi/plugin-i18n": "4.0.2",
"@strapi/plugin-users-permissions": "4.0.2",
"@strapi/strapi": "4.0.2",
"sqlite3": "5.0.2"
},
"author": {

View File

@ -73,7 +73,8 @@
"components": [
"metadata.books",
"metadata.video",
"metadata.game"
"metadata.game",
"metadata.audio"
],
"max": 1
},

View File

@ -0,0 +1,25 @@
{
"collectionName": "components_metadata_audio",
"info": {
"displayName": "Audio",
"icon": "music"
},
"options": {},
"attributes": {
"subtype": {
"type": "enumeration",
"enum": [
"Soundtrack",
"Audiobook",
"Other"
],
"default": "Soundtrack",
"required": true
},
"languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
}
}
}

View File

@ -1,7 +1,7 @@
{
"collectionName": "components_metadata_books",
"info": {
"displayName": "Book",
"displayName": "Textual",
"icon": "book",
"description": ""
},
@ -14,7 +14,7 @@
"Hardcover"
],
"default": "Paperback",
"required": true
"required": false
},
"page_count": {
"type": "integer",
@ -24,6 +24,29 @@
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
},
"page_order": {
"type": "enumeration",
"enum": [
"Left_to_Right",
"Right_to_Left"
],
"required": true,
"default": "Left_to_Right"
},
"subtype": {
"type": "enumeration",
"enum": [
"Book",
"Manga",
"Comic",
"Magazine",
"Novel",
"Script",
"Scorebook"
],
"required": true,
"default": "Book"
}
}
}

View File

@ -2,14 +2,35 @@
"collectionName": "components_metadata_games",
"info": {
"displayName": "Game",
"icon": "gamepad"
"icon": "gamepad",
"description": ""
},
"options": {},
"attributes": {
"game_platform": {
"platform": {
"type": "relation",
"relation": "oneToOne",
"target": "api::game-platform.game-platform"
},
"demo": {
"type": "boolean",
"default": false,
"required": true
},
"audio_languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
},
"sub_languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
},
"interface_languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
}
}
}

View File

@ -29,7 +29,7 @@
"Review",
"Done"
],
"default": "Incomplete",
"default": "Done",
"required": true
}
}