path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/svg-icons/action/polymer.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPolymer = (props) => ( <SvgIcon {...props}> <path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/> </SvgIcon> ); ActionPolymer = pure(ActionPolymer); ActionPolymer.d...
src/components/Columns/Columns.js
nambawan/g-old
// taken from https://github.com/grommet/grommet/blob/master/src/js/components/Columns.js /* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './Columns.css'; class Columns extends Re...
examples/huge-apps/routes/Grades/components/Grades.js
ksivam/react-router
import React from 'react' class Grades extends React.Component { render() { return ( <div> <h2>Grades</h2> </div> ) } } export default Grades
examples/cra-kitchen-sink/.storybook/preview.js
storybooks/react-storybook
import { addParameters, addDecorator } from '@storybook/react'; import { withA11y } from '@storybook/addon-a11y'; addDecorator(withA11y); addParameters({ options: { storySort: (a, b) => a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, { numeric: true }), }, });
extensions/log/client-admin.js
axax/lunuc
import React from 'react' export default () => { }
app/assets/scripts/views/project/dashboard.js
openaq/openaq.org
import React from 'react'; import PropTypes from 'prop-types'; import DetailsCard from '../../components/dashboard/details-card'; import LatestMeasurementsCard from '../../components/dashboard/lastest-measurements-card'; import SourcesCard from '../../components/dashboard/sources-card'; import ParametersCard from '../...
ajax/libs/react-toolbox/2.0.0-beta.6/slider/Slider.min.js
cdnjs/cdnjs
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Slider=exports.sliderFactory=void 0;var _createClass=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return functio...
node_modules/react-router/es6/RouteContext.js
mbestwick/medication-search
import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent trans...
srcjs/components/Input.js
wlainer/react-redux-tutorial
import React from 'react' import { danger } from '../util/colors' export default ({field, label}) => <div className="form-group"> <label forHtml={field.name} className="col-sm-2 control-label">{label}</label> <div className="col-sm-10"> <input type='text' className="form-control" {...field} /> {fie...
src/main/webapp/resources/third-party/highcharts/highcharts.src.js
longchen-glo/ContestSystem
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v3.0.6 (2013-10-04) * * (c) 2009-2013 Torstein Hønsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
ajax/libs/vega/3.0.9/vega-core.js
jonobr1/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-request'), require('d3-dsv'), require('d3-time-format'), require('d3-array'), require('d3-shape'), require('d3-path'), require('d3-scale'), require('d3-scale-chromatic'), require('d3-interpolate'),...
ajax/libs/vis/0.3.0/vis.js
mscharl/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 0.3.0 * @date 2014-01-14 * * @license * Copyright (C) 2011-2013 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
ajax/libs/yui/3.17.2/event-custom-base/event-custom-base-debug.js
jakubfiala/cdnjs
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
gmatgamefrontend/src/elements/Answer.js
decodeMERV/GMATgameFE
import React from 'react'; import './Answer.css'; export default (props) => { return ( <div style= {{ backgroundColor: props.bgColor ? props.bgColor : "white", // color : props.color ? props.color : "black", fontSize : ...
files/highcharts/4.0.3/highcharts.src.js
leebyron/jsdelivr
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.0.3 (2014-07-03) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
test/PageItemSpec.js
bbc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageItem from '../src/PageItem'; describe('PageItem', () => { it('Should output a "list item" as root element, and an "anchor" as a child item', () => { let instance = ReactTestUtils.renderIntoDocument( <PageItem href=...
ajax/libs/legojs/0.0.1/lego.min.js
willdady/cdnjs
/* * __ _ * / /__ ____ ____ (_)____ * / / _ \/ __ `/ __ \ / / ___/ * / / __/ /_/ / /_/ / / (__ ) * /_/\___/\__, /\____(_)_/ /____/ * /____/ /___/ * * * https://github.com/tybenz/legojs * * made in 2013 * by * Tyler Benziger * -...
client/components/data/PositiveGrowthSymbol.js
VoiSmart/Rocket.Chat
import React from 'react'; const style = { width: '1.5em', height: '1.5em', verticalAlign: '-0.5em' }; const PositiveGrowthSymbol = (props) => ( <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style={style} {...props}> <path clipRule='evenodd' fill='currentColor' fillRule='evenodd' d={`M4.7...
src/components/FAQ/Question/Question.js
Tarabyte/foodlr-web
import React from 'react' import faqShape from '../faq.shape' const Question = ({ question }) => { const styles = require('./Question.css') // eslint-disable-line global-require return ( <div className={styles.question}> <h3>{question.question}</h3> <div className={styles.answer} d...
app/containers/GlosorEditor.js
kaunio/gloso
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { withRouter, Link } from 'react-router'; import { List } from 'immutable'; import LanguagePair from '../components/LanguagePair'; import GlosaTableRow from '../components/GlosaTa...
ajax/libs/react-native-web/0.14.11/cjs/exports/ActivityIndicator/index.min.js
cdnjs/cdnjs
"use strict";exports.__esModule=!0,exports.default=void 0;var _StyleSheet=_interopRequireDefault(require("../StyleSheet")),_View=_interopRequireDefault(require("../View")),_react=_interopRequireWildcard(require("react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;ret...
imports/plugins/core/core/server/methods/shop/updateDefaultParcelSize.js
anthonybrown/reaction
import { check, Match } from "meteor/check"; import { Shops } from "/lib/collections"; import Reaction from "/imports/plugins/core/core/server/Reaction"; import ReactionError from "@reactioncommerce/reaction-error"; const shippingRoles = ["admin", "owner", "shipping"]; /** * @method shop/updateDefaultParcelSize * @...
packages/material-ui-icons/src/BatteryCharging80Outlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L11.93 9H7v11.67C7 21.4 7.6 22 8.33 22h7.33c....
src/behaviors/BootFade/BootFade.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules, omit } from '../../lib/' const propTypes = { baseClass: PropTypes.string, baseClassIn: PropTypes.string, tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), className: PropTypes.string, ...
src/Map.component.js
zeusdeux/kebabful
import React from 'react' import './Map.css' import pinIcon from './icon-pin.png' const Map = React.createClass({ getInitialState () { const { InfoWindow } = this.props.gmap return { infoWindow: new InfoWindow({ content: '' }) } }, componentWillReceiveProps({ BERLIN, restaurants,...
dist/1.11.1/jquery-ajax-dimensions-offset.min.js
michael829/jquery-builder
/*! jQuery v1.11.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-dimensions,-offset | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?modul...
ajax/libs/preact/5.0.0-beta3/preact.dev.js
hare1039/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.preact = global.preact || {}))); }(this, function (exports) { 'use strict'; function VNode(nodeName, attri...
test/components/Counter.spec.js
leofle/electron_manifesto
/* eslint no-unused-expressions: 0 */ import { expect } from 'chai'; import { spy } from 'sinon'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import Counter from '../../app/components/Coun...
app/javascript/src/client/sessions/new.js
rringler/billtalk
import _ from 'lodash'; import React, { Component } from 'react'; import { Alert, Button, Col, ControlLabel, Form, FormControl, FormGroup, HelpBlock } from 'react-bootstrap'; import { reduxForm, Field, SubmissionError } from 'redux-form'; import ClosableAlert from 'lib/closeable_alert'; import { connect } from 'react-r...
packages/material-ui-icons/src/EvStationTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M8 13.5H6V19h6v-8l-4 7z" opacity=".3" /><path d="M6 13.5L10 6v5h2V5H6z" opacity=".3" /><path d="M12 3H6c-1.1 0-2 .9-2 2v16h10v-7.5h1.5v5c0 1.38 ...
src/svg-icons/action/swap-horiz.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapHoriz = (props) => ( <SvgIcon {...props}> <path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/> </SvgIcon> ); ActionSwapHoriz = pure(ActionSwapHoriz); ActionSwapHoriz.d...
ajax/libs/swagger-ui/3.0.14/swagger-ui.js
maruilian11/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-polyfill"),require("deep-extend"),require("redux"),require("immutable"),require("redux-immutable"),require("serialize-error"),require("base64-js"),require("ieee754"),require("isarray"),require("shallowequal"),require("xml")...
mongomart/static/bower_components/datatables/media/js/jquery.js
yathishbl60/M101JS
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
client/app/components/RestaurantPage/Common/FavoriteButton.js
yanhao-li/menu-plus
import React from 'react'; import PropTypes from 'prop-types'; import Chip from 'material-ui/Chip'; import { toggleFavorite } from 'actions/FavoritesActions'; const propTypes = { dispatch: PropTypes.func.isRequired, restaurant: PropTypes.object.isRequired, }; class FavoriteButton extends React.PureComponent { c...
src/web/components/ContextMenuSubHeader.js
faalsh/Lama
import React from 'react'; import { StyleSheet, css } from 'aphrodite' class ContextMenuSubHeader extends React.Component { render() { const styles = StyleSheet.create({ item: { fontSize: '16px', color: 'grey', padding: '10px' } }) return( <di...
src/components/slides/Next.js
santiagoarriaga/slide_viewer
import React from 'react' import { connect } from 'react-redux' /** * Show next slide, if any. */ class Next extends React.Component { constructor( props ) { super( props ) this.displayNext = this.displayNext.bind( this ) } displayNext() { const index = this.props.module.selected + 1 th...
samples/react/app/utils/injectSaga.js
IntelliSearch/search-client
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {function} saga A r...
packages/material-ui-icons/src/StarRateRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path transform="scale(1.33, 1.33)" fill="none" d="M0 0h18v18H0V0z" /><path transform="scale(1.33, 1.33)" d="M9 11.3l2.46 1.79c.39.29.92-.1.77-.56l-.94-2.89 2.43-1.73c.4-.28.2-.91-.29-.91h-2.98...
packages/material-ui-icons/src/Backup.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65...
src/components/MarkdownParagraph/index.js
iris-dni/iris-frontend
import React from 'react'; import Markdown from 'react-markdown'; import styles from 'components/Paragraph/paragraph.scss'; import getClassNames from 'helpers/getClassNames'; const MarkdownParagraph = ({ text, margin, size }) => ( text ? <Markdown className={getClassNames(styles, ['root', margin, size])} d...
examples/src/index.js
chibicode/react-json-tree
import { render } from 'react-dom'; import React from 'react'; import App from './App'; render(<App />, document.getElementById('root'));
src/containers/Dashboard/index.js
ayastreb/money-tracker
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Grid } from 'semantic-ui-react'; import CollapsibleSection from '../../components/CollapsibleSection'; import NetWorth from './NetWorth'; import Accounts from './Accounts'; import TransactionForm from '../Tran...
components/Cards/PlaceListingCard/PlaceListingCard.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import PictureCard from '../PictureCard/PictureCard'; import css from './PlaceListingCard.css'; const PlaceListingCard = (props) => { const { imageSrc, href, priceFromLabel, price, priceUnit, name, ...
ajax/libs/material-ui/4.9.14/esm/Tabs/ScrollbarSize.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import PropTypes from 'prop-types'; import debounce from '../utils/debounce'; var styles = { width: 99, height: 99, position: 'absol...
src/svg-icons/notification/tap-and-play.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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...
docs/src/pages/components/text-fields/CustomizedInputs.js
allanalexandre/material-ui
import React from 'react'; import { withStyles, makeStyles, createMuiTheme } from '@material-ui/core/styles'; import { ThemeProvider } from '@material-ui/styles'; import InputBase from '@material-ui/core/InputBase'; import { fade } from '@material-ui/core/styles/colorManipulator'; import InputLabel from '@material-ui/c...
packages/material-ui-icons/src/SpeakerNotesOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17l-.59.59-.58.58V4h16v12z" /><path d="M6 12h2v2H6zM6 9h2v2H6zM...
src/components/footer.js
itzsaga/slack-list
import React from 'react' const Footer = () => ( <footer className="footer"> <div className="container"> <div className="content has-text-centered"> <p> <strong>Slack List</strong> <br /> The source code is available as open source under the terms of the{' '} ...
ajax/libs/yui/3.10.2/event-custom-base/event-custom-base-debug.js
kood1/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
tests/components/Header/Header.spec.js
jenyckee/react-redux-midi-rtc
import React from 'react' import { Header } from 'components/Header/Header' import classes from 'components/Header/Header.scss' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header/>) ...
examples/api/api_raw.js
DigitalGlobe/jetset
import React from 'react'; import { users } from './api_decorator'; @users export default class RawApiExample extends React.Component { handleClick = () => this.props.users.api.post( '/1/albums', {} ) render() { const { users } = this.props; return ( <div> <button onClick={ this.handleClick...
src/Parser/HolyPaladin/Modules/Talents/AuraOfMercy.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Combatants f...
src/components/Main.js
dmonroy/appui
require('normalize.css'); require('styles/App.css'); import React from 'react'; let yeomanImage = require('../images/yeoman.png'); class AppComponent extends React.Component { render() { return ( <div className="index"> <img src={yeomanImage} alt="Yeoman Generator" /> <div className="noti...
webpack-simple/template/src/components/Hello.js
zxjly/reactweb-cli
/** * Created by JamesZhang on 2017/6/17. */ import React from 'react' class Hello extends React.Component { // constructor(props, context) { // super(props, context); // } render () { return ( <div className="text-center hello"> <div> <img src={require('../assets/imgs/logo.png...
docs/src/examples/modules/Rating/Variations/RatingExampleSize.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Rating } from 'semantic-ui-react' const RatingExampleSize = () => ( <div> <Rating maxRating={5} defaultRating={3} icon='star' size='mini' /> <br /> <br /> <Rating maxRating={5} defaultRating={3} icon='star' size='tiny' /> <br /> <br /> <Rating maxRatin...
ajax/libs/yui/3.2.0/event-custom/event-custom.js
rivanvx/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module e...
src/test/activation-tests.js
crystal-ball/componentry
/* eslint-env jest */ import { fireEvent, render, screen, waitForElementToBeRemoved, } from '@testing-library/react' import React from 'react' /** * This set of activation event tests should pass for every element with active * state. It's probably not really necessary to run these tests for each element, *...
frontend/src/components/DatePicker.js
carlosascari/opencollective-website
import React, { Component } from 'react'; import ReactDatePicker from 'react-datepicker'; import moment from 'moment'; class DatePicker extends Component { render() { const { selected, maxDate } = this.props; return ( <span className='DatePicker'> <ReactDatePicker selected={selected}...
app/javascript/mastodon/features/explore/tags.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { fetc...
renderer/components/File.js
markmarcelo/reactide
import React from 'react'; import RenameForm from './RenameForm'; import PropTypes from 'prop-types'; const File = ({ file, dblClickHandler, selectedItem, id, clickHandler, renameFlag, renameHandler }) => { return ( <li className={selectedItem.id === id ? 'list-item selected' : 'list-item'} onDoubleC...
files/rxjs/2.3.0/rx.all.js
Heark/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...
src/svg-icons/communication/phonelink-erase.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkErase = (props) => ( <SvgIcon {...props}> <path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0...
src/components/login-register/Login.js
ariroseonline/bargame
import React from 'react'; var Login = React.createClass({ contextTypes: { router: React.PropTypes.object.isRequired }, getInitialState: function(){ return { error: false } }, handleGoogle: function() { var provider = new firebase.auth.GoogleAuthProvide...
src/svg-icons/hardware/watch.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareWatch = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2....
src/components/ChooseBusiness/ChooseBusiness.js
TheModevShop/craft-app
import React from 'react'; import {Link} from 'react-router'; import _ from 'lodash'; import './choose-business.less'; class ChooseBusiness extends React.Component { constructor(...args) { super(...args); this.state = { }; } render() { return ( <div className="choose-business"> ...
analysis/warlockaffliction/src/CONFIG.js
anom0ly/WoWAnalyzer
import SPECS from 'game/SPECS'; import React from 'react'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a large part of the spec or contributed s...
files/rxjs/2.2.28/rx.lite.compat.js
EragonJ/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...
imports/ui/components/Pagination/Pagination.js
muhammadsasmito/meteor-solr
/* global window */ /* eslint-disable react/prefer-es6-class */ import React from 'react'; import RcPagination from 'rc-pagination'; import { _ } from 'meteor/underscore'; const Pagination = React.createClass({ propTypes: { searchMetadata: React.PropTypes.object.isRequired, searchParams: React.PropTypes.ob...
src/pages/posts/data/gitWorkflow.js
wchargin/wchargin.github.io
import React from 'react'; import dedent from '../../../dedent'; import Prism from '../../../extern/Prism'; import {Code, CodeBlock} from '../../../Components'; function render(Title, Section) { return <article> <Title>Managing dependent pull requests</Title> <p> In this article, I’ll ...
src/main/js/src/components/comment/AddComment.js
fernandojunior/spring-react-boilerplate
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { RouterType } from '../../propTypes'; import { saveComment, } from './actions'; const actionCreators = { saveComment }; class AddComment extends React.Component { saveComment(event) { event.preve...
src/components/Scene.js
Haroenv/datawall
import React, { Component } from 'react'; import styled from 'styled-components'; import { colors, sizes } from '../constants'; import icons from '../img/icons'; import Info from './Info'; import Hub from './Hub'; import Pod from './Pod'; const Wrapper = styled.div` flex-grow: 1; height: ${sizes.scene.height}; ...
src/vendor/recharts/src/polar/PolarAngleAxis.js
donal-crotty/fuzzy-telegram
/** * @fileOverview Axis of radial direction */ import React, { Component, PropTypes } from 'react'; import pureRender from '../util/PureRender'; import Layer from '../container/Layer'; import { PRESENTATION_ATTRIBUTES, getPresentationAttributes } from '../util/ReactUtils'; import Dot from '../shape/Dot'; import Poly...
src/common/Header/Header.js
Kelvinmijaya/taralite-starter-kit
import React from 'react' import './assets/Header.css' import Logo from './assets/logo.svg' export const Header = (props) =>( <div className="app-header"> <img src={Logo} className="app-logo" alt="logo" /> <h2>Welcome to React</h2> </div> ) Header.propTypes = { } export default Header
src/components/BlankSlate.js
my-contributions/my-contributions.github.io
import 'primer-base/index.scss'; import 'primer-blankslate/index.scss'; import 'primer-utilities/index.scss'; import 'primer-marketing/index.scss'; import React from 'react'; import AuthorInput from './AuthorInput'; import MergeIcon from 'octicons/build/svg/git-merge.svg'; import PullRequestIcon from 'octicons/build/...
ajax/libs/core-js/0.4.9/core.js
gokuale/cdnjs
/** * Core.js 0.4.9 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(global, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...
ajax/libs/ag-grid/5.3.1/lib/utils.js
x112358/cdnjs
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v5.3.1 * @link http://www.ag-grid.com/ * @license MIT */ var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; var FUNCTION_ARGUMENT_NAMES = /([^\s,]+)/g; // util class, only used when ...
Angular-Complete/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
atorefrank/TTU-SDC
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
app/routes/MyTeam/MyTeam.js
arnef/ligatool-hamburg
import React from 'react'; import { connect } from 'react-redux'; import { TabNavigator } from 'react-navigation'; import NavTabBarTop from '../../Nav/NavTabBarTop'; import { MatchList, Team } from '../../components'; import * as MyTeamActions from '../../redux/modules/myteam'; import Routes from '../../config/routes';...
react-music-player/app/components/header.js
zyl274939543/myblog
import React from 'react' import './header.less' let Header=React.createClass({ render(){ return ( <div className="components-header row"> <img src="/static/images/logo.png" width="40" alt="" className="-col-auto"/> <h1 className="caption">React Music Player</h1> </div> ); } }); export default Hea...
styles/js/jquery.min.js
uban360/uban360.github.io
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim...
src/js/components/areas/PaintField.js
thomas-lack/patchwork-planner
import React from 'react'; import { connect } from 'react-redux'; function select(state) { return { className: state.patternSelect }; } class PaintField extends React.Component { constructor(props) { super(props); this.state = { className: '' }; this.handleClick = this.handleClick.bind(this); } handleClick...
js/vendor/modernizr/test/js/lib/jquery-1.7b2.js
bebraw/yeswejekyll
/*! * jQuery JavaScript Library v1.7b2 * 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 Licenses. ...
app/components/AutoComplete/view.js
kelsonic/react-redux-material-ui-boilerplate
/** * * AutoComplete view * */ import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; export default function render() { return ( <AutoComplete anchorOrigin={this.props.anchorOrigin} animated={this.props.animated} animation={this.props.animation} dataSource={this...
src/auth/screens/splash.screen.js
gitpoint/git-point
import React, { Component } from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { colors } from 'config'; import { resetNavigationTo } from 'utils'; const mapStateToProps = state => ({ isAuthenticated: state.auth.isAuthenticated, }); const LogoContainer = styled.View...
admin/client/components/RelatedItemsList.js
pswoodworth/keystone
import React from 'react'; import Columns from '../columns'; import { Alert, Spinner } from 'elemental'; const RelatedItemsList = React.createClass({ propTypes: { list: React.PropTypes.object.isRequired, refList: React.PropTypes.object.isRequired, relatedItemId: React.PropTypes.string.isRequired, relationship...
ajax/libs/6to5/1.13.6/browser-polyfill.js
peteygao/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/routes/admin/index.js
jwhchambers/react-starter-kit
/** * 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 Admin from './Admin'; c...
ajax/libs/vkui/4.24.0/cssm/components/Cell/CellDragger/CellDragger.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["onDragStart","onDragMove","onDragEnd"];import{createScopedElement}from"../../../lib/jsxRuntime";import*as React from"react";import{Icon24Reorder,Icon24ReorderIos}from...
app/containers/AdminRelais/containers/InfosRelais.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { createStructuredSelector } from 'reselect'; import { isPristine, change } from 'redux-form'; import RelaisForm from 'containers/AdminRelais/components...
9-styled-components/src/AddTodo.js
mariusz-malinowski/tutorial-react
import React, { Component } from 'react'; import {connect} from 'react-redux'; import {enterTodoName, addTodo} from './actions'; class AddTodo extends Component { onFormSubmit = (evt) => { evt.preventDefault(); this.props.dispatch(addTodo()); } render() { return ( <form onSubmit={this.onFormSu...
app/javascript/mastodon/features/nicovideo/player/components/controller.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Controller extends React.PureComponent { static propTypes = { videoId: PropTypes.string, input: PropTypes.string, onChange: PropTypes.func.isRequired, onClickPlay: PropTypes.func.isRequired, onClickCopy: PropType...
ajax/libs/primereact/6.4.1/components/paginator/CurrentPageReport.js
cdnjs/cdnjs
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
client/src/index.js
mick842/react-node-auth
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
packages/ui-toolkit/src/styleguide/parallax.js
yldio/joyent-portal
import React, { Component } from 'react'; import styled from 'styled-components'; import remcalc from 'remcalc'; import is from 'styled-is'; import { Parallax } from 'react-scroll-parallax'; import { H1, P } from '../'; import Gutter from './gutter'; import Plus from './plus.png'; const Wrapper = styled.section` wi...
node_modules/react-router/es6/Lifecycle.js
Win-Myint/ReactChallenge2
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * 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 stan...
packages/material-ui-icons/src/LocationSearchingSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7...
ajax/libs/react-redux/0.3.0/react-redux.min.js
jonobr1/cdnjs
!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.ReactRedux=t(require("react")):e.ReactRedux=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exp...
src/svg-icons/image/navigate-next.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNavigateNext = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); ImageNavigateNext = pure(ImageNavigateNext); ImageNavigateNext.displayName = 'Ima...
misc/jquery.js
ari-gold/pantheon-simplesaml-example
/*! * 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....
client/src/components/generic/TextInput.js
mfasman95/HTTP-API-project
import React from 'react'; import { InputGroup, FormControl, Button } from 'react-bootstrap'; /** * @class TextInput * @extends {React.Component} * * @prop title - The title of the input field * @prop placeholder - The placeholder text for the input field * @prop value - The value that's being maintained in the...