Skip to content

Commit

Permalink
Run prettier on graphql files (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored May 21, 2022
1 parent fea978a commit bad1feb
Show file tree
Hide file tree
Showing 24 changed files with 199 additions and 198 deletions.
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"lint:js": "eslint --cache src/**/*.{ts,tsx}",
"lint:css": "stylelint \"src/**/*.scss\"",
"generate": "apollo client:codegen --target typescript --outputFlat src/graphql/definitions --passthroughCustomScalars --customScalarsPrefix=GQL",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,scss}\"",
"format-check": "prettier --check \"src/**/!(generated-graphql).{js,jsx,ts,tsx,scss}\"",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,scss,gql}\"",
"format-check": "prettier --check \"src/**/!(generated-graphql).{js,jsx,ts,tsx,scss,gql}\"",
"analyze": "analyze=true vite build"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/graphql/fragments/PerformerFragment.gql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fragment PerformerFragment on Performer {
...URLFragment
}
images {
... ImageFragment
...ImageFragment
}
is_favorite
}
38 changes: 19 additions & 19 deletions frontend/src/graphql/fragments/StudioFragment.gql
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#import "../fragments/URLFragment.gql"
fragment StudioFragment on Studio {
id
name
child_studios {
id
name
child_studios {
id
name
}
parent {
id
name
}
urls {
...URLFragment
}
images {
id
url
height
width
}
deleted
is_favorite
}
parent {
id
name
}
urls {
...URLFragment
}
images {
id
url
height
width
}
deleted
is_favorite
}
6 changes: 3 additions & 3 deletions frontend/src/graphql/mutations/ActivateNewUser.gql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mutation ActivateNewUser($input: ActivateNewUserInput!) {
activateNewUser(input: $input) {
id
}
activateNewUser(input: $input) {
id
}
}
58 changes: 29 additions & 29 deletions frontend/src/graphql/mutations/AddScene.gql
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
mutation AddScene($sceneData: SceneCreateInput!) {
sceneCreate(input: $sceneData) {
id
release_date
title,
details,
urls {
url,
site {
id
name
}
}
studio {
id
release_date
title
details
urls {
url
site {
id
name
}
performers {
performer {
name
id
gender
aliases
}
}
fingerprints {
hash
algorithm
duration
}
tags {
id
name
description
}
studio {
id
name
}
performers {
performer {
name
id
gender
aliases
}
}
fingerprints {
hash
algorithm
duration
}
tags {
id
name
description
}
}
}
16 changes: 8 additions & 8 deletions frontend/src/graphql/mutations/AddStudio.gql
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
mutation AddStudio($studioData: StudioCreateInput!) {
studioCreate(input: $studioData) {
id
name
urls {
url
site {
id
name
}
id
name
urls {
url
site {
id
name
}
}
}
}
56 changes: 28 additions & 28 deletions frontend/src/graphql/mutations/CancelEdit.gql
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
mutation CancelEdit($input: CancelEditInput!) {
cancelEdit(input: $input) {
cancelEdit(input: $input) {
id
target_type
operation
status
applied
created
user {
id
target_type
operation
status
applied
created
user {
name
}
target {
... on Tag {
id
name
description
deleted
}
target {
... on Tag {
id
name
description
deleted
}
}
details {
... on TagEdit {
name
description
added_aliases
removed_aliases
}
}
details {
... on TagEdit {
name
description
added_aliases
removed_aliases
}
merge_sources {
... on Tag {
id
name
description
}
}
merge_sources {
... on Tag {
id
name
description
}
}
}
}
3 changes: 2 additions & 1 deletion frontend/src/graphql/mutations/ChangePassword.gql
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mutation ChangePassword($userData: UserChangePasswordInput!) {
changePassword(input: $userData) }
changePassword(input: $userData)
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/DeleteScene.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation DeleteScene($input: SceneDestroyInput!) {
sceneDestroy(input: $input)
sceneDestroy(input: $input)
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/DeleteStudio.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation DeleteStudio($input: StudioDestroyInput!) {
studioDestroy(input: $input)
studioDestroy(input: $input)
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/DeleteUser.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation DeleteUser($input: UserDestroyInput!) {
userDestroy(input: $input)
userDestroy(input: $input)
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/GenerateInviteCode.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation GenerateInviteCode {
generateInviteCode
generateInviteCode
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/GrantInvite.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation GrantInvite($input: GrantInviteInput!) {
grantInvite(input: $input)
grantInvite(input: $input)
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/NewUser.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation NewUser($input: NewUserInput!) {
newUser(input: $input)
newUser(input: $input)
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/RescindInviteCode.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation RescindInviteCode($code: ID!) {
rescindInviteCode(code: $code)
rescindInviteCode(code: $code)
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/ResetPassword.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation ResetPassword($input: ResetPasswordInput!) {
resetPassword(input: $input)
resetPassword(input: $input)
}
2 changes: 1 addition & 1 deletion frontend/src/graphql/mutations/RevokeInvite.gql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mutation RevokeInvite($input: RevokeInviteInput!) {
revokeInvite(input: $input)
revokeInvite(input: $input)
}
64 changes: 32 additions & 32 deletions frontend/src/graphql/mutations/UpdateScene.gql
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
mutation UpdateScene($updateData: SceneUpdateInput!) {
sceneUpdate(input: $updateData) {
id
release_date
details
director
code
duration
title
urls {
url
site {
id
name
}
}
studio {
id
release_date
details
director
code
duration
title
urls {
url
site {
id
name
}
performers {
performer {
name
id
gender
aliases
}
}
fingerprints {
hash
algorithm
duration
}
tags {
id
name
description
}
studio {
id
name
}
performers {
performer {
name
id
gender
aliases
}
}
fingerprints {
hash
algorithm
duration
}
tags {
id
name
description
}
}
}
12 changes: 6 additions & 6 deletions frontend/src/graphql/queries/Draft.gql
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,28 @@ query Draft($id: ID!) {
...URLFragment
}
studio {
...on Studio {
... on Studio {
...StudioFragment
}
... on DraftEntity {
... on DraftEntity {
draftID: id
name
}
}
performers {
...on Performer {
... on Performer {
...PerformerFragment
}
... on DraftEntity {
... on DraftEntity {
draftID: id
name
}
}
tags {
...on Tag {
... on Tag {
...TagFragment
}
... on DraftEntity {
... on DraftEntity {
draftID: id
name
}
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/graphql/queries/Me.gql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
query Me {
me {
id
name
roles
}
me {
id
name
roles
}
}
Loading

0 comments on commit bad1feb

Please sign in to comment.