From 22f8a3de86c6082cae9f20e25a35bae77f9ae4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Gr=C3=B8tan=20Gregusson?= <55840686+Jakobgg1243@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:11:57 +0100 Subject: [PATCH] 137 style individual project page 1 (#160) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * style(frontend): :lipstick: Add styling for image text, remove unused pages and add featured satellites * style(frontend): :lipstick: Changed image styling on project page to keep aspect ratio * fix(frontend): :bug: Fixed eslint error with img tag in the navnbar * fix(frontend): :bug: Fixed avatar url paths on blog page * fix(frontend): Fix bug with satellite filter from satelliteName to name --------- Co-authored-by: Jakob Grøtan Gregusson --- frontend/src/__generated__/gql.ts | 32 +- frontend/src/__generated__/graphql.ts | 532 ++---------------- frontend/src/app/(about)/contact/page.tsx | 57 -- frontend/src/app/(about)/partners/page.tsx | 87 --- frontend/src/app/(about)/team/page.tsx | 193 ------- frontend/src/app/(about)/test/page.tsx | 10 - frontend/src/app/blog/[articleSlug]/page.tsx | 3 +- frontend/src/app/blog/page.tsx | 2 +- .../src/app/projects/[projectSlug]/page.tsx | 108 ++-- frontend/src/app/projects/page.tsx | 26 +- .../app/satellites/[satelliteSlug]/page.tsx | 8 +- frontend/src/app/satellites/page.tsx | 6 +- .../src/components/BlockRendererClient.tsx | 74 ++- frontend/src/components/Navbar.tsx | 5 +- .../src/components/map/SatelliteFetcher.tsx | 2 +- 15 files changed, 210 insertions(+), 935 deletions(-) delete mode 100644 frontend/src/app/(about)/contact/page.tsx delete mode 100644 frontend/src/app/(about)/partners/page.tsx delete mode 100644 frontend/src/app/(about)/team/page.tsx delete mode 100644 frontend/src/app/(about)/test/page.tsx diff --git a/frontend/src/__generated__/gql.ts b/frontend/src/__generated__/gql.ts index f775088..e7c02e9 100644 --- a/frontend/src/__generated__/gql.ts +++ b/frontend/src/__generated__/gql.ts @@ -13,17 +13,13 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ * Therefore it is highly recommended to use the babel or swc plugin for production. */ const documents = { - "\nquery GET_PEOPLE {\n people {\n data {\n attributes {\n createdAt\n employeeLink\n name\n profilePicture {\n data {\n attributes {\n alternativeText\n previewUrl\n url\n }\n id\n }\n }\n workTitle\n }\n }\n }\n }\n": types.Get_PeopleDocument, - "\nquery GET_PARTNERS {\n partners {\n data {\n attributes {\n partnerName\n logoUrl\n websiteUrl\n logoImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n": types.Get_PartnersDocument, - "\nquery PhDProjects {\n phDProjects {\n data {\n attributes {\n name\n title\n keywords\n }\n id\n }\n }\n}\n": types.PhDProjectsDocument, - "\nquery People {\n people {\n data {\n id\n attributes {\n name\n workTitle\n employeeLink\n profilePicture {\n data {\n attributes {\n url\n }\n }\n }\n profilePictureURL\n role\n }\n }\n }\n }\n": types.PeopleDocument, "query ArticleWithSlug($articlesFilters: ArticleFiltersInput) {\n articles(filters: $articlesFilters) {\n data {\n attributes {\n author {\n data {\n attributes {\n name\n avatar {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n body\n coverImage {\n data {\n attributes {\n url\n }\n }\n }\n datePublished\n subtitle\n title\n }\n }\n }\n }\n \n ": types.ArticleWithSlugDocument, "\nquery GET_ARTICLES {\n articles(sort: [\"datePublished:desc\"]) {\n data {\n id\n attributes {\n author {\n data {\n attributes {\n name\n avatar {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n title\n datePublished\n body\n coverImage {\n data {\n attributes {\n url\n }\n }\n }\n createdAt\n publishedAt\n slug\n subtitle\n }\n }\n }\n}\n": types.Get_ArticlesDocument, "\nquery MostRecentImages {\n mostRecentImages(sort: [\"publishedAt:desc\"]) {\n data {\n attributes {\n mostRecentImage {\n data {\n attributes {\n url\n }\n }\n }\n satellite {\n data {\n attributes {\n catalogNumberNORAD\n }\n }\n }\n createdAt\n updatedAt\n publishedAt\n }\n }\n }\n}\n\n": types.MostRecentImagesDocument, - "\nquery Projects($projectFilters: ProjectFiltersInput) {\n projects(filters: $projectFilters) {\n data {\n attributes {\n title\n description\n article\n satellites {\n data {\n id\n attributes {\n catalogNumberNORAD\n projects {\n data {\n id\n }\n }\n createdAt\n updatedAt\n publishedAt\n }\n }\n }\n slug\n publishedAt\n coverImage {\n data {\n id\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }": types.ProjectsDocument, + "\nquery Projects($projectFilters: ProjectFiltersInput) {\n projects(filters: $projectFilters) {\n data {\n attributes {\n title\n description\n article\n satellites {\n data {\n id\n attributes {\n name\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n slug\n coverImage {\n data {\n id\n attributes {\n url\n }\n }\n }\n }\n }\n }\n}": types.ProjectsDocument, "\n query GET_PROJECTS {\n projects(sort: [\"publishedAt:desc\"]) {\n data {\n id\n attributes {\n title\n article\n satellites {\n data {\n attributes {\n catalogNumberNORAD\n }\n }\n }\n slug\n coverImage {\n data {\n attributes {\n url\n }\n }\n }\n updatedAt\n publishedAt\n createdAt\n description\n }\n }\n }\n }": types.Get_ProjectsDocument, - "query GET_SATELLITE_INFO($filters: SatelliteFiltersInput) {\n satellites(filters: $filters) {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n content\n satelliteName\n }\n }\n }\n}\n ": types.Get_Satellite_InfoDocument, - "\nquery GET_SATELLITES {\n satellites {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n satelliteName\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n": types.Get_SatellitesDocument, + "query GET_SATELLITE_INFO($filters: SatelliteFiltersInput) {\n satellites(filters: $filters) {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n content\n name\n }\n }\n }\n}\n ": types.Get_Satellite_InfoDocument, + "\nquery GET_SATELLITES {\n satellites {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n name\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n": types.Get_SatellitesDocument, "query Satellites($filters: SatelliteFiltersInput) {\n satellites(filters: $filters) {\n data {\n attributes {\n celestrakURL\n catalogNumberNORAD\n }\n }\n }\n }\n ": types.SatellitesDocument, }; @@ -41,22 +37,6 @@ const documents = { */ export function gql(source: string): unknown; -/** - * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function gql(source: "\nquery GET_PEOPLE {\n people {\n data {\n attributes {\n createdAt\n employeeLink\n name\n profilePicture {\n data {\n attributes {\n alternativeText\n previewUrl\n url\n }\n id\n }\n }\n workTitle\n }\n }\n }\n }\n"): (typeof documents)["\nquery GET_PEOPLE {\n people {\n data {\n attributes {\n createdAt\n employeeLink\n name\n profilePicture {\n data {\n attributes {\n alternativeText\n previewUrl\n url\n }\n id\n }\n }\n workTitle\n }\n }\n }\n }\n"]; -/** - * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function gql(source: "\nquery GET_PARTNERS {\n partners {\n data {\n attributes {\n partnerName\n logoUrl\n websiteUrl\n logoImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n"): (typeof documents)["\nquery GET_PARTNERS {\n partners {\n data {\n attributes {\n partnerName\n logoUrl\n websiteUrl\n logoImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n"]; -/** - * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function gql(source: "\nquery PhDProjects {\n phDProjects {\n data {\n attributes {\n name\n title\n keywords\n }\n id\n }\n }\n}\n"): (typeof documents)["\nquery PhDProjects {\n phDProjects {\n data {\n attributes {\n name\n title\n keywords\n }\n id\n }\n }\n}\n"]; -/** - * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. - */ -export function gql(source: "\nquery People {\n people {\n data {\n id\n attributes {\n name\n workTitle\n employeeLink\n profilePicture {\n data {\n attributes {\n url\n }\n }\n }\n profilePictureURL\n role\n }\n }\n }\n }\n"): (typeof documents)["\nquery People {\n people {\n data {\n id\n attributes {\n name\n workTitle\n employeeLink\n profilePicture {\n data {\n attributes {\n url\n }\n }\n }\n profilePictureURL\n role\n }\n }\n }\n }\n"]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -72,7 +52,7 @@ export function gql(source: "\nquery MostRecentImages {\n mostRecentImages(so /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\nquery Projects($projectFilters: ProjectFiltersInput) {\n projects(filters: $projectFilters) {\n data {\n attributes {\n title\n description\n article\n satellites {\n data {\n id\n attributes {\n catalogNumberNORAD\n projects {\n data {\n id\n }\n }\n createdAt\n updatedAt\n publishedAt\n }\n }\n }\n slug\n publishedAt\n coverImage {\n data {\n id\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }"): (typeof documents)["\nquery Projects($projectFilters: ProjectFiltersInput) {\n projects(filters: $projectFilters) {\n data {\n attributes {\n title\n description\n article\n satellites {\n data {\n id\n attributes {\n catalogNumberNORAD\n projects {\n data {\n id\n }\n }\n createdAt\n updatedAt\n publishedAt\n }\n }\n }\n slug\n publishedAt\n coverImage {\n data {\n id\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }"]; +export function gql(source: "\nquery Projects($projectFilters: ProjectFiltersInput) {\n projects(filters: $projectFilters) {\n data {\n attributes {\n title\n description\n article\n satellites {\n data {\n id\n attributes {\n name\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n slug\n coverImage {\n data {\n id\n attributes {\n url\n }\n }\n }\n }\n }\n }\n}"): (typeof documents)["\nquery Projects($projectFilters: ProjectFiltersInput) {\n projects(filters: $projectFilters) {\n data {\n attributes {\n title\n description\n article\n satellites {\n data {\n id\n attributes {\n name\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n slug\n coverImage {\n data {\n id\n attributes {\n url\n }\n }\n }\n }\n }\n }\n}"]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -80,11 +60,11 @@ export function gql(source: "\n query GET_PROJECTS {\n projects(sort: [\"publ /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "query GET_SATELLITE_INFO($filters: SatelliteFiltersInput) {\n satellites(filters: $filters) {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n content\n satelliteName\n }\n }\n }\n}\n "): (typeof documents)["query GET_SATELLITE_INFO($filters: SatelliteFiltersInput) {\n satellites(filters: $filters) {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n content\n satelliteName\n }\n }\n }\n}\n "]; +export function gql(source: "query GET_SATELLITE_INFO($filters: SatelliteFiltersInput) {\n satellites(filters: $filters) {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n content\n name\n }\n }\n }\n}\n "): (typeof documents)["query GET_SATELLITE_INFO($filters: SatelliteFiltersInput) {\n satellites(filters: $filters) {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n content\n name\n }\n }\n }\n}\n "]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function gql(source: "\nquery GET_SATELLITES {\n satellites {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n satelliteName\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n"): (typeof documents)["\nquery GET_SATELLITES {\n satellites {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n satelliteName\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n"]; +export function gql(source: "\nquery GET_SATELLITES {\n satellites {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n name\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n"): (typeof documents)["\nquery GET_SATELLITES {\n satellites {\n data {\n id\n attributes {\n celestrakURL\n catalogNumberNORAD\n name\n previewImage {\n data {\n attributes {\n url\n }\n }\n }\n }\n }\n }\n }\n"]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/frontend/src/__generated__/graphql.ts b/frontend/src/__generated__/graphql.ts index 14fa3f1..1cf554e 100644 --- a/frontend/src/__generated__/graphql.ts +++ b/frontend/src/__generated__/graphql.ts @@ -27,14 +27,14 @@ export type Scalars = { export type Article = { __typename?: 'Article'; author?: Maybe; - body?: Maybe; + body: Scalars['JSON']['output']; coverImage?: Maybe; createdAt?: Maybe; - datePublished?: Maybe; + datePublished: Scalars['Date']['output']; publishedAt?: Maybe; - slug?: Maybe; + slug: Scalars['String']['output']; subtitle?: Maybe; - title?: Maybe; + title: Scalars['String']['output']; updatedAt?: Maybe; }; @@ -82,19 +82,26 @@ export type ArticleInput = { title?: InputMaybe; }; +export type ArticleRelationResponseCollection = { + __typename?: 'ArticleRelationResponseCollection'; + data: Array; +}; + export type Author = { __typename?: 'Author'; - avatar?: Maybe; + articles?: Maybe; + avatar?: Maybe; createdAt?: Maybe; - name?: Maybe; + name: Scalars['String']['output']; publishedAt?: Maybe; updatedAt?: Maybe; }; -export type AuthorAvatarArgs = { - filters?: InputMaybe; +export type AuthorArticlesArgs = { + filters?: InputMaybe; pagination?: InputMaybe; + publicationState?: InputMaybe; sort?: InputMaybe>>; }; @@ -117,6 +124,7 @@ export type AuthorEntityResponseCollection = { export type AuthorFiltersInput = { and?: InputMaybe>>; + articles?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; name?: InputMaybe; @@ -127,7 +135,8 @@ export type AuthorFiltersInput = { }; export type AuthorInput = { - avatar?: InputMaybe>>; + articles?: InputMaybe>>; + avatar?: InputMaybe; name?: InputMaybe; publishedAt?: InputMaybe; }; @@ -157,110 +166,6 @@ export type BooleanFilterInput = { startsWith?: InputMaybe; }; -export type ContentReleasesRelease = { - __typename?: 'ContentReleasesRelease'; - actions?: Maybe; - createdAt?: Maybe; - name: Scalars['String']['output']; - releasedAt?: Maybe; - updatedAt?: Maybe; -}; - - -export type ContentReleasesReleaseActionsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ContentReleasesReleaseAction = { - __typename?: 'ContentReleasesReleaseAction'; - contentType: Scalars['String']['output']; - createdAt?: Maybe; - entry?: Maybe; - locale?: Maybe; - release?: Maybe; - type: Enum_Contentreleasesreleaseaction_Type; - updatedAt?: Maybe; -}; - -export type ContentReleasesReleaseActionEntity = { - __typename?: 'ContentReleasesReleaseActionEntity'; - attributes?: Maybe; - id?: Maybe; -}; - -export type ContentReleasesReleaseActionEntityResponse = { - __typename?: 'ContentReleasesReleaseActionEntityResponse'; - data?: Maybe; -}; - -export type ContentReleasesReleaseActionEntityResponseCollection = { - __typename?: 'ContentReleasesReleaseActionEntityResponseCollection'; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type ContentReleasesReleaseActionFiltersInput = { - and?: InputMaybe>>; - contentType?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - locale?: InputMaybe; - not?: InputMaybe; - or?: InputMaybe>>; - release?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type ContentReleasesReleaseActionInput = { - contentType?: InputMaybe; - locale?: InputMaybe; - release?: InputMaybe; - type?: InputMaybe; -}; - -export type ContentReleasesReleaseActionRelationResponseCollection = { - __typename?: 'ContentReleasesReleaseActionRelationResponseCollection'; - data: Array; -}; - -export type ContentReleasesReleaseEntity = { - __typename?: 'ContentReleasesReleaseEntity'; - attributes?: Maybe; - id?: Maybe; -}; - -export type ContentReleasesReleaseEntityResponse = { - __typename?: 'ContentReleasesReleaseEntityResponse'; - data?: Maybe; -}; - -export type ContentReleasesReleaseEntityResponseCollection = { - __typename?: 'ContentReleasesReleaseEntityResponseCollection'; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type ContentReleasesReleaseFiltersInput = { - actions?: InputMaybe; - and?: InputMaybe>>; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - not?: InputMaybe; - or?: InputMaybe>>; - releasedAt?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type ContentReleasesReleaseInput = { - actions?: InputMaybe>>; - name?: InputMaybe; - releasedAt?: InputMaybe; -}; - export type DateFilterInput = { and?: InputMaybe>>; between?: InputMaybe>>; @@ -311,18 +216,6 @@ export type DateTimeFilterInput = { startsWith?: InputMaybe; }; -export enum Enum_Contentreleasesreleaseaction_Type { - Publish = 'publish', - Unpublish = 'unpublish' -} - -export enum Enum_Person_Role { - ContactUs = 'Contact_us', - Engineers = 'Engineers', - PhDCandidates = 'PhD_candidates', - Researchers = 'Researchers' -} - export type FileInfoInput = { alternativeText?: InputMaybe; caption?: InputMaybe; @@ -354,7 +247,7 @@ export type FloatFilterInput = { startsWith?: InputMaybe; }; -export type GenericMorph = Article | Author | ContentReleasesRelease | ContentReleasesReleaseAction | I18NLocale | MostRecentImage | Partner | Person | PhDProject | Project | Satellite | UploadFile | UploadFolder | UsersPermissionsPermission | UsersPermissionsRole | UsersPermissionsUser; +export type GenericMorph = Article | Author | I18NLocale | MostRecentImage | Project | Satellite | UploadFile | UploadFolder | UsersPermissionsPermission | UsersPermissionsRole | UsersPermissionsUser; export type I18NLocale = { __typename?: 'I18NLocale'; @@ -510,18 +403,18 @@ export type MostRecentImageInput = { satellite?: InputMaybe; }; +export type MostRecentImageRelationResponseCollection = { + __typename?: 'MostRecentImageRelationResponseCollection'; + data: Array; +}; + export type Mutation = { __typename?: 'Mutation'; /** Change user password. Confirm with the current password. */ changePassword?: Maybe; createArticle?: Maybe; createAuthor?: Maybe; - createContentReleasesRelease?: Maybe; - createContentReleasesReleaseAction?: Maybe; createMostRecentImage?: Maybe; - createPartner?: Maybe; - createPerson?: Maybe; - createPhDProject?: Maybe; createProject?: Maybe; createSatellite?: Maybe; createUploadFile?: Maybe; @@ -532,12 +425,7 @@ export type Mutation = { createUsersPermissionsUser: UsersPermissionsUserEntityResponse; deleteArticle?: Maybe; deleteAuthor?: Maybe; - deleteContentReleasesRelease?: Maybe; - deleteContentReleasesReleaseAction?: Maybe; deleteMostRecentImage?: Maybe; - deletePartner?: Maybe; - deletePerson?: Maybe; - deletePhDProject?: Maybe; deleteProject?: Maybe; deleteSatellite?: Maybe; deleteUploadFile?: Maybe; @@ -559,13 +447,8 @@ export type Mutation = { resetPassword?: Maybe; updateArticle?: Maybe; updateAuthor?: Maybe; - updateContentReleasesRelease?: Maybe; - updateContentReleasesReleaseAction?: Maybe; updateFileInfo: UploadFileEntityResponse; updateMostRecentImage?: Maybe; - updatePartner?: Maybe; - updatePerson?: Maybe; - updatePhDProject?: Maybe; updateProject?: Maybe; updateSatellite?: Maybe; updateUploadFile?: Maybe; @@ -595,36 +478,11 @@ export type MutationCreateAuthorArgs = { }; -export type MutationCreateContentReleasesReleaseArgs = { - data: ContentReleasesReleaseInput; -}; - - -export type MutationCreateContentReleasesReleaseActionArgs = { - data: ContentReleasesReleaseActionInput; -}; - - export type MutationCreateMostRecentImageArgs = { data: MostRecentImageInput; }; -export type MutationCreatePartnerArgs = { - data: PartnerInput; -}; - - -export type MutationCreatePersonArgs = { - data: PersonInput; -}; - - -export type MutationCreatePhDProjectArgs = { - data: PhDProjectInput; -}; - - export type MutationCreateProjectArgs = { data: ProjectInput; }; @@ -665,36 +523,11 @@ export type MutationDeleteAuthorArgs = { }; -export type MutationDeleteContentReleasesReleaseArgs = { - id: Scalars['ID']['input']; -}; - - -export type MutationDeleteContentReleasesReleaseActionArgs = { - id: Scalars['ID']['input']; -}; - - export type MutationDeleteMostRecentImageArgs = { id: Scalars['ID']['input']; }; -export type MutationDeletePartnerArgs = { - id: Scalars['ID']['input']; -}; - - -export type MutationDeletePersonArgs = { - id: Scalars['ID']['input']; -}; - - -export type MutationDeletePhDProjectArgs = { - id: Scalars['ID']['input']; -}; - - export type MutationDeleteProjectArgs = { id: Scalars['ID']['input']; }; @@ -777,18 +610,6 @@ export type MutationUpdateAuthorArgs = { }; -export type MutationUpdateContentReleasesReleaseArgs = { - data: ContentReleasesReleaseInput; - id: Scalars['ID']['input']; -}; - - -export type MutationUpdateContentReleasesReleaseActionArgs = { - data: ContentReleasesReleaseActionInput; - id: Scalars['ID']['input']; -}; - - export type MutationUpdateFileInfoArgs = { id: Scalars['ID']['input']; info?: InputMaybe; @@ -801,24 +622,6 @@ export type MutationUpdateMostRecentImageArgs = { }; -export type MutationUpdatePartnerArgs = { - data: PartnerInput; - id: Scalars['ID']['input']; -}; - - -export type MutationUpdatePersonArgs = { - data: PersonInput; - id: Scalars['ID']['input']; -}; - - -export type MutationUpdatePhDProjectArgs = { - data: PhDProjectInput; - id: Scalars['ID']['input']; -}; - - export type MutationUpdateProjectArgs = { data: ProjectInput; id: Scalars['ID']['input']; @@ -878,157 +681,6 @@ export type PaginationArg = { start?: InputMaybe; }; -export type Partner = { - __typename?: 'Partner'; - createdAt?: Maybe; - logoImage?: Maybe; - logoUrl?: Maybe; - partnerName: Scalars['String']['output']; - publishedAt?: Maybe; - updatedAt?: Maybe; - websiteUrl?: Maybe; -}; - -export type PartnerEntity = { - __typename?: 'PartnerEntity'; - attributes?: Maybe; - id?: Maybe; -}; - -export type PartnerEntityResponse = { - __typename?: 'PartnerEntityResponse'; - data?: Maybe; -}; - -export type PartnerEntityResponseCollection = { - __typename?: 'PartnerEntityResponseCollection'; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type PartnerFiltersInput = { - and?: InputMaybe>>; - createdAt?: InputMaybe; - id?: InputMaybe; - logoUrl?: InputMaybe; - not?: InputMaybe; - or?: InputMaybe>>; - partnerName?: InputMaybe; - publishedAt?: InputMaybe; - updatedAt?: InputMaybe; - websiteUrl?: InputMaybe; -}; - -export type PartnerInput = { - logoImage?: InputMaybe; - logoUrl?: InputMaybe; - partnerName?: InputMaybe; - publishedAt?: InputMaybe; - websiteUrl?: InputMaybe; -}; - -export type Person = { - __typename?: 'Person'; - createdAt?: Maybe; - employeeLink?: Maybe; - name: Scalars['String']['output']; - profilePicture?: Maybe; - profilePictureURL?: Maybe; - publishedAt?: Maybe; - role: Enum_Person_Role; - updatedAt?: Maybe; - workTitle?: Maybe; -}; - -export type PersonEntity = { - __typename?: 'PersonEntity'; - attributes?: Maybe; - id?: Maybe; -}; - -export type PersonEntityResponse = { - __typename?: 'PersonEntityResponse'; - data?: Maybe; -}; - -export type PersonEntityResponseCollection = { - __typename?: 'PersonEntityResponseCollection'; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type PersonFiltersInput = { - and?: InputMaybe>>; - createdAt?: InputMaybe; - employeeLink?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - not?: InputMaybe; - or?: InputMaybe>>; - profilePictureURL?: InputMaybe; - publishedAt?: InputMaybe; - role?: InputMaybe; - updatedAt?: InputMaybe; - workTitle?: InputMaybe; -}; - -export type PersonInput = { - employeeLink?: InputMaybe; - name?: InputMaybe; - profilePicture?: InputMaybe; - profilePictureURL?: InputMaybe; - publishedAt?: InputMaybe; - role?: InputMaybe; - workTitle?: InputMaybe; -}; - -export type PhDProject = { - __typename?: 'PhDProject'; - createdAt?: Maybe; - keywords?: Maybe; - name: Scalars['String']['output']; - publishedAt?: Maybe; - title?: Maybe; - updatedAt?: Maybe; -}; - -export type PhDProjectEntity = { - __typename?: 'PhDProjectEntity'; - attributes?: Maybe; - id?: Maybe; -}; - -export type PhDProjectEntityResponse = { - __typename?: 'PhDProjectEntityResponse'; - data?: Maybe; -}; - -export type PhDProjectEntityResponseCollection = { - __typename?: 'PhDProjectEntityResponseCollection'; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type PhDProjectFiltersInput = { - and?: InputMaybe>>; - createdAt?: InputMaybe; - id?: InputMaybe; - keywords?: InputMaybe; - name?: InputMaybe; - not?: InputMaybe; - or?: InputMaybe>>; - publishedAt?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type PhDProjectInput = { - keywords?: InputMaybe; - name?: InputMaybe; - publishedAt?: InputMaybe; - title?: InputMaybe; -}; - export type Project = { __typename?: 'Project'; article?: Maybe; @@ -1037,8 +689,8 @@ export type Project = { description?: Maybe; publishedAt?: Maybe; satellites?: Maybe; - slug?: Maybe; - title?: Maybe; + slug: Scalars['String']['output']; + title: Scalars['String']['output']; updatedAt?: Maybe; }; @@ -1108,21 +760,11 @@ export type Query = { articles?: Maybe; author?: Maybe; authors?: Maybe; - contentReleasesRelease?: Maybe; - contentReleasesReleaseAction?: Maybe; - contentReleasesReleaseActions?: Maybe; - contentReleasesReleases?: Maybe; i18NLocale?: Maybe; i18NLocales?: Maybe; me?: Maybe; mostRecentImage?: Maybe; mostRecentImages?: Maybe; - partner?: Maybe; - partners?: Maybe; - people?: Maybe; - person?: Maybe; - phDProject?: Maybe; - phDProjects?: Maybe; project?: Maybe; projects?: Maybe; satellite?: Maybe; @@ -1164,30 +806,6 @@ export type QueryAuthorsArgs = { }; -export type QueryContentReleasesReleaseArgs = { - id?: InputMaybe; -}; - - -export type QueryContentReleasesReleaseActionArgs = { - id?: InputMaybe; -}; - - -export type QueryContentReleasesReleaseActionsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - - -export type QueryContentReleasesReleasesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - - export type QueryI18NLocaleArgs = { id?: InputMaybe; }; @@ -1213,45 +831,6 @@ export type QueryMostRecentImagesArgs = { }; -export type QueryPartnerArgs = { - id?: InputMaybe; -}; - - -export type QueryPartnersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - publicationState?: InputMaybe; - sort?: InputMaybe>>; -}; - - -export type QueryPeopleArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - publicationState?: InputMaybe; - sort?: InputMaybe>>; -}; - - -export type QueryPersonArgs = { - id?: InputMaybe; -}; - - -export type QueryPhDProjectArgs = { - id?: InputMaybe; -}; - - -export type QueryPhDProjectsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - publicationState?: InputMaybe; - sort?: InputMaybe>>; -}; - - export type QueryProjectArgs = { id?: InputMaybe; }; @@ -1336,14 +915,23 @@ export type Satellite = { celestrakURL?: Maybe; content?: Maybe; createdAt?: Maybe; + most_recent_images?: Maybe; + name: Scalars['String']['output']; previewImage?: Maybe; projects?: Maybe; publishedAt?: Maybe; - satelliteName: Scalars['String']['output']; updatedAt?: Maybe; }; +export type SatelliteMost_Recent_ImagesArgs = { + filters?: InputMaybe; + pagination?: InputMaybe; + publicationState?: InputMaybe; + sort?: InputMaybe>>; +}; + + export type SatelliteProjectsArgs = { filters?: InputMaybe; pagination?: InputMaybe; @@ -1375,11 +963,12 @@ export type SatelliteFiltersInput = { content?: InputMaybe; createdAt?: InputMaybe; id?: InputMaybe; + most_recent_images?: InputMaybe; + name?: InputMaybe; not?: InputMaybe; or?: InputMaybe>>; projects?: InputMaybe; publishedAt?: InputMaybe; - satelliteName?: InputMaybe; updatedAt?: InputMaybe; }; @@ -1387,10 +976,11 @@ export type SatelliteInput = { catalogNumberNORAD?: InputMaybe; celestrakURL?: InputMaybe; content?: InputMaybe; + most_recent_images?: InputMaybe>>; + name?: InputMaybe; previewImage?: InputMaybe; projects?: InputMaybe>>; publishedAt?: InputMaybe; - satelliteName?: InputMaybe; }; export type SatelliteRelationResponseCollection = { @@ -1796,37 +1386,17 @@ export type UsersPermissionsUserRelationResponseCollection = { data: Array; }; -export type Get_PeopleQueryVariables = Exact<{ [key: string]: never; }>; - - -export type Get_PeopleQuery = { __typename?: 'Query', people?: { __typename?: 'PersonEntityResponseCollection', data: Array<{ __typename?: 'PersonEntity', attributes?: { __typename?: 'Person', createdAt?: any | null, employeeLink?: string | null, name: string, workTitle?: string | null, profilePicture?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', id?: string | null, attributes?: { __typename?: 'UploadFile', alternativeText?: string | null, previewUrl?: string | null, url: string } | null } | null } | null } | null }> } | null }; - -export type Get_PartnersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type Get_PartnersQuery = { __typename?: 'Query', partners?: { __typename?: 'PartnerEntityResponseCollection', data: Array<{ __typename?: 'PartnerEntity', attributes?: { __typename?: 'Partner', partnerName: string, logoUrl?: string | null, websiteUrl?: string | null, logoImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; - -export type PhDProjectsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type PhDProjectsQuery = { __typename?: 'Query', phDProjects?: { __typename?: 'PhDProjectEntityResponseCollection', data: Array<{ __typename?: 'PhDProjectEntity', id?: string | null, attributes?: { __typename?: 'PhDProject', name: string, title?: string | null, keywords?: string | null } | null }> } | null }; - -export type PeopleQueryVariables = Exact<{ [key: string]: never; }>; - - -export type PeopleQuery = { __typename?: 'Query', people?: { __typename?: 'PersonEntityResponseCollection', data: Array<{ __typename?: 'PersonEntity', id?: string | null, attributes?: { __typename?: 'Person', name: string, workTitle?: string | null, employeeLink?: string | null, profilePictureURL?: string | null, role: Enum_Person_Role, profilePicture?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; - export type ArticleWithSlugQueryVariables = Exact<{ articlesFilters?: InputMaybe; }>; -export type ArticleWithSlugQuery = { __typename?: 'Query', articles?: { __typename?: 'ArticleEntityResponseCollection', data: Array<{ __typename?: 'ArticleEntity', attributes?: { __typename?: 'Article', body?: any | null, datePublished?: any | null, subtitle?: string | null, title?: string | null, author?: { __typename?: 'AuthorEntityResponse', data?: { __typename?: 'AuthorEntity', attributes?: { __typename?: 'Author', name?: string | null, avatar?: { __typename?: 'UploadFileRelationResponseCollection', data: Array<{ __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null }> } | null } | null } | null } | null, coverImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; +export type ArticleWithSlugQuery = { __typename?: 'Query', articles?: { __typename?: 'ArticleEntityResponseCollection', data: Array<{ __typename?: 'ArticleEntity', attributes?: { __typename?: 'Article', body: any, datePublished: any, subtitle?: string | null, title: string, author?: { __typename?: 'AuthorEntityResponse', data?: { __typename?: 'AuthorEntity', attributes?: { __typename?: 'Author', name: string, avatar?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null } | null } | null, coverImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; export type Get_ArticlesQueryVariables = Exact<{ [key: string]: never; }>; -export type Get_ArticlesQuery = { __typename?: 'Query', articles?: { __typename?: 'ArticleEntityResponseCollection', data: Array<{ __typename?: 'ArticleEntity', id?: string | null, attributes?: { __typename?: 'Article', title?: string | null, datePublished?: any | null, body?: any | null, createdAt?: any | null, publishedAt?: any | null, slug?: string | null, subtitle?: string | null, author?: { __typename?: 'AuthorEntityResponse', data?: { __typename?: 'AuthorEntity', attributes?: { __typename?: 'Author', name?: string | null, avatar?: { __typename?: 'UploadFileRelationResponseCollection', data: Array<{ __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null }> } | null } | null } | null } | null, coverImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; +export type Get_ArticlesQuery = { __typename?: 'Query', articles?: { __typename?: 'ArticleEntityResponseCollection', data: Array<{ __typename?: 'ArticleEntity', id?: string | null, attributes?: { __typename?: 'Article', title: string, datePublished: any, body: any, createdAt?: any | null, publishedAt?: any | null, slug: string, subtitle?: string | null, author?: { __typename?: 'AuthorEntityResponse', data?: { __typename?: 'AuthorEntity', attributes?: { __typename?: 'Author', name: string, avatar?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null } | null } | null, coverImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; export type MostRecentImagesQueryVariables = Exact<{ [key: string]: never; }>; @@ -1838,24 +1408,24 @@ export type ProjectsQueryVariables = Exact<{ }>; -export type ProjectsQuery = { __typename?: 'Query', projects?: { __typename?: 'ProjectEntityResponseCollection', data: Array<{ __typename?: 'ProjectEntity', attributes?: { __typename?: 'Project', title?: string | null, description?: string | null, article?: any | null, slug?: string | null, publishedAt?: any | null, satellites?: { __typename?: 'SatelliteRelationResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', id?: string | null, attributes?: { __typename?: 'Satellite', catalogNumberNORAD?: string | null, createdAt?: any | null, updatedAt?: any | null, publishedAt?: any | null, projects?: { __typename?: 'ProjectRelationResponseCollection', data: Array<{ __typename?: 'ProjectEntity', id?: string | null }> } | null } | null }> } | null, coverImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', id?: string | null, attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; +export type ProjectsQuery = { __typename?: 'Query', projects?: { __typename?: 'ProjectEntityResponseCollection', data: Array<{ __typename?: 'ProjectEntity', attributes?: { __typename?: 'Project', title: string, description?: string | null, article?: any | null, slug: string, satellites?: { __typename?: 'SatelliteRelationResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', id?: string | null, attributes?: { __typename?: 'Satellite', name: string, previewImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null, coverImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', id?: string | null, attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; export type Get_ProjectsQueryVariables = Exact<{ [key: string]: never; }>; -export type Get_ProjectsQuery = { __typename?: 'Query', projects?: { __typename?: 'ProjectEntityResponseCollection', data: Array<{ __typename?: 'ProjectEntity', id?: string | null, attributes?: { __typename?: 'Project', title?: string | null, article?: any | null, slug?: string | null, updatedAt?: any | null, publishedAt?: any | null, createdAt?: any | null, description?: string | null, satellites?: { __typename?: 'SatelliteRelationResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', attributes?: { __typename?: 'Satellite', catalogNumberNORAD?: string | null } | null }> } | null, coverImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; +export type Get_ProjectsQuery = { __typename?: 'Query', projects?: { __typename?: 'ProjectEntityResponseCollection', data: Array<{ __typename?: 'ProjectEntity', id?: string | null, attributes?: { __typename?: 'Project', title: string, article?: any | null, slug: string, updatedAt?: any | null, publishedAt?: any | null, createdAt?: any | null, description?: string | null, satellites?: { __typename?: 'SatelliteRelationResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', attributes?: { __typename?: 'Satellite', catalogNumberNORAD?: string | null } | null }> } | null, coverImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; export type Get_Satellite_InfoQueryVariables = Exact<{ filters?: InputMaybe; }>; -export type Get_Satellite_InfoQuery = { __typename?: 'Query', satellites?: { __typename?: 'SatelliteEntityResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', id?: string | null, attributes?: { __typename?: 'Satellite', celestrakURL?: string | null, catalogNumberNORAD?: string | null, content?: any | null, satelliteName: string } | null }> } | null }; +export type Get_Satellite_InfoQuery = { __typename?: 'Query', satellites?: { __typename?: 'SatelliteEntityResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', id?: string | null, attributes?: { __typename?: 'Satellite', celestrakURL?: string | null, catalogNumberNORAD?: string | null, content?: any | null, name: string } | null }> } | null }; export type Get_SatellitesQueryVariables = Exact<{ [key: string]: never; }>; -export type Get_SatellitesQuery = { __typename?: 'Query', satellites?: { __typename?: 'SatelliteEntityResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', id?: string | null, attributes?: { __typename?: 'Satellite', celestrakURL?: string | null, catalogNumberNORAD?: string | null, satelliteName: string, previewImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; +export type Get_SatellitesQuery = { __typename?: 'Query', satellites?: { __typename?: 'SatelliteEntityResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', id?: string | null, attributes?: { __typename?: 'Satellite', celestrakURL?: string | null, catalogNumberNORAD?: string | null, name: string, previewImage?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', url: string } | null } | null } | null } | null }> } | null }; export type SatellitesQueryVariables = Exact<{ filters?: InputMaybe; @@ -1865,15 +1435,11 @@ export type SatellitesQueryVariables = Exact<{ export type SatellitesQuery = { __typename?: 'Query', satellites?: { __typename?: 'SatelliteEntityResponseCollection', data: Array<{ __typename?: 'SatelliteEntity', attributes?: { __typename?: 'Satellite', celestrakURL?: string | null, catalogNumberNORAD?: string | null } | null }> } | null }; -export const Get_PeopleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GET_PEOPLE"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"people"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"employeeLink"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"profilePicture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"alternativeText"}},{"kind":"Field","name":{"kind":"Name","value":"previewUrl"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"workTitle"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const Get_PartnersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GET_PARTNERS"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"partners"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"partnerName"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}},{"kind":"Field","name":{"kind":"Name","value":"logoImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const PhDProjectsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"PhDProjects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"phDProjects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"keywords"}}]}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode; -export const PeopleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"People"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"people"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"workTitle"}},{"kind":"Field","name":{"kind":"Name","value":"employeeLink"}},{"kind":"Field","name":{"kind":"Name","value":"profilePicture"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"profilePictureURL"}},{"kind":"Field","name":{"kind":"Name","value":"role"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const ArticleWithSlugDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ArticleWithSlug"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"articlesFilters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ArticleFiltersInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"articles"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"articlesFilters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"body"}},{"kind":"Field","name":{"kind":"Name","value":"coverImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"datePublished"}},{"kind":"Field","name":{"kind":"Name","value":"subtitle"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const Get_ArticlesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GET_ARTICLES"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"articles"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"sort"},"value":{"kind":"ListValue","values":[{"kind":"StringValue","value":"datePublished:desc","block":false}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"avatar"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"datePublished"}},{"kind":"Field","name":{"kind":"Name","value":"body"}},{"kind":"Field","name":{"kind":"Name","value":"coverImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"subtitle"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const MostRecentImagesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MostRecentImages"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mostRecentImages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"sort"},"value":{"kind":"ListValue","values":[{"kind":"StringValue","value":"publishedAt:desc","block":false}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mostRecentImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"satellite"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"catalogNumberNORAD"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const ProjectsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Projects"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"projectFilters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ProjectFiltersInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"projects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"projectFilters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"article"}},{"kind":"Field","name":{"kind":"Name","value":"satellites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"catalogNumberNORAD"}},{"kind":"Field","name":{"kind":"Name","value":"projects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"coverImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const ProjectsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Projects"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"projectFilters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ProjectFiltersInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"projects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"projectFilters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"article"}},{"kind":"Field","name":{"kind":"Name","value":"satellites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"previewImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"coverImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const Get_ProjectsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GET_PROJECTS"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"projects"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"sort"},"value":{"kind":"ListValue","values":[{"kind":"StringValue","value":"publishedAt:desc","block":false}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"article"}},{"kind":"Field","name":{"kind":"Name","value":"satellites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"catalogNumberNORAD"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"coverImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const Get_Satellite_InfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GET_SATELLITE_INFO"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"SatelliteFiltersInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"satellites"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"celestrakURL"}},{"kind":"Field","name":{"kind":"Name","value":"catalogNumberNORAD"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"satelliteName"}}]}}]}}]}}]}}]} as unknown as DocumentNode; -export const Get_SatellitesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GET_SATELLITES"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"satellites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"celestrakURL"}},{"kind":"Field","name":{"kind":"Name","value":"catalogNumberNORAD"}},{"kind":"Field","name":{"kind":"Name","value":"satelliteName"}},{"kind":"Field","name":{"kind":"Name","value":"previewImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const Get_Satellite_InfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GET_SATELLITE_INFO"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"SatelliteFiltersInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"satellites"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"celestrakURL"}},{"kind":"Field","name":{"kind":"Name","value":"catalogNumberNORAD"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const Get_SatellitesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GET_SATELLITES"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"satellites"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"celestrakURL"}},{"kind":"Field","name":{"kind":"Name","value":"catalogNumberNORAD"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"previewImage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const SatellitesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Satellites"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"SatelliteFiltersInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"satellites"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"attributes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"celestrakURL"}},{"kind":"Field","name":{"kind":"Name","value":"catalogNumberNORAD"}}]}}]}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/frontend/src/app/(about)/contact/page.tsx b/frontend/src/app/(about)/contact/page.tsx deleted file mode 100644 index 824713b..0000000 --- a/frontend/src/app/(about)/contact/page.tsx +++ /dev/null @@ -1,57 +0,0 @@ -export const runtime = "edge"; -import { ContactCard } from "@/components/ContactCard"; -import { getClient } from "@/lib/ApolloClient"; -import { gql } from "@/__generated__/gql"; - -const GET_PEOPLE = gql(` -query GET_PEOPLE { - people { - data { - attributes { - createdAt - employeeLink - name - profilePicture { - data { - attributes { - alternativeText - previewUrl - url - } - id - } - } - workTitle - } - } - } - } -`); - -export default async function ContactPage() { - const people = await getClient().query({ - query: GET_PEOPLE, - }); - - const content = people?.data?.people?.data ?? []; - - return ( -
-
- {content.map((person, index) => ( - - ))} -
-
- ); -} diff --git a/frontend/src/app/(about)/partners/page.tsx b/frontend/src/app/(about)/partners/page.tsx deleted file mode 100644 index 0d8dbe6..0000000 --- a/frontend/src/app/(about)/partners/page.tsx +++ /dev/null @@ -1,87 +0,0 @@ -export const runtime = "edge"; -import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; -import Image from "next/image"; -import Link from "next/link"; -import { getClient } from "@/lib/ApolloClient"; -import { gql } from "@/__generated__/gql"; -const HOST_URL = process.env.HOST_URL as string; -const GET_PARTNERS = gql(` -query GET_PARTNERS { - partners { - data { - attributes { - partnerName - logoUrl - websiteUrl - logoImage { - data { - attributes { - url - } - } - } - } - } - } - } -`); - -export default async function PartnersPage() { - const graphqlData = await getClient().query({ - query: GET_PARTNERS, - }); - - const partnersData = graphqlData?.data?.partners?.data || []; - - if (partnersData.length === 0) { - return
There are no partners to show.
; - } - - return ( -
-

- Partners and Collaborators -

- {partnersData.map((partner) => { - let logoUrl = partner.attributes?.logoUrl || ""; - if (partner.attributes?.logoImage?.data?.attributes?.url) { - logoUrl = - HOST_URL + - partner.attributes.logoImage.data.attributes.url; - } - const websiteUrl = partner.attributes?.websiteUrl || ""; - const partnerName = partner.attributes?.partnerName || ""; - - return ( - - - - -

{partnerName}

-
-
- - {logoUrl !== "" ? ( - {partnerName} - ) : ( -

No Logo

- )} -
-
- - ); - })} -
- ); -} diff --git a/frontend/src/app/(about)/team/page.tsx b/frontend/src/app/(about)/team/page.tsx deleted file mode 100644 index c9586ff..0000000 --- a/frontend/src/app/(about)/team/page.tsx +++ /dev/null @@ -1,193 +0,0 @@ -export const runtime = "edge"; -import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; -import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; -import Link from "next/link"; -import { getClient } from "@/lib/ApolloClient"; -import { gql } from "@/__generated__/gql"; - -import { - Table, - TableBody, - TableCaption, - TableCell, - TableHead, - TableHeader, - TableRow, -} from "@/components/ui/table"; - -const GET_PROJECTS = gql(` -query PhDProjects { - phDProjects { - data { - attributes { - name - title - keywords - } - id - } - } -} -`); - -const GET_PEOPLE = gql(` -query People { - people { - data { - id - attributes { - name - workTitle - employeeLink - profilePicture { - data { - attributes { - url - } - } - } - profilePictureURL - role - } - } - } - } -`); - -export default async function TeamPage() { - const graphqlData = await getClient().query({ - query: GET_PROJECTS, - }); - - const projectsData = graphqlData?.data?.phDProjects?.data || []; - - const graphqlPeopleData = await getClient().query({ - query: GET_PEOPLE, - }); - - const peopleData = graphqlPeopleData?.data?.people?.data || []; - - const filterPeopleByRole = (role: string) => { - return peopleData.filter( - (person) => person.attributes?.role.replace("_", " ") === role, - ); - }; - return ( -
- {peopleData.length == 0 ? ( -
There are no team members to show.
- ) : ( -
-

- MEET THE TEAM -

- {[ - "Researchers", - "PhD candidates", - "Engineers", - "Contact us", - ].map((role, index) => ( -
- {" "} - {/* Add margin bottom */} -

- {role} -

{" "} - {/* Increase margin bottom and adjust font size */} -
- {filterPeopleByRole(role || "").map( - (person, index) => { - const name = - person.attributes?.name || ""; - const employeeLink = - person.attributes?.employeeLink || - ""; - const workTitle = - person.attributes?.workTitle || ""; - const profilePictureURL = - person.attributes - ?.profilePictureURL || ""; - - return ( - - - - -

{name}

-
-
- - - - - {name} - - -
-

- {workTitle} -

-
-
-
- - ); - }, - )} -
-
- ))} -
- )} - {projectsData.length == 0 ? ( -
There are no projects to show.
- ) : ( -
-

- Ongoing PhD Projects -

- - Ongoing PhD Projects - - - Name - - Title (PhD title) - - Keywords - - - - {projectsData.map((project, index) => { - const name = project.attributes?.name || ""; - const title = project.attributes?.title || ""; - const keywords = - project.attributes?.keywords || ""; - return ( - - - {name} - - - {title} - - {keywords} - - ); - })} - -
-
- )} -
- ); -} diff --git a/frontend/src/app/(about)/test/page.tsx b/frontend/src/app/(about)/test/page.tsx deleted file mode 100644 index 5de4cf9..0000000 --- a/frontend/src/app/(about)/test/page.tsx +++ /dev/null @@ -1,10 +0,0 @@ -"use client"; -import SolarDataComponent from "@/components/SolarActivity/SolarData"; - -export default function Page() { - return ( -
- -
- ); -} diff --git a/frontend/src/app/blog/[articleSlug]/page.tsx b/frontend/src/app/blog/[articleSlug]/page.tsx index 2cbab95..3ff6e6a 100644 --- a/frontend/src/app/blog/[articleSlug]/page.tsx +++ b/frontend/src/app/blog/[articleSlug]/page.tsx @@ -67,10 +67,9 @@ export default async function Page({ ) { return
Article not found
; } - let avatarURL = graphqlData.data.articles?.data[0]?.attributes?.author?.data?.attributes - ?.avatar?.data[0]?.attributes?.url; + ?.avatar?.data?.attributes?.url; if (HOST_URL && avatarURL != undefined) { avatarURL = HOST_URL + avatarURL; diff --git a/frontend/src/app/blog/page.tsx b/frontend/src/app/blog/page.tsx index fc75f79..82156c8 100644 --- a/frontend/src/app/blog/page.tsx +++ b/frontend/src/app/blog/page.tsx @@ -80,7 +80,7 @@ export default async function BlogPage() { {graphqlData.data.articles.data.map((article) => { let avatarURL = article?.attributes?.author?.data?.attributes?.avatar - ?.data?.[0]?.attributes?.url; + ?.data?.attributes?.url; if (HOST_URL && avatarURL != undefined) { avatarURL = HOST_URL + avatarURL; diff --git a/frontend/src/app/projects/[projectSlug]/page.tsx b/frontend/src/app/projects/[projectSlug]/page.tsx index d30b6cf..5bfb2ac 100644 --- a/frontend/src/app/projects/[projectSlug]/page.tsx +++ b/frontend/src/app/projects/[projectSlug]/page.tsx @@ -3,46 +3,47 @@ import { gql } from "@/__generated__/gql"; import BlockRendererClient from "@/components/BlockRendererClient"; import { getClient } from "@/lib/ApolloClient"; import { BlocksContent } from "@strapi/blocks-react-renderer"; +import Image from "next/image"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import Link from "next/link"; const HOST_URL = process.env.HOST_URL; const GET_PROJECT_BY_SLUG = gql(` query Projects($projectFilters: ProjectFiltersInput) { - projects(filters: $projectFilters) { - data { - attributes { - title - description - article - satellites { - data { - id - attributes { - catalogNumberNORAD - projects { - data { - id + projects(filters: $projectFilters) { + data { + attributes { + title + description + article + satellites { + data { + id + attributes { + name + previewImage { + data { + attributes { + url } } - createdAt - updatedAt - publishedAt } } } - slug - publishedAt - coverImage { - data { - id - attributes { - url - } + } + slug + coverImage { + data { + id + attributes { + url } } } } } - }`); + } +}`); export default async function Page({ params, @@ -57,7 +58,6 @@ export default async function Page({ }, }, }); - if ( graphqlData.data === null || graphqlData.data === undefined || @@ -75,15 +75,59 @@ export default async function Page({ if (HOST_URL && projectTitle != undefined) { projectTitle = HOST_URL + projectTitle; } - return (
-

- {projects?.attributes?.title} -

-
+
+ {graphqlData.data.projects?.data && ( +

+ Related Satellites +

+ )} +
+ {graphqlData.data.projects?.data[0].attributes?.satellites?.data.map( + (satellite) => { + let coverImage = + satellite.attributes?.previewImage?.data?.attributes + ?.url; + + if (HOST_URL && coverImage != undefined) { + coverImage = HOST_URL + coverImage; + } + return ( + + + + + {satellite?.attributes?.name} + + + +
+ {coverImage && ( + {coverImage} + )} +
+
+
+ + ); + }, + )} +
); } diff --git a/frontend/src/app/projects/page.tsx b/frontend/src/app/projects/page.tsx index 39420c9..a5e9a35 100644 --- a/frontend/src/app/projects/page.tsx +++ b/frontend/src/app/projects/page.tsx @@ -72,9 +72,7 @@ export default async function ProjectsPage() { } let content: BlocksContent = project?.attributes?.article ?? []; - let text = ""; - for (const block of content) { if (block.type === "paragraph") { const paragraphBlock = block as { @@ -82,6 +80,10 @@ export default async function ProjectsPage() { children: { type: "text"; text: string }[]; }; + if (paragraphBlock.children[0].text == "") { + continue; + } + text = paragraphBlock.children[0].text.slice(0, 100) + "..."; @@ -98,15 +100,17 @@ export default async function ProjectsPage() { - {coverImage && ( - {coverImage} - )} +
+ {coverImage && ( + {coverImage} + )} +
{project?.attributes?.title} diff --git a/frontend/src/app/satellites/[satelliteSlug]/page.tsx b/frontend/src/app/satellites/[satelliteSlug]/page.tsx index 61b4172..ff1bc44 100644 --- a/frontend/src/app/satellites/[satelliteSlug]/page.tsx +++ b/frontend/src/app/satellites/[satelliteSlug]/page.tsx @@ -13,7 +13,7 @@ const GET_SATELLITE_INFO = celestrakURL catalogNumberNORAD content - satelliteName + name } } } @@ -26,7 +26,7 @@ export default async function SatelliteInfoPage({ params: { satelliteSlug: string }; }) { const filters = { - satelliteName: { + name: { eq: params.satelliteSlug, }, }; @@ -43,14 +43,14 @@ export default async function SatelliteInfoPage({ useExampleData={true} filterList={[ graphqlData?.data?.satellites?.data[0].attributes - ?.satelliteName || "", + ?.name || "", ]} /> {graphqlData?.data?.satellites?.data.map((satellite) => (

- {satellite?.attributes?.satelliteName} + {satellite?.attributes?.name}

Altitude: {"1234"}km

diff --git a/frontend/src/app/satellites/page.tsx b/frontend/src/app/satellites/page.tsx index f2c435d..360fa4f 100644 --- a/frontend/src/app/satellites/page.tsx +++ b/frontend/src/app/satellites/page.tsx @@ -19,7 +19,7 @@ query GET_SATELLITES { attributes { celestrakURL catalogNumberNORAD - satelliteName + name previewImage { data { attributes { @@ -55,11 +55,11 @@ export default async function Satellites() { - {satellite?.attributes?.satelliteName} + {satellite?.attributes?.name} diff --git a/frontend/src/components/BlockRendererClient.tsx b/frontend/src/components/BlockRendererClient.tsx index 99ee21c..c455f11 100644 --- a/frontend/src/components/BlockRendererClient.tsx +++ b/frontend/src/components/BlockRendererClient.tsx @@ -1,5 +1,5 @@ "use client"; -import Image from "next/image"; +import NextImage from "next/image"; import { BlocksRenderer, @@ -17,11 +17,11 @@ export default function BlockRendererClient({ content={content} blocks={{ image: ({ image }) => { - console.log(image); return ( - {image.alternativeText @@ -30,34 +30,60 @@ export default function BlockRendererClient({ heading: ({ children, level }) => { switch (level) { case 1: - return ( -

{children}

- ); + return

{children}

; case 2: - return ( -

{children}

- ); + return

{children}

; case 3: - return ( -

{children}

- ); + return

{children}

; case 4: - return

{children}

; + return

{children}

; case 5: - return
{children}
; + return
{children}
; default: - return ( -

{children}

- ); + return

{children}

; } }, - paragraph: ({ children }) => ( - <> -

{children}

-
- - ), + paragraph: ({ children }) => { + const child = children as { + props: { + type: "text"; + text: string; + italic: boolean; + }; + }[]; + + const italic = child[0]?.props.italic; + if (italic) { + return

{children}

; + } + return

{children}

; + }, + + link: ({ url, children }) => { + // Check if the URL is a valid YouTube video link + const isYouTubeVideo = url.includes("youtube.com"); + // Render the iframe only if it's a YouTube video link + if (isYouTubeVideo) { + return ( +
+ +
+ ); + } else { + // If it's not a video link, return an anchor with the href + return ( + + {children} + + ); + } + }, }} /> ); diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index 68f1520..4ab169b 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -3,6 +3,7 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; import { Button } from "@/components/ui/button"; import { Drawer, DrawerContent, DrawerTrigger } from "@/components/ui/drawer"; +import Image from "next/image"; import type { SVGProps } from "react"; @@ -53,7 +54,9 @@ export default function Navbar() {