├── .babelrc ├── .env ├── .eslintrc.json ├── .gitignore ├── .prettierrc.json ├── LICENSE ├── README.md ├── __tests__ └── src │ └── circularCheck.test.ts ├── additional.d.ts ├── components ├── EditorBox.tsx ├── Header.tsx ├── Metrics.tsx ├── NavBar.js ├── ResponseBox.tsx ├── ResultsBox.tsx ├── Security.tsx ├── URLBox.tsx └── schemaParser │ ├── CustomNode.js │ ├── QueryAttack.js │ ├── SchemaDisplayReactFlow.js │ └── SchemaInput.tsx ├── cypress.config.ts ├── cypress ├── component │ └── Header.cy.tsx ├── e2e │ └── safeQL.cy.ts ├── fixtures │ └── example.json └── support │ ├── commands.ts │ ├── component-index.html │ ├── component.ts │ └── e2e.ts ├── jest.config.js ├── latch_config.json ├── lib └── db.ts ├── next.config.js ├── package.json ├── pages ├── _app.tsx ├── api │ ├── endpointDelete.ts │ ├── endpointReturnAllForUser.ts │ ├── endpointSave.ts │ ├── schemaEndpoint.ts │ └── usersCreate.ts ├── index.js └── schemaParser.js ├── public ├── favicon.ico ├── safeQL-Logo.png ├── safeQL_name1.png ├── safeQL_name2.png ├── safeql-dark.png ├── safeql-light.png └── vercel.svg ├── server └── server.ts ├── src ├── cm6Theme.js ├── cmCustomSetup.js ├── context.tsx ├── customCMHighlight.js ├── parseSchema.tsx ├── queryService.js ├── schemaFuncs │ ├── circularCheck.js │ ├── constructRFEdges.js │ ├── constructRFNodes.js │ ├── generateCircularAttack.js │ └── schemaExamples.md └── types.tsx ├── styles ├── Home.module.css ├── components.css ├── globals.css └── input.css ├── tailwind.config.js └── tsconfig.json /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/.babelrc -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/.env -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/src/circularCheck.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/__tests__/src/circularCheck.test.ts -------------------------------------------------------------------------------- /additional.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/additional.d.ts -------------------------------------------------------------------------------- /components/EditorBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/EditorBox.tsx -------------------------------------------------------------------------------- /components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/Header.tsx -------------------------------------------------------------------------------- /components/Metrics.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/Metrics.tsx -------------------------------------------------------------------------------- /components/NavBar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/NavBar.js -------------------------------------------------------------------------------- /components/ResponseBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/ResponseBox.tsx -------------------------------------------------------------------------------- /components/ResultsBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/ResultsBox.tsx -------------------------------------------------------------------------------- /components/Security.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/Security.tsx -------------------------------------------------------------------------------- /components/URLBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/URLBox.tsx -------------------------------------------------------------------------------- /components/schemaParser/CustomNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/schemaParser/CustomNode.js -------------------------------------------------------------------------------- /components/schemaParser/QueryAttack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/schemaParser/QueryAttack.js -------------------------------------------------------------------------------- /components/schemaParser/SchemaDisplayReactFlow.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/schemaParser/SchemaDisplayReactFlow.js -------------------------------------------------------------------------------- /components/schemaParser/SchemaInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/components/schemaParser/SchemaInput.tsx -------------------------------------------------------------------------------- /cypress.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/cypress.config.ts -------------------------------------------------------------------------------- /cypress/component/Header.cy.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/cypress/component/Header.cy.tsx -------------------------------------------------------------------------------- /cypress/e2e/safeQL.cy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/cypress/e2e/safeQL.cy.ts -------------------------------------------------------------------------------- /cypress/fixtures/example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/cypress/fixtures/example.json -------------------------------------------------------------------------------- /cypress/support/commands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/cypress/support/commands.ts -------------------------------------------------------------------------------- /cypress/support/component-index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/cypress/support/component-index.html -------------------------------------------------------------------------------- /cypress/support/component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/cypress/support/component.ts -------------------------------------------------------------------------------- /cypress/support/e2e.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/cypress/support/e2e.ts -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/jest.config.js -------------------------------------------------------------------------------- /latch_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/latch_config.json -------------------------------------------------------------------------------- /lib/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/lib/db.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/endpointDelete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/pages/api/endpointDelete.ts -------------------------------------------------------------------------------- /pages/api/endpointReturnAllForUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/pages/api/endpointReturnAllForUser.ts -------------------------------------------------------------------------------- /pages/api/endpointSave.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/pages/api/endpointSave.ts -------------------------------------------------------------------------------- /pages/api/schemaEndpoint.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/pages/api/schemaEndpoint.ts -------------------------------------------------------------------------------- /pages/api/usersCreate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/pages/api/usersCreate.ts -------------------------------------------------------------------------------- /pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/pages/index.js -------------------------------------------------------------------------------- /pages/schemaParser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/pages/schemaParser.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/safeQL-Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/public/safeQL-Logo.png -------------------------------------------------------------------------------- /public/safeQL_name1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/public/safeQL_name1.png -------------------------------------------------------------------------------- /public/safeQL_name2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/public/safeQL_name2.png -------------------------------------------------------------------------------- /public/safeql-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/public/safeql-dark.png -------------------------------------------------------------------------------- /public/safeql-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/public/safeql-light.png -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /server/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/server/server.ts -------------------------------------------------------------------------------- /src/cm6Theme.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/cm6Theme.js -------------------------------------------------------------------------------- /src/cmCustomSetup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/cmCustomSetup.js -------------------------------------------------------------------------------- /src/context.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/context.tsx -------------------------------------------------------------------------------- /src/customCMHighlight.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/customCMHighlight.js -------------------------------------------------------------------------------- /src/parseSchema.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/parseSchema.tsx -------------------------------------------------------------------------------- /src/queryService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/queryService.js -------------------------------------------------------------------------------- /src/schemaFuncs/circularCheck.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/schemaFuncs/circularCheck.js -------------------------------------------------------------------------------- /src/schemaFuncs/constructRFEdges.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/schemaFuncs/constructRFEdges.js -------------------------------------------------------------------------------- /src/schemaFuncs/constructRFNodes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/schemaFuncs/constructRFNodes.js -------------------------------------------------------------------------------- /src/schemaFuncs/generateCircularAttack.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/schemaFuncs/generateCircularAttack.js -------------------------------------------------------------------------------- /src/schemaFuncs/schemaExamples.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/schemaFuncs/schemaExamples.md -------------------------------------------------------------------------------- /src/types.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/src/types.tsx -------------------------------------------------------------------------------- /styles/Home.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/styles/Home.module.css -------------------------------------------------------------------------------- /styles/components.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/styles/components.css -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/styles/globals.css -------------------------------------------------------------------------------- /styles/input.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/styles/input.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/safeql/HEAD/tsconfig.json --------------------------------------------------------------------------------