Skip to content

Commit

Permalink
263 legge in masse p satelitt og vis p nettside (#320)
Browse files Browse the repository at this point in the history
* add mass to strapi satellite

* compile types, prettier and lint

* fix styling on satellite page

* show mass
  • Loading branch information
Lukas Thrane authored and GitHub committed Apr 18, 2024
1 parent 883c7b2 commit f6be12b
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 55 deletions.
7 changes: 3 additions & 4 deletions backend/src/api/satellite/content-types/satellite/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
"required": true,
"unique": true
},
"celestrakURL": {
"type": "string",
"unique": true
},
"catalogNumberNORAD": {
"type": "string",
"unique": true
Expand Down Expand Up @@ -52,6 +48,9 @@
"type": "uid",
"targetField": "name",
"required": true
},
"massKg": {
"type": "float"
}
}
}
2 changes: 1 addition & 1 deletion backend/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,6 @@ export interface ApiSatelliteSatellite extends Schema.CollectionType {
};
attributes: {
name: Attribute.String & Attribute.Required & Attribute.Unique;
celestrakURL: Attribute.String & Attribute.Unique;
catalogNumberNORAD: Attribute.String & Attribute.Unique;
content: Attribute.Blocks;
previewImage: Attribute.Media;
Expand All @@ -991,6 +990,7 @@ export interface ApiSatelliteSatellite extends Schema.CollectionType {
launchDate: Attribute.DateTime;
slug: Attribute.UID<'api::satellite.satellite', 'name'> &
Attribute.Required;
massKg: Attribute.Float;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/__generated__/gql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f6be12b

Please sign in to comment.