mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
Hackspace: add feeds
This commit is contained in:
parent
4a1bbe106c
commit
f0d1269d21
4 changed files with 64 additions and 0 deletions
|
|
@ -47,6 +47,11 @@
|
|||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "hackspace.camera"
|
||||
},
|
||||
"feeds": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "hackspace.feed-list"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
30
src/components/hackspace/feed-list.json
Normal file
30
src/components/hackspace/feed-list.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
28
types/generated/components.d.ts
vendored
28
types/generated/components.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
1
types/generated/contentTypes.d.ts
vendored
1
types/generated/contentTypes.d.ts
vendored
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue