path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/js/components/gallery__list/index.js
afk-mcz/web_client.ellu
import PropTypes from 'prop-types'; import React from 'react'; import Image from '../gallery__row'; const ImageList = ({ images }) => { return ( <section className="gallery"> {images.map(image => <Image key={image.id} {...image} />)} </section> ); }; ImageList.propTypes = { images: PropTypes.array...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
albertolacework/react-router
import React from 'react'; class Assignments extends React.Component { render () { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ); } } export default Assignments;
Scripts/jquery-1.10.2.js
jeandylan/taxiGeoSms
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
src-client/modules/workspace/containers/LibraryPanel/index.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * 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 a...
src/web/containers/HomePage/index.js
lukemarsh/react-redux-boilerplate
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import messages from 'core/HomePage/messages'; import { createStructuredSelector } from 'reselect'; import { selectRepos, se...
docs/app/Examples/elements/Button/Types/ButtonExampleLabeledBasic.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleLabeledBasic = () => ( <div> <Button color='red' content='Like' icon='heart' label={{ basic: true, color: 'red', pointing: 'left', content: '2,048' }} /> <Button basic color='blue'...
examples/async/index.js
oliamb/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
modules/__tests__/RouteComponent-test.js
maksad/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Router from '../Router' describe('a Route Component', function () { let node beforeEach(function () { node = document.createElement('div') }) afterEach(function (...
es/svg-icons/Cancel.js
uplevel-technology/material-ui-next
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; /** * @ignore - internal component. */ let Cancel = props => React.createElement( SvgIcon, props, React.createElement('path', { d: 'M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17...
__tests__/index.android.js
DevHse/ClubRoom
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/client/pages/notfound.react.js
mattybow/state-of-heads
import DocumentTitle from 'react-document-title'; import React from 'react'; import {Link} from 'react-router'; import {msg} from '../intl/store'; export default class NotFound extends React.Component { render() { return ( <DocumentTitle title={msg('notFound.title')}> <div> <h1>{msg('not...
src/svg-icons/device/graphic-eq.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGraphicEq = (props) => ( <SvgIcon {...props}> <path d="M7 18h2V6H7v12zm4 4h2V2h-2v20zm-8-8h2v-4H3v4zm12 4h2V6h-2v12zm4-8v4h2v-4h-2z"/> </SvgIcon> ); DeviceGraphicEq = pure(DeviceGraphicEq); DeviceGraphi...
src/components/App/App.js
askd/animakit
import React from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import BackLink from 'components/BackLink/BackLink'; import styles from './App.css'; const App = withRouter(({ location, children }) => { const isMainPage = location.pathname === '/'; return ( <div...
ajax/libs/forerunnerdb/1.3.349/fdb-core+views.js
kiwi89/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/components/cameras/DeviceOrientationCamera.js
cgrinker/Akkad
import React, {PropTypes} from "react"; import {RenderCamera} from "../systems"; import Entity from "../Entity"; import EntityLoaded from "../EntityLoaded"; class DeviceOrientationCamera extends React.Component { static propTypes = { position: PropTypes.arrayOf(PropTypes.number).isRequired } stati...
src/components/shop/SaleOrderHistory.js
mangal49/HORECA
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions'; import DialogCancel from './DialogCancel' import OrderDetailHistory from './OrderDetailHistory' import SearchBar from '../SearchBar'; import { Scrollbars } from 'react-custom-scrollbars'; import MobileTearSheet...
Example/blog/src/components/Icons/chevron-right.js
EvKylin/Kylin
import React from "react"; import IconBase from "react-icon-base"; export default class Icon extends React.Component { render() { return ( <IconBase viewBox="0 0 512 512" {...this.props}> <path d="M17.525 36.465l-7.071 7.07c-4.686 4.686-4.686 12.284 0 16.971L205.947 256 10.454 451.494c-4.686 4.686-...
webpack/containers/Application/index.js
ares/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { orgId } from '../../services/api'; import * as actions from '../../scenes/Organizations/Or...
files/rxjs/2.3.17/rx.lite.extras.js
Swatinem/jsdelivr
// 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, 'unde...
app/javascript/mastodon/components/__tests__/button-test.js
kirakiratter/mastodon
import { shallow } from 'enzyme'; import React from 'react'; import renderer from 'react-test-renderer'; import Button from '../button'; describe('<Button />', () => { it('renders a button element', () => { const component = renderer.create(<Button />); const tree = component.toJSON(); expect(tree)...
src/Parser/DeathKnight/Frost/Modules/Features/FrostFeverUptime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STAT...
app/javascript/mastodon/components/domain.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
docs/app/src/Root.js
tercenya/compendium
import React from 'react'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'prerequisites.html', 'guides.html', 'summo...
src/pwa.js
ames89/keystone-react-redux
import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from './helpers/Html'; export default function () { return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html />)}`; }
src/main/webapp/static/jquery/jquery-1.9.1.min.js
tlkzzz/xpjfx
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
ajax/libs/jquery/1.4.3/jquery.js
kristoferjoseph/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/routes.js
NoobJS-nwhax/nwhacks-2017
'use strict'; import React from 'react' import { Route, IndexRoute } from 'react-router' import Layout from './components/Layout'; import IndexPage from './components/IndexPage'; import AthletePage from './components/AthletePage'; import CreateSpacePage from './components/CreateSpacePage'; import NotFoundPage from '....
lib/component-library-slides/Why.js
waynecraig/encoding-present
import React from 'react'; export default class Slide extends React.Component { render() { return ( <div> <h1>Why?</h1> <p>UI is a product differentiator.</p> </div> ); } }
test/fixtures/unnamed-function/expected.js
layershifter/babel-plugin-transform-react-handled-props
import React from 'react'; export default function () { return <div />; }
src/forms/Fields.js
joris77/admin-web
import React from 'react' import { Autocomplete, DatePicker, Dropdown, Input } from 'react-toolbox' export const text = ({ input, label }) => (<Input label={label} {...input} />) export const amount = ({ input, label }) => (<Input label={label} {...input} type='number' />) export const date = ({ input, label }) => (...
ajax/libs/onsen/1.2.0/js/onsenui_all.min.js
shelsonjava/cdnjs
/*! onsenui - v1.2.0 - 2014-11-10 */ function FastClick(layer){"use strict";function bind(method,context){return function(){return method.apply(context,arguments)}}var oldOnClick;this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this...
ajax/libs/forerunnerdb/1.3.678/fdb-all.min.js
BitsyCode/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/registration/TitleBar.js
Vasyl1989/Opus.ua
import React from 'react'; import { Link } from 'react-router'; const TitleBar = () => { return ( <div id="titlebar" className="single"> <div className="container"> <div className="sixteen columns"> <h2>Мій акаунт</h2> <nav id="breadcrumbs"> <ul> <li>В...
ajax/libs/angular.js/1.0.0rc3/angular-scenario.js
LeaYeh/cdnjs
/** @license * jQuery JavaScript Library v1.7 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Lic...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
Chronister/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, unmuteAccount, pinAccount, unpinAccount, } from '../../../actions/account...
src/main/script/Index.js
krujos/willitconnect
/* eslint-env browser */ import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux' import thunk from 'redux-thunk'; import EntryBox from './EntryBox'; import reducers from './reducers'; require('bootstrap/dist/css/bootstra...
src/routes/login/index.js
hmeinertrita/MyPlanetGirlGuides
/** * 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 Layout from '../../co...
src/svg-icons/communication/call-made.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMade = (props) => ( <SvgIcon {...props}> <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/> </SvgIcon> ); CommunicationCallMade = pure(CommunicationCallMade); CommunicationCallMade.displ...
src/higher_order_components/boolean.js
frig-js/frig
import React from 'react' /* * A higher order function wrapper for components that only allow 2 possible * values in their props.values (an onValue and an offValue - true and false by * default). * * This component will call onChange for any invalid value to convert it * into the onValue or offValue. */ module....
modules/Lifecycle.js
kurayama/react-router
import React from 'react' import invariant from 'invariant' const { object } = React.PropTypes /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On standard transitions, routerWillLeave receives ...
website/src/react-native/showcase.js
DanielMSchmidt/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'...
packages/material-ui-icons/src/FavoriteBorderTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.1...
src/CircularProgress.js
bgryszko/react-native-circular-progress
import React from 'react'; import PropTypes from 'prop-types'; import { Animated, View } from 'react-native'; import { Svg, Path, G } from 'react-native-svg'; export default class CircularProgress extends React.PureComponent { polarToCartesian(centerX, centerY, radius, angleInDegrees) { var angleInRadians = ((an...
packages/material-ui-icons/src/StayCurrentPortrait.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let StayCurrentPortrait = props => <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z" /> </SvgIcon>; StayCurren...
app/components/PostPreview/index.js
HRR20-Lotus/affirmation
/** * * PostPreview * */ import React from 'react'; import { Card, CardActions, CardHeader, CardTitle, CardText } from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Badge from 'material-ui/Badge'; import SentimentVerySatisfied from 'material-ui/svg-icons/social/sentiment-very-satisfied'; ...
plugins/Hosting/js/components/resizeDialog.js
NebulousLabs/New-Sia-UI
import React from 'react' import { Map } from 'immutable' import Path from 'path' const ResizeDialogModal = ({ resizePath, resizeSize, initialSize, actions }) => { const handleSettingInput = e => actions.updateModal('resizeSize', e.target.value) const hideResizeDialog = newSize => actions.hideResiz...
src/components/Loading/Loading.js
hyy1115/react-redux-webpack2
import React from 'react' import { Spin } from 'antd' import './loading.less' class Loading extends React.Component { render () { return ( <div className="global-loading"> <Spin size="large" /> </div> ) } } export default Loading
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js
matthewoates/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleSimple = () => ( <div style={style.container}> <RefreshIn...
src/parser/monk/brewmaster/modules/spells/BlackoutCombo.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'...
lib/index.js
abraztsov/react-fetch-hoc
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-fetch-hoc"]=t(require("react")):e["react-fetch-hoc"]=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n]...
packages/material-ui-icons/legacy/SignalWifi3BarLock.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-.3-4.9-4-11.6-4z" opacity=".3" /><path d="M23 16v-1.5c0-1...
@plotly/dash-generator-test-component-nested/src/components/MyNestedComponent.js
plotly/dash
import PropTypes from 'prop-types'; import React from 'react'; /** * MyNestedComponent description */ const MyNestedComponent = ({ id, value }) => (<div id={id}>{value}</div>); MyNestedComponent.propTypes = { /** * The id of the component */ id: PropTypes.string, /** * The value to displ...
src/Components/ProjectItem.js
akanchev/react-experiment-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class ProjectItem extends Component { deleteProject(id) { this.props.onDelete(id); } render() { return ( <li className="Project"> <strong>{this.props.project.title}</strong> - {this.props.project.category} <a hre...
react-fundamentals/composable-apis/src/index.js
FMCalisto/react-get-started
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App cat={5} />, document.getElementById('root') );
actor-apps/app-web/src/app/components/Deactivated.react.js
changjiashuai/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
jssource/src_files/include/javascript/yui3/build/event/event.js
julieth756/sugarcrm_dev
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ var GLOBAL_ENV = YUI.Env; if (!GLOBAL_ENV._ready) { GLOBAL_ENV._ready = function() { GLOBAL_ENV.DOMReady = true; GLOBAL_ENV.remove(Y...
app/main.js
christianalfoni/webpack-express-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('root'));
client/spec/components/test-helpers.js
Enter-36-chambers-of-wu-tang-fam/Ilera-health
import jsdom from 'jsdom'; import jquery from 'jquery'; import TestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import chai, { expect } from 'chai'; import React from 'react'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducers from '../src/reducers'; ...
examples/with-redux-saga/pages/index.js
BlancheXu/test
import React from 'react' import { connect } from 'react-redux' import { loadData, startClock, tickClock } from '../actions' import Page from '../components/page' class Index extends React.Component { static async getInitialProps (props) { const { store, isServer } = props.ctx store.dispatch(tickClock(isSer...
src/parser/deathknight/unholy/modules/features/Abilities.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import CoreAbilities from 'parser/core/modules/Abilities'; class Abilities extends CoreAbilities { spellbook() { const combatant = this.selectedCombatant; return [ // roational { spe...
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js
liruqi/actor-platform-v0.9
import React from 'react'; import classNames from 'classnames'; import PeerUtils from 'utils/PeerUtils'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import AvatarItem from 'components/common/AvatarItem.react'; class RecentSectionItem extends React...
src/components/Timer.js
ohmyjersh/themob
import React, { Component } from 'react'; import { Card, message } from 'antd'; import ReactCountdownClock from 'react-countdown-clock'; export default class Timer extends Component { shouldComponentUpdate(newProps) { if(newProps.state.mobsters[0] !== this.props.state.mobsters[0]) { this.pr...
src/index.js
honzapospi/jsskeleton
import ReactDOM from 'react-dom'; import React from 'react'; import {Provider} from 'react-redux'; import {createStore, applyMiddleware} from 'redux'; import {Router, browserHistory} from 'react-router'; import routes from './routers'; import reducers from './reducers'; import promise from 'redux-promise'; const creat...
ajax/libs/angular.js/0.9.1/angular-scenario.min.js
BinaryMuse/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * 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/svg-icons/action/tab-unselected.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTabUnselected = (props) => ( <SvgIcon {...props}> <path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v...
src/svg-icons/device/battery-full.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryFull = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/> </SvgIcon> ); ...
src/svg-icons/editor/monetization-on.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMonetizationOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2...
client/modules/App/__tests__/App.spec.js
trantuthien/React-Test
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { intlShape } from 'react-intl'; import { intl } from '../../../util/react-intl-test-helper'; import { toggleAddPost } from '../App...
src/app/js/components/App.react.js
fcurella/redux-boilerplate
import React from 'react' import CounterContainer from '../containers/CounterContainer.react' import WeatherContainer from '../containers/WeatherContainer.react' const App = React.createClass({ render() { return ( <div> <CounterContainer /> <WeatherContainer /> </div> ); } });...
src/containers/AttributesPanel.js
eveafeline/D3-ID3-Naomi
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getScatterPlot, updateWidth } from '../actions/ScatterPlotActions'; import { getD3ParserObj, updateValue } from '../actions/D3ParserActions'; import { ScatterPlotReducer, D3ParserReducer...
src/components/SortableList/SortableList.js
chengjianhua/templated-operating-system
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import update from 'react/lib/update'; import { DropTarget, DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import isEqual from 'lodash/isEqual'; import SortableItem from './SortableItem'; import { ITE...
tests/apps/.websocket.disabled/public/jquery.min.js
eljojo/dokku
/*! jQuery v@1.8.1 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
src/addons/__tests__/ReactComponentWithPureRenderMixin-test.js
angeliaz/react
/** * Copyright 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-core *...
frontend/app/js/components/issues/details.js
serverboards/serverboards
import React from 'react' import Modal from 'app/components/modal' import {MarkdownPreview} from 'react-marked-markdown' import Flash from 'app/flash' import {merge, colorize, pretty_ago} from 'app/utils' import Avatar from 'app/containers/avatar' import {i18n, i18n_nop} from 'app/utils/i18n' import {Related, Labels} ...
ajax/libs/react/18.0.0-rc.0-next-3b3daf557-20211210/cjs/react.development.js
cdnjs/cdnjs
/** @license React vundefined * react.development.js * * 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. */ 'use strict'; if (process.env.NODE_ENV !== "production") { (function() { ...
docs/app/Examples/elements/Rail/Variations/RailAttachedInternalExample.js
jamiehill/stardust
import React from 'react' import { Image, Rail, Segment } from 'stardust' const RailAttachedInternalExample = () => ( <Segment> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> <Rail attached internal position='left'> <Segment>Left Rail Content</Segment> </Rail> <Rail att...
frontend/test/app/components/ExperimentDisableDialog-test.js
6a68/testpilot
import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import ExperimentDisableDialog from '../../../src/app/components/ExperimentDisableDialog'; describe('app/components/ExperimentDisableDialog', () => { const experiment = { title: 'foobar', survey_ur...
src/parser/shaman/elemental/modules/talents/UnlimitedPower.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/oth...
node_modules/react-icons/md/arrow-drop-up.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdArrowDropUp = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m11.6 23.4l8.4-8.4 8.4 8.4h-16.8z"/></g> </Icon> ) export default MdArrowDropUp
app/javascript/mastodon/components/column_back_button.js
masto-donte-com-br/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; import { createPortal } from 'react-dom'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.objec...
test/PanelGroupSpec.js
aabenoja/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PanelGroup from '../src/PanelGroup'; import Panel from '../src/Panel'; describe('PanelGroup', function () { it('Should pass bsStyle to Panels', function () { let instance = ReactTestUtils.renderIntoDocument( <PanelGrou...
src/routes/home/index.js
utage2002/mm
/** * 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 Home from './Home'; i...
test/ListGroupSpec.js
mmartche/boilerplate-shop
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/components/Taf/ChangeGroup.spec.js
maartenlterpstra/GeoWeb-FrontEnd
import React from 'react'; import ChangeGroup from './ChangeGroup'; import { mount } from 'enzyme'; describe('(Container) Taf/ChangeGroup.jsx', () => { it('Renders a ChangeGroup', () => { const _component = mount(<ChangeGroup value={{}} />); expect(_component.type()).to.eql(ChangeGroup); }); });
doc/ui/js/jquery-1.9.1.js
sefier/doubanfang
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
Blockly4Arduino/msg/js/lb.js
ingegno/Blockly4Arduino
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.lb'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "Bemierkung derbäisetzen"; Blockly.Msg.AUTH = "Please authorize this app to enable your work to be saved and to allow it to be shared by you."; // untransla...
fields/types/text/TextColumn.js
snowkeeper/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var TextColumn = React.createClass({ displayName: 'TextColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, linkTo: React.PropType...
app/components/PosMain/MenuItems/MenuItemComponent.js
sahilkhan99/PosApp
import React, { Component, PropTypes } from 'react'; import { Button, ButtonToolbar, Panel } from 'react-bootstrap'; class MenuItemComponent extends Component { constructor(props, context) { super(props, context); } handleOnAddItem = () => { if (this.props.onAddItemClick) { le...
src/periodGoals.js
joshpollard/react-nhl-scoreboard
import React, { Component } from 'react'; import './periodGoals.css'; class PeriodGoals extends Component { constructor(props) { super(props); } render() { if (this.props.goals.length === 0) { if (this.props.period !== "Overtime") { return this.renderNoGoals(...
src/svg-icons/av/web.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWeb = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/> </SvgIcon> ); AvWeb = pur...
stories/containers/pay/pay.component.stories.js
LN-Zap/zap-desktop
/* eslint-disable max-len */ import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { number, text } from '@storybook/addon-knobs' import { PayButtons, PayHeader, PaySummaryLightning, PaySummaryOnChain } from 'components/Pay' import { tickerSelec...
src/shared/components/form/formInput/formInput.js
alexspence/operationcode_frontend
/* eslint-disable */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Label from 'shared/components/label/label'; import styles from './formInput.css'; class FormInput extends Component { constructor() { super(); this.state = { text: '', isValid: true }; ...
src/components/common/Header.js
m0t0r/course-manager-app
import React, { PropTypes } from 'react'; import { Link, IndexLink } from 'react-router'; import LoadingDots from './LoadingDots'; const Header = ({loading}) => { return ( <nav className="nav"> <IndexLink className="nav-link" to="/" activeClassName="active">Home</IndexLink> <Link className="nav-link"...
client/router/Router.js
Mignon-han/issue-processing
import React from 'react'; import { Router, Route, Redirect, hashHistory, browserHistory } from 'react-router'; import Auth from '../containers/Auth'; import App from '../containers/App'; import Loading from '../containers/Utils/Loading'; const home = () => (<h1>Home</h1>); const login = () => ( <div> <Auth /> ...
files/rxjs/2.3.24/rx.compat.js
dpellier/jsdelivr
// 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 }; v...
js/components/AudioPlayer.react.js
calebwoods/memorize_ephesians
/* * AudioPlayer */ import React, { Component } from 'react'; import Combokeys from 'combokeys' import { asyncPlayAudio, asyncPauseAudio } from '../actions/AppActions'; class AudioPlayer extends Component { renderPlayButton() { const { dispatch } = this.props; this._audioElement = null; return ( ...
src/components/home/index.js
justinjung04/universal-boilerplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { toggleTodo } from '../../actions/todos'; import Header from '../header'; if(process.env.WEBPACK) require('./index.scss'); const Home = ({ dispatch, todos }) => ( <div className='home'> ...
ajax/libs/forerunnerdb/1.3.357/fdb-legacy.js
wil93/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...
Examples/UIExplorer/UIExplorerIntegrationTests/js/SimpleSnapshotTest.js
yjh0502/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/containers/AccountProvider/index.js
VonIobro/ab-web
import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { makeSelectIsWeb3Connected, makeSelectWeb3ErrMsg, } from './selectors'; import { web3Connect, clearWeb3Error } from './actions'; import { modalAdd, modalDismiss } from '../App/actions'; i...