$ git clone https://github.com/hyperledger/sawtooth-seth$ cd sawtooth-seth
- Build with
$ docker build . -f docs/Dockerfile -t seth-build-docs - Run with
$ docker run -v $(pwd)/docs:/project/sawtooth-seth/docs seth-build-docs
This Gist was automatically created by Carbide, a free online programming environment.
| You can ssh into the VM by finding the IP (from kubectl config view) and using username "docker" password "tcuser": | |
| ssh [email protected] |
| // https://github.com/erikras/redux-form/releases/tag/v6.0.0-alpha.14 | |
| Let's look at what that means: | |
| WRONG: :cry: :-1: | |
| class MyForm extends Component { | |
| render() { | |
| const { handleSubmit } = this.props |
| refs: { | |
| [string: string]: any; | |
| textarea: any; // this should be the same as the html tag | |
| selectedTabTitle: any; | |
| } | |
| <textarea > </textarea> |
| // a Form | |
| class FormBase extends React.Component<any, {}>{ | |
| render() { | |
| return ( | |
| <form onSubmit={this.props.handleSubmit}> | |
| <div> | |
| <label>Username</label> | |
| <Field component='input' className="form-control" type="text" placeholder="First Name" name='username'/> | |
| </div> | |
| </form> |
| class ClassBase extends React.Component<any, any>{ | |
| componentWillMount = function (): any { | |
| const {topicList, dispatch} = this.props; | |
| dispatch(fetchTopics()); | |
| }; | |
| render() { | |
| return ( | |
| <div></div> | |
| ); |
| router.get('/api/v1/auth/github/callback', | |
| return passport.authenticate('github', {sucessRedirect: '/'}); | |
| ); | |
| ==> | |
| router.get('/api/v1/auth/github/callback', | |
| async (ctx: any, next: any) => { | |
| return passport.authenticate('github', (user: any, info: any, status: any) => { | |
| ctx.redirect('/'); | |
| })(ctx, next); | |
| } |
| /** | |
| * Type definitions for Redux-form v6. | |
| * Updated for 6.0.0-rc.3 including splitting of Field properties to 'input'. | |
| */ | |
| import {Component, ComponentClass, StatelessComponent, ReactElement, ReactEventHandler, SyntheticEvent} from 'react'; | |
| import {Dispatch, Reducer, Action} from 'redux'; | |
| declare namespace ReduxForm { | |
| export type FieldValue = any; |
| { | |
| "presets": ["es2015"], | |
| "plugins": ["transform-runtime"] | |
| } |