Skip to content

Commit

Permalink
79 satellite tracking info site and page displaying all satellites fr…
Browse files Browse the repository at this point in the history
…om strapi (#111)

* feat(frontend): ✨ Add sattelites page

* fix(frontend): 🐛 Fix bug with spelling error of satelliteslug

* style(frontend): 💄 Put the satellites on 3 column grid

* fix(frontend): 🐛 fix eslint errors with unused variables

* feat(frontend): ✨ Add previewimage and use satellitename as slug instead of catnr

* feat(frontend): ✨ Add globe to satellite page and flight stats

* fix(frontend): 🐛 fix eslint unused variable error

---------

Co-authored-by: Jakob Grøtan Gregusson <jakobgg@stud.ntnu.no>
  • Loading branch information
2 people authored and GitHub committed Feb 28, 2024
1 parent 54c78b3 commit 5ddb812
Show file tree
Hide file tree
Showing 8 changed files with 261 additions and 15 deletions.
25 changes: 23 additions & 2 deletions backend/src/api/satellite/content-types/satellite/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"pluginOptions": {},
"attributes": {
"catalogNumberNORAD": {
"type": "string"
"type": "string",
"unique": true
},
"projects": {
"type": "relation",
Expand All @@ -22,7 +23,27 @@
"mappedBy": "satellites"
},
"celestrakURL": {
"type": "string"
"type": "string",
"unique": true
},
"content": {
"type": "blocks"
},
"previewImage": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
},
"satelliteName": {
"type": "string",
"required": true,
"unique": true
}
}
}
7 changes: 5 additions & 2 deletions backend/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1011,13 +1011,16 @@ export interface ApiSatelliteSatellite extends Schema.CollectionType {
draftAndPublish: true;
};
attributes: {
catalogNumberNORAD: Attribute.String;
catalogNumberNORAD: Attribute.String & Attribute.Unique;
projects: Attribute.Relation<
'api::satellite.satellite',
'manyToMany',
'api::project.project'
>;
celestrakURL: Attribute.String;
celestrakURL: Attribute.String & Attribute.Unique;
content: Attribute.Blocks;
previewImage: Attribute.Media;
satelliteName: Attribute.String & Attribute.Required & Attribute.Unique;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down
14 changes: 12 additions & 2 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 5ddb812

Please sign in to comment.