path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
examples/shopping-cart/src/containers/App.js
jhwgnu/redux
import React from 'react' import ProductsContainer from './ProductsContainer' import CartContainer from './CartContainer' const App = () => ( <div> <h2>Shopping Cart Example</h2> <hr/> <ProductsContainer /> <hr/> <CartContainer /> </div> ) export default App
ajax/libs/mediaelement/2.7.0/jquery.js
ruslanas/cdnjs
/*! * jQuery JavaScript Library v1.7 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. *...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
Place1/create-react-app-typescript
/** * 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. */ import Rea...
ajax/libs/forerunnerdb/1.3.452/fdb-core+persist.js
dlueth/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...
misc/jquery.js
jlbethel/jb_portfolio
/*! * 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....
app/components/App.js
Ribeiro/fil
import _ from 'underscore'; import React from 'react'; import {connect} from 'react-redux'; import queryString from 'query-string'; import classNames from 'classnames'; import Header from 'components/Header'; import CodeEditor from 'components/CodeEditor'; import Console from 'components/Console'; import FileList from...
test/DropdownSpec.js
AlexKVal/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Dropdown from '../src/Dropdown'; import DropdownMenu from '../src/DropdownMenu'; import MenuItem from '../src/MenuItem'; import { shouldWarn } from './helpers'; import keycode from 'keycode'; class CustomMenu extends React.Compone...
src/svg-icons/editor/border-color.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderColor = (props) => ( <SvgIcon {...props}> <path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp...
src/svg-icons/maps/hotel.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsHotel = pure(MapsHot...
src/js/views/gameview/gameview.js
lacker/cardkit
// React view of a GameState import React, { Component } from 'react'; import Hand from '../handview/handview'; import Card from '../cardview/cardview'; import StarryView from '../starryview/starryview'; import GameBoard from '../boardview/boardview'; import classNames from 'classnames'; import './_gameview.scss'; im...
packages/mui-icons-material/lib/esm/QueryStatsSharp.js
oliviertassinari/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M19.88 18.47c.44-.7.7-1.51.7-2.39 0-2.49-2.01-4.5-4.5-4.5s-4.5 2.01-4.5 4.5 2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21.58 23 23 21.58l-3.12-3.11zm-3.8.11c-1...
ajax/libs/react-slick/0.3.5/react-slick.js
Dervisevic/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Slider"] = factory(...
ajax/libs/6to5/1.14.12/browser-polyfill.js
steadiest/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...
client/src/modules/ThumbnailEditor.js
tuna-io/tuna-io
import React from 'react'; class ThumbnailEditor extends React.Component { constructor(props) { super(props); this.state = { newDataUrl: null, currentDataUrl: props.dataUrl, }; this.handleThumbnailCapture = this.handleThumbnailCapture.bind(this); this.handleThumbnailSave = this.hand...
packages/react-test-renderer/src/ReactTestRenderer.js
mjackson/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Fiber} from 'react-reconciler/src/ReactFiber'; import type {FiberRoot} from 'react-reconciler/src/ReactFi...
node_modules/react/dist/react.js
aniketk1/TechBox
/** * React v0.14.2 */ (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!=="undefined"){g=self}...
newclient/scripts/components/config/done-link/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/components/Login.js
darksc/reactc
'use strict'; import React, { Component } from 'react'; import { Router } from 'react-router'; export default class Login extends Component { static contextTypes = { router: React.PropTypes.object.isRequired }; constructor(props, context) { super(props, context); this.state = {...
src/containers/InfoPanel.js
IgorSzyporyn/wwiionline-webmap
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as actions from '../actions/active'; const InfoPanel = (props) => { let className = ['infopanel']; if (props.ui.infoPanel) { className.push('infopa...
internals/templates/app.js
jesus9ias/solar_system
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
web/src/components/Layout/index.js
Jorginho211/TFG
import React, {Component} from 'react' import {createChild} from './helpers.js' import { autobind } from 'core-decorators'; import CSSModules from 'react-css-modules'; //import styles from './styles.scss'; //@CSSModules(styles) class Layout extends Component { constructor() { super(); } componen...
src/Chord/Barre/index.js
tombatossals/react-chords
import React from 'react' import PropTypes from 'prop-types' const fretXPosition = { 4: [ 10, 20, 30, 40, 50 ], 6: [ 0, 10, 20, 30, 40, 50 ] } const fretYPosition = [ 2.35, 13.9, 26, 38 ] const offset = { 4: 0, 6: -1 } const positions = { string: [ 50, 40, 30, 20, 10, 0 ], fret: [ -4, 6.5, 18, 30, 42, 54...
src/containers/DevTools.js
tylergraf/react-twitter
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonitor /> ...
src/samples/components/Overlay.js
tomaon/office-ui-fabric-react
/* * src/samples/components/Overlay.js */ 'use strict'; var React = require('react'); var Components = { overlay: require('../../components/Overlay/React.Overlay') }; module.exports = React.createClass({ render: function() { return ( React.DOM.article( null, ...
src/svg-icons/editor/pie-chart.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorPieChart = (props) => ( <SvgIcon {...props}> <path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/> </SvgIco...
src/containers/Interfaces/Narrative.js
codaco/Network-Canvas
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { compose } from 'recompose'; import { get } from 'lodash'; import PropTypes from 'prop-types'; import { getProtocolStages } from '../../selectors/protocol'; import { PresetSwitcher, Annotations, } from '../Canvas'; import { ...
src/Survey/Default/Edit/Main/components/LocationLabel/index.js
NERC-CEH/irecord-app
import React from 'react'; import PropTypes from 'prop-types'; import { IonLabel } from '@ionic/react'; import { observer } from 'mobx-react'; import './styles.scss'; function getLocationName(sample, locks) { const location = sample.attrs.location || {}; const locationName = location.name; if (!locationName) { ...
app/containers/production/gr/GRChecks.js
robogroves/ebp
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import GRChecks from '../../../components/production/gr/GRChecks'; import * as GRActions from '../../../actions/production/gr/GRActions'; function mapStateToProps(state) { return { GenR: state.GenReceivers }; } function mapDis...
node_modules/react-icons/md/settings-cell.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdSettingsCell = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.6 26.6v-20h-13.2v20h13.2z m0-26.6c1.8 0 3.4 1.6 3.4 3.4v26.6c0 1.8-1.6 3.4-3.4 3.4h-13.2c-1.8 0-3.4-1.6-3.4-3.4v-26.6c0-1.8 1.6-3.4 3.4-3.4h13.2z m-1.6 40v-3...
ajax/libs/componentjs/1.2.4/component.js
wackyapples/cdnjs
/* ** ComponentJS -- Component System for JavaScript <http://componentjs.com> ** Copyright (c) 2009-2015 Ralf S. Engelschall <http://engelschall.com> ** ** This Source Code Form is subject to the terms of the Mozilla Public ** License (MPL), version 2.0. If a copy of the MPL was not distributed ** with this file, ...
files/rxjs/2.3.19/rx.all.js
2947721120/adamant-waffle
// 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...
Examples/UIExplorer/createExamplePage.js
ericvera/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
src/v0/component/toggle/text_toggle/index.js
huanganqi/wsapp
import R from 'ramda' import React, {Component, ProTypes} from 'react' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import { View, Image, Text, TouchableOpacity, TextInput, TouchableWithoutFeedback } from 'react-native' import style from './style' import { A...
srcjs/components/AuthorPanel.js
wlainer/react-redux-tutorial
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import Table from './Table' const cols = [ {key: 'id', label: 'id', format: x=><Link to={`/author_update/${x.id}/`}>{x.id}</Link>}, {key: 'last_name', label: 'Last name',}, {key: 'first_name', label: 'First ...
js/ClientApp.js
jbarbettini/intro-to-react-workshop
import React from 'react' import { render } from 'react-dom' import { BrowserRouter } from 'react-router' import App from './App' render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('app'))
__tests__/components/Pomodoro/Pomodoro-test.js
afonsopacifer/react-pomodoro
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import Pomodoro from './../../../app/components/Pomodoro/Pomodoro'; import { mount } from 'enzyme'; import { assert } from 'chai'; describe('<Pomodoro /> tests of default settings', () => { var component; beforeEach(() => { componen...
tests/client/amo/components/TestScreenShots.js
jasonthomas/addons-frontend
import React from 'react'; import { renderIntoDocument } from 'react-addons-test-utils'; import { PhotoSwipeGallery } from 'react-photoswipe'; import ScreenShots, { thumbnailContent } from 'amo/components/ScreenShots'; import { shallowRender } from 'tests/client/helpers'; describe('<ScreenShots />', () => { const p...
ajax/libs/forerunnerdb/1.3.597/fdb-core+views.js
dc-js/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/components/activity/screens/ActivityAddEdit/ActivityEditScreen.js
yasavbrain/yasav
import React from 'react'; import ActivityAddEditContainer from './containers/ActivityAddEditContainer'; export default class ActivityEditScreen extends React.Component { render() { return ( <ActivityAddEditContainer goBack={this.props.navigation.goBack} id={this.props.navigation.state.para...
src/interface/premium/LoginPanel.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { CSSTransitionGroup } from 'react-transition-group'; import Textfit from 'react-textfit'; import PatreonIcon from 'interface/icons/PatreonTiny'; import GitHubMarkIcon from 'interface/icons/GitHubMarkLarge'; im...
src/components/Header.js
redian/weather-mate
import React from 'react'; import AppBar from 'react-toolbox/lib/app_bar/AppBar'; import Navigation from 'react-toolbox/lib/navigation/Navigation'; import Link from 'react-toolbox/lib/link/Link'; const GithubIcon = () => ( <svg viewBox="0 0 284 277"> <g><path d="M141.888675,0.0234927555 C63.5359948,0.0234927555 ...
src/js/components/SocialShare.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Anchor from './Anchor'; import SocialTwitterIcon from './icons/base/SocialTwitter'; import SocialFacebookIcon from './icons/base/SocialFacebook'; import SocialGoogle...
src/svg-icons/places/all-inclusive.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAllInclusive = (props) => ( <SvgIcon {...props}> <path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7...
src/app/controllers/Manufacture.js
mazahell/eve-react
import React, { Component } from "react"; import { connect } from "react-redux"; import { getBpc, unmountManufacture, getStructures } from "../actions/manufactureActions"; import { setHead } from "../actions/appActions"; // components import SearchBpoPanel from "./../components/manufacture/SearchBpoPanel"; import...
src/fe/components/FourOhFour/index.js
searsaw/react-router-demo
import React from 'react'; import { Header } from 'semantic-ui-react'; import Page from '../Page'; import styles from './styles.css'; const FourOhFour = () => ( <Page> <div className={styles.container}> <Header as="h1">404</Header> <p>Uh oh! Are you sure you wanted to go here?</p> </div> </Page...
packages/material-ui-icons/src/BlockSharp.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="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4...
ajax/libs/react/0.5.1/react-with-addons.js
kiwi89/cdnjs
/** * React (with addons) v0.5.1 */ !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports; return ...
site/src/components/DemoBox.js
apisandipas/elemental
import React from 'react'; import classnames from 'classnames'; import E from '../../../src/constants'; const ALIGN_TRANSFORM = { 'center': 'center', 'left': 'flex-start', 'right': 'flex-end', } var DemoBox = React.createClass({ propTypes: { align: React.PropTypes.oneOf(['center', 'left', 'right']), children:...
docs/app/Examples/elements/Icon/Variations/IconExampleBordered.js
vageeshb/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleBordered = () => ( <div> <Icon bordered name='users' /> <Icon bordered color='teal' name='users' /> <Icon bordered inverted color='black' name='users' /> <Icon bordered inverted color='teal' name='users' /> </div> )...
renderer/components/config/index.js
wulkano/kap
import React from 'react'; import PropTypes from 'prop-types'; import {connect, ConfigContainer} from '../../containers'; import Tab from './tab'; class Config extends React.Component { render() { const { validators, values, onChange, selectedTab, selectTab, closeWindow, ...
public/app/components/dialogs/dialog-select.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; const DialogSelect = ({ title, open, items, select, cancel }) => ( <mui.Dialog title={title} actions={<mui.FlatButton label="Cancel" onTouchTap={() => cancel()} />} modal={true} open={open} a...
frontend/src/app/index.js
dannycoates/testpilot
import 'babel-polyfill/browser'; import 'l20n/dist/compat/web/l20n'; import es6Promise from 'es6-promise'; import 'isomorphic-fetch'; import Raven from 'raven-js'; import React from 'react'; import ReactDOM from 'react-dom'; import { createHistory } from 'history'; import { useRouterHistory } from 'react-router'; im...
examples/official-storybook/components/DelayedRender.js
rhalff/storybook
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class DelayedRender extends Component { static propTypes = { children: PropTypes.node.isRequired, }; state = { show: false, }; componentDidMount() { this.showTO = setTimeout(() => { this.setState({...
test/tests/decorators/pureFunctions.js
buildo/revenge
import React from 'react'; import expect from 'expect'; import sinon from 'sinon'; import pure from '../../../src/decorators/pure'; import pureFunctions, { pureFunctionProp } from '../../../src/decorators/pureFunctions'; describe('@pureFunctions decorator', () => { it('should fail when no shouldComponentUpdate is d...
src/components/Assets/Pins/BookEle.js
Ftornik/forwardteam.space
import React, { Component } from 'react'; import svg from 'lib/svg'; @svg({ width: 600, height: 525.4 }) class BookEle extends Component { render = () => { const st2Style = { fill: 'none', stroke: '#3A364D', strokeWidth: 6, strokeLinecap: 'round', ...
Examples/Example.ChromiumFx.Mobx.UI/View/mainview/src/index.js
David-Desmaisons/MVVM.CEF.Glue
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import { ready } from './mobxManager'; import 'bootstrap/dist/css/bootstrap.css'; ready.then(res => { ReactDOM.render(<App viewModel={res.vm.ViewModel}/>, document.getElementById('root'), res.ready); })
ajax/libs/yui/3.18.0/event-focus/event-focus-min.js
SaravananRajaraman/cdnjs
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(...
ajax/libs/forerunnerdb/1.3.30/fdb-all.js
cdnjs/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...
app/javascript/mastodon/features/ui/containers/columns_area_container.js
dwango/mastodon
import { connect } from 'react-redux'; import ColumnsArea from '../components/columns_area'; import { closeTutorial } from '../../../actions/tutorial'; const mapStateToProps = state => ({ columns: state.getIn(['settings', 'columns']), isModalOpen: !!state.get('modal').modalType, tutorial: state.getIn(['tutorial'...
bench/pages/stateless-big.js
kevmannn/next.js
import React from 'react' export default () => { return ( <ul> {items()} </ul> ) } const items = () => { var out = new Array(10000) for (let i = 0; i < out.length; i++) { out[i] = <li key={i}>This is row {i + 1}</li> } return out }
ajax/libs/rxjs/2.2.7/rx.js
urish/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
lib/icon-button.js
checkraiser/material-ui2
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) {...
src/client/app/footer.react.js
steida/songary
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; export default class Footer extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg: {app: {footer}}} = this.props; ret...
src/Jumbotron.js
albertojacini/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { ...
ajax/libs/amazeui-react/1.0.0/amazeui.react.js
iwdmb/cdnjs
/*! Amaze UI React v1.0.0 | by Amaze UI Team | (c) 2016 AllMobilize, Inc. | Licensed under MIT | 2016-01-12T14:15:06+0800 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); els...
src/parser/demonhunter/havoc/modules/features/Checklist/Component.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import GenericCastEfficiencyRequirement from '...
src/components/InputFieldPresets.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import InputField from './InputField'; class InputFieldPresets extends React.Component { static propTypes = { defaultValue: PropTypes.arrayOf(PropTypes.number), pre: PropTypes.string, options: PropTypes.object, onChange: PropTypes.func, ...
modules/createRouter.js
frostney/react-router
/* jshint -W058 */ var React = require('react'); var warning = require('react/lib/warning'); var invariant = require('react/lib/invariant'); var canUseDOM = require('react/lib/ExecutionEnvironment').canUseDOM; var LocationActions = require('./actions/LocationActions'); var ImitateBrowserBehavior = require('./behaviors/...
ajax/libs/rxjs/2.3.13/rx.lite.js
akiran/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...
examples/js/column-filter/number-filter-with-default-value.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
.eslintrc.js
ElistratovRoman/react-alphabet-sorter
module.exports = { "parser": "babel-eslint", "extends": [ "standard", "standard-react", ], "env": { "browser": true, "node": true }, "plugins": [ "standard", "promise", ], "rules": { "newline-after-var": [ "error", "always", ], "one-var-declaration-pe...
test/specs/collections/Form/Form-test.js
shengnian/shengnian-ui-react
import faker from 'faker' import _ from 'lodash' import React from 'react' import Form from 'src/collections/Form/Form' import FormButton from 'src/collections/Form/FormButton' import FormCheckbox from 'src/collections/Form/FormCheckbox' import FormDropdown from 'src/collections/Form/FormDropdown' import FormField fro...
app/components/H3/index.js
brobey8/toomanynotes
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
src/svg-icons/communication/call-end.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallEnd = (props) => ( <SvgIcon {...props}> <path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-....
lib/util/help.js
SignalK/instrumentpanel
import React from 'react'; export default class HelpComponent extends React.Component { constructor(props) { super(props); this.state = { htmlContent: '' }; } render() { return ( <div className="help" dangerouslySetInnerHTML={ {__html: this.state.htmlContent} } /> ); } comp...
src/AlertModal.js
maxwellhealth/react-maxwell-modal
import React from 'react'; import Modal from './MaxwellModal' import _ from 'lodash' import buttonCall from './buttonCall' export default React.createClass({ displayName: 'AlertModal', getDefaultProps: function() { return { yesLabel: 'Yes' }; }, propTypes: { onHide: React.PropTypes.func.isRe...
frontend/src/Components/Page/Header/PageHeaderActionsMenuConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { restart, shutdown } from 'Store/Actions/systemActions'; import PageHeaderActionsMenu from './PageHeaderActionsMenu'; function createMapStateToProps() ...
app/components/Conversation.js
DrPandemic/TwiolioRN
// @flow import React, { Component } from 'react'; import { Dimensions, StyleSheet, Text, View, } from 'react-native'; import { ListItem } from 'react-native-elements'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import ReversedFlatList from 'react-native-reversed-flat-li...
src/routes/contact/Contact.js
Frenzzy/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
app/components/HelpView/CoreHelp.js
trevornelson/wld-frontend
/** * * PurposeHelp * */ import React from 'react'; import styled from 'styled-components'; import MenuList from 'components/Sidebar/MenuList'; import MenuListItem from 'components/Sidebar/MenuListItem'; const Wrapper = styled.div` `; class PurposeHelp extends React.PureComponent { // eslint-disable-line react/pre...
app/routes.js
nosplashurinal/order-management
import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import App from './containers/AppContainer'; import Login from './containers/LoginContainer'; import Orders from './components/Orders'; import Inventory from './containers/InventoryContainer'; import Admin from '....
src/layouts/PublishingApp.js
ghartong/react_falcor
import React from 'react' import { connect } from 'react-redux' import falcorModel from '../falcorModel' import { bindActionCreators } from 'redux' import articleActions from '../actions/article' import ArticleCard from '../components/ArticleCard' const mapStateToProps = (state) => ({ ...state }) const mapDispatc...
app/app.tv.samsung.samsungtv.optimized.js
arthurjamain/factory-template-sleek
/** * almond 0.0.3 Copyright (c) 2011, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details *//*jslint strict: false, plusplus: false *//*global setTimeout: false */var requirejs,require,define;(function(a){function g(a,b){if(a&&a.c...
examples/react-backbone/js/todos.js
lingjuan/todomvc
/*global Backbone */ var app = app || {}; (function () { 'use strict'; // Todo Collection // --------------- // The collection of todos is backed by *localStorage* instead of a remote // server. var Todos = Backbone.Collection.extend({ // Reference to this collection's model. model: app.Todo, // Save al...
components/ButtGroup.js
lfox91/EventScraper
import React from 'react'; export default class ButtGroup extends React.Component{ render(){ return( <div> <div id='one' className="square"> <div className="content"> 21+ </div> </div> <div id='two' className="square"> <div className="conten...
example/component/page.js
n7best/react-weui
import React from 'react'; export default class Page extends React.Component { render() { const {title, subTitle, spacing, className, children, footer} = this.props; return ( <section className={`page ${className}`}> <div className="page__hd"> <h1 cl...
src/AffixMixin.js
coderstudy/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; const AffixMixin = { propTypes: { offset: React.PropTypes.number, offsetTop: React.PropTypes.number, offsetBottom: React.PropTypes.number }, getInitialState() { return { a...
spec/components/tooltip.js
jasonleibowitz/react-toolbox
import React from 'react'; import Button from '../../components/button'; import Input from '../../components/input'; import Tooltip from '../../components/tooltip'; const TooltipButton = Tooltip(Button); const TooltipInput = Tooltip(Input); const TooltipStrong = Tooltip(({children, ...other}) => { delete other.theme...
src/docs/examples/ProgressBar/Example70ProgressBar.1.js
ibenavides/ps-react-ibenavides
import React from 'react'; import ProgressBar from 'ps-react/ProgressBar'; /** 70% and height 20px */ export default function ExampleProgressBar() { return <ProgressBar percent={70} width={50} height={20}/> }
analysis/paladinprotection/src/modules/features/WordOfGloryTiming.js
yajinni/WoWAnalyzer
import React from 'react'; import SelfHealTimingGraph from 'parser/shared/modules/features/SelfHealTimingGraph'; import SPELLS from 'common/SPELLS'; class WordOfGloryTiming extends SelfHealTimingGraph { constructor(...args) { super(...args); this.selfHealSpell = SPELLS.WORD_OF_GLORY; this.tabTitle = "S...
src/routes/Dashboard/components/SpotList.js
ZeusTheTrueGod/WindsurfingNetwork-client
// @flow import React from 'react'; import Spot from './Spot'; import { ListGroup, Media, ListGroupItem } from 'react-bootstrap'; import { List, InfiniteLoader, AutoSizer } from 'react-virtualized'; import { type Spot as SpotType, type Filters } from '../modules/dashboard'; import { getSpotsPage } from '../modules/api'...
react/reactRedux/redux-example-master/public/app/containers/App.js
huxinmin/PracticeMakesPerfect
import React from 'react' import SearchBar from '../components/searchBar' import Content from '../components/content' import Footer from '../components/footer' import { connect } from 'react-redux' import ImmutableRenderMixin from 'react-immutable-render-mixin' import * as ItemsActions from '../actions' import { bindAc...
src/client/components/Header.js
andrerpena/tr-workbench
import React from 'react'; var Header = React.createClass({ render: function() { return <div className="header"> <div className="header-logo"></div> </div>; } }); export default Header;
jquery.js
Kodagrux/URL-Shortener
/*! 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){retu...
source/client/head.js
Pro-YY/universal-web-kit
import React from 'react' import ReactDOM from 'react-dom' import Helmet from 'react-helmet' export function updateHead(args, container, onChange, callback) { const { title, description } = args ReactDOM.render( <Helmet title={title} meta={[ {name: 'description', content: description}, ...
stories/Group.story.js
ritz078/react-filters
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { Group } from '../components'; import Container from './Container'; const value = [{ id: 1, label: 'a', count: 6 }, { id: 2, label: 'b' }, { id: 3, label: 'c' }]; const value2 = [{ id: 1, label: 'a', count: ...
src/components/Disciplina/index.js
RodolfoSilva/DeVryCalc
import React from 'react' import { Text, View } from 'react-native' import PropTypes from 'prop-types' import Card from '../Card' import Previsoes from './Previsoes' import Notas from './Notas' import styles from './styles' const Disciplina = ({ id, titulo, notas, onPress }) => ( <Card onPress={onPress ? () => onPre...
addons/ondevice-knobs/src/types/Boolean.js
storybooks/react-storybook
import PropTypes from 'prop-types'; import { View } from 'react-native'; import { Switch } from 'react-native-switch'; import React from 'react'; class BooleanType extends React.Component { onValueChange = () => { const { onChange, knob } = this.props; onChange(!knob.value); }; render() { const { kn...
screens/Calendar/screens/CalendarRaceDetails.js
tarunsab/F1Portal
import React from 'react'; import {styles} from '../../GlobalStyles.js' import Tabs from 'react-native-tabs'; import CountDownTimer from '../../Components/CountDownComponent.js' import dateFormat from 'dateformat'; import { StackNavigator, } from 'react-navigation'; import { WebView, StyleSheet, Text, Flat...
pages/users/index.js
batusai513/next-saga-boilerplate
import React from 'react'; export default function Users() { return <h1>Users</h1>; }