mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
Hackspace: add projects
This commit is contained in:
parent
f0d1269d21
commit
ae1b629c86
4 changed files with 32 additions and 0 deletions
|
|
@ -52,6 +52,11 @@
|
|||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "hackspace.feed-list"
|
||||
},
|
||||
"projects": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "hackspace.project"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
14
src/components/hackspace/project.json
Normal file
14
src/components/hackspace/project.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"collectionName": "components_hackspace_projects",
|
||||
"info": {
|
||||
"displayName": "Project",
|
||||
"icon": "apps"
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
12
types/generated/components.d.ts
vendored
12
types/generated/components.d.ts
vendored
|
|
@ -104,6 +104,17 @@ export interface HackspaceLocation extends Struct.ComponentSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface HackspaceProject extends Struct.ComponentSchema {
|
||||
collectionName: 'components_hackspace_projects';
|
||||
info: {
|
||||
displayName: 'Project';
|
||||
icon: 'apps';
|
||||
};
|
||||
attributes: {
|
||||
url: Schema.Attribute.String & Schema.Attribute.Required;
|
||||
};
|
||||
}
|
||||
|
||||
export interface HackspaceSpacefed extends Struct.ComponentSchema {
|
||||
collectionName: 'components_hackspace_spacefeds';
|
||||
info: {
|
||||
|
|
@ -153,6 +164,7 @@ declare module '@strapi/strapi' {
|
|||
'hackspace.feed-list': HackspaceFeedList;
|
||||
'hackspace.keymaster': HackspaceKeymaster;
|
||||
'hackspace.location': HackspaceLocation;
|
||||
'hackspace.project': HackspaceProject;
|
||||
'hackspace.spacefed': HackspaceSpacefed;
|
||||
'location.area': LocationArea;
|
||||
'state.state-icon': StateStateIcon;
|
||||
|
|
|
|||
1
types/generated/contentTypes.d.ts
vendored
1
types/generated/contentTypes.d.ts
vendored
|
|
@ -424,6 +424,7 @@ export interface ApiHackspaceHackspace extends Struct.SingleTypeSchema {
|
|||
Schema.Attribute.Private;
|
||||
location: Schema.Attribute.Component<'hackspace.location', false>;
|
||||
logo: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
||||
projects: Schema.Attribute.Component<'hackspace.project', true>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
space: Schema.Attribute.String & Schema.Attribute.Required;
|
||||
spacefed: Schema.Attribute.Component<'hackspace.spacefed', false>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue