mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-05 01:47: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",
|
"type": "component",
|
||||||
"repeatable": false,
|
"repeatable": false,
|
||||||
"component": "hackspace.feed-list"
|
"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 {
|
export interface HackspaceSpacefed extends Struct.ComponentSchema {
|
||||||
collectionName: 'components_hackspace_spacefeds';
|
collectionName: 'components_hackspace_spacefeds';
|
||||||
info: {
|
info: {
|
||||||
|
|
@ -153,6 +164,7 @@ declare module '@strapi/strapi' {
|
||||||
'hackspace.feed-list': HackspaceFeedList;
|
'hackspace.feed-list': HackspaceFeedList;
|
||||||
'hackspace.keymaster': HackspaceKeymaster;
|
'hackspace.keymaster': HackspaceKeymaster;
|
||||||
'hackspace.location': HackspaceLocation;
|
'hackspace.location': HackspaceLocation;
|
||||||
|
'hackspace.project': HackspaceProject;
|
||||||
'hackspace.spacefed': HackspaceSpacefed;
|
'hackspace.spacefed': HackspaceSpacefed;
|
||||||
'location.area': LocationArea;
|
'location.area': LocationArea;
|
||||||
'state.state-icon': StateStateIcon;
|
'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;
|
Schema.Attribute.Private;
|
||||||
location: Schema.Attribute.Component<'hackspace.location', false>;
|
location: Schema.Attribute.Component<'hackspace.location', false>;
|
||||||
logo: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
logo: Schema.Attribute.Media<'images'> & Schema.Attribute.Required;
|
||||||
|
projects: Schema.Attribute.Component<'hackspace.project', true>;
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
publishedAt: Schema.Attribute.DateTime;
|
||||||
space: Schema.Attribute.String & Schema.Attribute.Required;
|
space: Schema.Attribute.String & Schema.Attribute.Required;
|
||||||
spacefed: Schema.Attribute.Component<'hackspace.spacefed', false>;
|
spacefed: Schema.Attribute.Component<'hackspace.spacefed', false>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue