path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
fields/types/select/SelectFilter.js
webteckie/keystone
import React from 'react'; import { Checkbox, FormField, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; function getDefaultValue () { return...
client/app/main.js
pho3nixf1re/fullstack-workshop
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { AppContainer as HotLoaderContainer } from 'react-hot-loader' import store from './store' import { bindToStore } from './actions' import Root from './components/Root' bindToStore(store) store.trigger('todos:fetchAll') cons...
app/javascript/mastodon/components/button.js
verniy6462/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
app/components/Toggle/index.js
spiridonov-oa/management-tool
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
examples/js/selection/only-show-selected-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
itsacloudlife/itsacloudlife.github.io
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
wail-ui/childWindows/settings/settingsW.js
N0taN3rd/wail
import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import SettingsForm from './settingsForm' window.React = React injectTapEventPlugin() ReactDOM.render( <SettingsForm />, document.getElementById('settings'))
app/js/sign-up/views/_email.js
blockstack/blockstack-browser
/** * Email / Backup ID page * * This screen is our current backup option (email) * This might change to other options outside of just email (eg phone, download, etc) */ import React from 'react' import { ShellScreen, Type } from '@blockstack/ui' import Yup from 'yup' import PropTypes from 'prop-types' const vali...
frontend/src/components/dialog/invite-people-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Utils } from '../../utils/utils'; import { gettext } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import { Modal, ModalHeader, ModalBody, ModalFooter, Input, Button } from 'reactstrap'; import toaster from '.....
wwwroot/app/src/components/base/icons/RemoveIcon/index.js
AlinCiocan/PlanEatSave
import React from 'react'; import removeIcon from './remove-icon.svg'; const RemoveIcon = (props) => { let other = {}; if(props.onClick) { other.onClick = props.onClick; } return ( <img src={removeIcon} className={props.className} alt={props.alt ||...
templates/rubix/rails/rails-seed/src/common/footer.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Grid, } from '@sketchpixy/rubix'; export default class Footer extends React.Component { state = { version: 0 }; componentDidMount() { this.setState({ version: document.body.getAttribute('data-version') }); } render() { var year = ne...
src/interface/common/DelayRender.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class DelayRender extends React.PureComponent { static propTypes = { delay: PropTypes.number.isRequired, children: PropTypes.node.isRequired, fallback: PropTypes.node, }; state = { timerExpired: false, }; timer = null; construc...
front/src/index.js
pei0804/goa-spa-sample
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
docs/src/app/components/pages/customization/Themes.js
pradel/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import muiThemeable from 'material-ui/styles/muiThemeable'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import styleResizable from 'material-ui/utils/styleResizable'; import typograph...
test/helpers/shallowRenderHelper.js
neoyoun/gallery-with-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/client/components/LocationView.js
ZeusTheTrueGod/background-geolocation-console
// @flow import React from 'react'; import { createSelector } from 'reselect'; import { AppBar, Card } from 'react-toolbox'; import Styles from '../assets/styles/app.css'; import _ from 'lodash'; import { connect } from 'react-redux'; import { type Location, unselectLocation } from '~/reducer/dashboard'; import { ty...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter = (props) => ( <SvgIcon {...props}> <path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> ...
src/components/Dispatch/index.js
nadavspi/UnwiseConnect
import './dispatch.scss'; import * as UserActions from '../../actions/user'; import * as resolve from 'table-resolver'; import * as searchtabular from 'searchtabular'; import Fields from './Fields'; import JSONPretty from 'react-json-pretty'; import Queue from './Queue'; import React, { Component } from 'react'; import...
src/components/post/index.js
villamil/rocket-app
import React from 'react'; import Image from '../image'; import Controls from '../controls'; export default class Post extends React.Component { render() { return ( <div> <h1>{this.props.post.title}</h1> <Image image={this.props.post.image}/> <Con...
containers/AddLocationDialog.js
argelius/react-onsenui-redux-weather
import React from 'react'; import {findDOMNode} from 'react-dom'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import { AlertDialog, Input } from 'react-onsenui'; import * as Actions from '../actions'; const AddLocationDialog = ({isOpen, actions}) => { let input; const hand...
docs-ui/components/seenByList.stories.js
mvaled/sentry
import React from 'react'; import {number, string} from '@storybook/addon-knobs'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import SeenByList from 'app/components/seenByList'; const USER = { id: 1, name: 'Jane Doe', email: 'janedoe@example.com', }; // eslint-di...
server/sonar-web/src/main/js/main/nav/settings/settings-nav.js
abbeyj/sonarqube
import React from 'react'; import LinksMixin from '../links-mixin'; export default React.createClass({ mixins: [LinksMixin], getDefaultProps() { return { extensions: [] }; }, render() { return ( <div className="container"> <ul className="nav navbar-nav nav-crumbs"> {this...
src/pages/blog.js
getinsomnia/insomnia.rest
import React from 'react'; import { graphql } from 'gatsby'; import Link from '../components/link'; import BlogPostLink from '../components/blog-post-link'; import {links} from '../config'; export default ({data: {allFile: {edges}}}) => ( <React.Fragment> <header className="header--big container"> <h1>Welc...
src/icons/AndroidTextsms.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidTextsms extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M408,64H96c-22.002,0-32,17.998-32,40v344l64-64h280c22.002,0,40-17.998,40-40V104C448,81.998,430.002,64,408,64z...
admin/frontend/index.js
latteware/marble-seed
import React from 'react' import ReactDOM from 'react-dom' import Router from './router' import './styles/index.scss' const render = (Root) => { ReactDOM.render(Root, document.getElementById('root')) } if (module.hot) { module.hot.accept('./router.js', function (Root) { const Router = require('./router') ...
src/window/index.js
kazet15/pulsar-charts
'use strict'; import '../set-cwd'; import React from 'react'; import ReactDOM from 'react-dom'; import config from 'config'; import Grid from './grid'; import { setTitle } from './helpers'; export default () => { const { channels, samples, frequency } = config.get('receiver'); setTitle(`Pulsar Charts - ${channels...
modules/RouteContext.js
nvartolomei/react-router
import warning from './routerWarning' import React from 'react' const { object } = React.PropTypes /** * 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 transitio...
modules/RouterContextMixin.js
jepezi/react-router
import React from 'react'; import invariant from 'invariant'; import { stripLeadingSlashes, stringifyQuery } from './URLUtils'; var { func, object } = React.PropTypes; function pathnameIsActive(pathname, activePathname) { if (stripLeadingSlashes(activePathname).indexOf(stripLeadingSlashes(pathname)) === 0) retu...
internals/templates/appContainer.js
bluce1017/betterthangoodell
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
react-js/redux-thunk/test/test_helper.js
vanyaland/react-demos
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/routes/Onboard/components/OnboardSteps.js
TheTorProject/ooni-wui
import React from 'react' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import Welcome from './Welcome' import UnderstandTheLaws from './UnderstandTheLaws' import SetupSharing from './SetupSharing' import SetupYourTests from './SetupYourTests' import Quiz from './Quiz' import StepIndicator f...
ajax/libs/recompose/0.20.2/Recompose.js
him2him2/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
app/javascript/mastodon/features/following/index.js
alarky/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchAccount, fetchFollowing, expandFollowing, } from '../../actions/account...
docs/src/app/components/pages/components/Table/Page.js
ngbrown/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 tableReadmeText from './README'; import TableExampleSimple from './Exampl...
node_modules/native-base/src/basic/FooterTab.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class FooterTab extends Component { render() { return ( <View ref={c => this._root = c} {...this.props}> {...
src/native/auth/Email.js
sikhote/davidsinclair
// @flow import type { State } from '../../common/types'; import React from 'react'; import buttonsMessages from '../../common/app/buttonsMessages'; import emailMessages from '../../common/auth/emailMessages'; import { Box, Button, Heading, Text, TextInput } from '../../common/components'; import { compose } from 'ramd...
src/modules/community/containers/RecentActivityListContainer/RecentActivityListContainer.js
CtrHellenicStudies/Commentary
import React from 'react'; import { compose } from 'react-apollo'; // component import RecentActivityList from '../../components/RecentActivityList'; // graphql import commentsRecent from '../../../comments/graphql/queries/commentsRecent'; const RecentActivityListContainer = props => { let comments = []; if ( ...
src/js/components/dashboard/widgets/baseWidget.js
michaelatmender/gui
import React from 'react'; import Paper from '@mui/material/Paper'; export const styles = { rowStyle: { display: 'flex', flexDirection: 'row' }, columnStyle: { display: 'flex', flexDirection: 'column' }, rightAlign: { alignItems: 'flex-end' }, leftAlign: { alignItems: 'flex-start'...
src/components/source/collection/form/CollectionForm.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { reduxForm } from 'redux-form'; import { Row, Col } from 'react-flexbox-grid/lib'; import withIntlForm from '../../../common/hocs/IntlForm'; import AppButton from '../../../common/AppButton'; import Collectio...
src/Components/ListCorridas.js
pedrobertao/CorridaGeneciadorBertao
import React from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import AppBar from 'material-ui/AppBar' import BottomNavigation from 'material-ui/BottomNavigation' import Avatar from 'ma...
src/templates.js
MrTraan/react-cli
'use strict' const componentTemplate = `'use strict' import React from 'react'; export default class %S extends React.Component { } ` const formTemplate = `'use strict' import React from 'react'; export default class %S extends React.Component { state = { %defaultState% } handleSubmit = (e) => { e.preve...
docs/app/Examples/elements/Loader/Variations/LoaderExampleInline.js
aabustamante/Semantic-UI-React
import React from 'react' import { Loader } from 'semantic-ui-react' const LoaderExampleInline = () => ( <Loader active inline /> ) export default LoaderExampleInline
src/components/Overlay/Overlay.js
krizkasper/react-redux-kriz
import React from 'react'; import './Overlay.scss'; export const Overlay = () => ( <div className="overlay"> Overlay </div> ); export default Overlay;
src/user/UsersList.js
p0o/react-redux-firebase-chat
import React, { Component } from 'react'; import { addConnectedUser } from './usersActions'; export default class UsersList extends Component { componentDidMount() { firebase.database().ref('users').on('child_added', (snapshot) => { this.props.dispatch( addConnectedUser({ uid: snapshot.ke...
docs/src/GettingStartedPage.js
egauci/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import Anchor from './Anchor'; export default class Page extends React.Component { render() { return ( <div> <NavMa...
components/rsvp-wrap/test.js
joeybaker/rachelandjoey
import test from 'tape' import React from 'react' import {addons} from 'react/addons' import RsvpWrap from './index.jsx' const {TestUtils} = addons const {Simulate, renderIntoDocument, isElement, createRenderer} = TestUtils const getReactNode = (dom, node) => TestUtils.findRenderedDOMComponentWithTag(dom, node) const g...
src/components/ReplPreferences.js
antonyr/Mancy
import React from 'react'; import _ from 'lodash'; import ReplPreferencesStore from '../stores/ReplPreferencesStore'; import ReplStatusBarActions from '../actions/ReplStatusBarActions'; import ReplFontFamily from './ReplFontFamily'; import ReplPageZoom from './ReplPageZoom'; let langs = { js: 'JavaScript', ls: 'Li...
src/components/finder/FinderSection.js
chrisrzhou/interviews
import React from 'react'; import './Finder.css' const FinderSection = ({ label, children, }) => ( <div className="Finder-section"> <div className="Finder-label"> {label} </div> {children} </div> ); export default FinderSection;
node_modules/react-router/es6/IndexLink.js
Starnes81/ReduxBlogTut
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; }; import React from 'react'; import Link from './Link'; /** *...
website/src/components/tutorials.js
spacy-io/thinc
import React from 'react' import Link from './link' import { H2 } from './typography' import Icon from './icon' import { isTrue } from '../util' import ColabBadge from '../images/colab-badge.svg' import TUTORIALS from '../../docs/_tutorials.json' import classes from '../styles/tutorials.module.sass' export const ROOT...
app/components/content/steps/index-step.js
awebfactory/react-pathways
import React from 'react'; class IndexStep extends React.Component { render() { return ( <div className="page-header awf-header"> <h2>'Steps to achieve path goal.'</h2> </div> ); } } export default IndexStep;
src/svg-icons/av/album.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAlbum = (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 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/ModalHeader.js
OpenKGB/webcode
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 ...
src/svg-icons/device/add-alarm.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAddAlarm = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4....
assets/jqwidgets/demos/react/app/chart/greyscaleseries/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; class App extends React.Component { componentDidMount() { let groups = this.refs.myChart.seriesGroups(); ...
src/ModalBody.js
erictherobot/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.prop...
src/Documents.js
oVirt/ovirt-engine-api-explorer
/* Copyright (c) 2016-2017 Red Hat, 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 to in writing, sof...
website/src/components/PluginIcon.js
atomiks/tippyjs
import React from 'react'; import Icon from './Icon'; import Tippy from './Tippy'; import plugin from '../images/plugin.svg'; const description = 'Requires importing its plugin when using modules'; function RenderIcon({large}) { return ( <Tippy content={ <> <strong>Plugin:</strong> {des...
js/components/PluginListItem/index.js
mxstbr/postcss.parts
import React from 'react'; import Wrapper from './Wrapper'; import Name from './Name'; import Description from './Description'; import Stars from './Stars'; const PluginListItem = ({ url, name, description, stars }) => { return ( <Wrapper href={url}> <Stars>{stars}</Stars> <Name>{name}</Name> ...
clients/packages/admin-client/src/mobrender/widgets/donations/component.js
nossas/bonde-client
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, intlShape, injectIntl } from 'react-intl'; import { FormGroup, ControlLabel, HelpBlock, FormControl, RadioGroup, Radio, } from '../../../components/forms'; import { SettingsForm } from '../../../ux/components'; import...
imports/client/ui/pages/About/SecondSection/index.js
mordka/fl-events
import React from 'react' import { Container, Row, Col } from 'reactstrap' import i18n from '/imports/both/i18n/en' import DCSLink from '/imports/client/ui/components/DCSLink/index.js' import './styles.scss' const { title, content } = i18n.About.second_section const { first, second, third, fourth, fifth, y...
src/layout-v2/main-content/units.js
bblassingame/at-home-climate-website
import React from 'react' import StorageIcon from './storage-icon-2.png' const Units = () => { return ( <div className='mc-sub-panel'> <img className='mc-sub-panel-img' src={StorageIcon} alt='storage unit icon indicating information about available storage units' /> <div className='mc-sub-panel-head...
node_modules/re-base/examples/firestore/github-notetaker/app/components/Profile.js
aggiedefenders/aggiedefenders.github.io
import React from 'react'; import Repos from './Github/Repos'; import UserProfile from './Github/UserProfile'; import Notes from './Notes/Notes'; import helpers from '../utils/helpers'; import base from '../rebase'; import PropTypes from 'prop-types'; console.log( 'Please change to your own firebase address in app/c...
src/dumb/editor/custom_field/preview_templates/TextStringPreviewTemplate.js
jeckhummer/wf-constructor
import React from 'react'; import {Form} from "semantic-ui-react"; export const TextStringPreviewTemplate = ({label}) => { return ( <Form> <Form.Input label={label || "[NO TEXT PROVIDED]"}/> </Form> ); };
src/js/Main/components/Footer.js
fr3nchN/proactive
import React from 'react' import { Link } from 'react-router-dom' import links from "./../links" const Footer = () => ( <footer> <div className="container pt-2"> <ul className="nav justify-content-center"> <li className="nav-item"> <a className="nav-link"> ...
node/client/src/main.js
wasong/cmpt433
import React from 'react' import { render } from 'react-dom' import { AppContainer } from 'react-hot-loader' import FastClick from 'fastclick' import injectTapEventPlugin from 'react-tap-event-plugin' import App from './App' import { configureStore } from './store' import './app.css' import './normalize.css' // socke...
components/Login.js
jepz20/coffee_tracker
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../actions'; import RaisedButton from 'material-ui/RaisedButton'; import FontIcon from 'material-ui/FontIcon'; import Divider from 'material-ui/Divider'; import Paper from 'material-ui/Paper'; import authStyles from '../styles/a...
src/main/components/AWAddSoiree.js
corbig/AfterWorkManager
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import Add from 'material-ui/svg-icons/content/add'; import Container from 'muicss/lib/react/container'; import Row from 'muicss/lib/r...
src/svg-icons/action/thumb-down.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbDown = (props) => ( <SvgIcon {...props}> <path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.5...
src/Notification/TextLabel/TextLabel.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../../Label'; const TextLabel = ({children}) => ( <Label appearance="T1.2" dataHook="notification-label" > {children} </Label> ); TextLabel.propTypes = { children: PropTypes.any }; TextLabel.displayName = 'Notification.TextLa...
src/react/index.js
madole/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';
examples/real-world/index.js
ide/redux
import 'babel-core/polyfill' import React from 'react' import { render } from 'react-dom' import Root from './containers/Root' import configureStore from './store/configureStore' const store = configureStore() render( <Root store={store} />, document.getElementById('root') )
packages/react-error-overlay/src/containers/StackFrame.js
digitalorigin/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import CodeBlock from './StackFrameCodeBlock'; import { getPrettyURL } from '../ut...
src/Parser/Core/Modules/Items/Legion/Legendaries/PrydazXavaricsMagnumOpus.js
enragednuke/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHealingDone'; /** * Prydaz, Xavaric's Magnum Opus - * Equip: Every 30 sec, gai...
docs/src/app/components/pages/components/Tabs/ExampleIconText.js
pancho111203/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import FontIcon from 'material-ui/FontIcon'; import MapsPersonPin from 'material-ui/svg-icons/maps/person-pin'; const TabsExampleIconText = () => ( <Tabs> <Tab icon={<FontIcon className="material-icons">phone</FontIcon>} label="RE...
js/App/Components/CustomerSupport/RequestSupportScreen.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
packages/storybook/utils/getPropTables.js
iCHEF/gypcrete
import React from 'react'; import { withInfo } from '@storybook/addon-info'; const DEFAULT_OPTIONS = { source: false, }; const EMPTY_COMPONENT = () => <div />; export function getAddonOptions(components = []) { return { ...DEFAULT_OPTIONS, propTables: components, }; } function getPropTables(components,...
Libraries/Text/Text.js
Bhullnatik/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...
assets/search-employee-view/components/Search.js
janta-devs/nyumbani
import React, { Component } from 'react'; import { Link, Match } from 'react-router'; import TopActionComponent from './TopActionComponent'; import ResultTable from './ResultTable'; import SearchBar from './SearchBar'; import NoSearchResult from './NoSearchResult'; import PostJobComponent from './PostJobComponent'; ...
public/js/cat_source/es6/components/outsource/AssignToTranslator.js
matecat/MateCat
import React from 'react' import Cookies from 'js-cookie' import GMTSelect from './GMTSelect' import CommonUtils from '../../utils/commonUtils' class AssignToTranslator extends React.Component { constructor(props) { super(props) this.state = { timezone: Cookies.get('matecat_timezone'), } } sh...
src/components/Form/Submit/Spinner/index.js
Kalcode/Gatsby-Boilerplate
import React from 'react' import styles from './styles.module.scss' export default function Spinner(props) { return ( <div className={styles.spinner} /> ) }
src/svg-icons/av/branding-watermark.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvBrandingWatermark = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/> </SvgIcon> ); AvBrandingWatermark = pure(AvBran...
docs/app/client.js
tercenya/compendium
import CodeMirror from 'codemirror'; import 'codemirror/addon/runmode/runmode'; import 'codemirror/mode/jsx/jsx'; import { browserHistory } from 'react-router' import React from 'react'; import ReactDOM from 'react-dom'; import {Router} from 'react-router'; import Root from './src/Root'; import routes from './src/Rou...
jenkins-design-language/src/js/components/material-ui/svg-icons/file/create-new-folder.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const FileCreateNewFolder = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/> </SvgIcon> ); FileCreateNewFolder.disp...
src/app/component/checkout-step/checkout-step.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import noop from 'lodash/noop' import propTypes from '../../prop-types' import cn from '../../lib/class-names' import Icon from '../icon/icon' import doneIcon from '../../../asset/icon/checked.svg' const CheckoutSteps = ({ classNames, label, index, ...
src/components/planetdef.js
alexsincai/star-system-map-generator
import util from '../helpers/util'; import React from 'react'; const makeRing = ( planetRadius, ringWidth ) => { const width = util.map( ringWidth, 0, 100, 0, planetRadius ); const center = planetRadius * 2.5; const outer = center + ( width * 0.5 ); const inner = center - ( width * 0.5 ); return [ 'M', -outer,...
src/components/AddUserForm/AddUserForm.js
labzero/lunch
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { intlShape } from 'react-intl'; import Button from 'react-bootstrap/lib/Button'; import Col from 'react-bootstrap/lib/Col'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import FormControl from 'react-bootstrap/lib/Form...
index.js
georgeF105/handball-scoring
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from './app/redux/store' import routes from './app/components/routes' import { fetchGames } from './app/redux/gamesActions' import { fetchTeams } from './app/redux/teamsActions' import { fetchPlaye...
node_modules/antd/es/tooltip/index.js
prodigalyijun/demo-by-antd
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import ProviderFieldFormGroup from 'Components/Form/P...
src/client/client.prod.js
nanopx/universal-react-redux-hapi
import React from 'react'; import ReactDOM from 'react-dom'; import { RouterProvider } from 'react-router5'; import configureStore from '../store/configureStore'; import { Provider } from 'react-redux'; import createRouter from '../createRouter'; import Root from '../Root'; import ReduxResolver from '../lib/univ...
src/components/nav_bar_component.js
allenyin55/reading_with_Annie
import React from 'react'; import { Button } from 'react-bootstrap'; import { Link } from 'react-router'; const NavBar = ({profile, logOut}) =>{ const navStyle = { width: 85+"%", height: 4+"rem", background: "#fff", borderTop: 1 + "px solid #cfcfcf", borderBottom: 1 +"px solid #cfcfcf", posi...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js
Antontsyk/react_vk
import React from 'react' import tiniestCat from './assets/tiniest-cat.jpg' export default () => ( <img id="feature-image-inclusion" src={tiniestCat} alt="tiniest cat" /> )
ui/app/components/main_panel/email_section.js
leapcode/bitmask-dev
import React from 'react' import { Button, Glyphicon, Alert, ButtonToolbar } from 'react-bootstrap' import SectionLayout from './section_layout' import IMAPButton from './imap_button' import Account from 'models/account' import Spinner from 'components/spinner' import bitmask from 'lib/bitmask' import App from 'app' ...
ReactApp/LastChance/index.ios.js
Mastenka/josefina
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class LastChance extends Component { render() { return ( <View style={styles.containe...
src/server.js
szhclaye/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...
examples/src/components/CustomRender.js
Reggino/react-select
import React from 'react'; import Select from 'react-select'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setState({ value }); console.log('Support level sel...
src/utils/CustomPropTypes.js
brynjagr/react-bootstrap
import React from 'react'; import warning from 'react/lib/warning'; import childrenToArray from './childrenToArray'; const ANONYMOUS = '<<anonymous>>'; /** * Create chain-able isRequired validator * * Largely copied directly from: * https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9...
components/App.js
tim-speed/manifold-todo
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default App
examples/01 Dustbin/Stress Test/index.js
zetkin/react-dnd
import React from 'react'; import Container from './Container'; export default class DustbinStressTest { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Stress%20Test'>Browse the Source</a></b> </p> <p> ...