path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
ontruck/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(users) { return [ { id: 1, name: '1' ...
src/components/start-screen/locale-select/LocaleSelect.js
marc-ed-raffalli/geo-game
import React from 'react'; import {Link} from 'react-router-dom'; import './_localeSelect.css'; function getLabel(name) { return <span className="mb-4 text-capitalize text-nowrap">{name}</span>; } export default props => ( <div className="gg-localeSelect d-flex flex-row flex-wrap justify-content-between ...
src/js/modules/products/ProductTable.js
djordjes/webpack-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import ProductRow from './ProductRow'; import ProductCategoryRow from './ProductCategoryRow'; function ProductTable(props) { console.log(props); const rows = []; let lastCategory = null; props.products.forEach((product) => { if (product.nam...
src/core/containers/FleetSetup.js
getfilament/Distil
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as hqActionCreators from '../actions/hqActionCreators'; import Section from '../components/Section'; import FleetInfoForm from '../components/forms/FleetInfoForm'; let FleetSetup = React.createClass...
src/utils/children.js
felipethome/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export default { create(fragments) { const newFragments = {}; let validChildrenCount = 0; let firstKey; //Only create non-empty key fragments for (const key in fragments) { const currentChild = fragments...
src/routes.js
jch254/audio-insights
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import AboutPage from './shared-components/AboutPage'; import GlossaryPage from './shared-components/GlossaryPage'; import HomePage from './shared-components/HomePage'; import NotFoundPage from './shared-components/NotFoundPage'; import App f...
src/svg-icons/image/photo-camera.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24...
app/App.js
basask/react-router-material-ui-seed
import React from 'react'; import ReactDom from 'react-dom'; import Routes from './components/Routes'; import './stylesheet/index.scss'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); ReactDom.render( <Routes />, document.getElementById('app') );
src/containers/MyAccount/MyAccount.js
petorious/dmprov-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, intlShape } from 'react-intl'; import { Activity } from '../../containers/Activity' import { setSimpleValue } from '../../store/simpleValues/actions'; import MyAccountForm from...
test/mochaTestHelper.js
glaserp/Maturita-Project
import Bluebird from 'bluebird'; import chai, {assert, expect} from 'chai'; import React from 'react'; import sinon from 'sinon'; import sinonAsPromised from 'sinon-as-promised'; import sinonChai from 'sinon-chai'; import TestUtils from 'react-addons-test-utils'; chai.should(); chai.use(sinonChai); // Use Bluebird Pr...
src/routes/app/routes/pages/routes/faqs/components/FAQs.js
ahthamrin/kbri-admin2
import React from 'react'; import QueueAnim from 'rc-queue-anim'; const Hero = () => ( <section className="hero"> <div className="hero-content"> <h1 className="hero-title">FAQs</h1> </div> <p className="hero-tagline">Frequently Asked Questions</p> </section> ); const FAQs = () => ( <article cl...
src/Textfield.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; import mdlUpgrade from './utils/mdlUpgrade'; const propTypes = { className: PropTypes.string, disabled: PropTypes.bool, error: PropTypes.node, expandable: PropTyp...
src/components/app/form/Submit.js
teamNOne/showdown
import React from 'react'; export default class Submit extends React.Component { render() { return <input type="submit" className={ `btn ${ this.props.type }` } value={ this.props.value } />; } }
packages/demo/src/index.js
marnusw/react-css-transition-replace
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import './transitions.css' import Demo from './Demo' ReactDOM.render(<Demo />, document.getElementById('root'))
fields/types/password/PasswordColumn.js
helloworld3q3q/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var PasswordColumn = React.createClass({ displayName: 'PasswordColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
app/components/papers/album/component.js
DenQ/electron-react-lex
import React, { Component } from 'react'; import { Paper, RaisedButton, Popover, Menu, MenuItem } from 'material-ui'; import PlayIcon from 'material-ui/svg-icons/av/play-circle-filled'; import BaseComponent from 'lex/libs/base/component'; import { I18n } from 'react-redux-i18n'; import Badge from 'material-ui/Badge'; ...
frontend/src/components/Footer.js
dimkarakostas/rupture
import React from 'react'; export default class Footer extends React.Component { render() { return( <footer> <a href='https://ruptureit.com/'>RuptureIt</a> </footer> ); } }
react-ui/src/components/NavTransition.react.js
simonlimon/varsncrafts
import React from 'react'; import { RouteTransition } from 'react-router-transition'; class NavTransition extends React.PureComponent { render() { return ( <div> <RouteTransition pathname={this.props.location.pathname} atEnter={{ opacity: 0 }} atLeave={{ opacity: 0 }} ...
src/utils/devTools.js
BenGoldstein88/redux-chartmaker
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_sess...
src/svg-icons/device/battery-charging-80.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11...
packages/canvas-media/src/shared/CanvasSelect.js
djbender/canvas-lms
/* * Copyright (C) 2020 - 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...
examples/dynamic-segments/app.js
whouses/react-router
import React from 'react'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</Link></li> </ul> {this.props.children} ...
src/ui-kit/Grid/index.js
Menternship/client-web
// @flow import React from 'react'; import { Grid as GridFB } from 'react-flexbox-grid'; type $props = { children?: any, }; export default ({ children, ...props }: $props) => ( <GridFB {...props} fluid> {children} </GridFB> );
src/components/joystick/JoystickMotorSelect.js
TheGigabots/gigabots-dashboard
import React from 'react'; import PropTypes from 'prop-types' import Typography from 'material-ui/Typography'; import Paper from 'material-ui/Paper'; import Select from 'material-ui/Select'; import {MenuItem} from 'material-ui/Menu'; const style = { height: 75, width: 200, margin: 20, textAlign: 'cent...
src/index.js
undefinedist/sicario
import React from 'react' import ReactDOM from 'react-dom' import Docs from './docs/Docs' import '../node_modules/highlight.js/styles/ocean.css' import './index.css' import registerServiceWorker from './registerServiceWorker' ReactDOM.render(<Docs />, document.getElementById('root')) registerServiceWorker()
app/components/RentalsPage.js
stratigos/stormsreach
/****************************************************************************** * Component for composing the Rentals page of the Housing section. ******************************************************************************/ import React from 'react'; import RentalsContainer from '../containers/RentalsContainer'; ...
src/static/containers/Home/index.js
24HeuresINSA/pass-checker
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import './style.scss'; import reactLogo from './images/react-logo.png'; import reduxLogo from './images/redux-logo.png'; class HomeView extends React.Component { static propTypes = { statusText: React.P...
src/molecules/archive/pagination/component-test.js
dsmjs/components
import React from 'react'; import {shallow} from 'enzyme'; import any from '@travi/any'; import {assert} from 'chai'; import Pagination from '.'; suite('archive pagination', () => { test('that links are rendered for each page', () => { const totalPages = any.integer({min: 2, max: 10}); const currentPage = an...
src/client/components/hoc/Order/withOrders.hoc.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; export const withOrders = WrappedComponent => { const Wrapper = class extends React.Component { render() { return <WrappedComponent {...this.props} />; } }; const mapStateToProps = state => { return { orders: state.orderRedu...
scripts/utils/connectToStores.js
machnicki/healthunlocked
import React, { Component } from 'react'; import shallowEqual from 'react-pure-render/shallowEqual'; /** * Exports a higher-order component that connects the component to stores. * This higher-order component is most easily used as an ES7 decorator. * Decorators are just a syntax sugar over wrapping class in a func...
packages/generator-emakinacee-react/generators/app/templates/static/src/index.js
emakina-cee-oss/generator-emakinacee-react
import React from 'react'; import ReactDOM from 'react-dom'; import { Container } from '@cerebral/react'; import App from './containers/App/App'; import controller from './controller'; import registerServiceWorker from './registerServiceWorker'; import './styles/global.scss'; ReactDOM.render( <Container controller...
src/svg-icons/notification/drive-eta.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDriveEta = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ...
src/index.js
papernotes/actemotion
import React from 'react'; import {render} from 'react-dom'; import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk' import {Provider} from 'react-redux'; import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import {syncHistoryWithStore, router...
src/svg-icons/maps/person-pin.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPin = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2...
app-client/src/index.js
vikoperdomo/serverql
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
docs/app/Examples/collections/Form/FieldVariations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const FormFieldVariationsExamples = () => ( <ExampleSection title='Field Variations'> <ComponentExample title='Inline' ...
examples/complete/react-native/screens/LinksScreen.js
prescottprue/react-redux-firebase
import React from 'react'; import { ScrollView, StyleSheet } from 'react-native'; import { ExpoLinksView } from '@expo/samples'; export default class LinksScreen extends React.Component { static navigationOptions = { title: 'Links', }; render() { return ( <ScrollView style={styles.container}> ...
src/Parser/Druid/Restoration/CombatLogParser.js
enragednuke/WoWAnalyzer
import React from 'react'; import Tab from 'Main/Tab'; import Mana from 'Main/Mana'; import CoreCombatLogParser from 'Parser/Core/CombatLogParser'; import LowHealthHealing from 'Parser/Core/Modules/LowHealthHealing'; import HealingDone from 'Parser/Core/Modules/HealingDone'; import WildGrowthNormalizer from './Norma...
learning/index.js
YashdalfTheGray/talks
import React from 'react'; import { render } from 'react-dom'; import Presentation from './presentation'; render(<Presentation/>, document.querySelector('#root'));
frontend/src/components/on_boarding/ContributorPicker.js
OpenCollective/opencollective-website
import React from 'react'; import ContributorPickerItem from './ContributorPickerItem' export default class ContributorPicker extends React.Component { constructor(props) { super(props); } renderChosenContributors() { const { chosen, onRemove } = this.props; return chosen.map((contributor, index) ...
src/app/components/team/SmoochBot/SmoochBotMainMenu.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, intlShape, defineMessages, FormattedMessage } from 'react-intl'; import Typography from '@material-ui/core/Typography'; import { languageLabel } from '../../../LanguageRegistry'; import SmoochBotMainMenuSection from './SmoochBotMainMenu...
src/icons/IosCog.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosCog extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M293.25,150.32L265.2,254.9l74.954,75C358.159,309.457,368,283.486,368,256c0-29.916-11.65-58.042-32.805-79.196 C323.1...
src/ui/containers/account.js
redcom/aperitive
// @flow import React from 'react'; import { withRouter } from 'react-router'; import { Row, Button } from 'react-bootstrap'; import { isNil } from 'ramda'; import LoginAuth0 from './LoginAuth0'; import { auth0Config } from '../../config'; type Props = { loading: boolean, }; class Account extends React.Component { ...
node_modules/react-select/examples/src/components/Creatable.js
rblin081/drafting-client
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; var CreatableDemo = createClass({ displayName: 'CreatableDemo', propTypes: { hint: PropTypes.string, label: PropTypes.string }, getInitialState () { return { mult...
src/svg-icons/image/add-to-photos.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAddToPhotos = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> ...
client/extensions/woocommerce/app/reviews/review-reply-create.js
Automattic/woocommerce-connect-client
/** * External depedencies * * @format */ import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import PropTypes from 'prop-types'; /** * Internal dependencies */ ...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_04/finish/src/index.js
yevheniyc/Autodidact
import React from 'react' import { render } from 'react-dom' import { SkiDayCount } from './components/SkiDayCount' window.React = React render( <SkiDayCount total={50} powder={20} backcountry={10} goal={100}/>, document.getElementById('react-container') )
react-router-tutorial/lessons/08-index-routes/index.js
zerotung/practices-and-notes
import React from 'react' import { render } from 'react-dom' import { Router, Route, hashHistory } from 'react-router' import App from './modules/App' import About from './modules/About' import Repos from './modules/Repos' import Repo from './modules/Repo' render(( <Router history={hashHistory}> <Route path="/" ...
public/js/sequenceserver.js
elsiklab/sequenceserver
import 'jquery'; import 'jquery-ui'; import 'bootstrap'; import 'webshim'; import React from 'react'; import Router from 'react-router'; import {Page as Search} from './search'; import {Page as Report} from './report'; var Route = Router.Route; var DefaultRoute = Router.DefaultRoute; var RouteHandler = Router.RouteH...
app/javascript/mastodon/features/list_timeline/index.js
mstdn-jp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../compon...
admin/client/App/elemental/DropdownButton/index.js
snowkeeper/keystone
/* eslint quote-props: ["error", "as-needed"] */ import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; import Button from '../Button'; function DropdownButton ({ children, ...props }) { return ( <Button {...props}> {children} <span className={css(classes.arrow)} /> </Button> ...
app/javascript/mastodon/components/dropdown_menu.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
app/desktop/LiveUser/index.js
christianalfoni/webpack-bin
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from './styles.css'; @Cerebral({ userName: 'live.userName', controllingUser: 'live.controllingUser' }) class LiveUser extends React.Component { render() { return ( <div className={styles.wrapper}> ...
src/components/Portfolio.js
jerednel/jerednel.github.io
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { Card, CardContent, CardActionArea, CardMedia, Typography, Grid, Container } from '@material-ui/core/'; const useStyles = makeStyles((theme) => ({ root: { display: 'flex', backgroundColor: theme.palette.primar...
node_modules/react-bootstrap/es/DropdownMenu.js
Crisa221/Lista-Giocatori
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _Array$from from 'babel-runtime/core-js/array/from'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtim...
src/app.js
fkoester/tachograph-app
import React from 'react'; import { UIManager } from 'react-native'; import { Provider } from 'react-redux'; import store from './store'; import scenes from './scenes'; import './i18n'; UIManager.setLayoutAnimationEnabledExperimental(true); export default class App extends React.Component { componentDidMount() { ...
src/pages/SignoutPage.js
ihenvyr/react-parse
import React from 'react'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; import Parse from 'parse'; class SignoutPage extends React.Component { static propTypes = {}; static defaultProps = {}; componentDidMount() { Parse.User.logOut().then(() => { this.props.router.push...
src/routes.js
taoveweb/reactTemplate
//import React from 'react'; //import { Route, IndexRoute } from 'react-router'; import App from './components/App'; /*import Home from './containers/Home'; import About from './containers/About'; import New from './containers/New'; import New1 from './containers/New1'; import NotFound from './containers/NotFound';*/ ...
packages/node_modules/@webex/react-component-adaptive-card/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import classnames from 'classnames'; import {getAdaptiveCard, CARD_CONTAINS_IMAGE, replaceIndexWithBlobURL, API_ACTIVITY_VERB} from '@webex/react-component-utils'; import {connect} from 'react-redux'; import {bindActionCrea...
src/forms/rentFields.js
codeforboston/cliff-effects
import React, { Component } from 'react'; import { MonthlyCashFlowRow } from './cashflow'; import { isNonNegNumber, hasOnlyNonNegNumberChars, } from '../utils/validators'; const BLANK_FUNCTION = function () {}; class RentShareField extends Component { state = { valid: true, message: null }; storeValidator...
src/Button.js
mattBlackDesign/react-materialize
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import constants from './constants'; import cx from 'classnames'; import Icon from './Icon'; import idgen from './idgen'; class Button extends Component { constructor (props) { super(props); this.renderIcon = this.renderIcon.bind(t...
src/app/containers/index.js
blowsys/reservo
import React from 'react'; import thunk from 'redux-thunk'; import { createStore, applyMiddleware, compose } from 'redux'; import type { Store } from 'redux'; import { Provider } from 'react-redux'; import Router from 'react-router/HashRouter'; import { connect } from 'react-redux'; import MuiThemeProvider from 'materi...
src/components/body/menu/options/AddModal.js
TechyFatih/Nuzlog
import React from 'react'; import { Modal, Media, Panel, Button, Row, Col, ControlLabel } from 'react-bootstrap'; import { actions } from 'react-redux-form'; import { connect } from 'react-redux'; import natures from 'data/natures.json'; import abilities from 'data/abilities.json'; import male from 'img/male.png'; im...
Native/Learn_NavigationBox/index.android.js
renxlWin/React-Native_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; import { StackNavigator } from 'react-navigation' class HomeScreen extends React.Component {...
examples/tutorials/react-integration/front/src/index.js
softindex/datakernel
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
react_state/index.android.js
devSC/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import setup from './setup' AppRegistry.registerComponent('react_state', () => setup);
src/containers/Launch/LaunchView.js
yursky/recommend
/** * Launch Screen * - Shows a nice loading screen whilst: * - Preloading any specified app content * - Checking if user is logged in, and redirects from there * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes...
game-new/src/utils/Icon.js
d07RiV/d3planner
import React from 'react'; import classNames from 'classnames'; class Icon extends React.Component { constructor(props, context) { super(props, context); this.state = {visible: false}; } onLoad = () => { this.setState({visible: true}); } componentWillReceiveProps(newProps) { if (newProps.src ...
app/routes.js
alexdibattista/no-noise
/* eslint flowtype-errors/show-errors: 0 */ import React from 'react'; import { HashRouter as Router } from 'react-router-dom'; import { Switch, Route } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; export defa...
src/sidebar/app/router.js
cedricium/notes
import React from 'react'; import { HashRouter, Route } from 'react-router-dom'; import ListPanel from './components/ListPanel'; import EditorPanel from './components/EditorPanel'; const styles = { container: { flex: '100%', display: 'flex', flexDirection: 'column' } }; class Router extends React.Co...
src/sources/youtube/ImportPanel.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { IDLE, LOADING, LOADED } from '../../constants/LoadingStates'; import { addMediaMenu as openAddMediaMenu } from '../../actions/PlaylistActionCreators'; import { PLA...
src/components/common/svg-icons/image/crop-din.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropDin = (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 16H5V5h14v14z"/> </SvgIcon> ); ImageCropDin = pure(ImageCropDin); Image...
geonode/contrib/monitoring/frontend/src/components/organisms/ws-analytics/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import HoverPaper from '../../atoms/hover-paper'; import HR from '../../atoms/hr'; import WSServiceSelect from '../../molecules/ws-service-select'; import ResponseTime from '../../cels/response-time'; import Throughput...
src/components/App.js
dzwiedziu-nkg/books-collection-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import 'bootstrap'; import './basic/EditButton'; import '../styles/App.css'; import EditButton from "./basic/EditButton"; class AppComponent extends React.Component { static propTypes = { brand_name: PropType...
src/components/Header.js
codevinsky/deep-ellum-jukebox-ui
import React from 'react'; import { Grid, Row, Col, Button, Glyphicon, Input } from 'react-bootstrap'; import FitterHappierText from 'react-fitter-happier-text'; import ReactFitText from 'react-fittext'; import { Hatchshow, FullScreenSearch, BigText } from './index'; class Header extends React.Component { construc...
javascript/src/containers/ViewToggleContainer.js
unclecheese/silverstripe-kickassets
import React from 'react'; import Reflux from 'reflux'; import Navigation from '../actions/Navigation'; import ViewToggle from '../views/ViewToggle'; const ViewToggleContainer = React.createClass({ mixins: [ React.addons.PureRenderMixin, Reflux.ListenerMixin ], propTypes: { routerParams: React.PropTypes.obj...
components/CheckboxGroup/index.js
azl397985856/ltcrm-components
import React from 'react'; import {Col} from 'antd'; import Checkbox from 'rc-checkbox'; const CheckboxGroup = React.createClass({ getDefaultProps() { return { prefixCls: 'ant-checkbox', options: [], defaultValue: [], onChange() {}, span: 4, }; }, propTypes: { defaultVal...
pilgrim3/components/serviceBrowser.js
opendoor-labs/pilgrim3
import React from 'react'; import state from './state'; import { Link } from 'react-router'; import { map } from 'lodash'; import { relativeName } from './utils'; import ProtoInfo from './protoInfo'; import DocBlock from './docBlock'; import OptionsPopover from './optionsPopover'; export default class ServiceBrowser e...
webapp/src/containers/search/logList.js
nathandunn/agr
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Tooltip, OverlayTrigger } from 'react-bootstrap'; import style from './style.css'; const DEFAULT_LABEL = 'Homologs'; const HIGHLIGHT_EL = 'em'; import { selectQueryParams } from '../../selectors/searchSelectors'; class LogListCo...
sourcestats/webpack/main.js
Fizzadar/SourceServerStats
// Source Server Stats // File: sourcestats/webpack/main.jsx // Desc: frontend entry-point import React from 'react'; import ReactDOM from 'react-dom'; // Not included by default import 'react-select/less/default.less'; import 'metrics-graphics/dist/metricsgraphics.css'; import './main.less'; import { App } from './...
client/src/js/components/Nav/Footer.js
yassinej/oerk_v4
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <div className="container-fluid p-1 p-md-3 text-center bg-warning"> Footer </div> ); } } export default Footer;
src/scripts/modules/guest/forgot/UserForgotComponent.js
arikanmstf/userauth
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import InputText from '../../../common/input/InputText'; class UserForgotComponent extends Component { constructor (props) { super(props); this.state = props; this.submitForgotForm = this.submitForgotForm.bind(th...
ui/lib/search.js
Bit-Nation/BITNATION-Pangea
'use babel' import React from 'react' import ssbref from 'ssb-ref' import app from './app' import u from 'patchkit-util' import social from 'patchkit-util/social' import t from 'patchwork-translations' const MAX_CHANNEL_RESULTS = 3 const MAX_USER_RESULTS = 3 export function getResults (query) { var results = [] ...
src/svg-icons/av/forward-10.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward10 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0...
stories/list/index.js
JerryBerton/dh-component
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import withReadme from 'storybook-readme/with-readme'; import { List, Menu, Dropdown, Icon, Avatar} from '../../src'; import listReadme from './list.md'; const addWithInfoOptions = { inline: true, propTables: false }; const menu ...
src/routes/appointment/EditAppointment.js
chunkiat82/rarebeauty-ui
import React from 'react'; import moment from 'moment'; import Appointment from './components/Individual'; import Layout from '../../components/Layout'; import { listContacts, getAppointment, queryPastAppointments, getServices, cancelAppointment, updateAppointment, } from './common/functions'; import Cancel...
public/components/tehtPage/tabsComponents/templates/KuvatVideotTemplate.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; import MainContent from './MainContent'; const KuvatVideotTemplate = (props) => ( <div className="kuvatvideot-grid"> <MainContent component={props.component} className="kuvatvideotcontent" {...props} /> </div> ); export default KuvatVideotTemplate;
src/components/frankulator/Conductors.js
SashaKoro/reactulator
import React from 'react'; import styled from 'styled-components'; const LeftConductor = styled.span` background-color: gray; float: left; color: red; float: left; height: 40px; width: 40px; margin-left: -47px; margin-top: -55px; -webkit-border-radius: 5px 0 0 5px; `; const RightConductor = styled(L...
src/hello.js
GRT/react-example
import React from 'react'; export default React.createClass({ render: function() { return <div>Hello {this.props.name}</div>; } });
pollard/components/Setlist.js
spencerliechty/pollard
import React, { Component } from 'react'; import SearchSong from './SearchSong'; import AddedSongs from './AddedSongs'; import NewPlaylistInstructions from './NewPlaylistInstructions.js'; export default class Setlist extends Component { render() { const { songs, } = this.props; return ( <...
static/src/components/RegisterView.js
PMA-2020/pma-translation-hub
/* eslint camelcase: 0, no-underscore-dangle: 0 */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Paper from 'material-ui/Paper'; import * as action...
src/svg-icons/content/add-circle.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/> </SvgIcon> ); ContentAddCircle = pure(Cont...
src/layouts/index.js
jameslutley/jameslutley.com
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Img from 'gatsby-image' import Helmet from 'react-helmet' import { injectGlobal } from 'emotion' import { ThemeProvider } from 'emotion-theming' import { normalize } from 'polished' import t from 'tachyons-js' import { t...
src/app/components/loadingSpinner.js
nazar/sound-charts-react-spa
import React from 'react'; export default React.createClass({ render() { return ( <div className="loading-spinner"> <i className="fa fa-cog fa-spin"></i> </div> ); } });
packages/react-error-overlay/src/components/Collapsible.js
viankakrisna/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 { black } from '../styles'; import type { Element as ReactElement } from '...
src/components/BreadcrumbItem/BreadcrumbItem.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import Link from '../Link'; import settings from '../../globals/js/settings'; const { prefix } = settings; const newChild = (children, disableLink, href) => { if (disableLink === true) { return <span>{children}</...
MadWare.Hathor.FrontEnd/src/js/components/server/PlayerControls.js
zvizdo/MadWare.Hathor
import React from 'react' class PlayerControls extends React.Component { onNewPlaylist(e) { this.props.onNewPlaylistClick(); } onCleanPlayed(e) { this.props.onCleanPlayedClick(); } onRepeatSettingChange (e) { this.props.onRepeatChange(e.target.checked); } onShuffleSettingChange (e) { ...
app/admin/dashboard/HomeNavigate.js
ecellju/internship-portal
import React from 'react'; import PropTypes from 'prop-types'; import { Route } from 'react-router-dom'; import HomeTab from './HomeTab'; import PostView from '../post/PostView'; const HomeNavigate = ({ match }) => ( <div> <Route exact path={match.url} component={HomeTab} /> <Route path={`${match.url}/:id`}...
admin/client/App/screens/Item/components/EditForm.js
w01fgang/keystone
import React from 'react'; import moment from 'moment'; import assign from 'object-assign'; import { Form, FormField, FormInput, Grid, ResponsiveText, } from '../../../elemental'; // import { css, StyleSheet } from 'aphrodite/no-important'; import { Fields } from 'FieldTypes'; import { fade } from '../../../../ut...
node_modules/antd/es/breadcrumb/BreadcrumbItem.js
prodigalyijun/demo-by-antd
import _extends from 'babel-runtime/helpers/extends'; 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/i...