Added more translated fields

This commit is contained in:
DrMint 2022-03-20 14:07:18 +01:00
parent f410b9409b
commit aff4aea9f5
10 changed files with 244 additions and 26 deletions

View File

@ -8,7 +8,7 @@
"description": "" "description": ""
}, },
"options": { "options": {
"draftAndPublish": true "draftAndPublish": false
}, },
"pluginOptions": {}, "pluginOptions": {},
"attributes": { "attributes": {
@ -33,6 +33,25 @@
"type": "component", "type": "component",
"repeatable": true, "repeatable": true,
"component": "translations.posts" "component": "translations.posts"
},
"hidden": {
"type": "boolean",
"default": false,
"required": true
},
"thumbnail": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"date": {
"type": "component",
"repeatable": false,
"component": "basics.datepicker",
"required": true
} }
} }
} }

View File

@ -0,0 +1,66 @@
{
"kind": "collectionType",
"collectionName": "web_archives",
"info": {
"singularName": "web-archive",
"pluralName": "web-archives",
"displayName": "🟧 Web Archives",
"description": ""
},
"options": {
"draftAndPublish": false
},
"attributes": {
"type": {
"type": "enumeration",
"enum": [
"website",
"webpage",
"online_doc"
],
"required": true
},
"source_url": {
"type": "string",
"required": true,
"unique": true
},
"format": {
"type": "enumeration",
"enum": [
"zip",
"wacz"
],
"required": true
},
"date": {
"type": "component",
"repeatable": false,
"component": "basics.datepicker",
"required": true
},
"num_pages": {
"type": "integer"
},
"author": {
"type": "string"
},
"still_online": {
"type": "boolean",
"default": true,
"required": true
},
"size": {
"type": "component",
"repeatable": false,
"component": "basics.file-size",
"required": true
},
"descriptions": {
"displayName": "Web Archives",
"type": "component",
"repeatable": true,
"component": "translations.web-archives"
}
}
}

View File

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

View File

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

View File

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

View File

@ -348,6 +348,36 @@
}, },
"results": { "results": {
"type": "string" "type": "string"
},
"language_switch_message": {
"type": "text"
},
"open_settings": {
"type": "string"
},
"change_language": {
"type": "string"
},
"open_search": {
"type": "string"
},
"chronology": {
"type": "string"
},
"accords_handbook": {
"type": "string"
},
"legality": {
"type": "string"
},
"members": {
"type": "string"
},
"sharing_policy": {
"type": "string"
},
"contact_us": {
"type": "string"
} }
} }
} }

View File

@ -0,0 +1,25 @@
{
"collectionName": "components_basics_file_sizes",
"info": {
"displayName": "File Size",
"icon": "balance-scale",
"description": ""
},
"options": {},
"attributes": {
"size": {
"type": "decimal",
"required": true
},
"unit": {
"type": "enumeration",
"enum": [
"kb",
"mb",
"gb"
],
"required": true,
"default": "kb"
}
}
}

View File

@ -2,39 +2,59 @@
"collectionName": "components_collections_component_library_obi_belts", "collectionName": "components_collections_component_library_obi_belts",
"info": { "info": {
"displayName": "Library Obi Belt", "displayName": "Library Obi Belt",
"icon": "circle-notch" "icon": "circle-notch",
"description": ""
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
"front": { "front": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [ "allowedTypes": [
"images" "images"
], ]
"type": "media",
"multiple": false
}, },
"spine": { "spine": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [ "allowedTypes": [
"images" "images"
], ]
"type": "media",
"multiple": false
}, },
"back": { "back": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [ "allowedTypes": [
"images" "images"
], ]
"type": "media",
"multiple": false
}, },
"full": { "full": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"inside_full": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"flap_front": {
"allowedTypes": [ "allowedTypes": [
"images" "images"
], ],
"type": "media", "type": "media",
"multiple": false "multiple": false
}, },
"inside_full": { "flap_back": {
"allowedTypes": [ "allowedTypes": [
"images" "images"
], ],

View File

@ -2,21 +2,11 @@
"collectionName": "components_translations_posts", "collectionName": "components_translations_posts",
"info": { "info": {
"displayName": "Posts", "displayName": "Posts",
"icon": "icons" "icon": "icons",
"description": ""
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
"Status": {
"type": "enumeration",
"enum": [
"Incomplete",
"Draft",
"Review",
"Done"
],
"default": "Incomplete",
"required": true
},
"title": { "title": {
"type": "string", "type": "string",
"required": true "required": true
@ -26,11 +16,31 @@
"maxLength": 150 "maxLength": 150
}, },
"thumbnail": { "thumbnail": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [ "allowedTypes": [
"images" "images"
]
},
"body": {
"type": "richtext"
},
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"status": {
"type": "enumeration",
"enum": [
"Incomplete",
"Draft",
"Review",
"Done"
], ],
"type": "media", "default": "Incomplete",
"multiple": false "required": true
} }
} }
} }

View File

@ -0,0 +1,21 @@
{
"collectionName": "components_translations_web_archives",
"info": {
"displayName": "Web Archives",
"icon": "arrow-circle-down"
},
"options": {},
"attributes": {
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"description": {
"type": "text"
},
"notes": {
"type": "text"
}
}
}