date / datetime to lists

This commit is contained in:
Julian Krauser 2025-01-16 13:51:32 +01:00
parent 7bace17bfe
commit 667ab84f2e
7 changed files with 91 additions and 40 deletions

View file

@ -35,19 +35,25 @@
"image": { "image": {
"type": "media", "type": "media",
"multiple": false, "multiple": false,
"allowedTypes": ["images"], "required": false,
"allowedTypes": [
"images"
],
"pluginOptions": {} "pluginOptions": {}
}, },
"attachment": { "attachment": {
"type": "media", "type": "media",
"multiple": true, "multiple": true,
"required": false, "required": false,
"allowedTypes": ["images"], "allowedTypes": [
"images"
],
"pluginOptions": {} "pluginOptions": {}
}, },
"date": { "date": {
"pluginOptions": {}, "pluginOptions": {},
"type": "date" "type": "date",
"required": true
} }
} }
} }

View file

@ -18,9 +18,9 @@
"unique": true "unique": true
}, },
"collection": { "collection": {
"type": "string", "type": "enumeration",
"required": true, "enum": ["events", "vehicles", "articles", "operations"],
"unique": true "required": true
}, },
"image_item": { "image_item": {
"type": "boolean", "type": "boolean",

View file

@ -35,19 +35,25 @@
"image": { "image": {
"type": "media", "type": "media",
"multiple": false, "multiple": false,
"allowedTypes": ["images"], "required": false,
"allowedTypes": [
"images"
],
"pluginOptions": {} "pluginOptions": {}
}, },
"attachment": { "attachment": {
"type": "media", "type": "media",
"multiple": true, "multiple": true,
"required": false, "required": false,
"allowedTypes": ["images"], "allowedTypes": [
"images"
],
"pluginOptions": {} "pluginOptions": {}
}, },
"date": { "date": {
"pluginOptions": {}, "pluginOptions": {},
"type": "date" "type": "datetime",
"required": true
} }
} }
} }

View file

@ -35,19 +35,25 @@
"image": { "image": {
"type": "media", "type": "media",
"multiple": false, "multiple": false,
"allowedTypes": ["images"], "required": false,
"allowedTypes": [
"images"
],
"pluginOptions": {} "pluginOptions": {}
}, },
"attachment": { "attachment": {
"type": "media", "type": "media",
"multiple": true, "multiple": true,
"required": false, "required": false,
"allowedTypes": ["images"], "allowedTypes": [
"images"
],
"pluginOptions": {} "pluginOptions": {}
}, },
"date": { "date": {
"pluginOptions": {}, "pluginOptions": {},
"type": "date" "type": "datetime",
"required": true
} }
} }
} }

View file

@ -4,7 +4,8 @@
"info": { "info": {
"singularName": "vehicle", "singularName": "vehicle",
"pluralName": "vehicles", "pluralName": "vehicles",
"displayName": "Fahrzeuge" "displayName": "Fahrzeuge",
"description": ""
}, },
"options": { "options": {
"draftAndPublish": true "draftAndPublish": true
@ -34,19 +35,25 @@
"image": { "image": {
"type": "media", "type": "media",
"multiple": false, "multiple": false,
"allowedTypes": ["images"], "required": false,
"allowedTypes": [
"images"
],
"pluginOptions": {} "pluginOptions": {}
}, },
"attachment": { "attachment": {
"type": "media", "type": "media",
"multiple": true, "multiple": true,
"required": false, "required": false,
"allowedTypes": ["images"], "allowedTypes": [
"images"
],
"pluginOptions": {} "pluginOptions": {}
}, },
"date": { "date": {
"pluginOptions": {}, "pluginOptions": {},
"type": "date" "type": "datetime",
"required": false
} }
} }
} }

View file

@ -14,7 +14,7 @@
"name": "Apache 2.0", "name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html" "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
}, },
"x-generation-date": "2025-01-14T08:03:38.856Z" "x-generation-date": "2025-01-16T12:40:38.072Z"
}, },
"x-strapi-config": { "x-strapi-config": {
"plugins": [ "plugins": [
@ -5182,7 +5182,8 @@
"required": [ "required": [
"title", "title",
"description", "description",
"slug" "slug",
"date"
], ],
"type": "object", "type": "object",
"properties": { "properties": {
@ -5286,7 +5287,8 @@
"required": [ "required": [
"title", "title",
"description", "description",
"slug" "slug",
"date"
], ],
"properties": { "properties": {
"id": { "id": {
@ -6450,7 +6452,13 @@
"type": "string" "type": "string"
}, },
"collection": { "collection": {
"type": "string" "type": "string",
"enum": [
"events",
"vehicles",
"articles",
"operations"
]
}, },
"image_item": { "image_item": {
"type": "boolean" "type": "boolean"
@ -6541,7 +6549,13 @@
"type": "string" "type": "string"
}, },
"collection": { "collection": {
"type": "string" "type": "string",
"enum": [
"events",
"vehicles",
"articles",
"operations"
]
}, },
"image_item": { "image_item": {
"type": "boolean" "type": "boolean"
@ -6859,7 +6873,13 @@
"type": "string" "type": "string"
}, },
"collection": { "collection": {
"type": "string" "type": "string",
"enum": [
"events",
"vehicles",
"articles",
"operations"
]
}, },
"image_item": { "image_item": {
"type": "boolean" "type": "boolean"
@ -6950,7 +6970,8 @@
"required": [ "required": [
"title", "title",
"description", "description",
"slug" "slug",
"date"
], ],
"type": "object", "type": "object",
"properties": { "properties": {
@ -6991,7 +7012,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"locale": { "locale": {
"type": "string" "type": "string"
@ -7054,7 +7075,8 @@
"required": [ "required": [
"title", "title",
"description", "description",
"slug" "slug",
"date"
], ],
"properties": { "properties": {
"id": { "id": {
@ -7805,7 +7827,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"createdAt": { "createdAt": {
"type": "string", "type": "string",
@ -8128,7 +8150,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"createdAt": { "createdAt": {
"type": "string", "type": "string",
@ -10416,7 +10438,8 @@
"required": [ "required": [
"title", "title",
"description", "description",
"slug" "slug",
"date"
], ],
"type": "object", "type": "object",
"properties": { "properties": {
@ -10457,7 +10480,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"locale": { "locale": {
"type": "string" "type": "string"
@ -10520,7 +10543,8 @@
"required": [ "required": [
"title", "title",
"description", "description",
"slug" "slug",
"date"
], ],
"properties": { "properties": {
"id": { "id": {
@ -11271,7 +11295,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"createdAt": { "createdAt": {
"type": "string", "type": "string",
@ -11594,7 +11618,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"createdAt": { "createdAt": {
"type": "string", "type": "string",
@ -12058,7 +12082,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"locale": { "locale": {
"type": "string" "type": "string"
@ -12872,7 +12896,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"createdAt": { "createdAt": {
"type": "string", "type": "string",
@ -13195,7 +13219,7 @@
}, },
"date": { "date": {
"type": "string", "type": "string",
"format": "date" "format": "date-time"
}, },
"createdAt": { "createdAt": {
"type": "string", "type": "string",

View file

@ -344,7 +344,7 @@ export interface ApiArticleArticle extends Struct.CollectionTypeSchema {
content: Schema.Attribute.Blocks; content: Schema.Attribute.Blocks;
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
date: Schema.Attribute.Date; date: Schema.Attribute.Date & Schema.Attribute.Required;
description: Schema.Attribute.String & Schema.Attribute.Required; description: Schema.Attribute.String & Schema.Attribute.Required;
image: Schema.Attribute.Media<"images">; image: Schema.Attribute.Media<"images">;
locale: Schema.Attribute.String & Schema.Attribute.Private; locale: Schema.Attribute.String & Schema.Attribute.Private;
@ -369,7 +369,8 @@ export interface ApiCollectionLookupCollectionLookup extends Struct.CollectionTy
draftAndPublish: true; draftAndPublish: true;
}; };
attributes: { attributes: {
collection: Schema.Attribute.String & Schema.Attribute.Required & Schema.Attribute.Unique; collection: Schema.Attribute.Enumeration<["events", "vehicles", "articles", "operations"]> &
Schema.Attribute.Required;
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
date_list: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo<false>; date_list: Schema.Attribute.Boolean & Schema.Attribute.Required & Schema.Attribute.DefaultTo<false>;
@ -402,7 +403,7 @@ export interface ApiEventEvent extends Struct.CollectionTypeSchema {
content: Schema.Attribute.Blocks; content: Schema.Attribute.Blocks;
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
date: Schema.Attribute.Date; date: Schema.Attribute.DateTime & Schema.Attribute.Required;
description: Schema.Attribute.String & Schema.Attribute.Required; description: Schema.Attribute.String & Schema.Attribute.Required;
image: Schema.Attribute.Media<"images">; image: Schema.Attribute.Media<"images">;
locale: Schema.Attribute.String & Schema.Attribute.Private; locale: Schema.Attribute.String & Schema.Attribute.Private;
@ -490,7 +491,7 @@ export interface ApiOperationOperation extends Struct.CollectionTypeSchema {
content: Schema.Attribute.Blocks; content: Schema.Attribute.Blocks;
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
date: Schema.Attribute.Date; date: Schema.Attribute.DateTime & Schema.Attribute.Required;
description: Schema.Attribute.String & Schema.Attribute.Required; description: Schema.Attribute.String & Schema.Attribute.Required;
image: Schema.Attribute.Media<"images">; image: Schema.Attribute.Media<"images">;
locale: Schema.Attribute.String & Schema.Attribute.Private; locale: Schema.Attribute.String & Schema.Attribute.Private;
@ -542,6 +543,7 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
export interface ApiVehicleVehicle extends Struct.CollectionTypeSchema { export interface ApiVehicleVehicle extends Struct.CollectionTypeSchema {
collectionName: "vehicles"; collectionName: "vehicles";
info: { info: {
description: "";
displayName: "Fahrzeuge"; displayName: "Fahrzeuge";
pluralName: "vehicles"; pluralName: "vehicles";
singularName: "vehicle"; singularName: "vehicle";
@ -554,7 +556,7 @@ export interface ApiVehicleVehicle extends Struct.CollectionTypeSchema {
content: Schema.Attribute.Blocks; content: Schema.Attribute.Blocks;
createdAt: Schema.Attribute.DateTime; createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private; createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
date: Schema.Attribute.Date; date: Schema.Attribute.DateTime;
description: Schema.Attribute.String & Schema.Attribute.Required; description: Schema.Attribute.String & Schema.Attribute.Required;
image: Schema.Attribute.Media<"images">; image: Schema.Attribute.Media<"images">;
locale: Schema.Attribute.String & Schema.Attribute.Private; locale: Schema.Attribute.String & Schema.Attribute.Private;