path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/js/components/icons/base/UserSettings.js
linde12/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...
src/App.js
rogeliog/react-filters
import React, { Component } from 'react'; import { Img } from './Img' export class App extends Component { render() { return ( <div> <Img grayscale="50" src="http://lorempixel.com/200/200" style={{ border: '200px solid #0f0' }}/> <Img blur="100" src="http://lorempixel.com/200/200"/> ...
pages/postcss.js
simonrose121/portfolio
import React from 'react' import './example.css' import DocumentTitle from 'react-document-title' import { config } from 'config' export default class PostCSS extends React.Component { render () { return ( <DocumentTitle title={`${config.siteTitle} | Hi PostCSSy friends`}> <div> <h1 class...
src/routes/dashboard/index.js
keenethics/estimateit
import React from 'react'; import Wrapper from './wrapper'; import Dashboard from '../../components/Dashboard'; import Layout from '../../components/Layout'; export default { path: '/', async action({ isAuthenticated }) { if (isAuthenticated) { return { title: 'Dashboard', component: ( ...
js/main.js
chrisdodds/serverless_practice
import React from 'react'; import ReactDOM from 'react-dom'; import ExampleWork from './example-work'; const myWork = [ { 'title': "Work Example", 'href': "http://example.com", 'desc': "Lorem ipsum dolor sit amet, consectetur adipiscisng elit, dolor dolor dolor", 'image': { ...
src/renderer/components/MapFilter/MapView/MapView.stories.js
digidem/ecuador-map-editor
/* eslint-disable react-hooks/rules-of-hooks */ // @flow import React from 'react' import { action } from '@storybook/addon-actions' import { withKnobs, radios } from '@storybook/addon-knobs' import MapView from './MapView' import fixtureObs from '../../../../../fixtures/observations.json' function getMediaUrl (id, s...
src/esm/components/accessibility/visually-hidden/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["className"]; import React from 'react'; import classNames from 'classnames'; export var VisuallyHidden = function VisuallyHidden(_ref) { var classNa...
src/tabcontent.js
dimka388/tabs
'use strict'; import React, { Component } from 'react'; export default class TabContent extends Component { render() { return ( <div className="tab-content"> {this.props.state.tabs.map((item, i) => ( <div key={i} id={item.id} className={this.props.state.active === item.id ? 'active': ''}> ...
app/packs/src/components/chemscanner/components/ReactionDescription.js
ComPlat/chemotion_ELN
import Immutable from 'immutable'; import React from 'react'; import PropTypes from 'prop-types'; import { Label } from 'react-bootstrap'; import MoleculeDescription from './MoleculeDescription'; export default class ReactionDescription extends React.Component { constructor(props) { super(props); this.togg...
web/old_src/ResourceWindow.js
vmprobe/vmprobe
import React from 'react'; import PureComponent from 'react-pure-render/component'; import Tooltip from './Tooltip'; import Draggable from 'react-draggable'; import { Resizable, ResizableBox } from 'react-resizable'; export class ResourceWindow extends PureComponent { static defaultProps = { closeable: true, ...
src/Components/Navigation.js
jcampbellg/league-admin-app
import React, { Component } from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { NavLink } from 'react-router-dom'; import {connect} from 'react-redux'; class Navigation extends Component { render() { return ( <Navbar inverse collapseOnSelect style={{marginBottom: '0px'}}> ...
frontend/src/components/partners/profile/modals/updateObservationEscalated/updateEscalatedObservationButton.js
unicef/un-partner-portal
import React from 'react'; import { compose } from 'ramda'; import { withRouter } from 'react-router'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Create from 'material-ui-icons/Create'; import IconWithTextButton from '../../../../../components/common/iconWithTextButton';...
pages/about.js
b1alpha/sdj
/** * 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>About Us</h1> <p>Coming s...
client/src/components/Listing/AddListing/AddListingComponents/ListingDisplayImage.js
wolnewitz/raptor-ads
import React from 'react'; import { Image, Icon, Header, Modal, Button } from 'semantic-ui-react'; const ListingDisplayImage = ({ image, handleDelete, index }) => <Modal trigger={<Image src={image.img_path} size="small" wrapped />} closeIcon="close" > <Header icon="trash outline" content="Delete Image"...
src/components/graphs/BarChart/BarChart.js
TheKooxd/cat-analytics-dashboard
import React from 'react'; import {Bar} from 'react-chartjs'; export default class Placeholder extends React.Component { render() { let propData = this.props.data; let chartData = { labels: ["Best In Show", "Nominated", "Kunniamaininta", "Värin Paras", "Poissaolo", "Excellent-arvostely", "Supreme Champ...
src/routes/Counter/components/Counter.js
vamc-anne/react-redux-poc
import React from 'react' import PropTypes from 'prop-types' export const Counter = ({ counter, increment, doubleAsync }) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {counter}</h2> <button className='btn btn-primary' onClick={increment}> Increment </button> {' '} <button className...
src/js/components/icons/base/Upload.js
linde12/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...
renderer/components/Autopay/AutopayHeading.js
LN-Zap/zap-desktop
import React from 'react' import { FormattedMessage, injectIntl } from 'react-intl' import { Box, Flex } from 'rebass/styled-components' import { intlShape } from '@zap/i18n' import { Heading } from 'components/UI' import Autopay from 'components/Icon/Autopay' import messages from './messages' const AutopayHeading = (...
packages/generator-react-server/generators/app/templates/pages/hello-world.js
emecell/react-server
import React from 'react'; import HelloWorld from '../components/hello-world'; export default class SimplePage { getElements() { return <HelloWorld/>; } getMetaTags() { return [ {charset: 'utf8'}, {'http-equiv': 'x-ua-compatible', 'content': 'ie=edge'}, {name: 'viewport', content: 'width=device-width,...
front_end/front_end_app/src/client/lib/validation.js
carlodicelico/horizon
/* Simple serial sync/async chriso/validator.js validation wrapper with promises. */ import Promise from 'bluebird'; import React from 'react'; import validator from 'validator'; export class ValidationError extends Error { constructor(message, prop) { super(); this.message = message; this.prop = prop;...
src/interface/statistics/components/DistanceRadar/Ring.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const Ring = ({ innerRef, size, color, style, ...others }) => ( <div style={{ position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', width: size, height: size, border: `2px solid $...
src/containers/App/index - Copy.js
zolcman/calendartest
/* @flow */ import React from 'react'; import { Route, Switch, withRouter } from 'react-router-dom'; import Helmet from 'react-helmet'; import _ from 'lodash'; import NavBar from '../../components/NavBar/NavBar' import Login from '../../containers/Login/Login' import config from '../../config'; import routes from '../...
src/Result/Navbar.js
cityofsurrey/polltal-app
import React from 'react' import { Link } from 'react-router-dom' import PropTypes from 'prop-types' import Radium from 'radium' import theme from 'theme' const styles = { icon: { color: theme.color.grey.faded, }, links: { display: 'flex', justifyContent: 'space-between', }, link: { color: t...
app/javascript/mastodon/features/favourites/index.js
hugogameiro/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
components/carousel/carouselTrack.js
Travix-International/travix-ui-kit
import PropTypes from 'prop-types'; import React, { Component } from 'react'; class CarouselTrack extends Component { constructor(props) { super(props); // bounding client rect for the container this.slideBCR = null; // store position for further math this.slideX = 0; // bind all handlers ...
src/js/components/card/card.js
working-minds/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; export default class Card extends Component { static propTypes = { children: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.node), PropTypes.node, ]), }; render() { return ( <div className="card"...
utils/typography.js
caryfuk/architektka
import ReactDOM from 'react-dom/server' import React from 'react' import Typography from 'typography' import { GoogleFont } from 'react-typography' import githubTheme from 'typography-theme-github' const typography = new Typography(githubTheme) // Hot reload typography in development. if (process.env.NODE_ENV !== 'pr...
app/scripts/components/Badges.js
blittle/gospel-study-tools
import React from 'react'; import { map } from 'lodash'; import ReactTooltip from 'react-tooltip'; import './Badges.css'; let badgeIcons = { BM100: { icon: '/images/badges/bom_100', message: '100 Hours of Book of Mormon Study' }, GC100: { icon: '/images/badges/gc_100', message: '100 Hours of General Confer...
Console/app/node_modules/rc-select/es/Select.js
RisenEsports/RisenEsports.github.io
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
app/index.js
hassanshaikley/pubpub
/* global Raven */ import React from 'react'; import ReactDOM from 'react-dom'; import ga from 'react-ga'; import { Router, browserHistory, applyRouterMiddleware } from 'react-router'; import { useScroll } from 'react-router-scroll'; import { Provider } from 'react-redux'; import routes from './Routes'; import configur...
src/components/ResultsHeader.js
henrikra/reactive-movies
import React, { Component } from 'react'; export default class ResultsHeader extends Component { render() { var resultsHeader; if (this.props.error) { resultsHeader = <h2>No results for: "{this.props.query}" :(</h2>; } else { resultsHeader = <h2>Results for: "{this.props.query}"</h2>; } return ( <d...
addons/centered/example/index.js
jribeiro/storybook
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import decorator from '../index'; const content = decorator(() => 'Hello World!'); const wrapper = document.querySelector('#content'); ReactDOM.render(content, wrapper);
src/components/Layout/Layout.js
bmatthews/haze-lea
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
curator-web/src/js/index.js
rajeshnaroth/curator
"use strict" import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import Root from './components/root' import configureStore from './configureStore' const store = configureStore() render( <Root store={store} />, document.getElementById('maincontent') )
src/server.js
veskoy/ridiko
/** * 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 path from 'path'; import express from 'express';...
app/javascript/mastodon/features/account_gallery/index.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { lookupAccount, fetchAccount } from 'mastodon/actions/accounts'; import { expandAccountMediaTimeline } from '../../actions/timelines'; import LoadingI...
test/bigtest/helpers/TestForm.js
folio-org/stripes-core
/* Basic harness prop for testing redux-form functionality children should be a <Field> component with the tested component passed as the 'children' prop. */ import React from 'react'; import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; class TestForm extends React.Component { static ...
webpack/Routes/routes.js
adamruzicka/foreman_remote_execution
import React from 'react'; import JobWizardPage from '../JobWizard'; const ForemanREXRoutes = [ { path: '/experimental/job_wizard', exact: true, render: props => <JobWizardPage {...props} />, }, ]; export default ForemanREXRoutes;
src/svg-icons/action/settings.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettings = (props) => ( <SvgIcon {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l...
src/OtherUserBox.js
mrinalkrishnanm/kyogre
import React from 'react'; import API from './API'; import ReactHtmlParser from 'react-html-parser'; class OtherUserBox extends React.Component{ constructor(){ super() } render(){ const entry = this.props.note.entry.replace(/&nbsp;/g,'') return( <div className="NoteBox"> { ReactHtmlParser(entry) }...
src/data-table/data-table-header/DataTableHeader.js
Synchro-TEC/apollo
import React from 'react'; import PropTypes from 'prop-types'; import _uniqueId from 'lodash/uniqueId'; class DataTableHeader extends React.Component { constructor(props){ super(props); this.state = {beingSorted: {columnKey: '', direction: ''}}; this.setSortColumn = this.setSortColumn.bind(this); th...
components/common/meta.js
coderplex/coderplex
import React from 'react'; import Head from 'next/head'; export default ({ title, description, image }) => { return ( <Head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1" /> <meta name="mobile-web-app-capable" content="yes" /> <meta name="appl...
docs/app/Examples/modules/Rating/Variations/RatingSizeExample.js
jcarbo/stardust
import React from 'react' import { Rating } from 'stardust' const RatingSizeExample = () => ( <div> <Rating maxRating={5} defaultRating={3} icon='star' size='mini' /> <br /> <br /> <Rating maxRating={5} defaultRating={3} icon='star' size='tiny' /> <br /> <br /> <Rating maxRating={5} def...
src/js/components/icons/base/Calendar.js
odedre/grommet-final
/** * @description Calendar 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...
src/components/Switch.js
JSLancerTeam/crystal-dashboard
import React from 'react'; import cx from 'classnames'; const SwitchControl = ({ value, onChange, onText, offText }) => ( <div className="switch has-switch"> <div className={cx("switch-animate", { 'switch-on': value, 'switch-off': !value })} onClick={() => onChange(!value)}> <...
MyApp/HomeScreen.js
liwei0505/react-native
/** * Created by lee on 2017/9/26. */ import React, { Component } from 'react'; import { View, Text, Image, Button } from 'react-native'; import ChatScreen from './ChatScreen'; //navigation属性 /* navigate - 跳转到其他页面 -routeName 导航器中配置的路由名称 -传递参数到下一个页面 -action state - 当前页面导...
static/src/components/Cloud.js
hammerandchisel/airhornbot
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { type: string, number: string }; export default ({type, number}: Props): React.Element => { const depth = '0.2'; const className = `cloud cloud-${number} layer`; switch (type) { case 0: { return ( <svg cl...
src/client/pages/notfound.react.js
jaegerpicker/GLDice
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; import {Link} from 'react-router'; import {msg} from '../intl/store'; class NotFound extends Component { render() { return ( <DocumentTitle title={msg('notFound.title')}> ...
src/svg-icons/hardware/laptop-mac.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopMac = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0...
admin/client/components/ItemsTableCell.js
Redmart/keystone
import React from 'react'; var ItemsTableCell = React.createClass({ displayName: 'ItemsTableCell', propTypes: { className: React.PropTypes.string, }, getDefaultProps () { return { className: '', }; }, render () { let className = `ItemList__col ${this.props.className}`; return ( <td {...this.props...
app/javascript/mastodon/features/hashtag_timeline/index.js
rutan/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandHashtagTimeline } from '...
src/icons/DriveEtaIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class DriveEtaIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M37.84 10.02C37.43 8.84 36.31 8 35 8H13c-1.31 0-2.43.84-2.84 2.02L6 22v16c0 1.1.9 2 2 2h2c1.11 0 2-.9 2-2...
src/Blurb.js
piperchester/piperchester.github.io
import React, { Component } from 'react'; import Version from './Version'; class BlurbCog extends Component { render() { return ( <span className="fa fa-spin fa-cog" /> ); } } class BlurbHeader extends Component { render() { return ( <h2> <Bl...
src/svg-icons/image/navigate-next.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNavigateNext = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); ImageNavigateNext = pure(ImageNavigateNext); ImageNavigateNext.displayName = 'Ima...
frontend/src/components/app.js
Kilte/cindy
import React from 'react'; import {connect} from 'react-redux'; import {logout, tokenExistsRequest} from '../actions'; import Login from './login'; import Root from './root'; import Splash from './shared/splash'; class App extends React.Component { componentWillMount() { if (this.props.token.isAuthenticat...
test/test_helper.js
AaronBDC/blogRRR
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
ajax/libs/react-instantsearch/4.1.0-beta.2/Connectors.js
him2him2/cdnjs
/*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && ...
src/components/Layout/Layout.js
gipiman/excel-merge-tool
import React from 'react'; import AddTodo from '../AddTodo'; import TodoList from '../TodoList'; export default class Layout extends React.Component { componentDidMount() { } componentWillUnmount() { } render() { return ( <div className="container"> <div className="row"> <div cl...
src/svg-icons/device/nfc.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNfc = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2...
src/pages/reccorpus.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Reccorpus' /> )
src/components/common/ErrorPage/index.js
transitlinks/web-app
import { getLog } from '../../../core/log'; const log = getLog('components/ErrorPage'); import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './ErrorPage.css'; const ErrorPage = ({ errors }) => { log.debug('Error page shown', errors); return ( <div clas...
main.js
orhanmaden/try-react-bootstrap
import React from 'react'; import ReactDOM from 'react-dom'; // import Reflux from 'reflux'; import {Popover, Tooltip, Button, Modal, OverlayTrigger} from 'react-bootstrap' import {Line} from 'react-chartjs' // let Actions = Reflux.createActions([ // "uploadFile" // ]); // let Store = Reflux.createStore({ // list...
src/routes/login/login.js
brian-kilpatrick/react-starter-kit
import React from 'react'; import PropTypes from 'prop-types'; import { logger } from '../../utils'; import history from '../../history'; function Login({flash}) { return ( <form method="POST"> Email: <br/> <input name="email" type="text" /> <br/> Password: <br/> <inpu...
src/client/components/HierarchyContainer/HierarchyContainer.component.js
DBCDK/tanterne
/** * @file * This implements this DK5 Hierarchy */ import React from 'react'; import {SearchFieldComponent} from '../SearchField/SearchField.component'; import {wrapper} from '../../state/state'; import {ToggleButton, ToggleContainer, ToggleContent} from '../General/toggle.component'; import {Layout} from '../Gene...
node_modules/react-router/es6/Router.js
mineralmink/poke
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/js/components/icons/base/Clipboard.js
linde12/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...
ui/src/components/AutoComplete/index.js
LearningLocker/learninglocker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Map, List } from 'immutable'; import { noop, identity, debounce, isNull } from 'lodash'; import OptionList from 'ui/components/OptionList'; import OptionListItem from 'ui/components/OptionListItem'; import areEqualProps from 'ui/util...
src/parser/warrior/fury/modules/talents/Warpaint.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage, formatThousands } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { SELECTED_PLAYER } from 'p...
docs/src/GettingStartedPage.js
pivotal-cf/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import Anchor from './Anchor'; export default class Page extends React.Component { render() { return ( <div> <NavMa...
packages/docs/components/Examples/side-toolbar/gettingStarted.js
nikgraf/draft-js-plugin-editor
// It is important to import the Editor which accepts plugins. import Editor from '@draft-js-plugins/editor'; import createSideToolbarPlugin from '@draft-js-plugins/side-toolbar'; import React from 'react'; // Creates an Instance. At this step, a configuration object can be passed in // as an argument. const sideToolb...
app/javascript/mastodon/components/column_header.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ show: { id: 'column_h...
app/components/NavItemConnecting/index.js
zillding/hangouts
/** * * NavItemConnecting * */ import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; import { Flex } from 'react-flex'; const style = { paddingLeft: 50, }; const NavItemConnecting = () => ( <Flex style={style}> <RefreshIndicator size={36} left={0} top={10}...
src/components/TemplateComponent.js
cised-ca/se-dir-frontend-react
'use strict'; import React from 'react'; import SiteNavigation from './SiteNavigationComponent'; import i18n from '../i18n'; require('es6-promise/auto'); var airbrakeJs = require('airbrake-js'); class TemplateComponent extends React.Component { getChildContext() { return { 'config': this.state.config, ...
src/hooks/useClock.js
u-wave/web
import React from 'react'; import { useStore } from 'react-redux'; import { useClock as useClockCallbacks } from '../context/ClockContext'; import { currentTimeSelector } from '../selectors/timeSelectors'; const { useEffect, useReducer, } = React; export default function useClock() { const timerCallbacks = useC...
src/svg-icons/maps/local-car-wash.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2...
src/components/MarkerList/ListItem.js
joelvoss/react-gmaps
import React from 'react'; import Transition from 'react-transition-group/Transition'; import { Item, ListImage, InfoWrapper, Title, Location, Open, Closed } from './ItemComponents'; import Spacer from './Spacer'; const ListItem = props => { const { in: inProp, marker, handleMouseOver, handleMouseLeave } = props; ...
src/components/SidePanel.js
pjkarlik/ReactUI
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { resolve } from '../styles'; export default class SidePanel extends React.Component { static displayName = 'SidePanel'; static propTypes = { /* CSS Modules Object */ classes: React.PropTypes.object, ...
chat/chat/Message.js
wph1129/react-native-chat
import React from 'react'; import { View, StyleSheet, } from 'react-native'; import moment from 'moment'; import Avatar from './Avatar'; import Bubble from './Bubble'; import Day from './Day'; class Message extends React.Component { isSameDay(currentMessage = {}, diffMessage = {}) { let diff = 0; if (d...
packages/bonde-admin/src/components/share/whatsapp-share-button.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' import classnames from 'classnames' const WhatsAppShareButton = ({ preview, whatsappText, mobilization }) => { return ( <a className={classnames( 'btn white h3 p3 col-12 caps h5 rounded border...
src/svg-icons/action/chrome-reader-mode.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChromeReaderMode = (props) => ( <SvgIcon {...props}> <path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/> ...
src/components/icons/FavoriteHeart.js
niekert/soundify
import React from 'react'; import PropTypes from 'prop-types'; const FavoriteHeart = ({ fill, isActive, ...props }) => <svg fill={fill} viewBox="0 0 24 24" {...props}> <path d="M0 0h24v24H0z" fill="none" /> <path fill={isActive ? fill : 'none'} stroke={isActive ? 'none' : fill} strokeWidth=...
app/scripts/HorizontalItem.js
hms-dbmi/4DN_matrix-viewer
import React from 'react'; import { SortableElement } from 'react-sortable-hoc'; import HorizontalTrack from './HorizontalTrack'; const HorizontalItem = SortableElement((props) => ( <HorizontalTrack className={props.className} editable={props.editable} handleConfigTrack={props.handleConfigTrack} han...
client/components/operations/amount-well.js
bnjbvr/kresus
import React from 'react'; import PropTypes from 'prop-types'; const Well = props => { return ( <div className={`well ${props.className}`}> <span className="well-icon"> <i className={`fa fa-${props.icon}`} /> </span> <span className="operation-amount">{pr...
src/svg-icons/action/store.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStore = (props) => ( <SvgIcon {...props}> <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/> </SvgIcon> ); ActionStore = pure(ActionStore); ActionStore.displayName = ...
src/routes/Song/Create/components/Create.js
dziksu/songs-manager
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { firebaseConnect, firebase, helpers } from 'react-redux-firebase'; import { Button, FormGroup, Label, FormText } from 'reactstrap'; import ReactQuill, { Quill } from 'react-quill'; import ReactMarkdown from 'react-markdown'; impor...
src/js/components/icons/base/DocumentExcel.js
odedre/grommet-final
/** * @description DocumentExcel 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. ...
src/browser/me/SettingsPage.js
reedlaw/read-it
// @flow import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { Box, Paragraph } from '../../common/components'; import { FormattedMessage } from 'react-intl'; import { Title } from '../components'; const SettingsPage = () => ( <Box> <Title message={linksMessages.settings...
src/client/index.js
kevinhikaruevans/uojs2
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux'; import createHistory from 'history/createBrowserHistory'; import BrowserRouter from 'react-router-async/browser-router'; import { hookRedux } from 'hook-redux'; import Application from 'component/application'; import r...
src/app/routes/index.js
skratchdot/js-playground
import React from 'react'; import { Route } from 'react-router'; import App from '../containers/App'; const packageInfo = require('../../../package.json'); // pages import NotFound from '../pages/NotFound'; import Home from '../pages/Home'; import About from '../pages/About'; const routes = ( <Route component={App}>...
app/components/Navigation/index.js
kylec296/scalable-react
/** * * Navigation * */ import React from 'react'; import styles from './styles.css'; import AppBar from '../AppBar'; import Drawer from '../Drawer'; function Navigation({ topics, selectTopic, toggleDrawer, isDrawerOpen, email }) { return ( <div className={styles.navigation}> <AppBar toggleDrawer={toggl...
app/react/demo/src/index.js
bigassdragon/storybook
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
react-i18n-example/src/i18n.js
backpaper0/sandbox
import React from 'react'; export default React.createContext({ hello: "Hello, world!" });
admin/src/components/Breadcrumbs/index.js
alexpriceonline/JumpCMS
import React from 'react'; import { Link } from 'react-router-dom'; import { green } from '../../constants/styles'; const Breadcrumbs = ({ children }) => ( <ul> { children } <style jsx>{` ul { margin: 0 0 20px; opacity: 0.5; } `}</style> </ul> ); const Breadcrumb = ({ to,...
docs/app/Examples/elements/Image/Variations/ImageExampleCircular.js
ben174/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const src = 'http://semantic-ui.com/images/wireframe/square-image.png' const ImageExampleCircular = () => ( <Image src={src} size='medium' shape='circular' /> ) export default ImageExampleCircular
ajax/libs/react-instantsearch/3.2.0/Dom.js
him2him2/cdnjs
/*! ReactInstantSearch 3.2.0 | © 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 define ...
app/scripts/main.js
yas-okadatech/react_base
import React from 'react' import { render } from 'react-dom'; import { Router, Route, Link, IndexRoute } from 'react-router' import createBrowserHistory from 'history/lib/createBrowserHistory' window.$ = require('jquery'); import App from './containers/App' import IndexPage from './containers/IndexPage' import Page1 ...
es6/DatePicker/basic/YearTable.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
mxcube3/ui/containers/SampleQueueContainer.js
amilan/mxcube3
import React from 'react'; import ReactDOM from 'react-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import CurrentTree from '../components/SampleQueue/CurrentTree'; import TodoTree from '../components/SampleQueue/TodoTree'; import QueueControl from '../components/SampleQueue/...
packages/mineral-ui-icons/src/IconFormatTextdirectionLToR.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFormatTextdirectionLToR(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Ico...
src/components/ProductHunt/ProductHuntItem.js
devnews/web
import React from 'react'; import PropTypes from 'prop-types'; import styles from '../NewsList/index.css'; const ProductHuntItem = (props) => { return ( <div className={styles.container}> <h2 className={styles.heading}> <a href={props.product.url} ...