mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47:24 +00:00
Hackspace: add links
This commit is contained in:
parent
ae1b629c86
commit
ffc7acade6
4 changed files with 41 additions and 0 deletions
|
|
@ -57,6 +57,11 @@
|
||||||
"type": "component",
|
"type": "component",
|
||||||
"repeatable": true,
|
"repeatable": true,
|
||||||
"component": "hackspace.project"
|
"component": "hackspace.project"
|
||||||
|
},
|
||||||
|
"links": {
|
||||||
|
"type": "component",
|
||||||
|
"repeatable": true,
|
||||||
|
"component": "hackspace.link"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
src/components/hackspace/link.json
Normal file
21
src/components/hackspace/link.json
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"collectionName": "components_hackspace_links",
|
||||||
|
"info": {
|
||||||
|
"displayName": "Link",
|
||||||
|
"icon": "link"
|
||||||
|
},
|
||||||
|
"options": {},
|
||||||
|
"attributes": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
14
types/generated/components.d.ts
vendored
14
types/generated/components.d.ts
vendored
|
|
@ -86,6 +86,19 @@ export interface HackspaceKeymaster extends Struct.ComponentSchema {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface HackspaceLink extends Struct.ComponentSchema {
|
||||||
|
collectionName: 'components_hackspace_links';
|
||||||
|
info: {
|
||||||
|
displayName: 'Link';
|
||||||
|
icon: 'link';
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
description: Schema.Attribute.Text;
|
||||||
|
name: Schema.Attribute.String & Schema.Attribute.Required;
|
||||||
|
url: Schema.Attribute.String & Schema.Attribute.Required;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export interface HackspaceLocation extends Struct.ComponentSchema {
|
export interface HackspaceLocation extends Struct.ComponentSchema {
|
||||||
collectionName: 'components_hackspace_locations';
|
collectionName: 'components_hackspace_locations';
|
||||||
info: {
|
info: {
|
||||||
|
|
@ -163,6 +176,7 @@ declare module '@strapi/strapi' {
|
||||||
'hackspace.feed': HackspaceFeed;
|
'hackspace.feed': HackspaceFeed;
|
||||||
'hackspace.feed-list': HackspaceFeedList;
|
'hackspace.feed-list': HackspaceFeedList;
|
||||||
'hackspace.keymaster': HackspaceKeymaster;
|
'hackspace.keymaster': HackspaceKeymaster;
|
||||||
|
'hackspace.link': HackspaceLink;
|
||||||
'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>;
|
||||||
|
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<
|
||||||
'oneToMany',
|
'oneToMany',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue