path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
test/containers/CounterPage.spec.js
zedtux/grrn
import { expect } from 'chai'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import { Provider } from 'react-redux'; import CounterPage from '../../app/containers/CounterPage'; import config...
ajax/libs/zeroclipboard/2.1.6/ZeroClipboard.js
ripple0328/cdnjs
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.1.6 */ (function(window, undefined) { "use strict";...
example/client/index.js
modosc/react-responsive-redux
import '@babel/polyfill' import React from 'react' import { hydrate } from 'react-dom' import { Provider } from 'react-redux' import configureStore from '../common/store/configureStore' import App from '../common/containers/App' const { __PRELOADED_STATE__: preloadedState } = window const store = configureStore(preloa...
packages/material-ui-icons/src/SignalWifi1BarTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><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="M6.67 14.86L12 21.49...
ajax/libs/webshim/1.14.6/dev/shims/es6.js
pc035860/cdnjs
// ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ webshim.register('es6', function($, webshim, window, document, undefined){ 'use strict'; var isCallableWithoutNew = fun...
app/components/about/AboutSpreadOut.js
alexko13/block-and-frame
import React, { Component } from 'react'; class AboutSpreadOut extends Component { render() { return ( <div> <div className="ui two-column grid" > <div className="column" > <h2>The Project</h2> </div> <div className="fifteen wide column" > <div ...
docs/script.js
1egoman/fuzzy-picker
import {FuzzyPicker, AsyncFuzzyPicker, FuzzyWrapper} from '../src'; // React import React from 'react'; import ReactDOM from 'react-dom'; // A class to wrap our example and maintain its state class FuzzySearchExample extends React.Component { constructor(props) { super(props); this.state = {}; } render(...
files/rxjs/2.3.8/rx.js
alexmojaki/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; v...
frontend/src/pages/register/register.js
petar-prog91/go-bank-web
import React from 'react'; import { connect } from 'react-redux'; import { LoginForm } from '../../components'; const Register = () => ( <div className="registerPage__base"> <LoginForm /> </div> ); export default connect()(Register);
src/components/common/svg-icons/image/tag-faces.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTagFaces = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c....
src/Image/ImageCropper.js
ClarityMovement/clarity-components
import React from 'react'; import T from 'prop-types'; import { compose, withHandlers } from 'recompose'; import AvatarEditor from 'react-avatar-editor'; import Slider from 'material-ui/Slider'; import IconButton from 'material-ui/IconButton'; import ImageRotateLeft from 'material-ui/svg-icons/image/rotate-left'; impo...
test/TabbedAreaSpec.js
collinwu/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import TabbedArea from '../src/TabbedArea'; import NavItem from '../src/NavItem'; import TabPane from '../src/TabPane'; import ValidComponentChildren from '../src/utils/ValidComponentChildren'; describe('TabbedArea', function () { it('...
files/jquery/1.8.2/jquery.js
2947721120/adamant-waffle
/*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) */ (function(...
local-cli/generator/templates/index.ios.js
InterfaceInc/react-native
/** * 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 <%= name %> extends Component { render() { return ( <View style={styles.container}> <T...
src/parser/demonhunter/havoc/modules/spells/azeritetraits/FuriousGaze.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatNumber, formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import BoringSpellValueText from 'interface/statistics/components/Boring...
pages/index.js
Funkion/catch-the-monster-game
import React from 'react'; import io from 'socket.io-client'; import _ from 'lodash'; import { initStore } from '../redux/store'; import withRedux from 'next-redux-wrapper'; import { bindActionCreators } from 'redux'; import styled from 'styled-components'; import Page from '../components/Page'; import Title from '../c...
templates/backend/default/assets/plugin/x-editable/jqueryui-editable/js/jqueryui-editable.js
Keitaro-Bzh/MyERP
/*! X-editable - v1.5.1 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to form tag!...
src/index.js
Jam3/react-f1
'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; }; var React = require('react'); var f1DOM = requ...
examples/basic/babel.config.js
styleguidist/react-styleguidist
module.exports = { presets: [ [ '@babel/env', { modules: false, useBuiltIns: 'usage', corejs: 3, }, ], '@babel/react', ], plugins: ['@babel/plugin-proposal-class-properties'], };
src/routes.js
apedyashev/reactjs-jobs-aggregator
import React from 'react'; import {Route, IndexRoute, Redirect} from 'react-router'; import App from 'components/App'; import AppAuth from 'components/AppAuth'; import LandingPage from 'components/pages/Landing'; import Auth from 'components/pages/Auth'; // import RegisterPage from 'components/pages/Auth/Register'; im...
Tutorial/js/project/2.MeiTuan/Component/Home/XMGShopCenterDetail.js
onezens/react-native-repo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Platform, TouchableOpacity, Image, WebView } from 'react-native'; var Shop = React.createClass({ getIniti...
js/tests/vendor/jquery.min.js
bahruzabil/bootstrap
/*! jQuery v1.11.3 | (c) 2005, 2015 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...
src/v2/components/Billing/components/MyGroups/components/PremiumAlert/index.js
aredotna/ervell
import React from 'react' import PropTypes from 'prop-types' import { lighten } from 'v2/styles/functions' import Alert from 'v2/components/UI/Alert' const LIGHT_PREMIUM_COLOR = lighten('state.premium', 0.1) const PremiumAlert = ({ children, ...rest }) => ( <Alert py={6} textAlign="center" bg={LIGHT_P...
node_modules/@angular/forms/src/form_providers.js
andpax/PetMais
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { NgModule } from '@angular/core'; import { InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES, TEMPLATE_DR...
react-flux-mui/js/material-ui/src/svg-icons/av/featured-play-list.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedPlayList = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/> </SvgIcon> ); AvFeaturedPlayList = pu...
src/components/App.js
AlexKVal/vote-client
import React from 'react'; export default React.createClass({ render: function() { return this.props.children; } })
demo/src/index.js
sospedra/mayre
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' ReactDOM.render(<App />, document.getElementById('root'))
packages/wix-style-react/src/StarsRatingBar/components/InteractiveModeStar.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { withFocusable } from 'wix-ui-core/dist/src/hocs/Focusable/FocusableHOC'; import { st, classes } from './InteractiveModeStar.st.css'; import { dataHooks, starRatingBarSizesInPx } from '../constants'; import StarFilledIcon from 'wix-ui-icons-common...
src/index.js
octopitus/feather
import 'normalize.css' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import configureStore from './configureStore' import getRouter from './routes' const store = configureStore() ReactDOM.render( <Provider store={store}> {getRouter(store)} </Provider> , d...
test/components/TabContainer_spec.js
georgeOsdDev/react-draggable-tab
'use strict'; import React from 'react'; import ReactDom from 'react-dom'; import ReactTestUtils from 'react-dom/test-utils'; import chai from 'chai'; let expect = chai.expect; import TabContainer from '../../src/components/TabContainer'; describe('Test of TabContainer', () => { let component; beforeEach(() => { ...
src/index.js
moarwick/react-mt-svg-lines
import React from 'react'; import PropTypes from 'prop-types'; import TWEEN from '@tweenjs/tween.js'; import { clamp, trimFloat, isMsBrowser } from './utils.js'; const EASING = { ease: TWEEN.Easing.Quadratic.InOut, 'ease-in': TWEEN.Easing.Cubic.In, 'ease-out': TWEEN.Easing.Cubic.Out, 'ease-in-out': TWEEN.Easi...
src/controls/Button.js
gribnoysup/react-yandex-maps
import React from 'react'; import PropTypes from 'prop-types'; import { withParentContext } from '../Context'; import withYMaps from '../withYMaps'; import { BaseControl } from './BaseControl'; export function Button(props) { return <BaseControl {...props} name="Button" />; } if (process.env.NODE_ENV !== 'product...
js/vendor/contrib/libs/jquery-ui-tabs/tests/unit/tabs/tabs_events.js
khalid-bd/psa-recovery
(function( $ ) { var state = TestHelpers.tabs.state; module( "tabs: events" ); test( "create", function() { expect( 10 ); var element = $( "#tabs1" ), tabs = element.find( "ul li" ), panels = element.children( "div" ); element.tabs({ create: function( event, ui ) { equal( ui.tab.length, 1, "tab length"...
docs/src/NavMain.js
BespokeInsights/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
docs/_build/html/_static/jquery.js
materialsvirtuallab/pyhull
/*! 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...
example/examples/AnimatedMarkers.js
phantomlds/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, Animated, } from 'react-native'; import MapView from 'react-native-maps'; const screen = Dimensions.get('window'); const ASPECT_RATIO = screen.width / screen.height; const LATITUDE = 37.78825; const LONGITUDE = -122...
src/svg-icons/action/account-box.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
ajax/libs/video.js/5.0.0-rc.83/video.js
samthor/cdnjs
/** * @license * Video.js 5.0.0-rc.83 <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...
analysis/paladinholy/src/modules/beacons/FailedBeaconTransfers.js
yajinni/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import { SpellIcon } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import StatisticBox, { STATISTIC_ORDER } from 'parser/ui/StatisticBox'; import BeaconTransferFactor from './Bea...
src/svg-icons/action/trending-down.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingDown = (props) => ( <SvgIcon {...props}> <path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"/> </SvgIcon> ); ActionTrendingDown = pure(ActionTrendingDown); ActionTre...
fixtures/kitchensink/template/src/features/syntax/RestAndDefault.js
d3ce1t/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id, ...rest } = { id: 0, user: { id: 42, ...
client/FavBuoy/FavBuoy.js
dfuruya/BuoyCheck
import React from 'react'; import FavChild from '../FavChild/FavChild'; const FavBuoy = props => { return ( <div> {props.buoys.map(buoy => <li type="button" className="list-group-item" key={buoy.title} onClick={() => props.buoyClick(buoy)}> <h4>{buoy.title}</h4> <FavChild favDes...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-dropdown.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import $ from 'jquery'; import ReactDOM from 'react-dom'; import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin, Tools} from '../common/common.js'; import Button from './button.js'; import Backdrop from './backdrop.js'; import Span from './span.js'; import Glyphicon from './glyph...
src/client/components/TodoList.js
mayash/webapp
import React from 'react'; import { connect } from 'react-redux'; const TodoList = ({ todos }) => ( <ul> {todos.map((todo, index) => { return ( <li key={index + 1}>{todo}</li> ); })} </ul> ); const mapStateToProps = state => state; export default connect(mapStateToProps)(TodoList);
src/Footer.js
TheEvilCorp/OverReact
import React, { Component } from 'react'; export default class Footer extends Component { trackDonate() { mixpanel.track('Clicked Donate'); }; render() { let styleObj = { textAlign: 'center', margin: 'auto' }; let mixPanelImg = { margin: 'right', paddingRight: '30px' ...
resources/assets/js/components/profile/ProfileComponent.js
jrm2k6/i-heart-reading
import React from 'react'; import { connect } from 'react-redux'; import { fetchStudent } from '../../actions/studentSearchActions'; import { fetchStats, fetchUpdates } from '../../actions/crudActions'; import StudentTimeline from './StudentTimeline'; const mapStateToProps = (state) => { const _state = {}; _state...
frontend/pages/swe/week-11.js
souvik1997/website
import React from 'react'; import Link from 'next/link'; import Head from '../../components/head'; import BlogPost, { CodeBlock } from '../../components/swe-blog'; import { Container, Nav, NavItem, NavLink, Row, Col } from 'reactstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; const pickOfTheWeek = ( <div> ...
files/rxjs/3.0.0/rx.lite.extras.js
Heark/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'function': true, 'object': true }; var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports...
Libraries/Utilities/throwOnWrongReactAPI.js
InterfaceInc/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...
who_paid_what_2/imports/payment.js
bburscher/who_paid_what
import React, { Component } from 'react'; import IconButton from 'material-ui/IconButton'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import Divider from 'material-ui/Divider'; import {List, ListItem} from 'material-ui/L...
ajax/libs/6to5/2.9.0/browser.js
gaearon/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.to5=e()}}(function(){var define,module,exports;return...
ajax/libs/primereact/6.0.1/components/splitbutton/SplitButtonPanel.min.js
cdnjs/cdnjs
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Spl...
libs/jquery/1.7.2/jquery.min.js
owent-contrib/baiducdnstatic
/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
sprjr/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
front_end/front_end_app/src/client/auth/logout.react.js
Horizon-Framework/horizon
import Component from '../components/component.react'; import React from 'react'; export default class Logout extends Component { static propTypes = { actions: React.PropTypes.object.isRequired, msg: React.PropTypes.object.isRequired } render() { const {actions, msg} = this.props; return ( ...
ajax/libs/js-data/1.1.0/js-data-debug.js
thisispiers/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file dist/js-data-debug.js * @version 1.1.0 - Homepage <http://www.js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"undefine...
files/reactor/1.0.3/reactor.min.js
AdityaManohar/jsdelivr
/*! Reactor | https://github.com/Sinova/Reactor | (c) 2015 Samuel Hodge | http://www.gnu.org/copyleft/gpl.html */ !function(context){"use strict";function Reactor(fn,context){this instanceof Reactor?(this._val=fn,this._fns={}):(fn=fn.bind(context),top_function?fn():(top_function=all_functions.push(fn),fn(),top_function...
content/gocms/src/base/components/gForm/GInput.js
menklab/goCMS
import React from 'react'; import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup' import {HOC} from 'formsy-react'; class GInput extends React.Component { constructor(props) { super(props); this.state = { blurred: false }; this.changeValue = this.chan...
docs/app/Examples/elements/Step/Content/StepExampleLink.js
shengnian/shengnian-ui-react
import React from 'react' import { Icon, Step } from 'shengnian-ui-react' const StepExampleLink = () => ( <Step.Group> <Step link> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> </Step.Cont...
ajax/libs/pdf.js/2.0.345/pdf.js
holtkamp/cdnjs
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2017 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
js/setup.js
httpdeveloper/AdsManager
/** * Copyright (c) 2017 Dinesh Maharjan <httpdeveloper@gmail.com> * * 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 *...
src/svg-icons/communication/invert-colors-off.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationInvertColorsOff = (props) => ( <SvgIcon {...props}> <path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5...
react-weather-app/src/components/About.js
mauriciojunior/react-playground
'use strict' import React from 'react' const About = () => ( <div> <h1 className='text-center page-title'>About</h1> <p> This is a weather application build on React. I have built this for The Complete React Web App Developer Course. </p> <p> Here are some of the tools I used: ...
client/container/header/index.js
freestyle21/hongliu_site
import './index.less'; import React from 'react'; import { Link } from 'react-router'; import debounce from 'lodash.debounce'; import classNames from 'classnames'; import { Select, Menu, Row, Col, Icon, Button } from 'antd'; const Option = Select.Option; export default class Header extends React.Component { constru...
examples/js/advance/demo.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import EditTypeTable from './edit-type-table'; import InsertDefaultValueTable from './insert-default-value-table'; import DataInsertTypeTable from './insert-type-table'; import InsertErrorHandleTable from './insert-error-handle-table'; import AutoRowKeyTable from './au...
src/svg-icons/editor/drag-handle.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorDragHandle = (props) => ( <SvgIcon {...props}> <path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/> </SvgIcon> ); EditorDragHandle = pure(EditorDragHandle); EditorDragHandle.displayName = 'EditorDragHandle'; Edi...
src/svg-icons/action/settings-voice.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsVoice = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3...
src/components/game/GamesList.js
itjope/tipskampen
import React from 'react' import map from 'lodash/fp/map' import List from 'material-ui/List/List' import GamesListItem from './GamesListItem' const GamesList = (props) => { return ( <List> { map( (game) => { const bet = props.bets ? props.bets[game.id] : undefined ...
fixtures/dom/src/components/TestCase.js
AlmeroSteyn/react
import cn from 'classnames'; import semver from 'semver'; import React from 'react'; import PropTypes from 'prop-types'; import { parse } from 'query-string'; import { semverString } from './propTypes'; const propTypes = { children: PropTypes.node.isRequired, title: PropTypes.node.isRequired, resolvedIn: semverS...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
Ryanaka/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, unblockAccount, unmuteAccount, pinAccount, unpinAccount, } from '../../../actions/accounts'; import { m...
ajax/libs/jssip/0.6.33/jssip.js
dannyxx001/cdnjs
/* * JsSIP v0.6.33 * 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(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&de...
Examples/UIExplorer/MapViewExample.js
sarvex/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, ...
fields/types/code/CodeField.js
mohitjindal1992/keystone
var _ = require('underscore'), React = require('react'), Field = require('../Field'), CodeMirror = require('codemirror'); // See CodeMirror docs for API: // http://codemirror.net/doc/manual.html module.exports = Field.create({ displayName: 'CodeField', getInitialState: function() { return { isFocused: f...
ajax/libs/babel-core/5.8.35/browser-polyfill.js
extend1994/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...
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/dist/rx.js
alexhawkins/supplement-diary
// 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...
src/components/tcomb/TextInput.js
Jenny-L/lumohacks2017
/** * Text Input template for tcomb * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { View } from 'react-native'; // Components import { FormInput, FormLabel, FormValidationMessage } from '@ui/'; /* Component ================================...
app/javascript/mastodon/features/list_editor/components/account.js
PlantsNetwork/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
docs/layoutsExample/Home.js
Bandwidth/shared-components
import React from 'react'; import { H1, P, Spacing, Code, Link } from '@bandwidth/shared-components'; export default () => ( <Spacing> <H1>Bandwidth Layouts</H1> <P> You've found the documentation for Bandwidth's React layout library. Use the navigation above to get started. </P> <P> ...
react/src/components/SocialLinks.js
sdcaulley/sdcaulley-portfolio
import React from 'react'; export default function SocialLinks() { return ( <ul> <li><a href='github'>GitHub</a></li> <li><a href='linkedin'>LinkedIn</a></li> </ul> ); }
app/components/Dashboard/PortfolioPanel/index.js
CityOfZion/neon-wallet
// @flow import React from 'react' import { compose, withProps } from 'recompose' import { withData } from 'spunky' import { pickBy, pick, omit, reduce, map } from 'lodash-es' import { FormattedMessage } from 'react-intl' import PortfolioPanel from './PortfolioPanel' import portfolioPanelActions from '../../../actions...
src/components/UI/ColorSelect/ColorSelect.js
shayc/cboard
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, intlShape } from 'react-intl'; import FormControl from '@material-ui/core/FormControl'; import Radio from '@material-ui/core/Radio'; import RadioGroup from '@material-ui/core/RadioGroup'; import CloseIcon from '@material-ui/icons/Close'...
test/ImageSpec.js
sheep902/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Image from '../src/Image'; describe('Image', () => { it('should be an image', () => { let instance = ReactTestUtils.renderIntoDocument( <Image /> ); let image = React.findDOMNode(instance); image.nodeName...
src/svg-icons/image/remove-red-eye.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRemoveRedEye = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5...
test/ThumbnailSpec.js
PeterDaveHello/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Thumbnail from '../src/Thumbnail'; describe('Thumbnail', function () { it('Should have a thumbnail class and be an anchor', function () { let instance = ReactTestUtils.renderIntoDocument( <Thumbnail href="#" src="#" al...
ajax/libs/rxjs/2.2.2/rx.js
viskin/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 &&...
web/demo/client/src/layout/components/footer/index.js
yinweiwen/study
/** * Created by liu.xinyi * on 2016/3/31. */ 'use strict'; import React from 'react'; import {footer} from './style.css'; export default class Footer extends React.Component { render() { const {footerProps} = this.props; return ( <div className={footer} {...footerProps}> ...
packages/react/components/view.js
AdrianV/Framework7
import React from 'react'; import f7 from '../utils/f7'; import events from '../utils/events'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers...
Realization/frontend/czechidm-acc/src/content/contractSlice/ContractSliceAccounts.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import _ from 'lodash'; // import { Basic, Advanced, Domain, Managers, Utils } from 'czechidm-core'; import { ContractSliceAccountManager, AccountManager } from '../../redux'; import ...
src/js/about/index.js
tpucci/jobads-webapp
import React from 'react'; export default class About extends React.Component { render() { return( <h1>A propos</h1> ); } }
ajax/libs/componentjs/1.3.1/component.js
BenjaminVanRyseghem/cdnjs
/* ** ComponentJS -- Component System for JavaScript <http://componentjs.com> ** Copyright (c) 2009-2016 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, ...
containers/AppBar.js
SocialCycling/sc-web-client
import React from 'react' import AppBar from '../components/AppBar' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { navigationDrawerToggle } from '../actions/navigationDrawer' const mapDispatchToProps = { onLeftIconButtonTouchTap : navigationDrawerToggle } export default ...
src/parser/monk/windwalker/modules/spells/azeritetraits/FuryOfXuen.js
sMteX/WoWAnalyzer
import React from 'react'; import Events from 'parser/core/Events'; import Analyzer, { SELECTED_PLAYER_PET, SELECTED_PLAYER } from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import {calculateAzeriteEffects} from 'common/stats'; import SPELLS from 'common/SPELLS'; import ...
src/components/SettingsContainer.js
GriddleGriddle/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from '../utils/griddleConnect'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import { classNamesForComponentSelector, stylesForComponentSelector } from...
src/containers/SignupContainer.js
ello/webapp
import React from 'react' import { MainView } from '../components/views/MainView' import RegistrationRequestForm from '../components/forms/RegistrationRequestForm' export default props => (<MainView className="Authentication"> <div className="AuthenticationFormDialog"> <RegistrationRequestForm {...props} /...
app/containers/home.js
mersocarlin/react-webpack-template
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; class Home extends Component { componentDidMount () { this.test(); } request () { return new Promise((resolve) => { setTimeout(() => { resolve('123'); }, 5 * 1000); ...
src/WatchedFolders/FoldersListDropbox.js
zchr/electrobox
import React, { Component } from 'react'; import { setDropboxLocation, getDropbox } from '../MakeSettings'; const electron = window.require('electron'); const dialog = electron.remote.dialog; class FoldersListDropbox extends Component { constructor(props) { super(props); this.setDropboxLocation = this.setD...
packages/material-ui/src/DialogActions/DialogActions.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import '../Button'; // So we don't have any override priority issue. export const styles = { /* Styles applied to the root element. */ root: { display: 'flex', alignItems: ...
examples/FixedActionButton.js
jsbranco/react-materialize
import React from 'react'; import Button from '../src/Button'; export default <Button floating fab='vertical' faicon='fa fa-plus' className='red' large style={{bottom: '45px', right: '24px'}}> <Button floating icon='insert_chart' className='red'/> <Button floating icon='format_quote' className='yellow darken-1'/...
app/routes/production/routes.js
robogroves/bps
// @flow import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from '../../containers/App'; import HomePage from '../../containers/production/HomePage'; import POReqTrans from '../../containers/production/port/POReqTrans'; import GenReceivers from '../../containers/production/gr/GenRec...
apps/phx_web/web/static/js/containers/index.js
harmon25/roygbiv_cntrl
import React from 'react'; import App from '../components/app'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { ApolloProvider } from 'react-apollo'; import createStore from '../store' import client from '../sources/apollo' const AppContainer = () => ( <MuiThemeProvider> <ApolloProv...