Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2015104215
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
장재혁
2021-05-30 22:21:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2510451005e0f60a4937ad794e52b1b7ef994cad
25104510
1 parent
ad46c444
complete API and WEB intergated
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
project/packages/web/package.json
project/packages/web/pages/_app.tsx
project/packages/web/pages/index.tsx
project/yarn.lock
project/packages/web/package.json
View file @
2510451
...
...
@@ -10,11 +10,12 @@
"start"
:
"next start"
},
"dependencies"
:
{
"@graphql-community/shared"
:
"1.0.0"
,
"@apollo/client"
:
"^3.1.3"
,
"@graphql-community/shared"
:
"1.0.0"
,
"@graphql-tools/load-files"
:
"6.0.18"
,
"@graphql-tools/merge"
:
"6.0.18"
,
"@graphql-tools/schema"
:
"6.0.18"
,
"antd"
:
"^4.16.0"
,
"apollo-server-micro"
:
"^2.16.1"
,
"graphql"
:
"15.3.0"
,
"next"
:
"latest"
,
...
...
project/packages/web/pages/_app.tsx
View file @
2510451
import { AppProps } from "next/app";
import { ApolloProvider } from "@apollo/client";
import { useApollo } from "../lib/apollo";
import "antd/dist/antd.css";
export default function App({ Component, pageProps }: AppProps) {
const apolloClient = useApollo(pageProps);
...
...
project/packages/web/pages/index.tsx
View file @
2510451
import { GetPostInput, Post } from "@graphql-community/shared";
import { useQuery, gql } from "@apollo/client";
import { message } from "antd";
const GET_SOME_POST_QUERY = gql`
query GetSomePosts($getSomePostInput: GetPostInput!) {
...
...
@@ -25,7 +26,7 @@ const Index = () => {
return (
<>
<div>index </div>
<div
onClick={() => message.success("hi")}
>index </div>
<div>{data?.getSomePosts[0].author}</div>
<div>{data?.getSomePosts[0].category}</div>
</>
...
...
project/yarn.lock
View file @
2510451
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment