mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix linting
This commit is contained in:
parent
0a02e1e402
commit
e82d35c824
@ -18,8 +18,7 @@ const comment = {
|
|||||||
author: {
|
author: {
|
||||||
id: '1',
|
id: '1',
|
||||||
avatar: {
|
avatar: {
|
||||||
url:
|
url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
||||||
'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
|
||||||
},
|
},
|
||||||
slug: 'jenny-rostock',
|
slug: 'jenny-rostock',
|
||||||
name: 'Rainer Unsinn',
|
name: 'Rainer Unsinn',
|
||||||
|
|||||||
@ -103,7 +103,7 @@ export default {
|
|||||||
this.$apollo
|
this.$apollo
|
||||||
.mutate({
|
.mutate({
|
||||||
mutation: gql`
|
mutation: gql`
|
||||||
mutation($id: ID!, $resource: [Deletable]) {
|
mutation ($id: ID!, $resource: [Deletable]) {
|
||||||
DeleteUser(id: $id, resource: $resource) {
|
DeleteUser(id: $id, resource: $resource) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,8 +9,7 @@ const embed = {
|
|||||||
title: 'Video Titel',
|
title: 'Video Titel',
|
||||||
// html: null,
|
// html: null,
|
||||||
description: 'Video Description',
|
description: 'Video Description',
|
||||||
html:
|
html: '<iframe width="auto" height="250" src="https://www.youtube.com/embed/qkdXAtO40Fo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
|
||||||
'<iframe width="auto" height="250" src="https://www.youtube.com/embed/qkdXAtO40Fo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
|
|||||||
@ -33,8 +33,7 @@ describe('Embed.vue', () => {
|
|||||||
video: null,
|
video: null,
|
||||||
lang: 'de',
|
lang: 'de',
|
||||||
sources: ['resource', 'oembed'],
|
sources: ['resource', 'oembed'],
|
||||||
html:
|
html: '<iframe width="480" height="270" src="https://www.youtube.com/embed/qkdXAtO40Fo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
|
||||||
'<iframe width="480" height="270" src="https://www.youtube.com/embed/qkdXAtO40Fo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>',
|
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -114,8 +114,7 @@ describe('EmbedComponent.vue', () => {
|
|||||||
video: null,
|
video: null,
|
||||||
lang: 'de',
|
lang: 'de',
|
||||||
sources: ['resource', 'oembed'],
|
sources: ['resource', 'oembed'],
|
||||||
html:
|
html: '<iframe width="480" height="270" src="https://www.youtube.com/embed/qkdXAtO40Fo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>',
|
||||||
'<iframe width="480" height="270" src="https://www.youtube.com/embed/qkdXAtO40Fo?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>',
|
|
||||||
}
|
}
|
||||||
wrapper = Wrapper()
|
wrapper = Wrapper()
|
||||||
})
|
})
|
||||||
|
|||||||
@ -83,7 +83,7 @@ export default {
|
|||||||
this.$apollo
|
this.$apollo
|
||||||
.query({
|
.query({
|
||||||
query: gql`
|
query: gql`
|
||||||
query($postId: ID!, $data: _EMOTEDInput!) {
|
query ($postId: ID!, $data: _EMOTEDInput!) {
|
||||||
PostsEmotionsCountByEmotion(postId: $postId, data: $data)
|
PostsEmotionsCountByEmotion(postId: $postId, data: $data)
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
|
|||||||
@ -82,7 +82,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
await this.$apollo.mutate({
|
await this.$apollo.mutate({
|
||||||
mutation: gql`
|
mutation: gql`
|
||||||
mutation($id: ID!, $locale: String) {
|
mutation ($id: ID!, $locale: String) {
|
||||||
UpdateUser(id: $id, locale: $locale) {
|
UpdateUser(id: $id, locale: $locale) {
|
||||||
id
|
id
|
||||||
locale
|
locale
|
||||||
|
|||||||
@ -127,7 +127,7 @@ export default {
|
|||||||
this.$apollo
|
this.$apollo
|
||||||
.mutate({
|
.mutate({
|
||||||
mutation: gql`
|
mutation: gql`
|
||||||
mutation($id: ID!, $resource: [Deletable]) {
|
mutation ($id: ID!, $resource: [Deletable]) {
|
||||||
DeleteUser(id: $id, resource: $resource) {
|
DeleteUser(id: $id, resource: $resource) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,7 +53,7 @@ export default {
|
|||||||
// await this.modalData.buttons.confirm.callback()
|
// await this.modalData.buttons.confirm.callback()
|
||||||
await this.$apollo.mutate({
|
await this.$apollo.mutate({
|
||||||
mutation: gql`
|
mutation: gql`
|
||||||
mutation($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
|
mutation ($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
|
||||||
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
|
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
|
||||||
disable
|
disable
|
||||||
}
|
}
|
||||||
|
|||||||
@ -65,7 +65,7 @@ export default {
|
|||||||
async handleSubmit(data) {
|
async handleSubmit(data) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const mutation = gql`
|
const mutation = gql`
|
||||||
mutation($oldPassword: String!, $password: String!) {
|
mutation ($oldPassword: String!, $password: String!) {
|
||||||
changePassword(oldPassword: $oldPassword, newPassword: $password)
|
changePassword(oldPassword: $oldPassword, newPassword: $password)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
@ -93,7 +93,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
async handleSubmitPassword() {
|
async handleSubmitPassword() {
|
||||||
const mutation = gql`
|
const mutation = gql`
|
||||||
mutation($nonce: String!, $email: String!, $password: String!) {
|
mutation ($nonce: String!, $email: String!, $password: String!) {
|
||||||
resetPassword(nonce: $nonce, email: $email, newPassword: $password)
|
resetPassword(nonce: $nonce, email: $email, newPassword: $password)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
@ -85,7 +85,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async handleSubmit() {
|
async handleSubmit() {
|
||||||
const mutation = gql`
|
const mutation = gql`
|
||||||
mutation($email: String!) {
|
mutation ($email: String!) {
|
||||||
requestPasswordReset(email: $email)
|
requestPasswordReset(email: $email)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
@ -17,8 +17,7 @@ export const post = {
|
|||||||
author: {
|
author: {
|
||||||
id: 'u3',
|
id: 'u3',
|
||||||
avatar: {
|
avatar: {
|
||||||
url:
|
url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
||||||
'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
|
||||||
},
|
},
|
||||||
slug: 'jenny-rostock',
|
slug: 'jenny-rostock',
|
||||||
name: 'Rainer Unsinn',
|
name: 'Rainer Unsinn',
|
||||||
|
|||||||
@ -35,7 +35,7 @@ import normalizeEmail from '~/components/utils/NormalizeEmail'
|
|||||||
import translateErrorMessage from '~/components/utils/TranslateErrorMessage'
|
import translateErrorMessage from '~/components/utils/TranslateErrorMessage'
|
||||||
|
|
||||||
export const SignupMutation = gql`
|
export const SignupMutation = gql`
|
||||||
mutation($email: String!, $inviteCode: String) {
|
mutation ($email: String!, $inviteCode: String) {
|
||||||
Signup(email: $email, inviteCode: $inviteCode) {
|
Signup(email: $email, inviteCode: $inviteCode) {
|
||||||
email
|
email
|
||||||
}
|
}
|
||||||
@ -165,9 +165,8 @@ export default {
|
|||||||
})
|
})
|
||||||
this.setButtonValues()
|
this.setButtonValues()
|
||||||
|
|
||||||
const { email: responseEmail } = this.sliderData.sliders[
|
const { email: responseEmail } =
|
||||||
this.sliderIndex
|
this.sliderData.sliders[this.sliderIndex].data.response.Signup
|
||||||
].data.response.Signup
|
|
||||||
this.$toast.success(
|
this.$toast.success(
|
||||||
this.$t('components.registration.email.form.success', { email: responseEmail }),
|
this.$t('components.registration.email.form.success', { email: responseEmail }),
|
||||||
)
|
)
|
||||||
|
|||||||
@ -25,7 +25,7 @@ import gql from 'graphql-tag'
|
|||||||
import CONSTANTS_REGISTRATION from './../../constants/registration'
|
import CONSTANTS_REGISTRATION from './../../constants/registration'
|
||||||
|
|
||||||
export const isValidInviteCodeQuery = gql`
|
export const isValidInviteCodeQuery = gql`
|
||||||
query($code: ID!) {
|
query ($code: ID!) {
|
||||||
isValidInviteCode(code: $code)
|
isValidInviteCode(code: $code)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
@ -30,7 +30,7 @@ import CONSTANTS_REGISTRATION from './../../constants/registration'
|
|||||||
import EmailDisplayAndVerify from './EmailDisplayAndVerify'
|
import EmailDisplayAndVerify from './EmailDisplayAndVerify'
|
||||||
|
|
||||||
export const verifyNonceQuery = gql`
|
export const verifyNonceQuery = gql`
|
||||||
query($email: String!, $nonce: String!) {
|
query ($email: String!, $nonce: String!) {
|
||||||
VerifyNonce(email: $email, nonce: $nonce)
|
VerifyNonce(email: $email, nonce: $nonce)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
@ -70,7 +70,7 @@ import { SweetalertIcon } from 'vue-sweetalert-icons'
|
|||||||
import translateErrorMessage from '~/components/utils/TranslateErrorMessage'
|
import translateErrorMessage from '~/components/utils/TranslateErrorMessage'
|
||||||
|
|
||||||
export const SignupMutation = gql`
|
export const SignupMutation = gql`
|
||||||
mutation($email: String!, $inviteCode: String) {
|
mutation ($email: String!, $inviteCode: String) {
|
||||||
Signup(email: $email, inviteCode: $inviteCode) {
|
Signup(email: $email, inviteCode: $inviteCode) {
|
||||||
email
|
email
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@ export default {
|
|||||||
// await this.modalData.buttons.confirm.callback()
|
// await this.modalData.buttons.confirm.callback()
|
||||||
await this.$apollo.mutate({
|
await this.$apollo.mutate({
|
||||||
mutation: gql`
|
mutation: gql`
|
||||||
mutation($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
|
mutation ($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
|
||||||
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
|
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
|
||||||
disable
|
disable
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,8 +78,7 @@ export const searchResults = [
|
|||||||
id: 'u1',
|
id: 'u1',
|
||||||
__typename: 'User',
|
__typename: 'User',
|
||||||
avatar: {
|
avatar: {
|
||||||
url:
|
url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
||||||
'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
|
||||||
},
|
},
|
||||||
name: 'Peter Lustig',
|
name: 'Peter Lustig',
|
||||||
slug: 'peter-lustig',
|
slug: 'peter-lustig',
|
||||||
@ -88,8 +87,7 @@ export const searchResults = [
|
|||||||
id: 'cdbca762-0632-4564-b646-415a0c42d8b8',
|
id: 'cdbca762-0632-4564-b646-415a0c42d8b8',
|
||||||
__typename: 'User',
|
__typename: 'User',
|
||||||
avatar: {
|
avatar: {
|
||||||
url:
|
url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
||||||
'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
|
||||||
},
|
},
|
||||||
name: 'Herbert Schultz',
|
name: 'Herbert Schultz',
|
||||||
slug: 'herbert-schultz',
|
slug: 'herbert-schultz',
|
||||||
@ -98,8 +96,7 @@ export const searchResults = [
|
|||||||
id: 'u2',
|
id: 'u2',
|
||||||
__typename: 'User',
|
__typename: 'User',
|
||||||
avatar: {
|
avatar: {
|
||||||
url:
|
url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
||||||
'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
|
||||||
},
|
},
|
||||||
name: 'Bob der Baumeister',
|
name: 'Bob der Baumeister',
|
||||||
slug: 'bob-der-baumeister',
|
slug: 'bob-der-baumeister',
|
||||||
@ -108,8 +105,7 @@ export const searchResults = [
|
|||||||
id: '7b654f72-f4da-4315-8bed-39de0859754b',
|
id: '7b654f72-f4da-4315-8bed-39de0859754b',
|
||||||
__typename: 'User',
|
__typename: 'User',
|
||||||
avatar: {
|
avatar: {
|
||||||
url:
|
url: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
||||||
'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg',
|
|
||||||
},
|
},
|
||||||
name: 'Tonya Mohr',
|
name: 'Tonya Mohr',
|
||||||
slug: 'tonya-mohr',
|
slug: 'tonya-mohr',
|
||||||
|
|||||||
@ -4,7 +4,7 @@ export default (i18n) => {
|
|||||||
const lang = i18n.locale().toUpperCase()
|
const lang = i18n.locale().toUpperCase()
|
||||||
return {
|
return {
|
||||||
CreateComment: gql`
|
CreateComment: gql`
|
||||||
mutation($postId: ID!, $content: String!) {
|
mutation ($postId: ID!, $content: String!) {
|
||||||
CreateComment(postId: $postId, content: $content) {
|
CreateComment(postId: $postId, content: $content) {
|
||||||
id
|
id
|
||||||
contentExcerpt
|
contentExcerpt
|
||||||
@ -36,7 +36,7 @@ export default (i18n) => {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
UpdateComment: gql`
|
UpdateComment: gql`
|
||||||
mutation($content: String!, $id: ID!) {
|
mutation ($content: String!, $id: ID!) {
|
||||||
UpdateComment(content: $content, id: $id) {
|
UpdateComment(content: $content, id: $id) {
|
||||||
id
|
id
|
||||||
contentExcerpt
|
contentExcerpt
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export const DonationsQuery = () => gql`
|
|||||||
|
|
||||||
export const UpdateDonations = () => {
|
export const UpdateDonations = () => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation($showDonations: Boolean, $goal: Int, $progress: Int) {
|
mutation ($showDonations: Boolean, $goal: Int, $progress: Int) {
|
||||||
UpdateDonations(showDonations: $showDonations, goal: $goal, progress: $progress) {
|
UpdateDonations(showDonations: $showDonations, goal: $goal, progress: $progress) {
|
||||||
id
|
id
|
||||||
showDonations
|
showDonations
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
export const AddEmailAddressMutation = gql`
|
export const AddEmailAddressMutation = gql`
|
||||||
mutation($email: String!) {
|
mutation ($email: String!) {
|
||||||
AddEmailAddress(email: $email) {
|
AddEmailAddress(email: $email) {
|
||||||
email
|
email
|
||||||
createdAt
|
createdAt
|
||||||
@ -10,7 +10,7 @@ export const AddEmailAddressMutation = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const VerifyEmailAddressMutation = gql`
|
export const VerifyEmailAddressMutation = gql`
|
||||||
mutation($email: String!, $nonce: String!) {
|
mutation ($email: String!, $nonce: String!) {
|
||||||
VerifyEmailAddress(email: $email, nonce: $nonce) {
|
VerifyEmailAddress(email: $email, nonce: $nonce) {
|
||||||
email
|
email
|
||||||
verifiedAt
|
verifiedAt
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import gql from 'graphql-tag'
|
|||||||
|
|
||||||
export default function () {
|
export default function () {
|
||||||
return gql`
|
return gql`
|
||||||
query($url: String!) {
|
query ($url: String!) {
|
||||||
embed(url: $url) {
|
embed(url: $url) {
|
||||||
type
|
type
|
||||||
title
|
title
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import gql from 'graphql-tag'
|
|||||||
export const reportsListQuery = () => {
|
export const reportsListQuery = () => {
|
||||||
// no limit for the moment like before: "reports(first: 20, orderBy: createdAt_desc)"
|
// no limit for the moment like before: "reports(first: 20, orderBy: createdAt_desc)"
|
||||||
return gql`
|
return gql`
|
||||||
query(
|
query (
|
||||||
$orderBy: ReportOrdering
|
$orderBy: ReportOrdering
|
||||||
$first: Int
|
$first: Int
|
||||||
$offset: Int
|
$offset: Int
|
||||||
@ -94,7 +94,7 @@ export const reportsListQuery = () => {
|
|||||||
|
|
||||||
export const reportMutation = () => {
|
export const reportMutation = () => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation($resourceId: ID!, $reasonCategory: ReasonCategory!, $reasonDescription: String!) {
|
mutation ($resourceId: ID!, $reasonCategory: ReasonCategory!, $reasonDescription: String!) {
|
||||||
fileReport(
|
fileReport(
|
||||||
resourceId: $resourceId
|
resourceId: $resourceId
|
||||||
reasonCategory: $reasonCategory
|
reasonCategory: $reasonCategory
|
||||||
@ -108,7 +108,7 @@ export const reportMutation = () => {
|
|||||||
|
|
||||||
export const reviewMutation = () => {
|
export const reviewMutation = () => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
|
mutation ($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
|
||||||
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
|
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
|
||||||
disable
|
disable
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import gql from 'graphql-tag'
|
|||||||
export default () => {
|
export default () => {
|
||||||
return {
|
return {
|
||||||
CreatePost: gql`
|
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) {
|
CreatePost(title: $title, content: $content, categoryIds: $categoryIds, image: $image) {
|
||||||
title
|
title
|
||||||
slug
|
slug
|
||||||
@ -18,7 +18,7 @@ export default () => {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
UpdatePost: gql`
|
UpdatePost: gql`
|
||||||
mutation(
|
mutation (
|
||||||
$id: ID!
|
$id: ID!
|
||||||
$title: String!
|
$title: String!
|
||||||
$content: String!
|
$content: String!
|
||||||
@ -52,14 +52,14 @@ export default () => {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
DeletePost: gql`
|
DeletePost: gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
DeletePost(id: $id) {
|
DeletePost(id: $id) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
AddPostEmotionsMutation: gql`
|
AddPostEmotionsMutation: gql`
|
||||||
mutation($to: _PostInput!, $data: _EMOTEDInput!) {
|
mutation ($to: _PostInput!, $data: _EMOTEDInput!) {
|
||||||
AddPostEmotions(to: $to, data: $data) {
|
AddPostEmotions(to: $to, data: $data) {
|
||||||
emotion
|
emotion
|
||||||
from {
|
from {
|
||||||
@ -72,7 +72,7 @@ export default () => {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
RemovePostEmotionsMutation: gql`
|
RemovePostEmotionsMutation: gql`
|
||||||
mutation($to: _PostInput!, $data: _EMOTEDInput!) {
|
mutation ($to: _PostInput!, $data: _EMOTEDInput!) {
|
||||||
RemovePostEmotions(to: $to, data: $data) {
|
RemovePostEmotions(to: $to, data: $data) {
|
||||||
emotion
|
emotion
|
||||||
from {
|
from {
|
||||||
@ -85,7 +85,7 @@ export default () => {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
pinPost: gql`
|
pinPost: gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
pinPost(id: $id) {
|
pinPost(id: $id) {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
@ -102,7 +102,7 @@ export default () => {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
unpinPost: gql`
|
unpinPost: gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
unpinPost(id: $id) {
|
unpinPost(id: $id) {
|
||||||
id
|
id
|
||||||
title
|
title
|
||||||
@ -119,7 +119,7 @@ export default () => {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
markTeaserAsViewed: gql`
|
markTeaserAsViewed: gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
markTeaserAsViewed(id: $id) {
|
markTeaserAsViewed(id: $id) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
export const SignupVerificationMutation = gql`
|
export const SignupVerificationMutation = gql`
|
||||||
mutation(
|
mutation (
|
||||||
$nonce: String!
|
$nonce: String!
|
||||||
$name: String!
|
$name: String!
|
||||||
$email: String!
|
$email: String!
|
||||||
|
|||||||
@ -5,7 +5,7 @@ export const searchQuery = gql`
|
|||||||
${userFragment}
|
${userFragment}
|
||||||
${postFragment}
|
${postFragment}
|
||||||
|
|
||||||
query($query: String!) {
|
query ($query: String!) {
|
||||||
searchResults(query: $query, limit: 5) {
|
searchResults(query: $query, limit: 5) {
|
||||||
__typename
|
__typename
|
||||||
... on Post {
|
... on Post {
|
||||||
@ -33,7 +33,7 @@ export const searchPosts = gql`
|
|||||||
${postFragment}
|
${postFragment}
|
||||||
${tagsCategoriesAndPinnedFragment}
|
${tagsCategoriesAndPinnedFragment}
|
||||||
|
|
||||||
query($query: String!, $firstPosts: Int, $postsOffset: Int) {
|
query ($query: String!, $firstPosts: Int, $postsOffset: Int) {
|
||||||
searchPosts(query: $query, firstPosts: $firstPosts, postsOffset: $postsOffset) {
|
searchPosts(query: $query, firstPosts: $firstPosts, postsOffset: $postsOffset) {
|
||||||
postCount
|
postCount
|
||||||
posts {
|
posts {
|
||||||
@ -55,7 +55,7 @@ export const searchPosts = gql`
|
|||||||
export const searchUsers = gql`
|
export const searchUsers = gql`
|
||||||
${userFragment}
|
${userFragment}
|
||||||
|
|
||||||
query($query: String!, $firstUsers: Int, $usersOffset: Int) {
|
query ($query: String!, $firstUsers: Int, $usersOffset: Int) {
|
||||||
searchUsers(query: $query, firstUsers: $firstUsers, usersOffset: $usersOffset) {
|
searchUsers(query: $query, firstUsers: $firstUsers, usersOffset: $usersOffset) {
|
||||||
userCount
|
userCount
|
||||||
users {
|
users {
|
||||||
@ -67,7 +67,7 @@ export const searchUsers = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const searchHashtags = 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) {
|
searchHashtags(query: $query, firstHashtags: $firstHashtags, hashtagsOffset: $hashtagsOffset) {
|
||||||
hashtagCount
|
hashtagCount
|
||||||
hashtags {
|
hashtags {
|
||||||
|
|||||||
@ -68,7 +68,7 @@ export const notificationQuery = (i18n) => {
|
|||||||
${commentFragment}
|
${commentFragment}
|
||||||
${postFragment}
|
${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) {
|
notifications(read: $read, orderBy: $orderBy, first: $first, offset: $offset) {
|
||||||
id
|
id
|
||||||
read
|
read
|
||||||
@ -107,7 +107,7 @@ export const markAsReadMutation = (i18n) => {
|
|||||||
${commentFragment}
|
${commentFragment}
|
||||||
${postFragment}
|
${postFragment}
|
||||||
|
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
markAsRead(id: $id) {
|
markAsRead(id: $id) {
|
||||||
id
|
id
|
||||||
read
|
read
|
||||||
@ -180,7 +180,7 @@ export const followUserMutation = (i18n) => {
|
|||||||
${userFragment}
|
${userFragment}
|
||||||
${userCountsFragment}
|
${userCountsFragment}
|
||||||
|
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
followUser(id: $id) {
|
followUser(id: $id) {
|
||||||
...user
|
...user
|
||||||
...userCounts
|
...userCounts
|
||||||
@ -200,7 +200,7 @@ export const unfollowUserMutation = (i18n) => {
|
|||||||
${userFragment}
|
${userFragment}
|
||||||
${userCountsFragment}
|
${userCountsFragment}
|
||||||
|
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
unfollowUser(id: $id) {
|
unfollowUser(id: $id) {
|
||||||
...user
|
...user
|
||||||
...userCounts
|
...userCounts
|
||||||
@ -217,7 +217,7 @@ export const unfollowUserMutation = (i18n) => {
|
|||||||
|
|
||||||
export const updateUserMutation = () => {
|
export const updateUserMutation = () => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation(
|
mutation (
|
||||||
$id: ID!
|
$id: ID!
|
||||||
$slug: String
|
$slug: String
|
||||||
$name: String
|
$name: String
|
||||||
@ -260,7 +260,7 @@ export const updateUserMutation = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const checkSlugAvailableQuery = gql`
|
export const checkSlugAvailableQuery = gql`
|
||||||
query($slug: String!) {
|
query ($slug: String!) {
|
||||||
User(slug: $slug) {
|
User(slug: $slug) {
|
||||||
slug
|
slug
|
||||||
}
|
}
|
||||||
@ -303,7 +303,7 @@ export const userDataQuery = (i18n) => {
|
|||||||
${userFragment}
|
${userFragment}
|
||||||
${postFragment}
|
${postFragment}
|
||||||
${commentFragment}
|
${commentFragment}
|
||||||
query($id: ID!) {
|
query ($id: ID!) {
|
||||||
userData(id: $id) {
|
userData(id: $id) {
|
||||||
user {
|
user {
|
||||||
...user
|
...user
|
||||||
|
|||||||
@ -10,7 +10,7 @@ export const FetchAllRoles = () => {
|
|||||||
|
|
||||||
export const updateUserRole = (role, id) => {
|
export const updateUserRole = (role, id) => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation($role: UserRole!, $id: ID!) {
|
mutation ($role: UserRole!, $id: ID!) {
|
||||||
switchUserRole(role: $role, id: $id) {
|
switchUserRole(role: $role, id: $id) {
|
||||||
name
|
name
|
||||||
role
|
role
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
export const queryLocations = () => gql`
|
export const queryLocations = () => gql`
|
||||||
query($place: String!, $lang: String!) {
|
query ($place: String!, $lang: String!) {
|
||||||
queryLocations(place: $place, lang: $lang) {
|
queryLocations(place: $place, lang: $lang) {
|
||||||
place_name
|
place_name
|
||||||
id
|
id
|
||||||
|
|||||||
@ -20,7 +20,7 @@ export const blockedUsers = () => {
|
|||||||
|
|
||||||
export const blockUser = () => {
|
export const blockUser = () => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
blockUser(id: $id) {
|
blockUser(id: $id) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
@ -33,7 +33,7 @@ export const blockUser = () => {
|
|||||||
|
|
||||||
export const unblockUser = () => {
|
export const unblockUser = () => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
unblockUser(id: $id) {
|
unblockUser(id: $id) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
|||||||
@ -20,7 +20,7 @@ export const mutedUsers = () => {
|
|||||||
|
|
||||||
export const muteUser = () => {
|
export const muteUser = () => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
muteUser(id: $id) {
|
muteUser(id: $id) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
@ -33,7 +33,7 @@ export const muteUser = () => {
|
|||||||
|
|
||||||
export const unmuteUser = () => {
|
export const unmuteUser = () => {
|
||||||
return gql`
|
return gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
unmuteUser(id: $id) {
|
unmuteUser(id: $id) {
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
|
|||||||
@ -139,7 +139,7 @@ export default {
|
|||||||
User: {
|
User: {
|
||||||
query() {
|
query() {
|
||||||
return gql`
|
return gql`
|
||||||
query($filter: _UserFilter, $first: Int, $offset: Int, $email: String) {
|
query ($filter: _UserFilter, $first: Int, $offset: Int, $email: String) {
|
||||||
User(
|
User(
|
||||||
email: $email
|
email: $email
|
||||||
filter: $filter
|
filter: $filter
|
||||||
|
|||||||
@ -19,7 +19,7 @@ import PersistentLinks from '~/mixins/persistentLinks.js'
|
|||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
queryId: gql`
|
queryId: gql`
|
||||||
query($idOrSlug: ID) {
|
query ($idOrSlug: ID) {
|
||||||
Post(id: $idOrSlug) {
|
Post(id: $idOrSlug) {
|
||||||
id
|
id
|
||||||
slug
|
slug
|
||||||
@ -27,7 +27,7 @@ const options = {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
querySlug: gql`
|
querySlug: gql`
|
||||||
query($idOrSlug: String) {
|
query ($idOrSlug: String) {
|
||||||
Post(slug: $idOrSlug) {
|
Post(slug: $idOrSlug) {
|
||||||
id
|
id
|
||||||
slug
|
slug
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import PersistentLinks from '~/mixins/persistentLinks.js'
|
|||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
queryId: gql`
|
queryId: gql`
|
||||||
query($idOrSlug: ID) {
|
query ($idOrSlug: ID) {
|
||||||
User(id: $idOrSlug) {
|
User(id: $idOrSlug) {
|
||||||
id
|
id
|
||||||
slug
|
slug
|
||||||
@ -16,7 +16,7 @@ const options = {
|
|||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
querySlug: gql`
|
querySlug: gql`
|
||||||
query($idOrSlug: String) {
|
query ($idOrSlug: String) {
|
||||||
User(slug: $idOrSlug) {
|
User(slug: $idOrSlug) {
|
||||||
id
|
id
|
||||||
slug
|
slug
|
||||||
|
|||||||
@ -112,7 +112,7 @@ export default {
|
|||||||
let mutation, variables, successMessage
|
let mutation, variables, successMessage
|
||||||
if (isCreation) {
|
if (isCreation) {
|
||||||
mutation = gql`
|
mutation = gql`
|
||||||
mutation($url: String!) {
|
mutation ($url: String!) {
|
||||||
CreateSocialMedia(url: $url) {
|
CreateSocialMedia(url: $url) {
|
||||||
id
|
id
|
||||||
url
|
url
|
||||||
@ -123,7 +123,7 @@ export default {
|
|||||||
successMessage = thisList.$t('settings.social-media.successAdd')
|
successMessage = thisList.$t('settings.social-media.successAdd')
|
||||||
} else {
|
} else {
|
||||||
mutation = gql`
|
mutation = gql`
|
||||||
mutation($id: ID!, $url: String!) {
|
mutation ($id: ID!, $url: String!) {
|
||||||
UpdateSocialMedia(id: $id, url: $url) {
|
UpdateSocialMedia(id: $id, url: $url) {
|
||||||
id
|
id
|
||||||
url
|
url
|
||||||
@ -160,7 +160,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
await thisList.$apollo.mutate({
|
await thisList.$apollo.mutate({
|
||||||
mutation: gql`
|
mutation: gql`
|
||||||
mutation($id: ID!) {
|
mutation ($id: ID!) {
|
||||||
DeleteSocialMedia(id: $id) {
|
DeleteSocialMedia(id: $id) {
|
||||||
id
|
id
|
||||||
url
|
url
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user