path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/interface/others/StatisticListBoxItem.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { TooltipElement } from 'common/Tooltip'; /** * @deprecated Use `interface/statistic/Statistic` instead. */ const StatisticListBoxItem = ({ title, value, titleTooltip, valueTooltip}) => { return ( <div className="flex"> <div className=...
src/containers/HomePage/index.js
apedyashev/react-universal-jobs-aggregator
// libs import React from 'react'; import {PropTypes} from 'prop-types'; import {connect} from 'react-redux'; // sagas import {sagas as jobsSagas} from 'modules/Jobs'; // selectors import {orderedJobsSelector, jobsMeta} from 'modules/Jobs/selectors'; // components import JobsList from 'components/JobsList'; import {H3}...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
kagucho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Switch from 'react-router-dom/Switch'; import Route from 'react-router-dom/Route'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../container...
src/components/windows8/original-wordmark/Windows8OriginalWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './Windows8OriginalWordmark.svg' /** Windows8OriginalWordmark */ function Windows8OriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline classNa...
examples/js/sort/manage-multi-sort-external-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; let price = 2100; for (let i = 0; i < quantity; i++) { const id = s...
internals/templates/containers/LanguageProvider/index.js
AnhHT/react-boilerplate
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/svg-icons/content/save.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSave = (props) => ( <SvgIcon {...props}> <path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/> </Svg...
frontend/src/components/purchaseOrder.js
GreatDevelopers/LibreHatti
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import CssBaseline from '@material-ui/core/CssBaseline'; import Paper from '@material-ui/core/Paper'; import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepLabel from '@material-ui/core/Ste...
website/Footer.js
sahat/boilerplate
import React from 'react'; const Footer = (props) => { return ( <footer className="container"> <div className="panel"> <div className="panel-body"> <div className="pull-left"> <div>© 2016 <a href="http://sahatyalkabov.com" target="_blank">Sahat Yalkabov</a>. Code licensed unde...
vertex_ui/src/components/Editor/Editor.js
zapcoop/vertex
import React from 'react'; import _ from 'underscore'; import { Editor as ReactEditor } from 'react-draft-wysiwyg'; import deepExtend from 'deep-extend'; import bold from './icons/bold.svg'; import italic from './icons/italic.svg'; import underline from './icons/underline.svg'; import strikethrough from './icons/strik...
src/svg-icons/action/youtube-searched-for.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionYoutubeSearchedFor = (props) => ( <SvgIcon {...props}> <path d="M17.01 14h-.8l-.27-.27c.98-1.14 1.57-2.61 1.57-4.23 0-3.59-2.91-6.5-6.5-6.5s-6.5 3-6.5 6.5H2l3.84 4 4.16-4H6.51C6.51 7 8.53 5 11.01 5s4.5 2....
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js
verdan/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleSimple = () => ( <div style={style.container}> <RefreshIn...
app/app.js
houseofaragon/howdoihelp
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from 'store.js' import Categories from 'components/Categories.js' import About from 'components/About.js' import Layout from 'components/Layout.js' if (typeof require.ensure !== 'function') require...
packages/component/src/Activity/StackedLayout.js
billba/botchat
/* eslint complexity: ["error", 30] */ import { hooks } from 'botframework-webchat-api'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Bubble from './Bubble'; import connectToWebChat from '../connectToWebChat'; import isZeroOrPositive from '../Utils/isZeroO...
components/GoogleAnalytics/GoogleAnalytics.js
devinfountain/portfolio
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import { googleAnalyticsId } from '../../config'; const trackingCode = { __html: `(function(b,o,i,l,e,r){b.GoogleAnalyticsO...
client/modules/App/__tests__/App.spec.js
Investnaira/in
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { intlShape } from 'react-intl'; import { intl } from '../../../util/react-intl-test-helper'; import { toggleAddPost } from '../App...
examples/00 Chessboard/Tutorial App/index.js
pairyo/react-dnd
import React, { Component } from 'react'; import Board from './Board'; import { observe } from './Game'; /** * Unlike the tutorial, export a component so it can be used on the website. */ export default class ChessboardTutorialApp extends Component { constructor(props) { super(props); this.unobserve = obse...
src/svg-icons/av/fast-rewind.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFastRewind = (props) => ( <SvgIcon {...props}> <path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/> </SvgIcon> ); AvFastRewind = pure(AvFastRewind); AvFastRewind.displayName = 'AvFastRewind'; AvFastRewin...
dcs-fe/src/components/common/Header.js
chumak84/dance-competition-system
import React from 'react'; import { Link, NavLink } from 'react-router-dom'; const Header = () => { return ( <nav className="navbar is-primary"> <Link className="navbar-item" to="/">Home</Link> <Link className="navbar-item" to="/formats">Formats</Link> <Link ...
src/test/app/helpers/shallowRenderHelper.js
reactor/reactor-pylon
/** * 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/components/Header/Header.js
xitman78/reactpro
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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, { Component } from 'react'; import withStyle...
app/dashboard/components/PageEditor.js
piratecb/up1and
import React from 'react' import { observable, action } from 'mobx' import { observer, inject} from 'mobx-react' import { withRouter } from 'react-router-dom' import { Section } from './Layout' @inject('pageStore') @withRouter @observer class PageEditor extends React.Component { @observable title = '' @observabl...
blocks/rect.js
UXtemple/panels
import React from 'react' const Rect = props => <rect {...props} /> export default Rect
node_modules/native-base/Components/Widgets/Textarea.js
aspanu/threeSeaShells
/* @flow */ 'use strict'; import React from 'react'; import {View, TextInput} from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; export default class Textarea extends NativeBaseComponent { propTypes: { style : React.PropTy...
lavalab/html/node_modules/react-bootstrap/es/Modal.js
LavaLabUSC/usclavalab.org
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
packages/core/src/icons/components/Pencil.js
iCHEF/gypcrete
import React from 'react'; export default function SvgPencil(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32" {...props} > <path d="M16.66 9.678l5.66 5.657-7.07 7.071-5.66 1.414-1.41-1.414 1.41-5.657zm-.7 3.536l...
example/src/on-color.js
Julusian/react-bootstrap-switch
import React from 'react'; import { Col, Button, ButtonGroup, FormGroup } from 'react-bootstrap'; import Switch from '../../src/js/index'; export class OnColor extends React.Component { constructor(props){ super(props); this.state = { color: "info" }; } _clickPrimary(){ this.setState({ ...
src/svg-icons/device/battery-charging-20.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging20 = (props) => ( <SvgIcon {...props}> <path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z"/><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 ...
assets/js/containers/LinkContainer.js
nicksergeant/leather
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { initChannel } from '../actions/channels'; import { linkExchangeToken } from '../actions/link'; import { plaidItemAdded, setPlaidItems } from '../actions/plaidItems'; import { selectActivePanel }...
example/src/Application.js
GertjanReynaert/react-intl-translations-manager
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { IntlProvider } from 'react-intl'; import HelloWorld from './HelloWorld'; import nlMessages from './nlMessages'; class Application extends Component { render() { return ( <IntlProvider locale="nl" messages={nlMessages}> ...
src/routes/error/index.js
foxleigh81/foxweb
/** * 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 ErrorPage from './Err...
step06_routing/src/components/about.js
panacloud/learn-react
import React, { Component } from 'react'; class About extends Component { render() { return <h1>this is about</h1> } } export default About;
src/routes.js
jojoee/whitt
import React from 'react'; import { Route, IndexRoute, } from 'react-router'; import App from './components/App'; import HomePage from './components/HomePage'; import TodoPage from './components/TodoPage'; import Dashboard from './components/Dashboard'; import AboutPage from './components/AboutPage'; import NotFou...
app/Components/SignUp/Steps/StepTwo/CountryCode.js
martinvarelaaaa/tintina
import React from 'react'; import { View, TextInput } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import styles from '../../styles'; import theme from '../../../../theme'; const { color } = theme; const CountryCode = () => ( <View style={styles.countryCodeContainer}> ...
src/client/js/risks/Type2DiabetesRisk.js
mlinderm/myseq.js
/** * @flow */ 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import RiskTable from './RiskTable'; import VCFSource from '../../../lib/js/io/VCFSource'; let t2d = [ { variant: { chr: '7', pos: 141672604, ref: 'T', alt: 'C', id: 'rs9465871' }, LR: { 'T/T' : 0.918, 'T/C' : 1.0...
app/src/AddBookPage.js
darjanin/xp-library
import React from 'react' import {validateRequired, validateNumberLength} from './ValidationUtils' export default class AddBookPage extends React.Component { constructor(props){ super(props) this.state = { errors: [], } } onSubmit(e) { e.preventDefault() const {title, author, year, de...
src/components/home.js
erik-sn/mslt
import '../sass/home.scss'; import React, { Component } from 'react'; import { Card, CardTitle, CardMedia, CardText, CardHeader } from 'material-ui/Card'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; export default class Navbar extends Component { constructor(props) { super(props); ...
lib/dashboard/components/ResultBox.js
gmrutilus/rutilus-analytics-node-js
/** * Rutilus * * @homepage https://gmrutilus.github.io * @license Apache-2.0 */ import React from 'react'; import { Glyphicon, Panel } from 'react-bootstrap'; // Display components import Table from './display/Table'; import Graph from './display/Graph'; import List from './display/List'; import Timeline from '...
blueocean-material-icons/src/js/components/svg-icons/action/toc.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionToc = (props) => ( <SvgIcon {...props}> <path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/> </SvgIcon> ); ActionToc.displayName = 'ActionToc'; ActionToc.muiName = 'SvgIcon'; export de...
app/main.js
adeubank/webpack-boilerplate
import React from 'react'; //eslint-disable-line no-unused-vars import {render} from 'react-dom'; import Greeter from './Greeter'; import './main.css'; render(<Greeter />, document.getElementById('root'));
app/components/administrator-table-events.js
mario2904/ICOM5016-Project
import React, { Component } from 'react'; import { Table, Header, Image, Button } from 'semantic-ui-react'; import axios from 'axios'; export default class AdministratorTableEvents extends Component { constructor () { super(); this.state = { events: [] } } componentWillMount () { const tic...
docs/app/Examples/elements/Segment/Types/SegmentExampleSegment.js
clemensw/stardust
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleSegment = () => ( <Segment> Pellentesque habitant morbi tristique senectus. </Segment> ) export default SegmentExampleSegment
examples/redux/src/index.js
pbeshai/react-url-query
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import { configureUrlQuery } from 'react-url-query'; import rootReducer from './state/rootReducer'; import App from './App'; import history from './history'; // link the history u...
src/Components/Stage.js
crossroadchurch/silas
import React from 'react' import { connect } from 'react-refetch' import Styles from '../styles' import { Chord, LyricLine, NextLyricLine, NextLine, SongOrder, SongOrderChild, Highlight } from './StageUtils' import LoadingAnimation from 'react-loading' function isChord(string) { const chord = string.match(/<chord[\...
packages/material-ui-icons/src/CameraAlt.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CameraAlt = props => <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2" /><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5...
components/animals/surikata.child.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/surikata/01.jpg'),...
webpack.config.babel.js
mvanlonden/react-selection-popover
import * as path from 'path'; import webpack from 'webpack'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import HtmlWebpackRemarkPlugin from 'html-webpack-remark-plugin'; import ExtractTextPlugin from 'extract-text-webpack-plugin'; import SystemBellPlugin from 'system-bell-webpack-plugin'; import CleanPlugin ...
src/routes/Error/index.js
pmg1989/dva-admin
import React from 'react' import { Icon } from 'antd' import styles from './index.less' const Error = () => ( <div className="content-inner"> <div className={styles.error}> <Icon type="frown-o" /> <h1>404 Not Found</h1> </div> </div> ) export default Error
src/components/Header/Header.js
mcfa77y/isla_de_pescua
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 withStyles from 'isomorp...
src/client/containers/Root.js
jahe/jahe-react-starter
import PropTypes from 'prop-types'; import React from 'react' import { IntlProvider } from 'react-intl' // Import Redux Store Provider Component import { Provider } from 'react-redux' // Import our Component import HelloWorld from '../components/HelloWorld.js' export default class Root extends React.Component { co...
src/index.js
cltk/cltk_frontend
import 'es6-shim'; import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import Root from './containers/Root'; import configureStore from './store...
app/components/TenantDetails/index.js
medevelopment/UMA
import React, { Component } from 'react'; import axios from 'axios'; import * as toastify from '../../functions/Toastify'; import styled from 'styled-components'; import Avatar from '../icons/userprofile.jpg'; // Import ModeEdit from 'material-ui/svg-icons/editor/mode-edit'; import TextField from 'material-ui/TextFi...
wrappers/json.js
grand-crew/grand-crew.github.io
import React from 'react' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <h1>{data.title}</h1> <p>Raw view of json file</p> <pre dangerouslySetI...
app/components/layout/PasswordRecovery/EnterEmail.js
communicode-source/communicode
import React from 'react'; import {Row, Col} from 'react-bootstrap'; class EnterEmail extends React.Component { constructor({email, onEmailEnter, onEmailSubmit}) { super(); this.email = email; this.onEmailEnter = onEmailEnter; this.onEmailSubmit = onEmailSubmit; } handleEma...
app/javascript/mastodon/features/account_timeline/index.js
yukimochi/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 '../../actions/accounts'; import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/time...
src/icons/IosMinusEmpty.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosMinusEmpty extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M384,265H128v-17h256V265z"></path> </g> </g>; } return <IconBase> <g> <path d="M384,265H128v-17h256V26...
docs/src/app/components/pages/components/List/ExampleMessages.js
verdan/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar'; import {grey400, darkBlack, lightBlack} from 'material-ui...
src/svg-icons/av/add-to-queue.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> ...
js/components/search/index.js
bsusta/HelpdeskAppTemplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Input, Picker, Item, Footer, FooterTab, Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem, View } from 'native-base'; import ...
components/MLinkCard.js
vinaypuppal/linklet-app
import React from 'react' import { truncateString } from '../utils' import Highlighter from 'react-highlight-words' import LazyLoad from 'react-lazyload' import distanceInWordsToNow from 'date-fns/distance_in_words_to_now' import format from 'date-fns/format' import isThisMonth from 'date-fns/is_this_month' import FaBo...
src/svg-icons/av/queue-music.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueueMusic = (props) => ( <SvgIcon {...props}> <path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/> </SvgIcon> ); AvQu...
packages/@vega/review-tool/src/components/ManageReviewProcess/InviteLinkForReviewer.js
VegaPublish/vega-studio
import React from 'react' import withPropsStream from '../../../../utils/withPropsStream' import {switchMap, map} from 'rxjs/operators' import observableWithQuery from '../../util/observableWithQuery' import InviteLink from './InviteLink' function inviteForReviewerQuery(reviewerId) { return `*[_type == 'invite' && r...
src/svg-icons/content/next-week.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentNextWeek = (props) => ( <SvgIcon {...props}> <path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_02/start/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' import { SkiDayList } from './components/SkiDayList' window.React = React render( <SkiDayList days={ [ { resort: "Squaw Valley", date: new Date("1/2/2016"), powder: true, backcountry: false }, { resort: "Kirkwood", date: ...
src/svg-icons/av/pause-circle-filled.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleFilled = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/> </SvgIcon> ); AvPauseCircleFilled = pure(AvP...
react-components/src/library/components/signup/text_input.js
concord-consortium/rigse
import React from 'react' import { withFormsy } from 'formsy-react' const TIMEOUT = 350 class TextInput extends React.Component { constructor (props) { super(props) this.state = { inputVal: '', _asyncValidationPassed: true } this.onChange = this.onChange.bind(this) this.inputRef = ...
app/main.js
garrensmith/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...
app/app.js
jshumakerpruitt/ContactsClient
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the favicon, the manifest.json file and the .htaccess file import 'file?n...
project/src/scenes/Account/Signup/SignupForm.js
boldr/boldr
/* @flow */ import React from 'react'; import { Field, reduxForm } from 'redux-form'; // internal import Row from '@boldr/ui/Layout/Row'; import Col from '@boldr/ui/Layout/Col'; import Button from '@boldr/ui/Button'; import Form, { TextFormField } from '@boldr/ui/Form'; import { validations } from '@boldr/core'; type ...
packages/logos/src/linux.js
geek/joyent-portal
import React from 'react'; export default props => ( <svg xmlns="http://www.w3.org/2000/svg" width="25.55" height={30} viewBox="0 0 30.66 36" {...props} > <defs> <style dangerouslySetInnerHTML={{ __html: '.cls-1{fill:#010002;}' }} /> </defs> <title>Linux</title> <g id="Lay...
client/components/App.js
CharGomez/GraphQL-React-Discovery
import React from 'react'; export default ({children}) => { return <div className="container">{children}</div>; };
react-native/Albums/src/components/AlbumDetail.js
vanyaland/react-demos
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 { headerContent, ...
demos/demo2/index.js
woodenconsulting/react-js-diagrams
import React from 'react'; import ReactDOM from 'react-dom'; import * as RJD from '../../src/main'; import '../test.scss'; /** * * Simple stress test of the system, shows that it can handle many nodes, and * retain good performance * * @Author Dylan Vorster */ class Demo2 extends React.Component { constructor(...
UI/Buttons/ButtonDots.js
Datasilk/Dedicate
import React from 'react'; import { View, TouchableOpacity} from 'react-native'; import {Circle, G} from 'react-native-svg'; import SvgIcon from 'ui/SvgIcon'; import AppStyles from 'dedicate/AppStyles'; export default class ButtonDots extends React.Component { constructor(props){ super(props); } r...
es/components/FooterBar/WaitlistButton.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import compose from 'recompose/compose'; import pure from 'recompose/pure'; import Button from "@material-ui/core/es/Button"; impo...
packages/material-ui-icons/src/NewReleases.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let NewReleases = props => <SvgIcon {...props}> <path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.1...
wail-ui/childWindows/newCrawl/newCrawl.js
N0taN3rd/wail
import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import Layout from './layout' import '../../css/wail.css' window.React = React injectTapEventPlugin() ReactDOM.render( <Layout />, document.getElementById('newCrawl'))
src/app/views/GroupView.js
anvaka/unpmchart
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ReactList from 'react-list'; import GroupItem from './GroupItem.js'; import formatNumber from '../utils/formatNumber.js'; import getHeight from '../utils/getItemHeight.js'; class GroupView extends Component { render() { const...
text-dream/webapp/src/components/heads/TopWordsHeadComponent.js
PAIR-code/interpretability
/** * @license * Copyright 2018 Google LLC. All Rights Reserved. * 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 a...
src/admin/routes.js
firescribe/firescribe
import React from 'react'; import { Route } from 'react-router'; import AdminContainer from 'admin/containers/AdminContainer'; import dashboard from 'admin/routes/dashboard/routes'; import posts from 'admin/routes/posts/routes'; export default ( <Route> <Route path="admin" component={AdminContainer}> {da...
modules/RouteContext.js
littlefoot32/react-router
import React from 'react' var { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ var RouteContext = { propType...
src/App.js
timbur/react-transform-boilerplate
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; this.interval = setInterval(() => this.tick(), 1000); } tick() { this.setState({ counter: this.state.coun...
.history/src/components/InstaCelebs/index_20171001005208.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg', e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/12071219_1640349196212432...
react-intl-examples/intl-hello-world/src/index.js
wefine/reactjs-guide
import React from 'react'; import ReactDOM from 'react-dom'; import { IntlProvider } from 'react-intl'; import App from './App'; import './index.css'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( <IntlProvider locale="en"> <App /> </IntlProvider>, document.getElemen...
src/svg-icons/editor/merge-type.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
app/components/IssueIcon/index.js
aditigoel23/React-Car-App
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/app/component/scale-input-layout/scale-input-layout.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import {withState} from '@dump247/storybook-state' import InputField from '../input-field' import Paragraph from '../paragraph' import SelectField from '../select-field' import SelectMenu from '../select-menu' import ScaleInputLayout from '.' storie...
src/mobile/public/components/AppContainer/index.js
Perslu/rerebrace
import React from 'react'; import "./styles.css"; const AppContainer = (props) => ( <div className="AppContainer">{props.children}</div> ); export default AppContainer
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateInferred.js
popham/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: Props; state = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: Props; state = {}; defaul...
packages/mineral-ui-icons/src/IconCheckCircle.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 IconCheckCircle(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
fields/types/select/SelectField.js
Pylipala/keystone
import _ from 'underscore'; import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', valueChanged (ne...
src/components/web/ErrorMsg.js
Manuelandro/Universal-Commerce
import React from 'react' import styled from 'styled-components' const { View, Text } = { View: styled.div` width: 100%; `, Text: styled.div` font-size: 20px; align-self: center; color: red; ` } const ErrorMsg = ({ children }) => <View> <Text>{children}</Tex...
src/CardBody.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, className: PropTypes.string, cssModule: PropTypes.object, innerRef: PropTypes.oneOfType([ PropTypes.object, P...
src/svg-icons/social/person.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPerson = (props) => ( <SvgIcon {...props}> <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/> </SvgIcon> ); SocialPerson = pure(Soc...
ui/src/components/Home.js
sgeisbacher/photogallery-api
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; class Home extends Component { constructor(props) { super(props) this.state = {} } componentDidMount() { fetch('/labels') .then((resp) => resp.json()) .then((labels) => this.setState({labels})) } r...
src/packages/@ncigdc/modern_components/PrimarySiteAndDiseaseType/ExploreSummaryPrimarySite.relay.js
NCI-GDC/portal-ui
import React from 'react'; import { graphql } from 'react-relay'; import { compose, withPropsOnChange } from 'recompose'; import { parse } from 'query-string'; import { isEqual } from 'lodash'; import Query from '@ncigdc/modern_components/Query'; import { parseFilterParam } from '@ncigdc/utils/uri'; import withRouter ...
docs/app/Examples/collections/Table/Variations/TableExampleSelectableCell.js
shengnian/shengnian-ui-react
import React from 'react' import { Table } from 'shengnian-ui-react' const TableExampleSelectableCell = () => ( <Table celled> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes</Table.HeaderCell> ...
lib/dashboard/components/MenuItem.js
gmrutilus/rutilus-analytics-node-js
/** * Rutilus * * @homepage https://gmrutilus.github.io * @license Apache-2.0 */ import React from 'react'; import { NavItem } from 'react-bootstrap'; /** * Renders a menu item * @param {String} title * @param {Function} select * @returns {XML} */ const MenuItem = ({ title, select }) => { return ( ...
node_modules/react-native-maps/lib/components/MapUrlTile.js
jasonlarue/react-native-flashcards
import PropTypes from 'prop-types'; import React from 'react'; import { ViewPropTypes, } from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; const propTypes = { ...ViewPropTypes, /** * The url template of the tile server. The patt...
src/components/RegisterForm/RegisterForm.js
tabulatech/tabula-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import { setLanguage } from 'redux-i18n'; import styles from './RegisterForm.scss'; // eslint-disable-line import { Button, FormControl, Grid } from 'react-bootstrap'; // import { Col, , Row } from '...