path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/addons/components/components/polling.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the 'License'); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/Snackbar/Snackbar.js
gutenye/react-mc
// @flow import React from 'react' import cx from 'classnames' import { MDCSnackbarFoundation } from '@material/snackbar/dist/mdc.snackbar' import * as helper from '../helper' import type { PropsC } from '../types' class Snackbar extends React.Component { props: { align?: 'start', } & PropsC static defaultP...
client/src/TopMenu.js
ruslan2k/web-password
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { Menu } from 'semantic-ui-react'; class TopMenu extends Component { state = {} handleItemClick = (e, { name }) => this.setState({ activeItem: name }) render() { // const isLogged...
app/containers/NotFoundPage/index.js
kenaku/react-boilerplate
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Button from 'components/Button'; import H1 from 'components/H1'; export function NotFound(pro...
techCurriculum/ui/solutions/4.4/src/components/Message.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
react/src/components/dashboard/exchangesTOSModal/exchangesTOSModal.render.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import Config from '../../../config'; const ExchangesTOSModalRender = function() { return ( <div onKeyDown={ (event) => this.handleKeydown(event) }> <div className={ `modal modal-3d-sign exchanges-tos-modal ${this.stat...
src/components/EditSections/EditExtendedInfo/DepartmentsNameEdit/DepartmentsNameEdit.js
folio-org/ui-users
import React from 'react'; import { FormattedMessage, useIntl, } from 'react-intl'; import { Field } from 'react-final-form'; import { FieldArray } from 'react-final-form-arrays'; import { Select, RepeatableField, } from '@folio/stripes/components'; import { departmentsShape } from '../../../../shapes'; impo...
demo04/src/index.js
lxlneo/reactdemo
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
pjuke/react-router
import React from 'react'; class Announcement extends React.Component { render () { var { courseId, announcementId } = this.props.params; var { title, body } = COURSES[courseId].announcements[announcementId]; return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } ...
components/TextDescriptionCard.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { Text, View } from 'react-native' import PropTypes from 'prop-types' const styles = { textDescription: { fontSize: 12.5, fontWeight: '600', lineHeight: 24, textAlign: 'justify', }, } export const TextDescriptionCard = ( { containerStyle, textStyle = {}, titl...
src/components/explorer/home/Homepage.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl, FormattedMessage, FormattedHTMLMessage } from 'react-intl'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { schemeCategory10 } from 'd3'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'...
force_dir/node_modules/react-bootstrap/es/FormGroup.js
wolfiex/VisACC
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 ...
node_modules/react-router/es/IndexLink.js
nikhil-ahuja/Express-React
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Link from './Link'; /** *...
src/svg-icons/image/landscape.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLandscape = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageLandscape = pure(ImageLandscape); ImageLandscape.displayName...
app/components/Accounts/Voting.js
soosgit/vessel
// @flow import steem from 'steem'; import React, { Component } from 'react'; import { Button, Divider, Form, Grid, Header, Input, Message, Modal, Segment, Table } from 'semantic-ui-react'; import InputRange from 'react-input-range'; import Collapsible from 'react-collapsible'; import NumericLabel from '../../utils/N...
src/AppContainer/AppContainer.js
googlecreativelab/morse-speak-demo
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
client/app/components/Auth/LoginForm.js
yanhao-li/menu-plus
import React from 'react'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButtonSm from 'components/Button/FlatButtonSm'; import { login } from 'actions/AuthActions'; import LoginFormUI from 'components/Auth/LoginFormUI'; import validateInput from 'compone...
app/containers/SectionItem.js
altany/react-new-tab-chrome-extension
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { DropTarget } from 'react-dnd'; import styled from 'styled-components'; import { openPopup } from '../actions/popup'; const SectionTarget = { drop(p...
src/containers/Layout/Layout.js
iestruch/react_demo
import React from 'react'; /** material ui */ import {LeftNav,List,ListItem,AppBar,Avatar} from 'material-ui'; import Colors from 'material-ui/lib/styles/colors'; import {SelectableContainerEnhance} from 'material-ui/lib/hoc/selectable-enhance'; const SelectableList = SelectableContainerEnhance(List); /** react-route...
src/components/controls/Select/defaults/inputRenderer.js
5rabbits/portrait
/* eslint-disable jsx-a11y/no-autofocus, react/prop-types */ import React from 'react' export default ({ canCreate, hasResults, inputPlaceholder, onChange, onKeyDown, onNewOptionClick, value, }) => <div className="Select__input"> <input autoFocus onChange={onChange} onKeyDown={on...
app/client/src/components/AccountForm/components/Security/Security.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { compose } from 'react-apollo'; import history from 'lib/history'; import formWrapper from 'lib/formWrapper'; import { validateString, validatePasswords, } from 'lib/validateComponentForms...
example/with-mock-auth/src/index.js
iansinnott/react-static-webpack-plugin
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; // Import your routes so that you can pass them to the <Router /> component import routes from './routes.js'; render( <Router routes={routes} history={browserHistory} />, document.getElementById('...
src/routes/UserManagement/components/index.js
vijayasankar/ML2.0
import Button from 'react-bootstrap/lib/Button' import Col from 'react-bootstrap/lib/Col' import CurrentUser from './CurrentUser' import React from 'react' import RegisteredUsers from './RegisteredUsers' import Row from 'react-bootstrap/lib/Row' import TextField from 'components/TextField' import apiRequest from 'utils...
web/client/configdev/src/config/StreamServer.js
project-owner/Peppy
/* Copyright 2019 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la...
modules/gui/src/widget/overflowDetector.js
openforis/sepal
import PropTypes from 'prop-types' import React from 'react' import styles from './overflowDetector.module.css' export default class OverflowDetector extends React.Component { ref = React.createRef() render() { const {className, children} = this.props const element = this.ref.current c...
frontend/src/Components/Form/CheckInput.js
lidarr/Lidarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import { icons, kinds } from 'Helpers/Props'; import FormInputHelpText from './FormInputHelpText'; import styles from './CheckInput.css'; class CheckInput extends Compo...
examples/src/index.js
rilkevb/React-SimpleFormat-Component
import React from 'react' import ReactDOM from 'react-dom' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
src/js/components/navigation/seats/Seat.js
csepreghy/VR-Cinema-Website-with-React.js
import {Entity} from 'aframe-react'; import React from 'react'; export default class Seat extends React.Component { constructor(props) { super(props); this.state = { opacity: 1, }; } render() { return ( <Entity position={this.props.seatPos} > <Entity visible={ true } ...
information/blendle-frontend-react-source/app/components/icons/PauseIcon.js
BramscoChill/BlendleParser
import React from 'react'; import { string } from 'prop-types'; function PauseIcon({ fill, ...props }) { return ( <svg height="24" width="24" fill={fill} viewBox="0 0 24 24" {...props}> <path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z" /> <path d="M0 0h24v24H0z" fill="none" /> </svg> ); } PauseIcon.pro...
src/components/common/icons/PeopleFill.js
WendellLiu/GoodJobShare
import React from 'react'; /* eslint-disable */ const People = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <path d="M147.616125 141.522687C145.842438 133.650937 132.4415 84.771625 73.9514375 84.771625 10.6536875 84.771625.1641875 142.001375.06475 142.581812-.161875 143.925375.208...
public/loader/asyncComponent.js
chenshunyu/tommy
import React from 'react'; function asyncComponent(getComponent) { return class AsyncComponent extends React.Component { static Component = null; state = { Component: AsyncComponent.Component }; componentWillMount() { if (!this.state.Component) { getComponent()....
app/javascript/mastodon/components/autosuggest_hashtag.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { shortNumberFormat } from 'mastodon/utils/numbers'; import { FormattedMessage } from 'react-intl'; export default class AutosuggestHashtag extends React.PureComponent { static propTypes = { tag: PropTypes.shape({ name: PropTypes.string...
routes/Statistic/index.js
YongYuH/Ludo
import React from 'react'; import styled from 'styled-components'; import DotInfo from './components/DotInfo'; import StatisticInfo from './components/StatisticInfo'; import ScatterPlotInfo from './components/ScatterPlotInfo'; import TemplateTitleContainer from './components/TemplateTitleContainer'; const Main = style...
frontend/src/components/overview/widget.js
Kilte/scrobbler
import React from 'react'; class Widget extends React.Component { render() { return <div className="overview-widget"> <div className="overview-widget-header"> {this.props.title} </div> <div className="overview-widget-body"> {this.props.chi...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
res-ac/mstdn.res.ac
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
examples/index.js
ericgio/r-d3
import React from 'react'; import {render} from 'react-dom'; import AreaChartExample from './examples/AreaChartExample.react'; import AreaChartExampleCode from '!raw-loader!./examples/AreaChartExample.react'; import AreaChartStackedExample from './examples/AreaChartStackedExample.react'; import AreaChartStackedExample...
extensions/log/client.js
axax/lunuc
import React from 'react' import Hook from 'util/hook' import {getTypeQueries} from 'util/types' import {client} from 'client/middleware/graphql' export default () => { // add routes for this extension Hook.on('JsonDomError', ({error, editMode}) => { if (!editMode && error) { const querie...
src/SelectBox/components/SelectBox.js
ambitioninc/react-ui
import React from 'react'; import { BLUR_DELAY_MS, debounce, getClassName, KEY_CODES, noop } from '../../utils'; class SelectBox extends React.Component { constructor(...args) { super(...args); this.state = { highlightedIndex: -1, showDropDown: false, ...
src/components/flashcard/mode/matching_game/matching_game.js
trihpham/flashcard-webapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getMatchingCardList, chosenCard, startGame, startTimer, stopTimer, restartGame, endGame } from '../../../../actions/matching_game'; import classNames from 'classnames'; import { setUpMatchingGameMode } from '../../../../actions/in...
example/deep-route-nesting/src/Products.js
iansinnott/react-static-webpack-plugin
/* eslint-disable react/prop-types */ import React from 'react'; export class Products extends React.Component { render() { return ( <div className='Products'> <h1>A list of all products</h1> <div className='children'> {this.props.children} </div> </div> ); } }...
src/index.js
blurbyte/react-quickstart
// styles reset import 'sanitize.css/sanitize.css'; // required for redux-saga generatos import 'regenerator-runtime/runtime'; import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; // root component required for react-hot-loader import Root from './containers...
src/components/UserAssignment/UserAssignment.js
TheLADbibleGroup/hackathon
import React from 'react'; import StoryAvatar from './../Story/StoryAvatar'; import moment from 'moment'; import './UserAssignment.scss'; const UserAssignment = (props) => ( <div className='assignment'> <div className='assignment__header'> <div className='user-meta__type user-meta__type--large ...
Realization/frontend/czechidm-core/src/components/advanced/Icon/MainContractIcon.js
bcvsolutions/CzechIdMng
import React from 'react'; import { faBuilding, faCircle, faArrowUp } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { i18n } from '../../../services/LocalizationService'; // import AbstractIcon from './AbstractIcon'; /** * Icon for the "main" identi...
src/helpers/connectData.js
martinval/boiler2
import React, { Component } from 'react'; import hoistStatics from 'hoist-non-react-statics'; /* Note: When this decorator is used, it MUST be the first (outermost) decorator. Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods. */ export default function connectData(fetchData, fe...
docs/src/app/components/pages/get-started/Installation.js
pomerantsev/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import installationText from './installation.md'; const Installation = () => ( <div> <Title render={(previousTitle) => `Installation - ${previousTitle}`} /> <MarkdownElement text={insta...
src/native/home/HomePage.react.js
amrsekilly/updatedEste
import Component from 'react-pure-render/component'; import React from 'react'; import { CenteredView, Text } from '../app/components'; import { FormattedMessage, defineMessages } from 'react-intl'; const messages = defineMessages({ intro: { defaultMessage: ` Este App Press CMD+R to reload Pres...
stories/checkbox/index.js
lanyuechen/dh-component
import React from 'react'; import { Checkbox, Checkbox2 } from '../../src'; import CheckboxDemo from './checkbox' import { storiesOf, action, linkTo } from '@kadira/storybook'; const options = { inline: true } storiesOf('复选框', module) .addWithInfo( '复选框1', () => ( <CheckboxDemo /> ), options);
src/ui/index.js
Kevnz/MobileContentAPI
import React from 'react' import ReactDOM from 'react-dom' import 'mini.css' import App from './core/app' ReactDOM.render(<App />, document.getElementById('root')) module.hot.accept()
src/containers/signup_form.js
ishan993/IshanBlogReactRedux
import React, { Component } from 'react'; import styled from 'styled-components'; import { Field, reduxForm } from 'redux-form'; import { LoadingSubmitButton, ErrorDiv } from '../components/reuseable_components'; export const InputFieldLarge = styled(Field)` font-weight: 300; margin: auto; width: 80%; line-hei...
src/routes/contact/index.js
fvalencia/react-vimeo
/** * 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...
components/sections/footer/index.js
wulkano/kap-website
import React from 'react' import Section from '../section' import Grid, { Column } from '../../grid' import WulkanoAndFriends from './wulkano-and-friends' import Links from './links' import Form from './form' export default () => ( <Section> <Grid> <Column> <WulkanoAndFriends /> </Column> ...
fixtures/attribute-behavior/src/index.js
acdlite/react
import './index.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
fields/types/boolean/BooleanField.js
developer-prosenjit/keystone
import React from 'react'; import Field from '../Field'; import { Checkbox, FormField, FormNote } from 'elemental'; module.exports = Field.create({ displayName: 'BooleanField', propTypes: { indent: React.PropTypes.bool, label: React.PropTypes.string, note: React.PropTypes.string, onChange: React.PropTypes....
example/browser.js
bkniffler/draft-wysiwyg
import 'babel-polyfill'; import Example from './container'; import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <Example />, document.getElementById('target') );
test/helpers/shallowRenderHelper.js
dtying/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/svg-icons/content/add-circle-outline.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.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.5...
packages/v4/src/pages/community.js
patternfly/patternfly-org
import React from 'react'; import { Link } from 'theme-patternfly-org/components'; import { Grid, GridItem, PageSection, Split, SplitItem, Title } from '@patternfly/react-core'; import './community.css'; import { getTitle } from 'theme-patternfly-org/helpers/getTitle'; import communityPageHeader from './community-page-...
src/js/components/icons/base/View.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
examples/src/components/RemoteSelectField.js
jwarning/react-select
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...
docs/app/Examples/elements/Container/index.js
clemensw/stardust
import React from 'react' import Types from './Types' import Variations from './Variations' const ContainerExamples = () => ( <div> <Types /> <Variations /> </div> ) export default ContainerExamples
src/components/PagedCollection.js
literarymachine/crg-ui
import React from 'react' import PropTypes from 'prop-types' import { Composer } from 'json-pointer-form' import ItemList from './ItemList' import Icon from './Icon' import translate from './translate' import withEmitter from './withEmitter' import schema from '../json/schema.json' import '../styles/PagedCollection....
src/components/screen.js
dadiaoguai/blog-react-demo-front
import React from 'react' import propTypes from 'prop-types' const Screen = ({ store }) => (<div style={{ position: 'fixed', bottom: 0, left: 0, }} > {JSON.stringify(store, null, 2)} </div>) Screen.propTypes = { store: propTypes.shape({}), } Screen.defaultProps = { store: {}, } export de...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
mxw0417/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const ContactsSectionItem = React.createClass({ propTypes: { contact: React.PropTypes.object }, mixins: [...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
v2tmobile/actor-platform
import React from 'react'; //import { Experiment, Variant } from 'react-ab'; //import mixpanel from 'utils/Mixpanel'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import DialogActionCreators from 'actions/DialogAc...
src/svg-icons/action/delete-forever.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
src/Card/Action.js
gutenye/react-mc
import React from 'react' import cx from 'classnames' import Button from '../Button' import type { PropsC } from '../types' class Action extends React.Component { props: PropsC static defaultProps = { component: Button, } static displayName = 'Card.Action' render() { const { component: Component, cl...
src/components/WeatherIcons/CloudPrim.js
Cirych/WeatherApp
import React from 'react'; export const CloudPrim = ({ color = 'white' }) => <g id="cloudPrim"> <path id="cloud1" fill={color} stroke="black" strokeWidth="10000" d="M472900 238469c6689,-709 13440,-1255 20252,-1255 71587,0 129619,59016 129619,131816 0,71009 -55312,129256 -125159,131775l-366116 39 -831 0c-64306,0 -11...
src/components/modules/AnimeCard.js
migueliriano/react-anime-project
import React from 'react'; import PropTypes from 'prop-types'; import { CardContainer, Header, BodyContainer, } from 'style/animeCard'; const AnimeCard = props => ( <CardContainer> <Header> {props.title} </Header> <BodyContainer> {props.children} </BodyContainer> </CardContainer> ); AnimeCard.defau...
src/components/LineChart.js
aastein/crypto-trader
import React, { Component } from 'react'; import ReactHighcharts from 'react-highcharts/ReactHighstock.src'; import PropTypes from 'prop-types'; export default class PriceChart extends Component { componentWillReceiveProps = (nextProps) => { const chart = this.wschart.getChart(); if (this.dataChanged(nextP...
ajax/libs/react-instantsearch/4.0.0-beta.1/Dom.js
joeyparrish/cdnjs
/*! ReactInstantSearch 4.0.0-beta.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof ...
src/components/Sidebar/Contacts/Contacts.js
wall3/wall3.github.io
// @flow strict import React from 'react'; import { getContactHref, getIcon } from '../../../utils'; import Icon from '../../Icon'; import styles from './Contacts.module.scss'; type Props = { contacts: { [string]: string, }, }; const Contacts = ({ contacts }: Props) => ( <div className={styles['contacts']}>...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js
tharakawj/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 from 'react'; import './assets/style.css'; import { test, version } from 'test-integrity'; export default () => { const ...
docs/client/components/shared/GithubButton/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; export default class GithubStarButton extends Component { componentDidMount() { const githubScript = document.createElement('script'); githubScript.src = '//buttons.github.io/buttons.js'; githubScript.id = 'github-bjs'; this.githubButton.parentNode.appendChi...
examples/05 Customize/Drop Effects/index.js
arnif/react-dnd
import React from 'react'; import Container from './Container'; export default class CustomizeDropEffects { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Drop%20Effects'>Browse the Source</a></b> </p> <p>...
classic/src/scenes/wbfa/generated/FARFrown.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faFrown } from '@fortawesome/pro-regular-svg-icons/faFrown' export default class FARFrown extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faFrown} />) } }
frontend/components/rss-registration/fetch-preview.js
apostolidhs/wiregoose
import size from 'lodash/size'; import map from 'lodash/map'; import React from 'react'; import PropTypes from 'prop-types'; import Form from 'react-bootstrap/lib/Form'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Col from 'react-bootstrap/lib/Col'; import Row from 'react-bootstrap/lib/Row'; import Fo...
packages/material-ui-icons/src/SignalWifi0BarOutlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /> , 'SignalWifi0BarOutlined');
src/primitives/container/sub-container/index.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import FlexContainer from '../flex-container'; import './style.scss'; export default function SubContainer(props) { const { children, className, noMargin, fullWidth, ...rest } = props; return ( <FlexContainer ...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
lzpfmh/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
src/modules/works/components/WorkDetail/WorkDetail.js
cltk/cltk_frontend
import React from 'react'; import PropTypes from 'prop-types'; // Single work detail view class WorkDetail extends React.Component { render() { const work = this.props.work; return ( <div> <section className="page-head image-bg bg-dark"> <div className="background-image-holder less-blur blur"> ...
webapp/app/components/RestoreCreation/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component page save // import React from 'react'; import { PageHeader } from 'react-bootstrap'; import RestoreCreationForm from 'containers/RestoreCreation/Form'; /* eslint-disable react/prefer-stateless-function */ export default class RestoreCreation extends React.Component { componentWillUnmount() { th...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
gaolichuang/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import DialogActionCreators from 'actions/DialogActionCreators'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupSt...
7-hover/app.js
aruberto/styling-react-components
import React from 'react'; import ReactDOM from 'react-dom'; import Button from './button'; const App = () => ( <div> <div> <Button>Everything is normal ....</Button> &nbsp;&nbsp; <Button error>Oh no, there is an error!</Button> </div> </div> ); ReactDOM.render(<App />, document.getElem...
docs/app/Examples/elements/Segment/Variations/SegmentCompactGroupExample.js
jcarbo/stardust
import React from 'react' import { Segment } from 'stardust' const SegmentCompactGroupExample = () => ( <Segment.Group compact> <Segment> Pellentesque habitant morbi </Segment> <Segment> Pellentesque habitant morbi </Segment> </Segment.Group> ) export default SegmentCompactGroupExample...
src/client/index.js
kettui/webcord-web-app
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import moment from 'moment'; import Root from './root'; import '../../semantic/src/semantic.less'; import './global.scss'; if(process.env.NODE_ENV === 'development') __webpack_public_path__ = `http://${...
src/svg-icons/maps/local-taxi.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
client/components/UserCard/index.js
vinks/redux-ultimate-ssr
import React from 'react' import styles from './styles.scss' const UserCard = ({ info }) => ( <div className={styles.UserCard}> <h4>User Card</h4> <ul> <li>Name: {info.name}</li> <li>Phone: {info.phone}</li> <li>Email: {info.email}</li> <li>Website: {info.website}</li> </ul> </...
todomvc-multi-user/src/index.js
reindexio/reindex-examples
import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; import Reindex from './Reindex'; import App from './components/App'; Relay.injectNetworkLayer(Reindex.getRelayNetworkLayer()); ReactDOM.render( <App />, document.getElementById('root') );
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/pressure/components/__pressure__.js
nossas/bonde-client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; // import * as graphqlQueries from 'graphql/queries' import * as pressureHelper from '../../../../../mobilizations/widgets/utils/pressure-helper'; import * as p...
src/components/add-files-button.js
MCeddy/nodefilestore
import React from 'react'; import classnames from 'classnames'; import FileViewModel from '../viewmodels/file.viewmodel'; export default class AddFilesButton extends React.Component { constructor(props) { super(props); } render() { const btnClasses = classnames('btn-floating', 'btn-large'...
node_modules/react-select/src/utils/defaultMenuRenderer.js
Sweetgrassbuffalo/ReactionSweeGrass-v2
import classNames from 'classnames'; import React from 'react'; function menuRenderer ({ focusedOption, instancePrefix, labelKey, onFocus, onSelect, optionClassName, optionComponent, optionRenderer, options, valueArray, valueKey, onOptionRef }) { let Option = optionComponent; return options.map((option,...
assets/javascript/components/profile/inviteList.js
colinjeanne/learning-site
import React from 'react'; const inviteList = props => { const listItems = props.invitations.map(invite => ( <li key={invite.id}> {'Invite from: ' + invite.createdBy} <button onClick={() => props.onAcceptInvitation(invite.id)} type="button"> ...
react/liveevent/components/LiveEventPanel.js
phil-lopreiato/the-blue-alliance
import React from 'react' import PropTypes from 'prop-types' import FirebaseApp from '../firebaseapp' import { getCompLevelStr, getMatchSetStr } from '../helpers' import CurrentMatchDisplay from './CurrentMatchDisplay' import LastMatchesTable from './LastMatchesTable' import UpcomingMatchesTable from './UpcomingMatch...
packages/react-server-website/pages/homepage.js
davidalber/react-server
import React from 'react'; import HomepageBody from '../components/homepage-body'; import './homepage.less'; export default class Homepage { getTitle() { return "React Server"; } getElements() { return ( <div className="homepage"> <HomepageBody /> </div> ); } }
app/javascript/mastodon/components/load_more.js
Kirishima21/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
example/src/scripts/pages/PlayerDemo/index.js
vyorkin-personal/erlyeditor
import React, { Component } from 'react'; import css from 'react-css-modules'; import { Player, Html5Video } from 'erlyeditor'; import { sources } from '../videoSources'; import styles from './styles'; export class PlayerDemo extends Component { render() { return ( <div styleName='root'> <Player ...
app/components/ListItem/index.js
Frai/Events
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
app/components/Menu/Admin.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; import styled from 'styled-components'; import { Link } from 'react-router'; import UserIcon from './user_icon.svg'; const MenuList = styled.ul` list-style-type: none; padding: 0; margin: 0 10px 0 0; display: none; @media (min-width: 64em) { display: block; } `; const MenuI...
src/backward/Widgets/CardSwiper.js
sampsasaarela/NativeBase
/* @flow */ import React from 'react'; import clamp from 'clamp'; import { Animated, PanResponder } from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import { View } from './View'; const SWIPE_THRESHOLD = 120; export default class CardSwiper extends NativeBaseComponent { constru...
src/routes/index.js
stevecrozz/test-directory-client
import React from 'react' import { Route, IndexRoute, Redirect } from 'react-router' import CoreLayout from 'layouts/CoreLayout/CoreLayout' import HomeView from 'views/HomeView/HomeView' import UserIndexView from 'views/UserIndexView/UserIndexView' import NotFoundView from 'views/NotFoundView/NotFoundView' import AuthV...