target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
test/integration/production-swcminify/pages/error-in-browser-render-status-code.js
azukaru/next.js
import React from 'react' export default class ErrorInRenderPage extends React.Component { render() { if (typeof window !== 'undefined') { const error = new Error('An Expected error occurred') // This will be extracted by getInitialProps in the _error page, // which will result in a different er...
src/routes/dashboardPages/databaseView/databaseView.js
bhavik3jain/LibertyMutual320Project
import React, { Component } from 'react'; import $ from "jquery"; import Panel from 'react-bootstrap/lib/Panel'; import Alert from 'react-bootstrap/lib/Alert'; import Button from 'react-bootstrap/lib/Button'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstrap/lib/Toolt...
examples/auth-with-shared-root/components/PageTwo.js
meraki/react-router
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page Two! Wooo!</h2> } }) export default PageOne
src/components/pagination/PaginationButton/PaginationPrev.js
cltk/cltk_frontend
import React from 'react'; import { Link, withRouter } from 'react-router'; const PaginationPrev = props => ( <Link to={{ pathname: '/browse', query: { ...props.location.query, page: (props.location.query.page ? parseInt(props.location.query.page, 10) : 2) - 1, }, }} > <i className="mdi mdi-ch...
ajax/libs/react/0.4.2/JSXTransformer.js
jacoborus/cdnjs
/** * JSXTransformer v0.4.2 */ (function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeJSXTransformer=e}else"undefined"!=typeof wi...
assets/javascripts/kitten/components/layout/container/test.js
KissKissBankBank/kitten
import React from 'react' import renderer from 'react-test-renderer' import 'jest-styled-components' import { Container } from './index' describe('<Container />', () => { let component describe('compare with snapshot', () => { beforeEach(() => { component = renderer.create(<Container />).toJSON() })...
files/maxmertkit/1.0.1/js/maxmertkit.min.js
bdukes/jsdelivr
(function(){"use strict";var t,i,e,n,o,s,r;n=[],s=[],o={x:0,y:0,z:0},r="0.0.1",t=function(){function t(t){this.name=t}return t.prototype.callbacks=n,t.prototype.registerCallback=function(t){return this.callbacks.push(t)},t}(),e=function(){function i(){}return i.prototype.events=s,i.prototype.registerEvent=function(i){v...
src/svg-icons/navigation/chevron-left.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft = pure(NavigationChevronLeft); NavigationChevronLeft.dis...
src/index.js
IbrahimCode/ReactReduxRouterStarter
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { ConnectedRouter } from 'react-router-redux' import createHistory from 'history/createBrowserHistory' import App from './containers/App' import registerServiceWorker from './registerServiceWorker' // Style impor...
public/vendor/jquery-1.9.1.min.js
lvivdev/RubySchool_Less_23
/*! 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...
app/components/TwitterPicker/common/Swatch.js
juanda99/arasaac-frontend
import React from 'react' import reactCSS from 'reactcss' import { handleFocus } from '../helpers/interaction' import Checkboard from './Checkboard' const ENTER = 13 export const Swatch = ({ color, style, onClick = () => {}, onHover, title = color, children, focus, focusStyle = {} }) => { const tra...
src/utils/ValidComponentChildren.js
leozdgao/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
app/javascript/mastodon/components/dropdown_menu.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
ajax/libs/vue/1.0.19-csp/vue.common.js
AMoo-Miki/cdnjs
/*! * Vue.js v1.0.19-csp * (c) 2016 Evan You * Released under the MIT License. */ 'use strict'; function set(obj, key, val) { if (hasOwn(obj, key)) { obj[key] = val; return; } if (obj._isVue) { set(obj._data, key, val); return; } var ob = obj.__ob__; if (!ob) { obj[key] = val; r...
Lab8/app.js
prpatel/react-workshop-day1
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import Bootstrap from 'react-bootstrap'; import Jumbotron from 'react-bootstrap/lib/Jumbotron'; import Panel from 'react-bootstrap/lib/Panel'; import Input from 'react-bootstrap/lib/Input'; import Label from 'react-bootstrap/lib/L...
src/client/components/kiosk/Setup/KioskSetup.component.js
DBCDK/content-first
import React from 'react'; import T from '../../base/T'; import Button from '../../base/Button'; import Toolbar from '../../base/Toolbar'; import Banner from '../../base/Banner'; import Input from '../../base/Input'; import Text from '../../base/Text'; import Heading from '../../base/Heading'; import Kiosk from '../../...
static/src/components/Footer.js
Termnator/mikebot
// @flow import React from 'react'; import numeral from 'numeral'; import * as StatsActions from '../actions/StatsActions'; import * as ShareActions from '../actions/ShareActions'; import ShareStore from '../stores/ShareStore'; import Constants from '../Constants'; const Footer = React.createClass({ render() { ...
src/layouts/layout-2-1.js
nazaninreihani/binary-next-gen
import React from 'react'; export default (components, className, onClick) => ( <div className={className + ' vertical'} onClick={onClick}> {components[0]} {components[1]} </div> );
misc/tabledrag.js
boringtao/mythopoet
(function ($) { /** * Drag and drop table rows with field manipulation. * * Using the drupal_add_tabledrag() function, any table with weights or parent * relationships may be made into draggable tables. Columns containing a field * may optionally be hidden, providing a better user experience. * * Created tableD...
src/RadialProgress.js
samidarko/react-radial-progress
import React from 'react'; function clamp (n, min, max) { return Math.max(min, Math.min(max, n)); } export class RadialProgress extends React.Component { constructor() { super(); this.initialize = this.initialize.bind(this); this.generatePath = this.generatePath.bind(this); th...
ajax/libs/react-router/0.10.1/react-router.min.js
NameFILIP/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi...
people-app/pages/person.js
giltayar/micro-next-workshop
import React from 'react' import Head from 'next/head' import Router from 'next/router' import fetch from 'isomorphic-fetch' export default class PersonPage extends React.Component { static async getInitialProps({res, query}) { const peopleDbUrl = res ? process.env.PEOPLE_DB : window.peopleDbUrl if (!query....
ajax/libs/redux-form/7.0.0/redux-form.min.js
jonobr1/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-redux"),require("redux")):"function"==typeof define&&define.amd?define(["react","react-redux","redux"],t):"object"==typeof exports?exports.ReduxForm=t(require("react"),require("react-redux"),require("redux"...
files/videojs/5.0.0-rc.80/video.js
gregorypratt/jsdelivr
/** * @license * Video.js 5.0.0-rc.80 <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> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License...
ajax/libs/rxjs/2.2.27/rx.all.compat.js
andersem/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 }; v...
src/routes.js
mintlin/foreman
"use strict"; import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/app'; import HomePage from './components/homePage'; import PlanPage from './components/planPage'; import Category from './components/category'; export default ( <Route path="/" component={App}> ...
client/src/app/components/employer/Employer.js
lefnire/jobs
import React from 'react'; import { RaisedButton, Card, CardText, CardTitle, CardHeader, FlatButton, } from 'material-ui'; import Job from '../jobs/Job'; import _ from 'lodash'; import {_fetch, me, getTags, constants, filterOptions, _ga, IS_SMALL, PRICE} from '../../helpers'; const {TAG_TYPES} = constants; ...
element-react-test/src/components/AlertTip.js
fengnovo/fengnovo-react-test
import React from 'react' import { Button, Notification } from 'element-react' class AlertTip extends React.Component { constructor(...args){ super(...args) } onClick() { MessageBox.msgbox({ title: '消息', message: '这是一段内容, 这是一段内容, 这是一段内容, 这是一段内容, 这是一段内容, 这是...
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
tan-jerene/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuOpenImmediateExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value)...
Example/index.ios.js
FuYaoDe/react-native-app-intro
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Alert, Image } from 'react-native'; import AppIntro from 'react-native-app-intro'; // import AppIntro from './AppIntro'; const styles = StyleS...
src/svg-icons/action/update.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionUpdate = (props) => ( <SvgIcon {...props}> <path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.5...
src/tests/compose.js
kadirahq/react-komposer
/* eslint react/prefer-stateless-function: 0, react/prop-types: 0 */ import React from 'react'; import { shallow, mount } from 'enzyme'; import { expect } from 'chai'; import compose from '../compose'; const { describe, it } = global; class Comp extends React.Component { render() { return (<p>{this.props.name}<...
examples/async/index.js
morgante/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...
node_modules/react-icons/md/account-balance.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdAccountBalance = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.1 1.6l15.9 8.4v3.4h-31.6v-3.4z m7.5 15h5v11.8h-5v-11.8z m-23.2 20v-5h31.6v5h-31.6z m13.2-20h5v11.8h-5v-11.8z m-10 0h5v11.8h-5v-11.8z"/></g> </Icon> ) ...
imports/plugins/core/ui/client/components/multiselect/multiselect.js
evereveofficial/reaction
import React, { Component, PropTypes } from "react"; import classnames from "classnames"; import Select from "react-select"; import { Translation } from "../translation"; import { i18next } from "/client/api"; class MultiSelect extends Component { static defaultProps = { multi: true, simpleValue: true } ...
ajax/libs/analytics.js/2.8.18/analytics.js
jasonpang/cdnjs
(function umd(require){ if ('object' == typeof exports) { module.exports = require('1'); } else if ('function' == typeof define && define.amd) { define(function(){ return require('1'); }); } else { this['analytics'] = require('1'); } })((function outer(modules, cache, entries){ /** * Global ...
packages/material-ui-icons/src/SignalWifi0BarOutlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /> , 'SignalWifi0BarOutlined');
src/svg-icons/av/not-interested.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvNotInterested = (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 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12...
examples/03 Nesting/Drop Targets/index.js
tylercollier/react-dnd-demo
import React, { Component } from 'react'; import Container from './Container'; export default class NestingDropTargets extends Component { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drop%20Targets'>Browse the Source</a>...
modules/gui/src/widget/buttonGroup.js
openforis/sepal
import {Widget} from './widget' import {compose} from 'compose' import {withContext} from 'context' import PropTypes from 'prop-types' import React from 'react' import withForwardedRef from 'ref' const Context = React.createContext() export const withButtonGroupContext = withContext(Context, 'buttonGroupContext') co...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
boyley/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import AvatarItem from...
my-app/src/components/scaffold/MenuItem.js
sThig/jabbascrypt
import React from 'react'; import styled from 'styled-components'; import MediaQuery from '../helper/mediaQuery'; import { NavLink } from 'react-router-dom'; const MenuList = styled.li` a { display: block; color: rgba(255,255,255,0.3); padding: 14px 16px; text-decoration: none; ${MediaQuery.pho...
packages/react-vis/src/treemap/treemap-svg.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/screens/Characters/CharacterDetailScreen.js
rdonnelly/swd-team-builder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Image, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import { connect } from 'react-redux'; import { validateSetCode } from '../../lib/SWDIconCodes'; import SWDIcon from '../../components/S...
docs/src/pages/customization/overrides/Classes.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Button from 'material-ui/Button'; const styles = { root: { background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)', borderRadius: 3, border: 0, color: 'white', height: 48,...
ajax/libs/react-slick/0.10.0/react-slick.js
hare1039/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
ajax/libs/react-instantsearch/5.0.3/Dom.min.js
jonobr1/cdnjs
/*! ReactInstantSearch 5.0.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e.ReactInstantSearch=e.ReactInstantSearch||{},e.Rea...
tools/jruby-1.7.11/lib/ruby/1.9/rdoc/generator/template/darkfish/js/jquery.js
savaki/gocd
/*! * jQuery JavaScript Library v1.6.2 * 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/initializer/after.js
KleeGroup/focus-demo-app
//////////////////////////////////////////////////////// /// SCRIPT EXECUTED AFTER DOM CONTENT LOADED //////////////////////////////////////////////////////// import React from 'react'; import storesInitializer from './scripts/stores-initializer'; import userInitializer from './scripts/user-initializer'; import headerI...
renderer/components/UI/BackgroundTertiary.js
LN-Zap/zap-desktop
import React from 'react' import { Box } from 'rebass/styled-components' /** * @name BackgroundTertiary * @example * <BackgroundTertiary /> */ class BackgroundTertiary extends React.Component { render() { return <Box bg="tertiaryColor" color="primaryText" {...this.props} /> } } export default BackgroundTe...
app/components/Login/Social.js
Jberivera/pandoras-wall
import React from 'react'; import style from './Login.scss'; import classNames from 'classnames/bind'; const css = classNames.bind(style); const Social = ({ onFacebookLogin }) => { return ( <div> <div className={ css('fb-btn') } onClick={onFacebookLogin}>Facebook</div> </div> ); }; export default ...
docs/app/Examples/collections/Grid/Variations/GridExampleStretchedEqual.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image, Segment } from 'shengnian-ui-react' const GridExampleStretchedEqual = () => ( <Grid columns='equal'> <Grid.Row stretched> <Grid.Column> <Segment>1</Segment> <Segment>2</Segment> </Grid.Column> <Grid.Column width={6}> <Segme...
imports/ui/components/NestedCategoriesWidget/NestedCategories.js
muhammadsasmito/meteor-solr
/* eslint-disable react/prefer-es6-class */ import React from 'react'; import classNames from 'classnames'; const NestedCategories = React.createClass({ propTypes: { categories: React.PropTypes.object.isRequired, onCategorySelect: React.PropTypes.func.isRequired, selectedCategoryPath: React.PropTypes.st...
js/components/month_choise.js
monetario/web
import React from 'react'; import Datetime from 'react-datetime'; import Formsy from 'formsy-react'; import Moment from 'moment'; const MonthChoise = React.createClass({ getDefaultProps() { return { }; }, render() { return ( <div className="datepicker datepicker-inline"> <div classNa...
react/comments/src/CommentBox.js
sabertazimi/st-proj
import React from 'react'; import CommentList from './CommentList'; import CommentForm from './CommentForm'; export default class CommentBox extends React.Component { constructor(props, context) { super(props, context); this.state = { data: [ { id: 1...
packages/material-ui-icons/src/IndeterminateCheckBoxSharp.js
lgollut/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 3H3v18h18V3zm-4 10H7v-2h10v2z" /> , 'IndeterminateCheckBoxSharp');
ajax/libs/jointjs/0.9.1/joint.js
steadiest/cdnjs
/*! JointJS v0.9.1 - JavaScript diagramming library 2014-08-07 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /*! * jQuery JavaScript Library v2.0.3 * http://jquery...
docs/src/pages/system/spacing/HorizontalCentering.js
allanalexandre/material-ui
import React from 'react'; import Box from '@material-ui/core/Box'; function HorizontalCentering() { return ( <div> <Box mx="auto" bgcolor="background.paper" p={1}> Centered element </Box> </div> ); } export default HorizontalCentering;
src/components/markdown/htags.js
Hacker0x01/react-storybook-addon-info
import React from 'react'; import { baseFonts } from '../theme'; export class H1 extends React.Component { render() { const styles = { ...baseFonts, borderBottom: '1px solid #eee', fontWeight: 600, margin: 0, padding: 0, fontSize: '40', }; return <h1 id={this.props.id...
src/components/note_form.js
asommer70/thehoick-notes-server
import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router' import cookie from 'react-cookie'; import Store from '../lib/store'; var store = new Store(); var socket = io(); class NoteForm extends Component { constructor(props) { super(props); this.username = cookie.load('us...
webpack/scenes/SmartProxy/Content.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import SmartProxyContentTable from './SmartProxyContentTable'; const Content = ({ smartProxyId }) => ( <SmartProxyContentTable smartProxyId={smartProxyId} /> ); Content.propTypes = { smartProxyId: PropTypes.number, }; Content.defaultProps = { smart...
node_modules/react-native/local-cli/library/library.js
reallin/MyReact-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 stric...
sites/all/libraries/wvega-timepicker/external/jquery-1.6.2.min.js
baiqj/ybzx
/*! * jQuery JavaScript Library v1.6.2 * 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. ...
components/ListPage/ListPres/ListPres.js
yodairish/pres-view
'use strict'; import React from 'react'; import PresListStore from '../../../js/stores/PresListStore.js'; import PresListActions from '../../../js/actions/PresListActions.js'; import ListPresItem from './ListPresItem/ListPresItem.js'; import LoadMore from './LoadMore/LoadMore.js'; export default React.createClass({ ...
site/src/components/App.js
livesmoking/livesmoking
import React from 'react' import ConnectionSelector from './ConnectionSelector' import Room from './Room' class App extends React.Component { constructor(props) { super(props) this.state = {} this.onJoinClicked = this.onJoinClicked.bind(this) } componentDidMount() { this.context.history.listen((...
node_modules/react-icons/ti/social-google-plus-circular.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiSocialGooglePlusCircular = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m21.3 21.8l-0.6-0.5c-0.2-0.1-0.5-0.3-0.5-0.8l0.5-1c0.8-0.7 1.6-1.3 1.6-2.8s-1-2.4-1.3-2.7h1.2l1.1-0.7h-4c-1 0-2.3 0.2-3.5 1-0.8 0.7-1.3 1.7-1.3 2.7 0...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/ring-volume.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationRingVolume = (props) => ( <SvgIcon {...props}> <path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-.28.79-.74 1.69-1.36 2...
renderer/components/TextEditorPane.js
reactide/reactide
import React from 'react'; import TextEditor from './TextEditor'; import TabContainer from './TabContainer'; import PropTypes from 'prop-types'; const TextEditorPane = ({ appState, setActiveTab, closeTab, onEditorValueChange, cbOpenSimulator_Main, cbOpenSimulator_Ext }) => { // const editorArr = []; // if (Object....
scripts/templates/stateless-functional-component.js
fpoumian/react-devicon
module.exports = `import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './{{ componentName }}.svg' /** {{ componentName }} */ function {{ componentName }}({ width, height, className }) { return ( <SVGDeviconInline c...
src/components/action-menu/components/ActionMenuSetup.js
mailvelope/mailvelope-styleguide
/** * Copyright (C) 2017 Mailvelope GmbH * Licensed under the GNU Affero General Public License version 3 */ import React from 'react'; import PropTypes from 'prop-types'; function ActionMenuSetup(props) { return ( <div className="primary"> <ul className="action-menu" role="menu" aria-label="Mailvelop...
client/containers/Annotate.js
exacs/liqen-face
import React from 'react' import { connect } from 'react-redux' import zipWith from 'lodash/fp/zipWith' import fetch from 'isomorphic-fetch' import Article from '../components/annotator/article' import MultiList from '../components/annotator-drawer/multi-list' import LiqenCreator from '../components/annotator-drawer/l...
ajax/libs/yui/3.2.0/event-custom/event-custom-base-debug.js
jacobq/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/containers/StandalonePostEditor.js
Hylozoic/hylo-redux
import React from 'react' import { prefetch } from 'react-fetcher' import { connect } from 'react-redux' import { capitalize } from 'lodash' import { navigate, fetchCommunity, fetchPost, startPostEdit } from '../actions' import { CREATE_POST, UPDATE_POST } from '../actions/constants' import { getCommunities, getP...
ajax/libs/mediaelement/2.23.1/jquery.js
holtkamp/cdnjs
/*! * 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...
src/components/LinkInput.js
ZachGawlik/print-to-resist
import PropTypes from 'prop-types'; import React from 'react'; import '../styles/LinkInput.css'; class LinkInput extends React.Component { handleUrlChange = event => { this.props.onUrlChange(this.props.index, event.target.value); }; handleDeleteClick = () => { this.props.onDeleteLink(this.props.index); ...
src/container/TaggedEntrypoints.js
legendecas/material-swagger-ui
import { connect } from 'react-redux'; import _ from 'lodash'; import EntrypointList from '../component/EntrypointLists'; const TaggedEntrypoints = connect( state => ({ lists: _.map(state.definition.tags, tag => ({ title: tag.name, description: tag.description, entrypoints: _.filter...
src/index.js
codyloyd/teamup
import React from 'react' import ReactDOM from 'react-dom' import Root from './components/root' import './index.css' import configureFirebase from './configureFirebase' import configureStore from './configureStore' import appReducer from './reducer' // these imports are useful for testing.. but I keep them commented ...
samples/src/components/FormFiddleWrapper/FormFiddleWrapper.react.js
codazen/formulationjs
'use strict'; require('./css/FormFiddleWrapper.less'); import React from 'react'; import Form from '../../../../src/components/Form.react'; import Fiddle from '../Fiddle/Fiddle.react'; class FormFiddleWrapper extends React.Component { constructor(props) { super(props); this.state = { form: this.prop...
tests/react_children/tabs.js
facebook/flow
// @flow /** * This test represents a pattern which is commonly used to make tab bars, but * this pattern is also used in many other places. */ import React from 'react'; class Tab extends React.Component<{}, void> {} class NotTab extends React.Component<{}, void> {} type TabBarNode = | void | null | boole...
packages/es-components/src/components/navigation/horizontalnav/HorizontalNav.specs.js
jrios/es-components
/* eslint-env jest */ import React from 'react'; import { renderWithTheme } from '../../util/test-utils'; import HorizontalNav from './HorizontalNav'; let instanceToRender; const onClick = jest.fn(); beforeEach(() => { onClick.mockClear(); instanceToRender = ( <HorizontalNav selected="home"> <Horizon...
src/control/content/index.js
BuildFire/placesPlugin2
import React from 'react'; import { render } from 'react-dom'; import Content from './content'; const container = document.getElementById('mount'); function renderApp() { render(<Content />, container); } // Setup HMR re-rendering if (module.hot) { module.hot.accept(); module.hot.accept('./content', renderApp)...
src/views/NotFoundView/NotFoundView.js
jwoods1/xpress
import React from 'react' import '../../../Libs/styles/bootstrap.css' import '../../../Libs/styles/bootstrap-extend.css' import '../../../Libs/styles/site.css' import '../../../Libs/styles/errors.scss' import { Link } from 'react-router' export class NotFoundView extends React.Component { render () { return ( ...
src/js/app/app.js
dupengdl/kickoffreact
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> <h1 className="hello">Hello, world!</h1> <div className="world">test</div> </div> ); } }
js/jqwidgets/demos/react/app/navbar/minimizednavbar/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxNavBar from '../../../jqwidgets-react/react_jqxnavbar.js'; class App extends React.Component { render() { return ( <JqxNavBar height={'auto'} selection={false}> <ul> <li>Minimized NavBar ...
app/javascript/flavours/glitch/features/compose/components/dropdown.js
im-in-space/mastodon
// Package imports. import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Overlay from 'react-overlays/lib/Overlay'; // Components. import IconButton from 'flavours/glitch/components/icon_button'; import DropdownMenu from './dropdown_menu'; // Utils. import { is...
src/app/index.js
ericvandevprod/redux-d3
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import AppContainer from './containers/App/App'; import reducers from './reducers'; const rootEl = document.getElementByI...
ajax/libs/yui/3.5.0pr3/event-custom-base/event-custom-base-debug.js
Teino1978-Corp/Teino1978-Corp-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 ev...
fields/components/Checkbox.js
dvdcastro/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import { darken, fade } from '../../admin/client/utils/color'; import E from '../../admin/client/constants'; var Checkbox = React.createClass({ displayName: 'Checkbox', propTypes: { checked: React.PropTypes.bool, c...
ui/src/pages/404.js
danielbh/danielhollcraft.com-gatsbyjs
import React from 'react' export default ({ data }) => { return ( <section id="one"> <div className="container"> <header className="major" style={{paddingBottom: '45vh'}}> <h2>404 error!</h2> </header> </div> </section> ) }
app/app.js
luandro/luandro.me
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
ui/src/containers/Routes.js
mozilla/splice
import React, { Component } from 'react'; import { Router, Route, Redirect } from 'react-router'; import App from './App' import WebtilesPreviewer from './WebtilesPreviewer'; export default class Routes extends Component { render() { return ( <Router> <Redirect from="/" to="/distributions" /> ...
ajax/libs/forerunnerdb/1.3.832/fdb-core+persist.js
Amomo/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...
socket/src/socket.js
pixelgrade/starter_content_exporter
import React from 'react' import ReactDOM from 'react-dom' import SocketDashboard from './components/dashboard.js' ReactDOM.render(<SocketDashboard/>, document.getElementById('socket_dashboard'))
ajax/libs/yui/3.7.0pr1/datatable-body/datatable-body-debug.js
bspaulding/cdnjs
YUI.add('datatable-body', function(Y) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isArray, ...
server/game/cards/characters/03/eddardstark.js
cavnak/throneteki
const DrawCard = require('../../../drawcard.js'); class EddardStark extends DrawCard { setupCardAbilities() { this.reaction({ when: { onRenown: (event, challenge, card) => card === this }, handler: () => { this.game.promptForSelect(this.co...
src/components/LoadingButton.js
codevinsky/deep-ellum-jukebox-ui
import React from 'react'; import { Button } from 'react-bootstrap'; class LoadingButton extends React.Component { constructor(...args) { super(...args); this.state = {isLoading: false} } render() { let isLoading = this.state.isLoading; let style = this.props.bsStyle || 'default'; let load...
components/Search/SearchResultsPanel/SpellcheckPanel.js
slidewiki/slidewiki-platform
import React from 'react'; class SpellcheckPanel extends React.Component { handleLink(suggestion, event){ event.preventDefault(); this.props.handleRedirect({ keywords: suggestion }); } renderSpellcheckCollations(){ if(this.props.spellcheckData.length === 0) ...
src/components/Footer.js
angeloocana/angeloocana
import React from 'react'; import PropTypes from 'prop-types'; import Gravatar from 'react-gravatar'; import HeartIcon from './HeartIcon'; import FaGithub from 'react-icons/lib/fa/github'; import A from './A'; import styled from 'styled-components'; import Ca from './flags/Ca'; const Link = styled(A)` display: inlin...
dev/js/containers/AlertBox.js
celsom3/Cosecha-SMS
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { onShowMessage, showAlert, closeAlert } from '../actions/index'; class AlertBox extends Component { visibilityClass( x='' ){ if (this.props.alerts.displayed) { return 'aler...
src/components/video_detail.js
andrit/VideoListReact
import React from 'react'; const VideoDetail = ({video}) => { if(!video){ return <div>Hang on a minute, Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return( <div className="video-detail col-md-8"> <div cla...