path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/material-ui-icons/src/Folder.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" /></g> , 'Folder');
src/Containers/Disputes/DisputeResolution/Decision/Form/index.js
kleros/kleros-front
import React from 'react' import { SubmissionError, Field, reduxForm } from 'redux-form' import { connect } from 'react-redux' import { withRouter, Redirect } from 'react-router-dom' import FontAwesome from 'react-fontawesome' import { submitDisputeResolution } from '../../../../../redux/disputes/action-creators' impor...
test/test_helper.js
nfcortega89/airtime
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...
node_modules/material-ui/src/utils/children.js
Sporks/Doc-tor
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export default { create(fragments) { let newFragments = {}; let validChildrenCount = 0; let firstKey; //Only create non-empty key fragments for (let key in fragments) { const currentChild = fragments[key...
src/js/app/header/SearchBar/common.js
ludonow/ludo-beta-react
import React from 'react'; import styled from 'styled-components'; import CancelIcon from 'material-ui/svg-icons/navigation/cancel'; import { grey700 } from 'material-ui/styles/colors'; /** * hacky usage of styled-component to use react-tap-event-plugin * ref: https://github.com/styled-components/styled-components/i...
src/components/portal/Single/Battlegear.js
chaoticbackup/chaoticbackup.github.io
import React from 'react'; import API from '../../SpreadsheetData'; import s from '../../../styles/app.style'; import { observer, inject } from 'mobx-react'; import { PageNotFound } from '../../Snippets'; import Single from './_base'; @inject((stores, props, context) => props) @observer export default class SingleBatt...
webpack/move_to_pf/TooltipButton/TooltipButton.js
johnpmitsch/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Tooltip, OverlayTrigger } from 'patternfly-react'; import './TooltipButton.scss'; const TooltipButton = ({ disabled, title, tooltipText, tooltipId, tooltipPlacement, renderedButton, ...props }) => { if (!disabled) return renderedButton...
src/svg-icons/av/mic-off.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicOff = (props) => ( <SvgIcon {...props}> <path d="M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.2...
src/svg-icons/maps/local-hospital.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHospital = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/> </SvgIcon> ); MapsLocal...
src/svg-icons/communication/chat-bubble-outline.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChatBubbleOutline = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/> </SvgIcon> ); CommunicationChatBubbleOutl...
src/components/Header/Header.js
KwakJuYoung/MyProtoType
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { return (...
templates/rubix/rubix-bootstrap/src/Timeline.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import classNames from 'classnames'; import Icon from './Icon'; export class TimelineView extends React.Component { static propTypes = { centered: React.PropTypes.bool, withHeader: React.PropTypes.bool }; render() { var classes = classNames({ 'rubix-timeline-view': ...
ordering/stories/MemberIntentField.js
root-systems/cobuy
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { reduxForm, Field } from 'redux-form' import MemberIntentField from '../components/MemberIntentField' // https://github.com/root-systems/cobuy/wiki/Models#offering const avoOffering = { r...
src/svg-icons/action/perm-identity.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermIdentity = (props) => ( <SvgIcon {...props}> <path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9...
examples/complete/material/src/routes/Projects/routes/Project/components/ProjectPage/ProjectPage.js
prescottprue/react-redux-firebase
import React from 'react' import Card from '@material-ui/core/Card' import CardContent from '@material-ui/core/CardContent' import Typography from '@material-ui/core/Typography' import { makeStyles } from '@material-ui/core/styles' import { useFirebaseConnect, isLoaded } from 'react-redux-firebase' import { useParams }...
webpack/scenes/ContentViews/components/InactiveText.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { TextContent, Text, TextVariants } from '@patternfly/react-core'; const InactiveText = props => ( <TextContent> <Text component={TextVariants.small} {...props}>{props.text}</Text> </TextContent> ); InactiveText.propTypes = { text: PropTy...
node_modules/react-bootstrap/es/Collapse.js
okristian1/react-info
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 ...
local-cli/templates/HelloNavigation/components/ListItem.js
dikaiosune/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
src/components/chart-label.js
ronlobo/building-os-charts
import React from 'react'; import classNames from 'classnames'; export default class ChartLabel extends React.Component { static propTypes = { className: React.PropTypes.string, style: React.PropTypes.object, text: React.PropTypes.string.isRequired, transform: React.PropTypes.string, x: React.Pr...
src/login/index.js
MarceloProjetos/react-router-node-red
import React, { Component } from 'react'; import { Modal, Row, Col, FormGroup, FormControl, Button } from 'react-bootstrap'; import md5 from 'md5'; import api from './../api'; import Error from './../Error'; export default class Login extends Component { constructor(props) { super(props); t...
app/javascript/mastodon/features/blocks/index.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
components/Form/FormComponents.js
NGMarmaduke/bloom
/* eslint-disable react/no-multi-comp */ import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import css from './FormComponents.css'; export const Field = ({ className, children, error }) => ( <div className={ cx( css.field, error ? css.errorField : null, ...
src/docs/examples/UIDatePicker/ExampleUIDatePicker.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import moment from 'moment'; import UIDatePicker from 'zs-react/UIDatePicker'; /** Datepicker Example */ export default class ExampleUIDatePicker extends React.Component { constructor (props) { super(props); this.state = { startDate: moment() } } handleChange...
client/gatsby-ssr.js
raisedadead/FreeCodeCamp
import PropTypes from 'prop-types'; import React from 'react'; import { I18nextProvider } from 'react-i18next'; import { Provider } from 'react-redux'; import i18n from './i18n/config'; import { createStore } from './src/redux/createStore'; import layoutSelector from './utils/gatsby/layout-selector'; import { getheadT...
src/js/components/link__list/index.js
afk-mcz/web_client.ellu
import PropTypes from 'prop-types'; import React from 'react'; import Link from '../link__row'; const LinkList = ({ links }) => ( <ul className="links"> {links.map(link => ( <Link key={link.id} {...link} onClick={() => onLinkClick(link.id)} /> ))} </ul> ); LinkList.propTypes = { links: PropTypes.a...
src/svg-icons/action/settings-cell.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
src/Courses.js
PythEch/ruc-scheduler
import React, { Component } from 'react'; import { observer, calculated } from 'mobx-react';
website/src/pages/404.js
plouc/mozaik
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
app/containers/PageSection/index.js
interra/data-generate
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import ListItem from 'components/ListItem'; import Wrapper from './Wrapper'; import StyledLink ...
app/javascript/mastodon/features/compose/components/search_results.js
hyuki0000/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/status_container'; import Link from 'react-router-dom/Link'; import...
js/components/pages/NotFound.js
jvalen/nth-days-old
import React from 'react'; import { Link } from 'react-router'; const NotFound = function () { return ( <article> <h1>404 Not found</h1> <Link to="/" className="btn">Home</Link> </article> ); }; export default NotFound;
ExampleApp/src/AppContainer.js
damianham/react-native-audio-kit
import React from 'react'; import { Text, View, StyleSheet, Switch, Slider } from 'react-native'; import Button from 'react-native-button'; import { Player, Recorder, MediaStates } from 'react-native-audio-toolkit'; let filename = 'test.mp4'; class AppContainer extends React.Component { constructor...
packages/app/app/components/SearchResults/PlaylistResults/index.js
nukeop/nuclear
import React from 'react'; import TracksResults from '../TracksResults'; import FontAwesome from 'react-fontawesome'; import artPlaceholder from '../../../../resources/media/art_placeholder.png'; import _ from 'lodash'; import { withTranslation } from 'react-i18next'; import styles from './styles.scss'; @withTransla...
shared/components/counter/counter.js
lsjroberts/react-redux-skeleton
import React, { Component } from 'react'; import styles from './counter.scss'; export class Counter extends Component { render() { const { count, onIncrement, onDecrement } = this.props; return ( <div className={ styles.default }> <button onClick={ onDecrement }>-</button> { count } ...
src/client/assets/javascripts/app/index.js
nicksp/redux-webpack-es6-boilerplate
import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import Redbox from 'redbox-react'; import Root from './Root'; import configureStore from './store/con...
app/components/ToggleOption/index.js
darrellesh/redux-react-boilerplate
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequir...
src/routes/privacy/index.js
ziedAb/PVMourakiboun
/** * 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/containers/BusinessPage.js
nickeblewis/walkapp
/** * Component that lists all Posts */ import React from 'react' import Business from '../components/Business' import { graphql } from 'react-apollo' import gql from 'graphql-tag' class BusinessPage extends React.Component { static propTypes = { data: React.PropTypes.object, } render () { if (this.p...
demo/app/components/base/Notice.js
itpkg/web
import React from 'react' import { Alert } from 'react-bootstrap'; export const Index = React.createClass({ render: function() { return ( <Alert bsStyle="warning"> <strong>Holy guacamole!</strong> Best check yo self, youre not looking too good. </Alert> ); } }); export const Show = React.crea...
blueocean-material-icons/src/js/components/svg-icons/social/notifications-active.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialNotificationsActive = (props) => ( <SvgIcon {...props}> <path d="M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c...
frontend/app/js/components/app.js
pivotal/pulse
import React from 'react'; import Alert from './alert'; export default class App extends React.Component { render() { let { alert } = this.props.ui; return ( <div> <Alert {...alert} /> {this.props.children} </div> ); } }
docs/app/Examples/elements/Label/Groups/LabelExampleGroupTag.js
aabustamante/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleGroupTag = () => ( <Label.Group tag> <Label as='a'>$10.00</Label> <Label as='a'>$19.99</Label> <Label as='a'>$24.99</Label> <Label as='a'>$30.99</Label> <Label as='a'>$10.25</Label> </Label.Group> ) export de...
src/desktop/apps/categories/components/FeaturedGenes.js
kanaabe/force
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import FeaturedGene from './FeaturedGene' const propTypes = { featuredGenes: PropTypes.object } const Layout = styled.div` display: none; @media (min-width: 768px) { display: block; padding-top: 1em; ...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-nav-bar-header.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from '../common/common.js'; import Button from './button.js'; import Glyphicon from './glyphicon.js'; import './nav-bar-header.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ...
src/svg-icons/image/photo-album.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoAlbum = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/> </Sv...
src/components/bank/Features.js
hackclub/website
import React from 'react' import styled from 'styled-components' import { Box, Container, Flex, Heading, Icon, Link as A, Text, theme } from '@hackclub/design-system' import { Headline, Lead } from 'components/Content' const Base = styled(Box.section).attrs({ bg: 'dark', color: 'gray.3' })`` const Mod...
app/scripts/main.js
dmlond/duke-data-service-portal
import React from 'react'; import ReactDOM from 'react-dom' import Router from 'react-router'; import routes from './routes'; require('es6-promise').polyfill(); //Needed for onTouchTap //Can go away when react 1.0 release //Check this repo: //https://github.com/zilverline/react-tap-event-plugin var injectTapEventPlug...
app/packages/client/src/components/mot/MOT.js
kslat3r/anpr-dashcam
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ListGroup, ListGroupItem } from 'react-bootstrap'; import Loading from '../loading/Loading'; import './MOT.css'; class MOT extends Component { static propTypes = { details: PropTypes.object.isRequired, } shouldComponentUp...
fields/components/columns/CloudinaryImageSummary.js
asifiqbal84/keystone
import React from 'react'; // import CloudinaryImage from 'react-cloudinary-img'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; const linkStyle = { marginRight: 8, }; const boxStyle = { borderRadius: 3, display: 'inline-block', height: 18, overflow: 'hidden', verticalAlign: 'middle...
example/src/user.js
weflex/react-portal-tooltip
import React from 'react' import ToolTip from './../../src' export default class User extends React.Component { state = { isTooltipActive: false } static coverWrapperStyle = { width: 370, height: 80 } static coverStyle = { position: 'absolute', width: 350, height: 80, top: 0, ...
client/src/core-components/loading.js
opensupports/opensupports
import React from 'react'; import classNames from 'classnames'; class Loading extends React.Component { static propTypes = { backgrounded: React.PropTypes.bool, size: React.PropTypes.oneOf(['small', 'medium', 'large']) }; static defaultProps = { size: 'small', backgrounded:...
src/containers/Footer.js
abzfarah/Pearson.NAPLAN.GnomeH
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development Company, L.P. import React, { Component } from 'react'; import Anchor from '../components/common/Anchor'; import Paragraph from '../components/common/Paragraph'; import Box from '../components/common/Box'; import Columns from '../components/common/Colu...
stories/MultiSelect/ExampleStandard.js
nirhart/wix-style-react
import React from 'react'; import MultiSelect from 'wix-style-react/MultiSelect'; import styles from './ExampleStandard.scss'; import isstring from 'lodash.isstring'; const options = [ {value: 'Alabama', id: 'Alabama', tag: {label: 'Alabama'}}, {value: 'Alaska', id: 'Alaska'}, {value: <div className={styles.opti...
app/javascript/mastodon/components/relative_timestamp.js
mstdn-jp/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' }, minutes: { id: 'relat...
src/Toolbar/Toolbar.js
dimik/react-material-web-components
import React from 'react' import PropTypes from 'prop-types' import {MDCComponent} from '../MDCComponent' import {MDCToolbar} from '@material/toolbar/dist/mdc.toolbar' import classNames from 'classnames' class Toolbar extends MDCComponent { static displayName = 'Toolbar' static propTypes = { children: PropTyp...
src/components/Weui/cell/cells_title.js
ynu/ecard-wxe
/* eslint-disable */ import React from 'react'; import classNames from 'classnames'; export default class CellsTitle extends React.Component { render() { const {className, children, ...others} = this.props; const cls = classNames({ 'weui-cells__title': true, [className]:...
src/index.js
yoke233/react-test
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
app/javascript/mastodon/components/regeneration_indicator.js
tootcafe/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_working.svg'; const RegenerationIndicator = () => ( <div className='regeneration-indicator'> <div className='regeneration-indicator__figure'> <img src={illustration} alt='' /> ...
react-client/src/components/users/DeleteUserForm.js
danieluy/radiocero_premios
import React, { Component } from 'react'; import { deleteUser } from '../../radiocero-api' import session from '../../session' import styles from '../../assets/styles' import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; class...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
asrar7787/Test-Frontools
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'));
app/javascript/mastodon/components/admin/Dimension.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedNumber } from 'react-intl'; import { roundTo10 } from 'mastodon/utils/numbers'; import Skeleton from 'mastodon/components/skeleton'; export default class Dimension extends React.PureComponent { static pr...
src/svg-icons/image/panorama-horizontal.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaHorizontal = (props) => ( <SvgIcon {...props}> <path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C...
js/components/About.js
Couto/firstaidgit
import React from 'react'; let About = React.createClass({ render() { return ( <section className="main-content section-about wrapper"> <div className="row"> <div className="column-12"> <h2 className="section-title">What is this all ab...
src/svg-icons/communication/location-on.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLocationOn = (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...
examples/counter/containers/App.js
sapegin/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
markbin/client/components/app.js
tpechacek/learn-react-native
import React from 'react'; import Header from './header'; export default (props) => { return ( <div> <Header /> {props.children} </div> ); };
src/utils/index.js
dfala/react-practice
import React from 'react'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export function createReducer (initialState, reducerMap) { ...
stories/index.stories.js
fateseal/react-mtg-playtester
import React from 'react'; import { storiesOf } from '@storybook/react'; import App from './App'; storiesOf('Playtester', module).add('default', () => <App />);
src/utils/ValidComponentChildren.js
xiaoking/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
dev/react-subjects/subjects/TweenState/lecture.js
AlanWarren/dotfiles
import React from 'react' import { render } from 'react-dom' import TransitionGroup from 'react-addons-transition-group' import HeightFader from './components/HeightFader' const List = React.createClass({ getInitialState() { return { items: [] } }, addItem(e) { if (e.key === 'Enter') { i...
client/src/routes.js
TeamDreamStream/GigRTC
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/app'; import VideoPlayer from './containers/video-container'; import StreamsContainer from './containers/streams-container'; import Login from './components/forms/login'; import {requireAuthentication} from './com...
src/svg-icons/image/filter-vintage.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterVintage = (props) => ( <SvgIcon {...props}> <path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9...
packages/core/admin/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsButton/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import Cog from '@strapi/icons/Cog'; import { Button } from '@strapi/design-system/Button'; import { useIntl } from 'react-intl'; import styled from 'styled-components'; const Wrapper = styled.div` position: relative; ${({ hasConditions, disabled, the...
docs/src/Routes.js
gearz-lab/react-ui
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import NotFoundPage from './NotFoundPage'; import {Route, DefaultRoute, NotFoundRoute} from 'react-router'; export default ( ...
node_modules/react-bootstrap/es/Tab.js
C0deSamurai/muzjiks
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import TabContainer from...
packages/react/components/navbar.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import F7NavLeft from './nav-left'; import F7NavTitle from './nav-title'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-h...
dev/react-subjects/subjects/Flux/exercise/components/ContactList.js
AlanWarren/dotfiles
import React from 'react' import { getState, addChangeListener } from '../stores/ContactStore' import { loadContacts } from '../actions/ViewActionCreators' const ContactList = React.createClass({ getInitialState() { return getState() }, componentDidMount() { loadContacts() }, render() { const {...
src/parser/shaman/elemental/modules/talents/StormElemental.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import EnemyInstances from 'parser/shared/modules/EnemyInstances'; import StatisticBox, { STATISTIC_ORD...
react-flux-mui/js/material-ui/src/svg-icons/av/music-video.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (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 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
src/components/Page/Page.js
stanxii/laiico
/** * 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 PropTypes from 'prop-...
imports/ui/components/AppNavigation.js
themeteorchef/base
import React from 'react'; import PropTypes from 'prop-types'; import { Navbar } from 'react-bootstrap'; import { Link } from 'react-router'; import { Meteor } from 'meteor/meteor'; import PublicNavigation from './PublicNavigation.js'; import AuthenticatedNavigation from './AuthenticatedNavigation.js'; import container...
src/page/list/index.js
KleeGroup/focus-components
//The purpose of this module is to deal with autonomous lists. //If you need lists inside a form please see the listFor helper function in a form. //The following lists can //- be loaded from a criteria (or without) (the criteria can be the result of a form) //- be paginated //- be displayed in any list container. impo...
src/components/general/Error.js
KennethMa/Readhub-Client
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { AppStyles } from '../../theme/'; // Components import { Spacer, Text, Button } from '../ui/'; /* Component ===============================================...
app/javascript/src/client/users/new.js
rringler/billtalk
import _ from 'lodash'; import React, { Component } from 'react'; import { Button, Col, ControlLabel, Form, FormControl, FormGroup, HelpBlock } from 'react-bootstrap'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { createUser } from './actions'; import { emailRegex } from...
src/svg-icons/av/play-arrow.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlayArrow = (props) => ( <SvgIcon {...props}> <path d="M8 5v14l11-7z"/> </SvgIcon> ); AvPlayArrow = pure(AvPlayArrow); AvPlayArrow.displayName = 'AvPlayArrow'; AvPlayArrow.muiName = 'SvgIcon'; export defau...
js/components/forecast.js
stage88/react-weather
/** * @flow */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import ForecastItem from './forecastitem'; import type { WeatherForecast } from '../models/view'; type Props = { forecast: Array<WeatherForecast>; }; class Forecast extends Compo...
src/components/general/WebView.js
banovotz/WatchBug2
/** * Web View * * <WebView url={"http://google.com"} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { WebView, StyleSheet, InteractionManager, } from 'react-native'; // Consts an...
pages/api/input.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './input.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/parser/deathknight/blood/modules/features/AlwaysBeCasting.js
FaideWW/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellLink from 'common/SpellLink'; class AlwaysBeCasting ex...
examples/js/expandRow/manage-expanding.js
echaouchna/react-bootstrap-tab
/* 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, ...
admin/client/App/shared/Popout/index.js
matthewstyers/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const SIZES = { arrowHeight: 12, arrowWidth: ...
src/components/common/BookingBar.js
mdicarlo3/cautious-disco
import React, { Component } from 'react'; class BookingBar extends Component { render(){ return( <div className="booking-bar">this is the booking bar</div> ); } } export default BookingBar;
js/components/App.js
c-h-/universal-native-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import { connect, } from 'react-redux'; import '../libs'; import AppNavigator from './AppNavigator'; import URIWrapper from './URIWrapper'; const NavigationWrappedApp = URIWrapper(AppNavigator); const App = (props) => { const { appReady, di...
server/dashboard/js/components/BenchLogEntry.react.js
MrAlone/mzbench
import React from 'react'; class BenchLogEntry extends React.Component { constructor(props) { super(props); this.state = {}; this.nShown = props.from; } shouldComponentUpdate(nextProps, nextState) { return (nextProps.log.length < nextProps.to) || this.nShown < nextProps.to;...
src/react-pointerlock.js
jeongsd/react-pointerlock
import React from 'react'; import ReactDom from 'react-dom'; import classnames from 'classnames'; import { POINTERLOCK_ELEMENT, POINTERLOCK_CHANGE, REQUEST_POINTERLOCK, EXIT_POINTERLOCK, POINTERLOCK_ERROR, MOVEMENT_X, MOVEMENT_Y } from './helper/pointLock.js'; // import './react-pointerlock.css'; const propTypes =...
docs/src/app/components/pages/components/Tabs/ExampleIcon.js
nathanmarks/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import FontIcon from 'material-ui/FontIcon'; import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; const TabsExampleIcon = () => ( <Tabs> <Tab icon={<FontIcon className="muidocs-icon-action-home" />} /> <Tab icon=...
docs/src/example.js
bokuweb/react-resizable-box
import React from 'react'; import Resizable from '../../src'; const handlerClasses = { wrapper: 'react-resize-wrapper' } export default () => ( <div> <Resizable className="item" width="280" height="300" minWidth="240" minHeight="120" maxWidth="800" maxHeight="600" ...
client-react/src/app.js
diman84/Welthperk
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import feathers from 'feathers/client'; import hooks from 'feathers-hooks'; import rest from 'feathers-rest/client'; import authentication from 'feathers-authentication-client'; import superagent from 'superagent'; import config from './confi...
react/CardGroup/CardGroup.demo.js
seek-oss/seek-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import { CardGroup, Card, Text, PageBlock, Section } from 'seek-style-guide/react'; const CardGroupContainer = ({ component: DemoComponent, componentProps }) => ( <PageBlock> <Section> <DemoComponent {...componentProps} /> </Secti...
node_modules/antd/es/icon/index.js
ZSMingNB/react-news
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import React from 'react'; import classNames from 'classnames'; import omit from 'omit.js'; var Icon = function Icon(props) { var type = props.type, _props$className = props.className, ...