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": {
"type": "media",
"multiple": false,
"allowedTypes": ["images"],
"required": false,
"allowedTypes": [
"images"
],
"pluginOptions": {}
},
"attachment": {
"type": "media",
"multiple": true,
"required": false,
"allowedTypes": ["images"],
"allowedTypes": [
"images"
],
"pluginOptions": {}
},
"date": {
"pluginOptions": {},
"type": "date"
"type": "date",
"required": true
}
}
}

View file

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

View file

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

View file

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

View file

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

View file

@ -14,7 +14,7 @@
"name": "Apache 2.0",
"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": {
"plugins": [
@ -5182,7 +5182,8 @@
"required": [
"title",
"description",
"slug"
"slug",
"date"
],
"type": "object",
"properties": {
@ -5286,7 +5287,8 @@
"required": [
"title",
"description",
"slug"
"slug",
"date"
],
"properties": {
"id": {
@ -6450,7 +6452,13 @@
"type": "string"
},
"collection": {
"type": "string"
"type": "string",
"enum": [
"events",
"vehicles",
"articles",
"operations"
]
},
"image_item": {
"type": "boolean"
@ -6541,7 +6549,13 @@
"type": "string"
},
"collection": {
"type": "string"
"type": "string",
"enum": [
"events",
"vehicles",
"articles",
"operations"
]
},
"image_item": {
"type": "boolean"
@ -6859,7 +6873,13 @@
"type": "string"
},
"collection": {
"type": "string"
"type": "string",
"enum": [
"events",
"vehicles",
"articles",
"operations"
]
},
"image_item": {
"type": "boolean"
@ -6950,7 +6970,8 @@
"required": [
"title",
"description",
"slug"
"slug",
"date"
],
"type": "object",
"properties": {
@ -6991,7 +7012,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"locale": {
"type": "string"
@ -7054,7 +7075,8 @@
"required": [
"title",
"description",
"slug"
"slug",
"date"
],
"properties": {
"id": {
@ -7805,7 +7827,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"createdAt": {
"type": "string",
@ -8128,7 +8150,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"createdAt": {
"type": "string",
@ -10416,7 +10438,8 @@
"required": [
"title",
"description",
"slug"
"slug",
"date"
],
"type": "object",
"properties": {
@ -10457,7 +10480,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"locale": {
"type": "string"
@ -10520,7 +10543,8 @@
"required": [
"title",
"description",
"slug"
"slug",
"date"
],
"properties": {
"id": {
@ -11271,7 +11295,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"createdAt": {
"type": "string",
@ -11594,7 +11618,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"createdAt": {
"type": "string",
@ -12058,7 +12082,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"locale": {
"type": "string"
@ -12872,7 +12896,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"createdAt": {
"type": "string",
@ -13195,7 +13219,7 @@
},
"date": {
"type": "string",
"format": "date"
"format": "date-time"
},
"createdAt": {
"type": "string",

View file

@ -344,7 +344,7 @@ export interface ApiArticleArticle extends Struct.CollectionTypeSchema {
content: Schema.Attribute.Blocks;
createdAt: Schema.Attribute.DateTime;
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;
image: Schema.Attribute.Media<"images">;
locale: Schema.Attribute.String & Schema.Attribute.Private;
@ -369,7 +369,8 @@ export interface ApiCollectionLookupCollectionLookup extends Struct.CollectionTy
draftAndPublish: true;
};
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;
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
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;
createdAt: Schema.Attribute.DateTime;
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;
image: Schema.Attribute.Media<"images">;
locale: Schema.Attribute.String & Schema.Attribute.Private;
@ -490,7 +491,7 @@ export interface ApiOperationOperation extends Struct.CollectionTypeSchema {
content: Schema.Attribute.Blocks;
createdAt: Schema.Attribute.DateTime;
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;
image: Schema.Attribute.Media<"images">;
locale: Schema.Attribute.String & Schema.Attribute.Private;
@ -542,6 +543,7 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
export interface ApiVehicleVehicle extends Struct.CollectionTypeSchema {
collectionName: "vehicles";
info: {
description: "";
displayName: "Fahrzeuge";
pluralName: "vehicles";
singularName: "vehicle";
@ -554,7 +556,7 @@ export interface ApiVehicleVehicle extends Struct.CollectionTypeSchema {
content: Schema.Attribute.Blocks;
createdAt: Schema.Attribute.DateTime;
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;
image: Schema.Attribute.Media<"images">;
locale: Schema.Attribute.String & Schema.Attribute.Private;