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" "strapi": "strapi"
}, },
"dependencies": { "dependencies": {
"@strapi/plugin-graphql": "^4.0.0", "@strapi/plugin-graphql": "^4.0.2",
"@strapi/plugin-i18n": "4.0.0", "@strapi/plugin-i18n": "4.0.2",
"@strapi/plugin-users-permissions": "4.0.0", "@strapi/plugin-users-permissions": "4.0.2",
"@strapi/strapi": "4.0.0", "@strapi/strapi": "4.0.2",
"sqlite3": "5.0.2" "sqlite3": "5.0.2"
}, },
"author": { "author": {

View File

@ -73,7 +73,8 @@
"components": [ "components": [
"metadata.books", "metadata.books",
"metadata.video", "metadata.video",
"metadata.game" "metadata.game",
"metadata.audio"
], ],
"max": 1 "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", "collectionName": "components_metadata_books",
"info": { "info": {
"displayName": "Book", "displayName": "Textual",
"icon": "book", "icon": "book",
"description": "" "description": ""
}, },
@ -14,7 +14,7 @@
"Hardcover" "Hardcover"
], ],
"default": "Paperback", "default": "Paperback",
"required": true "required": false
}, },
"page_count": { "page_count": {
"type": "integer", "type": "integer",
@ -24,6 +24,29 @@
"type": "relation", "type": "relation",
"relation": "oneToMany", "relation": "oneToMany",
"target": "api::language.language" "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", "collectionName": "components_metadata_games",
"info": { "info": {
"displayName": "Game", "displayName": "Game",
"icon": "gamepad" "icon": "gamepad",
"description": ""
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
"game_platform": { "platform": {
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::game-platform.game-platform" "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", "Review",
"Done" "Done"
], ],
"default": "Incomplete", "default": "Done",
"required": true "required": true
} }
} }