path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/Parser/Hunter/Survival/Modules/Features/MongooseFury/SixBiteWindows.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import Analyzer from 'Parser/Core/Analyzer'; import StatisticBox from 'Main/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import STATISTIC_ORDER from 'Main/STATISTIC_ORDER'; const MAX_STACKS = 6; class SixBiteWindows extends Analyzer { ...
src/components/offerEntry.js
HarelDavid/AdFriend
import React from 'react'; import ReactDOM from 'react-dom'; import {observer} from 'mobx-react'; import autobind from 'autobind-decorator' import ImageUploader from'react-firebase-image-uploader'; import * as firebase from 'firebase'; @observer export default class OfferEntry extends React.Component { state = {tit...
wisewit_front_end/node_modules/react-router/modules/IndexRedirect.js
emineKoc/WiseWit
import React from 'react' import warning from './routerWarning' import invariant from 'invariant' import Redirect from './Redirect' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * An <IndexRedirect> is used to redirect from an indexRoute. */ const IndexRedirect = React.createCla...
src/pages/404.js
schhogyel/schhogyel.github.io
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
src/routes/Posts/index.js
ZeusTheTrueGod/WindsurfingNetwork-client
// @flow import React from 'react'; import { type Store } from 'redux'; import { type Location, type RouteConfig } from '~/routes/types'; import { type State } from '~/store/state'; import { type Action } from '~/store/action'; import { injectReducer } from '~/store/reducers'; import Chunk from '~/components/Chunk'; e...
js/app.js
pagesource/twitter-graphQL
import 'babel-polyfill'; import App from './components/App'; import AppHomeRoute from './routes/AppHomeRoute'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; ReactDOM.render( <MuiThemeProvider> <Re...
examples/01 Dustbin/Single Target/Container.js
konce/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; import Dustbin from './Dustbin'; import Box from './Box'; @DragDropContext(HTML5Backend) export default class Container extends Component { render() { return ( ...
src/svg-icons/navigation/expand-more.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationExpandMore = (props) => ( <SvgIcon {...props}> <path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/> </SvgIcon> ); NavigationExpandMore = pure(NavigationExpandMore); NavigationExpandMore.displayN...
example/example.js
gcedo/react-seatmap
import React from 'react'; import Seatmap from '../src/components/Seatmap.jsx'; import style from '../src/style/main.scss'; const rows = [ [{ number: 1 }, {number: 2}, {number: '3', isReserved: true}, null, {number: '4'}, {number: 5}, {number: 6}], [{ number: 1, isReserved: true }, {number: 2, isReserved...
docs/v5/layouts/src/demos/common/Example.js
Bandwidth/shared-components
import React from 'react'; import { CodeBlock } from '@bandwidth/shared-components'; import SyntaxHighlighter, { registerLanguage, } from 'react-syntax-highlighter/prism-light'; import jsx from 'react-syntax-highlighter/languages/prism/jsx'; import { tomorrow } from 'react-syntax-highlighter/styles/prism'; registerL...
src/App.js
OlehHappy/oleh_008-DnD_React_transhand01
import React from 'react' import ReactDOM from 'react-dom' import {CSSTranshand} from 'transhand' import assign from 'lodash/assign' export default class App extends React.Component { constructor(props) { super(props) this.state = { currDomElem: undefined, } } componentDidMount() { windo...
react/TwitterIcon/TwitterIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './TwitterIcon.svg'; import svgMarkupGeneric from './TwitterIconGeneric.svg'; import svgMarkupFilled from './TwitterIconFilled.svg'; import PropTypes from 'prop-types'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function TwitterIcon({ filled, generic, ......
packages/strapi-plugin-content-manager/admin/src/components/Pagination/index.js
evian42/starpies
/** * * Pagination * */ import React from 'react'; import styles from './styles.scss'; class Pagination extends React.Component { constructor(props) { super(props); this.onGoPreviousPageClicked = this.onGoPreviousPageClicked.bind(this); this.onGoNextPageClicked = this.onGoNextPageClicked.bind(this)...
my-first-react-app/src/index.js
gauravrmazra/gauravbytes
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want your app to work offline and load f...
src/containers/DevTools/index.js
bhargav175/resume
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="W"> <LogMonitor /> </Dock...
client/src/components/CaretRight.js
alecdwm/webtron
import React from 'react' export default function CaretRight() { return ( <svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path fillRule="evenodd" clipRule="evenodd" d="M6 12.796L11.481 8 6 3.204v9.592zm.659.753l5.48-4.796a1 ...
node_modules/react-router/es/Router.js
kishigo/recipes-react-redux
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
docs/app/Examples/elements/Button/Types/ButtonExampleLabeledProps.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button, Label } from 'semantic-ui-react' const ButtonExampleLabeledProps = () => ( <div> <Button label={1048} icon='fork' labelPosition='left' /> <Button label='1,048' icon='fork' labelPosition='left' /> <Button label={{ content: '2,048' }} icon='heart' content='Like' l...
src/routes/login/index.js
Frenzzy/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/Gandalf/components/error.js
mrpotatoes/react-gandalf
import React from 'react' /* eslint-disable */ Error = ({ condition }) => ( <If condition={condition}> <div className="grid-example col s12 red lighten-4"> <span className="flow-text">Error: I'm sorry, what were you thinking?</span> </div> </If> ) export default Error
web/static/js/layouts/main.js
KazuCocoa/ex_torello
import React from 'react'; import { Link } from 'react-router'; export default class MainLayout extends React.Component { constructor() { super(); } render() { return ( <div> {this.props.children} </div> ); } }
client/src/components/Tag/Tag.js
silverstripe/silverstripe-admin
import React from 'react'; import { Button } from 'reactstrap'; import classnames from 'classnames'; import i18n from 'i18n'; import PropTypes from 'prop-types'; /** * High jack some keys to fire off matching events. * @param e KeyDown event. * @param key Key tag to trigger. * @param onDelete Function to trigger w...
admin/client/App/shared/Popout/PopoutHeader.js
rafmsou/keystone
/** * Render a header for a popout */ import React from 'react'; import Transition from 'react-addons-css-transition-group'; const PopoutHeader = React.createClass({ displayName: 'PopoutHeader', propTypes: { leftAction: React.PropTypes.func, leftIcon: React.PropTypes.string, title: React.PropTypes.string.is...
public/client/routes/setPassword/containers/setPassword.js
nearform/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {reduxForm} from 'redux-form' import {loadPasswordResetUser, setNewPassword} from '../../../modules/user/actions/index' import {validateSetNewPassword} from '../../../lib/validations' export let SetPassword = React.createClass({ pro...
src/CoverFlow/CoverFlow.js
leon-good-life/coverflow-react
import React from 'react'; import PropTypes from 'prop-types'; import EmptyContainer from './Container/EmptyContainer'; import Container from './Container/Container'; class CoverFlow extends React.Component { render(){ let width, height; if (this.props.direction === 'vertical') { width = isNaN(this.pr...
src/routes/Home/components/HomeView.js
TheLADbibleGroup/hackathon
import React from 'react'; import Header from '../../../components/Header'; import StoryMap from '../../../components/StoryMap'; import Sidebar from '../../../components/Sidebar'; import './HomeView.scss'; export const HomeView = (props) => ( <div> <div className='col-xs-12 col-md-8 text-center fixed no-padd...
src/svg-icons/device/gps-fixed.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsFixed = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
src/svg-icons/notification/network-locked.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkLocked = (props) => ( <SvgIcon {...props}> <path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 1...
docs/src/NotFoundPage.js
Sipree/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage="" /> <PageHeader title="404" subT...
src/js/components/Projects/Index.js
appdev-academy/appdev.academy-react
import React from 'react' import { Link } from 'react-router' import { inject, observer } from 'mobx-react' import TableBody from './TableBody' @inject('projectsStore') @observer export default class Index extends React.Component { componentDidMount() { this.props.projectsStore.fetchIndex() } moveProj...
app/javascript/mastodon/containers/compose_container.js
dunn/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
src/components/dialogs/dialog-set-installation-path.js
quanglam2807/webcatalog
import React from 'react'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import Dialog from '@material-ui/core/Dialog'; import DialogContent from '@material-ui/core/DialogContent'; import DialogActions from '@material-ui/core/Dia...
react-flux-mui/js/material-ui/src/svg-icons/action/dashboard.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDashboard = (props) => ( <SvgIcon {...props}> <path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/> </SvgIcon> ); ActionDashboard = pure(ActionDashboard); ActionDashboard.displayName...
webapp/client/src/CommonComponents.js
mikemag/MonkeyCAM
/* * Copyright 2013-2017 Michael M. Magruder (https://github.com/mikemag) * * This source code is licensed under the Apache license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { Alert } from 'react-bootstrap'; var development = process.env.NODE_ENV ...
app/containers/HeaderContainer/index.js
sarea-alkebaly/way-finding
/* * * HeaderContainer * */ import React from 'react'; import { connect } from 'react-redux'; // import { FormattedMessage } from 'react-intl'; // import { createStructuredSelector } from 'reselect'; import makeSelectHeaderContainer from './selectors'; // import messages from './messages'; import Header from '../....
app/javascript/mastodon/features/account/components/header.js
amazedkoumei/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Motion from '../../ui/util/optional_motion'; import sprin...
src/components/blocks/image.js
brijeshb42/medium-draft
import PropTypes from 'prop-types'; import React from 'react'; import { EditorBlock, EditorState, SelectionState } from 'draft-js'; import { getCurrentBlock } from '../../model/'; class ImageBlock extends React.Component { static propTypes = { block: PropTypes.object, blockProps: PropTypes.object, }; ...
presentation/counter_no_jsx.js
survivejs-presentations/react-components
import React from 'react'; class CatCounter extends React.Component { constructor(props) { super(props); this.state = { amount: 0 }; this.sawCat = this.sawCat.bind(this); } render() { return React.createElement( "div", null, React.createElement( "h2", null, ...
test/test_helper.js
aquajach/react_redux_tutorial
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...
src/svg-icons/communication/phone.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61...
app/containers/RepoListItem/index.js
lizhaogai/lyda-dada-v
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import IssueIcon from './IssueIcon'; import IssueLink from './IssueLink'; import L...
docs/app/Examples/modules/Sidebar/ScaleDown/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const SidebarVariationsExamples = () => ( <ExampleSection title='Scale Down'> <ComponentExample title='Left Scale Down' ...
src/Main/Status/WclApiResponseTime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { formatThousands } from 'common/format'; import Chart from './Chart'; class WclApiResponseTime extends React.PureComponent { static propTypes = { history: PropTypes.array, timeSpanMinutes: PropTypes.number.isRequired, }; render() {...
src/svg-icons/device/signal-wifi-2-bar-lock.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi2BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
router_tutorial/01-setting-up/modules/start.js
Muzietto/react-playground
'use strict' import React from 'react' import ReactDOM from 'react-dom' import Hello from './App'; ReactDOM.render(<Hello/>, document.getElementById('app'));
spec/sections/DialogSection.js
kmees/react-fabric
import React from 'react' import Dialog from '../../src/Dialog' import Button from '../../src/Button' class DialogSection extends React.Component { constructor() { super() this.state = { isHidden: true, darkOverlay: false } } _show() { this.setState({ ...this.state, isHidden: false ...
src/parser/shared/modules/items/bfa/pvp/DreadGladiatorsBadge.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import ITEMS from 'common/ITEMS/index'; import Analyzer from 'parser/core/Analyzer'; import UptimeIcon from 'interface/icons/Uptime'; import PrimaryStatIcon from 'interface/icons/PrimaryStat'; import ItemStatistic from 'interface/statistics/ItemStati...
MobileApp/mstudentApp/components/subsViews/SubsNav.js
FresnoState/mobilestudentintranet
import React, { Component } from 'react'; import {Icon} from 'native-base'; import {StackNavigator} from 'react-navigation'; import SubsView from './SubsView'; import AreaView from './AreaView'; import SubjectView from "./SubjectQueue"; const SubNavigator = StackNavigator( { 'SubsView': { scree...
packages/utils/src/client.js
cmaver/numenta-web
// Numenta Web Platform and Sites source code // MIT License (see LICENSE.txt) // Copyright © 2005—2017 Numenta <http://numenta.com> import browserSize from 'browser-size' import root from 'window-or-global' import url from 'url' import React from 'react' import {prefixLink} from 'gatsby-helpers' /** * Utils for the...
src/Camera.js
Miniplop/react-camera
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Camera extends Component { componentWillMount() { const { video, audio } = this.props; if (navigator.mediaDevices) { navigator.mediaDevices.getUserMedia({ video, audio }) .then((mediaStream) => { this.set...
src/pages/teaching.js
mhelena/helena-martins.com
import React from 'react'; const Teaching = () => ( <div> <h1 id="teaching">Teaching</h1> <ul> <li><strong>Professor in the Mathematics Department in the Universidade Federal de Santa Catarina, Brazil (2012 2013)</strong></li> </ul> <p>During the years of 2012 and 2013 I taught the courses of F...
app/components/profile/profile.js
imankit/dashboard-ui
import React from 'react'; import {connect} from 'react-redux'; import {saveUserImage, deleteUserImage, showAlert, updateUser} from '../../actions'; import ChangeField from './ChangeField'; import FlatButton from 'material-ui/FlatButton' import RefreshIndicator from 'material-ui/RefreshIndicator'; import ReactTooltip ...
src/components/Winner.js
ivangeorgiew/voteApp
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as actions from '../actions'; import '../index.scss'; export default connect(mapStateToProps)(Winner); /* MAP STATE TO PROPS */ function mapStateToProps(state) { return { winner: state.winner || '',...
src/components/BookingSteps.js
qandobooking/booking-frontend
import React, { Component } from 'react'; import classNames from 'classnames'; const steps = [ { text: 'Seleziona data' }, { text: 'Seleziona ora' }, { text: 'Conferma' } ]; export default class BookingSteps extends Component { render() { const { step } = this.props; return ( <...
src/Parser/FeralDruid/Modules/Bleeds/RipUptime.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATIS...
main.js
guilhermebruzzi/mapa-impeachment
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import utils from './utils'; window.initMap = () => { utils.getMarkersFromJsonUrl("mapa-congresso.json", (markers) => { ReactDOM.render(<App markers={markers}/>, document.getElementById('map')); }); };
docs/server.js
roderickwang/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/svg-icons/communication/voicemail.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationVoicemail = (props) => ( <SvgIcon {...props}> <path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3...
docs/server.js
joemcbride/react-playground
import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import httpProxy from 'http-proxy'; import App from './src/App'; import Root from './src/Root'; const rootFactory = React.createFactory(Root); const development = process.env.NODE_ENV !== 'production'; const port = pr...
Realization/frontend/czechidm-core/src/content/identity/contract/IdentityContractDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import _ from 'lodash'; // import * as Basic from '../../../components/basic'; import * as Advanced from '../../../components/advanced'; import * as Utils from '../../../utils'; impor...
src/svg-icons/editor/show-chart.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart = pure(EditorShowChart); EditorShowChart.displayNa...
app/pages/Entities/index.js
aleksandrenko/apollo-cc
import './style.less'; import React from 'react'; const Component = React.createClass({ propTypes: { schema: React.PropTypes.object }, getDefaultProps: function() { return { schema: { types: [] } }; }, render() { var grapqhlNativeTypes = ["Query", "ID", "String", "Query", ...
actor-apps/app-web/src/app/components/modals/EditGroup.react.js
jamesbond12/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { Container } from 'flux/utils'; import Modal from 'react-modal'; import { Styles, TextField } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import { KeyCodes } from 'constants/ActorAppCons...
client/client.js
maielo/techfides_interview
"use strict"; import React from 'react'; import { render } from 'react-dom'; import App from '../components/App.js'; import request from 'superagent'; // TODO: remove me → for testing //window.request = request; render(<App/>, document.getElementById('app'));
imports/ui/components/form/go-to-home-button.js
irvinlim/free4all
import React from 'react'; import IconButton from 'material-ui/IconButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import * as IconsHelper from '../../../util/icons'; const GoToHomeButton = props => ( props.homeLocation ? <FloatingActionButton onTouchTap={ props.goToHomeLoc } > ...
docs/public/static/examples/v40.0.0/tutorial/image-picker-log.js
exponent/exponent
import React from 'react'; import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import * as ImagePicker from 'expo-image-picker'; export default function App() { let openImagePickerAsync = async () => { let permissionResult = await ImagePicker.requestCameraRollPermissionsAsync(); ...
src/ButtonGroup.js
glenjamin/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import { elementType } from 'prop-types-extra'; import { createBootstrapComponent } from './ThemeProvider'; class ButtonGroup extends React.Component { static propTypes = { /** * @default 'btn-group' */...
app/race/group/RaceGroupComponent.js
bverbist/chrono-race
import React from 'react'; import {connect} from 'react-redux'; import {getTeamsOfGroup, isAtLeastOneChronoStartedOfGroup} from '../raceSelectors'; import {startGroupChronos} from '../raceActions'; import RaceTeam from '../team/RaceTeamComponent'; const RaceGroupP = ({ groupNumber, getTeams, isAtLeastOneChronoStar...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/Props.js
popham/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: Props; defaultProps: T; static props: T...
src/pages/index.js
Centrico/centrico
import _ from 'lodash' import React from 'react' import Layout from "../components/layout" import Link from 'gatsby-link' import StrategyHmIcon from '../images/strategy-hm-icon.png' import DesignHmIcon from '../images/design-hm-icon.png' import DevHmIcon from '../images/dev-hm-icon.png' import ContactForm from '../comp...
frontend/src/components/common/rnd/Rotate.js
sunlong/h5
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import store from '../../../store'; import { changeStyle } from '../../../actions/h5Actions'; import './rotate.less'; export default class ReactRnd extends Component { computeDegree = point => { const tempX = this.centerPoint.x - p...
src/client/index.js
Xerios/mobx-isomorphic-starter
import React from 'react' import { render } from 'react-dom' import { Provider } from 'mobx-react' import { Router, RouterContext, browserHistory } from 'react-router' import { createClientState } from './state' import createRoutes from './routes' import autorun from './autorun.js' // Get actions object import actio...
src/react/TimetableTables.js
laundree/laundree
// @flow import React from 'react' import { range } from '../utils/array' import sdk from '../client/sdk' import moment from 'moment-timezone' import type { Machine, Laundry, Booking } from 'laundree-sdk/lib/redux' import ReactGA from 'react-ga' function maxMin (value, max, min) { return Math.max(Math.min(value, max...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Apis.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
node_modules/react-router/es/Prompt.js
together-web-pj/together-web-pj
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
fields/types/select/SelectColumn.js
dvdcastro/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () ...
components/socialIcons.js
halfatheist/halfatheist.github.io
import React from 'react' export default class SocialIcons extends React.Component { render () { return ( <div className="social"> <a title="Follow on Twitter" href='https://www.twitter.com/halfatheist'> <i className="twitter" /> </a> <a title="Follow on Facebook" href='ht...
src/page/about.js
knledg/react-webpack-skeleton
import React from 'react'; import { Page, Panel, Breadcrumbs } from 'react-blur-admin'; import { Link } from 'react-router'; export class About extends React.Component { renderBreadcrumbs() { return ( <Breadcrumbs> <Link to='/'> Home </Link> About </Breadcrumbs> ...
Skins/VetoccitanT3/ReactSrc/node_modules/react-awesome-slider/src/hoc/animated-lettering/hoc.js
MAN-IN-WAN/Kob-Eye
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default function LetteringHoc(WrappedComponent) { return class extends Component { static propTypes = { screens: PropTypes.array.isRequired, }; renderScreens() { return this.props.screens.map((screen, index)...
node_modules/react-bootstrap/es/FormControlFeedback.js
joekay/awebb
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/navbar.js
xorkevin/stratosphere
import React from 'react'; import Container from 'container'; import Anchor from 'anchor'; const scrollTime = 384; const navHeight = 64; const easing = (t)=>{ if(t<.5){ return 4*t*t*t; } else { return (t-1) * (2*t-2) * (2*t-2) + 1; } }; const scrollTo = (element, duration)=>{ const startingY = window...
examples/js/column-filter/all-filters.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; cons...
templates/react-native/components/foo/List.js
api-platform/generate-crud
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { ScrollView, View, Text } from 'react-native'; import { ListItem, Icon } from 'react-native-elements'; import { Actions } from 'react-native-router-flux'; import Spinner from '../Spinner'; import...
react-native-scripts/template/app/screens/index.js
chochihim/create-react-native-app
import React from 'react'; import { View, StatusBar } from 'react-native'; import { TabNavigator, TabBarBottom } from 'react-navigation'; import HomeScreen from './Home'; import SearchScreen from './Search'; import InformationScreen from './Information'; import SettingScreen from './Setting'; import TabBarLabel from ...
src/components/Header/index.js
morrishopkins/test_spa
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import AppBar from 'material-ui/AppBar'; import Avatar from 'material-ui/Avatar'; import LeftNav from 'material-ui/Drawer'; import { List, ListItem ...
public/scripts/containers/ChoiceInput.js
nicrocs/react-form-builder
import React from 'react'; class ChoiceInput extends React.Component{ constructor(props) { super(props); this.addChoiceInput = this.addChoiceInput.bind(this); this.handleTextChange = this.handleTextChange.bind(this); this.removeChoice = this.removeChoice.bind(this); } addChoiceInput() { this....
src/components/About/About.js
amberleyromo/cboard
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Typography from 'material-ui/Typography'; import Paper from 'material-ui/Paper'; import messages from './About.messages'; import FullScreenDialog, { FullScreenDialogContent } from '../FullScreenDialog'; ...
test/test_helper.js
nhantnon/react-yt
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...
src/svg-icons/action/thumbs-up-down.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbsUpDown = (props) => ( <SvgIcon {...props}> <path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1...
app/src/Frontend/modules/weui/pages/icons/index.js
ptphp/ptphp
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import FaBeer1 from 'react-icons/lib/fa/user'; import MdIconPack from 'react-icons/lib/fa/wechat' import {Icon,Ico} from '../../../../index'; import Page from '../../component/page'; import './icons.less'; export default class IconDemo ...
static/src/components/islands/IslandForest.js
andribja/airhornbot
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { number: number, paused: boolean }; export default ({number, paused}: Props): React.Element => { let className = 'island forest'; if (number) { className += `-${number}`; } if (paused) { className += ' paused'; ...
src/svg-icons/device/signal-cellular-2-bar.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M14 10L2 22h12z"/> </SvgIcon> ); DeviceSignalCellular2Bar = pure(DeviceSignalCellular2Bar); Device...
techCurriculum/ui/solutions/3.1/src/App.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * 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 writ...
src/pages/404.js
wdavidw/node-csv-docs
import React from 'react' import Layout from '../layout' const NotFoundPage = () => ( <Layout page={{ title: 'Page not found', description: 'The requested page does not exist', keywords: 'csv, node.js, 404, not found', }} > <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39...
client/src/app-components/topic-viewer.js
opensupports/opensupports
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import classNames from 'classnames'; import {Link} from 'react-router'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import ModalContainer from 'app-components/modal-container'; import TopicEditModal from 'app-...
hero-world/src/index.js
jesuscuesta/course-react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './component/app/App'; import Segundo from './component/segundo/Segundo'; import Tercero from './component/tercero/Tercero'; import Cuarto from './component/cuarto/Cuarto'; import Quinto from './component/quinto/Quinto'; import './index.css'; ...
node_modules/react-taco-table/site/src/components/ExampleHeatmapHighlightOnly.js
Sweetgrassbuffalo/ReactionSweeGrass-v2
import React from 'react'; import { TacoTable, DataType, SortDirection, Formatters, Plugins } from 'react-taco-table'; import cellLinesData from '../data/cell_lines.json'; import * as d3 from 'd3-scale'; /** * An example demonstrating how to add heatmap to cells via * the Heatmap plugin. */ const columns = [ {...
js/components/MainSection.js
rodson/react-es6-flux-todolist
import React from 'react'; import TodoItem from './TodoItem'; import TodoActions from '../TodoActions'; class MainSection extends React.Component { state = { editing: null }; render() { var allTodos = this.props.todos; var filter = this.props.filter; var todoList = []; var activeCount = 0; ...
src/containers/Logout/Logout.js
nbuechler/studious-display
import React, { Component } from 'react'; import { Link } from 'react-router'; import { Button, Jumbotron } from 'react-bootstrap'; class Logout extends Component { render() { return ( <div> <h1>You have done the logout thing</h1> </div> ); } } export default Logout
example/js/container.js
Wildhoney/ReduxLocal
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { component as Counter, resetAction } from './components/counter'; export default connect(state => state)(class extends Component { /** * @method render * @return {XML} */ render() { return ( ...