Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-06-03 23:01:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
154364f7cd93f279fdd4be5424ed2947dba1540d
154364f7
1 parent
3ed53b59
change apollo-boost to graphql-tag
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
9 deletions
front/src/Components/App.js
front/src/Routes/Auth/AuthQueries.js
front/src/Routes/Category/CategoryQueries.js
front/src/Routes/Chat/ChatQueries.js
front/src/Routes/Menu/MenuContainer.js
front/src/Routes/Room/RoomQueries.js
front/src/Components/App.js
View file @
154364f
import
React
from
"react"
;
import
{
gql
}
from
"apollo-boost
"
;
import
gql
from
"graphql-tag
"
;
import
{
useQuery
}
from
"@apollo/react-hooks"
;
import
{
ThemeProvider
}
from
"styled-components"
;
import
GlobalStyles
from
"../Styles/GlobalStyles"
;
...
...
@@ -15,9 +15,12 @@ const QUERY = gql`
`
;
export
default
()
=>
{
const
{
data
:
{
isLoggedIn
},
}
=
useQuery
(
QUERY
);
const
{
data
}
=
useQuery
(
QUERY
);
let
isLoggedIn
;
if
(
data
!==
undefined
)
{
isLoggedIn
=
data
.
isLoggedIn
;
}
return
(
<
ThemeProvider
theme
=
{
Theme
}
>
...
...
front/src/Routes/Auth/AuthQueries.js
View file @
154364f
import
{
gql
}
from
"apollo-boost
"
;
import
gql
from
"graphql-tag
"
;
export
const
LOG_IN
=
gql
`
mutation login($email: String!, $password: String!) {
...
...
front/src/Routes/Category/CategoryQueries.js
View file @
154364f
import
{
gql
}
from
"apollo-boost
"
;
import
gql
from
"graphql-tag
"
;
export
const
GET_CATEGORIRES
=
gql
`
{
...
...
front/src/Routes/Chat/ChatQueries.js
View file @
154364f
import
{
gql
}
from
"apollo-boost
"
;
import
gql
from
"graphql-tag
"
;
export
const
SUBSCRIPTION_MSG
=
gql
`
subscription {
...
...
front/src/Routes/Menu/MenuContainer.js
View file @
154364f
import
React
from
"react"
;
import
{
useMutation
}
from
"@apollo/react-hooks"
;
import
{
gql
}
from
"apollo-boost
"
;
import
gql
from
"graphql-tag
"
;
import
MenuPresenter
from
"./MenuPresenter"
;
const
LOG_OUT
=
gql
`
...
...
front/src/Routes/Room/RoomQueries.js
View file @
154364f
import
{
gql
}
from
"apollo-boost
"
;
import
gql
from
"graphql-tag
"
;
export
const
GET_ROOMS
=
gql
`
{
...
...
Please
register
or
login
to post a comment