path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
ajax/libs/react/0.5.1/JSXTransformer.js
wprl/cdnjs
/** * JSXTransformer v0.5.1 */ !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSXTransformer=e():"undefined"!=typeof global?global.JSXTransformer=e():"undefined"!=typeof self&&(self.JSXTransformer=e())}(function(){var define,m...
js/App/Components/TabViews/SubViews/Sensor/HiddenRow.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
monica11/BuyBlue
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
dist/1.11.1/jquery-ajax-deprecated-event-alias-offset.js
jgallen23/jquery-builder
/*! * jQuery JavaScript Library v1.11.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated,-event-alias,-offset * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Fo...
test/ProgressBarSpec.js
HPate-Riptide/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import ProgressBar from '../src/ProgressBar'; import { getOne, shouldWarn } from './helpers'; function getProgressBarNode(wrapper) { return ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'p...
maodou/events/client/components/admin/eventsAdd.js
maodouio/meteor-react-redux-base
import React from 'react'; export default class EventsAdd extends React.Component { constructor(props) { super(props); this.state = { unit: '$' }; this.changeUnit = this.changeUnit.bind(this); } changeUnit() { if (this.state.unit === '$') { this.setState({ unit: '¥' }); } else { t...
Libraries/Modal/Modal.js
makadaw/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
app/containers/GoalsContainer.js
DeividasK/tgoals
import React from 'react' import { Link } from 'react-router' import { Button, Row, Col } from 'reactstrap' import { connect } from 'react-redux' import { firebaseConnect, helpers } from 'react-redux-firebase' import PageHeading from 'components/helper/PageHeading' import Empty from 'components/helper/Empty' import Pr...
src/components/Article.js
MartinP-C/my-site
import React from 'react'; import CollapsingArticle from './CollapsingArticle'; import DefaultArticle from './DefaultArticle'; function returnArticle(props) { if (props.articleType === 'collapse') { return <CollapsingArticle articleTitle={props.articleTitle} article...
client/scripts/components/Share.js
dev4christ/random-verse
import React from 'react' export default class Share extends React.Component { constructor(props) { super(props); } render() { return ( <div className="container"> <div className="row"> <button className="button-primary">FB</button> </div> </div> ); } };
app/components/H2/index.js
mxstbr/react-boilerplate-site
import React from 'react'; import styles from './styles.css'; function H2(props) { return ( <h2 className={ styles.heading2 } { ...props } /> ); } export default H2;
Examples/Movies/MoviesApp.ios.js
alpz5566/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
docs/src/app/pages/components/Typeahead/ExampleTypeaheadCustomValue.js
GetAmbassador/react-ions
import React from 'react' import Typeahead from 'react-ions/lib/components/Typeahead/Typeahead' import Button from 'react-ions/lib/components/Button/Button' import options from './CountryList' import style from './style.scss' class ExampleTypeaheadCustomValue extends React.Component { constructor(props) { super(...
ajax/libs/react/0.4.2/JSXTransformer.js
pimterry/cdnjs
/** * JSXTransformer v0.4.2 */ (function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJSXTransformer=e}else"undefined"!=typeof wi...
ajax/libs/yui/3.9.1/event-focus/event-focus-min.js
tonytomov/cdnjs
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(...
actor-apps/app-web/src/app/utils/require-auth.js
hejunbinlan/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
www/windows/terminalWindow/components/Multiplexer/Pane/Overlay/index.js
AlmirKadric-org/exTerm-electron
import React from 'react'; import classNames from 'classnames'; import { observer } from 'mobx-react'; import './styles.less'; export default observer( class Overlay extends React.Component { render() { return ( <div onClick={ this.props.onClick } onContextMenu={ this.props.onContextMenu } class...
client/modules/core/components/menu.js
gotrecillo/daw-euskalvideo
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton/IconButton'; import { loggedItems } from '../configs/menu_items'; export default class Menu extends React.Component { render() { const {userId, logo...
fields/types/number/NumberColumn.js
codevlabs/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTyp...
src/index.js
Shashank1706/olep-serverless
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import App from './App'; import './index.css'; ReactDOM.render( <Router> <App /> </Router>, document.getElementById('root') );
src/components/SelectInput/SelectInput.spec.js
bjlaa/facebook-clone
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import SelectInput from './'; describe('SelectInput', () => { let wrapper; let style; let options; beforeEach(() => { style = { backgroundColor: 'blue'}; options = [ { value: 'test' }, { value: 'tes...
src/App/TopBar/TopBar.js
jmlweb/paskman
import React from 'react'; import PT from 'prop-types'; import styled from 'styled-components'; import colors from '../../styles/colors'; import spacing from '../../styles/spacing'; import topBarHeight from '../../styles/topBarHeight'; import Logo from '../../components/Logo/Logo'; import TopBarBtn from './TopBarBtn/To...
packages/material-ui-icons/src/Replay30.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><defs><path id="a" d="M0 0h24v24H0V0z" /></defs><path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2...
webapp/src/components/Layout/Menu.js
templatetools/trace
/* global location */ import React from 'react' import PropTypes from 'prop-types' import { Menu, Icon } from 'antd' import { Link } from 'dva/router' import { arrayToTree, queryArray } from 'utils' import pathToRegexp from 'path-to-regexp' const Menus = ({ siderFold, darkTheme, handleClickNavMenu, navOpenKeys, change...
docs/app/Examples/views/Card/Content/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Content = () => ( <ExampleSection title='Content'> <ComponentExample title='Content Block' description='A card...
app/App.js
uiheros/react-native-redux-todo-list
import React, { Component } from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import todoApp from './reducers'; import SceneContainer from './containers/SceneContainer'; const store = createStore(todoApp); class App extends Component { render() { return ( <Provid...
ajax/libs/material-ui/5.0.0-alpha.4/esm/RadioGroup/RadioGroup.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _slicedToArray from"@babel/runtime/helpers/esm/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import FormGroup from"../FormGroup";import ...
client/app/components/StopSequenceDisplay/index.js
katharosada/bus-shaming
import React from 'react'; export function StopSequenceDisplay(props) { const sequence = props.sequence; return (<p> { sequence.get('trip_short_name') } ({ sequence.get('length') } stops) <br/> </p>); }
docs/app/Examples/collections/Message/Variations/MessageExamplePositive.js
clemensw/stardust
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExamplePositive = () => ( <Message positive> <Message.Header>You are eligible for a reward</Message.Header> <p>Go to your <b>special offers</b> page to see now.</p> </Message> ) export default MessageExamplePositive
ajax/libs/styled-components/4.0.0-beta.4-hmr/styled-components.browser.esm.min.js
cdnjs/cdnjs
import Stylis from"stylis/stylis.min";import _insertRulePlugin from"stylis-rule-sheet";import React,{cloneElement,createContext,Component,createElement,PureComponent}from"react";import{isValidElementType}from"react-is";import memoize from"memoize-one";import PropTypes from"prop-types";import validAttr from"@emotion/is-...
ajax/libs/js-data/2.0.0-rc.1/js-data-debug.js
jackdoyle/cdnjs
/*! * js-data * @version 2.0.0-rc.1 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUniversal...
src/utils/createContextWrapper.js
xiaoking/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return function(contextTypes) { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; } ...
node_modules/react-router/es6/IndexLink.js
NathanBWaters/jb_club
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Link from './Link'; /** *...
client/root.js
Extra-lightwill/gql-sequelize-ver01
import React from 'react'; import Relay from 'react-relay'; import { browserHistory, applyRouterMiddleware, Router } from 'react-router'; import useRelay from 'react-router-relay'; import Routes from './routes/Route'; const Root = () => ( <Router history={browserHistory} routes={Routes} render={applyRouterMiddle...
widgets/TextInputWidget.js
FaridSafi/react-native-gifted-form
import React from 'react'; import createReactClass from 'create-react-class'; import { View, Text, TextInput, PixelRatio } from 'react-native'; var WidgetMixin = require('../mixins/WidgetMixin.js'); module.exports = createReactClass({ mixins: [WidgetMixin], getDefaultProps() { return { inline:...
src/PerfViewJS/spa/src/components/EventViewer.js
vancem/perfview
import React, { Component } from 'react'; import base64url from 'base64url'; export class EventViewer extends Component { static displayName = EventViewer.name; constructor(props) { super(props); this.myRef = React.createRef(); this.state = { events: [], eventTypes: [], loading: true, ...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleLink.js
ben174/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleLink = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider /> <Breadcrumb.Section link>Store</Breadcrumb.Section> <Breadcrumb.Divider icon='right angle' /> <Brea...
src/parser/deathknight/blood/modules/talents/Bloodworms.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; impor...
src/store/createStore.js
michaelgu95/ZltoReduxCore
import { applyMiddleware, compose, createStore } from 'redux' import thunkMiddleware from 'redux-thunk' import { browserHistory } from 'react-router' import { routerMiddleware } from 'react-router-redux' import makeRootReducer from './reducers' import createLogger from 'redux-logger' export default (initialState = {})...
src/routes/home/Home.js
kirsty-forrester/react-photo-collage
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTy...
ajax/libs/react-router/0.10.0/react-router.js
ruslanas/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export...
src/client.js
ynu/res-track-wxe
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-polyfill'; import React from 'react'; import...
clients/libs/slate-editor-components/src/modal/ModalButton.js
nossas/bonde-client
/* eslint-disable no-undef */ /* eslint-disable react/prop-types */ import React from 'react' // FIXME: Needs to handle assets files to work with SSR // eslint-disable-next-line @typescript-eslint/no-var-requires if (require('exenv').canUseDOM) require('./ModalButton.module.css') const Container = ({ children }) => (...
frontend/components/statistics/CourtStatistics.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import {Glyphicon, OverlayTrigger, Popover} from 'react-bootstrap'; import {Statistics} from '../../model'; import StatisticsColumn from './StatisticsColumn'; import StatisticsBar from './StatisticsBar'; import styles from './CourtStatistics.less'; const b...
app/components/Modules/App/App.js
shibe97/worc
import React, { Component } from 'react'; import { Route } from 'react-router-dom'; import { ShortcutManager } from 'react-shortcuts'; import Menu from '../../Atoms/Menu/Menu'; import Navigation from '../../Molecules/Navigation/Navigation'; import PostForm from '../../../containers/Molecules/PostForm'; import styles fr...
node_modules/bower/node_modules/inquirer/node_modules/rx/dist/rx.lite.extras.js
fjcarazo/Estay
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'und...
js/vendor/jquery-1.9.0.min.js
dbow/uttbk
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc...
assets/js/overview.js
FourCoffees/ArtovaModel-visualisation
/* =================================================== * artovamodel-vis overview.js * artovamodel.fi/visual-eng * =================================================== * FourCoffees 2013 * * Licensed under the MIT License * using d3.js, tabletop.js, jquery.js * ===================================================...
stories/components/clipPathImage/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import ClipPathImage from 'shared/components/clipPathImage/clipPathImage'; import jamesBondJpg from '../../asset/james-bond.jpg'; storiesOf('shared/components/clipPathImage', module) .add('Default', () => ( <ClipPathImage image={j...
ajax/libs/yui/3.9.0/event-focus/event-focus-min.js
sevypannella/cdnjs
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(...
src/components/common/SelectInput.js
Maricha/Courses
import React from 'react'; import PropTypes from 'prop-types'; const SelectInput = ({name, label, onChange, defaultOption, value, error, options}) => { return ( <div className="form-group"> <label htmlFor={name}>{label}</label> <div className="field"> <select ...
src/svg-icons/image/rotate-90-degrees-ccw.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotate90DegreesCcw = (props) => ( <SvgIcon {...props}> <path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7...
carbon-page/stories/task/index.js
ShotaOd/Carbon
import React, { Component } from 'react'; import { storiesOf, action } from '@kadira/storybook'; import cardStory from './card' const story = storiesOf('Task', module); cardStory(story);
ajax/libs/react-native-web/0.0.0-d48f63060/exports/RefreshControl/index.js
cdnjs/cdnjs
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } /** * Copy...
source/components/DatasetSelector.js
PitchInteractiveInc/hexagon-cartograms
import React from 'react' import geographyResource from '../resources/GeographyResource' const CUSTOM_LABEL = 'Custom CSV' export default class DatasetSelector extends React.Component { constructor(props) { super(props) this.state = { selectedIndex: 0, csvInputValue: '', } this._onCsvC...
app/scripts/Dashboard/__tests__/Forms/ControlLabel.spec.js
igr-santos/hub-client
import React from 'react' import { expect } from 'chai' import { mount } from 'enzyme' import { ControlLabel } from '../../Forms' describe('<ControlLabel />', () => { let wrapper beforeEach(() => { wrapper = mount(<ControlLabel>label</ControlLabel>, { context: {} }) }) it('should render ok by default', (...
modules/RouteUtils.js
brenoc/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
src/frame/rePCUI/util/Children/toArray.js
gejialun8888/shop-react
import React from 'react'; export default function toArray(children) { const ret = []; React.Children.forEach(children, (c) => { ret.push(c); }); return ret; }
src/svg-icons/av/sort-by-alpha.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSortByAlpha = (props) => ( <SvgIcon {...props}> <path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ...
test/ListGroupSpec.js
Lucifier129/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import ListGroup from '../src/ListGroup'; import ListGroupItem from '../src/ListGroupItem'; describe('ListGroup', () => { describe('All children are of type ListGroupItem', () => { it('Should ou...
src/svg-icons/file/create-new-folder.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCreateNewFolder = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/> </Svg...
ajax/libs/es6-shim/0.22.1/es6-shim.js
nagyist/OpenF2-cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.22.1 * see https://github.com/paulmillr/es6-shim/blob/0.22.1/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
components/Animate/Circle.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import { Motion, spring } from 'react-motion'; import cx from 'classnames'; import css from './Circle.css'; const Circle = ({ percent }) => ( <svg className={ css.root } viewBox="0 0 34 34"> <circle className={ cx(css.circle, css.circleTrack) } cx="...
toDoList/app/components/app.js
joekraken/react-demos
import React from 'react'; import Header from './ui/Header'; export default class App extends React.Component { render() { return ( <div> <Header root={this.props.route.path}/> {this.props.children} </div> ); } }
src/Row.js
pandoraui/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { re...
test/integration/hydration/pages/_document.js
JeromeFitz/next.js
import Document, { Head, Html, Main, NextScript } from 'next/document' import React from 'react' class WeddingDocument extends Document { render() { return ( <Html lang="en-GB"> <Head /> <Main /> <NextScript /> </Html> ) } } export default WeddingDocument
ajax/libs/ember-data.js/1.0.0-beta.4/ember-data.prod.js
ericelliott/cdnjs
/*! * @overview Ember Data * @copyright Copyright 2011-2013 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) */ // Version: 1.0.0-beta.4 (function() { var define, requireModule; (function() { var registry = {}, seen...
src/interface/news/Preview.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import makeUrl from './makeUrl'; class Preview extends React.PureComponent { static propTypes = { title: PropTypes.node.isRequired, children: PropTypes.node.isRequired, image: PropTypes.string.isRequi...
blueocean-material-icons/src/js/components/svg-icons/content/inbox.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> </SvgIcon> ); ContentInbox.display...
node_modules/react-icons/go/plus.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const GoPlus = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m22.5 17.5v-10h-5v10h-10v5h10v10h5v-10h10v-5h-10z"/></g> </Icon> ) export default GoPlus
client/src/components/TranscriptView/SettingsPanel.js
stanographer/aloft
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { updateStyle } from '../../actions'; import Modal from 'react-modal'; import { Button, Card, CardBody, CardImg, CardText, Col, Container, DropdownItem, DropdownMenu, DropdownToggle, Form, FormGroup, Input,...
example/examples/MapStyle.js
jiaminglu/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 31.23295; const LONGITUDE = 121.3822; const LATITUDE_DELTA = 0.0922; const ...
ajax/libs/forerunnerdb/1.3.749/fdb-legacy.min.js
dhenson02/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
src/components/GameSelection.js
Julzso23/player.me-one-click-share
import React from 'react'; import Error from './Error'; import Spinner from './Spinner'; import request from 'superagent'; import '../styles/games.css'; import 'font-awesome/css/font-awesome.css'; export default class GameSelection extends React.Component { constructor(props) { super(props); this....
src/components/Footer.js
yahorzhylinski/zhylinski-me-cliend-side
'use strict'; import React from 'react'; export default class Footer extends React.Component { render() { return ( <footer className="footer"> <div className="text-center"> <small className="copyright"> Template by Xiaoying Riley (MIT). D...
client/src/components/billing/initial-checkout.js
WebTalentTop/newsfere-mern
import React, { Component } from 'react'; import CheckoutForm from './checkout-form'; class InitialCheckout extends Component { render() { return ( <CheckoutForm plan={this.props.params.plan} /> ); } } export default InitialCheckout;
test/components_test/form-inputs/password.js
aichbauer/redux-valid-form
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import Password from '../../../src/components/form-inputs/password'; test('Password | default props', (t) => { const passwordWrapper = shallow(<Password />); t.deepEqual(passwordWrapper.props(), { type: 'password', 'data...
exercise-0/client-conference-schedule/src/components/Home/index.js
nanovazquez/nodeconf-isomorphic-workshop
import React, { Component } from 'react'; import Schedule from '../Schedule'; import Tab from '../Tab'; import './styles.css'; const Home = ({ allSchedules, selectedSchedule, selectSchedule, fetchSchedules, }) => { return ( <div className="home"> <h1 className="header">Schedule</h1> <div clas...
pootle/static/js/admin/components/User/UserController.js
pavels/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import Search from '../Search'...
src/components/HostDashboard.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import { get } from 'lodash'; import ExpensesWithData from '../apps/expenses/components/ExpensesWithData'; import OrdersWithData from '../apps/expenses/components/OrdersWithData'; impo...
website/modules/components/App.js
d-oliveros/react-router
import React from 'react' // don't want the shimmed one // eslint-disable-next-line import BrowserRouter from '../../../packages/react-router-dom/BrowserRouter' // this stuff is shimmed, see ReactRouterDOMShim.js for more details import { Switch, Route } from 'react-router-dom' import DelegateMarkdownLinks from './D...
src/index.js
nhatthanh510/anime-illust-react-app
// Set up your application entry point here... import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; //Include Metronic Theme styles import './libs/metronic_theme/plugins/bootstrap/css/bootstrap.min.css'; import './libs/metronic_theme/general...
ajax/libs/6to5/2.9.1/browser.js
ddeveloperr/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
docs/src/HomePage.js
jareth/react-materialize
import React from 'react'; const HomePage = () => { return <h3 className='header'>Material design Components for React</h3>; }; export default HomePage;
docs/app/Examples/modules/Dimmer/Types/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DimmerTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Dimmer' description='A s...
ajax/libs/jquery/1.11.1/jquery.min.js
upgle/cdnjs
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
assets/js/components/separator.js
CandN/eliscore
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; const Separator = ({ text, categories, category_id }) => ( <div className="col-xs-2"> <div className="match__separator"> {text} </div> <div className="match__category"> {category_id ? categor...
packages/material-ui-icons/src/NetworkLockedTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z" /><g><path d="M22 16v-.5c0-1.38-1.12-2.5-2.5-2.5S17 14.12 17 15.5v.5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1z...
fields/components/NestedFormField.js
ONode/keystone
import React from 'react'; import { FormField, FormLabel } from '../../admin/client/App/elemental'; import theme from '../../admin/client/theme'; function NestedFormField ({ children, className, label, ...props }) { return ( <FormField {...props}> <FormLabel aphroditeStyles={classes.label}> {label} </Form...
packages/material-ui-icons/src/Tram.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Tram = props => <SvgIcon {...props}> <path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h2v...
imports/ui/components/loading.js
dklisiaris/boomabu
import React from 'react'; export const Loading = () => ( <div className="loading"></div> ); export const LoadingAppHeader = () => ( <div className="loading-app-header"> <span className='logo'/> </div> ); export const LoadingHeader = () => ( <div className="loading-header"> <div className="loading"><...
src/ui/SearchField.js
touchstonejs/touchstonejs
import classnames from 'classnames'; import React from 'react'; import Tappable from 'react-tappable'; module.exports = React.createClass({ displayName: 'SearchField', propTypes: { className: React.PropTypes.string, onCancel: React.PropTypes.func, onChange: React.PropTypes.func, onClear: React.PropTypes.func...
src/admin/components/custom_email_form.js
foundersandcoders/sail-back
import React from 'react' const end_membership_email_footer = require('app/end_membership_email_footer') export default (email, submit) => <div className='custom-email-container'> <h3>Please include the message in the text box as the last line of your email</h3> <form onSubmit={submit}> <input type='t...
App/components/scrollview/LvStar.js
keith527/InstantMessage
/** * Description: 上映电影列表 * Created by Xiaocheng Zuo on 2017-03-07 14:47:55 * @flow */ import React, {Component, PropTypes} from 'react'; import {StyleSheet, View,Text, ListView} from 'react-native'; import {MovieCardItem} from '../index'; import * as color from '../../style/color'; import {Actions} from 'react-native-...
ajax/libs/reactable/0.11.0/reactable.min.js
nolsherry/cdnjs
(function(c,a){if(typeof define==="function"&&define.amd){define(["exports"],a)}else{if(typeof exports!=="undefined"){a(exports)}else{var b={exports:{}};a(b.exports);c.filter_props_from=b.exports}}})(this,function(a){a.filterPropsFrom=c;var b={columns:true,sortable:true,filterable:true,sortBy:true,defaultSort:true,item...
web/src/js/__tests__/components/Header/FileMenuSpec.js
ddworken/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import { FileMenu } from '../../../components/Header/FileMenu' global.confirm = jest.fn( s => true ) describe('FileMenu Component', () => { let clearFn = jest.fn(), loadFn = jest.fn(), saveFn = jest.fn(), openModalFn = je...
src/SearchTabs.js
ramalhovfc/fisioManager
import React from 'react'; import { Tabs, Tab } from 'react-bootstrap'; import SearchIncidentForm from './SearchIncidentForm'; import SearchUserForm from './SearchUserForm'; import IncidentSearchResults from './IncidentSearchResults'; import UserSearchResults from './UserSearchResults'; class SearchTabs extends React....
app/components/Img/index.js
vinhtran19950804/procure_react
/** * * Img.js * * Renders an image, enforcing the usage of the alt="" tag */ import React from 'react'; import PropTypes from 'prop-types'; function Img(props) { return ( <img className={props.className} src={props.src} alt={props.alt} /> ); } // We require the use of src and alt, only enforced by reac...
lib/MetricsGraphics.js
cf/react-metrics-graphics
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('v...
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleRows.js
shengnian/shengnian-ui-react
import React from 'react' import { Form, TextArea } from 'shengnian-ui-react' const TextAreaExampleRows = () => ( <Form> <TextArea rows={2} placeholder='Tell us more' /> </Form> ) export default TextAreaExampleRows