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
| // @flow | |
| // WARNING: WORK IN PROGRESS and will likely submit to flow-typed when workable. | |
| declare module 'found' { | |
| declare type Map = { [key: string]: any } | |
| /** | |
| * Location descriptor string: | |
| * store.dispatch(FarceActions.push('/foo?bar=baz#qux')); | |
| * |
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
| // Library code (transpiled to ES2015) | |
| import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator'; | |
| var babelPluginFlowReactPropTypes_proptype_Config = require('./Config').babelPluginFlowReactPropTypes_proptype_Config || require('react').PropTypes.any; | |
| import Logger from '../util/Logger'; | |
| import { next, getRouteProperty } from './routes'; | |
| export default class RouteConfig { |
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
| const config = { | |
| devtool: 'source-map', | |
| devServer: { | |
| port: 3808, | |
| headers: { | |
| 'Access-Control-Allow-Origin': '*' | |
| } | |
| }, | |
| context: '/Users/kross/projects/af/spec/dummy', | |
| entry: { |
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
| ?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 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
| // @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 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
| // @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 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
| // @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 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
| 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 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
| 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 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
| // @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' |