path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/containers/challenges/Listing/ListingContainer.js
OlivierVillequey/hackathon
/** * List of challenges for a type of challenge * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // Actions import * as ChallengeActions from '@redux/challenge...
app/javascript/mastodon/features/account_timeline/components/header.js
vahnj/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
docs/app/components/navigation/index.js
rubenmoya/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; const Navigation = props => ( <nav className={props.className}> <ul> <li><Link activeClassName={props.activeClassName} to="/install">Installation</Link></li> <li><Link activeClassName={props.activeClas...
web/public/js/jquery.js
selimcr/centroancianos
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
packages/react-error-overlay/src/containers/StackTrace.js
maletor/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import StackFrame from './StackFrame'; import Collapsible from '../components/Coll...
src/browser/auth/Email.js
xiankai/triple-triad-solver
/* @flow */ import type { State } from '../../common/types'; import React from 'react'; import buttonsMessages from '../../common/app/buttonsMessages'; import emailMessages from '../../common/auth/emailMessages'; import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; import { connect } from 'react-redux'...
src/routes/employee/index.js
uptive/react-starter-kit
import React from 'react'; import Employee from './Employee'; export default { path: '/employee/:id', async action(context) { return { title: 'Employee', component: <Employee id={ context.params.id } />, }; }, };
lib/yuilib/3.17.2/scrollview-base/scrollview-base.js
barrysspace/moodle
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview *...
docs/src/IntroductionPage.js
Cellule/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
examples/embeds/index.js
6174/slate
import { Editor } from 'slate-react' import { State } from 'slate' import React from 'react' import Video from './video' import initialState from './state.json' /** * Define a schema. * * @type {Object} */ const schema = { nodes: { video: Video } } /** * The images example. * * @type {Component} */...
lib/src/card.js
SerendpityZOEY/Fixr-RelevantCodeSearch
/** * Created by yue on 2/8/17. */ import React from 'react'; import {Card, CardActions, CardHeader, CardText, CardTitle, CardMedia} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import {BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts'; import {LineChart, Line}...
app/javascript/flavours/glitch/features/standalone/compose/index.js
vahnj/mastodon
import React from 'react'; import Composer from 'flavours/glitch/features/composer'; import NotificationsContainer from 'flavours/glitch/features/ui/containers/notifications_container'; import LoadingBarContainer from 'flavours/glitch/features/ui/containers/loading_bar_container'; import ModalContainer from 'flavours/g...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
IamJoseph/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(id = 0) { return [ { id: id + 1, name...
src/components/dashboard.js
seanagibson/reserver-space
import React from 'react'; import Navbar from './navbar'; import Sidebar from './sidebar'; const Dashboard = ({children, userAuthenticated, submitLogout}) => { return ( <div> <Navbar userAuthenticated={userAuthenticated} submitLogout={submitLogout}/> <div className='container'> <Sidebar /> ...
docs/server.js
jakubsikora/react-bootstrap
/* eslint no-console: 0 */ import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development =...
src/main/resources/static/src/components/home.js
Sukram21/FlixFace
import React, { Component } from 'react'; import image from '../images/home.jpg'; class Home extends Component { componentDidMount() { document.body.style.background = `url(${image}) no-repeat center center fixed`; document.getElementsByTagName("html")[0].style.backgroundSize = "cover"; } componentWillU...
src/components/EducationPanel/EducationPanel.js
IanChuckYin/IanChuckYin.github.io
import React, { Component } from 'react'; import styles from './EducationPanel.module.scss'; import SplitContainer from '../SplitContainer/SplitContainer'; import WithAnimation from '../../hoc/WithAnimation/WithAnimation'; import Aux from '../../hoc/Aux/Aux'; class EducationPanel extends Component { render() { ...
packages/@vega/review-tool/src/components/ManageReviewProcess/CreateReviewer.js
VegaPublish/vega-studio
import React from 'react' import {FormBuilderInput} from 'part:@lyra/form-builder' type Props = { onChange: any, value: any, type: any, focusPath: any, fieldName: any, onFocus: any, readOnly: boolean } export default class Field extends React.Component<Props> { handleChange = patchEvent => { const...
v2/src/pages/Contact/Contact.js
LordDashMe/LordDashMe.github.io
import React from 'react'; import NavigationBar from '../../components/NavigationBar/NavigationBar'; function Contact () { document.title = 'Contact'; return ( <div className="Contact"> <NavigationBar /> <div className="page-wrapper"> <h1>Contact</h1> </div> </div> ); } export...
src/svg-icons/content/markunread.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMarkunread = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); ContentMarkunread ...
index.js
knowbody/react-redux-boilerplate
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
src/components/Collapsible.js
ashmaroli/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classnames from 'classnames'; export default class Collapsible extends Component { constructor(props) { super(props); this.toggleCollapse = this.toggleCollapse.bind(this); this...
ajax/libs/react-native-web/0.0.0-b096cd2d/exports/Touchable/index.js
cdnjs/cdnjs
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @format */ 'use strict'; function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var targ...
ajax/libs/foundation/4.3.1/js/vendor/jquery.min.js
stevermeister/cdnjs
!function(a,b){function J(a){var b=a.length,c=u.type(a);return u.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||"function"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function L(a){var b=K[a]={};return u.each(a.match(w)||[],function(a,c){b[c]=!0}),b}function O(a,c,d,e){if(u.acceptData(a)){var f,g,h=u.expando,i=a....
generators/component/templates/ClassWithStyles.js
msaglietto/generator-picantes-react
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './styles.scss'; /** * Component - Description * * @extends Component */ class Component extends React.Component { /** * @type {string} */ static displayName = '<...
__tests__/index.android.js
Exper1ence/Community
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 /> ); });
react-dev/containers/about.js
WDTAnyMore/WDTAnyMore.github.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPage } from '../actions/index'; import { Page } from '../components/page'; class About extends Component { componentWillMount() { this.props.fetchPage('About', '/about/'); } render() { if (!this.props.p...
src/Menu/MenuList.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow } from '../test-utils'; import MenuList from './MenuList'; describe('<MenuList />', () => { let shallow; before(() => { shallow = createShallow({ dive: true }); }); describe('list node', () => { let wrapper; ...
src/svg-icons/image/crop-original.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropOriginal = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"...
packages/material-ui-icons/src/PermCameraMicSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M22 5h-5.17L15 3H9L7.17 5H2v16h9v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 5.91V21h9V5zm-8 8c0 1.1-.9 2-...
tp-4/recursos/boilerplate/src/pages/posts/PostsPage.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import {Formulario, Listado} from './reduxContainer'; class PostsPage extends React.Component { render() { return ( <div> <Switch> <Route exact path={`${this.props.match.path}/`} component={Listado} /> ...
ajax/libs/angular-ui-select/0.9.4/select.js
kentcdodds/cdnjs
/*! * ui-select * http://github.com/angular-ui/ui-select * Version: 0.9.4 - 2014-12-09T22:43:18.211Z * License: MIT */ (function () { "use strict"; var KEY = { TAB: 9, ENTER: 13, ESC: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, SHIFT: 16, CTRL: 17, ALT: ...
test/test_helper.js
oldirony/react-router-playground
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
documentation/src/pages/index.js
gothinkster/realworld
import React from 'react'; import clsx from 'clsx'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import styles from './index.module.css'; import useBaseUrl from '@docusaurus/useBaseUrl'; function HomepageHeader() { const...
src/containers/devtools.js
jstarry/ghost-map
import React from 'react' import {createDevTools} from 'redux-devtools' import DockMonitor from 'redux-devtools-dock-monitor' import LogMonitor from 'redux-devtools-log-monitor' import SliderMonitor from 'redux-slider-monitor' const DevTools = createDevTools( <DockMonitor defaultPosition='left' toggleVisibilityKey...
src/svg-icons/action/picture-in-picture.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPictureInPicture = (props) => ( <SvgIcon {...props}> <path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/> </SvgIcon> ...
theme/assets/global/plugins/owl-carousel/assets/js/jquery-1.9.1.min.js
premiumBH/bamaex
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
src/ui/common/SelectInput.js
jkk/shinkgs
// @flow import React, { PureComponent as Component } from "react"; import { Icon } from "./Icon"; type Props = {}; export class SelectInput extends Component<Props> { render() { return ( <div className="SelectInput"> <select {...this.props} /> <div className="SelectInput-icon"> ...
client/scripts/components/user/questionnaire-summary/question-summary/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
app/jsx/shared/components/UserSearchSelectorItem.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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...
pootle/static/js/admin/components/Project/ProjectController.js
r-o-b-b-i-e/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 Search from '../Search'...
src/Parser/Warlock/Shared/Modules/Talents/SoulHarvestTalent.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox from 'Main/StatisticBox'; ...
ajax/libs/forerunnerdb/1.3.662/fdb-all.js
redmunds/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...
docs/src/pages/components/steppers/DotsMobileStepper.js
allanalexandre/material-ui
import React from 'react'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import MobileStepper from '@material-ui/core/MobileStepper'; import Button from '@material-ui/core/Button'; import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft'; import KeyboardArrowRight from '@material-ui/icons...
example/src/index.js
yiransheng/redux-loop-statemachine
import React, { Component } from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import { Provider, connect } from 'react-redux'; import {loop, install} from 'redux-loop'; import {TransitionEff} from './lib'; import rootReducer from './reducer'; import {mouseUp,mouseDown,mouseMove} ...
js/jquery-1.12.4.min.js
neoyarik/Terebovlia-Streets
/*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu...
packages/app/app/components/TagView/TagHeader/index.js
nukeop/nuclear
import React from 'react'; import _ from 'lodash'; import styles from './styles.scss'; const TagHeader = ({ tag, topArtists }) => ( <div className={styles.tag_header_container}> <div style={{ backgroundImage: `url(${_.last(topArtists[0].image)['#text']})` }} className={styles.tag_heade...
src/components/DBTable/InnerCapacityProvince.js
lijinfengworm/ant-design-reactjs
import React from 'react'; import { Button, Table, Icon, Modal, message, notification, Affix, Card, Col, Row, Switch } from 'antd'; import Logger from '../../utils/Logger'; import Utils from '../../utils'; import ajax from '../../utils/ajax'; import moment from 'moment'; import ImageSlider from '../Imag...
src/routes/home/index.js
L2D22/RPS
/** * 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 Home from './Home'; impo...
src/svg-icons/action/assignment-return.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentReturn = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45...
src/app.js
carlosvillu/youtubeseq.com
import 'babel-polyfill' import 'isomorphic-fetch' import React from 'react' import reactDOM from 'react-dom' import {Router, browserHistory} from 'react-router' import routes from './routes' import Provider from './components/Provider' import YoutubeSeq from './domain' // import './index.scss' window.firebase.initi...
scripts/roulette/index.js
penkar/Redux-React-Games
import React from 'react'; import {render} from 'react-dom'; import App from './containers/App' import { Provider } from 'react-redux' import store from './store/configurestore' render( <Provider store={store}> <App /> </Provider>, document.getElementById('app'));
src/components/Header/Header.js
omelhoro/devshop-vtex
import React from 'react'; import {IndexLink, Link} from 'react-router'; import classes from './Header.css'; import {connect} from 'react-redux'; export const Header = props => ( <div className='text-center'> <h1 className={classes.heading}>Developers Shop</h1> <IndexLink to='/' className={classes.headerLin...
ajax/libs/vue/2.5.11/vue.runtime.js
ahocevar/cdnjs
/*! * Vue.js v2.5.11 * (c) 2014-2017 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Vue = factory()); }(this, (function (...
src/applications/ask-a-question/form/form.js
department-of-veterans-affairs/vets-website
// Example of an imported schema: import fullSchema from './0873-schema.json'; // In a real app this would be imported from `vets-json-schema`: // import fullSchema from 'vets-json-schema/dist/0873-schema.json'; import React from 'react'; import IntroductionPage from './introduction/IntroductionPage'; import Confirmat...
frontend/src/admin/branchManagement/branchView/__tests__/BranchDetails-test.js
rabblerouser/core
import React from 'react'; import { shallow } from 'enzyme'; import { BranchDetails } from '../BranchDetails'; describe('BranchDetails', () => { let rendered; const branch = { name: 'Branch name', contact: 'Contact details', notes: 'This branch is decent', }; beforeEach(() => { rendered = shal...
src/routes/Counter/components/Counter.js
Rodjers/gitletask-web
import React from 'react'; export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
templates/components/partials/nav.js
wi2/sails-generate-isoreact
"use strict"; import React from 'react' import {Link} from 'react-router' export class Nav { render() { return ( <div id="nav" className="nav"> <ul> <li> <Link to="home">Home</Link> </li> </ul> </div> ) } }
files/animatron/1.1.0/standard.js
dandv/jsdelivr
/* * Copyright (c) 2011-2014 by Animatron. * All rights are reserved. * * Animatron Player is licensed under the MIT License. * * v1.1.0, built at Tue Apr 15 2014 22:57:16 GMT+0200 (CEST) / 2014-04-15T20:57:16.554Z */ function Transform(){this.m=[1,0,0,1,0,0]}Transform.prototype.reset=function(){this.m=[1,0,0,...
test/ThumbnailSpec.js
simonliubo/react-ui
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Thumbnail from '../src/Thumbnail'; describe('Thumbnail', function () { it('Should have a thumbnail class and be an anchor', function () { let instance = ReactTestUtils.renderIntoDocument( <Thumbnail href="#" src="#" al...
src/pages/header/Header.js
Perspicere/PerspicereMagazine
// external import import React from 'react' import PropTypes from 'prop-types' import Headroom from 'react-headroom' // local import import Menu from './Menu' import styles from './styles.js' const Header = ({ showNavigation, common, header }) => ( <Headroom style={styles.TopBar}> <div style={styles.title}> {...
ajax/libs/babel-core/5.0.9/browser-polyfill.js
keicheng/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/SentimentDissatisfiedRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><circle cx="15.5" cy="9.5" r="1.5" /><circle cx="8.5" cy="9.5" r="1.5" /><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S...
app/javascript/mastodon/features/follow_recommendations/index.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { fetchSuggestions } from 'mastodon...
packages/ringcentral-widgets/components/LogBasicInfoV2/LogBasicInfo.js
ringcentral/ringcentral-js-widget
import classnames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import callDirections from 'ringcentral-integration/enums/callDirections'; import callResults from 'ringcentral-integration/enums/callResults'; import telephonyStatuses from 'ringcentral-integration/enums/telephonyStatus...
files/yasr/2.1.0/yasr.bundled.min.js
dandv/jsdelivr
!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.YASR=e()}}(function(){var e;return function t(e,n,r){...
stories/components/form/formTextArea/index.js
tskuse/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormTextArea from 'shared/components/form/formTextArea/formTextArea'; storiesOf('shared/components/form/formTextArea', module) .add('Default', () => ( <FormTextArea placehold...
packages/react-server-test-pages/pages/root/reduxAdapter.js
emecell/react-server
import {createStore, applyMiddleware} from "redux"; import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import {RootElement} from "react-server"; import {RootProvider, ReduxAdapter} from "react-server-redux"; import ReduxThunk from "redux-thunk"; function reduxAdapterR...
imports/plugins/included/product-variant/register.js
together-web-pj/together-web-pj
import { Reaction } from "/server/api"; Reaction.registerPackage({ label: "Products", name: "reaction-product-variant", icon: "fa fa-cubes", autoEnable: true, registry: [{ route: "/tag/:slug?", name: "tag", template: "products", workflow: "coreProductWorkflow" }, { route: "/products/cre...
ajax/libs/react-select/1.2.0/react-select.es.js
wout/cdnjs
import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; var arrowRenderer = function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElem...
src/utils/devTools.js
KingScooty/friendlist
import React from 'react'; import { createStore as initialCreateStore, compose } from 'redux'; export let createStore = initialCreateStore; if (__DEV__) { createStore = compose( require('redux-devtools').devTools(), require('redux-devtools').persistState( window.location.href.match(/[?&]debug_session=...
frontend/src/screens/landing/widgets/home/home.js
linea-it/qlf
import React from 'react'; import Card from '../card/card'; import PropTypes from 'prop-types'; const styles = { singleCol: { flex: 1, display: 'flex', margin: '1vw', }, linkStyle: { textDecoration: 'none', flex: 1 }, }; export default class Home extends React.Component { static propTypes = { ...
test/BadgeSpec.js
wjb12/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Badge from '../src/Badge'; describe('Badge', () => { it('Should output a badge with content', () => { let instance = ReactTestUtils.renderIntoDocument( <Badge> <strong>Content</strong> </Badge> ); ...
ajax/libs/forerunnerdb/1.3.908/fdb-core+views.js
dc-js/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
examples/react-blessed/not-drawn-if-children-is-empty.js
kjirou/nodejs-codes
// // Run by babel-node // import blessed from 'blessed'; import React, { Component } from 'react'; import { render } from 'react-blessed'; const screen = blessed.screen({ debug: true, smartCSR: true, }); screen.key(['escape', 'C-c'], function(ch, key) { return process.exit(0); }); class Root extends Compon...
aaf-enrollment/src/components/enrollment/method-authenticators/VoiceOTPMethod.js
MicroFocus/CX
import React from 'react'; import Authenticator from '../Authenticator'; import {generateFormChangeHandler} from '../../../utils/form-handler'; import TextField from '../../TextField'; import t from '../../../i18n/locale-keys'; class VoiceOTPMethod extends React.PureComponent { constructor(props) { super(p...
src/Popover.js
thealjey/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/svg-icons/action/assessment.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionA...
blueocean-material-icons/src/js/components/svg-icons/notification/bluetooth-audio.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationBluetoothAudio = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.98 4.02l1.2 1.2c.97-1.54 1.54-3....
app/javascript/mastodon/components/account.js
pfm-eyesightjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import DisplayName from './display_name'; import Permalink from './permalink'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'rea...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
pbogdan/react-flux-mui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
src/interface/others/DeathRecapTracker.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import DEFENSIVE_BUFFS from 'common/DEFENSIVE_BUFFS'; import Analyzer from 'parser/core/Analyzer'; import Combatants from 'parser/shared/modules/Combatants'; import Abilities from 'parser/core/modules/Abilities'; import Buffs from 'parser/core/modules/Buff...
modules/Home/Logo.js
cloudytimemachine/frontend
import React from 'react' const Logo = ({props}) => { return ( <div className="logo"> <img className="img-responsive" src="images/ctm_logo.png" alt="Cloudy Time Machine Logo" /> </div> ) } export default Logo;
src/index.js
Daemio/ReactTicTacToe
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import registerServiceWorker from './registerServiceWorker'; import Game from './components/Game'; ReactDOM.render(<Game />, document.getElementById('root')); registerServiceWorker();
jenkins-design-language/src/js/components/material-ui/svg-icons/toggle/star-border.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ToggleStarBorder = (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.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4....
src/svg-icons/maps/local-taxi.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
examples/shopping-cart/src/components/App.js
chrisclarke1977/nuclear-js
'use strict'; import React from 'react' import CartContainer from './CartContainer' import ProductsContainer from './ProductsContainer' export default React.createClass({ render() { return ( <div> <ProductsContainer /> <CartContainer /> </div> ); } });
node_modules/react/lib/ReactComponentWithPureRenderMixin.js
yhx0634/foodshopfront
/** * 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...
assets/jqwidgets/demos/react/app/responsivepanel/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxResponsivePanel from '../../../jqwidgets-react/react_jqxresponsivepanel.js'; class App extends React.Component { render() { return ( <div id='ownerPanel' style={{ float: 'right', width: 600 }}> <div id='head...
src/pages/antd/CardLoading.js
SmiletoSUN/react-redux-demo
import React from 'react'; import { Card } from 'antd'; const MyCard = props => ( <Card> lorem </Card> ); export { MyCard };
node_modules/radium/src/__tests__/resolve-styles-test.js
premcool/getmydeal
import React from 'react'; import MouseUpListener from 'plugins/mouse-up-listener.js'; import objectAssign from 'object-assign'; const resolveStyles = require('inject!resolve-styles.js')({ 'exenv': require('__mocks__/exenv.js'), './prefixer': require('__mocks__/prefixer.js') }); const genComponent = function() { ...
ajax/libs/react-data-grid/1.0.38/react-data-grid.ui-plugins.min.js
dlueth/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.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th...
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js
0xaio/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-public-url">{process.env.PUBLIC_URL}.</span> );
report/assets/scripts/bundles/core-bundle.js
andersonmat/linkstash-server
!function(a,b){function c(a){var b=ob[a]={};return $.each(a.split(bb),function(a,c){b[c]=!0}),b}function d(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(qb,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:pb.test(d)?$.parseJSON(d)...
src/components/common/Input.js
dougsleite/talk2go
import React from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secureTextEntry }) => { const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{label}</Text> <TextInp...
src/mui/input/ImageInput.spec.js
azureReact/AzureReact
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import { File, FileReader } from 'file-api'; import { ImageField } from '../field/ImageField'; import { ImageInput } from './ImageInput'; describe('<ImageInput />', () => { before(() => { global.File = File; ...
packages/strapi-admin/files/public/app/components/Plugin/index.js
evian42/starpies
/** * * Plugin * */ import React from 'react'; import PluginHeader from 'components/PluginHeader'; class Plugin extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <PluginHeader title={this.props.title} description={this....
fields/types/location/LocationFilter.js
Pop-Code/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, Grid, SegmentedControl, } from '../../../admin/client/App/elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; function getDefaultValue () { ret...
node_modules/react/node_modules/fbjs/node_modules/core-js/library/modules/es6.promise.js
laere/country-news
'use strict'; var $ = require('./$') , LIBRARY = require('./$.library') , global = require('./$.global') , ctx = require('./$.ctx') , classof = require('./$.classof') , $export = require('./$.export') , isObject = require('./$.is-object') , anObject = require('./$.an-objec...
app/containers/HomePage.js
bryanveloso/shiver-electron
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Twitch from 'twitch-sdk/twitch'; import { ActionCreators as UserActions } from '../actions/user' import Greeter from '../components/greeter'; import LoginButton from '../components/login-button'; impor...