path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/src/components/OfflineWarning/OfflineWarning.js
otavioarc/freeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import './offline-warning.css'; const propTypes = { isOnline: PropTypes.bool.isRequired, isSignedIn: PropTypes.bool.isRequired }; function OfflineWarning({ isOnline, isSignedIn }) { return !isSignedIn || isOnline ? null : ( <div className='offl...
navigation/MainNavigator.js
nattatorn-dev/expo-with-realworld
import config from 'config' import React from 'react' import { addNavigationHelpers, TabNavigator } from 'react-navigation' import { Icon } from 'react-native-elements' import { Colors } from 'constants' import { resolution } from 'utilities' import { HomeTab, HouseTab, MoresTab, ProductsTab, ServiceTab, } ...
src/js/components/settings/panel/Panel.js
barumel/ultritium-radio-player
import React from 'react'; export class SettingsPanel extends React.Component { constructor() { super(); } /** * Toggle navigation * * @return void */ toggle() { const collapsed = !this.state.collapsed; this.setState({collapsed}); } /** * Lock input fields * * @return voi...
src/entry.js
Almouro/webpack-react-dragula
import 'skeleton'; import './styles/app'; import 'dragula/dist/dragula.min.css'; import React from 'react'; import App from './App'; import dragula from 'dragula'; React.render(<App />, document.getElementsByTagName('body')[0]); dragula([document.querySelector('#first-col')]);
src/components/bank/Testimonials.js
hackclub/website
import React from 'react' import styled from 'styled-components' import { Avatar, Box, Button, Container, Flex, Image, Text, theme } from '@hackclub/design-system' import { Headline, Subhline, Lead } from 'components/Content' import Sheet from 'components/Sheet' import Stat from 'components/Stat' import...
src/index.js
shoegazer/shuffly-now
import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import {createStore, applyMiddleware} from 'redux' import createSagaMiddleware from 'redux-saga' import reducer from './reducers' import App from './components/App' import saga from './sagas' import Weather from './lib/Weath...
client/modules/Post/__tests__/components/PostCreateWidget.spec.js
pucksME/BetterBackPacking
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { FormattedMessage } from 'react-intl'; import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const props = { ...
CoreCRM/ClientApp/src/views/Customer/Pool.js
holmescn/CoreCRM
import React from 'react'; import { connect } from 'dva'; // import styles from './Index.css'; function Pool() { return ( <div>客户管理/客户池</div> ); } Pool.propTypes = { }; export default connect()(Pool);
actor-apps/app-web/src/app/components/common/MessageItem.react.js
vanloswang/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import VisibilitySensor from 'react-visibility-sensor'; import AvatarItem from 'components/common/AvatarItem.react'; import Text from './Text.react'; import Image from './Image.rea...
app/javascript/mastodon/features/hashtag_timeline/index.js
ebihara99999/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../ui/components/column'; import { refreshTimeline, updateTimeline, deleteFromTimelines, } from '../../actions/timelin...
angular2-tour-of-heroes/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
rchcomm/Angular2Tranning
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
gxa/src/main/javascript/bundles/differential-expression/src/tooltip/ContrastInfo.js
gxa/atlas
import React from 'react' import PropTypes from 'prop-types' const ContrastInfoPropertyRow = ({testValue, referenceValue, contrastPropertyType, propertyName}) => { if (!testValue && !referenceValue) { return null } const style = { whiteSpace: `normal`, fontWeight: contrastPropertyType === `FACTOR` ?...
src/main.js
miyanokomiya/b-net
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.scss' import injectTapEventPlugin from 'react-tap-event-plugin'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); // Store Initialization // -...
web/static/app/index.js
jochakovsky/chores
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunkMiddleware from 'redux-thunk'; import createLogger from 'redux-logger'; import choreListApp from './reducers'; import App from './components/App'; cons...
ui/src/pages/settings.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * 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 t...
samples/index.js
ciscospark/react-ciscospark
import React from 'react'; import ReactDOM from 'react-dom'; import './momentum.scss'; import Main from './Main'; ReactDOM.render( <Main />, document.getElementById('main') );
lib/RadioButtonGroup/stories/RadioButtonGroup.stories.js
folio-org/stripes-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import BasicUsage from './BasicUsage'; storiesOf('RadioButtonGroup', module) .add('Basic Usage', () => (<BasicUsage />));
examples/babel-plugin-react-hot/index.js
hoegrammer/redbox-react
import React from 'react' import App from './components/App' const root = document.getElementById('root') React.render(<App />, root)
src/components/SvgIcon/Plus.js
sk-iv/iva-app
import React from 'react'; import SvgIcon from './SvgIcon'; import classNames from 'classnames'; /** * @ignore - internal component. */ let Plus = props => ( <SvgIcon {...props} className={classNames('icon--size24', props.className)}> <path d="M12,0.8v22.5 M0.8,12h22.5"/> </SvgIcon> ); export default Plus;
packages/es-components/src/components/containers/menu/InlineContext.js
TWExchangeSolutions/es-components
import React from 'react'; export const InlineContext = React.createContext(false);
client/App/Members/Filters/index.js
JohannesAnd/SKWebsite
import React from 'react'; import { state, sequences } from 'cerebral'; import { connect } from '@cerebral/react'; import UserLanguage from 'common/UserLanguage'; import { Wrapper, Filter, Input, Text } from './elements'; export default connect( { filters: state.members.filters, setFilter: sequences.member...
src/react.js
srph/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
client/src/app/app.js
FrontSmith/FSFramework
/* global require */ //load CSS assets first require( '../assets/main.css' ); import React from 'react'; import ReactDOM from 'react-dom'; import { Router } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import routes from './routes'; import Debug from 'debug'; import 'utils/...
app/javascript/mastodon/components/status_action_bar.js
narabo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenu from './dropdown_menu'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure...
src/web/forms/fields/AttachmentViewer/ImageThumbnail.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
app/javascript/mastodon/components/column_back_button_slim.js
pso2club/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import ColumnBackButton from './column_back_button'; import Icon from 'mastodon/components/icon'; export default class ColumnBackButtonSlim extends ColumnBackButton { render () { return ( <div className='column-back-button--slim'> ...
src/svg-icons/av/pause-circle-outline.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2...
common/components/TaggedInput.js
ebertmi/webbox
import React from 'react'; import PropTypes from 'prop-types'; const KEY_CODES = { ENTER: 13, BACKSPACE: 8 }; function DefaultTagComponent(props) { const classesStr = props.classes ? (` ${props.classes}`) : ''; const className = `tag${classesStr}`; return ( <div className={className}> <div classN...
packages/veritone-react-common/src/components/SelectionButton/story.js
veritone/veritone-sdk
import React from 'react'; import { storiesOf } from '@storybook/react'; import SelectionButton from './'; class StatefulSelectionButton extends React.Component { state = { selected: false }; toggleSelection = evt => { this.setState((prevState, props) => ({ selected: !prevState.selected })); ...
src/components/Location.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Map from './Map'; import colors from '../constants/colors'; class Location extends React.Component { static propTypes = { location: PropTypes.object, showTitle: PropTypes.bool, }; static defaultProps = { showTitle: true, }; r...
React_Redux/weather_search/src/components/footer.js
awg3/LearnCodeImprove
import React from 'react'; export default (props) => { return( <footer className="footer black-bg-white-text"> <b><h5> Fork me at: &nbsp; <span> <a href="https://github.com/awg3/LearnCodeImprove/tree/master/React_Redux/weather_search">Alan Guerrero</a> </span> </h5><...
Example/index.ios.js
frostney/react-native-bluetooth-state
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, DeviceEventEmitter } from 'react-native'; import BluetoothState from 'react-native-bluetooth-state'; console.log(BluetoothState); c...
src/svg-icons/navigation/chevron-left.js
spiermar/material-ui
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...
src/components/source/PageWrapper.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import Link from 'react-router/lib/Link'; import SourceControlBar from './controlbar/SourceControlBar'; import Permissioned from '../common/Permissioned'; import { PERMISSION_MEDIA_EDIT, PERMISSION_...
src/App.js
emyarod/afw
import React from 'react'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import Header from './components/Header'; import CTA from './components/CTA'; import Footer from './components/Footer'; import routes from './config/routes'; import FourOhFour from './components/404'; const App = () => ( <Bro...
src/components/EntryPage.js
Montana-Code-School/LifeCoach
import React from 'react'; import Login from './Login'; import SignUp from './SignUp'; export default class EntryPage extends React.Component { render() { return( <div className="entry-page"> <div style={{width: "100vw", position: "relative", display:'flex', flexWrap:'wrap', justifyContent:'space-...
src/server.js
stan-kondrat/test-work-for-storia
/*! 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....
src/containers/DevTools/DevTools.js
keshavmesta/techfunnel
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="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
index.js
ruanyl/redux-async-boilerplate
// import css from './static/css/style.css'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; import {combineReducers, applyMiddleware, createStore} from 'redux'; import {Provider} from 'react-redux'; import * as reducers from ...
docs/src/pages/demos/tabs/BasicTabs.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ /* eslint-disable react/no-multi-comp */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Tabs, { Tab } from 'material-ui/Tabs'; function TabContai...
src/components/view-container.component.js
housseindjirdeh/git-point
import React from 'react'; import { StyleSheet, StatusBar, View } from 'react-native'; import { colors } from 'config'; type Props = { barColor: string, children?: React.Element<*>, }; const styles = StyleSheet.create({ viewContainer: { flex: 1, flexDirection: 'column', justifyContent: 'flex-start'...
examples/simple-redux/routes.js
rocjs/roc-package-web-app-react
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Main from './main'; export default () => ( <IndexRoute component={ Main } /> );
src/svg-icons/communication/voicemail.js
nathanmarks/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...
node_modules/react-bootstrap/es/FormGroup.js
WatkinsSoftwareDevelopment/HowardsBarberShop
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 ...
packages/react-server-website/components/page-title.js
redfin/react-server
import PropTypes from 'prop-types'; import React from 'react'; import { Component } from 'react'; import './page-title.less'; export default class PageTitle extends Component { render() { let ctas; if (this.props.viewSourceUrl || this.props.serverVersion) { let viewSourceLink; let serverVersionDiv; if ...
React Nanodegree /P3 - Mobile Flashcards/src/components/Loader.js
manishbisht/Udacity
import React from 'react'; import { View, Text } from 'react-native'; const Loader = ({message = "Loading"}) => { return ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Text>{message}</Text> </View> ); }; export default Loader
client/src/templates/Challenges/components/VideoModal.js
BhaveshSGupta/FreeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Modal } from '@freecodecamp/react-bootstrap'; import ga from '../../../analytics'; import { closeModal, isVideoModalOpenSelector } from '../redux'; ...
src/scripts/student-profile/js/app/components/schedule/GradeList.js
IronCountySchoolDistrict/student-profile
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Grade from './Grade'; export default class GradeList extends Component { render() { const emptyClass = 'col-md-1 col-1 grade-container'; const grades = this.props.uniqueTerms.map(term => { if (Object.keys(this.props.gr...
src/server.js
krolow/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; im...
packages/material-ui-icons/src/Place.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Place = props => <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /...
entry_types/scrolled/package/src/frontend/ContentElementBox.js
codevise/pageflow
import React from 'react'; import styles from './ContentElementBox.module.css'; /** * Wrap content element that render a visible box in this component to * apply theme specific styles like rounded corners. * * @param {Object} props * @param {string} props.children - Content of box. */ export function ContentEle...
docs/src/app/components/pages/components/IconMenu/ExampleControlled.js
owencm/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import RaisedButton from 'material-ui/RaisedButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import ContentFilter from 'mat...
packages/component/src/Middleware/Avatar/createCoreMiddleware.js
billba/botchat
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import ImageAvatar from '../../Avatar/ImageAvatar'; import InitialsAvatar from '../../Avatar/InitialsAvatar'; import useStyleSet from '../../hooks/useStyleSet'; import useStyleToEmotionObject from '../../hooks/internal/...
examples/_drag-around-naive/index.js
RallySoftware/react-dnd
'use strict'; import React from 'react'; import LinkedStateMixin from 'react-addons-linked-state-mixin'; import Container from './Container'; import { Link } from 'react-router'; const DragAroundNaive = React.createClass({ mixins: [LinkedStateMixin], getInitialState() { return { hideSourceOnDrag: false...
docs/src/examples/views/Advertisement/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import Types from './Types' import Variations from './Variations' const AdvertisementExamples = () => ( <div> <Types /> <Variations /> </div> ) export default AdvertisementExamples
src/client/auth/requireauth.react.js
terakilobyte/socketreact
import Component from '../components/component.react'; import React from 'react'; import {userCursor} from '../state'; // Higher order component. // https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750 export default function requireAuth(BaseComponent) { class Authenticated...
src/universalRouter.js
Cspeisman/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from './views/createRoutes'; import { Provider } from 'react-redux'; const getFetchData = (component={}) => { return component.DecoratedComponent ? getFetchData(component.DecoratedComponent) : component.fetchData; }; export fu...
app/jsx/shared/date-utils.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
sms_sponsorship/webapp/src/components/ChildCard.js
maxime-beck/compassion-modules
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import CardHeader from '@material-ui/core/Car...
src/client/now/components/section-filter.js
michigan-com/nova
'use strict'; import React from 'react'; import Store from '../store'; import { sectionSelect } from '../actions/filters'; // This ended up being much less complicated than initially anticipated export default class SectionFilter extends React.Component { toggleFilter = () => { Store.dispatch(sectionSelect(this.p...
src/components/Dropzone.js
jekyll/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import ReactDropzone from 'react-dropzone'; import FilePreview from './FilePreview'; import Splitter from './Splitter'; import Icon from './Icon'; export class Dropzone extends Component { openDropzone() { t...
[3]. Demo_native/rn_into_ios/node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js
knightsj/RN_Demo
'use strict'; import React, { Component } from 'react'; import { Image, Platform, StyleSheet, } from 'react-native'; import ListItem from '../../components/ListItem'; import WelcomeText from './WelcomeText'; export default class WelcomeScreen extends Component { static navigationOptions = { title: 'Welc...
react-flux-mui/js/material-ui/src/svg-icons/notification/event-note.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEventNote = (props) => ( <SvgIcon {...props}> <path d="M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v...
containers/App.js
knowbody/react-redux-boilerplate
// import React, { Component } from 'react'; // import SomeApp from './SomeApp'; // import { createStore, combineReducers } from 'redux'; // import { Provider } from 'react-redux'; // import * as reducers from '../reducers'; // const reducer = combineReducers(reducers); // const store = createStore(reducer); // expor...
app/components/Icons/icons/icon-box.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; function IconBox() { return ( <svg version="1.1" id="icon-box" x="0px" y="0px" viewBox="-41 164.9 512 512"> <g> <g> <path d="M458.3,530.7h-19.6v-31.1c0-37.6-30.7-68.3-68.3-68.3s-68.3,30.7-68.3,68.3v31.1h-19.6c-6.9,0-12.6,5.7-12.6,12.6v113.5c0,6.9,5.7,12.6,12.6,1...
src/modules/dashboard/components/LineBarAreaComposedChart/index.js
burakince/d3js-react-examples
import React, { Component } from 'react'; import { ResponsiveContainer, ComposedChart, Line, Area, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import datas from './datas'; class LineBarAreaComposedChartComponent extends Component { render() { return ( <ResponsiveContainer minWidth...
docs/src/app/components/pages/components/Toolbar/Page.js
pomerantsev/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import toolbarReadmeText from './README'; import toolbarExampleSimpleCode from '...
src/modules/forms/plugins/RetryPlugin/RetryPlugin.js
hellofresh/janus-dashboard
import React from 'react' import PropTypes from 'prop-types' import { Field } from 'redux-form' import block from '../../../../helpers/bem-cn' import Row from '../../../Layout/Row/Row' import Label from '../../../../components/Label/Label' import Input from '../../../inputs/Input' import ControlBar from '../ControlBa...
src/parser/priest/discipline/modules/spells/Contrition.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import StatTracker from 'parser/shared/modules/StatTracker'; import { TooltipElement } from 'common/Tooltip'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatPercentag...
src/Help.js
holden-caulfield/redux-workshop
import React from 'react'; import Markdown2HTML from 'react-markdown-to-html'; var Help = React.createClass({ getInitialState: function() { return {visibility: 'hidden'}; }, showHelp: function() { this.setState({visibility: 'shown'}); }, hideHelp: function() { this.setState({visibility: 'hidden...
Example/RNRichTextEditor/index.ios.js
HoneyBook/react-native-richtext-editor
/** * react-native-richtext-editor Example * https://github.com/HoneyBook/react-native-richtext-editor * HoneyBook Inc. * @flow */ import React, { Component } from 'react'; var HBRichTextEditor = require('react-native-richtext-editor'); var HBToolbar = require('react-native-richtext-editor/HBToolbar'); import Key...
src/TotalWidget.js
MichaelKohler/where
import React from 'react'; import PropTypes from 'prop-types'; // eslint-disable-line import/no-extraneous-dependencies import './scss/widget.scss'; const TotalWidget = ({ color, totals }) => { let sectionClasses = 'card vertical'; if (color) { sectionClasses += ` ${color}`; } return ( <section classN...
node_modules/react-router/es6/RouteContext.js
tousif101/YouTube-Clone-React
import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent trans...
app/components/Left/Nav.js
SpotifiyOrganization/spotifyHack
import React from 'react'; import { Menu, MenuItem } from 'material-ui'; import { Link } from 'react-router-dom'; import { Row, Col } from 'react-materialize'; const Nav = () => { return ( <Menu style={{width: '300px'}} menuItemStyle={{color: 'white'}}> <MenuItem containerElement={<Link to="/" />} primaryText="H...
src/app/core/atoms/icon/icons/alcohol.js
blowsys/reservo
import React from 'react'; const Alcohol = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M9.99179951,9.5597843 L11,3 L13.001,3 L14.0088004,9.5601353 C15.1949834,10.2542869 16,11.5266408 16,13 L12,13 L12,18 L16,18 L16,21 L8,21 L8,13 C8,11.5263924 8.80528801,10.253858 9.99179951,9.5597843 L9.99179951,9.55...
src/quest/index.js
tomalexing/QQ
import React from 'react'; import Q from './../../components/Q' import Layout from "./../../components/Layout" export default class Quest extends React.Component{ constructor(props){ super(props) } render(){ var quizTest = { 'cartQuest': { question: "хорош...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
gutenye/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(limit) { let i = 1; while (i <= limit)...
src/containers/HomePage/index.js
ghrecommender/ghrecommender-frontend
// @flow strict import React from 'react' import { Button, Container, Header, Icon, Menu, Segment, Responsive } from 'semantic-ui-react' import { Link } from 'react-router-dom' import Footer from '../../components/Footer' import Background from '../../components/Background' import StatisticGroups from '../../componen...
src/templates/bulk.js
haroldhues/kopacznursery
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { graphql } from 'gatsby' import { Layout } from '../components/Layout' import { HTMLContent, Content } from '../components/Content' export const BulkTemplate = ({ content, contentComponent, image, scoopprice,...
src/main/js/admin/modules/home/HttpTrace.js
chaokunyang/amanda
import React, { Component } from 'react'; import moment from 'moment'; function HttpTrace(props) { let trs = []; if(props.trace.length > 0) { trs = props.trace.slice(0, 15).map(item => <tr key={item.timestamp + item.info.path}> <td>{moment(item.timestamp).format('YYYY/MM/DD ...
addons/a11y/.storybook/components/Image/component.js
rhalff/storybook
import React from 'react'; import PropTypes from 'prop-types'; function Image({ src, alt, presentation }) { return <img src={src} alt={alt} role={presentation && 'presentation'} />; } Image.propTypes = { src: PropTypes.string.isRequired, alt: PropTypes.string, presentation: PropTypes.bool, }; Image.defaultPr...
src/containers/HomePage/index.js
skyuplam/mark-six-betting-game
import React from 'react'; import { connect } from 'react-redux'; // import Griddel from 'griddle-react'; import { createStructuredSelector } from 'reselect'; import { injectIntl } from 'react-intl'; import { isEmpty, } from 'lodash'; import { fetchDraws, } from '../App/actions'; import { selectDraws, } from '../...
src/svg-icons/content/unarchive.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentUnarchive = (props) => ( <SvgIcon {...props}> <path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4...
src/components/Form/DetailContent/DetailContent.js
hahoocn/hahoo-admin
import React from 'react'; import styles from './DetailContent.css'; class DetailContent extends React.Component { static propTypes = { children: React.PropTypes.node, className: React.PropTypes.string } state = {} render() { const { children, className, ...rest } = this.props; return ( ...
fixtures/packaging/systemjs-builder/prod/input.js
syranide/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
packages/icons/src/md/action/Cached.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdCached(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38 16l-8 8h6c0 6.63-5.37 12-12 12-2.03 0-3.93-.51-5.61-1.39l-2.92 2.92C17.95 39.08 20.86 40 24 40c8.84 0 16-7.16 16-16h6l-8-8zm-26 8c0-6.63 5.37-12 1...
src/svg-icons/action/https.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
test/fixtures/forward-ref-inline/expected.js
layershifter/babel-plugin-transform-react-handled-props
import PropTypes from 'prop-types'; import React from 'react'; const Example = React.forwardRef(() => { return <div />; }); Example.handledProps = ["active", "children", "className"]; Example.defaultProps = { active: true }; Example.propTypes = { children: PropTypes.node, className: PropTypes.string }; export d...
app/components/LoginForm.js
rick-maclean/wbt-canada-stmts-electron-react-simmering
// @flow import React, { Component } from 'react'; // import PropTypes from 'prop-types'; // import { Link } from 'react-router-dom'; // import styles from './LoginForm.css'; class LoginForm extends Component { props: { onTryText: () => void, onChangeTextToHome: () => void, textToHome: string }; st...
examples/src/components/MultiSelectField.js
jo-asakura/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var MultiSelectField = React.createClass({ displayName: 'MultiSelectField', propTypes: { label: React.PropTypes.string, ...
src/components/SegmentedControl.js
VictorBjelkholm/elemental
import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'SegmentedControl', propTypes: { className: React.PropTypes.string, equalWidthSegments: React.PropTypes.bool, onChange: React.PropTypes.func.isRequired, options: React.PropTypes.array.isRequired...
packages/mineral-ui-icons/src/IconDirections.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconDirections(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
public/jspm_packages/npm/react-router@2.0.0/es6/Redirect.js
nayashooter/ES6_React-Bootstrap
/* */ "format cjs"; 'use strict'; import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './PropTypes'; var _React$PropTypes = React.PropTypes; var ...
modules/gui/src/widget/tabs/tabContent.js
openforis/sepal
import {Enabled} from 'store' import {PortalContainer, PortalContext} from 'widget/portal' import {TabContext} from './tabContext' import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' import styles from './tabContent.module.css' export class TabContent extends React.PureComponent { r...
src/ButtonToolbar.js
pandoraui/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
node_modules/react-bootstrap/es/Radio.js
firdiansyah/crud-req
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 ...
assets/jqwidgets/demos/react/app/datatable/aggregatestemplate/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let data = generatedata(200); let source = { localData: data, dataType...
src/Transition.js
simonliubo/react-ui
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import classnames from 'classnames'; export const UNMOUNTED = 0; export const EXITED = 1; export const ENTERING = 2; export const ENTERED = 3; export const EXITING = 4; class Transition extends React.Component { constructor(props, c...
app/javascript/mastodon/features/standalone/compose/index.js
Kirishima21/mastodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; import ModalContainer from '../../ui/containers/mo...
examples/todomvc/containers/TodoApp.js
AVert/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...