vehicles
This commit is contained in:
parent
7679f4f6c9
commit
bd52f5c996
11 changed files with 1892 additions and 20 deletions
|
@ -37,10 +37,7 @@
|
|||
"multiple": false,
|
||||
"required": true,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
"images"
|
||||
],
|
||||
"pluginOptions": {}
|
||||
},
|
||||
|
@ -49,9 +46,7 @@
|
|||
"multiple": true,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos"
|
||||
"images"
|
||||
],
|
||||
"pluginOptions": {}
|
||||
},
|
||||
|
|
|
@ -19,6 +19,11 @@
|
|||
"collection": {
|
||||
"type": "uid",
|
||||
"required": true
|
||||
},
|
||||
"imageItem": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,9 +33,7 @@
|
|||
"multiple": true,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos"
|
||||
"images"
|
||||
],
|
||||
"pluginOptions": {}
|
||||
},
|
||||
|
|
53
src/api/vehicle/content-types/vehicle/schema.json
Normal file
53
src/api/vehicle/content-types/vehicle/schema.json
Normal file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "vehicles",
|
||||
"info": {
|
||||
"singularName": "vehicle",
|
||||
"pluralName": "vehicles",
|
||||
"displayName": "Fahrzeuge"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"pluginOptions": {},
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"slug": {
|
||||
"pluginOptions": {},
|
||||
"type": "uid",
|
||||
"targetField": "title",
|
||||
"required": true
|
||||
},
|
||||
"content": {
|
||||
"pluginOptions": {},
|
||||
"type": "blocks"
|
||||
},
|
||||
"image": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
],
|
||||
"pluginOptions": {}
|
||||
},
|
||||
"attachment": {
|
||||
"type": "media",
|
||||
"multiple": true,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
],
|
||||
"pluginOptions": {}
|
||||
}
|
||||
}
|
||||
}
|
7
src/api/vehicle/controllers/vehicle.ts
Normal file
7
src/api/vehicle/controllers/vehicle.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* vehicle controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::vehicle.vehicle');
|
7
src/api/vehicle/routes/vehicle.ts
Normal file
7
src/api/vehicle/routes/vehicle.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* vehicle router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::vehicle.vehicle');
|
7
src/api/vehicle/services/vehicle.ts
Normal file
7
src/api/vehicle/services/vehicle.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* vehicle service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::vehicle.vehicle');
|
|
@ -12,7 +12,7 @@
|
|||
"default": false,
|
||||
"required": true
|
||||
},
|
||||
"sammlungs_referenz": {
|
||||
"lookup": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::collection-lookup.collection-lookup"
|
||||
|
|
File diff suppressed because it is too large
Load diff
2
types/generated/components.d.ts
vendored
2
types/generated/components.d.ts
vendored
|
@ -180,7 +180,7 @@ export interface SharedList extends Struct.ComponentSchema {
|
|||
enable_detail: Schema.Attribute.Boolean &
|
||||
Schema.Attribute.Required &
|
||||
Schema.Attribute.DefaultTo<false>;
|
||||
sammlungs_referenz: Schema.Attribute.Relation<
|
||||
lookup: Schema.Attribute.Relation<
|
||||
'oneToOne',
|
||||
'api::collection-lookup.collection-lookup'
|
||||
>;
|
||||
|
|
44
types/generated/contentTypes.d.ts
vendored
44
types/generated/contentTypes.d.ts
vendored
|
@ -381,15 +381,14 @@ export interface ApiArticleArticle extends Struct.CollectionTypeSchema {
|
|||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
attachment: Schema.Attribute.Media<'images' | 'files' | 'videos', true>;
|
||||
attachment: Schema.Attribute.Media<'images', true>;
|
||||
content: Schema.Attribute.Blocks;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
date: Schema.Attribute.Date & Schema.Attribute.Required;
|
||||
description: Schema.Attribute.String & Schema.Attribute.Required;
|
||||
image: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'> &
|
||||
Schema.Attribute.Required;
|
||||
image: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
|
@ -422,6 +421,9 @@ export interface ApiCollectionLookupCollectionLookup
|
|||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
imageItem: Schema.Attribute.Boolean &
|
||||
Schema.Attribute.Required &
|
||||
Schema.Attribute.DefaultTo<false>;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
|
@ -548,7 +550,7 @@ export interface ApiOperationOperation extends Struct.CollectionTypeSchema {
|
|||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
attachment: Schema.Attribute.Media<'images' | 'files' | 'videos', true>;
|
||||
attachment: Schema.Attribute.Media<'images', true>;
|
||||
content: Schema.Attribute.Blocks;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
|
@ -611,6 +613,39 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface ApiVehicleVehicle extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'vehicles';
|
||||
info: {
|
||||
displayName: 'Fahrzeuge';
|
||||
pluralName: 'vehicles';
|
||||
singularName: 'vehicle';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
attachment: Schema.Attribute.Media<'images', true>;
|
||||
content: Schema.Attribute.Blocks;
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
description: Schema.Attribute.String & Schema.Attribute.Required;
|
||||
image: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::vehicle.vehicle'
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
slug: Schema.Attribute.UID<'title'> & Schema.Attribute.Required;
|
||||
title: Schema.Attribute.String & Schema.Attribute.Required;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface PluginContentReleasesRelease
|
||||
extends Struct.CollectionTypeSchema {
|
||||
collectionName: 'strapi_releases';
|
||||
|
@ -1123,6 +1158,7 @@ declare module '@strapi/strapi' {
|
|||
'api::homepage.homepage': ApiHomepageHomepage;
|
||||
'api::operation.operation': ApiOperationOperation;
|
||||
'api::page.page': ApiPagePage;
|
||||
'api::vehicle.vehicle': ApiVehicleVehicle;
|
||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||
'plugin::i18n.locale': PluginI18NLocale;
|
||||
|
|
Loading…
Reference in a new issue