I hereby claim:
- I am RaoHai on github.
- I am raohai (https://keybase.io/raohai) on keybase.
- I have a public key whose fingerprint is C9BF EABD B2F5 49EF B234 1999 8416 6130 B3AD 7BB9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class Chart { | |
changeData(arg: any) {} | |
axis(arg: any) {} | |
render() {} | |
} | |
function field(config: any) { | |
return function (target, propertyKey, descriptor) {}; | |
} |
[].slice.call(document.querySelectorAll('.follow_item')) | |
.map(function(item) { | |
var d = item.getAttribute('action-data'); | |
var data = /uid=(\d+)&/g.exec(d); | |
var uid = data && data[1]; | |
if (uid) { | |
var xhr = new XMLHttpRequest(); | |
xhr.open('POST', 'http://weibo.com/aj/f/addblack?ajwvr=6'); | |
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); |
// var fileInput = document.querySelector('file'); | |
var targetWidth = 400; | |
var targetHeight = 400; | |
function doUpload () { | |
// upload picture | |
} | |
fileInput.onChange = function () { | |
var file = this.files[0]; |
import React from 'react'; | |
import { Editor, EditorState } from 'draft-js'; | |
import InlineStyles from '../InlineStyles'; | |
export default class EditorCore extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { editorState: EditorState.createEmpty() }; | |
this.onChange = this._onChange.bind(this); | |
} |
export default { | |
BOLD: { | |
fontWeight: 700, | |
}, | |
ITALIC: { | |
fontStyle: 'italic', | |
}, | |
}; |
import React, { Component } from 'react'; | |
import logo from '../logo.svg'; | |
import './App.css'; | |
import EditorCore from './EditorCore'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
<div className="App-header"> |
import React from 'react'; | |
import { Editor, EditorState } from 'draft-js'; | |
export default class EditorCore extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { editorState: EditorState.createEmpty() }; | |
this.onChange = this._onChange.bind(this); | |
} | |
_onChange(editorState) { |