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 YAML = require('yamljs'); | |
const globby = require('globby'); | |
const fs = require('fs-extra'); | |
const path = require('path'); | |
const styleDictionary = require('style-dictionary'); | |
const convertStringValues = obj => | |
Object.keys(obj).reduce((acc, key) => { | |
const item = obj[key]; | |
const hasValueKey = !!item.value; |
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 request = require('request'); | |
const fs = require('fs'); | |
const executeRequest = (deviceName) => { | |
const options = { | |
url: | |
'https://api.saasify.sh/1/call/transitive-bullshit/puppet-master@a818aeac/screenshot', | |
qs: { | |
url: 'https://google.com', | |
emulateDevice: deviceName |
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
import * as React from 'react'; | |
import { Mutation, ApolloConsumer } from 'react-apollo'; | |
import { ApolloClient } from 'apollo-client'; | |
import { Formik, FormikProps, Form } from 'formik'; | |
import { DocumentNode } from 'graphql'; | |
interface ApolloFormProps<T> { | |
afterSubmit?: (values: T) => void; | |
children: (formikBag: FormikProps<T>) => React.ReactNode; | |
initialValues: T; |