target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
test/NavbarSpec.js
aabenoja/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Navbar from '../src/Navbar'; import Nav from '../src/Nav'; describe('Nav', function () { it('Should create nav element', function () { let instance = ReactTestUtils.renderIntoDocument( <Navbar /> ); let nav = ...
node_modules/rc-slider/lib/common/Steps.js
maty21/statistisc
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _classnames = req...
docs/app/Examples/views/Feed/Types/FeedExampleBasic.js
ben174/Semantic-UI-React
import React from 'react' import { Feed, Icon } from 'semantic-ui-react' const FeedExampleBasic = () => ( <Feed> <Feed.Event> <Feed.Label> <img src='http://semantic-ui.com/images/avatar/small/elliot.jpg' /> </Feed.Label> <Feed.Content> <Feed.Summary> <Feed.User>Elliot ...
ajax/libs/mobx-react/3.0.4/index.js
brix/cdnjs
(function() { function mrFactory(mobx, React, ReactDOM) { if (!mobx) throw new Error("mobx-react requires the MobX package") if (!React) throw new Error("mobx-react requires React to be available"); var isDevtoolsEnabled = false; // WeakMap<Node, Object>; ...
src/components/Editable.js
rsimmons/immersion-player
import React, { PureComponent } from 'react'; import './Editable.css'; export default class Editable extends PureComponent { constructor(props) { super(props); this.state = { editing: false, }; } componentDidUpdate() { if (this.inputElem) { this.inputElem.focus(); this.inputEl...
node_modules/react-router/es6/RouteContext.js
Starnes81/ReduxBlogTut
import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * 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 trans...
__tests__/index.android.js
HossamSamir/instagramClone
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
Tests/Components/RoundedButtonTest.js
friskipr/Ignite_MyApp
import 'react-native' import React from 'react' import RoundedButton from '../../App/Components/RoundedButton' import { shallow } from 'enzyme' import renderer from 'react-test-renderer' test('RoundedButton component renders correctly', () => { const tree = renderer.create(<RoundedButton onPress={() => {}} text='how...
ajax/libs/react-router/2.0.0-rc6/ReactRouter.js
CyrusSUEN/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReactRouter"] = fac...
App/Components/DayToggle.js
infinitered/ChainReactApp
import React from 'react' import { View, Text, TouchableOpacity } from 'react-native' import LinearGradient from 'react-native-linear-gradient' import styles from './Styles/DayToggleStyle' const DayToggle = props => { const { activeDay, onPressIn } = props const dayStyle = (day) => activeDay === day ? styles.a...
src/modules/pages/components/AboutPage/AboutPage.js
cltk/cltk_frontend
import React from 'react'; import PageCover from '../PageCover'; import BackgroundImage from '../../../../components/common/cover/BackgroundImage'; import './AboutPage.css'; const AboutPage = props => { return ( <div > <PageCover title="About the CLTK Archive" backgroundImage={ <BackgroundImage...
src/svg-icons/communication/stay-primary-portrait.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> );...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/mic.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvMic = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"...
frontend/src/components/eois/modals/compareApplications/compareApplicationsModal.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ControlledModal from '../../../common/modals/controlledModal'; import CompareApplicationsContentContainer from './compareApplicationsContentContainer'; const messages = { title: 'Compare concept notes', }; class CompareApplication...
concrete/js/build/vendor/backbone/backbone.js
ryanneilstroud/xsericon
// Backbone.js 1.1.2 // (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(root, factory) { // Set up Backbone appropriately for ...
site/themes/docsy/assets/vendor/Font-Awesome/svg-with-js/js/fontawesome-all.min.js
kopia/kopia
/*! * Font Awesome Free 5.1.1 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ !function() { "use strict"; var c = {}; try { "undefined" != typeof window && (c = window); } catch (c) {} var l...
src/components/App.js
OlegVitiuk/Majsternia
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
ajax/libs/rxjs/2.4.10/rx.all.compat.js
yogeshsaroya/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 }; ...
ajax/libs/webshim/1.15.1/dev/shims/es6.js
samthor/cdnjs
// ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://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 isCallableW...
web/src/layout/leftpanel/infotext.js
corradio/electricitymap
/* eslint-disable jsx-a11y/click-events-have-key-events */ /* eslint-disable jsx-a11y/anchor-is-valid */ /* eslint-disable jsx-a11y/anchor-has-content */ /* eslint-disable react/jsx-no-target-blank */ // TODO: re-enable rules import React from 'react'; import { Link, useLocation } from 'react-router-dom'; import style...
imports/ui/components/categories/all-categories-list-items.js
irvinlim/free4all
import React from 'react'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; import FontIcon from 'material-ui/FontIcon'; export const AllCategoriesListItems = ({ parentCategories, categories, clickHandler }...
client/src/components/pages/admin/AdminAlertHistoryPage.js
15thnight/15thnight
import React from 'react'; import { connect } from 'react-redux'; import { getAlerts } from 'actions'; import { Alerts } from 'alert'; class AdminAlertHistoryPage extends React.Component { componentWillMount() { this.props.getAlerts(); } render() { let { alerts } = this.props; re...
app/static/src/performer/RepairNotesList.js
vsilent/Vision
import React from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Accordion from 'react-bootstrap/lib/Accordion'; import {Link} from 'react-router'; import Table from 'react-bootstrap/lib/Table'; import {NotificationContainer, NotificationManager} from 'react-notifications'; import {DATETIME_FORMAT} from...
actor-apps/app-web/src/app/components/JoinGroup.react.js
ganquan0910/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
ajax/libs/forerunnerdb/1.3.324/fdb-core.js
x112358/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...
packages/material-ui-icons/src/GroupWorkSharp.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 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5...
ajax/libs/yasgui/0.0.9/yasgui.bundled.min.js
ripple0328/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
app/javascript/mastodon/features/list_editor/index.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
test/integration/image-component/default/pages/flex.js
JeromeFitz/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Hello World</p> <Image id="basic-image" src="/test.jpg" width={400} height={400}></Image> <p id="stubtext">This is the index page</p> <style jsx>{` div { display: flex; ...
ajax/libs/mediaelement/2.1.4/jquery.js
stefanneculai/cdnjs
/*! * jQuery JavaScript Library v1.5.1rc1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL License...
node_modules/react-icons/fa/meanpath.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaMeanpath = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.3 18.8v2.5q0 0.6-0.3 0.9t-0.9 0.3h-4.5q-0.5 0-0.8-0.3t-0.3-0.9v-2.5q0-0.5 0.3-0.9t0.8-0.3h4.5q0.6 0 0.9 0.3t0.3 0.9z m-11 5.1v-5.5q0-1.2-0.7-2t-1.9-0.7h-3q-1.5 0...
src/svg-icons/image/panorama-wide-angle.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaWideAngle = (props) => ( <SvgIcon {...props}> <path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12...
frontend/node_modules/react-dropzone/src/index.js
goodman001/20170927express
/* eslint prefer-template: 0 */ import React from 'react' import PropTypes from 'prop-types' import accepts from 'attr-accept' import getDataTransferItems from './getDataTransferItems' const supportMultiple = typeof document !== 'undefined' && document && document.createElement ? 'multiple' in document.createElemen...
src/routes/Projects/components/ProjectTile/ProjectTile.js
Venryx/ThesisMap
import React, { PropTypes } from 'react' import Paper from 'material-ui/Paper' import { isObject } from 'lodash' import classes from './ProjectTile.scss' export const ProjectTile = ({ project, onSelect }) => ( <Paper key={`Project-${project.name}`} className={classes['container']}> <div className={classes['top'...
src/parser/priest/holy/modules/talents/90/Halo.js
fyruna/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import ItemDamageDone from 'interface/others/ItemDamageDo...
ajax/libs/yui/3.10.2/event-custom-base/event-custom-base.js
dylannnn/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
app/components/GroupBlock/index.js
prudhvisays/newsb
import React from 'react'; import TopGroup from '../TopGroup'; import { DateRangePicker, SingleDatePicker, DayPickerRangeController } from 'react-dates'; import moment from "moment"; import DateRange from '../DateRange'; var SelectedStartDate = moment('2017-05-05'); var SelectedEndDate = moment('2017-05-09'); export d...
src/svg-icons/av/fast-forward.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFastForward = (props) => ( <SvgIcon {...props}> <path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/> </SvgIcon> ); AvFastForward = pure(AvFastForward); AvFastForward.displayName = 'AvFastForward'; AvFastForw...
src/app/containers/SelectCity.js
mkkhedawat/weather-forecast-react
import React from 'react'; import { Link } from 'react-router-dom'; import SelectOptions from '../components/SelectOptions'; import SuccessButton from '../components/SuccessButton'; import Cities from '../services/Cities'; /* Page Container fto Select City */ let cities; export default class SelectCity extends Re...
tests/components/component-playground/default/events/handlers.js
pekala/react-component-playground
var FIXTURE = 'default'; describe(`ComponentPlayground (${FIXTURE}) Events Handlers`, function() { var ComponentTree = require('react-component-tree'), render = require('tests/lib/render-component.js'), fixture = require(`fixtures/component-playground/${FIXTURE}.js`); var component, $component, ...
node_modules/_rc-time-picker@2.4.1@rc-time-picker/es/Header.js
ligangwolai/blog
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
ajax/libs/firebase/9.0.0-2021719172025/firebase-database.js
cdnjs/cdnjs
/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ...
src/svg-icons/toggle/star-half.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarHalf = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15....
packages/icons/src/md/av/HighQuality.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdHighQuality(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38 8c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V12c0-2.21 1.79-4 4-4h28zM22 30V18h-3v5h-4v-5h-3v12h3v-4h4v4h3zm14-2v-8a2 2 0 0...
src-rx/src/components/Instances/LinksDialog.js
ioBroker/ioBroker.admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import DialogTitle from '@materia...
ajax/libs/clappr/0.0.86/clappr.js
jimmybyrum/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);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)...
client/src/components/dashboard/Profile/Preferences/Career.js
FCC-Alumni/alumni-network
import { connectScreenSize } from 'react-screen-size'; import { Dropdown } from 'semantic-ui-react'; import FormField from './common/FormField'; import { Container as InnerContainer } from './common/RepoContainer'; import { isEqual } from 'lodash'; import { mapScreenSizeToProps } from '../../../Navbar'; import MessageB...
ajax/libs/webshim/1.14.4-RC4/dev/shims/es6.js
jasonpang/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...
node_modules/enzyme/src/version.js
ASIX-ALS/asix-final-project-frontend
import React from 'react'; export const VERSION = React.version; const [major, minor] = VERSION.split('.'); export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = major === '15'; export const REACT155 = REACT15 && minor >= 5;
node_modules/material-ui/svg-icons/maps/local-hospital.js
SerendpityZOEY/Fixr-RelevantCodeSearch
'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...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
gaolichuang/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classnames from 'classnames'; import ActorClient from 'utils/ActorClient'; import confirm from 'utils/con...
lib/yuilib/3.15.0/datatable-core/datatable-core.js
timpricecatalyst/moodle
/* YUI 3.15.0 (build 834026e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @sinc...
ajax/libs/x-editable/1.4.4/bootstrap-editable/js/bootstrap-editable.js
warpech/cdnjs
/*! X-editable - v1.4.4 * 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 for...
src/parser/deathknight/frost/modules/features/checklist/Module.js
sMteX/WoWAnalyzer
import React from 'react'; import BaseModule from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/PreparationRul...
screen/index.js
c0ncept/swipe3d-samples
import 'index.html' import 'style.sass' import React from 'react' import ReactDOM from 'react-dom' import Application from 'components/Application' ReactDOM.render( <Application />, document.getElementById('application') )
src/renderers/dom/shared/ReactDOMComponent.js
jeromjoy/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
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/Gallery.js
colinmorris/SongSim
import React, { Component } from 'react'; import { Link } from 'react-router'; import Lightbox from 'react-image-lightbox'; import './Gallery.css'; import { Canned, GROUPED_CANS } from './canned.js'; import CANNED_SONGS, { ORDERED_CATEGORIES } from './canned-data.js'; const GALLERY_FILE_PATH = '/img/gallery/'; cons...
components/NavigationBack/index.js
samuelngs/px
import React, { Component } from 'react'; import { Image, StyleSheet } from 'react-native'; import Touchable from 'px/components/Touchable'; import source from 'px/assets/icons/navigation_back.png'; export default class NavigationBack extends Component { static defaultProps = { navigation: null, } static...
webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js
johnpmitsch/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Grid, Col, Row, Tabs, Tab, Form, FormGroup, FormControl, ControlLabel } from 'react-bootstrap'; import { Button, Spinner, OverlayTrigger, Tooltip, Icon } from 'patternfly-react'; import ForemanModal from 'foremanReact/components/Fore...
specs/Modal.spec.js
dminuoso/react-modal
/* eslint-env mocha */ // The following eslint overrides should be removed when refactoring can occur /* eslint react/no-find-dom-node: "warn", react/no-render-return-value: "warn" */ import TestUtils from 'react-addons-test-utils'; import React from 'react'; import sinon from 'sinon'; import expect from 'e...
ui/src/main/js/components/__tests__/UpdateStatus-test.js
medallia/aurora
import React from 'react'; import { shallow } from 'enzyme'; import UpdateStatus from '../UpdateStatus'; import UpdateTime from '../UpdateTime'; import { builderWithStatus } from 'test-utils/UpdateBuilders'; describe('UpdateStatus', () => { it('Should show UpdateTime when update terminal', () => { const update...
src/js/layout/App.js
cleberar38/esri-flux-react
import {MainPanel} from 'js/layout/MainPanel'; import {Header} from 'js/layout/Header'; import {appConfig} from 'js/config'; import React from 'react'; export class App extends React.Component { constructor (props) { super(props); } render () { return ( <div className='react-root'> <Heade...
app/containers/TodoApp/mutations/RemoveTodoMutation.js
codazen/react-relay-graphql-starter-kit
/* @flow */ /* eslint class-methods-use-this: "off" */ import Relay from 'react-relay'; export default class RemoveTodoMutation extends Relay.Mutation { static fragments = { user: () => Relay.QL` fragment on User { id } `, }; getMutation() { return Relay.QL`mutation{ removeTodo ...
src/components/language-card/index.js
hechoendrupal/drupalconsole.com
import React from "react" import './style.css'; import {Link} from "gatsby"; import _capitalize from "lodash/capitalize" import Image from "../../layout/image" const LanguageCard = ({ data }) => { return ( <div className="container"> <div className="row justify-content-center"> {data.map(item => { ...
frontend/test/app/components/ExperimentCardList-test.js
6a68/testpilot
import React from 'react'; import { assert, expect } from 'chai'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import ExperimentCardList from '../../../src/app/components/ExperimentCardList'; describe('app/components/ExperimentCardList', () => { let props, subject; beforeEach(() => { props = ...
libs/react/0.4.1/react.min.js
ewrfedf/baiducdnstatic
/** * React v0.4.1 * * Copyright 2013 Facebook, Inc. * * 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 applicabl...
src/renderers/shared/reconciler/__tests__/ReactMockedComponent-test.js
stevemao/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...
mxcube3/ui/containers/ErrorNotificationPanel.js
bolmsten/mxcube3
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import 'bootstrap-webpack!bootstrap-webpack/bootstrap.config.js'; import { Modal, Alert } from 'react-bootstrap'; import { showErrorPanel } from '../actions/general'; export class ErrorNotificationPanel extend...
docs/src/app/components/pages/components/FlatButton/Page.js
verdan/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import flatButtonReadmeText from './README'; import flatButtonExampleSimpleCode ...
assets/js/vendor/jquery.min.js
tkasparaitis/cadhtml
/*! 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...
packages/core/src/icons/components/Error.js
iCHEF/gypcrete
import React from 'react'; export default function SvgError(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32" {...props} > <path data-name="\u6955\u5186\u5F62 2 \u306E\u30B3\u30D4\u30FC 14" d="M24 24H8l-1...
modules/__tests__/Redirect-test.js
dmitrigrabov/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Redirect from '../Redirect' import Router from '../Router' import Route from '../Route' describe('A <Redirect>', function () { let node beforeEach(function () { node =...
UmbracoReactStarterKit/app/src/index.js
systempioneer/ReactUmbracoExample
// import React from 'react'; // import ReactDOM from 'react-dom'; // import App from './App'; import registerServiceWorker from './registerServiceWorker'; require('es6-promise').polyfill(); require('isomorphic-fetch'); var React = require("expose-loader?React!react"); var ReactDOM = require("expose-loader?ReactDOM!re...
src/OverlayTrigger.js
pivotal-cf/react-bootstrap
/*eslint-disable react/prop-types */ import React, { cloneElement } from 'react'; import createChainedFunction from './utils/createChainedFunction'; import createContextWrapper from './utils/createContextWrapper'; import Overlay from './Overlay'; import warning from 'react/lib/warning'; import pick from 'lodash/object...
src/routes/Grid/Grid.js
ku8ar/todo
import React, { PropTypes, Component } from 'react' import Grid from 'containers/Grid' import actions from 'actions/' import { connect } from 'react-redux' class GridView extends Component { static propTypes = { router: PropTypes.object, isLogged: PropTypes.bool } componentWillMount () { if (!this.pr...
app/javascript/mastodon/features/notifications/components/notification.js
robotstart/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import Avatar from '../../../components/avatar'; import { FormattedMessage } from 'react-intl';...
app/components/AddTask/Input/index.js
prudhvisays/season
import React from 'react'; export default class Input extends React.Component { //eslint-disable-line render() { const { Name, Holder, onChange } = this.props; return ( <div className="ink-flex vertical"> <div className="sub-title">{Name}</div> <div><input type="text" placeholder=...
node_modules/react-tools/src/core/__tests__/ReactIdentity-test.js
wongherlung/react-resizable-component
/** * 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...
react-components/src/library/components/featured-collections/featured-collections.js
concord-consortium/rigse
import React from 'react' import FeaturedCollectionsCard from './featured-collections-card' import css from './featured-collections.scss' export default class FeaturedCollections extends React.Component { shouldComponentUpdate () { return false } render () { const { featuredCollections } = this.props ...
src/common/components/Match.js
skallet/este
// @flow import type { State } from '../../common/types'; import React from 'react'; import { Match as ReactRouterMatch, Redirect } from 'react-router'; import { connect } from 'react-redux'; const haveAccess = (viewer, authorized) => authorized ? viewer : true; const Match = ({ authorized, component: Component, ...
app/components/Controls/DatePicker.js
danielzy95/oaa-chat
import React from 'react' import { observer } from 'mobx-react' import MDatePicker from 'material-ui/DatePicker' const DatePicker = ({ field, ...rest }) => ( <MDatePicker name={field.name} value={field.value || new Date()} hintText={field.placeholder} disabled={field.disabled} onChange={(e, date) ...
app/javascript/flavours/glitch/components/spoilers.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class Spoilers extends React.PureComponent { static propTypes = { spoilerText: PropTypes.string, children: PropTypes.node, }; state = { hidden: true, } handleSpoilerClick...
Console/app/src/App.js
RisenEsports/RisenEsports.github.io
// Components import React, { Component } from 'react'; import { Console } from './components/console/console.js'; class App extends Component { render() { return ( <div className="App"> <Console /> </div> ); } } export default App;
ajax/libs/material-ui/5.0.0-alpha.2/ClickAwayListener/ClickAwayListener.min.js
cdnjs/cdnjs
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),ReactDOM=_int...
spec/javascripts/jsx/assignments/GradeSummary/components/LayoutSpec.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
wts/tests/samples/MemoryGame/js/jquery-1.7.2.min.js
crosswalk-project/web-testing-service
/*! 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...
src/renderers/dom/client/__tests__/ReactDOMIDOperations-test.js
guoshencheng/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...
src/rsg-components/Markdown/Hr/Hr.spec.js
bluetidepro/react-styleguidist
import React from 'react'; import Hr from './index'; describe('Markdown Hr', () => { it('should render a horizontal rule', () => { const actual = render(<Hr />); expect(actual).toMatchSnapshot(); }); });
src/blocks/TopMenu/TopMenu.js
ducthuan-2712/To-Do
/* * @flow */ import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; /* Component */ import Dropdown from '../../components/Dropdown'; import Icon from '../../components/Icon'; /* Block */ import PodPopover from '../PodPopover'; import './TopMenu.css'; import logo from '../../img/...
ajax/libs/choices.js/2.5.1/choices.js
pvnr0082t/cdnjs
/*! choices.js v2.5.0 | (c) 2016 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], fact...
client/src/components/Menu.js
ziel5122/autograde
import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import React from 'react'; import github from '../images/GitHub-Mark-32px.png'; const anchorOrigin = { hor...
ajax/libs/material-ui/5.0.0-alpha.29/modern/ButtonGroup/ButtonGroup.js
cdnjs/cdnjs
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import { isFragment } from 'react-is'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { deepmerge } from '@...
client/src/containers/Dashboard.js
HoussamOtarid/fb-photos-downloader
import React, { Component } from 'react'; import { connect } from 'react-redux'; import AlbumsGrid from '../components/AlbumsGrid'; import FacebookConnect from '../components/FacebookConnect'; import { getAlbums, getPhotos } from '../actions/albumsActions'; class Dashboard extends Component { componentWillMount() {...
js/components/tab/basicTab.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Button, Icon, Tabs, Tab, Right, Left, Body } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; import myTheme from ...
examples/src/sliderRoute.js
HBM/md-components
import React from 'react' import {Slider} from 'md-components' export default class SliderRoute extends React.Component { state = { } onMove = (value) => { this.setState({value}) } onChange = (settledValue) => { this.setState({settledValue}) } render () { const min = -20 const max = 1...
src/DropdownMenu.js
bvasko/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
client/modules/App/__tests__/App.spec.js
Cathje/KLP
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { intlShape } from 'react-intl'; import { intl } from '../../../util/react-intl-test-helper'; import { toggleAddPost } from '../App...
utils/createDevToolsWindow.js
jermspeaks/Redux-Books
import React from 'react'; import { render } from 'react-dom'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; /* * Puts Redux DevTools into a separate window. * Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7#gistcomment-1560218. */ export default function createDevToo...
js/components/footer/badgeFooter.js
mrcflorian/classbook
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Footer, FooterTab, Text, Body, Left, Right, Icon } from 'native-base'; import { Actions } from 'react-native-router-flux'...