Skip to content

Commit

Permalink
fix(N/A): update portfolio to work with new Hygraph API
Browse files Browse the repository at this point in the history
  • Loading branch information
RBrNx committed Oct 14, 2023
1 parent 7416b2d commit 1053e86
Show file tree
Hide file tree
Showing 14 changed files with 11,224 additions and 10,212 deletions.
4 changes: 3 additions & 1 deletion gatsby-frontend/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ module.exports = {
options: {
// Your GraphCMS API endpoint. Available from your project settings.
endpoint: process.env.GRAPHCMS_ENDPOINT,
// A PAT (Permanent Auth Token) for your project. Required if your project is not available publicly, or you want to scope access to a specific content stage (i.e. draft content).
stages: ['DRAFT', 'PUBLISHED'].filter(stage => process.env.NODE_ENV !== 'production' || stage === 'PUBLISHED'),
queryConcurrency: 1,
// A PAT (Permanent Auth Token) for your project. Required if your project is not available publicly, or you want to scope access to a specific content stage (i.e. draft content).
token: process.env.GRAPHCMS_TOKEN,
},
},
],
Expand Down
43 changes: 32 additions & 11 deletions gatsby-frontend/graphcms-fragments/Asset.graphql
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
fragment Asset on Asset {
stage
locale
remoteId: id
createdAt(variation: COMBINED)
updatedAt(variation: COMBINED)
publishedAt(variation: COMBINED)
handle
fileName
height
width
size
mimeType
createdBy {
size
width
height
fileName
handle
publishedAt(variation: COMBINED)
updatedAt(variation: COMBINED)
createdAt(variation: COMBINED)
remoteId: id
publishedBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand All @@ -25,7 +25,7 @@ fragment Asset on Asset {
stage
}
}
publishedBy {
createdBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand All @@ -39,6 +39,27 @@ fragment Asset on Asset {
stage
}
}
iconSpeciality {
... on Speciality {
remoteTypeName: __typename
remoteId: id
stage
}
}
iconTechnology {
... on Technology {
remoteTypeName: __typename
remoteId: id
stage
}
}
headerImageBlog {
... on Blog {
remoteTypeName: __typename
remoteId: id
stage
}
}
scheduledIn {
... on ScheduledOperation {
remoteTypeName: __typename
Expand Down
10 changes: 5 additions & 5 deletions gatsby-frontend/graphcms-fragments/Blog.graphql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
fragment Blog on Blog {
stage
remoteId: id
createdAt
updatedAt
publishedAt
updatedAt
createdAt
remoteId: id
title
description
content {
Expand All @@ -14,7 +14,7 @@ fragment Blog on Blog {
text
}
}
createdBy {
publishedBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand All @@ -28,7 +28,7 @@ fragment Blog on Blog {
stage
}
}
publishedBy {
createdBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand Down
12 changes: 6 additions & 6 deletions gatsby-frontend/graphcms-fragments/Link.graphql
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
fragment Link on Link {
stage
remoteId: id
createdAt
updatedAt
publishedAt
updatedAt
createdAt
remoteId: id
title
url
type
createdBy {
publishedBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand All @@ -21,13 +20,14 @@ fragment Link on Link {
stage
}
}
publishedBy {
createdBy {
... on User {
remoteTypeName: __typename
remoteId: id
stage
}
}
type
scheduledIn {
... on ScheduledOperation {
remoteTypeName: __typename
Expand Down
12 changes: 6 additions & 6 deletions gatsby-frontend/graphcms-fragments/PortfolioItem.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
fragment PortfolioItem on PortfolioItem {
stage
remoteId: id
createdAt
updatedAt
publishedAt
updatedAt
createdAt
remoteId: id
title
description
techSheet
about {
... on RichText {
raw
Expand All @@ -15,7 +14,8 @@ fragment PortfolioItem on PortfolioItem {
text
}
}
createdBy {
techSheet
publishedBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand All @@ -29,7 +29,7 @@ fragment PortfolioItem on PortfolioItem {
stage
}
}
publishedBy {
createdBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand Down
39 changes: 27 additions & 12 deletions gatsby-frontend/graphcms-fragments/ScheduledOperation.graphql
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
fragment ScheduledOperation on ScheduledOperation {
stage
remoteId: id
createdAt
updatedAt
publishedAt
description
errorMessage
rawPayload
createdBy {
... on User {
errorMessage
description
publishedAt
updatedAt
createdAt
remoteId: id
release {
... on ScheduledRelease {
remoteTypeName: __typename
remoteId: id
stage
}
}
updatedBy {
publishedBy {
... on User {
remoteTypeName: __typename
remoteId: id
stage
}
}
publishedBy {
updatedBy {
... on User {
remoteTypeName: __typename
remoteId: id
stage
}
}
release {
... on ScheduledRelease {
createdBy {
... on User {
remoteTypeName: __typename
remoteId: id
stage
Expand All @@ -43,6 +43,11 @@ fragment ScheduledOperation on ScheduledOperation {
locale
stage
}
... on Blog {
remoteTypeName: __typename
remoteId: id
stage
}
... on Link {
remoteTypeName: __typename
remoteId: id
Expand All @@ -53,5 +58,15 @@ fragment ScheduledOperation on ScheduledOperation {
remoteId: id
stage
}
... on Speciality {
remoteTypeName: __typename
remoteId: id
stage
}
... on Technology {
remoteTypeName: __typename
remoteId: id
stage
}
}
}
30 changes: 15 additions & 15 deletions gatsby-frontend/graphcms-fragments/ScheduledRelease.graphql
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
fragment ScheduledRelease on ScheduledRelease {
stage
remoteId: id
createdAt
updatedAt
publishedAt
title
description
errorMessage
isActive
isImplicit
releaseAt
createdBy {
... on User {
isImplicit
isActive
errorMessage
description
title
publishedAt
updatedAt
createdAt
remoteId: id
operations {
... on ScheduledOperation {
remoteTypeName: __typename
remoteId: id
stage
}
}
updatedBy {
publishedBy {
... on User {
remoteTypeName: __typename
remoteId: id
stage
}
}
publishedBy {
updatedBy {
... on User {
remoteTypeName: __typename
remoteId: id
stage
}
}
operations {
... on ScheduledOperation {
createdBy {
... on User {
remoteTypeName: __typename
remoteId: id
stage
Expand Down
10 changes: 5 additions & 5 deletions gatsby-frontend/graphcms-fragments/Speciality.graphql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
fragment Speciality on Speciality {
stage
remoteId: id
createdAt
updatedAt
publishedAt
updatedAt
createdAt
remoteId: id
title
description {
... on RichText {
Expand All @@ -13,7 +13,7 @@ fragment Speciality on Speciality {
text
}
}
createdBy {
publishedBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand All @@ -27,7 +27,7 @@ fragment Speciality on Speciality {
stage
}
}
publishedBy {
createdBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand Down
10 changes: 5 additions & 5 deletions gatsby-frontend/graphcms-fragments/Technology.graphql
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
fragment Technology on Technology {
stage
remoteId: id
createdAt
updatedAt
publishedAt
updatedAt
createdAt
remoteId: id
title
description {
... on RichText {
Expand All @@ -27,7 +27,7 @@ fragment Technology on Technology {
css
}
}
createdBy {
publishedBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand All @@ -41,7 +41,7 @@ fragment Technology on Technology {
stage
}
}
publishedBy {
createdBy {
... on User {
remoteTypeName: __typename
remoteId: id
Expand Down
12 changes: 6 additions & 6 deletions gatsby-frontend/graphcms-fragments/User.graphql
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
fragment User on User {
stage
remoteId: id
createdAt
updatedAt
publishedAt
name
picture
isActive
picture
name
publishedAt
updatedAt
createdAt
remoteId: id
kind
}
Loading

0 comments on commit 1053e86

Please sign in to comment.