Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,541 changes: 1,306 additions & 1,235 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions src/api/author/content-types/author/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"description": ""
},
"options": {
"draftAndPublish": true,
"populateCreatorFields": true
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
Expand Down Expand Up @@ -70,7 +69,9 @@
"type": "media",
"multiple": false,
"required": true,
"allowedTypes": ["images"],
"allowedTypes": [
"images"
],
"pluginOptions": {
"i18n": {
"localized": true
Expand All @@ -95,6 +96,9 @@
"localized": true
}
}
},
"phoneNumber": {
"type": "string"
}
}
}
6 changes: 3 additions & 3 deletions src/api/page/content-types/page/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"description": ""
},
"options": {
"draftAndPublish": true,
"populateCreatorFields": true
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
Expand Down Expand Up @@ -43,7 +42,8 @@
"ui.titel",
"ui.quote",
"ui.page-image",
"ui.artikelen"
"ui.artikelen",
"ui.directeuren"
],
"pluginOptions": {
"i18n": {
Expand Down
13 changes: 11 additions & 2 deletions src/api/page/middlewares/page-populate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
*/

const populate = {
createdBy: true,
updatedBy: true,
components: {
on: {
'ui.artikelen': {
Expand Down Expand Up @@ -35,6 +33,17 @@ const populate = {
'ui.quote': {
fields: ['quote', 'name', 'jobTitle'],
},
'ui.directeuren': {
populate: {
directeuren: {
populate: {
avatar: {
fields: ['url', 'alternativeText'],
},
},
},
},
},
},
},
};
Expand Down
16 changes: 16 additions & 0 deletions src/components/ui/directeuren.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"collectionName": "components_ui_directeurens",
"info": {
"displayName": "Directeuren",
"icon": "alien",
"description": ""
},
"options": {},
"attributes": {
"directeuren": {
"type": "relation",
"relation": "oneToMany",
"target": "api::author.author"
}
}
}
13 changes: 13 additions & 0 deletions types/generated/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ export interface UiArtikelenOverzicht extends Struct.ComponentSchema {
};
}

export interface UiDirecteuren extends Struct.ComponentSchema {
collectionName: 'components_ui_directeurens';
info: {
description: '';
displayName: 'Directeuren';
icon: 'alien';
};
attributes: {
directeuren: Schema.Attribute.Relation<'oneToMany', 'api::author.author'>;
};
}

export interface UiHero extends Struct.ComponentSchema {
collectionName: 'components_ui_heroes';
info: {
Expand Down Expand Up @@ -290,6 +302,7 @@ declare module '@strapi/strapi' {
'elements.social': ElementsSocial;
'ui.artikelen': UiArtikelen;
'ui.artikelen-overzicht': UiArtikelenOverzicht;
'ui.directeuren': UiDirecteuren;
'ui.hero': UiHero;
'ui.image': UiImage;
'ui.image-met-titel': UiImageMetTitel;
Expand Down
16 changes: 10 additions & 6 deletions types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ export interface ApiAuthorAuthor extends Struct.CollectionTypeSchema {
};
options: {
draftAndPublish: true;
populateCreatorFields: true;
};
pluginOptions: {
i18n: {
Expand All @@ -470,7 +469,8 @@ export interface ApiAuthorAuthor extends Struct.CollectionTypeSchema {
};
}>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'>;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
email: Schema.Attribute.Email &
Schema.Attribute.Required &
Schema.Attribute.SetPluginOptions<{
Expand Down Expand Up @@ -520,6 +520,7 @@ export interface ApiAuthorAuthor extends Struct.CollectionTypeSchema {
}>;
locale: Schema.Attribute.String;
localizations: Schema.Attribute.Relation<'oneToMany', 'api::author.author'>;
phoneNumber: Schema.Attribute.String;
publishedAt: Schema.Attribute.DateTime;
realTitle: Schema.Attribute.String &
Schema.Attribute.Required &
Expand All @@ -529,7 +530,8 @@ export interface ApiAuthorAuthor extends Struct.CollectionTypeSchema {
};
}>;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'>;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
};
}

Expand Down Expand Up @@ -674,7 +676,6 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
};
options: {
draftAndPublish: true;
populateCreatorFields: true;
};
pluginOptions: {
i18n: {
Expand All @@ -690,6 +691,7 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
'ui.quote',
'ui.page-image',
'ui.artikelen',
'ui.directeuren',
]
> &
Schema.Attribute.SetPluginOptions<{
Expand All @@ -698,7 +700,8 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
};
}>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'>;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
description: Schema.Attribute.Text &
Schema.Attribute.Required &
Schema.Attribute.SetPluginOptions<{
Expand Down Expand Up @@ -734,7 +737,8 @@ export interface ApiPagePage extends Struct.CollectionTypeSchema {
};
}>;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'>;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
};
}

Expand Down
Loading
Loading