path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/svg-icons/image/collections.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
packages/material-ui-icons/src/CallMade.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CallMade = props => <SvgIcon {...props}> <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z" /> </SvgIcon>; CallMade = pure(CallMade); CallMade.muiName = 'SvgIcon'; export default CallMade;
imports/plugins/core/shipping/client/templates/shipping.js
karenlin2207/test
import { Meteor } from "meteor/meteor"; import { Session } from "meteor/session"; import { Template } from "meteor/templating"; import { Blaze } from "meteor/blaze"; import { AutoForm } from "meteor/aldeed:autoform"; import { Reaction, i18next } from "/client/api"; import { Packages, Shipping } from "/lib/collections";...
node_modules/react-dom/lib/findDOMNode.js
rwarr/futaba-db
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict...
src/routes/register/index.js
dadish-etudes/react-todo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Register from './Registe...
src/layouts/BaseLayout/BaseLayout.js
amaurisquezada/battleship
import React from 'react' import './BaseLayout.scss' import '../../styles/core.scss' export const BaseLayout = ({ children }) => ( <div className='core-layout__viewport'> {children} </div> ) BaseLayout.propTypes = { children : React.PropTypes.element.isRequired } export default BaseLayout
src/components/FavouritesButton.js
polinazolotukhina/redux-movieDB
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators} from 'redux'; import * as actions from '../actions/moviesActions'; import { Button, Popover, Tooltip, Modal, OverlayTrigger } from 'react-bootstrap'; class FavouritesButton extends Reac...
src/svg-icons/image/panorama.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanorama = (props) => ( <SvgIcon {...props}> <path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePanora...
client/src/templates/Challenges/projects/frontend/Show.js
BhaveshSGupta/FreeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Grid, Col, Row } from '@freecodecamp/react-bootstrap'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { graphql } from 'gatsby'; import Helmet from 'react-helmet'; import { ChallengeNode } ...
ajax/libs/aui/5.6.10/aui/js/aui-all.js
MisatoTremor/cdnjs
!function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(....
ajax/libs/onsen/1.3.1/js/onsenui.js
BenjaminVanRyseghem/cdnjs
/*! onsenui - v1.3.1 - 2015-04-30 */ // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // JavaScript Dynamic Content shim for Windows Store apps (function () { if (window.MSApp && M...
ohrockman/static/js/fancybox/fancylib/jquery-1.10.1.min.js
rockmans/ohrockman
/*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.1.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.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
src/components/JsonValue.js
oxyno-zeta/react-editable-json-tree
/* * Author: Alexandre Havrileck (Oxyno-zeta) * Date: 18/10/16 * Licence: See Readme */ /* ************************************* */ /* ******** IMPORTS ******** */ /* ************************************* */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { HotKeys }...
Realization/frontend/czechidm-core/src/components/basic/EnumValue/EnumValue.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; // import Label from '../Label/Label'; import Icon from '../Icon/Icon'; /** * Simple enum formatter. * * @author Radek Tomiška */ export default function EnumValue(props) { const { rendered, value, style, label, level, title } = props; const enumCl...
docs/app/Examples/elements/Loader/States/LoaderExampleActive.js
clemensw/stardust
import React from 'react' import { Loader, Image, Segment } from 'semantic-ui-react' const LoaderExampleActive = () => ( <Segment> <Loader active /> <Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> </Segment> ) export default LoaderExampleActive
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devi...
templates/rubix/rubix-bootstrap/src/MenuItem.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import classnames from 'classnames'; import BMenuItem from 'react-bootstrap/lib/MenuItem'; export default class MenuItem extends React.Component { render() { if (this.props.noHover) { let props = { ...this.props, }; delete props.noHover; delete props.ev...
app/addons/replication/components/remoteexample.js
apache/couchdb-fauxton
// 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 applicable law or agreed to in writing, software // distributed un...
ajax/libs/victory/0.13.0/victory.min.js
kennynaoh/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Victory=t(require("react")):e.Victory=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;v...
examples/async-data/app.js
tmbtech/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link, Navigation } from 'react-router'; import { loadContacts, loadContact, createContact } from './utils'; import AsyncProps from 'react-router/lib/experimental/AsyncProps'; var Spinner = React.createClass({ r...
node_modules/react-icons/fa/adn.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaAdn = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20.1 13.9l4.5 6.8h-8.9z m8.2 11.8h2.1l-10.3-15.4-10.2 15.4h2.1l2.3-3.6h11.7z m9-5.7q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2....
node_modules/react-router/lib/PropTypes.js
mmoonn/Spitter
'use strict'; var assign = require('react/lib/Object.assign'); var ReactPropTypes = require('react').PropTypes; var Route = require('./Route'); var PropTypes = assign({}, ReactPropTypes, { /** * Indicates that a prop should be falsy. */ falsy: function falsy(props, propName, componentName) { if (props[...
src/components/app/test/index.js
unindented/whitelist-chrome
import React from 'react' import {createMemoryHistory} from 'react-router' import App from 'components/app' import {render} from 'utils/test' describe('App', function () { beforeEach(function () { const history = createMemoryHistory('/blocked.html?details=eyJocmVmIjoiaHR0cHM6Ly91bmluZGVudGVkLm9yZy8iLCJob3N0bmFtZ...
src/components/Author.js
Khaledgarbaya/chocolate-free-website
import React from 'react' const Author = ({author})=> { return ( <div className="flex flex-wrap justify-center items-center font-paragraph mt-6 border-t p-2"> <div className="w-full sm:w-1/4 text-center"> { author.avatar && author.avatar.resolutions.src && <img ...
src/components/TotalAlbums/index.js
slwen/lastfm-app
'use strict'; require("./style.scss"); import React from 'react'; import numeral from 'numeral'; export default React.createClass({ displayName: 'TotalAlbums', propTypes: { albumsCount: React.PropTypes.string.isRequired, topAlbums: React.PropTypes.array.isRequired }, renderFavs() { return this.p...
docs/src/pages/demos/tabs/ScrollableTabsButtonPrevent.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Tabs, { Tab } from 'material-ui/Tabs'; import PhoneIcon from '@material-ui/icons/Phone'; import FavoriteIcon from '@material-ui/icons/Favorite'; import PersonPi...
pootle/static/js/auth/components/SignInPanel.js
dwaynebailey/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import { PureRenderMixin } from...
ajax/libs/rxjs/2.4.6/rx.all.js
dakshshah96/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 }; ...
src/components/books/preview/BookPreviewBody.js
great-design-and-systems/cataloguing-app
import { FormGroup, Img, Loading, StarRating } from '../../common/'; import { LABEL_AUTHOR, LABEL_ISBN_10, LABEL_ISBN_13, LABEL_NA, LABEL_NUMBER_OF_PAGES, LABEL_PUBLISHED_DATE, LABEL_PUBLISHER, LABEL_SUB_TITLE, LABEL_SUMMARY, LABEL_TITLE } from '../../../labels/'; import { Book ...
site/components/Cover.js
colbyr/react-dnd
import React from 'react'; import './Cover.less'; export default class Cover { render() { return ( <div className="Cover"> <div className="Cover-header"> <p className="Cover-description"> Drag and Drop for React </p> </div> </div> ); } }
app/component/reader/TwitterContentReader.js
mrFlick72/mrFlick72.github.io
import React from 'react'; import "../../asset/css/components.css" import LoadingPagePlaceholder from "../layout/LoadingPagePlaceholder"; const EMPTY_TWEET = () => { return <div className="col-12 col-sm-12 col-md-12 col-lg-4 col-xl-4"> <LoadingPagePlaceholder/> </div> } export default ({tweets, avatar...
test/ButtonInputSpec.js
brynjagr/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () => { it('renders an input button element with type=button', function () { const instance = ReactTestUtils.renderIntoDocu...
src/helpers/connectData.js
jairoandre/lance-web-hot
import React, { Component } from 'react'; import hoistStatics from 'hoist-non-react-statics'; /* Note: When this decorator is used, it MUST be the first (outermost) decorator. Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods. */ export default function connectData(fetchData, fe...
src/Parser/HolyPaladin/Modules/Items/Tier19_4set.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import HIT_TYPES from 'Parser/Core/HIT_TYPES'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; con...
pootle/static/js/admin/components/Search.js
ta2-1/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import cx from 'classnames'; import React from 'react'; i...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
hgezim/react-router
import React from 'react'; import { Link } from 'react-router'; export default class AnnouncementsSidebar extends React.Component { render () { var announcements = COURSES[this.props.params.courseId].announcements; return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcemen...
docs-ui/components/hovercard.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import {text, select} from '@storybook/addon-knobs'; import Hovercard from 'app/components/hovercard'; const positionOptions = { top: 'top', bottom: 'bottom', left: 'left', right: 'right', }; const showOptions = { true: true, fals...
src/components/Layout/Footer/index.js
chejen/GoodJobShare
import React from 'react'; import { Link } from 'react-router'; import cn from 'classnames'; import i from 'common/icons'; import { Wrapper, P } from 'common/base'; import LinkItem from './LinkItem'; import styles from './Footer.module.css'; const link1 = [ { to: '/time-and-salary', text: '薪資工時', anchor: true }, {...
src/containers/NotFound/NotFound.js
Dengo/bacon-bacon
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
docs/src/app/components/pages/components/Stepper/Page.js
hwo411/material-ui
import React from 'react'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import stepperReadmeText from './README.md'; import advancedReadmeText from './Advanced.md'; import HorizontalLinearStepper...
snippets/camunda-tasklist-examples/camunda-react-app/src/components/BPMNDiagram.js
camunda/camunda-consulting
import React from 'react'; import Viewer from 'bpmn-js/lib/NavigatedViewer'; export default class BPMNDiagram extends React.Component { constructor(props) { super(props); this.viewer = new Viewer({ canvas: { deferUpdate: false } }); this.state = { loaded: false }; }...
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.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...
src/components/Workout/View/Setup.js
diegocasmo/workouter
import React from 'react' import {UNITS} from '../../../api/unit' export const WorkoutSetup = ({ name, rounds, restTimePerRound, restTimePerExercise }) => ( <div className='wkr-workout-setup'> <p className='wkr-workout-setup__title h1'>Setup</p> <ul className='pl-4 list-unstyled'> <li className...
src/components/video_list.js
Bentopi/React_Youtube_UI
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) => { const videoItems = props.videos.map((video) => { return ( <VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} /> ); }); return ( <ul cl...
build/svg-icons/image/details.js
pancho111203/material-ui
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
frontend/src/stateless/head-views.js
actuallymentor/react-node-boilerplate
// Import react import React from 'react' // Define a menu rendering component that takes props export const PanelView = ( { children, visible, toggle, name, logo, action } ) => { // Fill the <nav><ul> element with the above <li>'s return ( <span> <button id = "menu-btn" onClick = { toggle } className...
node_modules/require/node_modules/uglify-js/tmp/app.js
branchgabriel/bitcoin-donations
/* Modernizr 2.0.6 (Custom Build) | MIT & BSD * Build: http://www.modernizr.com/download/#-iepp */ ;window.Modernizr=function(a,b,c){function w(a,b){return!!~(""+a).indexOf(b)}function v(a,b){return typeof a===b}function u(a,b){return t(prefixes.join(a+";")+(b||""))}function t(a){j.cssText=a}var d="2.0.6",e={},f=b.do...
ajax/libs/clappr/0.0.14/clappr.js
mikaelbr/cdnjs
require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
packages/veritone-widgets/src/widgets/FolderSelectionDialog/Folder.js
veritone/veritone-sdk
import React from 'react'; import { connect } from 'react-redux'; import cx from 'classnames'; import { shape, number, string, func, any } from 'prop-types'; import FolderIcon from '@material-ui/icons/Folder'; import { withStyles } from '@material-ui/styles'; import * as folderSelectionModule from '../../redux/modules...
src/client/components/meeting/meeting-document-viewer.js
pgryko/meeting
/* * Copyright (C) 2015-2016 InSeven Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program...
src/components/Dashboard/DynamicLink.js
GovWizely/steel-search
import { map, omit, values, isEmpty } from '../../utils/lodash'; import React from 'react'; import PropTypes from 'prop-types'; const TRADE_FLOWS = { 'IMP': 'Imports', 'EXP': 'Exports' }; const URLS = { 'EXP': { 'China': 'https://www.trade.gov/steel/countries/pdfs/exports-china.pdf', 'Japan': 'https://www.tra...
app/containers/JobHunt/index.js
DhammaLuke/affirmation
/* * * JobHunt * */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import selectJobHunt from './selectors'; export class JobHunt extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> ...
src/components/Layout/Header.js
wolfpilot/Traveller
import _ from 'lodash'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import history from '../../routes/history'; import SearchBar from '../SearchBar'; class Header extends Component { static contextTypes = { router: PropTypes.object,...
projects/lost-text-mining/viz2/src/sections/LinesPerChar/index.js
ebemunk/blog
import { compose } from 'redux' import { connect } from 'react-redux' import { hot } from 'react-hot-loader' import fireActions from 'hoc/fireActions' import { getLinesPerChar, linesPerCharBySelection } from 'store/linesPerChar' import LinesPerChar from './LinesPerChar' export default compose( hot(module), connec...
starter-resources/electron-react-boilerplate/test/components/Counter.spec.js
JumpingRock/react-sandbox-site
/* eslint-disable no-unused-expressions */ import { expect } from 'chai'; import { spy } from 'sinon'; import React from 'react'; import { shallow } from 'enzyme'; import Counter from '../../app/components/Counter'; function setup() { const actions = { increment: spy(), incrementIfOdd: spy(), incrementA...
client/components/media_list.js
jaischeema/panorma
import React from 'react'; export default class MediaList extends React.Component { render() { return ( <div className="row"> {this.props.media.map((media) => { return this.renderMedia(media); })} </div> ); } renderMedia(media) { return ( <div key={`media-${media.id}`} clas...
examples/react-hot-loader-example/index.js
DenisIzmaylov/pinkbox-react
import React from 'react' import App from './components/App' const root = document.getElementById('root') React.render(<App />, root)
ajax/libs/angular-google-maps/1.0.6/angular-google-maps.js
neveldo/cdnjs
/* Author Nick McCready Intersection of Objects if the arrays have something in common each intersecting object will be returned in an new array. */ (function() { _.intersectionObjects = function(array1, array2, comparison) { var res, _this = this; if (comparison == null) { compariso...
examples/huge-apps/routes/Course/components/Course.js
whouses/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
vendor/github.com/openshift/origin/assets/app/scripts/controllers/attachPVC.js
tmckayus/oshinko-rest
'use strict'; /** * @ngdoc function * @name openshiftConsole.controller:CreateRouteController * @description * # CreateRouteController * Controller of the openshiftConsole */ angular.module('openshiftConsole') .controller('AttachPVCController', function ($filter, $routeParams, $scope, $window, StorageService, ...
app/containers/NotFoundPage/index.js
kevinnorris/bookTrading
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/renderers/dom/client/__tests__/ReactDOMIDOperations-test.js
temnoregg/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
__tests__/components/Quote-test.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Quote from '../../src/js/components/Quote'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Quote', () => { i...
src/component/tile.spec.js
sjcrank/viz-data-generator
import test from 'ava'; import { shallow } from 'enzyme'; import React from 'react'; import { StyleSheetTestUtils } from 'aphrodite'; import Tile from './tile'; test.beforeEach('disable style injection', () => { StyleSheetTestUtils.suppressStyleInjection(); }); test.afterEach('resume style injection', () => { ...
ajax/libs/react/0.13.2/JSXTransformer.js
WilliamRen/cdnjs
/** * JSXTransformer v0.13.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...
src/svg-icons/content/weekend.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentWeekend = (props) => ( <SvgIcon {...props}> <path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51...
packages/expo-dev-menu/vendored/react-native-gesture-handler/src/touchables/TouchableHighlight.js
exponentjs/exponent
import React, { Component } from 'react'; import GenericTouchable, { TOUCHABLE_STATE } from './GenericTouchable'; import { StyleSheet, View } from 'react-native'; import PropTypes from 'prop-types'; /** * TouchableHighlight follows RN's implementation */ export default class TouchableHighlight extends Component { ...
packages/material-ui-icons/src/DeveloperBoardRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M22 8c0-.55-.45-1-1-1h-1V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h1c.55 0 1-.45 1-1s-.45-1-1-1h-1v-2h1c.55 0 1-.45 1-1s-.45-1-1-1h-1V9h1c.55 0 1-.45 1-1...
src/js/components/Map.react.js
jonkr/windlogger-frontend
import React from 'react'; import WindIcons from './../utils/WindIcons'; import history from './../utils/hashHistory'; import mapState from './../utils/mapState'; import PubSub from 'pubsub-js'; import {pubSubTopics} from '../constants/consts'; const TAG = 'Map:'; const MARKER_STROKE_WEIGHT = 1.75; let _subscriberT...
frontend/src/Calendar/Legend/LegendItem.js
lidarr/Lidarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import titleCase from 'Utilities/String/titleCase'; import styles from './LegendItem.css'; function LegendItem(props) { const { name, status, tooltip, colorImpairedMode } = props; return ( <di...
src/svg-icons/action/turned-in.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionTurnedIn = pure(ActionTurnedIn); ActionTurnedIn.displayName = 'Ac...
app/components/Footer.js
jhen0409/react-chrome-extension-boilerplate
import React, { PropTypes, Component } from 'react'; import classnames from 'classnames'; import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE } from '../constants/TodoFilters'; import style from './Footer.css'; const FILTERS = [SHOW_ALL, SHOW_ACTIVE, SHOW_COMPLETED]; const FILTER_TITLES = { [SHOW_ALL]: 'All', [SHOW_ACT...
project/react-ant/src/containers/AssetProdMgmt/Add/index.js
FFF-team/generator-earth
import React from 'react' import moment from 'moment' import { DatePicker, Button, Form, Input, Col } from 'antd' import BaseContainer from 'ROOT_SOURCE/base/BaseContainer' import request from 'ROOT_SOURCE/utils/request' import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter' import Rules from 'ROOT_SOURCE/utils...
src/packages/@ncigdc/uikit/Table/Tr.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import styled from '@ncigdc/theme/styled'; const TableRow = styled.tr({ backgroundColor: ({ striped, theme }) => striped ? theme.tableStripe : '#fff', }); const Tr = ({ style = {}, children, index = 1, ...props }) => ( <TableRow style={style} striped={index % 2 === 0} {...p...
ajax/libs/yui/3.10.0/datatable-body/datatable-body.js
akiran/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...
frontend/src/System/Events/LogsTableRow.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableRowButton from 'Components/Table/TableRo...
src/components/Header.js
KENJU/LeanCanvasOnline
/** * Header.js */ import React from 'react'; import HeaderButton from '../containers/HeaderButton' const Header = () => ( <header> <h1>Lean Canvas Online</h1> <HeaderButton/> </header> ); export default Header;
docs/app/Examples/elements/Rail/Types/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RailTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Rail' description='A rail ...
static/jquery-1.10.1.js
bobbynewmark/microframeworkexample
/*! * jQuery JavaScript Library v1.10.1 * 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-05-30T21:49Z */ (function( window, undefined ) { // ...
src/svg-icons/action/motorcycle.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionMotorcycle = (props) => ( <SvgIcon {...props}> <path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2...
src/index.js
velocitron/react-stocks
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './components/App/App'; ReactDOM.render(<App/>, document.getElementById('root'));
js/src/index.js
outeredge/edge-magento-module-menu
import AppContainer from './containers/AppContainer'; import React from 'react'; import ReactDOM from 'react-dom'; const $root = document.getElementById('root'); ReactDOM.render(<AppContainer menu_id={$root.getAttribute('data-menu-id')} token={$root.getAttribute('data-token')} />, $root);
src/components/Radial.react.js
virajkanwade/kitematic
import React from 'react'; import classNames from 'classnames'; var Radial = React.createClass({ render: function () { var percentage; if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) { percentage = ( <div className="percentage"><...
app/javascript/mastodon/features/video/index.js
ambition-vietnam/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { throttle } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/util/fullscreen'; import { displaySensi...
youtube-searcher/src/js/components/video_list_item.js
rsancle/udemy-react
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick = {() => onVideoSelect(video)} className = "list-group-item"> <div className = "video-list media" > <div className="media-left"> ...
client/src/lib/dependency-injection/tests/inject-test.js
silverstripe/silverstripe-admin
/* global jest, jasmine, describe, beforeEach, it, pit, expect, process */ import React, { Component } from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import inject from '../inject'; import injectorContext from '../injectorContext'; describe('inject()', () => { const emptyComponent = () => <div>Emp...
src/svg-icons/image/style.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStyle = (props) => ( <SvgIcon {...props}> <path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1....
src/components/Toolbar.js
dominic-blain/viper-visualizer
import React from 'react'; import {connect} from 'react-redux'; import ActionCreators from '../actions/ActionCreators'; import ToolbarTabButton from './ToolbarTabButton'; import ToolbarTabContent from './ToolbarTabContent'; import ToolbarTabList from './ToolbarTabList'; import ToolbarListButton from './ToolbarListButto...
consoles/my-joy-instances/src/containers/instances/__tests__/tags.ui.js
yldio/joyent-portal
import React from 'react'; import { toMatchImageSnapshot } from 'jest-image-snapshot'; import screenshot from 'react-screenshot-renderer'; import { Tags } from '../tags'; import Theme from '@mocks/theme'; expect.extend({ toMatchImageSnapshot }); it('<Tags />', async () => { expect( await screenshot( <T...
ajax/libs/yui/3.8.0/datatable-core/datatable-core-debug.js
potomak/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
client/modules/core/components/addcontent.js
Entropy03/jianwei
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; import AddTabs from './addtabs'; /** * Dialog content can be scrollable. ...
src/components/Developer/DeveloperList.js
iamraphson/mernmap
/** * Created by Raphson on 10/14/16. */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Link } from 'react-router'; export default class DeveloperList extends Component { constructor() { super(); } render(){ return ( <div className="col-l...
scripts/route-file-content.js
MozillaItalia/donate.mozilla.org
import React from 'react'; import Router from 'react-router'; import routes from '../components/routes.jsx'; import englishStrings from '../locales/en-US.json'; import currencies from '../data/currencies.js'; import url from 'url'; module.exports = function(outputPath, callback) { Router.run(routes, outputPath, func...
test/FadeSpec.js
asiniy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Fade from '../src/Fade'; describe('Fade', function () { let Component, instance; beforeEach(function(){ Component = React.createClass({ render(){ let { children, ...props } = this.props; return ( ...
frontend/src/components/Comments/ModalForm.js
romerorocha/readable
import React from 'react'; import { Form, Modal, Button } from 'semantic-ui-react'; import { EMPTY } from '../../util/Constants'; const ModalForm = ({ id, author, body, changeAction, submitAction }) => { return [ <Modal.Header key="0">Enter your comment:</Modal.Header>, <Modal.Content key="1"> <Form on...
ajax/libs/inferno-mobx/3.0.1/inferno-mobx.js
froala/cdnjs
/*! * Inferno.Mobx v3.0.1 * (c) 2017 Dominic Gannaway' * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno-component'), require('inferno-create-class'), require('hoist-non-inferno-statics'), require('i...
src/Collapse.js
chilts/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import domUtils from './utils/domUtils'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import createChainedFunction from './utils/createChainedFunction'; let capitali...
information/blendle-frontend-react-source/app/modules/search/components/QueryForm.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import analytics from 'instances/analytics'; import i18n, { translate, translateElement } from 'instances/i18n'; import QueryDateField from './QueryDateField'; import QueryLocaleField from './QueryLocaleField'; import AddAlertContainer from '../AddAlertCont...
ajax/libs/react-native-web/0.15.3/cjs/modules/useLayoutEffect/index.min.js
cdnjs/cdnjs
"use strict";exports.__esModule=!0,exports.default=void 0;var _ExecutionEnvironment=require("fbjs/lib/ExecutionEnvironment"),_react=require("react"),useLayoutEffectImpl=_ExecutionEnvironment.canUseDOM?_react.useLayoutEffect:_react.useEffect,_default=useLayoutEffectImpl;exports.default=useLayoutEffectImpl,module.exports...
recipe-server/client/control/tests/components/test_PreferenceExperimentFields.js
Osmose/normandy
/* eslint-disable react/prop-types */ import React from 'react'; import { shallow } from 'enzyme'; import { AddBranchButton, BranchFields, PreferenceBranches, PreferenceExperimentFields, RemoveBranchButton, } from 'control/components/action_fields/PreferenceExperimentFields'; describe('<PreferenceExperiment...