' 228 | ? '
' + type + description.slice(3) 229 | : type + description) + 230 | '
├── .dockerignore ├── .npmignore ├── .prettierrc ├── jest.config.js ├── src ├── editor │ ├── custom.d.ts │ ├── GraphQLEditor │ │ ├── README.md │ │ ├── GraphQLEditor.tsx │ │ └── editor.css │ ├── .prettierrc │ ├── tsconfig.json │ ├── .eslintrc │ ├── index.html │ ├── icons.tsx │ ├── css │ │ ├── app.css │ │ └── codemirror.css │ ├── logo.svg │ └── index.tsx ├── default-schema.graphql ├── default-extend.graphql ├── utils.ts ├── cli.ts ├── fake_definition.ts ├── proxy.ts ├── index.ts ├── __tests__ │ └── resolvers.test.ts └── resolvers.ts ├── Dockerfile ├── tsconfig.json ├── .gitignore ├── LICENSE ├── webpack.config.js ├── package.json └── README.md /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | * 2 | !Dockerfile 3 | !.dockerignore 4 | !dist/** 5 | !package.json 6 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all" 4 | } 5 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | }; 5 | -------------------------------------------------------------------------------- /src/editor/custom.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.css' { 2 | var content: any; 3 | export = content; 4 | } 5 | -------------------------------------------------------------------------------- /src/editor/GraphQLEditor/README.md: -------------------------------------------------------------------------------- 1 | ## GraphQL Editor 2 | 3 | This component was isolated from Graphiql Query Editor 4 | It will be published as a separate component 5 | -------------------------------------------------------------------------------- /src/editor/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 100, 3 | "tabWidth": 2, 4 | "useTabs": false, 5 | "semi": true, 6 | "singleQuote": true, 7 | "trailingComma": "all" 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:14.3.0-alpine 2 | 3 | ENTRYPOINT ["node", "/usr/local/bin/graphql-faker"] 4 | WORKDIR /workdir 5 | 6 | EXPOSE 9002 7 | 8 | RUN yarn global add graphql-faker && \ 9 | yarn cache clean --force 10 | -------------------------------------------------------------------------------- /src/editor/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "preserveConstEnums": true, 4 | "strictNullChecks": true, 5 | "sourceMap": true, 6 | "target": "es5", 7 | "outDir": "dist", 8 | "moduleResolution": "node", 9 | "lib": ["es2017", "dom"], 10 | "jsx": "react" 11 | }, 12 | "exclude": ["node_modules", "dist"], 13 | "include": ["./custom.d.ts", "**/*.tsx", "**/*.ts"] 14 | } 15 | -------------------------------------------------------------------------------- /src/editor/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "ecmaFeatures": { 3 | "jsx": true, 4 | "modules": true 5 | }, 6 | "extends": ["eslint:recommended"], 7 | "env": { 8 | "browser": true, 9 | "node": true 10 | }, 11 | "parser": "babel-eslint", 12 | "rules": { 13 | "quotes": [2, "single"], 14 | "strict": [2, "never"], 15 | "react/jsx-uses-react": 2, 16 | "react/jsx-uses-vars": 2, 17 | "react/react-in-jsx-scope": 2 18 | }, 19 | "plugins": ["react"] 20 | } 21 | -------------------------------------------------------------------------------- /src/editor/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 12 | 13 |' 228 | ? '
' + type + description.slice(3) 229 | : type + description) + 230 | '