path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/components/github-htmlview.component.js
dyesseyumba/git-point
import React, { Component } from 'react'; import { Dimensions, StyleSheet, View, Text, Platform } from 'react-native'; import HTMLView from 'react-native-htmlview'; import { TableWrapper, Table, Cell } from 'react-native-table-component'; import SyntaxHighlighter from 'react-native-syntax-highlighter'; import { github ...
docs/app/Examples/elements/Image/Variations/ImageExampleAvatar.js
mohammed88/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleAvatar = () => ( <div> <Image src='/assets/images/wireframe/square-image.png' avatar /> <span>Username</span> </div> ) export default ImageExampleAvatar
src/common/components/App.js
mhgbrown/typography-karaoke
import React from 'react'; import fontStore from '../store/FontStore'; import trackStore from '../store/TrackStore'; export default class App extends React.Component { constructor(props) { super(props); this.state = { fontStore: fontStore, trackStore: trackStore }; this.onAdd = this.onA...
packages/cf-component-modal/src/ModalHeader.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; class ModalHeader extends React.Component { render() { return ( <header className="cf-modal__header"> {this.props.children} </header> ); } } ModalHeader.propTypes = { children: PropTypes.node }; export default ModalHead...
packages/core/src/icons/components/RadioSelected.js
iCHEF/gypcrete
import React from 'react'; export default function SvgRadioSelected(props) { return ( <svg width="1em" height="1em" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" {...props} > <rect x={7} y={7} width={18} height={18} rx={9} ...
src/svg-icons/device/screen-lock-landscape.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockLandscape = (props) => ( <SvgIcon {...props}> <path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c...
app/containers/list/components/history-group.js
7kfpun/TWAQIReactNative
import React, { Component } from 'react'; import { string, shape } from 'prop-types'; import { FlatList, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import HistoryItem from './history-item'; import { countyZh2En } from '../../...
yycomponent/pagination/Pagination.js
77ircloud/yycomponent
import React from 'react'; import { Pagination as _Pagination } from 'antd'; class Pagination extends React.Component{ constructor(props){ super(props); } static defaultProps = { prefixCls: 'ant-pagination', selectPrefixCls: 'ant-select', }; render(){ return (<_Pagination {...this.props}/>); ...
src/commons/sections/match/Match.js
jahuk/bet-platform-react
import React from 'react'; import {connect} from 'react-redux'; import Back from './../../../components/back/Back'; import MatchBets from './../../../components/matchBets/MatchBets'; const Match = ({results, bets}) => { const matchId = parseInt(location.pathname.split('/').pop()); return ( <div> <Back/> ...
src/CheckboxGroup.js
lenxeon/react-ui
import React from 'react' import classnames from 'classnames' import PropTypes from './utils/proptypes' import { Checkbox } from './Checkbox' import Fetch from './higherOrders/Fetch' import FormItem from './higherOrders/FormItem' import TextValue from './higherOrders/TextValue' import { compose } from './utils/compose'...
example/src/index.js
bokuweb/react-devlop-boilerplate
import React from 'react'; import { render } from 'react-dom'; import Example from './example'; render(<Example />, document.querySelector('#root'));
src/utils/__tests__/Transaction-test.js
odysseyscience/React-IE-Alt
/** * Copyright 2013-2014, 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. * * @emails react-co...
src/components/InfoDisplay.js
jefferey/react-barb
import React from 'react'; const InfoDisplay = (props) => { const last = props.people.length - 1; const people = props.people.map((person, index) => { return ( <span key={`person_ + ${index}`}>{ person + (index === last ? '' : index === last - 1 ? ' and ' : ', ') }</span> ); }); return ( <di...
src/components/List/List.stories.js
shanedasilva/redux-async-boilerplate
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import faker from 'faker'; import List from './List'; const items = []; for (let i = 0; i <= 6; i += 1) { items.push({ id: i, name: faker.name.findName(), }); } storiesOf('List', module) .addWithInfo( 'Basic List', ...
node_modules/react-mixin/index.js
TarikHuber/react-redux-material-starter-kit
var mixin = require('smart-mixin'); var assign = require('object-assign'); var mixinProto = mixin({ // lifecycle stuff is as you'd expect componentDidMount: mixin.MANY, componentWillMount: mixin.MANY, componentWillReceiveProps: mixin.MANY, shouldComponentUpdate: mixin.ONCE, componentWillUpdate: mixin.MANY,...
app/src/containers/AddRecipe/RecipeList.js
OpenSauced/OpenSauce
import React, { Component } from 'react' import LazyLoad from 'react-lazy-load' import OnVisible, { setDefaultProps } from 'react-on-visible'; import axios from 'axios' // REDUX STUFF import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { fetchRecipes, getUserData, addUserSavedRecip...
node_modules/reactify/node_modules/react-tools/src/browser/ui/__tests__/ReactMountDestruction-test.js
mjibson/moggio
/** * Copyright 2013-2015, 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. * * @emails react-co...
app/javascript/mastodon/components/avatar.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
src/svg-icons/device/gps-off.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsOff = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5...
lms/static/js/student_account/components/spec/PasswordResetConfirmation_spec.js
appsembler/edx-platform
/* globals setFixtures */ import ReactDOM from 'react-dom'; import React from 'react'; import sinon from 'sinon'; // eslint-disable-line import/no-extraneous-dependencies import { PasswordResetConfirmation } from '../PasswordResetConfirmation'; describe('PasswordResetConfirmation', () => { beforeEach(() => { se...
ajax/libs/rxjs/2.5.1/rx.js
aaqibrasheed/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; ...
pages/api/list-item-icon.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './list-item-icon.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/svg-icons/content/filter-list.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFilterList = (props) => ( <SvgIcon {...props}> <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/> </SvgIcon> ); ContentFilterList = pure(ContentFilterList); ContentFilterList.displayName = 'Con...
src/main.js
hack-duke/hackduke-portal
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore, push } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './contain...
www/client.js
DremyGit/dremy-blog
import 'babel-polyfill'; import 'isomorphic-fetch'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { fromJS } from 'immutable'; import ReactGA...
example/index.js
lebra/lebra-components
import React, { Component } from 'react'; import { render } from 'react-dom'; import './index.less'; class App extends Component{ constructor(props) { super(props); } handleClick = () => { } render() { return ( <div> <header className="header"> ...
js/components/Form.react.js
Wedjaa/fit-calendar
/** * Form.react.js * * The form with a username and a password input field, both of which are * controlled via the application state. * */ import React, { Component } from 'react'; import { changeForm } from '../actions/AppActions'; import { History } from 'react-router'; import LoadingButton from './LoadingBut...
Ferramenta_Scrumt/Scripts/flot-chart/jquery.min.js
vanfranrocha/scrumT
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==...
src/svg-icons/action/trending-up.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp = pure(ActionTrendingUp); ActionTrending...
client/DevTools.js
cavnak/throneteki
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; const DevTools = createDevTools( // Monitors are individually adjustable with props. // Consult their repositories to learn about...
src/platform/site-wide/va-footer/index.js
department-of-veterans-affairs/vets-website
/** * This application creates a widget for the * search, help, and sign-in header navigation on VA.gov * * @module platform/site-wide/login */ import React from 'react'; import { Provider } from 'react-redux'; import startReactApp from '../../startup/react'; import Footer from './components/Footer'; export con...
site/components/DiffView/Tokenize.worker.js
otakustay/react-diff-view
import {tokenize, markEdits, markWord} from 'react-diff-view/tokenize'; import {compact} from 'lodash'; import refractor from 'refractor'; self.addEventListener( 'message', ({data: {id, payload}}) => { const {hunks, oldSource, language, editsType} = payload; const enhancers = [ edi...
app/javascript/mastodon/features/favourites/index.js
h-izumi/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
src/parser/druid/restoration/modules/features/PrematureRejuvenations.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import Analyzer from 'parser/core/Analyzer'; import HealingDone from 'parser/shared/modules/throughput/HealingDone'; import StatisticBox from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/Spel...
src/view/token.js
blgm/convulator
import React from 'react' import { numberStyle, operatorStyle, equalsStyle, clearStyle } from './style' export function Token ({ value }) { return <div className={tokenClassName(value)}>{tokenValue(value)}</div> } function tokenClassName (value) { if (typeof value === 'number') { return numberStyle } else if...
src/components/abstractWidget/abstractWidget.js
govau/datavizkit
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import get from 'lodash/get'; import AbstractChart from './abstractChart'; import { validChartType } from './../../helpers/propsValidators'; class AbstractWidget extends Component { getChart() { return this.abstractChart._instance; }...
packager/react-packager/index.js
Tredsite/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. */ 'use strict...
app/shared/private-route/PrivateRoute.js
fastmonkeys/respa-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Route } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { updateRoute } from '../../actions/routeActions'; import userIdSelector from '../../state/selectors/userIdSe...
ajax/libs/raven.js/3.24.0/plugins/angular.js
extend1994/cdnjs
/*! Raven.js 3.24.0 (cf87968) | github.com/getsentry/raven-js */ /* * Includes TraceKit * https://github.com/getsentry/TraceKit * * Copyright 2018 Matt Robenolt and other contributors * Released under the BSD license * https://github.com/getsentry/raven-js/blob/master/LICENSE * */ (function(f){if(typeof expor...
src/DropdownToggle.js
herojobs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import Button from './Button'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const CARET = <span> <span className='caret' /></span>; export default class DropdownToggle extends React.Component { render() ...
src/components/post/wrapper.js
voidxnull/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
app/pages/set/roleManage/index.js
duxianwei520/react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Spin, Button, Popconfirm, Form, Input, Layout, Radio, Icon, message, } from 'antd'; import TableList from '@tableList'; // import { hashHistory } from 'react-router' import { menu } from '@apis/common'; import { ...
reactNativeDebugging/index.android.js
micahrye/LearnByDoing
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, Button, Dimensions, } from 'react-native'; import { StackNavigator, } from 'react-navigation'; import _ from 'lodash';...
ajax/libs/rxjs/2.2.7/rx.js
kristoferjoseph/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
web/js/06837fc_part_1.js
radoshordos/shopsymfony
/*! jQuery v1.11.0 | (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...
packages/material-ui-icons/src/PartyModeSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M22 4h-5.17L15 2H9L7.17 4H2v16h20V4zM12 7c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .35.07.69.18 1H7.1c-.06-.32-.1-.66-.1-1 0-2.76 2.24-5 5-5zm0 10c-1.63 0-3.06-.79-3.98-2H12c1.66 0 3-1.34 3-3 0-....
ajax/libs/react-redux/0.5.3/react-redux.min.js
emmy41124/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],t):"object"==typeof exports?exports.ReactRedux=t(require("react"),require("redux")):e.ReactRedux=t(e.React,e.Redux)}(this,function(e,t){retu...
src/Parser/Mage/Frost/Modules/Features/GlacialSpike.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox,...
ajax/libs/highcharts/5.0.0/js/highcharts.src.js
jonobr1/cdnjs
/** * @license Highcharts JS v5.0.0 (2016-09-29) * * (c) 2009-2016 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function(root, factory) { if (typeof module === 'object' && module.exports) { module.exports = root.document ? factory(root) : factory; ...
src/svg-icons/maps/local-see.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalSee = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5...
src/browser/ui/React.js
joshbedo/react
/** * Copyright 2013-2014, 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. * * @providesModule ...
ajax/libs/jquery/1.4.3/jquery.js
kentucky-roberts/cdnjs
/*! * jQuery JavaScript Library v1.4.3 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/components/Grid/__tests__/Row.spec.js
instacart/Snacks
import React from 'react' import renderer from 'react-test-renderer' import { StyleRoot } from '@instacart/radium' import Row from '../Row' it('renders Row correctly', () => { const tree = renderer .create( <StyleRoot> <div> <Row /> </div> </StyleRoot> ) .toJSON() ...
ajax/libs/foundation/4.0.5/js/vendor/jquery.min.js
simonewebdesign/cdnjs
(function(e,t){function n(e){var t=e.length,n=lt.type(e);return lt.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){var t=wt[e]={};return lt.each(e.match(ut)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(lt.acceptData(e)){var o,a,s=lt.expan...
ajax/libs/rxjs/3.0.0/rx.all.js
emmy41124/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && expo...
components/Nav.js
Crazy50/FluxBug
'use strict'; import React from 'react'; import connectToStores from 'fluxible/addons/connectToStores'; import SessionStore from '../stores/SessionStore'; import { NavLink } from 'fluxible-router'; class Nav extends React.Component { render() { const selected = this.props.selected; const links = this.props.l...
src/parser/shared/modules/items/EnchantChecker.js
sMteX/WoWAnalyzer
import React from 'react'; import ItemLink from 'common/ItemLink'; import ITEMS from 'common/ITEMS/bfa/enchants'; import Analyzer from 'parser/core/Analyzer'; import SUGGESTION_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE'; // Example logs with missing enchants: // https://www.warcraftlogs.com/reports/ydxavfGq1mBrM...
src/apps/expenses/components/MarkOrderAsPaidBtn.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, FormattedMessage } from 'react-intl'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import withIntl from '../../../lib/withIntl'; import SmallButton from '../../../components/SmallButton'; class MarkOrderA...
app/routes.js
yaolei/Node-Clound
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter, Route, Link } from 'react-router-dom'; import Navbar from './components/Navbar'; import App from './components/App'; import Home from './components/Home'; import FooterBar from './components/Footer'; import ChatBar from './componen...
public/js/components/CvForm/BlockExperience.js
nowordforfree/react-cv
import React from 'react'; import { Field } from 'redux-form'; import RaisedButton from 'material-ui/RaisedButton'; const maxYear = new Date().getFullYear(); const BlockExperience = props => ( <div className={props.class}> {props.data.map((obj, i) => ( <div key={i}> <div className="row"> ...
app/javascript/src/pages/AppContainer.js
michelson/chaskiq
import React from 'react' import Sidebar from '../components/sidebar' import { Switch, Route, withRouter } from 'react-router-dom' import { isEmpty } from 'lodash' import { camelizeKeys } from '../actions/conversation' import Dashboard from './Dashboard' import Platform from './Platform' import Conversations from './...
src/components/Catcher.js
canalplus/react-keys
/* eslint no-unused-vars:0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { addListener, removeListener } from '../listener'; class Catcher extends Component { constructor(props) { super(props); this.history = ''; this.listenerId = addListener(this.keysHandler, th...
src/packages/@ncigdc/components/Explore/SummaryPage/SurvivalAnalysisCard.js
NCI-GDC/portal-ui
import React from 'react'; import SurvivalPlotWrapper from '@ncigdc/components/SurvivalPlotWrapper'; import { Row } from '@ncigdc/uikit/Flex'; const fakeSurvivalData = { rawData: { overallStats: {}, results: [ { donors: [ { project_id: 'TCGA-OV', censored: fals...
src/routes/error/ErrorPage.js
DaveyEdwards/myiworlds
/** * 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 from 'react'; import PropTypes from 'prop-...
src/app/views/account.js
benigeri/soapee-ui
import React from 'react'; import {RouteHandler} from 'react-router'; import authStore from 'stores/auth'; export default React.createClass( { statics: { willTransitionTo( transition ) { if ( !(authStore.isAuthenticated()) ) { transition.redirect( 'login', {}, { nextPath: tran...
local-cli/templates/HelloWorld/index.ios.js
DannyvanderJagt/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
ajax/libs/forerunnerdb/1.3.421/fdb-legacy.js
jonobr1/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/byo-instantiate-react-component.js
mauricedb/bring-your-own-react
import ReactCompositeComponentWrapper from './byo-react-composite-component'; import ReactHostComponent from './byo-react-host-component'; function instantiateReactComponent(node) { let instance; const element = node; if (typeof element.type === 'string') { instance = ReactHostComponent.createInternalCompone...
app/components/rating.js
7kfpun/BitcoinReactNative
import React, { Component } from 'react'; import { Linking, Platform, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import * as Animatable from 'react-native-animatable'; import * as StoreReview from 'react-native-store-review'; import Icon from 'react-native-vector-icons/MaterialIcons';...
ajax/libs/material-components-web/0.39.3/material-components-web.js
cdnjs/cdnjs
/*! Material Components for the Web Copyright (c) 2018 Google Inc. License: MIT */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else...
ui/src/main/js/components/InstanceViz.js
apache/aurora
import React from 'react'; import { Link } from 'react-router-dom'; export default function InstanceViz({ instances, jobKey }) { const {job: {role, environment, name}} = jobKey; const className = (instances.length > 1000) ? 'small' : (instances.length > 100) ? 'medium' : 'big'; return (<ul className={`i...
.build/bundle/programs/server/npm/node_modules/meteor/okgrow_analytics/examples/react-router/node_modules/react-dom/lib/Danger.js
ocadni/citychrone
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ 'use strict'; var _prodInvariant = require('./reactProdInvariant'); var DOMLazyTree = require('./DOMLazyTree'); var ExecutionEnviro...
sources/app.js
markuswustenberg/template
import React from 'react' // eslint-disable-line no-unused-vars, because the JSX is translated to React.something import ReactDOM from 'react-dom' import {Provider} from 'react-redux' import {applyMiddleware, combineReducers, createStore} from 'redux' import loggerMiddleware from 'redux-logger' import thunkMiddleware f...
node_modules/recompose/createSink.js
yaolei/Samoyed
'use strict'; exports.__esModule = true; var _react = require('react'); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("t...
src/svg-icons/file/attachment.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileAttachment = (props) => ( <SvgIcon {...props}> <path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-....
app/scripts/components/FormPlaceSlotSelectorPlace.js
adzialocha/hoffnung3000
import Modal from 'react-modal' import PropTypes from 'prop-types' import React, { Component } from 'react' import { CuratedPlaceListItem } from './' import { asInfiniteList } from '../containers' import { translate } from '../../../common/services/i18n' const WrappedInfiniteList = asInfiniteList(CuratedPlaceListItem...
src/js/components/icons/base/DocumentText.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/js/routes.js
globin/drinkup
import React from 'react'; import { Route } from 'react-router'; import Main from 'base/main'; import People from 'people/people'; import Drinks from 'drinks/drinks'; import DrinkPersonTable from 'drink-person-table/drinkPersonTable'; import Payment from 'payment/payment'; const routes = ( <Route path='/' compone...
src/routes.js
harpreetkhalsagtbit/react-test-proj
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/HomePage'; import AboutPage from './components/about/AboutPage'; import CustomersPage from './components/customer/CustomersPage'; import ManageCustomerPage from './com...
frontend/modules/recipe_form/components/RecipeForm.js
RyanNoelk/OpenEats
import React from 'react' import { injectIntl, defineMessages, } from 'react-intl'; import { Input, File, Select, TextArea, Checkbox, } from '../../common/components/FormComponents' import IngredientBox from './IngredientBox' import DirectionBox from './DirectionBox' import SubRecipeBox from './SubRecip...
src/addons/dragAndDrop/index.js
elationemr/react-big-calendar
import PropTypes from 'prop-types'; import React from 'react' import { DragDropContext } from 'react-dnd' import cn from 'classnames'; import DraggableEventWrapper from './DraggableEventWrapper' import { DayWrapper, DateCellWrapper } from './backgroundWrapper' let html5Backend; try { html5Backend = require('react-...
bai/src/components/MembershipBody/index.js
blackinai/blackinai.github.io
import { Button, Container, Divider } from '@material-ui/core/'; import Grid from '@material-ui/core/Grid'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import React from 'react'; import Typography from '../Typography'; const styles = (theme) => ({ root: { disp...
ajax/libs/webshim/1.14.6-RC2/dev/shims/combos/26.js
amwmedia/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...
frontend/src/containers/SubmitExpense.js
carlosascari/opencollective-website
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { pushState } from 'redux-router'; import values from 'lodash/object/values'; import createTransaction from '../actions/transactions/create'; import uploadImage from '../actions/images/upload'; import resetTransactionForm from '....
files/clappr/0.0.82/clappr.js
yyx990803/jsdelivr
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
src/svg-icons/av/art-track.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvArtTrack = (props) => ( <SvgIcon {...props}> <path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1...
consoles/my-joy-images/src/mocks/declarative-redux-form.js
yldio/joyent-portal
import React from 'react'; export default ({ children, ...props }) => React.createElement(children, props);
src/components/search_results/ImdbResults.js
landrysoules/mmdb_front_react
import React from 'react' const ImdbResults = ({movies, onImportClick}) => { if (movies.length > 0) { return ( <div className="row"> <div className="col-md-12"> <div className="row"> <div className="col-md-12"> <div className="bs-callout bs-callout-warning"> ...
Examples/UIExplorer/PickerIOSExample.js
sunblaze/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, ...
src/svg-icons/action/timeline.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTimeline = (props) => ( <SvgIcon {...props}> <path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07...
packages/material-ui-icons/src/Lock.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Lock = props => <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-...
src/App.js
doublerz/tractor-beam-client
import React, { Component } from 'react' import ReactDOM from 'react-dom' import SimpleWebRTC from 'simplewebrtc' // Key Codes const W = 87 const A = 65 const S = 83 const D = 68 const LEFT = 37 const UP = 38 const RIGHT = 39 const DOWN = 40 const TIMEOUT = 500 // ms const MAX_SPEED = 255 const TURN_SPEED = MAX_SPEED...
src/website/app/pages/ComponentDoc/DocWhenHowToUse.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Markdown from '../../Markdown'; import Section from './DocSection'; import DocSectionTitle from './DocSectionTitle'; type Props = { content: string }; export default function DocWhenHowToUse(props: Props) { const { content } = props; return ( <Section> <Do...
ajax/libs/6to5/3.3.7/browser.js
DDMAL/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...
Realization/frontend/czechidm-core/src/content/notification/template/TemplateDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; import DOMPurify from 'dompurify'; // import * as Basic from '../../../components/basic'; import * as Advanced from '../../../components/advanced'; import * as Utils from '../../../utils'; import { NotificationTemplateManager, Securi...
test/components/AddressInfoOrError.spec.js
aepyornis/hpd-violations-web
import {isElementOfType} from 'react-addons-test-utils'; import { BblInfo, SimpleMessage, formatAddress, orEmptyString, infoContentSwitcher, AddressInfoOrError } from '../../src/components/AddressInfoOrError'; describe('components/AddressInfoOrError', () => { describe('orEmptyString', () =>{ it(...
ajax/libs/rxjs/2.4.10/rx.js
CosmicWebServices/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; ...
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
gutenye/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import CodeBlock from '../components/CodeBlock'; import { applyStyles } from '../utils/dom/css'; ...
src/svg-icons/image/hdr-strong.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrStrong = (props) => ( <SvgIcon {...props}> <path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ...
ajax/libs/reactive-coffee/0.0.0/reactive-coffee.js
ruslanas/cdnjs
(function() { var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, lagBind, mktag, mkuid, nextUid, popKey, recorder, rx, rxt, tag, tags, _ref, _ref1, _ref2, _ref3, __hasProp = {}.hasOwnProperty, __extends = function(c...