This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +39
-14
lines changed Expand file tree Collapse file tree 6 files changed +39
-14
lines changed Original file line number Diff line number Diff line change 2
2
"schemaPath": "schema.graphql",
3
3
"extensions": {
4
4
"endpoints": {
5
+ "example": {
6
+ "url": "http://localhost:4000/api/graphiql"
7
+ },
8
+ "book": {
9
+ "url": "http://localhost:5000/graphiql"
10
+ },
5
11
"test": {
6
12
"url": "https://api.graph.cool/simple/v1/swapi"
7
13
},
Original file line number Diff line number Diff line change @@ -29,6 +29,18 @@ module.exports = {
29
29
loader: 'raw-loader',
30
30
})
31
31
*/
32
+ /*
33
+ config.module.rules.push(
34
+ {
35
+ test: /\.css$/,
36
+ use: ['style-loader', 'css-loader'],
37
+ },
38
+ {
39
+ test: /\.(svg|eot|ttf|woff|woff2)$/,
40
+ use: 'url-loader',
41
+ }
42
+ )
43
+ */
32
44
33
45
if ( ANALYZE ) {
34
46
config . plugins . push (
Original file line number Diff line number Diff line change 21
21
"analyze" : " cross-env ANALYZE=1 next build" ,
22
22
"api:play" : " GRAPHQL_CONFIG_ENDPOINT_NAME=mastani graphql playground" ,
23
23
"api:graph" : " graphql voyager" ,
24
+ "graph:mastani" : " graphql get-schema -e mastani && head ./schema.graphql" ,
25
+ "graph:example" : " graphql get-schema -e example && graphql voyager" ,
24
26
"coveralls" : " cat ./coverage/lcov.info | coveralls"
25
27
},
26
28
"lint-staged" : {
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ export default class MyDocument extends Document {
16
16
href = "http://image.mzliaoba.com/lib/antd.css"
17
17
rel = "stylesheet"
18
18
/>
19
+ { /* <link */ }
20
+ { /* href="https://cdn.bootcss.com/graphiql/0.11.10/graphiql.min.css" */ }
21
+ { /* rel="stylesheet" */ }
22
+ { /* /> */ }
23
+ { /* <link */ }
24
+ { /* href="https://raw.githubusercontent.com/mydearxym/cdn/master/voyager.css" */ }
25
+ { /* rel="stylesheet" */ }
26
+ { /* /> */ }
27
+
19
28
{ styleTags }
20
29
</ Head >
21
30
< body >
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ export default class Index extends React.Component {
36
36
this . store = initRootStore ( props . isServer , props . langSetup )
37
37
}
38
38
39
+ // <Playground endpoint="https://api.graph.cool/simple/v1/swapi" />
40
+
39
41
render ( ) {
40
42
return (
41
43
< Provider store = { this . store } >
@@ -45,7 +47,7 @@ export default class Index extends React.Component {
45
47
< Doraemon />
46
48
< ApiLayout >
47
49
< Header />
48
- < div > hallo? </ div >
50
+ < div style = { { marginTop : '2vh' } } > api </ div >
49
51
</ ApiLayout >
50
52
</ MultiLanguage >
51
53
</ ThemeWrapper >
Original file line number Diff line number Diff line change 1
- # source: http://localhost:4001 /graphiql
2
- # timestamp: Fri Nov 24 2017 23:04:58 GMT+0800 (CST)
1
+ # source: http://localhost:5000 /graphiql
2
+ # timestamp: Mon Dec 11 2017 11:46:04 GMT+0800 (CST)
3
3
4
4
schema {
5
5
query : RootQueryType
6
- mutation : RootMutationType
7
6
}
8
7
9
- type Link {
10
- description : String !
11
- id : ID !
12
- url : String !
13
- }
14
-
15
- type RootMutationType {
16
- createLink (description : String ! , url : String ! ): Link
8
+ type MenuItem {
9
+ description : String
10
+ id : ID
11
+ name : String
17
12
}
18
13
19
14
type RootQueryType {
20
- # hehehef: Get all links
21
- allLinks : [Link ! ]!
15
+ menuItems : [MenuItem ]
22
16
}
You can’t perform that action at this time.
0 commit comments