file download component
This commit is contained in:
parent
a39370e369
commit
ef90cee833
5 changed files with 207 additions and 5 deletions
|
@ -41,7 +41,8 @@
|
|||
"dynamic-zone.emphasise-article",
|
||||
"dynamic-zone.dual-column-text",
|
||||
"dynamic-zone.column-image-text",
|
||||
"shared.list"
|
||||
"shared.list",
|
||||
"dynamic-zone.file-download"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
25
src/components/dynamic-zone/file-download.json
Normal file
25
src/components/dynamic-zone/file-download.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"collectionName": "components_dynamic_zone_file_download",
|
||||
"info": {
|
||||
"displayName": "Datei-Download",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"enable_download": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"required": true
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"file": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"allowedTypes": ["files", "images"]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
"name": "Apache 2.0",
|
||||
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
|
||||
},
|
||||
"x-generation-date": "2025-01-17T10:22:28.611Z"
|
||||
"x-generation-date": "2025-01-18T10:10:27.231Z"
|
||||
},
|
||||
"x-strapi-config": {
|
||||
"plugins": [
|
||||
|
@ -9375,6 +9375,155 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"DynamicZoneFileDownloadComponent": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"__component": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"dynamic-zone.file-download"
|
||||
]
|
||||
},
|
||||
"enable_download": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"file": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"documentId": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"alternativeText": {
|
||||
"type": "string"
|
||||
},
|
||||
"caption": {
|
||||
"type": "string"
|
||||
},
|
||||
"width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"height": {
|
||||
"type": "integer"
|
||||
},
|
||||
"formats": {},
|
||||
"hash": {
|
||||
"type": "string"
|
||||
},
|
||||
"ext": {
|
||||
"type": "string"
|
||||
},
|
||||
"mime": {
|
||||
"type": "string"
|
||||
},
|
||||
"size": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"previewUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider_metadata": {},
|
||||
"related": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"documentId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"folder": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"documentId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"folderPath": {
|
||||
"type": "string"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"publishedAt": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"documentId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"updatedBy": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"documentId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"locale": {
|
||||
"type": "string"
|
||||
},
|
||||
"localizations": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"documentId": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"HomepageRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
@ -11744,6 +11893,9 @@
|
|||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SharedListComponent"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/DynamicZoneFileDownloadComponent"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -11756,7 +11908,8 @@
|
|||
"dynamic-zone.emphasise-article": "#/components/schemas/DynamicZoneEmphasiseArticleComponent",
|
||||
"dynamic-zone.dual-column-text": "#/components/schemas/DynamicZoneDualColumnTextComponent",
|
||||
"dynamic-zone.column-image-text": "#/components/schemas/DynamicZoneColumnImageTextComponent",
|
||||
"shared.list": "#/components/schemas/SharedListComponent"
|
||||
"shared.list": "#/components/schemas/SharedListComponent",
|
||||
"dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -11862,6 +12015,9 @@
|
|||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SharedListComponent"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/DynamicZoneFileDownloadComponent"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -11874,7 +12030,8 @@
|
|||
"dynamic-zone.emphasise-article": "#/components/schemas/DynamicZoneEmphasiseArticleComponent",
|
||||
"dynamic-zone.dual-column-text": "#/components/schemas/DynamicZoneDualColumnTextComponent",
|
||||
"dynamic-zone.column-image-text": "#/components/schemas/DynamicZoneColumnImageTextComponent",
|
||||
"shared.list": "#/components/schemas/SharedListComponent"
|
||||
"shared.list": "#/components/schemas/SharedListComponent",
|
||||
"dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -11959,6 +12116,9 @@
|
|||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/SharedListComponent"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/DynamicZoneFileDownloadComponent"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -11971,7 +12131,8 @@
|
|||
"dynamic-zone.emphasise-article": "#/components/schemas/DynamicZoneEmphasiseArticleComponent",
|
||||
"dynamic-zone.dual-column-text": "#/components/schemas/DynamicZoneDualColumnTextComponent",
|
||||
"dynamic-zone.column-image-text": "#/components/schemas/DynamicZoneColumnImageTextComponent",
|
||||
"shared.list": "#/components/schemas/SharedListComponent"
|
||||
"shared.list": "#/components/schemas/SharedListComponent",
|
||||
"dynamic-zone.file-download": "#/components/schemas/DynamicZoneFileDownloadComponent"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue