path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/DragLayer/propTypes.js
edulan/react-virtual-kanban
import { PropTypes } from 'react'; export const lists = PropTypes.array; export const item = PropTypes.object; export const itemType = PropTypes.string; export const currentOffset = PropTypes.shape({ x: PropTypes.number.isRequired, y: PropTypes.number.isRequire, }); export const isDragging = PropTypes.bool.isRequi...
index.android.js
nasgul/uwc2016teamSpring
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class todo extends Component { render() { return ( <View style={styles.container}> ...
src/__tests__/forms/ChangeViewForm.js
crudlio/crudl
/* globals jest, require, test, expect, describe, it, beforeEach */ import configureStore from 'redux-mock-store' import { Provider } from 'react-redux' import { reduxForm } from 'redux-form' import React from 'react' import { shallow, mount } from 'enzyme' import ChangeViewForm from '../../forms/ChangeViewForm' impor...
ajax/libs/forerunnerdb/1.3.552/fdb-all.min.js
Amomo/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
wp-content/cache/autoptimize/js/autoptimize_07b87616150b16c7771dc79706edaa83.js
nilmadhab/webtutplus
writeCookie();function writeCookie() {the_cookie=document.cookie;if(the_cookie){if(window.devicePixelRatio>=2){the_cookie="pixel_ratio="+window.devicePixelRatio+";"+the_cookie;document.cookie=the_cookie;}}};window._wpemojiSettings={"baseUrl":"http:\/\/s.w.org\/images\/core\/emoji\/72x72\/","ext":".png","source":{"conca...
reactjs/demo/react-todo/app/index.js
ShengChih/saveus
import React from 'react'; import ReactDOM from 'react-dom'; import TodoHeader from './components/TodoHeader'; import TodoList from './components/TodoList'; class App extends React.Component { constructor(props) { super(props); this.handleTodoTextChange = this.handleTodoTextChange.bind(this); this.handl...
ajax/libs/gitalk/1.2.2/gitalk.js
extend1994/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Gitalk"] = factory(); else root["Gitalk...
creditcardsimulation_redux_hooks/src/components/creditcard/cardlist.js
balaSpyrus/wave11
import React from 'react' import PropTypes from 'prop-types' import { CreditCard } from './creditcard'; import './cardList.css' import { Scrollbars } from 'react-custom-scrollbars'; export const CardList = ({ creditCards, onDelete }) => ( <div class='container-fluid'> <Scrollbars autoHide ...
examples/official-storybook/stories/deprecated/addon-info.stories.js
storybooks/react-storybook
import React from 'react'; import { withInfo } from '@storybook/addon-info'; import { action } from '@storybook/addon-actions'; import BaseButton from '../../components/BaseButton'; import { markdownDescription } from '../addon-info/markdown.stories'; export default { title: 'Addons/Info/deprecated', }; export con...
app/javascript/flavours/glitch/features/ui/components/report_modal.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { submitReport } from 'flavours/glitch/actions/reports'; import { expandAccountTimeline } from 'flavours/glitch/actions/timelines'; import { fetchRules } from 'flavours/glitch/actions/rules'; import { fetchRelationships } from 'flavours/glitch/act...
app/containers/HomeContainer.js
Eaternity/eaternity-edb-solution
import React from 'react' import * as dataActions from '../store/data/actions' import * as viewActions from '../store/view/actions' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { push } from 'react-router-redux' import { getVisibleProducts } from '../store/selectors/selector' ...
Rate.UI/app/components/MyReviewsContainer.js
jcnavarro/rateflicks
import React, { Component } from 'react'; import {Container} from 'flux/utils'; import ReviewActions from '../actions/ReviewActions'; import ReviewStore from '../stores/ReviewStore'; import MyReviews from './MyReviews'; import AddReviewContainer from './AddReviewContainer'; export default class MyReviewsContainer exte...
packages/wix-style-react/src/Thumbnail/Thumbnail.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { st, classes } from './Thumbnail.st.css'; import CheckboxChecked from 'wix-ui-icons-common/system/CheckboxChecked'; import Text from '../Text'; import { withFocusable } from 'wix-ui-core/dist/src/hocs/Focusable/FocusableHOC'; import { dataHooks } fr...
templates/rubix/laravel/laravel-seed/src/common/footer.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Grid, } from '@sketchpixy/rubix'; export default class Footer extends React.Component { state = { version: 0 }; componentDidMount() { this.setState({ version: document.body.getAttribute('data-version') }); } render() { var year = ne...
app/components/magnetopause/MagnetopauseMap.js
sheldhur/Vector
// @flow import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import MagnetopauseMapX from './MagnetopauseMapX'; class MagnetopauseMap extends Component { state = { wrapperSize: { width: undefined, heig...
modules/RouteContext.js
mozillo/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
6.0.0-alpha.15/examples/asyncValidation/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(290),e.exports=n(288)},function(e,t,n){var r=n(5),o=n(33),i=n(17),a=n(19),u=n(38),s="prototype",...
src/index.js
recursiveElk/finnoco.com
import React from 'react'; import ReactDOM from 'react-dom'; import './components/index.css'; import PageRouter from './PageRouter'; import App from './components/App'; ReactDOM.render( <PageRouter />, document.getElementById('root'), );
src/components/flows/secondPillar/selectSources/exactFundSelector/ExactFundSelector.js
TulevaEE/onboarding-client
/* eslint-disable react/no-array-index-key */ import React from 'react'; import { PropTypes as Types } from 'prop-types'; import { FormattedMessage } from 'react-intl'; import FundExchangeRow from './fundExchangeRow'; import { isTuleva } from '../../../../common/utils'; function createSelectionChangeHandler(index, se...
src/components/Blog/BlogAuthor/BlogAuthor/BlogAuthor.js
easingthemes/easingthemes.github.io
import React from 'react'; /** * React component implementation. * * @author dfilipovic * @namespace ReactApp * @class BlogAuthor * @extends ReactApp */ export class BlogAuthor extends React.Component { //---------------------------------------------------------------------------------------------------------...
src/docs/components/notification/NotificationDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Notification from 'grommet/components/Notification'; import Button from 'grommet/components/Button'; import Anchor from 'grommet/components/Anchor'; import DocsArticle from '../../../components/DocsArt...
test/helpers/shallowRenderHelper.js
westke/gallery-by-react-study
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
examples/with-apollo/lib/withData.js
arunoda/next.js
import React from 'react' import PropTypes from 'prop-types' import { ApolloProvider, getDataFromTree } from 'react-apollo' import Head from 'next/head' import initApollo from './initApollo' // Gets the display name of a JSX component for dev tools function getComponentDisplayName (Component) { return Component.disp...
build/devtools.js
react-rpm/react-rpm
chrome.devtools.panels.create('react-rpm', null, 'devpanel.html', () => { } );
assets/javascripts/kitten/karl/pages/homepage/news/index.js
KissKissBankBank/kitten
import React from 'react' import styled from 'styled-components' import { NewsBlock } from './components/news-block' import { Container, Title, pxToRem, stepToRem, ScreenConfig } from 'kitten' const StyledSection = styled.section` margin: ${pxToRem(50)} 0; ` const StyledTitle = styled(Title)` margin: 0 0 ${pxToRe...
client/modules/landing/sections/NextSection.js
cdriscol/amerikawedding2017
import React, { Component } from 'react'; import styles from './NextSection.css'; import { TweenMax, Sine } from 'gsap'; class HomeSection extends Component { componentDidMount() { TweenMax.fromTo(this.svg, 1.5, { opacity: 0.5 }, { opacity: 1, scale: 1.25, yoyo: true, repeat: -1, ease: Sine.easeInOut, repeatDela...
blueprints/layout/files/__test__/layouts/__name__Layout.spec.js
andest01/react-timeline
import React from 'react' describe('(Layout) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
src/svg-icons/hardware/headset.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadset = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/> </SvgIcon> ...
sites/all/modules/jquery_update/replace/jquery/1.10/jquery.min.js
qngo-windwalker/survey
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
src/js/components/icons/base/FormRefresh.js
odedre/grommet-final
/** * @description FormRefresh SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. *...
app/screens/Main.android.js
marchi-martius/FreemarketRn
import React from 'react'; import PropTypes from 'prop-types'; import { DrawerLayoutAndroid, View, Text, StyleSheet } from 'react-native'; import CategoryList from '../containers/CategoryList'; import ProductList from '../containers/ProductList'; // import CategoryOverview from '../containers/CategoryOverview'; import...
screens/ProductChildCategoriesScreen/Category.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { Dimensions, Image, StyleSheet, Text, View } from 'react-native' import PropTypes from 'prop-types' import { Card, CardSection } from '@components' const { width } = Dimensions.get( 'window' ) const styles = StyleSheet.create( { headerContentStyle: { flexDirection: 'column', ...
src/js/components/icons/base/Close.js
odedre/grommet-final
/** * @description Close SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prop...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
changjiashuai/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
ajax/libs/yui/3.9.0pr3/scrollview-base/scrollview-base-coverage.js
AlexisArce/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
plugins/Files/js/components/downloadlist.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import TransferList from './transferlist.js' import { List } from 'immutable' const DownloadList = ({ downloads, onDownloadClick, onClearClick }) => ( <div className='downloads'> <h3> Downloads </h3> <TransferList transfers={downloads} onTransferCl...
src/components/Article/CommentList.js
tilgram/tilgram-frontend
import Comment from './Comment'; import React from 'react'; const CommentList = props => { return ( <div> { props.comments.map(comment => { return ( <Comment comment={comment} currentUser={props.currentUser} slug={props.slug} ...
app/ht/GDHt.js
Hey2Li/RNGD
import React, { Component } from 'react'; import { StyleSheet, View, TouchableOpacity, Image, ListView, Dimensions, ActivityIndicator, Modal, AsyncStorage, Navigator } from 'react-native'; // 组件 import CommunaNavBar from '../main/GDCommunalNavBar'; import USHalfHourHot from '../h...
src/Transition.js
IveWong/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import classnames from 'classnames'; export const UNMOUNTED = 0; export const EXITED = 1; export const ENTERING = 2; export const ENTERED = 3; export const EXITING = 4; class Transition extends React.Component { constructor(props, c...
ajax/libs/forerunnerdb/1.3.532/fdb-core.min.js
humbletim/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
src/svg-icons/image/add-a-photo.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAddAPhoto = (props) => ( <SvgIcon {...props}> <path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-...
zhujibank-webapp/src/main/webapp/ueditor/third-party/jquery-1.10.2.js
madfroglx/prod
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
text-dream/webapp/src/components/glyph/GlyphComponent.js
PAIR-code/interpretability
/** * @license * Copyright 2018 Google LLC. All Rights Reserved. * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
src/lock/renderer.js
auth0/lock-passwordless
import React from 'react'; import ReactDOM from 'react-dom'; import CSSCore from 'fbjs/lib/CSSCore'; import ContainerManager from './container_manager'; import Lock from './lock'; import * as l from './index'; import * as c from '../cred/index'; import * as g from '../gravatar/index'; import { getCollection, getEntity ...
examples/huge-apps/routes/Course/components/Dashboard.js
CivBase/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
dashboard/src/components/dashboard/ServiceList.js
leapfrogtechnology/chill
import React from 'react'; import PropTypes from 'prop-types'; import ServiceRow from './ServiceRow'; /** * Get list of services and passes each incident information * to ServiceRow. * * @param {Array} services */ const ServiceList = ({ services }) => ( <div className="components-section"> <div className="...
packages/material-ui-icons/src/WifiTetheringTwoTone.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 d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-...
node_modules/@material-ui/core/es/StepButton/StepButton.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import ButtonBase from '../Button...
src/reactApplication.js
yeastgenome/sgd_react_boilerplate
import React, { Component } from 'react'; import { Router, browserHistory, createMemoryHistory } from 'react-router'; import routes from './routes'; class ReactApp extends Component { render() { let _history = (typeof browserHistory === 'object') ? browserHistory : createMemoryHistory('/'); return ( <R...
components/EdgeResult.js
stucco/ui
import React from 'react' import cx from 'classnames' import history from '../core/history' import Link from './Link' import { connect } from 'react-redux' import { SET_VERTEX } from '../redux/actions' class EdgeResult extends React.Component { render () { return ( <li className='listGroupItem' > ...
src/components/dock/Item.js
manweill/dna-ebook
import { StyleSheet, Text, TouchableOpacity } from 'react-native' import Icon from 'react-native-vector-icons/FontAwesome' import PropTypes from 'prop-types' import React from 'react' const DockItem = ({ onPress, icon, size = 18, text, textSize, style = styles.dockText }) => { return ( <TouchableOpacity onPress...
public/back/js/jquery.min.js
thien3060/intern-project
/*! 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/interface/icons/Intellect.js
yajinni/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 17 32 32" className="icon" {...props}> <path d="M28.832,44.802h6.559v-1.101h-6.559V44.802z M29.91,47.004h4.402v-1.101H29.91V47.004z M32.156,18.379c-0.012,0-0.031,0-0.045,0c-0.014,0-0.033,0-0.045,0...
ajax/libs/reactive-coffee/1.2.0/reactive-coffee.min.js
mathiasrw/cdnjs
(function(){var a,b=[].slice,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};a=function(a,c){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V...
client/scripts/app.js
bitmaker-software/cisco-spark-onboarding-bot
// import React from 'react'; // import ReactDOM from 'react-dom'; // import Router from 'react-router/lib/Router'; // import separately to reduce bundle size // import browserHistory from 'react-router/lib/browserHistory'; // import separately to reduce bundle size // import {Provider} from 'react-redux'; // import {c...
tests/components/Header/Header.spec.js
dkushner/ArborJs-Playground
import React from 'react' import { Header } from 'components/Header/Header' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header/>) }) it('Renders a welcome message', () => { c...
examples/pinterest/app.js
Jonekee/react-router
import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; var PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }, { id: 2, src: 'http://placekitten.com/620/620' } ]; var Modal = React.createClass({ styles: { posi...
apps/wmb/priv/www/static/js/src/containers/filters/index.js
black13ua/wmb
import React from 'react'; import FiltersMenuView from '../../view/filters/main'; // import RandomButtonContainer from './random-button'; import FiltersContainer from './filters/main-filter'; const RightSidebarContainer = () => <FiltersMenuView> {/* <RandomButtonContainer />*/} <FiltersContainer ...
catch-of-the-day/src/components/App.js
mraguso2/notes-react-wb
import React from 'react'; import Header from './Header'; import Order from './Order'; import Inventory from './Inventory'; import Fish from './Fish'; import base from '../base'; import sampleFishes from '../sample-fishes'; class App extends React.Component { constructor() { super(); this.addFish = this.ad...
ajax/libs/forerunnerdb/1.3.304/fdb-core+persist.min.js
menuka94/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
imports/ui/pages/Miscellaneous/RecoverPassword/RecoverPassword.js
haraneesh/mydev
import React from 'react'; import { Row, Col, Alert, FormGroup, ControlLabel, Button, } from 'react-bootstrap'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Accounts } from 'meteor/accounts-base'; import { toast } from 'react-toastify'; import AccountPageFooter from '../../../...
webapp/src/browser/issues/Issue.react.js
yamadapc/git-issues
import Component from 'react-pure-render/component'; import shortParagraph from '../../images/short-paragraph.png'; import React from 'react'; import {Link} from 'react-router'; import './Issue.css'; class IssueDescription extends Component { render() { if(this.props.body.length === 0) { return ( <...
ajax/libs/react-virtualized/5.5.2/react-virtualized.min.js
emmy41124/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("react"),require("react-dom")):e.ReactVirtualized=t(e.React,e.ReactDO...
src/__tests__/Popup.js
KABA-CCEAC/react-leaflet
import React from 'react'; jest.dontMock('../BaseTileLayer'); jest.dontMock('../MapComponent'); jest.dontMock('../MapLayer'); jest.dontMock('../PopupContainer'); jest.dontMock('../Map'); jest.dontMock('../Marker'); jest.dontMock('../Popup'); jest.dontMock('../TileLayer'); jest.dontMock('../index'); const {Map, Marker...
.storybook/components/CopyButtonStory.js
hellobrian/carbon-components-react
import React from 'react'; import { action, storiesOf } from '@storybook/react'; import CopyButton from '../../components/CopyButton'; storiesOf('CopyButton', module).addWithInfo( 'Default', ` The copy button can be used when the user needs to copy information, such as a code snippet, to their clipboard. ...
app/components/common/Sidebar.js
mswiszcz/pagebuilder
// @flow import React, { Component } from 'react'; import Button from './Sidebar/Button'; import styles from './Sidebar.css'; export default class Sidebar extends Component { render() { const { activeRoute } = this.props; return ( <div className={styles.component}> <Button to='/' icon='th' to...
app/containers/NotFoundPage/index.js
Dudelmoser/Mazenger
import React from 'react'; import messages from './messages'; import {FormattedMessage} from 'react-intl'; /* This page is shown when the user visits a url that doesn't have a route */ export default function NotFoundPage() { return ( <FormattedMessage {...messages.header} /> ); }
ajax/libs/remoteStorage/0.11.0/remotestorage-nocache.js
sajochiu/cdnjs
/** remotestorage.js 0.11.0, http://remotestorage.io, MIT-licensed **/ /** FILE: lib/bluebird.js **/ /** * bluebird build version 2.3.4 * Features enabled: core, nodeify * Features disabled: race, call_get, generators, map, promisify, props, reduce, settle, some, progress, cancel, using, filter, any, each, timers *...
packages/reactor-kitchensink/src/examples/Charts/Area/StackedArea/StackedArea.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; export default class StackedAreaChartExample extends Component { constructor(){ super(); } store = Ext.create...
docs/app/Examples/elements/Segment/Variations/SegmentExampleAttached.js
clemensw/stardust
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleAttached = () => ( <div> <Segment attached='top'> This segment is on top </Segment> <Segment attached> This segment is attached on both sides </Segment> <Segment attached='bottom'> This seg...
src/components/LatestScores/LatestScores.js
RetroGameNight/rgn-ui
/* * Retro Game Night * Copyright (c) 2015 Sasha Fahrenkopf, Cameron White * * 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 FluxComponent from 'flummox/component' import Table from '../Table/Table'...
doc/_build/html/_static/jquery.js
jm-begon/progressmonitor
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==...
razorchess-react/examples/src/PlayGame/SmartPlayGame.js
blank-blank/razorchess
import React, { Component } from 'react'; import { createRedux, createDispatcher, bindActionCreators } from 'redux'; import { Provider, Connector } from 'redux/react'; import store from './flux/store'; import * as actions from './flux/actions'; import DumbPlayGame from './DumbPlayGame'; export default class SmartPlayG...
dddp_chat/meteor_build/bundle/programs/server/npm/ecmascript-runtime/node_modules/meteor-ecmascript-runtime/node_modules/core-js/modules/es6.promise.js
tysonclugg/django-ddp-chat
'use strict'; var $ = require('./$') , LIBRARY = require('./$.library') , global = require('./$.global') , ctx = require('./$.ctx') , classof = require('./$.classof') , $def = require('./$.def') , isObject = require('./$.is-object') , anObject = require('./$.an-object')...
src/views/components/player/index.fix.js
zerubeus/sawt
import React from 'react'; import { shallow } from 'enzyme'; import { Track } from '../../../core/tracks'; import { Player } from './index'; describe('views', () => { describe('Player', () => { let props; let track; beforeEach(() => { track = new Track({ duration: 400, title: 'Tra...
src/components/posts_index.js
unhommequidort/redux_blog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPosts } from '../actions'; import _ from 'lodash'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts(); } renderPosts() { return _.map(th...
ajax/libs/vuetify/0.17.4/vuetify.js
holtkamp/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Vuetify"] = factory(); else root["Vueti...
src/index.js
hrasoa/rsk
import createHistory from 'history/createBrowserHistory'; import React from 'react'; import { hydrate } from 'react-dom'; import { Provider } from 'react-redux'; import * as firebase from 'firebase/app'; import 'firebase/auth'; import { ConnectedRouter, routerReducer, routerMiddleware } from 'react-router-redux';...
src/routing.js
BushrootPDX/app
import React, { Component } from 'react'; import {BrowserRouter as Router, Route, Link, Switch, Redirect} from 'react-router-dom'; import Auth from './auth/Auth'; import GardenContainer from './garden/GardenContainer'; import GardenBuilderContainer from './gardenBuilder/GardenBuilderContainer'; import App from './App';...
ajax/libs/yui/3.9.1/datatable-body/datatable-body-debug.js
pvnr0082t/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
client/food-product-index.js
gobble43/gobble-dist-web
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './../common/configureStore'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); import FoodProductContainer from './../common/food-product/FoodProduc...
src/views/app/index.js
bogdan-dumitru/padkontrol
import React, { Component } from 'react'; import Controls from '../controls'; import Grid from '../grid'; import Sequencer from '../sequencer'; import _style from './index.css'; export default class App extends Component { render() { return ( <div className="App clearfix"> <div className="Controls-...
tests/react_children/text.js
AgentME/flow
// @flow import React from 'react'; class Text extends React.Component<{children: string}, void> {} class TextOptional extends React.Component<{children?: string}, void> {} class TextLiteral extends React.Component<{children: 'foo' | 'bar'}, void> {} <Text />; // Error: `children` is required. <TextOptional />; // O...
src/server.js
brian-kilpatrick/react-starter-kit
import path from 'path'; import express from 'express'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; import React from 'react'; import ReactDOM from 'react-dom/server'; import PrettyError from 'pretty-error'; import App from './components/App'; import Html from './components/Html'; im...
blueocean-material-icons/src/js/components/svg-icons/av/playlist-add.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvPlaylistAdd = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/> </SvgIcon> ); AvPlaylistAdd.displayName = 'AvPlaylistAdd'; AvPlaylistAdd.muiName = 'SvgIcon'; ex...
examples/05 Customize/Handles and Previews/index.js
craigklem/react-dnd
import React from 'react'; import Container from './Container'; export default class CustomizeHandlesAndPreviews { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Handles%20and%20Previews'>Browse the Source</a></b> ...
2-personal-website/js/components/Post.js
melvinodsa/my-react-experiments
import React from 'react'; class Post extends React.Component { render() { return ( <div class="col-md-6 col-xs-6 col-sm-6"> <h3>{this.props.title}</h3> <p>{this.props.body}</p> </div> ); } } export default Post;
src/parser/shared/modules/items/bfa/FirstMatesSpyglass.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import ITEMS from 'common/ITEMS/index'; import Analyzer from 'parser/core/Analyzer'; import HIT_TYPES from 'game/HIT_TYPES'; import Abilities from 'parser/core/modules/Abilities'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import...
docs/src/pages/components/typography/TypographyTheme.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; const styles = theme => ({ root: { ...theme.typography.button, backgroundColor: theme.palette.background.paper, padding: theme.spacing(1), }, }); function TypographyTheme(props) { re...
src/svg-icons/image/grain.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGrain = (props) => ( <SvgIcon {...props}> <path d="M10 12c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12-8c1....
src/components/BookEdit/BookEdit.js
k2data/books-ui
import React from 'react' import { Form, Input, InputNumber, DatePicker, Button } from 'antd' import moment from 'moment' // import classes from './BookEdit.scss' const FormItem = Form.Item const format = 'YYYY-MM-DD' const Props = { book: Object, form: Object, handleChange: Function, getFieldDecorator: Funct...
src/Components/Result.spec.js
michaelmilessmith/pizza-requirement-calculator
import React from 'react' import { shallow } from 'enzyme' import { Result } from './Result' jest.mock('../pizzaCalculator') import pizzaCalculator from '../pizzaCalculator' describe('<Result/>', () => { it('loads a div containing four p elements', () => { pizzaCalculator.mockReturnValue({ pizzas: { ...
ajax/libs/6to5/1.12.13/browser-polyfill.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...
demo/components/select/SelectDemo.js
ctco/rosemary-ui
import React from 'react'; import {Select} from '../../../src'; import DemoWithSnippet from '../../layout/DemoWithSnippet'; export default class SelectDemo extends React.Component { constructor(props) { super(props); this.options = [ {id: 1, displayString: 'Option 1'}, {id:...
ajax/libs/babel-core/5.1.12/browser-polyfill.js
Piicksarn/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...
lib/components/util/formatted-mode.js
opentripplanner/otp-react-redux
import { FormattedMessage } from 'react-intl' import PropTypes from 'prop-types' import React from 'react' import styled from 'styled-components' /** * Returns a FormattedMessage component for the "travel by" mode such that i18n IDs * are hardcoded and can be kept track of by format.js CLI tools */ // eslint-disabl...
Libraries/Utilities/throwOnWrongReactAPI.js
naoufal/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...
src/components/ForgetPassword/NewPasswordForm.js
partneran/partneran
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { newPassword } from '../../actions/user'; var jwt_decode = require('jwt-decode'); class NewPasswordForm extends Component { constructor(props) { super(props) this.sta...
src/navigation/auth.js
Jenny-L/lumohacks2017
/** * Auth Scenes * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { Scene, ActionConst } from 'react-native-router-flux'; // Consts and Libs import { AppConfig } from '@constants/'; // Scenes import Authenticate from '@containers/auth/Authen...
webapp-src/src/Login/SchemeAuthForm.js
babelouest/glewlwyd
import React, { Component } from 'react'; import i18next from 'i18next'; import apiManager from '../lib/APIManager'; import messageDispatcher from '../lib/MessageDispatcher'; import MockSchemeForm from './scheme/MockSchemeForm'; import EmailSchemeForm from './scheme/EmailSchemeForm'; import WebauthnForm from './schem...