mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
lint fixes
This commit is contained in:
parent
21960a5505
commit
d78585309a
@ -1,25 +1,25 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
export const subscribeNewsletter = gql`
|
export const subscribeNewsletter = gql`
|
||||||
mutation ($email: String!, $language: String!) {
|
mutation($email: String!, $language: String!) {
|
||||||
subscribeNewsletter(email: $email, language: $language)
|
subscribeNewsletter(email: $email, language: $language)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const unsubscribeNewsletter = gql`
|
export const unsubscribeNewsletter = gql`
|
||||||
mutation ($email: String!) {
|
mutation($email: String!) {
|
||||||
unsubscribeNewsletter(email: $email)
|
unsubscribeNewsletter(email: $email)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const resetPassword = gql`
|
export const resetPassword = gql`
|
||||||
mutation ($sessionId: Float!, $email: String!, $password: String!) {
|
mutation($sessionId: Float!, $email: String!, $password: String!) {
|
||||||
resetPassword(sessionId: $sessionId, email: $email, password: $password)
|
resetPassword(sessionId: $sessionId, email: $email, password: $password)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const updateUserInfos = gql`
|
export const updateUserInfos = gql`
|
||||||
mutation (
|
mutation(
|
||||||
$firstName: String
|
$firstName: String
|
||||||
$lastName: String
|
$lastName: String
|
||||||
$description: String
|
$description: String
|
||||||
@ -45,7 +45,7 @@ export const updateUserInfos = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const registerUser = gql`
|
export const registerUser = gql`
|
||||||
mutation (
|
mutation(
|
||||||
$firstName: String!
|
$firstName: String!
|
||||||
$lastName: String!
|
$lastName: String!
|
||||||
$email: String!
|
$email: String!
|
||||||
@ -63,7 +63,7 @@ export const registerUser = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const sendCoins = gql`
|
export const sendCoins = gql`
|
||||||
mutation ($email: String!, $amount: Float!, $memo: String!) {
|
mutation($email: String!, $amount: Float!, $memo: String!) {
|
||||||
sendCoins(email: $email, amount: $amount, memo: $memo)
|
sendCoins(email: $email, amount: $amount, memo: $memo)
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
export const login = gql`
|
export const login = gql`
|
||||||
query ($email: String!, $password: String!) {
|
query($email: String!, $password: String!) {
|
||||||
login(email: $email, password: $password) {
|
login(email: $email, password: $password) {
|
||||||
email
|
email
|
||||||
username
|
username
|
||||||
@ -24,7 +24,7 @@ export const logout = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const loginViaEmailVerificationCode = gql`
|
export const loginViaEmailVerificationCode = gql`
|
||||||
query ($optin: String!) {
|
query($optin: String!) {
|
||||||
loginViaEmailVerificationCode(optin: $optin) {
|
loginViaEmailVerificationCode(optin: $optin) {
|
||||||
sessionId
|
sessionId
|
||||||
email
|
email
|
||||||
@ -33,7 +33,7 @@ export const loginViaEmailVerificationCode = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const transactionsQuery = gql`
|
export const transactionsQuery = gql`
|
||||||
query ($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) {
|
query($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) {
|
||||||
transactionList(currentPage: $currentPage, pageSize: $pageSize, order: $order) {
|
transactionList(currentPage: $currentPage, pageSize: $pageSize, order: $order) {
|
||||||
gdtSum
|
gdtSum
|
||||||
count
|
count
|
||||||
@ -64,7 +64,7 @@ export const transactionsQuery = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const sendResetPasswordEmail = gql`
|
export const sendResetPasswordEmail = gql`
|
||||||
query ($email: String!) {
|
query($email: String!) {
|
||||||
sendResetPasswordEmail(email: $email) {
|
sendResetPasswordEmail(email: $email) {
|
||||||
state
|
state
|
||||||
}
|
}
|
||||||
@ -72,7 +72,7 @@ export const sendResetPasswordEmail = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const checkUsername = gql`
|
export const checkUsername = gql`
|
||||||
query ($username: String!) {
|
query($username: String!) {
|
||||||
checkUsername(username: $username) {
|
checkUsername(username: $username) {
|
||||||
state
|
state
|
||||||
}
|
}
|
||||||
@ -80,7 +80,7 @@ export const checkUsername = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const listGDTEntriesQuery = gql`
|
export const listGDTEntriesQuery = gql`
|
||||||
query ($currentPage: Int!, $pageSize: Int!) {
|
query($currentPage: Int!, $pageSize: Int!) {
|
||||||
listGDTEntries(currentPage: $currentPage, pageSize: $pageSize) {
|
listGDTEntries(currentPage: $currentPage, pageSize: $pageSize) {
|
||||||
count
|
count
|
||||||
gdtEntries {
|
gdtEntries {
|
||||||
@ -98,7 +98,7 @@ export const listGDTEntriesQuery = gql`
|
|||||||
`
|
`
|
||||||
|
|
||||||
export const checkEmailQuery = gql`
|
export const checkEmailQuery = gql`
|
||||||
query ($optin: String!) {
|
query($optin: String!) {
|
||||||
checkEmail(optin: $optin) {
|
checkEmail(optin: $optin) {
|
||||||
email
|
email
|
||||||
sessionId
|
sessionId
|
||||||
|
|||||||
@ -1,7 +1,15 @@
|
|||||||
import { mutations, actions } from './store'
|
import { mutations, actions } from './store'
|
||||||
|
|
||||||
const { language, email, token, username, firstName, lastName, description, newsletterState } =
|
const {
|
||||||
mutations
|
language,
|
||||||
|
email,
|
||||||
|
token,
|
||||||
|
username,
|
||||||
|
firstName,
|
||||||
|
lastName,
|
||||||
|
description,
|
||||||
|
newsletterState,
|
||||||
|
} = mutations
|
||||||
const { login, logout } = actions
|
const { login, logout } = actions
|
||||||
|
|
||||||
describe('Vuex store', () => {
|
describe('Vuex store', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user