path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
g3r4n/create-esri-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import load from 'absoluteLoad'; export default class ext...
src/browser/window/index.js
jordanco/drafter-frontend
import React from 'react'; import { render } from 'react-dom'; import Root from 'app/containers/Root'; chrome.runtime.getBackgroundPage(background => { const { store, unsubscribe } = background.getStore(); render( <Root store={store} />, document.getElementById('root') ); addEventListener('unload', uns...
src/components/topic/summary/CountOverTimeSummaryContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import { Row, Col } from 'react-flexbox-grid/lib'; import { SummarizedVizualization } from '../../common/hocs/SummarizedVizualization'...
client/components/FlashMessage.js
andela-ksolomon/blocker
import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; class FlashMessage extends React.Component { constructor(props) { super(props); this.onClick = this.onClick.bind(this); } onClick() { this.props.deleteFlashMessage(this.props.message.id); } rende...
js/jqwidgets/demos/react/app/tree/righttoleftlayout/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTree from '../../../jqwidgets-react/react_jqxtree.js'; class App extends React.Component { render () { // Create jqxTree let source = [ { icon: '../../images/mailIcon.png', label: 'Mail', expanded: true, items: [ ...
extensions/chat/components/chat/AddChatUser.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' /* Component with a state */ export default class AddChatUser extends React.Component { constructor(props) { super(props) this.state = {selected: ''} } onChange = (e) => { this.setState({selected: e.target.value}) } onSendCick = () => { this.pr...
app/javascript/mastodon/features/status/index.js
robotstart/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchStatus } from '../../actions/statuses'; import Immutable from 'immutable'; import EmbeddedStatus from '../../components/status'; import MissingI...
src/Map.js
honmanyau/muup-story
import React, { Component } from 'react'; import './Map.css'; // This class is used purely for rendering the map array generated by logic.generateLevel class Map extends React.Component { render() { let renderedMap = this.props.map.map((row, rowIndex) => { return ( <div className={"Map-row"} data-r...
front-end/src/components/Home/Home.js
andriyspas/fruit-bouquets
import React, { Component } from 'react'; import Video from './Video/Video'; class Home extends Component { render() { return ( <section className="home"> <Video/> <div className="home__logo"> <img src={require('../../images/elements/flower-b...
app/shared/modals/ModalWrapper.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'react-bootstrap/lib/Modal'; function ModalWrapper({ children, className, footerContent, onClose, show, title, }) { return ( <Modal className={className} onHide={onClose} show={show}> <Modal.Header closeButton> <Moda...
demos/toggles/demos/switchOff.js
isogon/styled-mdl-website
import React from 'react' import { Switch } from 'styled-mdl' const demo = () => <Switch /> const caption = 'Switch Off' const code = '<Switch />' export default { demo, caption, code }
src/components/LikeCtrl/LikeCtrl.js
ggdiam/storia
import React, { Component } from 'react'; import styles from './LikeCtrl.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Location from '../../core/Location'; //import dataClient from '../../core/DataClient'; import delayedLikeClient from '../../core/DelayedLikeClient'; im...
docs/app/Examples/views/Comment/Content/CommentExampleReplyForm.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Comment, Form } from 'shengnian-ui-react' const CommentExampleReplyForm = () => ( <Comment.Group> <Comment> <Comment.Avatar as='a' src='/assets/images/avatar/small/steve.jpg' /> <Comment.Content> <Comment.Author as='a'>Steve Jobes</Comment.Author> ...
yycomponent/breadcrumb/Item.js
77ircloud/yycomponent
import React from 'react'; import { Breadcrumb } from 'antd'; class Item extends React.Component{ constructor(props){ super(props); } render(){ return (<Breadcrumb.Item {...this.props}/>); } } export default Item
examples/auth-with-shared-root/components/PageTwo.js
taion/rrtr
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page Two! Wooo!</h2> } }) export default PageOne
src/components/Form.js
Tanachi/PollerBears
import React, { Component } from 'react'; import MapLocations from '../containers/MapLocations'; import Position from '../containers/Position'; import Capitol from '../components/Capitol'; import Districts from '../components/Districts'; import { FormErrors } from './FormErrors'; import '../Form.css'; import { BrowserR...
src/client/admin/get-router.js
Restuta/rcn.io
import React from 'react' import { Router, useRouterHistory } from 'react-router' import { Provider } from 'react-redux' import configureStore from 'shared/configure-store.js' import { syncHistoryWithStore } from 'react-router-redux' import routes from './routes' import analytics from 'utils/analytics' import { create...
assets/javascripts/archon/components/AppStatCard.js
panli889/archon
import React from 'react'; import Radium from 'radium'; import MDL from './MdlComponents'; import DescriptionList from './DescriptionList'; let AppStatCard = React.createClass({ contextTypes: { theme: React.PropTypes.object, }, render() { const {theme} = this.context; const {apps} = this.props; ...
client/components/AceEditor.js
XuHaoJun/tiamat
import React from 'react'; import Loadable from 'react-loadable'; const Loading = () => <div>Loading...</div>; const AceEditor = Loadable({ loader: () => { if (typeof window === 'undefined') { return Promise.resolve(Loading); } else { const braceP = import(/* webpackChunkName: "brace" */ 'brace'...
dispatch/static/manager/src/js/pages/Podcasts/PodcastPage.js
ubyssey/dispatch
import React from 'react' import PodcastEditor from '../../components/PodcastEditor' export default function PodcastPage(props) { return ( <PodcastEditor itemId={props.params.podcastId} goBack={props.router.goBack} route={props.route} /> ) }
ui/src/views/users/ListUsers.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import { Link } from 'react-router'; import Pagination from "../../components/Pagination"; import UserStore from "../../stores/UserStore"; class UserRow extends Component { render() { return( <tr> <td><Link to={`/users/${this.props.user.id}/edit`}>{this.pr...
webpack/containers/Application/index.js
jlsherrill/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from '../../scenes/Organizations/OrganizationActions'; import reducer from '.....
client/analytics/components/partials/charts/_HalfPieChartOld.js
Haaarp/geo
import React from 'react'; import AmCharts from 'amcharts3-react'; class HalfPieChart extends React.Component{ constructor(props) { super(props); this.state = {}; } getDataProvider(data){ let result = []; if (data && Object.keys(data).length > 0) { result.push...
data-async-table/src/index.js
krescruz/redux-component
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import { createLogger } from 'redux-logger' import { Provider } from 'react-redux' import App from './components/App' import todoApp from './reducers' const middleware = [ t...
front/manage/components/kp.js
RalphSleigh/bookings
import React from 'react' //import bookings from '../bookings' //import { manageEventCheck } from '../permission.js' import { Row, Col, Button, Card, CardBody, CardTitle, Table } from 'reactstrap'; import W from '../../../shared/woodcraft.js' export default class KP extends React.Compone...
src/components/AlbumDetail.js
shabib87/Albums
import React from 'react'; import { Text, View, Image, Linking } from 'react-native'; import Card from './Card'; import CardSection from './CardSection'; import Button from './Button'; const AlbumDetail = ({ album }) => { const { title, artist, thumbnail_image, image, url } = album; const { thumbnailStyle, ...
src/js/components/classification-details.js
UNECE/Classification-Explorer
import React from 'react'; import Correspondences from './correspondences'; import Levels from './levels'; import ClassificationDetailsPane from './classification-details-pane'; import { sparqlConnect } from '../sparql/configure-sparql'; import { LOADED } from 'sparql-connect'; import { connectFromRoute } from '../rout...
src/Parser/MistweaverMonk/Modules/Spells/EssenceFont.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Module from 'Parser/Core/Module'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; const debug = false; class EssenceFontMastery extends Module...
src/components/PlayButton/index.js
adam-beck/react-powerball
import React from 'react'; import style from './style.css'; const PlayButton = ({click, disabled, rounds}) => ( <div className={style.buttonContainer}> <button className={style.button} disabled={disabled} onClick={() => click(rounds)}>Play {rounds} Round{rounds === 1 ? '' : 's'}</button> </div> ); export { P...
docs/app/Examples/elements/Step/Content/Descriptions.js
jcarbo/stardust
import React from 'react' import { Step } from 'stardust' const { Description, Group, Title } = Step const Descriptions = () => ( <div> <Group> <Step> <Title>Shipping</Title> <Description>Choose your shipping options</Description> </Step> </Group> <br /> <Group> <...
pootle/static/js/shared/components/Modal.js
phlax/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 React from 'react'; import LayeredComponent from '...
src/js/components/icons/base/Language.js
odedre/grommet-final
/** * @description Language SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @p...
u-tang/client/modules/users/components/.stories/buddy_list.js
kurapikats/uhackp2p
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import BuddyList from '../buddy_list.jsx'; storiesOf('users.BuddyList', module) .add('default view', () => { return ( <BuddyList /> ); })
app/containers/Article/index.js
Oscar-21/austin-conder
import React from 'react'; import Helmet from 'react-helmet'; import Responsive from 'react-responsive'; import ArticleStyle from 'components/ArticleStyle'; import Comments from 'components/Comments'; import Share from 'material-ui/svg-icons/social/share'; import Email from 'material-ui/svg-icons/communication/email'; ...
src/components/login/icons/FacebookIcon.js
juanda99/arasaac
import React from 'react' import Facebook from 'svg-icons/facebook' import {white} from 'material-ui/styles/colors' const style = { top: 7, position: 'relative', width: 30, marginLeft: 40 } const FacebookIcon = () => ( <Facebook style={style} color={white} /> ) export default FacebookIcon
src/svg-icons/image/hdr-on.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrOn = (props) => ( <SvgIcon {...props}> <path d="M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13...
app/javascript/mastodon/features/list_adder/components/list.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from '../../../components/icon_button'; import { defineMessages, inject...
src/DetailsSection/Table/Name.js
conferenceradar/list
import React from 'react'; const Name = ({value, rowData}) => ( <strong> { rowData && rowData.url ? <a href={rowData.url} target="_blank">{value}</a> : value } </strong>) export default Name;
src/slide.js
coder36/react-slides
import React from 'react' import { connect } from 'react-redux'; @connect( (state) => state ) export default class Slide extends React.Component { render() { let slide = React.createFactory(require(`./slides/${this.props.name}`))(this.props); return( <div className='slideShow'> ...
src/routes/GasHybridElectric/components/Results.js
psound/jm-liberty
import React from 'react' import { IndexLink, Link } from 'react-router' import './HomeView.scss' const styles = {}; let data = require('../assets/data.json'); class Results extends React.Component { constructor (props) { super(props); this.state = { heroImage: require(`../../../img/...
src/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/> </SvgIcon> ); Devi...
docs/client.js
mxc/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
jenkins-design-language/src/js/components/material-ui/svg-icons/content/remove-circle-outline.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentRemoveCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/> </SvgIcon> ); ContentRemov...
js/components/profile/OrganisationDetails.js
kishorevarma/nakiva.com
import React, { Component } from 'react'; import { map } from 'underscore'; export default class OrganisationDetails extends Component{ constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); this.state = {openProject: 0}; } render() { let {orgDetails, ...rest} = {...this.props};...
app/components/Account/Signup.js
leckman/purlpal
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux' import { signup } from '../../actions/auth'; import { facebookLogin, twitterLogin, googleLogin, vkLogin, githubLogin } from '../../actions/oauth'; import Messages from '../Messages'; class Signup extends React.Compone...
src/index.js
alexsincai/star-system-map-generator
import React from 'react'; import ReactDOM from 'react-dom'; import { saveSvgAsPng } from 'save-svg-as-png'; import '../node_modules/normalize.css/normalize.css'; import './index.css'; import util from './helpers/util'; import build from './helpers/build'; import Editor from './components/editor'; import Defs from ...
razorchess-react/examples/src/Examples.js
blank-blank/razorchess
require('./Examples.less'); import React, { Component } from 'react'; import classnames from 'classnames'; import PlayGame from './PlayGame/SmartPlayGame'; import Puzzle from './Puzzle/SmartPuzzle'; export default class Examples extends Component { constructor() { super(); this.examples = [ 'Play gam...
src/svg-icons/image/crop-din.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropDin = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageCropDin = pure(ImageCropDin); Image...
admin/client/App/screens/List/components/UpdateForm.js
snowkeeper/keystone
import React from 'react'; import Select from 'react-select'; import { findDOMNode } from 'react-dom'; import assign from 'object-assign'; import { Fields } from 'FieldTypes'; import InvalidFieldType from '../../../shared/InvalidFieldType'; import { plural } from '../../../../utils/string'; import { BlankState, Button,...
examples/todomvc/containers/TodoApp.js
tcoopman/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...
src/components/auth/login.js
ogoss/react-contacts-demo
import React from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import Checkbox from 'material-ui/Checkbox'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import Snackbar from 'material-ui/Snackbar'; const defaultP...
docs-ui/components/circleIndicator.stories.js
looker/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import {number, boolean} from '@storybook/addon-knobs'; import CircleIndicator from 'app/components/circleIndicator'; storiesOf('CircleIndicator', module).add( 'default', withInfo('Description')(...
pages/blog/index.js
cable729/react-blog
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Blog</h1> <p>Coming soon....
packages/react-router-website/components/LoadBundle.js
rafrex/react-router
import React from 'react' import LoadingDots from './LoadingDots' import { B } from './bricks' class LoadBundle extends React.Component { state = { value: null } componentDidMount() { this.props.load(value => this.setState({ value })) } render() { const { value } = this.state return value ? this....
src/wrappers/Hide/index.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './hide.module.scss'; function getHideList(hideOn) { return hideOn.split(' ').map((hide) => styles[hide]); } function Hide(props) { const { children, className, hideOn, } = props; ...
packages/icons/src/tags.js
geek/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg xml...
web/src/js/components/Background/FadeBackgroundAnimation.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import { CSSTransition, TransitionGroup } from 'react-transition-group' class FadeBackgroundAnimation extends React.Component { render() { return ( <TransitionGroup> {React.Children.map(this.props.children, (item, i) => ( <CSSTr...
tests/lib/rules/vars-on-top.js
matthewbauer/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
app/javascript/mastodon/features/ui/components/column_loading.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Column from '../../../components/column'; import ColumnHeader from '../../../components/column_header'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class ColumnLoading extends ImmutablePureComponent { stat...
src/packages/@ncigdc/modern_components/CaseCounts/CaseCounts.relay.js
NCI-GDC/portal-ui
import React from 'react'; import { graphql } from 'react-relay'; import { makeFilter } from '@ncigdc/utils/filters'; import { compose, withPropsOnChange, branch, renderComponent } from 'recompose'; import Query from '@ncigdc/modern_components/Query'; export default (Component) => compose( branch( ({ caseI...
fields/types/email/EmailField.js
belafontestudio/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; /* TODO: - gravatar - validate email address */ module.exports = Field.create({ displayName: 'EmailField', renderValue () { return this.props.value ? ( <FormInput noedit href={'mailto:' + this.props.value}>{this...
examples/todo/js/components/TodoTextInput.js
gabelevi/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
src/svg-icons/action/alarm-off.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
packages/icons/src/md/device/BatteryUnknown.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdBatteryUnknown(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M31.33 8c1.48 0 2.67 1.19 2.68 2.67v30.67c0 1.48-1.2 2.67-2.67 2.67H16.67A2.67 2.67 0 0 1 14 41.34V10.67C14 9.19 15.19 8 16.67 8H20V4h8v4h3.33...
app/components/AddFile/index.js
cerebral/cerebral-reference-app
import React from 'react'; import styles from './styles.css'; import icons from 'common/icons.css'; import ToolbarButton from 'common/components/ToolbarButton'; function AddFile(props) { const onAddFileInputChange = (event) => { const fileName = event.target.value; props.onFileNameChange({fileName: fileName}...
src/CircleButton.js
jacklam718/react-native-button-component
import React from 'react'; import PropTypes from 'prop-types'; import ButtonComponent from './ButtonComponent'; export default function CircleButton(props) { const buttonSize = props.size; const progressSize = buttonSize; const textInsideProgress = props.states ? props.states[props.buttonState].progress ...
src/shared/components/outboundLink/outboundLink.js
OperationCode/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import ReactGA from 'react-ga'; const OutboundLink = ({ href, analyticsEventLabel, children, className, style, }) => { if (process.env.NODE_ENV === 'production') { return ( <ReactGA.OutboundLink to={href} eventLabel={`...
src/components/Layout/Layout.js
adrianosmond/adrianosmond.com
import React from 'react'; import Helmet from 'react-helmet'; import Header from 'components/Header'; import Meta from 'components/Meta'; import Nav from 'components/Nav'; import './reset.css'; import './Layout.css'; const Layout = ({ title, children, footer }) => ( <> <Meta /> <Helmet title={title} /> ...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/import-contacts.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationImportContacts = (props) => ( <SvgIcon {...props}> <path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4...
Skins/VetoccitanT3/ReactSrc/Pages/NSC/component_nsc.js
MAN-IN-WAN/Kob-Eye
import React from 'react'; import ReactDOM from 'react-dom'; import HTMLEllipsis from 'react-lines-ellipsis/lib/html'; import { useSelector } from 'react-redux'; import { useLocation } from "react-router-dom"; import { buildHtml } from '../../Redux/nscSlice.js' export default function CompoNsc(){ let location = us...
src/icons/VerticalAlignBottomIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class VerticalAlignBottomIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M32 26h-6V6h-4v20h-6l8 8 8-8zM8 38v4h32v-4H8z"/></svg>;} };
RNLearning/index.ios.js
ivanl001/ReactNative-Learning
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, View, Text, } from 'react-native'; var App = require('./z-day04-Estore/Main/Main'); // var App = require('./z-day02/03-TabBarIOS'); export default class...
client/src/RegistrationForm.js
panter/mykonote
import React, { Component } from 'react'; import { ajax } from './ajax'; import AlertFlash from './AlertFlash'; import NoticeFlash from './NoticeFlash'; import { TextInput, SubmitButton, Utf8 } from './Form'; import { scrollToTop } from './scroll'; import Navbar from './Navbar'; import Flash from './Flash'; import User...
src/components/metro/MetroScores.js
availabs/kauffman-atlas
import React from 'react' import { connect } from 'react-redux' import { loadMetroGdp, loadMetroGdpPerCapita } from 'redux/modules/metroGdpData' import { loadMetroScores } from 'redux/modules/metroScoresData' import classes from 'styles/sitewide/index.scss' import LineGraph from 'components/graphs/SimpleLineGraph' impo...
app/components/Site.js
L-A/Little-Jekyll
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Dispatcher from '../utils/front-end-dispatcher'; import SimpleButton from './simple-button.js'; import Mousetrap from 'Mousetrap'; import {shell} from 'electron'; var Site = React.createClass({ getInitialState: function() { return...
src/interface/others/AverageTargetsHit.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const AverageTargetsHit = props => { const { casts, hits, unique, approximate } = props; const averageHits = (hits / casts) || 0; return ( <> {approximate && '≈'}{averageHits.toFixed(1)} <small> {unique ? 'unique targets hit' : 'average'} {...
app/view/android/DoKitchenPager/KitchenList.js
1598692232/rn-xcf
/** * Created by bll on 2017/7/21. */ import React from 'react'; import { Text, Button, View } from 'react-native'; export default class DoKitchenPager extends React.Component { render() { const { navigate } = this.props.navigation; return ( <View> <Text>Hello, DoKitchenPager!</Text> <Button ...
src/containers/profile/main_profile_container.js
decaster3/hikester_redux
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import MainProfilePageComponent from '../../components/profile_page/main_profile_page/main_profile_page_component'; import { changeAvatar } from '../../actions/profile/profile_settings_action'; ...
src/app/component/cart-model-item/cart-model-item.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import noop from 'lodash/noop' import fallbackSource from '../../../asset/image/model-thumbnail-fallback.png' import propTypes from '../../prop-types' import cn from '../../lib/class-names' import ImageContainer from '../image-container' import CheckboxFie...
smart-css/button.js
konce/css-in-js
import React from 'react'; import SmartCSS from 'smart-css'; let css = new SmartCSS(); css.setClass('.container', { textAlign: 'center' }); css.setClass('.button', { backgroundColor: '#ff0000', width: '320px', padding: '20px', borderRadius: '5px', border: 'none', outline: 'none' }); css.setClass('.but...
src/app/components/Message.js
GContaldi/node_chat
import React from 'react'; import Avatar from './Avatar'; const Message = (props) => { const classNames = props.me ? 'message--me' : 'message--others'; const content = <div data-element="text" className="message--content">{props.text}</div>; const avatar = <Avatar username={props.username} />; return ( ...
ajax/libs/recompose/0.20.1/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...
demo/views/content/menu1/menu13.js
133922249/demo
import React from 'react'; import './menu13/menu13.css'; export default class Menu13 extends React.Component { constructor(props) { super(props); this.state = { } }; getNewData(arr){ }; componentDidMount(){ } render() { return <ul className='game2048'> menu13 </ul> };...
client/src/containers/NotFound/NotFound.js
ApolloCrawler/microcrawler-webapp
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> </div> ); }
test/integration/image-component/base-path/pages/invalid-src-proto-relative.js
flybayer/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Invalid Protocol Relative Source</p> <Image src="//assets.example.com/img.jpg" width="10" height="10" /> </div> ) } export default Page
fields/types/cloudinaryimages/CloudinaryImagesField.js
webteckie/keystone
import _ from 'lodash'; import React from 'react'; import ReactDOM from 'react-dom'; import Field from '../Field'; import { Button, FormField, FormInput, FormNote } from 'elemental'; import Lightbox from '../../components/Lightbox'; import classnames from 'classnames'; const SUPPORTED_TYPES = ['image/gif', 'image/png'...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/panorama-horizontal.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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.06C18.18 5.16 15.09 5.7 12 5.7c-3.09...
src/SplitButton.js
Terminux/react-bootstrap
import React from 'react'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; import omit from 'lodash-compat/object/omit'; import pick from 'lodash-compat/object/pick'; class SplitButton extends React.Component { render() { let { children, tit...
examples/js/column-header-span/column-header-span.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, ...
packages/reactor-kitchensink/src/examples/D3/HeatMap/ConfigurablePivotHeatmap/ConfigurablePivotHeatmap.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Button, Toolbar, Spacer } from '@extjs/ext-react'; import { PivotD3Container } from '@extjs/ext-react-pivot-d3'; import salesData from './salesData'; Ext.require('Ext.pivot.d3.HeatMap'); const regions = { "Belgium": 'Europe', "Netherlands": 'Europe', "Uni...
app/components/QdpAdvanceSearcher/index.js
bruceli1986/react-qdp
/** * * QdpAdvanceSearcher * */ import React from 'react'; import { connect } from 'react-redux'; import { Form, Row, Col, Button } from 'antd'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import styles from './styles.css'; import _ from 'lodash'; const createForm = Form.create; ...
src/docs/examples/TextInput/ExampleOptional.js
choudlet/ps-react-choudlet
import React from 'react'; import TextInput from 'ps-react/TextInput'; /** Optional TextBox */ export default class ExampleOptional extends React.Component { render() { return ( <TextInput htmlId="example-optional" label="First Name" name="firstname" onChange={() => {}} ...
client/components/Flass/Upload/index.js
Nexters/flass
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import { connect } from 'react-redux'; import { STEP_1, STEP_2 } from '~/ducks/constants'; import * as actions from '~/ducks/Upload/uploads'; import { INIT_QUESTION_STATES } from '~/ducks/Upload/upl...
src/ReactSizeReporter.js
berrtech/react-size-reporter
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import ResizeSensor from './vendor/ResizeSensor/ResizeSensor.js'; class SizeReporter extends React.PureComponent { static propTypes = { children: PropTypes.node.isRequired, onSizeChange: PropTypes....
node_modules/react-native/Libraries/CustomComponents/Navigator/Navigator.js
odapplications/WebView-with-Lower-Tab-Menu
/** * Copyright (c) 2013-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. * * Facebook,...
src/Pages/Login/widget/LoginChooseView.js
RoJoHub/SFKJ_ReactNative_App
/** * 上午10:17 * 2017年6月28日 * Author : 罗浩 (Luo Hao) * GitHub : https://github.com/RoJoHub * Blog : http://blog.csdn.net/mandmg */ import React from 'react' import { View, StyleSheet } from 'react-native' import { ImageButton } from '../../../widget' const mystyle = StyleSheet.create({ containStyle: { justi...
information/blendle-frontend-react-source/app/modules/settings/components/TransactionRow.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; class DepositRow extends React.Component { static propTypes = { date: PropTypes.string, text: PropTypes.string.isRequired, }; _renderDate = () => { if (this.props.date) { return <div className="date">{this.props.date}</div>; } ...
src/utils/domUtils.js
xsistens/react-bootstrap
import React from 'react'; import canUseDom from 'dom-helpers/util/inDOM'; import getOwnerDocument from 'dom-helpers/ownerDocument'; import getOwnerWindow from 'dom-helpers/ownerWindow'; import contains from 'dom-helpers/query/contains'; import activeElement from 'dom-helpers/activeElement'; import getOffset from 'd...
app/components/CommentsForm.js
roberthovhannsiyan/react-js-lesson
import React from 'react'; import firebase from 'firebase'; export default class CommentsForm extends React.Component { constructor(props) { super(props); this.state = { author: '', text: '', answer: { name: '', aText: '' } }; } setData = (...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
Exocortex/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(id = 0) { return [ { id: id + 1, name...