Frontend application of Bearer's dashboard.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
overwrite: true | |
schema: | |
url-to-schema: | |
loader: schema-loader.js | |
documents: 'src/**/*.graphql' | |
generates: | |
generated/introspection.ts: | |
plugins: | |
- fragment-matcher | |
generated/graphql.tsx: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require('https') | |
const http = require('http') | |
const URL = require('url') | |
const { buildSchema } = require('graphql') | |
module.exports = async function(schemaString, config) { | |
try { | |
const schema = await getSchema(schemaString) | |
return buildSchema(schema.toString()) | |
} catch (e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const remediationsData = { | |
data: { | |
remediations: { | |
nodes: [ | |
{ | |
type: RemediationTypeEnum.BlockRequest, | |
timestamp: '2020-03-11T05:03:09Z', | |
rule: { | |
name: 'rule name' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
// general | |
name: 'a new rule', | |
apiId: 'ABC1234', // or '' for all | |
// environments | |
developmentEnvironment: false, | |
stagingEnvironment: false, | |
productionEnvironment: false, |
I hereby claim:
- I am riencoertjens on github.
- I am riencoertjens (https://keybase.io/riencoertjens) on keybase.
- I have a public key ASBUa0a1W03dhRwY3wz1OusgHLulOKBOGKKuE4GpMkctngo
To claim this, I am signing this object: