path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/svg-icons/content/archive.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentArchive = (props) => ( <SvgIcon {...props}> <path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-....
wrappers/json.js
rileyjshaw/crypto.christmas
import React from 'react' import Helmet from 'react-helmet' import {config} from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data; return <div> <Helmet title={`${config.siteTitle} | ${data...
src/isomorphic/classic/class/ReactClass.js
KevinTCoughlin/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
packages/insights-web/src/scenes/explorer/connection/database/menu/index.js
mariusandra/insights
import React from 'react' import { useActions, useValues } from 'kea' import { Icon, Menu } from 'antd' import connectionsLogic from '../../logic' import explorerLogic from '../../../logic' export default function ConnectionMenu () { const { selectedConnection, otherConnections } = useValues(connectionsLogic) co...
ajax/libs/rxjs/2.2.27/rx.compat.js
xirzec/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...
webapp-src/src/Modal/ModalImportPlaylist.js
babelouest/taliesin
import React, { Component } from 'react'; import { Button, Modal, FormControl, Row, Col, Label } from 'react-bootstrap'; import StateStore from '../lib/StateStore'; import i18n from '../lib/i18n'; class ModalImportPlaylist extends Component { constructor(props) { super(props); this.state = { show: props.sh...
KDReactNative/KDClass/Mine/KDMine.js
csyibei/KDReactNative
/** * Created by kaidi on 2016/10/17. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableOpacity, Navigator, ScrollView } from 'react-native'; var KDPushView = require('../KDPushView'); var KDMineHeader = require('./KDMineHeader'...
src/views/DashboardManager/components/widgets/BtnControlWidget.js
blackshade91/daf-dataportal
import React from 'react'; import { Bar } from 'react-chartjs'; import { getRandomInt } from './util'; import Modal from 'react-modal'; import AddWidgetDialog from '../AddWidgetDialog'; class BtnControlWidget extends React.Component { constructor() { super(); this.state = { isModalAddOp...
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/dist/rx.all.js
amandogra/mileage
// 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...
app/javascript/mastodon/components/load_more.js
unarist/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
src/routes/UserRecordContainer.js
folio-org/ui-users
import React from 'react'; import PropTypes from 'prop-types'; import { compose } from 'redux'; import { stripesConnect } from '@folio/stripes/core'; import { withTags } from '@folio/stripes/smart-components'; import { UserDetail } from '../views'; import { withProxy, withServicePoints } from '../components/Wrapp...
files/react/0.11.1/react.js
dpellier/jsdelivr
/** * React v0.11.1 */ !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.React=e()}}(function(){var d...
examples/simple/index.js
idream3/react-custom-scrollbars
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render(<App />, document.getElementById('root'));
ajax/libs/react-native-web/0.11.2/vendor/react-native/ListView/cloneReferencedElement.js
cdnjs/cdnjs
'use strict'; function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (...
src/index.js
tsupol/semi-starter
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import {Router, browserHistory, useRouterHistory} from 'react-router'; import {createHashHistory} from 'history'; // todo: change route here (switching between the 2 projects) // impo...
src/svg-icons/maps/satellite.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSatellite = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8....
stories/modal/modal.js
JerryBerton/dh-component
import React from 'react'; import { Modal, Button, Menu, Dropdown, Form, Input } from '../../src'; class ModalDemo extends React.Component { constructor(props) { super(props); this.state = { visible: false, visibleForm: false }; this.handleClick = this.handleClick.bind(this); } handleC...
app/containers/Sesizari/components/hero.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; function Hero() { return ( <section className="container"> <div className="row"> <div className="col-xs-12 col-md-offset-2 col-md-8 page-hero"> <h1> Sesizări </h1> <p> România pe care toți ne-o dorim are nevoie de cetă...
assets/jqwidgets/demos/react/app/window/settings/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxWindow from '../../../jqwidgets-react/react_jqxwindow.js'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; import JqxButton from '../../../jqwidgets-react/rea...
src/Popover.js
AlexKVal/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/js/components/Chart/stories/Range.js
HewlettPackard/grommet
import React from 'react'; import { Box, Chart, Heading } from 'grommet'; const values = [ [10, 20, 30], [20, 30, 60], [30, 15, 20], ]; export const Range = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={grommet}> <Box direction="row-responsive" wrap pad="large"> ...
media/k2/assets/js/jquery-1.9.1.min.js
imsauravsingh/homeo
/*! 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...
src/components/entity.js
wmertens/react-gmaps
import React from 'react'; import Listener from '../mixins/listener'; export default (name, latLngProp, events) => { return React.createClass({ mixins: [Listener], entity: null, componentDidMount() { const options = this.getOptions(this.props); this.entity = new google.maps[name](options);...
app/renderer/index.js
blenoski/movie-night
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { logEnv } from '../shared/utils' import { App } from './controller' import store from './model' import logger from './mainWindowLogger' logEnv(logger) // Render the App. ReactDOM.render( <Provider store={store...
_podklady/Layout/products-WB0412697/HTML/assets/plugins/fancybox/lib/jquery-1.8.2.min.js
jurby/jurby.github.com
/*! jQuery v1.8.2 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/renderer/components/tweet-body.js
ka2n/retro-twitter-client
import React from 'react' import Time from './time' import twitterText from 'twitter-text' class Anchor extends React.Component { onClicked(event) { event.preventDefault(); this.props.onAnchorClicked(this.props.url); } render() { return <a className="tweet-anchor" href={this.props.url} title={this.p...
react-native/hello_world/index.android.js
merxer/kata
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class hello_world extends Component { render() { return ( <View style={styles.container}> <T...
ajax/libs/react/15.3.0/react-with-addons.js
tonytomov/cdnjs
/** * React (with addons) v15.3.0 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undef...
ajax/libs/jquery.fancytree/2.10.2/jquery.fancytree-all.min.js
xymostech/cdnjs
/*! jQuery Fancytree Plugin - 2.10.2 - 2015-07-02T08:11 * https://github.com/mar10/fancytree * Copyright (c) 2015 Martin Wendt; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { define( [ "jquery" ], factory ); } else { factory( jQuery ); } }(function( $ ) { !functio...
www/src/pages/docs/node-apis.js
chiedo/gatsby
import React from "react" import Functions from "../../components/function-list" import { rhythm, scale } from "../../utils/typography" import Container from "../../components/container" class NodeAPIDocs extends React.Component { render() { return ( <Container> <h1 css={{ marginTop: 0 }}>Gatsby N...
docs/containers/media-object/index.js
aruberto/react-foundation-components
import React from 'react'; import { MediaObjectSection, MediaObject } from '../../../src/media-object'; import { MediaObjectSection as FlexMediaObjectSection, MediaObject as FlexMediaObject, } from '../../../lib/media-object-flex'; // eslint-disable-line import/no-unresolved const MediaObjectPage = () => ( <div...
app/javascript/src/client/states/show.js
rringler/billtalk
import _ from 'lodash'; import React, { Component } from 'react'; import { Col } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { connect } from 'react-redux'; import { fetchState } from './actions'; class State extends Component { componentDidMount() { const { id } = thi...
Libraries/Components/Keyboard/Keyboard.js
ankitsinghania94/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. * * @provides...
ajax/libs/foundation/4.0.9/js/vendor/jquery.js
featurist/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/containers/Messages.js
lotas/message-flow
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Dimmer, Loader, Segment, Container, Button, Rail } from 'semantic-ui-react' import MessageList from '../components/MessageList'; import Stats from '../components/Stats'; import {getMessages, getStats} from '../api'; import { l...
kitchensink/ios/index.js
junewinds/jmui
import { hashHistory } from 'react-router' import getRoutes from './routes' import Root from './Root' import React from 'react' import ReactDOM from 'react-dom' const routes = getRoutes() ReactDOM.render( <Root history={hashHistory} routes={routes} />, document.getElementById('root') )
ajax/libs/jssip/0.6.17/jssip.js
Teino1978-Corp/Teino1978-Corp-cdnjs
/* * JsSIP.js 0.6.17 * the Javascript SIP library * Copyright 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan) * Homepage: http://jssip.net * License MIT */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define...
app/components/expression.react.js
Cron-J/Rule-Engine
/** * Created by Eswer on 9/4/2015. */ // import Rule from 'rule.js'; import React from 'react'; import VariableComponent from './variable.react.js'; import ConstantComponent from './constant.js'; import {Variable, Constant} from '../reducers/grammar.js'; import SchemaStore from '../reducers/SchemaStore.js'; import B...
assets/jqwidgets/demos/react/app/dropdownlist/checkboxes/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.myDropDownList.checkIndex(0); this.refs.myDropDownList.on('checkChange', (event) => { ...
Example/app.js
magicismight/react-native-advanced-webview
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, WebView } from 'react-native'; import AdvancedWebView from 'react-native-advanced-webview'; const initialJavaScript = ` document.body.style.background = 'red'; var span = document.createElement('span'); span.innerHTML = 'aaaa'; document.body....
src/components/Button/Follow.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { injectIntl } from 'react-intl'; import { Icon } from 'antd'; import './Follow.less'; @injectIntl class Follow extends React.Component { static propTypes = { intl: PropTypes.shape().isRequired, isFollo...
src/client/components/Navigation/Topnav.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { injectIntl, FormattedMessage } from 'react-intl'; import { withRouter, Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { Menu, Input, AutoComplete } from 'antd'; import classNames from 'classnam...
src/main.js
icodeninja/statr
/* global chrome */ import React from 'react'; import ReactDOM from 'react-dom'; import Dispatcher from './lib/dispatcher'; import Home from './containers/home'; chrome.runtime.onMessage.addListener(message => { console.info(message); Dispatcher.dispatch(message); }); const rootEl = document.getElementById('ap...
src/Game/UI/Button.js
digijin/space-station-sim
//@flow import React from 'react'; type Props = { type:string, data:{ label: string, // image: any|void }, click:Function } class Button extends React.Component{ props:Props render(){ let id = 'button-'+this.props.type+'-'+this.props.data.label; if(this.props.id){ // TODO log no key a...
components/lineup/VolleyCourt.js
nvbf/pepper
// @flow import React from 'react'; import { darken } from 'polished'; import GradientFill from '../svgs/GradientFill'; import color from '../../libs/color'; import VolleyNetAndPoles from './VolleyNetAndPoles'; function getLeftX(width: number, y: number) { return 0.25 * width * (1 - y); } function getRightX(width: ...
docs/src/pages/components/text-fields/StateTextFields.js
lgollut/material-ui
import React from 'react'; import TextField from '@material-ui/core/TextField'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ root: { '& .MuiTextField-root': { margin: theme.spacing(1), width: '25ch', }, }, })); export default function StateT...
src/svg-icons/action/shop-two.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShopTwo = (props) => ( <SvgIcon {...props}> <path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4...
ui/src/components/search/SearchResults.js
tiborsimko/analysis-preservation.cern.ch
import React from "react"; import PropTypes from "prop-types"; import { withRouter } from "react-router"; import { fromJS } from "immutable"; import { connect } from "react-redux"; import Truncate from "react-truncate"; import AnnounceIcon from "grommet/components/icons/base/Announce"; import ReactTooltip from "react-t...
src/modules/Components/User/Views/Resources/Scholarships.js
rtellez700/MESA_Connect_2.0
import React, { Component } from 'react'; class Scholarships extends Component { render() { return ( <div className="display--in-center"> <h1> Hello from Scholarships.js! </h1> </div> ); } } module.exports = Scholarships;
js/containers/ApplicationTabs/Home/Tabs/index.js
Seedstars/reactnative-mobile-app-base
import React, { Component } from 'react'; import { View } from 'react-native'; import { TabViewAnimated, TabBarTop } from 'react-native-tab-view'; import { connect } from 'react-redux'; import Icon from 'react-native-vector-icons/MaterialIcons'; import Tab3 from './Tab3'; import Tab2 from './Tab2'; import Tab1 from '....
site/src/components/Stack.js
styleguidist/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import styles from './Stack.module.css'; export const Stack = ({ children, gap, className, as: Component = 'div', ...rest }) => ( <Component className={clsx(styles.stack, styles[`stack--${gap}`], className)} {...rest}> {children...
ajax/libs/6to5/1.11.13/browser-polyfill.js
eduardo-costa/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...
ReactNative/weather/App/Containers/citylist.js
AllanChen/WorkSample
import React, { Component } from 'react'; import g from '../Command/global.js' import {featchAddress,selectedRowID} from '../Action/cityAction'; import { AppRegistry, StyleSheet, Text, View, TouchableHighlight, ListView, Image } from 'react-native'; let addressData = require('../Store/addres...
verity/src/main/webapp/js/jquery-1.11.1.min.js
916742994/fts
/*! 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...
dev/react-subjects/subjects/MiniRedux/lecture/index.js
AlanWarren/dotfiles
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App' ReactDOM.render((<App/>), document.getElementById('app')) //////////////////////////////////////////////////////////////////////////////// // - shared state (add sidebar) // - drilling holes (remove action) // - make store /...
tests/components/Numbers.spec.js
robcmills/svg-game
import React from 'react' import Numbers from 'components/Numbers/Numbers' describe('(Component) Numbers', () => { it('should exist', () => { }) })
packages/material-ui-icons/src/SignalWifi3Bar.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><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" /><path d="M3.53 10.95l8.46 10.54.01.01.01-.01 8.46-10.54C20.04 10.62 16.81 8 12 8c-4.8...
test/ButtonInputSpec.js
cgvarela/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () => { it('renders an input button element with type=button', () => { const instance = ReactTestUtils.renderIntoDocument( ...
ajax/libs/onsen/1.2.0/js/onsenui_all.min.js
tonytomov/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...
client/src/components/ElementActions/UnpublishAction.js
dnadesign/silverstripe-elemental
/* global window */ import React from 'react'; import { compose } from 'redux'; import AbstractAction from 'components/ElementActions/AbstractAction'; import unpublishBlockMutation from 'state/editor/unpublishBlockMutation'; import i18n from 'i18n'; /** * Adds the elemental menu action to unpublish a published block ...
examples/bootstrap/app.js
diasbruno/react-modal
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; var appElement = document.getElementById('example'); Modal.setAppElement(appElement); class App extends Component { constructor(props) { super(props); this.state = { modalIsOpen: false }; } ope...
app/components/Input.js
IamBusy/fancy-password
/** * Created by william on 12/05/2017. */ import React from 'react'; import { Hoshi } from 'react-native-textinput-effects'; export default class Input extends React.Component { constructor(props) { super(props); } render() { return ( <Hoshi borderColor={'#b7...
icons/AndroidRemove.js
fbfeix/react-icons
'use strict'; var React = require('react'); var IconBase = require(__dirname + 'components/IconBase/IconBase'); var AndroidRemove = React.createClass({ displayName: 'AndroidRemove', render: function render() { return React.createElement( IconBase, null, React.createElement('rect', { x: '96', y: '235', w...
chat/chat/YOAvatar.js
wph1129/react-native-chat
import React from 'react'; import { Image, Text, TouchableOpacity, View, } from 'react-native'; class YOAvatar extends React.Component { setAvatarColor() { const userName = this.props.user.name || ''; const name = userName.toUpperCase().split(' '); if (name.length === 1) { this.avatarName...
packages/xo-web/src/common/hosts-patches-table.js
vatesfr/xo-web
import PropTypes from 'prop-types' import React from 'react' import { Portal } from 'react-overlays' import { forEach, isEmpty, keys, map } from 'lodash' import _ from './intl' import ActionButton from './action-button' import Component from './base-component' import Link from './link' import SortedTable from './sorte...
src/components/Form.spec.js
Kryten0807/cacofonix
// the eslint "no-unused-expressions" rule is triggered by the `expect` // assertions in the tests. So, in order to avoid problems with eslint, I'm // disabling that rule in this file // /* eslint-disable no-unused-expressions */ import React from 'react'; import { shallow, mount } from 'enzyme'; import chai from 'cha...
packages/docs/pages/plugin/drag-n-drop/index.js
draft-js-plugins/draft-js-plugins
// eslint-disable-next-line import/no-unresolved // eslint-disable-next-line import/no-duplicates import customExampleCode from '!!raw-loader!../../../components/Examples/drag-n-drop/CustomImageEditor'; // eslint-disable-next-line import/no-unresolved import customExampleEditorStylesCode from '!!raw-loader!../../../com...
docs/app/app.js
Sandreu/react-mf-modal
import React from 'react'; import Examples from './examples'; import gettingStarted from './statics/getting-started.md'; import index from '!html!./index.html'; import Anim from './animations'; export default class App extends React.Component { page() { var out = null; var page = /([^\/]*).html$/.exec(window...
addons/actions/src/containers/ActionLogger/index.js
jribeiro/storybook
/* eslint-disable no-underscore-dangle */ import React from 'react'; import PropTypes from 'prop-types'; import deepEqual from 'deep-equal'; import ActionLoggerComponent from '../../components/ActionLogger/'; import { EVENT_ID } from '../../'; export default class ActionLogger extends React.Component { constructor...
src/svg-icons/navigation/first-page.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFirstPage = (props) => ( <SvgIcon {...props}> <path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/> </SvgIcon> ); NavigationFirstPage = pure(NavigationFirstPage); NavigationFirstPag...
src/features/filters/filters.year.js
itayJoseph/zeekit-practical-exam
import React from 'react'; import { Dropdown} from 'semantic-ui-react'; const years = [{text:'All',value:' '}]; [...Array(51).keys()].map((val)=>{ years.push({ text:1967+val, value:1967+val }); }) const YearFilter = ({onYearSelect}) => { return ( <div> <Dropdown onCha...
src/routes/index.js
flipjs/test-react-router
import { Route, IndexRoute } from 'react-router' // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files regardless of how deeply nested // y...
src/svg-icons/communication/dialer-sip.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationDialerSip = (props) => ( <SvgIcon {...props}> <path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ...
src/components/Feedback/Feedback.js
mattroid/turboiep
/** * 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 withStyles from 'isomorp...
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
ethan1341/angular-rc5
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'));
stories-src/storiesOfLoading.js
dunnock/react-sigma
import React from 'react'; import { storiesOf } from '@storybook/react'; import { Sigma, LoadJSON, LoadGEXF, RandomizeNodePositions } from '../src/index'; storiesOf('Loading', module) .add('LoadJSON without coords', () => ( <Sigma> <LoadJSON path={String(process.env.PUBLIC_URL) + "/geolocalized.json"}> ...
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-template-literals/node_modules/babel-runtime/node_modules/core-js/client/core.js
9min/kanban_app
/** * core-js 2.4.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
examples/todomvc/test/components/Footer.spec.js
iatzmon/redux
import expect from 'expect'; import jsdomReact from '../jsdomReact'; import React from 'react/addons'; import Footer from '../../components/Footer'; import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters'; const { TestUtils } = React.addons; function setup(propOverrides) { const props = Object.assign({ ...
src/website/app/Logo.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; type Props = { fill?: string, title?: string }; const Logo = (props: Props) => { const { fill, title, ...restProps } = props; const fillColor = fill || 'currentColor'; return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 457.93 570.83" {....
inlineStyles/src/components/Example/Example.js
3mundi/React-Bible
import React from 'react'; import styles from './styles'; class Example extends React.Component { render() { return ( <p style={styles.announcement}>{this.props.content}</p> ); } } Example.propTypes = { content: React.PropTypes.string.isRequired }; export default Example;
server/TestApp.js
cristovao-trevisan/react-plotter
import React from 'react' import Plotter from '../src/Plotter' import line from '../src/plot-styles/line' import digital from '../src/plot-styles/digital' import circleMarker from '../src/markers/circle' import {Sinewave} from '../src/helpers/waveGenerators' let sinewave = Sinewave(10000, 33, 10000, 100) const style...
js/vendor/jquery-1.9.1.min.js
thoughtsonir/thoughtsonir.github.io
/*! 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/mobx/5.0.3/mobx.js
ahocevar/cdnjs
/** MobX - (c) Michel Weststrate 2015 - 2018 - MIT Licensed */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, V...
front/src/scenes/Landing/LandingScene.js
dherault/Aquest
import React, { Component } from 'react'; import { createFragmentContainer, graphql } from 'react-relay'; import { Link } from 'react-router-dom'; import SignupForm from './components/SignupForm'; import Footer from '../../components/Footer'; import profileLocationFor from '../../utils/profileLocationFor'; const sMa...
src/svg-icons/notification/tap-and-play.js
tan-jerene/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...
src/decorators/withViewport.js
RenRenTeam/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
packages/plutarch/tpls/redux-project/src/routes/demo/index.js
Alfred-sg/plutarch
/* demo */ import React from 'react' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' const Demo = ({ demo, dispatch }) => { return ( <div> A application demo built upon Ant Design and Redux.js </div> ) } export default withRouter(connect(({ demo }) => ({ demo }))...
stories/ui/Badge.js
tsl143/addons-frontend
/* @flow */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import Badge from 'ui/components/Badge'; import type { Props as BadgeProps } from 'ui/components/Badge'; import { createChapters } from '../utils'; const label = 'Hello Badge'; cons...
node_modules/react-bootstrap/es/Col.js
caughtclean/but-thats-wrong-blog
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/routes/index.js
tiengtinh/react-redux-animated-posts
import React from 'react' import { Route, IndexRoute, Redirect } from 'react-router' // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files ...
src/FontIcon/FontIcon.spec.js
w01fgang/material-ui
/* eslint-env mocha */ import React from 'react'; import {spy} from 'sinon'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import FontIcon from './FontIcon'; import getMuiTheme from '../styles/getMuiTheme'; describe('<FontIcon />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (...
src/parser/rogue/shared/azeritetraits/SharpenedBlades.js
FaideWW/WoWAnalyzer
import React from 'react'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SPECS from 'game/SPECS'; import Analyzer from 'parser/core/Analyzer'; class SharpenedBlades extends Analyzer { constructor(...args) { super(...args); ...
modules/Redirect.js
ThibWeb/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' var { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should be ...
src/components/control-bar/FullscreenToggle.js
video-react/video-react
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; const propTypes = { actions: PropTypes.object, player: PropTypes.object, className: PropTypes.string }; export default class FullscreenToggle extends Component { constructor(props, context) { ...
examples/SimpleMenu.js
danielyaa5/react-contextulize
import React, { Component } from 'react'; import ContextMenu from 'src/index'; const MENU_ID = 'simple_context_menu'; export default class SimpleMenu extends Component { constructor(props) { super(props); this.state = { logs: [] }; this.menuItems = [ { itemId:...
client/node_modules/ember-cli/node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/never.js
mitchlloyd/training
/** * Returns a non-terminating observable sequence, which can be used to denote an infinite duration (e.g. when using reactive joins). * @returns {Observable} An observable sequence whose observers will never get called. */ var observableNever = Observable.never = function () { return new Anonym...
ajax/libs/yui/3.18.0/event-focus/event-focus.js
kristoferjoseph/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
src/class/popup/About.js
tegon/traktflix
import React from 'react'; import Messages from '../../modules/popup/messages'; import Button from './Button'; import Info from './Info'; const messages = Messages.aboutMessages; export default class About extends React.Component { render() { return ( <Info messages={messages}> <Button url={'https...
server/node_modules/react-dom/lib/Transaction.js
Atanasov86/Car-System
/** * Copyright 2013-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 st...
test/ColSpec.js
HorizonXP/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Col from '../src/Col'; describe('Col', function () { it('Should set Offset of zero', function () { let instance = ReactTestUtils.renderIntoDocument( <Col xsOffset={0} smOffset={0} mdOffset={0} lgOffset={0} /> ); ...