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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFt1MBkBEADHMdrirvRavPbX74YwnYLDKBYF+TKG+2S2Yzrqe7reAXbwU4+l | |
Rf2CWWfaNuyNg5sInjWs9jdzgrwOx3faJZBl/2TnabY7xMutgKTkh3hXF6Oy2OEu | |
C+stYR4vzQHLrXGMH0iCjhxICh29On7Swk1OsY7R+4B1gmcSZ2FqyBBK4feM0Yb1 | |
LJJ/K+xCJQ3KkoUnogA/n7utHDWRjTIdZsObeVxBln0D4fagPMPmDg0Jlup/THfk | |
SLKqG0FBCVS6dW8GS+GwIib3OzXeOpD3va99qvSg77gZTtf9LVtlwbYmgT0AUh3Z | |
a9ewxdup3yf/sIsBtg2K1FpKqp0gOtnafHy46zbQ8jkzNA58sVPyXsMIdPx3THV5 | |
M4ttIv0ateoJ9NWedk68eM6Ysg5lPaJ9Oxs5A7s1ojN5Y15vNNEnu0biF/67w59x | |
97iSvuywQv1qoZWeN8KzsIOr5kCs48qUMauknuijMBph4nPIGbSapKs50B3HTaZZ |
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
#!/bin/bash | |
COMMIT_SHA=$1 | |
PROJECT=bay6-next | |
REPO_NAME=github-<user/organisation>-<repo> | |
BUILD_BUCKET=gs://builds.example.com | |
TOKEN=$(gcloud auth application-default print-access-token) | |
curl https://cloudbuild.googleapis.com/v1/projects/${PROJECT}/builds \ | |
--request POST \ |
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
function FindProxyForURL(url, host){ | |
return "PROXY 127.0.0.1:1081; DIRECT"; | |
} |
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 '@firebase/auth'; | |
import firebase from '@firebase/app'; | |
const callbacks = new Set(); | |
export default { | |
signIn() { | |
const provider = new firebase.auth.FacebookAuthProvider(); | |
return firebase.auth().signInWithPopup(provider); | |
}, |
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 auth from '../auth'; | |
const defaultState = { error: null, loading: false }; | |
class LoginDialog extends React.Component { | |
state = { ...defaultState }; | |
signIn = event => { | |
this.setState({ ...defaultState, loading: true }); | |
auth |
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 auth from '../auth' | |
class App extends React.Component { | |
state = { signInOpen: false }; | |
componentDidMount() { | |
this.offShowSignInDialog = auth.onShowSignInDialog(() => { | |
this.setState({ signInOpen: true }); | |
}); | |
} |
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 { | |
showSignInDialog() {/* ... */}, | |
signIn() {/* ... */}, | |
signOut() {/* ... */}, | |
onShowSignInDialog(cb) {/* ... */}, | |
onAuthStateChange(cb) {/* ... */} | |
} |
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 React from 'react'; | |
import { graphql, QueryRenderer } from 'react-relay'; | |
import relay from '../relay'; | |
import router from '../router'; | |
import history from '../history'; | |
import AppRenderer from './AppRenderer'; | |
class App extends React.Component { | |
state = { |
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 { Environment, Network, RecordSource, Store } from 'relay-runtime'; | |
function fetchQuery(operation, variables) { | |
return fetch( | |
'https://graphql-demo.kriasoft.com/', | |
{ | |
method: 'POST', | |
headers: { | |
// Add authentication and other headers here | |
'content-type': 'application/json', |
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
/* @flow */ | |
import React from 'react'; | |
import { graphql } from 'relay-runtime'; | |
export default { | |
path: '/leads', | |
query: graphql`query LeadsQuery { | |
me { ...Layout_me ...Leads_me } | |
leads { ...Leads_leads } |