mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
Hackspace: add linked_spaces
This commit is contained in:
parent
14d08cd7b2
commit
1708cda514
4 changed files with 35 additions and 0 deletions
|
|
@ -67,6 +67,11 @@
|
||||||
"type": "component",
|
"type": "component",
|
||||||
"repeatable": true,
|
"repeatable": true,
|
||||||
"component": "membership.plans"
|
"component": "membership.plans"
|
||||||
|
},
|
||||||
|
"linked_spaces": {
|
||||||
|
"type": "component",
|
||||||
|
"repeatable": true,
|
||||||
|
"component": "hackspace.linked-space"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
src/components/hackspace/linked-space.json
Normal file
16
src/components/hackspace/linked-space.json
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"collectionName": "components_hackspace_linked_spaces",
|
||||||
|
"info": {
|
||||||
|
"displayName": "Linked Space",
|
||||||
|
"icon": "alien"
|
||||||
|
},
|
||||||
|
"options": {},
|
||||||
|
"attributes": {
|
||||||
|
"endpoint": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"website": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
13
types/generated/components.d.ts
vendored
13
types/generated/components.d.ts
vendored
|
|
@ -99,6 +99,18 @@ export interface HackspaceLink extends Struct.ComponentSchema {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface HackspaceLinkedSpace extends Struct.ComponentSchema {
|
||||||
|
collectionName: 'components_hackspace_linked_spaces';
|
||||||
|
info: {
|
||||||
|
displayName: 'Linked Space';
|
||||||
|
icon: 'alien';
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
endpoint: Schema.Attribute.String;
|
||||||
|
website: Schema.Attribute.String;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export interface HackspaceLocation extends Struct.ComponentSchema {
|
export interface HackspaceLocation extends Struct.ComponentSchema {
|
||||||
collectionName: 'components_hackspace_locations';
|
collectionName: 'components_hackspace_locations';
|
||||||
info: {
|
info: {
|
||||||
|
|
@ -196,6 +208,7 @@ declare module '@strapi/strapi' {
|
||||||
'hackspace.feed-list': HackspaceFeedList;
|
'hackspace.feed-list': HackspaceFeedList;
|
||||||
'hackspace.keymaster': HackspaceKeymaster;
|
'hackspace.keymaster': HackspaceKeymaster;
|
||||||
'hackspace.link': HackspaceLink;
|
'hackspace.link': HackspaceLink;
|
||||||
|
'hackspace.linked-space': HackspaceLinkedSpace;
|
||||||
'hackspace.location': HackspaceLocation;
|
'hackspace.location': HackspaceLocation;
|
||||||
'hackspace.project': HackspaceProject;
|
'hackspace.project': HackspaceProject;
|
||||||
'hackspace.spacefed': HackspaceSpacefed;
|
'hackspace.spacefed': HackspaceSpacefed;
|
||||||
|
|
|
||||||
1
types/generated/contentTypes.d.ts
vendored
1
types/generated/contentTypes.d.ts
vendored
|
|
@ -416,6 +416,7 @@ export interface ApiHackspaceHackspace extends Struct.SingleTypeSchema {
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
Schema.Attribute.Private;
|
Schema.Attribute.Private;
|
||||||
feeds: Schema.Attribute.Component<'hackspace.feed-list', false>;
|
feeds: Schema.Attribute.Component<'hackspace.feed-list', false>;
|
||||||
|
linked_spaces: Schema.Attribute.Component<'hackspace.linked-space', true>;
|
||||||
links: Schema.Attribute.Component<'hackspace.link', true>;
|
links: Schema.Attribute.Component<'hackspace.link', true>;
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||||
localizations: Schema.Attribute.Relation<
|
localizations: Schema.Attribute.Relation<
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue