path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
ajax/libs/mediaelement/2.0.7/jquery.js
cluo/cdnjs
/*! * jQuery JavaScript Library v1.4.4 * 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. ...
example/index.ios.js
netbeast/react-native-dial
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Example from './example' export default class example extends Component { render() { return ( ...
test/unit/views/stats-panel.spec.js
gregstewart/hearthstone-tracker
import React from 'react'; import { createRenderer } from 'react-test-renderer/shallow'; import StatsPanel from '../../../app/views/stats-panel.jsx'; import PanelItem from '../../../app/views/panel-item.jsx'; import Stats from '../../../app/views/stats.jsx'; describe('Stats panel view component', () => { it('render...
examples/js/custom/insert-button/default-custom-insert-button.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, InsertButton } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for...
6.0.0-rc.5/examples/react-widgets/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(322),e.exports=n(321)},function(e,t,n){var r=n(5),o=n(34),i=n(18),a=n(20),u=n(39),s="prototype",...
src/components/CommonComponent/FeedCard/feedPage.js
sourabh-garg/react-starter-kit
import React from 'react'; import './feedCard_mobile.scss'; import FeedCard from './feedCard'; import {feeds} from "./dummyData"; class FeedPage extends React.Component{ constructor(props) { super(props); this.addCollection = this.addCollection.bind(this); this.share = this.share.bind(this); } ...
docs/app/Examples/elements/Header/Content/HeaderExampleIconProp.js
vageeshb/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExampleIconProp = () => ( <Header as='h2' icon='plug' content='Uptime Guarantee' /> ) export default HeaderExampleIconProp
tools/bundle.js
xitman78/reactpro
/** * 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 webpack from 'webpack'; import webpackConfig from '...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsNoneButState.js
TiddoLangerak/flow
// @flow import React from 'react'; class MyComponent extends React.Component<void, Props, State> { defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<void, Props, State> { defaultProps: T; static prop...
components/Records.js
xcv58/CubeTimer
import React from 'react' import { inject, observer } from 'mobx-react' import Panel from './Panel' import { getTimeObj } from '../libs/utils' const getStyle = ({ min, lapse }) => { if (min === lapse) { return { color: 'black' } } } export const Record = ({ lapse, min, index }) => { const { minute, second, ...
ajax/libs/primereact/7.1.0/dock/dock.js
cdnjs/cdnjs
this.primereact = this.primereact || {}; this.primereact.dock = (function (exports, React, utils, ripple) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefaultLegacy(React); function...
src/utils/domUtils.js
aabenoja/react-bootstrap
import React from 'react'; /** * Get elements owner document * * @param {ReactComponent|HTMLElement} componentOrElement * @returns {HTMLElement} */ function ownerDocument(componentOrElement) { let elem = React.findDOMNode(componentOrElement); return (elem && elem.ownerDocument) || document; } /** * Shortcut...
src/components/SecurityApprovals/SecurityApprovals.js
zhangxy9999/DBMSTools
import React, { Component } from 'react'; import NavBar from '../NavBar'; import 'antd/lib/button/style/css'; import '../layout.css'; export default class Dashboard extends Component { render() { return ( <div className="layout-aside"> <aside className="layout-sider"> ...
packages/react-reconciler/src/__tests__/ReactExpiration-test.js
ericyang321/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @jest-environment node */ 'use strict'; let React; let ReactNoop; let Scheduler; let readText; let resolveText; describe('Rea...
ajax/libs/yui/3.6.0/event-focus/event-focus.js
froala/cdnjs
YUI.add('event-focus', function(Y) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = YLang.isFunction( Y...
ajax/libs/places.js/0.29.0/places.js
brix/cdnjs
/*! 0.29.0 | © Algolia | github.com/algolia/places */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object'...
ajax/libs/F2/1.4.0/f2.no-bootstrap.min.js
seogi1004/cdnjs
/*! F2 - v1.4.0 - 01-23-2014 - See below for copyright and license */ (function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obta...
dashboard/web/assets/7867b0b1/parsleyjs/dist/parsley.js
lindermaycol/sarest
/*! * Parsley.js * Version 2.6.0 - built Wed, Nov 2nd 2016, 10:27 am * http://parsleyjs.org * Guillaume Potier - <guillaume@wisembly.com> * Marc-Andre Lafortune - <petroselinum@marc-andre.ca> * MIT Licensed */ // The source code below is generated by babel as // Parsley is written in ECMAScript 6 // var _slice = Array...
ajax/libs/yui/3.10.3/scrollview-base/scrollview-base.js
Amomo/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ // Local vars var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, IE = Y.UA.ie...
frontend/src/containers/Full/Full.js
felipear89/promotion-admin
import React, { Component } from 'react'; import Header from '../../components/Header/'; import Sidebar from '../../components/Sidebar/'; import Aside from '../../components/Aside/'; import Footer from '../../components/Footer/'; import Breadcrumbs from 'react-breadcrumbs'; class Full extends Component { render() {...
node/webpack/react/array/array.js
wushi27/nodejs201606
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; //dom array var arr = [ <h1>hello,world</h1>, <h2>react is ok</h2> ]; ReactDOM.render( <div>{arr}</div>, document.getElementById('test') );
ajax/libs/rxjs/2.3.21/rx.all.js
iwdmb/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 }; ...
src/containers/DashboardPage.js
nickeblewis/walkapp
/** * Component that lists all Posts */ import React from 'react' import Event from '../components/Event' import { graphql } from 'react-apollo' import gql from 'graphql-tag' class EventListPage extends React.Component { static propTypes = { data: React.PropTypes.object, } render () { if (this.props....
es2015/exercises/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoped-functions/node_modules/babel-runtime/node_modules/core-js/client/shim.js
sabustamante/frontend-training
/** * core-js 1.2.6 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
app/components/Home.js
SixSecondMonks/sos-electron
import React, { Component } from 'react'; import 'phaser-shim'; class Game extends Phaser.Game { constructor (height, width, type, element, funcs) { super(height, width, type, element, funcs); } } export default class Home extends Component { constructor(props) { super(props); this.game = new Game(8...
app/javascript/mastodon/features/status/components/action_bar.js
PlantsNetwork/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; i...
web/src/js/components/Settings/Profile/ProfileDonateHeartsView.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import QueryRendererWithUser from 'js/components/General/QueryRendererWithUser' import graphql from 'babel-plugin-relay/macro' import SettingsChildWrapper from 'js/components/Settings/SettingsChildWrapperComponent' import ProfileDonateHearts from 'js/compone...
test/integration/prerender/pages/fallback-only/[slug].js
JeromeFitz/next.js
import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' export async function getStaticPaths() { return { paths: [], fallback: true, } } export async function getStaticProps({ params }) { await new Promise((resolve) => setTimeout(resolve, 1000)) return { pro...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/treemap/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeMap from '../../../jqwidgets-react/react_jqxtreemap.js'; class App extends React.Component { render () { let data = [ { label: 'Drama', value: null, color: '#B3FAFF' }, ...
src/parser/hunter/beastmastery/modules/spells/BestialWrath.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellI...
src/components/statusItem.js
josoroma/status
import React from 'react'; import {observer} from 'mobx-react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import IconButton from 'material-ui/IconButton'; import ActionDelete from 'material-ui/svg-icons/action/dele...
ajax/libs/instantsearch.js/0.14.9/instantsearch.min.js
pvnr0082t/cdnjs
/*! instantsearch.js 0.14.9 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantse...
src/views/WidgetList/widgets/Accounts/AccountsWidget.js
GovReady/GovReady-Agent-Client
import React, { Component } from 'react'; import { PropTypes as PT } from 'prop-types'; class AccountsWidget extends Component { render () { return ( <div className='panel panel-default'> <div className='panel-body'> <h4> {this.props.admins} <br/> <smal...
src/routes.js
materliu/Chrome-DevTools
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
client/src/components/LoginForm.js
richb-hanover/reactathon
import React from 'react'; import { Link } from 'react-router'; import { FormErrors } from './partials'; import { Center, LoginWith } from './partials/Elements'; import { Button, Input, ButtonInput } from 'react-bootstrap'; import { AppActions } from '../actions/AppActions'; import { AppStore } from '../stores/A...
examples/index.ios.js
Recr0ns/react-native-material-switch
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Switch from 'react-native-material-switch'; export default class examples extends Component { render() { return ( <View style={styles.container}> <Text style={styles.title}>{...
app/routes.js
awebfactory/react-starter
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/app'; import Home from './components/content/home'; import About from './components/content/about'; import Path from './containers/path'; import Steps from './components/content/steps/steps'; import IndexStep fro...
docs/src/index.js
dowjones/react-dropdown-tree-select
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' ReactDOM.render(<App />, document.getElementById('app'))
src/ui/pages/_detailPageWindDir.js
e-Ray/web_platform
import React, { Component } from 'react'; import { DetailPage } from '../components/generic'; import { observer } from 'mobx-react'; import { observable } from 'mobx'; import { ref } from '../../api/Auth/_constants'; import { firebaseAuth } from '../../api/Auth/_constants'; @observer class DetailPageWindDir extends...
src/test/containersSpec/ChannelDropdown.spec.js
TerryCapan/twitchBot
import React from 'react'; import { mount } from 'enzyme'; import chai, { expect } from 'chai'; import chaiEnzyme from 'chai-enzyme'; import sinon from 'sinon'; chai.use(chaiEnzyme()); import ConnectedChannelDropdown from '../../containers/ChannelDropdown'; import configureStore from '../../store/configureStore'; con...
ajax/libs/yui/3.17.0/datatable-core/datatable-core-debug.js
luigimannoni/cdnjs
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @sinc...
src/routes/Counter/childRoutes.js
Peturman/resume-app
import React from 'react' import { Route } from 'react-router' export default [ <Route path='count' component={require('./view/count').default} /> ]
js/Components/Login/login.js
Heli-Copter/messaging-client
import React from 'react'; import './login.scss'; import 'whatwg-fetch'; import { Link, Redirect } from 'react-router-dom'; import { postData } from '../../utils/fetch'; import { login as loginURL } from '../../utils/urls'; class Login extends React.Component { constructor() { super(); this.proceedToLogin =...
test/ButtonSpec.js
brynjagr/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Button from '../src/Button'; describe('Button', function () { it('Should output a button', function () { let instance = ReactTestUtils.renderIntoDocument( <Button> Title </Button> ); assert.equal(...
src/lib/ContextTypes.js
reapp/reapp-kit
var React = require('react'); module.exports = { theme: React.PropTypes.object, animations: React.PropTypes.object, store: React.PropTypes.func, action: React.PropTypes.func, router: React.PropTypes.func };
app/react-icons/fa/indent.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaIndent extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m7.9 18.6q0 0.3-0.2 0.5l-6.5 6.4q-0.2 0.2-0.5 0.2-0.3 0-0.5-0.2t-0.2-0.5v-12....
src/routes/contact/index.js
thepechinator/pp-test-heroku
/** * 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 React from 'react'; import Contact from './Contact'...
src/components/RunescapeMaxHitCalculator/EquipmentSelector.js
Dynatos/personal-website
import React, { Component } from 'react'; import ReactSearchBar from 'react-search-bar'; import { setStrengthValueFromEquipment } from '../../../scripts/calculateMaxHitCapsule'; import allItemData from './items_with_strength_bonus'; const suggestions = getSuggestionsFromObjects(allItemData); function getSuggestionsFr...
node_modules/react-bootstrap/es/Grid.js
GregSantulli/react-drum-sequencer
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/src/app/components/pages/components/Tabs/ExampleIcon.js
tan-jerene/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import FontIcon from 'material-ui/FontIcon'; import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; const TabsExampleIcon = () => ( <Tabs> <Tab icon={<FontIcon className="muidocs-icon-action-home" />} /> <Tab icon=...
src/svg-icons/action/accessible.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessible = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19...
src/components/Common/WhitelistInputBlock.js
oraclesorg/ico-wizard
import React from 'react' import Web3 from 'web3'; import update from 'immutability-helper'; import Dropzone from 'react-dropzone'; import Papa from 'papaparse' import '../../assets/stylesheets/application.css'; import { InputField } from './InputField' import { TEXT_FIELDS, VALIDATION_MESSAGES, VALIDATION_TYPES } from...
misc/jquery.js
roshanad/accelerate
/*! * jQuery JavaScript Library v1.4.4 * 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/containers/forms/UpdateContainer.js
PocketOfWeird/MediaGarden
import React from 'react' import { connect } from 'react-redux' import { serverUpdate, serverRemove, goBackward } from '../../actions' import { isLoading } from '../../selectors' import makeFormFieldsContainer from './FormFieldsContainer' import makeFormActionContainer from './FormActionContainer' import makeFormSelect...
exercise-03-solution/src/index.js
learnapollo/pokedex-react
import React from 'react' import ReactDOM from 'react-dom' import Pokedex from './components/Pokedex' import PokemonPage from './components/PokemonPage' import { Router, Route, browserHistory } from 'react-router' import ApolloClient, { createNetworkInterface } from 'apollo-client' import { ApolloProvider } from 'react...
src/js/components/parameters/ParameterInputList.js
knowncitizen/tripleo-ui
/** * Copyright 2018 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
ajax/libs/F2/1.3.2/f2.no-easyXDM.min.js
Stavrakakis/cdnjs
/*! F2 - v1.3.2 - 11-18-2013 - See below for copyright and license */ (function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obta...
ajax/libs/video.js/5.8.2/alt/video.novtt.js
menuka94/cdnjs
/** * @license * Video.js 5.8.2 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}e...
node_modules/react/lib/traverseAllChildren.js
mirandagithub/reactflux_try
/** * 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/react-swipe/4.1.2/react-swipe.js
boneskull/cdnjs
(function (root, factory) { if (typeof module !== 'undefined' && module.exports) { module.exports = factory( require('react'), require('react-dom'), require('swipe-js-iso'), require('object-assign') ); } else { root.ReactSwipe = factory( root.React, root.ReactDOM, ...
public/jquery.js
CoderDojoDCU/galileosocial
/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-01T17:42Z */ (function( global, factory ) { if ...
src/components/TodoListFooter.js
taion/relay-todomvc
import Link from 'found/Link'; import PropTypes from 'prop-types'; import React from 'react'; import { createFragmentContainer, graphql } from 'react-relay'; import RemoveCompletedTodosMutation from '../mutations/RemoveCompletedTodosMutation'; const propTypes = { viewer: PropTypes.object.isRequired, relay: PropTy...
src/app/components/gridFormView/griddleLinkComponent.js
Kikonejacob/nodeApp
import React from 'react'; var LinkComponent = React.createClass({ render: function(){ let key=this.props.metadata.linkKey; //console.log(key); key=(key==undefined)?'id':key; let url =this.props.metadata.partialLink + this.props.rowData[key]; return (<a href={url}>...
app/javascript/mastodon/features/compose/components/text_icon_button.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const iconStyle = { height: null, lineHeight: '27px', width: `${18 * 1.28571429}px`, }; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, ...
packages/react/components/col.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....
chapter 2/JSX/app/Conditional.js
pro-react/sample-code
import React, { Component } from 'react'; // Parent Component class Conditional extends Component { render() { let condition = true; return ( <div> {condition ? <span>Hello JSX (The condition was true)</span> : null} </div> ); } } export default Conditional
node_modules/react-icons/fa/bookmark.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaBookmark = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.5 2.9q0.5 0 1 0.2 0.7 0.2 1.1 0.9t0.5 1.4v28.7q0 0.8-0.5 1.4t-1.1 0.9q-0.5 0.2-1 0.2-1.1 0-1.9-0.7l-9.8-9.5-9.9 9.5q-0.8 0.7-1.8 0.7-0.5 0-1-0.2-0.7-0.3-1.2-0.9t...
src/svg-icons/maps/person-pin.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPin = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2...
examples/huge-apps/routes/Calendar/components/Calendar.js
cgrossde/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
ajax/libs/es6-shim/0.33.13/es6-shim.js
stefanneculai/cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.33.13 * see https://github.com/paulmillr/es6-shim/blob/0.33.13/LICENSE * Details and documentation: * https://github.com/paulmillr/es...
examples/websdk-samples/LayerReactNativeSample/src/ui/messages/QuoteMessagePart.js
layerhq/layer-js-sampleapps
import React, { Component } from 'react'; import { StyleSheet, View, Text } from 'react-native'; export default class QuoteMessagePart extends Component { render() { return ( <View style={styles.container}> <Text style={styles.messageText}>{'"' + this.props.messagePart.body + '"'}</Text> ...
client/extensions/woocommerce/app/dashboard/manage-external-view.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import EmptyContent from 'components/empty-content'; import ExternalLink from 'components/external-link'; import { re...
ajax/libs/material-ui/5.0.0-alpha.15/node/Popper/Popper.js
cdnjs/cdnjs
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _extends2 = _interopRequireDefaul...
src/mention/test-pages/async.js
damassi/react-tinymce-mention
import React from 'react' import axios from 'axios' import Editor from './components/Editor' import Mention from '../Mention' import CustomList from './components/CustomList' React.render( <div> <Editor /> <Mention showDebugger={true} delimiter={'@'} asyncDataSource={(query) => { re...
server/sonar-web/src/main/js/apps/component-measures/details/drilldown/Breadcrumb.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
admin/client/App/shared/FlashMessages.js
trentmillar/keystone
/** * Render a few flash messages, e.g. errors, success messages, warnings,... * * Use like this: * <FlashMessages * messages={{ * error: [{ * title: 'There is a network problem', * detail: 'Please try again later...', * }], * }} * /> * * Instead of error, it can also be hilight, info, ...
ajax/libs/instantsearch.js/0.12.0/instantsearch.min.js
dannyxx001/cdnjs
/*! instantsearch.js 0.12.0 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantse...
node_modules/react-bootstrap/es/DropdownToggle.js
premcool/getmydeal
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
packages/material-ui-icons/src/Healing.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Healing = props => <SvgIcon {...props}> <path d="M17.73 12.02l3.98-3.98c.39-.39.39-1.02 0-1.41l-4.34-4.34c-.39-.39-1.02-.39-1.41 0l-3.98 3.98L8 2.29C7.8 2.1 7.55 2 7.29 2c-.25 0-.51.1-.7.29L2.25 6.63c-.39...
src/RouterHookContext.js
kouhin/react-router-hook
import React from 'react'; import PropTypes from 'prop-types'; import EventEmitter from 'eventemitter3'; import { ComponentStatus, routerHookPropName } from './constants'; import getAllComponents from './getAllComponents'; import { componentsShape, locationShape, routerHookContextShape } from './PropTypes'; const CHAN...
test/renderer/views/cell-creator-spec.js
0u812/nteract
import React from 'react'; import sinon from 'sinon'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import CellCreator from '../../../src/notebook/views/cell-creator'; describe('CellCreatorView', () => { const createCell = sinon.spy(); const mergeCell = sinon.spy(); const setup = (id) => sha...
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/tap-and-play.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationTapAndPlay = (props) => ( <SvgIcon {...props}> <path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-2 .9-2 2v7.37c.69.16 1.36.37 2 .64...
src/components/Table/Table.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { applyDecorators, decoratorProp } from '../../utils'; const Table = (props) => { const { children, className, flavor, stickyHeader, variation, ...rest } = props; const sldsClasses = [ ...
public/assets/js/node_modules/react-select/examples/src/components/ValuesAsNumbersField.js
ngocson8b/6jar
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes....
lib/shared/screens/admin/screens/media/index.js
relax/relax
import * as mediaActions from 'actions/media'; import bind from 'decorators/bind'; import debounce from 'decorators/debounce'; import getLazyFilters from 'helpers/get-lazy-load-filters'; import Component from 'components/component'; import React from 'react'; import PropTypes from 'prop-types'; import {getMimeTypes} f...
node_modules/semantic-ui-react/dist/es/collections/Grid/GridColumn.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useOnlyProp, useTextAlignProp, useValueAndKey, useVerticalAlignProp, useWidthProp } from ...
ee/client/omnichannel/cannedResponses/CannedResponsesList.stories.js
VoiSmart/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import CannedResponsesList from './CannedResponsesList'; export default { title: 'omnichannel/CannedResponse/CannedResponsesList', component: CannedResponsesList, }; const cannedResponses = [ { shortcut: 'lorem', text: 'Lorem ipsum dolor ...
ajax/libs/6to5/2.7.2/browser.js
dominic/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...
expo/CensoredStamp.js
redpandatronicsuk/react-native-censored
import React from 'react' import { Svg } from 'expo' import { censoredStampPath } from '../data/censored-stamp-path' export default class CensoredStamp extends React.Component { render() { const { height = 65.5, width = 339.4, style, scale = 1, fill = '#BE1622' } = this.props return ( <Svg style={sty...
ajax/libs/styled-components/4.0.2/styled-components-macro.esm.min.js
extend1994/cdnjs
import Stylis from"stylis/stylis.min";import _insertRulePlugin from"stylis-rule-sheet";import React,{cloneElement,createContext,Component,createElement}from"react";import{isElement,isValidElementType,ForwardRef}from"react-is";import memoize from"memoize-one";import stream from"stream";import PropTypes from"prop-types";...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-13/App.js
Brandon-J-Campbell/codemash
import React, { Component } from 'react'; import { BrowserRouter, Route } from 'react-router-dom'; import Friends from './friends/Friends.entry'; import FriendDetail from './friend-detail/FriendDetail.entry'; import styles from './App.css'; class App extends Component { render() { return ( <BrowserRoute...
client/src/modules/schedule/components/week-schedule.view.js
euqen/spreadsheet-core
'use strict'; import React from 'react'; import DaySchedule from './day-schedule.view'; import scheduleDays from './../../../infrastructure/schedule-days'; import counterpart from 'counterpart'; import Translate from 'react-translate-component'; counterpart.registerTranslations('en', { alertMessage: "Please, sele...
test/containers/CounterPage.spec.js
gnoll-project/GnollUI
import { expect } from 'chai'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import { Provider } from 'react-redux'; import CounterPage from '../../app/containers/CounterPage'; import config...
src/docs/Props.js
dryzhkov/ps-react-dr
import React from 'react'; import PropTypes from 'prop-types'; const Props = ({props}) => { return ( <table className="props"> <thead> <tr> <th>Name</th> <th>Description</th> <th>Type</th> <th>Default</th> <th>Required</th> </tr> </the...
packages/material-ui-icons/legacy/LocationOffSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M3.41 2.86L2 4.27l3.18 3.18C5.07 7.95 5 8.47 5 9c0 5.25 7 13 7 13s1.67-1.85 3.38-4.35L18.73 21l1.41-1.41L3.41 2.86zM12 2c-1.84 0-3.5.71-4.75 1.86l3.19 3.19c.43-.34.97-.55 1.56-.55 1.38...
client/src/scenes/RegisterPage/index.js
RudthMael/chatx
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { register } from '../../actions/auth'; import { getAuth } from '../../selectors'; import './index.css'; class RegisterPage extends React.Component { constructor(props) { super(props); this.state ...
test/test_helper.js
JonnyPickard/blog-app-react
import React from 'react'; import jsdom from 'jsdom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import chaiEnzyme from 'chai-enzyme'; import chai from 'chai'; import { mount } from 'enzyme'; import { MemoryRouter as Router } from 'react-router-dom'; import reducers from '../src/reduc...
src/modules/axiom/containers/Axiom.js
jeffdowdle/l-systems
import { connect } from 'react-redux'; import React from 'react'; import PropTypes from 'prop-types'; import { actions as axiomActions, selectors as axiomSelectors, } from 'modules/axiom'; import TextInput from 'form/TextInput'; const ProductionRules = ({ axiom, onChange, }) => ( <TextInput id="axiom" ...
src/routes.js
nice00xt/React-user-app
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import { App } from './components/App'; import Home from './containers/home/home'; import { NotFoundPage } from './containers/NotFoundPage/NotFoundPage'; export default ( <Route path="/" component={App}> <IndexRoute component={Home}/> ...
src/App.js
sampsonjoliver/ggj-2017
import React, { Component } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import logo from './logo.svg'; import _ from 'lodash'; import './App.css'; import Text from './components/text' import GameController from './GameController' import TodoList from './TodoList'; class App...