Hackspace: add projects

This commit is contained in:
He4eT 2025-04-01 13:07:38 +02:00
commit ae1b629c86
4 changed files with 32 additions and 0 deletions

View file

@ -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"
} }
} }
} }

View file

@ -0,0 +1,14 @@
{
"collectionName": "components_hackspace_projects",
"info": {
"displayName": "Project",
"icon": "apps"
},
"options": {},
"attributes": {
"url": {
"type": "string",
"required": true
}
}
}

View file

@ -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;

View file

@ -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>;