This file contains hidden or 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 { Field, connect } from 'formik'; | |
import { | |
FormLabel, | |
FormGroup, | |
FormFeedback, | |
FormHelper, | |
} from 'common/components/Form'; | |
import { FirstMatchingNodeTarget } from 'common/components/Form/FirstMatchingNodeTarget'; | |
import scrollIntoView from 'smooth-scroll-into-view-if-needed'; |
This file contains hidden or 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
'use strict'; | |
import * as uuid from 'uuid'; | |
import { Client, ClientDao } from '../dao/ClientDao'; | |
import { Token, TokenDao } from '../dao/TokenDao'; | |
import { User, UserDao } from '../dao/UserDao'; | |
export const getAccessToken = async (bearerToken: string) => { | |
const token = await TokenDao.loadByToken(bearerToken); |
This file contains hidden or 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
Formik | |
IDLE* | |
setFieldValue -> VALIDATING | |
setValues -> VALIDATING | |
setTouched -> VALIDATING | |
setFieldTouched -> VALIDATING | |
handleChange -> VALIDATING | |
handleBlur -> VALIDATING | |
handleSubmit -> Submit Attempted | |
submitForm -> Submit Attempted |
This file contains hidden or 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
Knowledge Base Landing Page | |
Logged In | |
Has Wiki Access | |
redirect -> Wiki | |
No Wiki Access | |
click purchase 99 button -> Member Wiki Checkout | |
Logged Out* | |
click purchase 99 button -> Member Login Before Wiki Checkout | |
click purchase 649 button -> Prospect Signup | |
This file contains hidden or 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
Landing Page | |
Member | |
click purchase 99 button -> Members Checkout | |
click already subscribed -> Member Login | |
Non Member* | |
click purchase 649 button -> Prospect Signup | |
click purchase as a member button -> Member Login | |
click already subscribed -> Member Login | |
Member Login |
This file contains hidden or 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 createHoverMonitor from './createHoverMonitor'; | |
import { element, func, oneOfType } from 'prop-types'; | |
import React, { Component } from 'react'; | |
const hover = createHoverMonitor(); | |
/** | |
* Use: | |
* <Hoverable> | |
* {(hover) => <View style={hover && styles.hovered} />} |
This file contains hidden or 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
if (typeof window!=='undefined' && navigator.serviceWorker && navigator.serviceWorker.controller) { | |
let reloadOnNext = false; | |
let pushState = history.pushState; | |
history.pushState = function(state, title, url) { | |
pushState.call(this, state, title, url); | |
if (reloadOnNext===true) location.reload(true); | |
}; | |
navigator.serviceWorker.controller.addEventListener('statechange', e => { |
This file contains hidden or 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
// ./postinstall.js | |
'use strict'; | |
const fs = require('fs'); | |
const RN_TSD = __dirname + '/node_modules/@types/react-native/index.d.ts'; | |
const raw = fs.readFileSync(RN_TSD); | |
// Fix @types/node conflict | |
// @see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15960 |
This file contains hidden or 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
'use strict'; | |
const autoprefixer = require('autoprefixer'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const path = require('path'); | |
const scssPlugin = new ExtractTextPlugin( | |
'static/css/[name].[contenthash:8].css' | |
); | |
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); | |
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer') |
This file contains hidden or 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 { throttle } from 'common/utils/throttle'; | |
export interface ScaleToViewportProps { | |
height: number; | |
width: number; | |
verticalPadding: number; | |
horizontalPadding: number; | |
throttle: number; | |
render: (props: ScaleToViewportState) => React.ReactNode; |