diff --git a/webapp/components/CommentCard/CommentCard.story.js b/webapp/components/CommentCard/CommentCard.story.js
index 467a125d5..75078657e 100644
--- a/webapp/components/CommentCard/CommentCard.story.js
+++ b/webapp/components/CommentCard/CommentCard.story.js
@@ -18,8 +18,7 @@ const comment = {
author: {
id: '1',
avatar: {
- url:
- 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
+ url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
},
slug: 'jenny-rostock',
name: 'Rainer Unsinn',
diff --git a/webapp/components/DeleteData/DeleteData.vue b/webapp/components/DeleteData/DeleteData.vue
index 21b842fe6..a0cdcf29b 100644
--- a/webapp/components/DeleteData/DeleteData.vue
+++ b/webapp/components/DeleteData/DeleteData.vue
@@ -103,7 +103,7 @@ export default {
this.$apollo
.mutate({
mutation: gql`
- mutation($id: ID!, $resource: [Deletable]) {
+ mutation ($id: ID!, $resource: [Deletable]) {
DeleteUser(id: $id, resource: $resource) {
id
}
diff --git a/webapp/components/Editor/Editor.story.js b/webapp/components/Editor/Editor.story.js
index dfcc3cdf4..6e38eab7f 100644
--- a/webapp/components/Editor/Editor.story.js
+++ b/webapp/components/Editor/Editor.story.js
@@ -9,8 +9,7 @@ const embed = {
title: 'Video Titel',
// html: null,
description: 'Video Description',
- html:
- '',
+ html: '',
}
const plugins = [
diff --git a/webapp/components/Editor/nodes/Embed.spec.js b/webapp/components/Editor/nodes/Embed.spec.js
index e87ee1570..372b189f9 100644
--- a/webapp/components/Editor/nodes/Embed.spec.js
+++ b/webapp/components/Editor/nodes/Embed.spec.js
@@ -33,8 +33,7 @@ describe('Embed.vue', () => {
video: null,
lang: 'de',
sources: ['resource', 'oembed'],
- html:
- '',
+ html: '',
}),
}
})
diff --git a/webapp/components/Embed/EmbedComponent.spec.js b/webapp/components/Embed/EmbedComponent.spec.js
index fd7452c01..cd3526368 100644
--- a/webapp/components/Embed/EmbedComponent.spec.js
+++ b/webapp/components/Embed/EmbedComponent.spec.js
@@ -114,8 +114,7 @@ describe('EmbedComponent.vue', () => {
video: null,
lang: 'de',
sources: ['resource', 'oembed'],
- html:
- '',
+ html: '',
}
wrapper = Wrapper()
})
diff --git a/webapp/components/Emotions/Emotions.vue b/webapp/components/Emotions/Emotions.vue
index e75c8848d..b4dc14a61 100644
--- a/webapp/components/Emotions/Emotions.vue
+++ b/webapp/components/Emotions/Emotions.vue
@@ -83,7 +83,7 @@ export default {
this.$apollo
.query({
query: gql`
- query($postId: ID!, $data: _EMOTEDInput!) {
+ query ($postId: ID!, $data: _EMOTEDInput!) {
PostsEmotionsCountByEmotion(postId: $postId, data: $data)
}
`,
diff --git a/webapp/components/LocaleSwitch/LocaleSwitch.vue b/webapp/components/LocaleSwitch/LocaleSwitch.vue
index 47e53028b..353fc406a 100644
--- a/webapp/components/LocaleSwitch/LocaleSwitch.vue
+++ b/webapp/components/LocaleSwitch/LocaleSwitch.vue
@@ -82,7 +82,7 @@ export default {
try {
await this.$apollo.mutate({
mutation: gql`
- mutation($id: ID!, $locale: String) {
+ mutation ($id: ID!, $locale: String) {
UpdateUser(id: $id, locale: $locale) {
id
locale
diff --git a/webapp/components/Modal/DeleteUserModal.vue b/webapp/components/Modal/DeleteUserModal.vue
index 87aa557d8..8618582ee 100644
--- a/webapp/components/Modal/DeleteUserModal.vue
+++ b/webapp/components/Modal/DeleteUserModal.vue
@@ -127,7 +127,7 @@ export default {
this.$apollo
.mutate({
mutation: gql`
- mutation($id: ID!, $resource: [Deletable]) {
+ mutation ($id: ID!, $resource: [Deletable]) {
DeleteUser(id: $id, resource: $resource) {
id
}
diff --git a/webapp/components/Modal/DisableModal.vue b/webapp/components/Modal/DisableModal.vue
index 19ef64332..d28033ff8 100644
--- a/webapp/components/Modal/DisableModal.vue
+++ b/webapp/components/Modal/DisableModal.vue
@@ -53,7 +53,7 @@ export default {
// await this.modalData.buttons.confirm.callback()
await this.$apollo.mutate({
mutation: gql`
- mutation($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
+ mutation ($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
disable
}
diff --git a/webapp/components/Password/Change.vue b/webapp/components/Password/Change.vue
index cd955973f..94b69a8f6 100644
--- a/webapp/components/Password/Change.vue
+++ b/webapp/components/Password/Change.vue
@@ -65,7 +65,7 @@ export default {
async handleSubmit(data) {
this.loading = true
const mutation = gql`
- mutation($oldPassword: String!, $password: String!) {
+ mutation ($oldPassword: String!, $password: String!) {
changePassword(oldPassword: $oldPassword, newPassword: $password)
}
`
diff --git a/webapp/components/PasswordReset/ChangePassword.vue b/webapp/components/PasswordReset/ChangePassword.vue
index e65a7a04f..c53afcc01 100644
--- a/webapp/components/PasswordReset/ChangePassword.vue
+++ b/webapp/components/PasswordReset/ChangePassword.vue
@@ -93,7 +93,7 @@ export default {
methods: {
async handleSubmitPassword() {
const mutation = gql`
- mutation($nonce: String!, $email: String!, $password: String!) {
+ mutation ($nonce: String!, $email: String!, $password: String!) {
resetPassword(nonce: $nonce, email: $email, newPassword: $password)
}
`
diff --git a/webapp/components/PasswordReset/Request.vue b/webapp/components/PasswordReset/Request.vue
index 5f4baf357..5398c13ed 100644
--- a/webapp/components/PasswordReset/Request.vue
+++ b/webapp/components/PasswordReset/Request.vue
@@ -85,7 +85,7 @@ export default {
},
async handleSubmit() {
const mutation = gql`
- mutation($email: String!) {
+ mutation ($email: String!) {
requestPasswordReset(email: $email)
}
`
diff --git a/webapp/components/PostTeaser/PostTeaser.story.js b/webapp/components/PostTeaser/PostTeaser.story.js
index c82396101..e77e85585 100644
--- a/webapp/components/PostTeaser/PostTeaser.story.js
+++ b/webapp/components/PostTeaser/PostTeaser.story.js
@@ -17,8 +17,7 @@ export const post = {
author: {
id: 'u3',
avatar: {
- url:
- 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
+ url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
},
slug: 'jenny-rostock',
name: 'Rainer Unsinn',
diff --git a/webapp/components/Registration/RegistrationSlideEmail.vue b/webapp/components/Registration/RegistrationSlideEmail.vue
index 045269f00..6ba443996 100644
--- a/webapp/components/Registration/RegistrationSlideEmail.vue
+++ b/webapp/components/Registration/RegistrationSlideEmail.vue
@@ -35,7 +35,7 @@ import normalizeEmail from '~/components/utils/NormalizeEmail'
import translateErrorMessage from '~/components/utils/TranslateErrorMessage'
export const SignupMutation = gql`
- mutation($email: String!, $inviteCode: String) {
+ mutation ($email: String!, $inviteCode: String) {
Signup(email: $email, inviteCode: $inviteCode) {
email
}
@@ -165,9 +165,8 @@ export default {
})
this.setButtonValues()
- const { email: responseEmail } = this.sliderData.sliders[
- this.sliderIndex
- ].data.response.Signup
+ const { email: responseEmail } =
+ this.sliderData.sliders[this.sliderIndex].data.response.Signup
this.$toast.success(
this.$t('components.registration.email.form.success', { email: responseEmail }),
)
diff --git a/webapp/components/Registration/RegistrationSlideInvite.vue b/webapp/components/Registration/RegistrationSlideInvite.vue
index f9ce15ee9..48c62d412 100644
--- a/webapp/components/Registration/RegistrationSlideInvite.vue
+++ b/webapp/components/Registration/RegistrationSlideInvite.vue
@@ -25,7 +25,7 @@ import gql from 'graphql-tag'
import CONSTANTS_REGISTRATION from './../../constants/registration'
export const isValidInviteCodeQuery = gql`
- query($code: ID!) {
+ query ($code: ID!) {
isValidInviteCode(code: $code)
}
`
diff --git a/webapp/components/Registration/RegistrationSlideNonce.vue b/webapp/components/Registration/RegistrationSlideNonce.vue
index 147e84336..b9de7afd1 100644
--- a/webapp/components/Registration/RegistrationSlideNonce.vue
+++ b/webapp/components/Registration/RegistrationSlideNonce.vue
@@ -30,7 +30,7 @@ import CONSTANTS_REGISTRATION from './../../constants/registration'
import EmailDisplayAndVerify from './EmailDisplayAndVerify'
export const verifyNonceQuery = gql`
- query($email: String!, $nonce: String!) {
+ query ($email: String!, $nonce: String!) {
VerifyNonce(email: $email, nonce: $nonce)
}
`
diff --git a/webapp/components/Registration/Signup.vue b/webapp/components/Registration/Signup.vue
index 86142c338..91b9ecd61 100644
--- a/webapp/components/Registration/Signup.vue
+++ b/webapp/components/Registration/Signup.vue
@@ -70,7 +70,7 @@ import { SweetalertIcon } from 'vue-sweetalert-icons'
import translateErrorMessage from '~/components/utils/TranslateErrorMessage'
export const SignupMutation = gql`
- mutation($email: String!, $inviteCode: String) {
+ mutation ($email: String!, $inviteCode: String) {
Signup(email: $email, inviteCode: $inviteCode) {
email
}
diff --git a/webapp/components/ReleaseModal/ReleaseModal.vue b/webapp/components/ReleaseModal/ReleaseModal.vue
index fef0d79d0..fceb4b7a1 100644
--- a/webapp/components/ReleaseModal/ReleaseModal.vue
+++ b/webapp/components/ReleaseModal/ReleaseModal.vue
@@ -52,7 +52,7 @@ export default {
// await this.modalData.buttons.confirm.callback()
await this.$apollo.mutate({
mutation: gql`
- mutation($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
+ mutation ($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
disable
}
diff --git a/webapp/components/generic/SearchableInput/SearchableInput.story.js b/webapp/components/generic/SearchableInput/SearchableInput.story.js
index 62e422a67..f483129eb 100644
--- a/webapp/components/generic/SearchableInput/SearchableInput.story.js
+++ b/webapp/components/generic/SearchableInput/SearchableInput.story.js
@@ -78,8 +78,7 @@ export const searchResults = [
id: 'u1',
__typename: 'User',
avatar: {
- url:
- 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
+ url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
},
name: 'Peter Lustig',
slug: 'peter-lustig',
@@ -88,8 +87,7 @@ export const searchResults = [
id: 'cdbca762-0632-4564-b646-415a0c42d8b8',
__typename: 'User',
avatar: {
- url:
- 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
+ url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
},
name: 'Herbert Schultz',
slug: 'herbert-schultz',
@@ -98,8 +96,7 @@ export const searchResults = [
id: 'u2',
__typename: 'User',
avatar: {
- url:
- 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
+ url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
},
name: 'Bob der Baumeister',
slug: 'bob-der-baumeister',
@@ -108,8 +105,7 @@ export const searchResults = [
id: '7b654f72-f4da-4315-8bed-39de0859754b',
__typename: 'User',
avatar: {
- url:
- 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
+ url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
},
name: 'Tonya Mohr',
slug: 'tonya-mohr',
diff --git a/webapp/graphql/CommentMutations.js b/webapp/graphql/CommentMutations.js
index a73ebb00c..191edf217 100644
--- a/webapp/graphql/CommentMutations.js
+++ b/webapp/graphql/CommentMutations.js
@@ -4,7 +4,7 @@ export default (i18n) => {
const lang = i18n.locale().toUpperCase()
return {
CreateComment: gql`
- mutation($postId: ID!, $content: String!) {
+ mutation ($postId: ID!, $content: String!) {
CreateComment(postId: $postId, content: $content) {
id
contentExcerpt
@@ -36,7 +36,7 @@ export default (i18n) => {
}
`,
UpdateComment: gql`
- mutation($content: String!, $id: ID!) {
+ mutation ($content: String!, $id: ID!) {
UpdateComment(content: $content, id: $id) {
id
contentExcerpt
diff --git a/webapp/graphql/Donations.js b/webapp/graphql/Donations.js
index e412ee4fa..573158cbf 100644
--- a/webapp/graphql/Donations.js
+++ b/webapp/graphql/Donations.js
@@ -13,7 +13,7 @@ export const DonationsQuery = () => gql`
export const UpdateDonations = () => {
return gql`
- mutation($showDonations: Boolean, $goal: Int, $progress: Int) {
+ mutation ($showDonations: Boolean, $goal: Int, $progress: Int) {
UpdateDonations(showDonations: $showDonations, goal: $goal, progress: $progress) {
id
showDonations
diff --git a/webapp/graphql/EmailAddress.js b/webapp/graphql/EmailAddress.js
index 675ec6bed..b3b4df695 100644
--- a/webapp/graphql/EmailAddress.js
+++ b/webapp/graphql/EmailAddress.js
@@ -1,7 +1,7 @@
import gql from 'graphql-tag'
export const AddEmailAddressMutation = gql`
- mutation($email: String!) {
+ mutation ($email: String!) {
AddEmailAddress(email: $email) {
email
createdAt
@@ -10,7 +10,7 @@ export const AddEmailAddressMutation = gql`
`
export const VerifyEmailAddressMutation = gql`
- mutation($email: String!, $nonce: String!) {
+ mutation ($email: String!, $nonce: String!) {
VerifyEmailAddress(email: $email, nonce: $nonce) {
email
verifiedAt
diff --git a/webapp/graphql/EmbedQuery.js b/webapp/graphql/EmbedQuery.js
index 685095d34..70450722d 100644
--- a/webapp/graphql/EmbedQuery.js
+++ b/webapp/graphql/EmbedQuery.js
@@ -2,7 +2,7 @@ import gql from 'graphql-tag'
export default function () {
return gql`
- query($url: String!) {
+ query ($url: String!) {
embed(url: $url) {
type
title
diff --git a/webapp/graphql/Moderation.js b/webapp/graphql/Moderation.js
index f4796d080..8dc20f987 100644
--- a/webapp/graphql/Moderation.js
+++ b/webapp/graphql/Moderation.js
@@ -3,7 +3,7 @@ import gql from 'graphql-tag'
export const reportsListQuery = () => {
// no limit for the moment like before: "reports(first: 20, orderBy: createdAt_desc)"
return gql`
- query(
+ query (
$orderBy: ReportOrdering
$first: Int
$offset: Int
@@ -94,7 +94,7 @@ export const reportsListQuery = () => {
export const reportMutation = () => {
return gql`
- mutation($resourceId: ID!, $reasonCategory: ReasonCategory!, $reasonDescription: String!) {
+ mutation ($resourceId: ID!, $reasonCategory: ReasonCategory!, $reasonDescription: String!) {
fileReport(
resourceId: $resourceId
reasonCategory: $reasonCategory
@@ -108,7 +108,7 @@ export const reportMutation = () => {
export const reviewMutation = () => {
return gql`
- mutation($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
+ mutation ($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
disable
}
diff --git a/webapp/graphql/PostMutations.js b/webapp/graphql/PostMutations.js
index af91d245e..ee61efc3b 100644
--- a/webapp/graphql/PostMutations.js
+++ b/webapp/graphql/PostMutations.js
@@ -3,7 +3,7 @@ import gql from 'graphql-tag'
export default () => {
return {
CreatePost: gql`
- mutation($title: String!, $content: String!, $categoryIds: [ID], $image: ImageInput) {
+ mutation ($title: String!, $content: String!, $categoryIds: [ID], $image: ImageInput) {
CreatePost(title: $title, content: $content, categoryIds: $categoryIds, image: $image) {
title
slug
@@ -18,7 +18,7 @@ export default () => {
}
`,
UpdatePost: gql`
- mutation(
+ mutation (
$id: ID!
$title: String!
$content: String!
@@ -52,14 +52,14 @@ export default () => {
}
`,
DeletePost: gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
DeletePost(id: $id) {
id
}
}
`,
AddPostEmotionsMutation: gql`
- mutation($to: _PostInput!, $data: _EMOTEDInput!) {
+ mutation ($to: _PostInput!, $data: _EMOTEDInput!) {
AddPostEmotions(to: $to, data: $data) {
emotion
from {
@@ -72,7 +72,7 @@ export default () => {
}
`,
RemovePostEmotionsMutation: gql`
- mutation($to: _PostInput!, $data: _EMOTEDInput!) {
+ mutation ($to: _PostInput!, $data: _EMOTEDInput!) {
RemovePostEmotions(to: $to, data: $data) {
emotion
from {
@@ -85,7 +85,7 @@ export default () => {
}
`,
pinPost: gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
pinPost(id: $id) {
id
title
@@ -102,7 +102,7 @@ export default () => {
}
`,
unpinPost: gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
unpinPost(id: $id) {
id
title
@@ -119,7 +119,7 @@ export default () => {
}
`,
markTeaserAsViewed: gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
markTeaserAsViewed(id: $id) {
id
}
diff --git a/webapp/graphql/Registration.js b/webapp/graphql/Registration.js
index fcf9c52a7..b6cc610d9 100644
--- a/webapp/graphql/Registration.js
+++ b/webapp/graphql/Registration.js
@@ -1,6 +1,6 @@
import gql from 'graphql-tag'
export const SignupVerificationMutation = gql`
- mutation(
+ mutation (
$nonce: String!
$name: String!
$email: String!
diff --git a/webapp/graphql/Search.js b/webapp/graphql/Search.js
index 96e507b2d..56f5d7c4c 100644
--- a/webapp/graphql/Search.js
+++ b/webapp/graphql/Search.js
@@ -5,7 +5,7 @@ export const searchQuery = gql`
${userFragment}
${postFragment}
- query($query: String!) {
+ query ($query: String!) {
searchResults(query: $query, limit: 5) {
__typename
... on Post {
@@ -33,7 +33,7 @@ export const searchPosts = gql`
${postFragment}
${tagsCategoriesAndPinnedFragment}
- query($query: String!, $firstPosts: Int, $postsOffset: Int) {
+ query ($query: String!, $firstPosts: Int, $postsOffset: Int) {
searchPosts(query: $query, firstPosts: $firstPosts, postsOffset: $postsOffset) {
postCount
posts {
@@ -55,7 +55,7 @@ export const searchPosts = gql`
export const searchUsers = gql`
${userFragment}
- query($query: String!, $firstUsers: Int, $usersOffset: Int) {
+ query ($query: String!, $firstUsers: Int, $usersOffset: Int) {
searchUsers(query: $query, firstUsers: $firstUsers, usersOffset: $usersOffset) {
userCount
users {
@@ -67,7 +67,7 @@ export const searchUsers = gql`
`
export const searchHashtags = gql`
- query($query: String!, $firstHashtags: Int, $hashtagsOffset: Int) {
+ query ($query: String!, $firstHashtags: Int, $hashtagsOffset: Int) {
searchHashtags(query: $query, firstHashtags: $firstHashtags, hashtagsOffset: $hashtagsOffset) {
hashtagCount
hashtags {
diff --git a/webapp/graphql/User.js b/webapp/graphql/User.js
index b3f131238..f16323073 100644
--- a/webapp/graphql/User.js
+++ b/webapp/graphql/User.js
@@ -68,7 +68,7 @@ export const notificationQuery = (i18n) => {
${commentFragment}
${postFragment}
- query($read: Boolean, $orderBy: NotificationOrdering, $first: Int, $offset: Int) {
+ query ($read: Boolean, $orderBy: NotificationOrdering, $first: Int, $offset: Int) {
notifications(read: $read, orderBy: $orderBy, first: $first, offset: $offset) {
id
read
@@ -107,7 +107,7 @@ export const markAsReadMutation = (i18n) => {
${commentFragment}
${postFragment}
- mutation($id: ID!) {
+ mutation ($id: ID!) {
markAsRead(id: $id) {
id
read
@@ -180,7 +180,7 @@ export const followUserMutation = (i18n) => {
${userFragment}
${userCountsFragment}
- mutation($id: ID!) {
+ mutation ($id: ID!) {
followUser(id: $id) {
...user
...userCounts
@@ -200,7 +200,7 @@ export const unfollowUserMutation = (i18n) => {
${userFragment}
${userCountsFragment}
- mutation($id: ID!) {
+ mutation ($id: ID!) {
unfollowUser(id: $id) {
...user
...userCounts
@@ -217,7 +217,7 @@ export const unfollowUserMutation = (i18n) => {
export const updateUserMutation = () => {
return gql`
- mutation(
+ mutation (
$id: ID!
$slug: String
$name: String
@@ -260,7 +260,7 @@ export const updateUserMutation = () => {
}
export const checkSlugAvailableQuery = gql`
- query($slug: String!) {
+ query ($slug: String!) {
User(slug: $slug) {
slug
}
@@ -303,7 +303,7 @@ export const userDataQuery = (i18n) => {
${userFragment}
${postFragment}
${commentFragment}
- query($id: ID!) {
+ query ($id: ID!) {
userData(id: $id) {
user {
...user
diff --git a/webapp/graphql/admin/Roles.js b/webapp/graphql/admin/Roles.js
index 4365cb533..4015ad06c 100644
--- a/webapp/graphql/admin/Roles.js
+++ b/webapp/graphql/admin/Roles.js
@@ -10,7 +10,7 @@ export const FetchAllRoles = () => {
export const updateUserRole = (role, id) => {
return gql`
- mutation($role: UserRole!, $id: ID!) {
+ mutation ($role: UserRole!, $id: ID!) {
switchUserRole(role: $role, id: $id) {
name
role
diff --git a/webapp/graphql/location.js b/webapp/graphql/location.js
index 0fa2c2a2d..1fff64782 100644
--- a/webapp/graphql/location.js
+++ b/webapp/graphql/location.js
@@ -1,7 +1,7 @@
import gql from 'graphql-tag'
export const queryLocations = () => gql`
- query($place: String!, $lang: String!) {
+ query ($place: String!, $lang: String!) {
queryLocations(place: $place, lang: $lang) {
place_name
id
diff --git a/webapp/graphql/settings/BlockedUsers.js b/webapp/graphql/settings/BlockedUsers.js
index be1765138..0c642b352 100644
--- a/webapp/graphql/settings/BlockedUsers.js
+++ b/webapp/graphql/settings/BlockedUsers.js
@@ -20,7 +20,7 @@ export const blockedUsers = () => {
export const blockUser = () => {
return gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
blockUser(id: $id) {
id
name
@@ -33,7 +33,7 @@ export const blockUser = () => {
export const unblockUser = () => {
return gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
unblockUser(id: $id) {
id
name
diff --git a/webapp/graphql/settings/MutedUsers.js b/webapp/graphql/settings/MutedUsers.js
index f498534e3..10db085af 100644
--- a/webapp/graphql/settings/MutedUsers.js
+++ b/webapp/graphql/settings/MutedUsers.js
@@ -20,7 +20,7 @@ export const mutedUsers = () => {
export const muteUser = () => {
return gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
muteUser(id: $id) {
id
name
@@ -33,7 +33,7 @@ export const muteUser = () => {
export const unmuteUser = () => {
return gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
unmuteUser(id: $id) {
id
name
diff --git a/webapp/pages/admin/users.vue b/webapp/pages/admin/users.vue
index 6c324fd97..cbd7433ad 100644
--- a/webapp/pages/admin/users.vue
+++ b/webapp/pages/admin/users.vue
@@ -139,7 +139,7 @@ export default {
User: {
query() {
return gql`
- query($filter: _UserFilter, $first: Int, $offset: Int, $email: String) {
+ query ($filter: _UserFilter, $first: Int, $offset: Int, $email: String) {
User(
email: $email
filter: $filter
diff --git a/webapp/pages/post/_id.vue b/webapp/pages/post/_id.vue
index 8d425eab7..14cc65a4e 100644
--- a/webapp/pages/post/_id.vue
+++ b/webapp/pages/post/_id.vue
@@ -19,7 +19,7 @@ import PersistentLinks from '~/mixins/persistentLinks.js'
const options = {
queryId: gql`
- query($idOrSlug: ID) {
+ query ($idOrSlug: ID) {
Post(id: $idOrSlug) {
id
slug
@@ -27,7 +27,7 @@ const options = {
}
`,
querySlug: gql`
- query($idOrSlug: String) {
+ query ($idOrSlug: String) {
Post(slug: $idOrSlug) {
id
slug
diff --git a/webapp/pages/profile/_id.vue b/webapp/pages/profile/_id.vue
index b9bbef83e..7a771425d 100644
--- a/webapp/pages/profile/_id.vue
+++ b/webapp/pages/profile/_id.vue
@@ -8,7 +8,7 @@ import PersistentLinks from '~/mixins/persistentLinks.js'
const options = {
queryId: gql`
- query($idOrSlug: ID) {
+ query ($idOrSlug: ID) {
User(id: $idOrSlug) {
id
slug
@@ -16,7 +16,7 @@ const options = {
}
`,
querySlug: gql`
- query($idOrSlug: String) {
+ query ($idOrSlug: String) {
User(slug: $idOrSlug) {
id
slug
diff --git a/webapp/pages/settings/my-social-media.vue b/webapp/pages/settings/my-social-media.vue
index a985371d6..d392032bb 100644
--- a/webapp/pages/settings/my-social-media.vue
+++ b/webapp/pages/settings/my-social-media.vue
@@ -112,7 +112,7 @@ export default {
let mutation, variables, successMessage
if (isCreation) {
mutation = gql`
- mutation($url: String!) {
+ mutation ($url: String!) {
CreateSocialMedia(url: $url) {
id
url
@@ -123,7 +123,7 @@ export default {
successMessage = thisList.$t('settings.social-media.successAdd')
} else {
mutation = gql`
- mutation($id: ID!, $url: String!) {
+ mutation ($id: ID!, $url: String!) {
UpdateSocialMedia(id: $id, url: $url) {
id
url
@@ -160,7 +160,7 @@ export default {
try {
await thisList.$apollo.mutate({
mutation: gql`
- mutation($id: ID!) {
+ mutation ($id: ID!) {
DeleteSocialMedia(id: $id) {
id
url