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
/* | |
Rollup messages: | |
[15:45:47] Treating 'buffer' as external dependency | |
[15:45:48] No name was provided for external module 'buffer' in options.globals – guessing 'require$$0' | |
index.js | |
import {expect} from 'chai' | |
chai - chai@3.5.0 |
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, {Component, PropTypes} from 'react' | |
import {withRouter} from 'react-router' | |
import {security} from '../../../lib/security/security' | |
import Form from 'react-formal' | |
import yup from 'yup' | |
import Helmet from 'react-helmet' | |
import Logger from '../../../lib/util/logger' | |
import autobind from 'autobind-decorator' |
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, {Component, Element} from 'react' | |
import {withRouter} from 'react-router' | |
import {security} from '../../../lib/security/security' | |
import Form from 'react-formal' | |
import yup from 'yup' | |
import Helmet from 'react-helmet' | |
import Logger from '../../../lib/util/logger' | |
import autobind from 'autobind-decorator' |
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
LINE_ITEM = Validations::Schema.new_schema do | |
required_id(:product_id) | |
required(:quantity).value(:number?, gteq?: 0) | |
optional(:period_start_at).maybe(:time?) | |
optional(:period_end_at).maybe(:time?) | |
end | |
SCHEMA = Validations::Schema.new_schema(BaseDocument::SCHEMA) do | |
required(:line_items).each(LINE_ITEM) | |
end |
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
require 'i18n' | |
require 'reform/form/dry' | |
module Acme | |
module Validations | |
module DslExtension | |
# | |
# Setup our own macros here (much shorter to use) | |
# | |
# @see dry-rb/dry-validation extending_dsl_spec.rb |
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 reShallowEqual from 'recompose/shallowEqual' | |
import Logger from './Logger' | |
class Performance { | |
static shouldComponentUpdate (component, nextProps, nextState, nextContext, dig = false) { | |
if (!__DEV__) { | |
return ( | |
!reShallowEqual(this.props, nextProps) || !reShallowEqual(this.state, nextState) || !reShallowEqual(this.context, nextContext) | |
) |
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, {Component, Element, PropTypes} from 'react' | |
import classNames from 'classnames' | |
import pure from 'recompose/pure' | |
import merge from 'lodash/merge' | |
import {createStyleSheet} from 'jss-theme-reactor' | |
import Logger from '../../util/Logger' | |
import {capitalizeFirstLetter} from '../../util/strings' | |
type DefaultProps = { |
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, {Element, PropTypes} from 'react' | |
import pure from 'recompose/pure' | |
import {createStyleSheet} from 'jss-theme-reactor' | |
import classNames from 'classnames' | |
import Logger from '../../../util/Logger' | |
type Props = { | |
type: ?string, | |
children: ?Element<any> |
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
?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.sabnzbd.SABnzbd</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/open</string> | |
<string>-a</string> |
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
const config = { | |
devtool: 'source-map', | |
devServer: { | |
port: 3808, | |
headers: { | |
'Access-Control-Allow-Origin': '*' | |
} | |
}, | |
context: '/Users/kross/projects/af/spec/dummy', | |
entry: { |