// The result is printed as JSON on stdout on success (exit code 0) const handleCliSuccess = function(result, stable) { const resultA = serializeApi(result) const resultB = omit(resultA, SECRET_PROPERTIES) const stringifyFunc = stable ? stableStringify : JSON.stringify const resultJson = stringifyFunc(resultB, null, 2) console.log(resultJson) process.exitCode = 0 }
render() { const { color } = this.state; const props = { ...omit(this.props, ['value', 'onTimelineClick']), color }; const { onTimelineClick } = this.props; const classString = classnames({ [styles.pointer]: typeof onTimelineClick === 'function' }); return ( <div> <div onClick={this.handleClick} className={classString}> <Item {...props} /> </div> </div> ); }
...omit(props, ['className']), width, height,
{...omit(others, ['loading'])} type={htmlType || 'button'} className={classes}
const inputProps = omit(otherProps, ['onGetCaptcha', 'countDown']) return ( <FormItem wrapperCol={{span: 24}}>
const inputProps = omit(otherProps, ['onGetCaptcha', 'countDown']); return ( <FormItem>
<Divider /> <CopyToClipboard text={JSON.stringify(omit(setting, ['colorWeak']), null, 2)} onCopy={() => message.success(formatMessage({ id: 'app.setting.copyinfo' }))}
<Divider /> <CopyToClipboard text={JSON.stringify(omit(setting, ['colorWeak']), null, 2)} onCopy={() => message.success(formatMessage({ id: 'app.setting.copyinfo' }))}
...omit(props, ['className']), width, height,
const inputProps = omit(otherProps, ['onGetCaptcha', 'countDown']); return ( <FormItem>
const inputProps = omit(otherProps, ['onGetCaptcha', 'countDown']); return ( <FormItem>
<Divider /> <CopyToClipboard text={JSON.stringify(omit(setting, ['colorWeak']), null, 2)} onCopy={() => message.success(formatMessage({ id: 'app.setting.copyinfo' }))}