Moving the GraphQL folder one directory higher
This commit is contained in:
1 parent
70d1f20ece
commit
2e4f3c253a
8 files changed
+3
-3
No files matched your search
@@ -6,7 +6,7 @@ import { withStyles } from '@material-ui/core/styles'
|
||||
|
||||
import styles from './styles'
|
||||
|
||||
import { showEventCalls } from '../../GraphQL/Calls/index'
|
||||
import { showEventCalls } from '../../../GraphQL/Calls/index'
|
||||
|
||||
class Edit extends React.Component {
|
||||
render () {
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import gql from 'graphql-tag'
|
||||
import { eventMinimalInfo } from '../Fragments'
|
||||
|
||||
const HOSTS_HOSTEVENT = gql`
|
||||
mutation Hosts_HostEvent($name: String!, $description: String!, $startDatetime: Int!, $finishDatetime: Int!) {
|
||||
hosts_HostEvent(name: $name, description: $description, startDatetime: $startDatetime, finishDatetime: $finishDatetime) {
|
||||
...EventMinimalInfo
|
||||
}
|
||||
}
|
||||
${eventMinimalInfo}
|
||||
`
|
||||
const HOSTS_EVENTSBYHOST = gql`
|
||||
query Hosts_EventsByHost{
|
||||
hosts_EventsByHost {
|
||||
...EventMinimalInfo
|
||||
}
|
||||
}
|
||||
${eventMinimalInfo}
|
||||
`
|
||||
export default {
|
||||
HOSTS_HOSTEVENT,
|
||||
HOSTS_EVENTSBYHOST
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import hostedEventsCalls from './hostedEvents'
|
||||
import showEventCalls from './showEvent'
|
||||
|
||||
export {
|
||||
hostedEventsCalls,
|
||||
showEventCalls
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
import gql from 'graphql-tag'
|
||||
import { eventFullInfo } from '../Fragments'
|
||||
|
||||
const HOSTS_EVENT = gql`
|
||||
query Hosts_Event($designator: ID!) {
|
||||
hosts_Event(designator: $designator) {
|
||||
...EventFullInfo
|
||||
}
|
||||
}
|
||||
${eventFullInfo}
|
||||
`
|
||||
|
||||
export default {
|
||||
HOSTS_EVENT
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
import gql from 'graphql-tag'
|
||||
|
||||
export const eventMinimalInfo = gql`
|
||||
fragment EventMinimalInfo on hosts_Event {
|
||||
name
|
||||
designator
|
||||
startDatetime
|
||||
finishDatetime
|
||||
host {
|
||||
alias
|
||||
firstName
|
||||
lastName
|
||||
}
|
||||
description
|
||||
}
|
||||
`
|
||||
|
||||
export const eventFullInfo = gql`
|
||||
fragment EventFullInfo on hosts_Event {
|
||||
designator
|
||||
name
|
||||
host{
|
||||
alias
|
||||
firstName
|
||||
lastName
|
||||
}
|
||||
description
|
||||
startDatetime
|
||||
finishDatetime
|
||||
formula{
|
||||
name
|
||||
}
|
||||
plotter{
|
||||
name
|
||||
host
|
||||
repo
|
||||
moduleName
|
||||
}
|
||||
rules{
|
||||
position
|
||||
title
|
||||
description
|
||||
}
|
||||
participants{
|
||||
team{
|
||||
name
|
||||
}
|
||||
botId
|
||||
releaseId
|
||||
}
|
||||
prizes{
|
||||
rank
|
||||
amount
|
||||
additional{
|
||||
condition
|
||||
amount
|
||||
asset
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
@@ -1,9 +0,0 @@
|
||||
import {
|
||||
eventMinimalInfo,
|
||||
eventFullInfo
|
||||
} from './event'
|
||||
|
||||
export {
|
||||
eventMinimalInfo,
|
||||
eventFullInfo
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import { Mutation } from 'react-apollo'
|
||||
import { hostedEventsCalls } from '../GraphQL/Calls/index'
|
||||
import { hostedEventsCalls } from '../../GraphQL/Calls/index'
|
||||
import { DateTime } from 'luxon'
|
||||
|
||||
import {
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
import { withStyles } from '@material-ui/core/styles'
|
||||
import styles from './styles'
|
||||
|
||||
import { hostedEventsCalls } from '../GraphQL/Calls/index'
|
||||
import { hostedEventsCalls } from '../../GraphQL/Calls/index'
|
||||
|
||||
import New from './New'
|
||||
import Event from './Event'
|
||||
|
||||
Reference in new issue
Block a user