Hackspace: add feeds

This commit is contained in:
He4eT 2025-04-01 13:03:19 +02:00
commit f0d1269d21
4 changed files with 64 additions and 0 deletions

View file

@ -47,6 +47,11 @@
"type": "component",
"repeatable": true,
"component": "hackspace.camera"
},
"feeds": {
"type": "component",
"repeatable": false,
"component": "hackspace.feed-list"
}
}
}

View file

@ -0,0 +1,30 @@
{
"collectionName": "components_hackspace_feed_lists",
"info": {
"displayName": "Feed List",
"icon": "cast"
},
"options": {},
"attributes": {
"blog": {
"type": "component",
"repeatable": false,
"component": "hackspace.feed"
},
"wiki": {
"type": "component",
"repeatable": false,
"component": "hackspace.feed"
},
"calendar": {
"type": "component",
"repeatable": false,
"component": "hackspace.feed"
},
"flickr": {
"type": "component",
"repeatable": false,
"component": "hackspace.feed"
}
}
}

View file

@ -41,6 +41,32 @@ export interface HackspaceContacts extends Struct.ComponentSchema {
};
}
export interface HackspaceFeed extends Struct.ComponentSchema {
collectionName: 'components_hackspace_feeds';
info: {
displayName: 'Feed';
icon: 'cast';
};
attributes: {
type: Schema.Attribute.String;
url: Schema.Attribute.String & Schema.Attribute.Required;
};
}
export interface HackspaceFeedList extends Struct.ComponentSchema {
collectionName: 'components_hackspace_feed_lists';
info: {
displayName: 'Feed List';
icon: 'cast';
};
attributes: {
blog: Schema.Attribute.Component<'hackspace.feed', false>;
calendar: Schema.Attribute.Component<'hackspace.feed', false>;
flickr: Schema.Attribute.Component<'hackspace.feed', false>;
wiki: Schema.Attribute.Component<'hackspace.feed', false>;
};
}
export interface HackspaceKeymaster extends Struct.ComponentSchema {
collectionName: 'components_hackspace_keymasters';
info: {
@ -123,6 +149,8 @@ declare module '@strapi/strapi' {
export interface ComponentSchemas {
'hackspace.camera': HackspaceCamera;
'hackspace.contacts': HackspaceContacts;
'hackspace.feed': HackspaceFeed;
'hackspace.feed-list': HackspaceFeedList;
'hackspace.keymaster': HackspaceKeymaster;
'hackspace.location': HackspaceLocation;
'hackspace.spacefed': HackspaceSpacefed;

View file

@ -415,6 +415,7 @@ export interface ApiHackspaceHackspace extends Struct.SingleTypeSchema {
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
feeds: Schema.Attribute.Component<'hackspace.feed-list', false>;
locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation<
'oneToMany',