path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/V2App.js
ahonn/v2exRN
import React, { Component } from 'react'; import { View, StatusBar, StyleSheet } from 'react-native'; import { Provider } from 'react-redux'; import createStore from './store/createStore'; import V2Navigator from './V2Navigator'; const store = createStore(); export default class V2App extends Component { ren...
src/components/_archive/_api/Interface/components/index.js
mgoodenough/estimator
'use strict'; /* * Module Definition * */ import React from 'react'; import Google from '../../Google/components/index'; import Bing from '../../Google/components/index'; // import defaultConfig from '../../config'; // import fetch, { FetchEntitiesInterface } from '../../utils/fetch'; // import mapConfiguredApi...
templates/rubix/rubix-bootstrap/src/ButtonGroup.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import classNames from 'classnames'; import RButtonGroup from 'react-bootstrap/lib/ButtonGroup'; export default class ButtonGroup extends React.Component { static propTypes = { xs: React.PropTypes.bool, sm: React.PropTypes.bool, lg: React.PropTypes.bool, }; render() { ...
src/components/TodosPage.js
chrisfitkin/cf-event-planner-3
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import AddEvent from '../containers/AddEvent' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> <hr /> <AddE...
src/components/youtube/search_bar.js
MeKyleH/ReactPortfolioStuff
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: ''}; } render() { return ( <div className="search-bar"> <input value={this.state.term} onChange={event => this.onInputChange(event....
docs/client/components/shared/StatePreview/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { shouldComponentUpdate } from 'react-addons-pure-render-mixin'; import styles from './styles.css'; export default class StatePreview extends Component { shouldComponentUpdate = shouldComponentUpdate; // eslint-disable-line no-redeclare render() { const codeCl...
src/parser/warlock/demonology/modules/azerite/BalefulInvocation.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER, SELECTED_PLAYER_PET } from 'parser/core/Analyzer'; import StatTracker from 'parser/shared/modules/StatTracker'; import SoulShardTracker from 'parser/warlock/demonology/modules/soulshards/SoulShardTracker'; import Events from 'parser/core/Events'; import ca...
smartSILS/UserMain.ios.js
wangleibeckham/iPRED
'use strict'; var AboutApp = require('./usermains/AboutApp.ios.js'); var AboutUser = require('./usermains/AboutUser.ios.js'); var Status = require('./usermains/Status.ios.js'); var Booking = require('./usermains/Booking.ios.js'); import React, { Component } from 'react'; import { AppRegistry, TabBarIOS, } from 'r...
src/redux/utils/createDevToolsWindow.js
Leviathan5/BeamSoundlyInteractive
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' /* istanbul ignore next */ export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it re...
docs/pages/root.js
n7best/react-weui
/* eslint-disable */ import React, { Component } from 'react'; import Navigation from '../components/navigation'; import langs from '../langs.json'; import docs from '../docs.json'; import './root.less'; class Root extends Component { constructor(props){ super(props) let locale = 'en-US' if (typeof(St...
Xing_scripts/public/src/index.js
evah/HealthyWebCrawler-T14
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreMiddleware = apply...
exercises/2/src/common/components/Balloon.js
Randynamic/redux-exercises
import React from 'react'; function Balloon({position}) { const {top, left} = position; const topPosition = `-${top}`.replace('%', ''); const leftPosition = `${left}`.replace('%', ''); const balloonClassName = `cls-${top}`.replace('%', ''); return ( <div style={{position: 'absolute', height: '100%', widt...
js/db/Movie.js
helengray/XiFan
import React from 'react'; var id; var name = ""; var actor = ""; var time = ""; var pic = ""; var url = ""; var title = ""; const Movie = React.createClass({ render(){ return null; } , setId(id){ this.id = id; }, getId(){ return this.id; }, setName(name){ ...
ReactTest/app/component/Loading.js
OlesiaBelmega/GoIT-Studing
import React from 'react'; import PropTypes from 'prop-types'; let styles = { content: { textAlign: 'center', fontSize: '35px' } }; class Loading extends React.Component { constructor(props) { super(props); this.state = { text: props.text, speed: pr...
src/components/cv/CVSummary.js
SomeHats/somehats.github.io
import React from 'react'; import cxsComponent from 'cxs/component'; import { media, Em, A } from '../../lib/styles'; const SummarySection = cxsComponent('section')({ paddingTop: '2rem', textAlign: 'justify', [media.smallMedium]: { paddingTop: '1rem', }, }); const CVSummary = () => ( <SummarySection> ...
docs/app/Examples/elements/Button/States/ButtonExampleActive.js
clemensw/stardust
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleActive = () => ( <Button active>Active</Button> ) export default ButtonExampleActive
src/Parser/Mage/Shared/Modules/Features/MirrorImage.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Wrapper from 'common/Wrapper'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Combatants ...
packages/@lyra/form-builder/src/inputs/common/Details.js
VegaPublish/vega-studio
import React from 'react' import PropTypes from 'prop-types' const ARROW_STYLE = { fontSize: '0.8em', display: 'inline-block', width: '1em', marginRight: '0.4em' } const CONTAINER_STYLE = { cursor: 'default', userSelect: 'none', WebkitUserSelect: 'none', outline: 'none' } export default class Details...
app/javascript/mastodon/components/column_back_button.js
vahnj/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length === 1)...
app/javascript/mastodon/components/skeleton.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>&zwnj;</span>; Skeleton.propTypes = { width: PropTypes.number, height: PropTypes.number, }; export default Skeleton;
stories/layout.js
ThrivingKings/circle-ui
import React from 'react' import { storiesOf } from '@storybook/react' import { Layout } from '../src' import imageFile from '../docs/assets/logo.png' const { Navbar, Content, Paper, Columns, Column } = Layout const { Item, Menu, MenuItem, Tray } = Navbar storiesOf('Layout', module) .add('Navbar with drop menu', (...
packages/material-ui-icons/src/AddToQueue.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AddToQueue = props => <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z" /> ...
src/components/common/svg-icons/maps/local-shipping.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalShipping = (props) => ( <SvgIcon {...props}> <path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-...
resources/assets/js/components/signup/VerifyingUserMessage.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; class VerifyingUserMessage extends Component { render() { return ( <div> Verifying user... </div> ); } } export default VerifyingUserMessage;
src/components/Forms/TextField.js
instacart/Snacks
import React from 'react' import PropTypes from 'prop-types' import Radium from '@instacart/radium' import { colors } from '../../styles' import FormComponent from './FormComponent' import ValidationError from './ValidationError' import FloatingLabel from './FloatingLabel' import TextFieldHint from './TextFieldHint' im...
ajax/libs/react-instantsearch/5.0.0-beta.1/Dom.js
jonobr1/cdnjs
/*! ReactInstantSearch 5.0.0-beta.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], facto...
src/svg-icons/maps/local-grocery-store.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGroceryStore = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-...
src/layouts/DefaultLayout/Header/Header.js
ihenvyr/react-app
import React from 'react'; import { Link, IndexLink } from 'react-router'; import styles from './Header.scss'; const Header = () => { return ( <header role="banner" className="Header"> <nav role="navigation" className={styles.navigation}> <div className="ui secondary pointing menu"> <Inde...
example/pages/progress/index.js
n7best/react-weui
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import {Button, Progress} from '../../../build/packages'; import Page from '../../component/page'; export default class ProgressDemo extends React.Component { state = { value: 0, timer: null, isUploading: fals...
0014-shouldComponentUpdate/app/src/App.js
davidwparker/programmingtil-react
import React, { Component } from 'react'; import GroceriesComponent from './GroceriesComponent'; import SomeComponent from './SomeComponent'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <SomeComponent color="red" /> <GroceriesComponent /> ...
src/svg-icons/image/filter-hdr.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterHdr = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageFilterHdr = pure(ImageFilterHdr); ImageFilterHdr.displayName...
src/interface/premium/LoginPanel.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { CSSTransitionGroup } from 'react-transition-group'; import Textfit from 'react-textfit'; import PatreonIcon from 'interface/icons/PatreonTiny'; import GitHubMarkIcon from 'interface/icons/GitHubMarkLarge'; im...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/NavLink.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import classNames from 'classnames'; import React from 'react'; import SafeAnchor from './SafeAnchor'; import AbstractNavItem from './AbstractNavItem'; import {...
docs-ui/components/projectLabel.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import ProjectLabel from 'app/components/projectLabel'; export default { title: 'Deprecated/ProjectLabel', }; export const Default = withInfo('Do not use this, use IdBadge instead')(() => { return ( <ProjectLabel project={{name:...
pootle/static/js/shared/components/CodeMirror.js
pavels/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 * as CM from 'codemirro...
server/dashboard/js/components/RelativeDate.react.js
machinezone/mzbench
import React from 'react'; import moment from 'moment'; import PropTypes from 'prop-types'; class RelativeDate extends React.Component { componentDidMount() { this.timer = setInterval(() => this.forceUpdate(), this.props.updateInterval); } componentWillUnmount() { clearInterval(this.timer)...
src/features/sourceInput/SourceInput.js
QuantumInformation/Javascript-code-generation-tools
import React from 'react' import {connect} from 'react-redux' import {updateSource} from '../../actions' import SmartTerminal from 'smart-terminal' let SourceInput = ({dispatch}) => { const checkSyntax = (evt)=> { try { JSON.parse(evt.target.value) } catch (e) { //throw new Error(e.message) ...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
frantic/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
docs/client/index.js
dagopert/draft-js-plugins
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; // Import your routes so that you can pass them to the <Router /> component // eslint-disable-next-line import/no-named-as-default import routes from './routes'; render(( <Router routes={routes} his...
src/svg-icons/social/school.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSchool = (props) => ( <SvgIcon {...props}> <path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/> </SvgIcon> ); SocialSchool = pure(SocialSchool); SocialSchool.displayNa...
src/components/Header.js
yakirn/YTrack
'use strict'; import React from 'react'; //var Actions = require('actions/xxx') import Login from './Login'; require('styles/Header.scss'); var Header = React.createClass({ render: function () { return ( <div className="Header"> <span className="headerText">YTrack</span> <Login/> ...
src/server.js
Kihansi95/FIE
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
frontend/src/Wanted/Missing/MissingConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import * as commandNames from 'Commands/commandNames'; import withCurrentPage from 'Components/withCurrentPage'; import { executeCommand } from 'Store/Actions/c...
Libraries/Modal/Modal.js
ptomasroos/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
examples/counter/index.js
leeric92/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
lib/FlexModalWrapper.js
1stdibs/react-modal-wrapper
import PropTypes from 'prop-types'; import React from 'react'; import { findDOMNode } from 'react-dom'; import Portal from 'react-body-subtree'; import css from './FlexModalWrapper.css'; class ModalWrapper extends React.Component { constructor() { super(); this.state = { scrollPosition: 0 }; th...
app/addons/databases/routes.js
apache/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
js/components/button/outline.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, H3 } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; import { ope...
src/components/css-trantion-group/index.js
jl-/bronote
import React, { Component } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group' const DEFAULT_APPEAR_TIMEOUT = 0; const DEFAULT_ENTER_TIMEOUT = 0; const DEFAULT_LEAVE_TIMEOUT = 0; function wrapTransitionName(name) { return typeof name === 'string' ? { appear: `${name}--appearin...
pootle/static/js/editor/components/UnitSource.js
JohnnyKing94/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 { t } from 'utils/i18n'...
src/client/app/footer.react.js
laxplaer/este
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; export default class Footer extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg: {app: {footer}}} = this.props; ret...
pages/404.js
alexxpan/calwtcrew
import React from 'react'; const IndexComponent = () => ( <div className="not-found"> <h1> Well this is awkward... </h1> </div> ); export default IndexComponent;
react-navigation-playground/js/SimpleTabs.js
agrcrobles/react-native-web-workspace
/** * @flow */ import React from 'react'; import { Button, Platform, ScrollView, StyleSheet } from 'react-native'; import { TabNavigator } from 'react-navigation'; import Ionicons from 'react-native-vector-icons/Ionicons'; import SampleText from './SampleText'; const MyNavScreen = ({ navigation, banner }) => ( <S...
src/Well.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, bsSizes, getClassSet, splitBsProps } from './utils/bootstrapUtils'; import { Size } from './utils/StyleConfig'; class Well extends React.Component { render() { const { className, ...props } = this.props; const [bsProps, elem...
src/svg-icons/navigation/chevron-left.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft = pure(NavigationChevronLeft); NavigationChevronLeft.dis...
scripts/pages/Training.js
zupzup/reactgym
'use strict'; import React from 'react'; import List from '../components/List'; import AppStateActionCreators from '../actions/AppStateActionCreators'; import SimpleHeaderMixin from '../mixins/SimpleHeaderMixin'; import TrainingStoreActionCreators from '../actions/TrainingStoreActionCreators'; import WorkoutStore from...
src/svg-icons/editor/wrap-text.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorWrapText = (props) => ( <SvgIcon {...props}> <path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/> </SvgIcon> ); EditorWra...
src/Assignments/Assignments.js
esharp054/SwimmingFishWeb
import React, { Component } from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import { Card, CardTitle, CardText } from 'material-ui/Card'; import AddAssignmentModal from './AddAssignment/Modal'; import...
app/client/src/components/ImageUploader/ImageUploader.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import FontIcon from 'material-ui/FontIcon'; import CircularProgress from 'material-ui/CircularProgress'; import Dropzone from 'react-dropzone'; import ReactCrop from 'react-image-crop'; import 'react-i...
client/src/components/ActiveBugsComponent.js
krzysztofkolek/github-bugtracker
'use strict'; require('styles//ActiveBugs.css'); import React from 'react'; import { connect } from "react-redux"; @connect((store) => { return { }; }) class ActiveBugsComponent extends React.Component { propTypes: { } defaultProps: { } constructor(props) { super(props); } render() { ...
client/containers/notifications/notifications.js
Rebulus/ikea-basket
import React from 'react'; import { connect } from 'react-redux'; import classNames from 'classnames'; import _ from 'lodash'; import { removeNotification, removeAllNotifications } from '../../actions/notifications'; const NOTIFICATION_SHOW_TIME = 5000; // 5s class Notification extends React.Component { construct...
app/javascript/mastodon/features/report/components/status_check_box.js
increments/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
ui/src/js/common/navbar/BackOfficeMenuItem.js
Dica-Developer/weplantaforest
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; export default class BackOfficeMenuItem extends Component { constructor() { super(); } linkTo(url) { this.props.hide(); browserHistory.push(url); } render() { return ( <div className={localStorage...
react/src/index.js
aaronbini/mile-tracker
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import { loadCourses } from './actions/courseActions'...
etc/beaconpi-react/src/TimeSeries.js
co60ca/beaconpi
import dateFormat from 'dateformat'; //import Fili from 'fili'; import React, { Component } from 'react'; import { Row, Col, FormGroup, FormControl, Alert, Table} from 'react-bootstrap'; import * as cfg from './config.js'; import { Line/*, defaults*/ } from 'react-chartjs-2'; import colorscheme from 'color-scheme'; ...
stories/index.js
cltk/annotations
import React from 'react' import { storiesOf } from '@storybook/react' import Annotating from './Annotating' import Basic from './Basic' import Scansion from './Scansion' import Highlight from './Highlight' import rawAnnotating from '!!raw-loader!./Annotating' import rawBasic from '!!raw-loader!./Basic' import rawSca...
examples/01 Dustbin/Multiple Targets/index.js
pairyo/react-dnd
import React from 'react'; import Container from './Container'; export default class DustbinMultipleTargets { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the Source</a></b> </p> ...
packages/node_modules/@ciscospark/react-component-cover/src/index.js
bzang/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; export default function Cover({message}) { return ( <div className={classNames(`ciscospark-cover-message`, styles.message)}> <div className={classNames(`ciscospark-cover-me...
src/components/authentication/Forgot.js
muiradams/plantogo
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import FlatButton from 'material-ui/FlatButton'; import { TextField } from 'redux-form-material-ui'; import * as actions from '../../actions'; /...
examples/counter/containers/CounterApp.js
mattybow/redux
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp { render() { co...
packages/ringcentral-widgets-docs/src/app/pages/Styles/Buttons/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import classnames from 'classnames'; import PrimaryButtonSpecs from '../../../assets/images/primary_button_specs.svg'; import PrimaryButtonPopupSpecs from '../../../assets/images/primary_button_popup_specs.svg'; import primaryButtonPageExample from '../../../assets/images/primary_button_in_pa...
src/svg-icons/device/dvr.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDvr = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 ...
src/components/NotFoundPage.js
calvellido/reactjs-training
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/server.js
jahrlin/visual-regression-testing
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import express from 'express'; import React from 'react'; import './core/Dispatcher'; import './stores/AppStore'; import db from './core/Database'; i...
src/common/Socket/CustomSocket.js
Syncano/syncano-dashboard
import React from 'react'; import { colors as Colors } from 'material-ui/styles/'; import SocketWrapper from './SocketWrapper'; const CustomSocket = ({ tooltip = 'Create a Socket', iconStyle, ...other }) => ( <SocketWrapper {...other} tooltip={tooltip} iconClassName="synicon-socket-custom-socket" ico...
docs/src/pages/style/icons/SvgIcons.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import green from 'material-ui/colors/green'; import SvgIcon from 'material-ui/SvgIcon'; const styles = theme => ({ root: { display: 'flex', justifyContent: 'center', alignItems: 'flex-end', ...
nailgun/static/views/custom_controls.js
huntxu/fuel-web
/* * Copyright 2015 Mirantis, 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 applicable law or agreed ...
packages/bonde-admin/src/storybook/settings/forms/input.stories.js
ourcities/rebu-client
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { SettingsPageLayout, SettingsPageMenuLayout, SettingsPageContentLayout } from '@/storybook/settings/layout' import { SettingsForm, TextField } from '@/storybook/settings/forms' sto...
dashboard/js/components/MatchTable.react.js
ethercrow/ai-challenger
import React from 'react'; import AppStore from '../stores/AppStore'; import MatchTableCell from './MatchTableCell.react'; class MatchTable extends React.Component { constructor(props) { super(props); this.state = this._resolveState(); this._onChange = this._onChange.bind(this); ...
src/parser/warlock/affliction/modules/features/DotUptimes/AgonyUptime.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import StatisticListBoxItem from 'interface/others/Statist...
src/admin/routes/posts/partials/Toolbar.js
firescribe/firescribe
import React from 'react'; import NavTabs, { Tab } from 'admin/components/NavTabs'; import ToolbarContainer from 'admin/containers/ToolbarContainer'; function to(path = '') { return `/admin/posts${path}`; } function Toolbar() { return ( <ToolbarContainer title={'Dashboard'} > <NavTabs> ...
src/App.js
manywho/whomiboo
import React, { Component } from 'react'; import './App.css'; {/**import JSONTree from 'react-json-tree';**/} import { Button, Panel, Grid, Row, Col, Glyphicon } from 'react-bootstrap'; var fileDownload = require('react-file-download'); import update from 'immutability-helper'; import actionResponse from './structures...
client/components/HOC/visitsScheduled.js
Kamill90/Dental
import React, { Component } from 'react'; import gql from 'graphql-tag'; import { graphql } from 'react-apollo'; import { Link, hashHistory } from 'react-router'; //queries const fechtDoctor=gql` { doctorByAdmin(adminID: "59d8bb406bb7a30294a83040"){ id name ranking adminID visit { visitDate ...
src/svg-icons/editor/monetization-on.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMonetizationOn = (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 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2...
Example/components/EchoView.js
Swordsman-Inaction/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgr...
src/Root.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { applyMiddleware, createStore } from 'redux'; import { Provider as ReduxProvider } from 'react-redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import thunk from 'redux-thunk'; import { createBrowserHistory } from 'history'; import { ConnectedRouter, routerMiddl...
documents/react-course/src/webpack-react-tutorial/src/js/components/presentational/Input.js
sharkspeed/dororis
import React from 'react' import PropTypes from 'prop-types' const Input = ({ label, text, type, id, value, handleChange }) => ( <div className="form-group"> <label htmlFor={ label }>{ text }</label> <input type={ type } className="form-control" id={ id } ...
src/svg-icons/maps/local-see.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalSee = (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-5-5...
projects/react-redux/contact/app/src/index.js
stanleygomes/stanleygomes.github.io
import React from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; // import router from './utils/router'; import '../styles/styles.scss'; import Reducers from './reducers/Reducers'; import App from './components/App'; const rootElement = docum...
src/components/background/Background.js
san2beerelli/Eycon
import React, { Component } from 'react'; import styled from 'styled-components'; const Bg = styled.section` position:fixed !important; top:0; right:0; bottom:0; left:0; display: flex; flex-direction : column; overflow-x: auto; overflow-y: auto; background: linear-gradient(135de...
src/components/EventTags/EventTags.js
filipsuk/eventigoApp
/* @flow */ import React from 'react'; import { Text, StyleSheet } from 'react-native'; import { fontSizes } from '../../styles'; import type { EventTag } from '../../types/model'; type Props = { tags?: EventTag[], style?: any, numberOfLines?: number }; const EventTags = ({ tags, style, numberOfLines }: Props) ...
src/svg-icons/image/colorize.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorize = (props) => ( <SvgIcon {...props}> <path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3...
examples/todomvc/index.js
jarsbe/redux-devtools
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/navigation/auth.js
jeanlescure/detox-react-native-demo
/** * Auth Scenes * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { Scene, ActionConst } from 'react-native-router-flux'; // Consts and Libs import { AppConfig } from '@constants/'; // Scenes import Authenticate from '@containers/auth/Authen...
src/app/components/Groups/List.js
sphinxominator/councils-feathers
import React from 'react' import styled from 'styled-components' import { pure, compose } from 'recompact' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { graphql } from 'react-apollo' import { setActiveGroup } from '../../actions' import { GroupsQuery } from '../../queries' ...
src/svg-icons/content/weekend.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentWeekend = (props) => ( <SvgIcon {...props}> <path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51...
squealy/squealy-web/src/index.js
dakshgautam/squealy
import React from 'react' import ReactDOM from 'react-dom' import App from './Containers/App' ReactDOM.render(<App />, document.getElementById('root'));
src/react/index.js
AnthonyWhitaker/redux-devtools
import React from 'react'; import createDevTools from '../createDevTools'; export const DevTools = createDevTools(React); export { default as LogMonitor } from './LogMonitor'; export { default as DebugPanel } from './DebugPanel';
react-flux-mui/js/material-ui/src/svg-icons/image/filter-frames.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterFrames = (props) => ( <SvgIcon {...props}> <path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/> </...
node_modules/react-bootstrap/es/Image.js
C0deSamurai/muzjiks
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...