path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Animations/intro-animation.js
adrienhobbs/redux-glow
import React, { Component } from 'react'; import styles from './intro-animation.scss'; export default class IntroAnimation extends Component { constructor (props) { super(props); this.state = { hasPlayed: false }; this.TL = new TimelineMax(); this.TL.pause(); } animate () { var TL ...
src/styleguide/Wrapper.js
mariusespejo/semantic-redux-form-fields
import React, { Component } from 'react'; const Provider = require('react-redux').Provider; const configureStore = require('../utils/configureStore').default; const store = configureStore({}); export default class Wrapper extends Component { render() { return <Provider store={store}>{this.props.children}</Provid...
src/pages/404.js
kbrgl/kbrgl.github.io
import React from 'react' import { Link } from 'gatsby' import { Row, Column } from '../components/grid' import Layout from '../components/layout' const IndexPage = () => ( <Layout> <Row> <Column size="six" offset="three"> <h1 style={{ marginTop: '4rem' }}>Not Found.</h1> <p> Wha...
DEPRECATED/node_modules/react-router/es6/IndexRoute.js
vanHeemstraDesigns/CreationsEcosystemStatic
'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e...
react-redux-tutorial/redux-examples/shopping-cart/index.js
react-scott/react-learn
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware,compose } from 'redux' import { Provider } from 'react-redux' import logger from 'redux-logger' import thunk from 'redux-thunk' import reducer from './reducers' import { getAllProducts } from './actions' import App from '...
react-starter/examples/UnigridExample5.js
yoonka/unigrid
/* Copyright (c) 2018, Grzegorz Junka All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
src/containers/FuelSavingsPage.js
ryan4888/smart-toy
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as actions from '../actions/fuelSavingsActions'; import FuelSavingsForm from '../components/FuelSavingsForm'; export const FuelSavingsPage = (props) => { return ( ...
app/scripts/components/kuchyne/kitchen_b.js
kroupaTomass/Rondo-kuchyne
import React from 'react'; import { Link } from 'react-router'; class Kitchen_b extends React.Component { constructor(props, context) { super(props); } render() { return ( <div className="col-md-4 no_padding"> <div className="single_image"> <a id="kitchen_b" href="#animatedModal_...
docs/app/Examples/elements/Button/Content/ButtonExampleMultipleConditionals.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleMultipleConditionals = () => ( <Button.Group> <Button>One</Button> <Button.Or /> <Button>Two</Button> <Button.Or /> <Button>Three</Button> </Button.Group> ) export default ButtonExampleMultipleConditionals
src/pages/number/Freivalds/Freivalds.js
hyy1115/react-redux-webpack2
import React from 'react' class Freivalds extends React.Component { render() { return ( <div>Freivalds</div> ) } } export default Freivalds
milestones/05-webpack-intro-css/Before/src/slide.js
jaketrent/react-drift
import PropTypes from 'prop-types' import React from 'react' function Slide(props) { return ( <article style={props.style}> <img src={props.image} alt={props.title} /> <footer> <h2>{props.title}</h2> <div>{props.children}</div> </footer> </article> ) } Slide.propTypes = {...
node_modules/react-bootstrap/es/Tooltip.js
NathanBWaters/jb_club
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/action/shopping-basket.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShoppingBasket = (props) => ( <SvgIcon {...props}> <path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h1...
src/Upload.js
tanbo800/react-ui
'use strict' import classnames from 'classnames' import React from 'react' import Events from './utils/events' import { nextUid, format } from './utils/strings' import getGrid from './higherorder/grid' import Message from './Message' import upload from './utils/upload' import { requireCss } from './themes' requireCss...
src/index.js
wix/react-templates-transform-boilerplate
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; var elem = React.createElement(App); render(elem, document.getElementById('root'));
src/Parser/Paladin/Holy/CombatLogParser.js
enragednuke/WoWAnalyzer
import React from 'react'; import Tab from 'Main/Tab'; import Mana from 'Main/Mana'; import CoreCombatLogParser from 'Parser/Core/CombatLogParser'; import LowHealthHealing from 'Parser/Core/Modules/LowHealthHealing'; import HealingDone from 'Parser/Core/Modules/HealingDone'; import LightOfDawnNormalizer from './Norm...
src/components/Ellipsis/index.js
zuiidea/antd-admin
import React, { Component } from 'react'; import { Tooltip } from 'antd'; import classNames from 'classnames'; import styles from './index.less'; /* eslint react/no-did-mount-set-state: 0 */ /* eslint no-param-reassign: 0 */ const isSupportLineClamp = document.body.style.webkitLineClamp !== undefined; const TooltipO...
actor-apps/app-web/src/app/components/Deactivated.react.js
jiguoling/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
src/view/Login.js
blockkeeper/blockkeeper-frontend-web
import React from 'react' import Button from '@material-ui/core/Button' import Typography from '@material-ui/core/Typography' import TextField from '@material-ui/core/TextField' import Paper from '@material-ui/core/Paper' import Grid from '@material-ui/core/Grid' import { withStyles } from '@material-ui/core/styles' im...
src/components/AssetCard/index.js
khankuan/asset-library-demo
import React from 'react'; import { Link } from 'react-router'; import Card from '../Card'; import Text from '../Text'; import Button from '../Button'; import LikeButton from '../LikeButton'; import Modal from '../Modal'; import LikeList from '../../views/LikeList'; export default class AssetCard extends React.Compon...
cli/base-antd-pro/src/routes/User/Register.js
CFshuming/react-demo-gather
import React, { Component } from 'react'; import { connect } from 'dva'; import { routerRedux, Link } from 'dva/router'; import { Form, Input, Button, Select, Row, Col, Popover, Progress } from 'antd'; import styles from './Register.less'; const FormItem = Form.Item; const { Option } = Select; const InputGroup = Input...
client/views/setupWizard/SideBar.js
iiet/iiet-chat
import { Box, Margins, Scrollable } from '@rocket.chat/fuselage'; import { useMediaQuery } from '@rocket.chat/fuselage-hooks'; import React from 'react'; import { useTranslation } from '../../contexts/TranslationContext'; import Logo from '../../components/basic/Logo'; import './SideBar.css'; function SideBar({ logo...
src/js/components/_registerFields/ExploreField.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Button from '../ui/Button'; import translate from '../../i18n/Translate'; @translate('ExploreField') export default class ExploreField extends Component { static propTypes = { profile : PropTypes.object.isRequired...
src/FormGroup.js
glenjamin/react-bootstrap
import classNames from 'classnames'; import PropTypes from 'prop-types'; import { elementType } from 'prop-types-extra'; import React from 'react'; import FormContext from './FormContext'; import { createBootstrapComponent } from './ThemeProvider'; const propTypes = { /** * @default 'form-group' */ bsPrefix...
app/components/TransferDialog/TokenDialog.js
VonIobro/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import { Form, Field } from 'redux-form/immutable'; import BigNumber from 'bignumber.js'; import Web3Alerts from '../../containers/Web3Alerts'; import { ErrorMessage } from '../FormMessages'; import SubmitButton from '../SubmitButton'; import FormField fro...
src/controls/ColorPicker/Component/index.js
jpuri/react-draft-wysiwyg
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { stopPropagation } from '../../../utils/common'; import Option from '../../../components/Option'; import './styles.css'; class LayoutComponent extends Component { static propTypes = { expan...
src/routes/Home/modules/home.js
CERNSummerWebfest/webfest-2017-physics-concepts
import { Result } from '../components/ResultComponent' import React from 'react' import Concept from '../components/Concept' export const SEARCH_START = 'SEARCH_START' export const SEARCH_END = 'SEARCH_END' export const GET_COMPONENT = 'GET_COMPONENT' export function search (str) { return (dispatch, getState) => {...
src/App.js
dereksweet/ComedyCompanion
import React, { Component } from 'react'; import { createStore, applyMiddleware, combineReducers, bindActionCreators } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import * as reducers from './reducers'; import MainApp from './containers/mainApp'; const createStoreWithMiddlew...
app/containers/LanguageProvider/index.js
Voltmod/productSaver
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
narabo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; const messages = defineMessages({ public_short: { id: 'privacy.public.short', defaultMessage: 'Public' }, public_long: { id: 'privacy.pub...
packages/idyll-template-projects/templates/slideshow/components/slide.js
idyll-lang/idyll
import React from 'react'; import TextContainer from 'idyll-components/dist/cjs/text-container'; class Slide extends React.Component { render() { const { hasError, idyll, updateProps, children, ...props } = this.props; return ( <div {...props} className="slide"> <TextContainer idyll={idyll}>{ch...
app/javascript/mastodon/components/poll.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Motion fr...
node_modules/react-bootstrap/es/NavItem.js
premcool/getmydeal
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 ...
components/Contact.js
mariosandoz/mariosandoz.github.io
import React from 'react'; class Contact extends React.Component{ render(){ return ( <section id="contact"> <div className="container"> <div className="row"> <div className="col-lg-12 text-center"> <h2>Contact Me</h2> <hr className="star-primary"/> </div> ...
demo/icons/social.js
jahglow/MDIcon
/** * Created by IvanP on 23.01.2017. */ import React from 'react'; export const ic_cake = <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5.88 17 4.96 17c-.73 0-1.4-.23-...
utils/typography.js
agoldenduck/agoldenduck.github.io
import ReactDOM from 'react-dom/server'; import React from 'react'; import Typography from 'typography'; import { GoogleFont } from 'react-typography'; // import styles from '../pages/styles.css'; const options = { googleFonts: [ { name: 'Source Code Pro', styles: [ '300', '400', ...
src/svg-icons/navigation/apps.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ...
webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.js
theforeman/foreman_ansible
import React from 'react'; import { DndProvider } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { ListView } from 'patternfly-react'; import { orderable, orderDragged, } from 'foremanReact/components/common/forms/OrderableSelect/helpers'; import PropTypes from 'prop-types'; import...
node_modules/react-color/src/components/PhotoshopPicker.js
ottomajik/react-demo
'use strict'; /* @flow */ import React from 'react'; import ReactCSS from 'reactcss'; import merge from 'merge'; import _ from 'lodash'; import color from '../helpers/color'; import Photoshop from './photoshop/Photoshop'; class ColorPicker extends ReactCSS.Component { constructor(props: any) { super(); t...
client/domain/Home/Dashboard/components/DashboardItem.js
briefguo/learn-js
import React from 'react' import { Spin } from 'antd' import Styles from './DashboardItem.css' export default class DashboardItem extends React.Component { static propTypes = { title: React.PropTypes.string, data: React.PropTypes.object, impactKey: React.PropTypes.string, describe: React.PropTypes.a...
src/svg-icons/maps/local-pharmacy.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPharmacy = (props) => ( <SvgIcon {...props}> <path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/> </SvgIcon> ); MapsLocalPharmacy = pure...
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/power-input.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwarePowerInput = (props) => ( <SvgIcon {...props}> <path d="M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"/> </SvgIcon> ); HardwarePowerInput.displayName = 'HardwarePowerInput'; HardwarePowerInput.muiName = 'SvgIcon'; export...
src/index.js
cloudsherpas-gdc/react-chat-v1
import React from 'react'; import { App } from './App'; React.render(<App url="chat.json" pollInterval={2000} />, document.getElementById('root'));
src/svg-icons/av/call-to-action.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvCallToAction = (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 16H3v-3h18v3z"/> </SvgIcon> ); AvCallToAction = pure(AvCallToAction);...
src/components/Track/Description/index.js
lukekarrys/repeatone.club
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CSSModules from 'react-css-modules'; import Radium from 'radium'; import { random } from 'lodash'; import { sync as imageToStyles } from '../../../helpers/imageToStyles'; @Radium @CSSModules(require('./style.less')) exp...
src/svg-icons/device/data-usage.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDataUsage = (props) => ( <SvgIcon {...props}> <path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53...
client/extensions/woocommerce/app/settings/shipping/shipping-zone-list-entry.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Gridicon from 'gridicons'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import Button from 'components/button'; import { getLink } ...
pootle/static/js/auth/components/RequestPasswordResetForm.js
claudep/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import assign from 'object-assign'; import React from 'rea...
springboot/GReact/src/main/resources/static/app/routes/widgets/components/Widgets.js
ezsimple/java
/** * Created by griga on 11/30/15. */ import React from 'react' import {Alert , OverlayTrigger , Popover , Dropdown , MenuItem} from 'react-bootstrap' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import TabbedWidgetDemo from './TabbedWidgetDemo' import Swit...
analysis/deathknightblood/src/modules/talents/RapidDecomposition.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import TalentStatisticBox from 'parser/ui/TalentStatisticBox'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_OR...
src/toolbar/InsertModalHeader.js
prajapati-parth/react-bootstrap-table
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Util from '../util'; class InsertModalHeader extends Component { handleCloseBtnClick = e => { const { onModalClose, beforeClose } = this.props; beforeClose && beforeClose(e); onModalClose(); } renderContent(closeBt...
app/modules/core/components/Route/index.js
anton-drobot/frontend-starter
import React, { Component } from 'react'; import { observer } from 'mobx-react'; /*type Props = { router?: RouterStore, route: string, match: boolean, children?: Node, component?: ComponentType<any> };*/ @observer export default class Router extends Component { static defaultProps = { ...
src/CarouselItem.js
deerawan/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
src/components/FileUploader/FileUploader-story.js
wfp/ui
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable no-console */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/...
packages/wix-style-react/src/TableActionCell/docs/examples/PrimarySecondaryExample.js
wix/wix-style-react
import React from 'react'; import Star from 'wix-ui-icons-common/Star'; import Download from 'wix-ui-icons-common/Download'; import Duplicate from 'wix-ui-icons-common/Duplicate'; import Print from 'wix-ui-icons-common/Print'; import { classes } from '../TableActionCell.story.st.css'; import { TableActionCell } from ...
src/ResourceHeader.js
intljusticemission/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' const ResourceHeader = ({ label }) => { return <React.Fragment>{label}</React.Fragment> } ResourceHeader.propTypes = { label: PropTypes.node, index: PropTypes.number, resource: PropTypes.object, } export default ResourceHeader
src/svg-icons/action/shopping-cart.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11...
examples/react-native/src/screens/Home.js
supasate/connected-react-router
import React from 'react'; import {View, Text, StyleSheet, Button} from 'react-native'; const Home = ({history}) => ( <View> <Text style={styles.title}>Home</Text> <Button color="blue" onPress={() => { history.push({ pathname: '/account', search: '?accountId=42', ...
src/svg-icons/image/crop.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop = (props) => ( <SvgIcon {...props}> <path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/> </SvgIcon> ); ImageCrop = pure(ImageCrop); ImageCrop.displayNam...
components/Form/Star/Star.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import css from './Star.css'; import Icon from '../../Icon/Icon'; import Radio from '../Radio/Radio'; export default class Star extends Component { static propTypes = { className: PropTypes.string, ico...
src/components/views/globals/PasswordNagBar.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Vector Creations Ltd Copyright 2018 New Vector Ltd 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 la...
src/components/distributions/summary/index.js
getguesstimate/guesstimate-app
import React from 'react' import numberShow from 'lib/numberShower/numberShower' import './style.css' const PrecisionNumber = ({value, precision, number=numberShow(value, precision)}) => ( <span> {number.value}{number.symbol} {number.power && (<span>{`\u00b710`}<span className='sup'>{number.power}</span></...
src/Thumbnail.js
laran/react-bootstrap
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const Thumbnail = React.createClass({ mixins: [BootstrapMixin], propTypes: { alt: React.PropTypes.string, href: React.PropTypes.string, src: React.PropTyp...
react-twitter-save-data-loading(client-hint)/src/components/Twitter/Context.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles'; class Context extends React.Component { render () { const {data, linkProps} = this.props; return ( <div className="context" style={styles.context}> <div className="tweet-context"> <svg xmlns...
src/svg-icons/device/signal-cellular-1-bar.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/> </SvgIcon> ); DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar); Device...
src/segment/StatisticSegment.js
alelk/houses-building-website
/** * Statistic Segment * * Created by Alex Elkin on 31.10.2017. */ import './StatisticSegment.css' import React from 'react' import PropTypes from 'prop-types' import {Container, Header, Icon, Segment, Statistic} from 'semantic-ui-react' const mapStatistics = (statistic, key) => { const {color, topLabel, val...
src/components/time/TimePicker.js
wayofthefuture/react-input-moment
import cx from 'classnames'; import React from 'react'; import InputSlider from 'react-input-slider'; export default class extends React.Component { constructor(props) { super(props); } render() { let mom = this.props.moment; return ( <div className={cx('im-time-picker', this.props.className)...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-9/Exercise.js
Brandon-J-Campbell/codemash
import React from 'react'; import PropTypes from 'prop-types'; export default function Exercise() { return <Friends friends={myFriends} />; } function Friends({ friends }) { return ( <Page> {friends.map(friend => ( <FriendProfile key={friend.id} name={friend.name} ...
docs/src/app/components/pages/components/TextField/Page.js
mtsandeep/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 textFieldReadmeText from './README'; import TextFieldExampleSimple from '...
scratch/App.js
dmod/fdcallstats.com
import React, { Component } from 'react'; import 'bootstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; import './App.css'; import { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink, Container, Row, Col, Jumbotron, Button } from 'reactstrap'; class App extends Component...
examples/with-custom-webpack-config/src/client.js
jaredpalmer/razzle
import React from 'react'; import { hydrate } from 'react-dom'; import App from './App'; hydrate(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept(); }
src/containers/foiRequests/FoiRequestsPublicBodyScreen.js
jfilter/frag-den-staat-app
import { ActivityIndicator, Text, View } from 'react-native'; import { NavigationActions } from 'react-navigation'; import { connect } from 'react-redux'; import React from 'react'; import { fetchPublicBody } from '../../actions/publicBodies'; import { foiRequestsFilterChange } from '../../actions/foiRequests'; import...
src/components/DeveloperMenu.js
justinhaaheim/empower-app
import React from 'react'; import {View} from 'react-native'; // For tests const DeveloperMenu = () => <View/>; export default DeveloperMenu;
spec/javascripts/jsx/gradebook/default_gradebook/GradebookGrid/headers/TotalGradeColumnHeaderSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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...
src/components/todo/container.js
shawnzhang009/react-starter
import React from 'react' import Paper from 'material-ui/Paper' import AppBar from 'material-ui/AppBar' import IconButton from 'material-ui/IconButton' import IconMenu from 'material-ui/IconMenu' import MenuItem from 'material-ui/MenuItem' import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert' import Tod...
src/containers/Interfaces/OrdinalBin.js
codaco/Network-Canvas
import React from 'react'; import { compose } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { isNil } from 'lodash'; import withPrompt from '../../behaviours/withPrompt'; import { PromptSwiper, OrdinalBins } from '../'; import { makeGetPromptVariable, makeNetworkNodesF...
app/packs/src/admin/generic/UploadModal.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Dropzone from 'react-dropzone'; import { Modal } from 'react-bootstrap'; export default class UploadModal extends Component { constructor(props) { super(props); this.formRef = React.createRef(); this.handleUploadTemplate...
src/server.js
zangrafx/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...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/favorite-border.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionFavoriteBorder = (props) => ( <SvgIcon {...props}> <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4....
app/components/DropBox/DropBox.js
celikmus/MathWise
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Text, View } from 'react-native'; import styles from './styles'; import { addDropZone } from '../../actions/interactions'; class DropBox extends Component { constructor() { super(); t...
packages/material-ui-icons/src/School.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let School = props => <SvgIcon {...props}> <path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z" /> </SvgIcon>; School = pure(School); School.muiName = 'SvgIcon'; export de...
admin/src/components/PopoutPane.js
lastjune/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, onLayout: React.PropTypes.func }, componentDidMount () ...
src/svg-icons/image/timer-off.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimerOff = (props) => ( <SvgIcon {...props}> <path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1....
varOne-web/src/main/webapp/app/components/navigator/brand.js
SparkMonitor/varOne
import React from 'react'; class Brand extends React.Component { render() { return ( <div className='navbar-header'> <button type='button' className='navbar-toggle' data-toggle='collapse' data-target='.navbar-collapse'> <span className='sr-only'>Toggle navigation</span> ...
src/routes/Library/components/SongList/SongList.js
bhj/karaoke-forever
import PropTypes from 'prop-types' import React from 'react' import SongItem from '../SongItem' const SongList = (props) => props.songIds.map(songId => ( <SongItem {...props.songs[songId]} artist={props.showArtist ? props.artists[props.songs[songId].artistId].name : ''} filterKeywords={props.filterKeywor...
src/components/pages/Home.js
Painatalman/fortunecookie
import React, { Component } from 'react'; import styles from './Home.css' import FortuneCookie from '../FortuneCookie/FortuneCookie.js'; export default class Home extends Component { render() { return ( <div className={styles.home}> <h1>Fortune Cookie</h1> <FortuneCookie></FortuneCookie> ...
src/docs/Start.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Anchor from 'grommet/components/Anchor'; import Button from 'grommet/components/Button'; import Footer from 'grommet/components/Footer'; import Heading from 'grommet/components/Heading'; import Paragra...
client/src/research/DataBubble.js
mit-teaching-systems-lab/swipe-right-for-cs
import React from 'react'; import PropTypes from 'prop-types'; import chroma from 'chroma-js'; // A colored in bubble for a chart like Milkman et al. 2015 class DataBubble extends React.Component { render() { const {percentage, n} = this.props; const colors = chroma.scale(['white','#006837']); const colo...
src/util/CompoundDecorator.js
yqy980210/verse-ink
import { CompositeDecorator } from 'draft-js'; import { List } from 'immutable'; import React from 'react'; const Span = (props) => <span>{props.children}</span>; export class CompoundDecorator { constructor(decorators = []) { this.decorators = decorators.map((decorator) => { return decorator.strategy && ...
src/components/header/MoreMenuComponent.js
Philin-Anton/prototypeApp
'use strict'; import React from 'react'; import { connect } from 'react-redux' import { createSelector } from 'reselect' require('styles/ActionIcons.scss'); require('styles/header/MoreMenu.scss'); import { getContent, clearLocalStore} from '../../api/maggo'; import {handleSave, handlePublish, handleDelete} from '../...
docs/src/components/nav.js
colindresj/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' function urlize(uri) { return BASE_URL + uri } export default React.createClass({ render() { const logo = this.props.includeLogo ? <a href={BASE_URL} className="brand-logo">NuclearJS</a> : null return <div className="navbar-fixed...
docs/src/PropTable.js
adampickeral/react-bootstrap
import merge from 'lodash/object/merge'; import React from 'react'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); let capitalize = str => str[0].toUpperCase() + str....
src/auth/Login/Register.js
elarasu/roverz-chat
/** * tasks package */ import React, { Component } from 'react'; import { TouchableOpacity, Text, View, TextInput, Keyboard, StyleSheet, Image, Alert, ScrollView, Dimensions, KeyboardAvoidingView, Platform, } from 'react-native'; import { Actions } from 'react-native-router-flux'; import * a...
src/Parser/Monk/Mistweaver/Modules/Spells/ThunderFocusTea.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { Doughnut as DoughnutChart } from 'react-chartjs-2'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Wrapper from 'common/Wrapper'; import Combatants from 'Parser/Core/Modules/Combatants'; import...
fields/types/geopoint/GeoPointColumn.js
benkroeger/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
src/imports/ui/builder/components/product/ProductVariationSelect.js
hwillson/meteor-recommendation-builder
import React from 'react'; import { FormGroup, FormControl } from 'react-bootstrap'; import products from '../../../../api/products/collection'; const ProductVariationSelect = ({ product }) => ( <FormGroup className="product-variation-select"> <FormControl componentClass="select" onChange={(event) =...
src/components/ListCol/ListColOrder/ListColOrder.js
hahoocn/hahoo-admin
import React from 'react'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import FormControl from 'react-bootstrap/lib/FormControl'; import toFloat from 'validator/lib/toFloat'; import isDecimal from 'validator/lib/isDecimal'; import Tap from '../../hahoo/Tap'; import styles from './ListColOrder.css'; class Li...
frontend/src/widgets/Weather.js
BrechtBa/homecon
import React from 'react'; function HomeconWeatherBlock(props){ const config = props.config; const states = props.states; let state = undefined; if(states!== null){ let path = ''; if(config.daily){ path = `/weather/forecast/daily/${config.timeoffset}`; } else if(config.hourly){ pa...
project/src/scenes/Admin/Articles/NewArticle/components/RenderTags/RenderTags.js
boldr/boldr
/* eslint-disable react/prop-types */ import React from 'react'; import TagsInput from 'react-tagsinput'; import { FormGroup } from '@boldr/ui/Form'; const RenderTags = ({ input, label, meta: { touched, error, warning } }) => ( <FormGroup color={`${touched && error ? 'danger' : ''}`}> <TagsInput value={inp...
src/Tab.js
nickuraltsev/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const Tab = React.createClass({ propTypes: { /** * @private */ active: React.PropTypes.bool, animation: React.PropTypes.bool, /** * It is used by 'Tabs' - parent com...