path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/secrets/WindowsSecretEdit.js
secretin/secretin-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import moment from 'moment'; import copyToClipboard from 'copy-to-clipboard'; import Select from 'components/utilities/Select'; import Button from 'components/utilities/Button'; class WindowsSecretEdit...
src/Typography/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function Typography(props) { return ( <span className={classNames(styles.wrapper, { [styles[props.type]]: props.type, [props.className]: props.className ...
client/src/js/components/header.js
ngokevin/sherlocked
import React from 'react'; export default class Header extends React.Component { static propTypes = { title: React.PropTypes.any.isRequired }; render() { return ( <header> <h1 className="header-name"> <a href="/">Sherlocked</a> </h1> <a className="header-icon" hr...
src/components/public/doc.js
wantplus/pili-web
import React, { Component } from 'react'; import { render } from 'react-dom'; import { Router, Route, Link } from 'react-router'; class Doc extends Component { render() { const { docData } = this.props; return ( <div className="doc-outbox"> <div className="doc-outbox-l...
examples/chat-app/app/components/Root.js
shanecav/horizon-redux
/** * * Root * */ 'use strict' import React from 'react' import MessageList from '../containers/MessageList' import MessageInput from '../containers/MessageInput' const Root = () => { return ( <div> <MessageList /> <MessageInput /> </div> ) } export default Root
frontend/component/Footer.js
raoenhui/datagure-nodeProject
import React from 'react'; const footerStyle={ marginTop:50, padding:20 } export default class Footer extends React.Component { render(){ return ( <div className='text-center' style={footerStyle}> &CopyRight Node.js实战 </div> ) } }
client/src/components/Header.js
alexandernanberg/luncha
import React from 'react' import { Link } from 'react-router-dom' import styled from 'styled-components' import { rgba } from 'polished' import Icon from './common/Icon' import Container from './common/Container' import Nav from './Nav' import HeaderProfile from './HeaderProfile' import { colors, media } from '../style...
src/svg-icons/image/picture-as-pdf.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePictureAsPdf = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 ...
plugins/Hosting/js/components/walletmodal.js
NebulousLabs/Sia-UI
import React from 'react' const WalletUnlockModal = ({ walletLocked }) => ( <div className={'hosting-options-modal modal' + (walletLocked ? '' : ' hidden')} > <div className='hosting-options modal-message'> <h3>You must unlock the wallet to host files.</h3> <i className='fa fa-lock fa-4x' /> ...
src/svg-icons/notification/time-to-leave.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationTimeToLeave = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-....
components/animals/jakDomaci.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/jakDomaci/01.jpg')...
docs/src/pages/customization/palette/Intentions.js
lgollut/material-ui
import React from 'react'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import { makeStyles, useTheme, rgbToHex } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ root: { width: '100%', }, group: { marginTop: theme.spacing(3)...
examples/todos-with-undo/index.js
mjw56/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './components/App' import todoApp from './reducers' const store = createStore(todoApp) const rootElement = document.getElementById('root') ren...
packages/cf-component-modal/src/ModalTitle.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { applyTheme } from 'cf-style-container'; class ModalTitle extends React.Component { render() { return ( <div className="cf-modal__title"> <h1 className="cf-modal__title"> {this.props.children} </h1> </div...
node_modules/react-bootstrap/es/Label.js
yeshdev1/Everydays-project
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
app/javascript/mastodon/components/avatar.js
honpya/taketodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
wedding-react/src/index.js
esevan/web-page
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in yo...
webpack/components/NewTemplateSync/components/TextButtonField/SelectField.js
mmoll/foreman_templates
import React from 'react'; import PropTypes from 'prop-types'; import { FormControl } from 'patternfly-react'; import BlankOption from './BlankOption'; const SelectField = ({ input, blank, item, disabled }) => ( <FormControl {...input} componentClass="select" disabled={disabled}> <BlankOption blank={blank} /> ...
examples/universal/server/server.js
contolini/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import webpackConfig from '../webpack....
index/components/AboutFeatures.js
JDRomano2/VenomKB
import React from 'react'; const AboutFeatures = () => <div className="jumbotron"> <div className="container"> <h2>Map of current and upcoming features</h2> <p> We are constantly working on adding new features to VenomKB. This page is meant to summarize the various features in VenomKB, as wel...
packages/material-ui-icons/src/BlurLinear.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BlurLinear = props => <SvgIcon {...props}> <path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-1s-...
node_modules/react-bootstrap/es/Row.js
firdiansyah/crud-req
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 ...
packages/frontend/src/status-page.js
ks888/LambStatus
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { Router, useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import { Provider } from 'react-redux' import 'babel-polyfill' import routes f...
src/elements/Button/ButtonContent.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly, } from '../../lib' /** * Used in some Button types, such as `animated`. */ function ButtonContent(props) { const { children, cla...
src/components/WeatherForecastDaySummary.react.js
danesparza/Dashboard
import React, { Component } from 'react'; class WeatherForecastDaySummary extends Component{ render() { return ( <tr> <td style={{"border": "none"}} className="forcast-summary" colSpan="2">{this.props.forecast.summary}</td> </tr> ); } } export default WeatherForecastDaySumma...
packages/forms/src/UIForm/fieldsets/CollapsibleFieldset/CollapsibleFieldset.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { InlineMessage } from '@talend/react-components'; import CollapsiblePanel from '@talend/react-components/lib/CollapsiblePanel'; import get from 'lodash/get'; import Widget from '../../Widget'; import { generateDe...
chapter-06/hoc/src/inheritance/cacheHOC.js
mocheng/react-and-redux
import React from 'react'; const cacheHOC = (WrappedComponent) => { return class NewComponent extends WrappedComponent { shouldComponentUpdate(nextProps, nextState) { return nextProps.useCache; } } } export default onlyForLoggedinHOC;
molgenis-core-ui/src/main/javascript/modules/react-components/jobs/RunningJobs.js
joerivandervelde/molgenis
/** * Renders a ProgressBar component for each job passed down from its parent * component * * @module RunningJobs * * @param jobs * An array of job objects with status RUNNING * * @exports RunningJobs class */ import React from 'react'; import { Job } from './Job'; import DeepPureRenderMixin f...
src/routes/projectsMain/index.js
pitLancer/pbdorb
/** * 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 ProjectsMain from './Pro...
src/main/resources/js/components/HistoriskVisning.js
fnerdrum/hendelse-datomic
import React from 'react'; import Utils from './../Utils.js'; import Actions from './../actions/Actions.js'; import vis from 'vis'; class HistoriskVisning extends React.Component { constructor(props) { super(props); } componentDidMount() { this.node = React.findDOMNode(this.refs.mydiv); ...
app/components/chat-message.js
misakimatsumoto2524/merj
import React, { Component } from 'react'; 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/styles/colors'; import IconButton from '...
client-react/src/components/Accounts/Value.js
diman84/Welthperk
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { ContentBlock } from 'components'; import { Row, Col } from 'react-bootstrap'; import { WithTooltip } from 'components/Elements'; import { portfolioValue } from 'constants/staticText'; import { V...
packages/react-error-overlay/src/containers/RuntimeError.js
christiantinauer/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. */ /* @flow */ import React from 'react'; import Header from '../components/Header'; import StackTrace from './StackTrace'; import type { ...
src/parser/warrior/fury/modules/features/checklist/Component.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist2'; import Rule from 'parser/shared/modules/features/Checklist2/Rule'; import Requirement from 'parser/shared/modul...
examples/todos-with-undo/containers/AddTodo.js
splendido/redux
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
packages/wix-style-react/src/DatePicker/test/DatePicker.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import DatePicker from '../DatePicker'; import Box from '../../Box'; import { datePickerTestkitFactory } from '../../../testkit'; import { storySettings } from '../docs/storySettings'; import ExampleDatePicker from '../docs/ExampleDatePicker'; imp...
src/svg-icons/editor/format-underlined.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatUnderlined = (props) => ( <SvgIcon {...props}> <path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/> </SvgIcon> ); EditorF...
src/components/subMenu/index.js
nickfranciosi/terminal-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Scroll, { Link, animateScroll } from 'react-scroll'; import classNames from 'classnames'; import Sticky from 'react-stickynode'; import styles from './style.module.css'; import Button from '../button'; import Container from '../container'; import Ta...
src/recipe-grains/components/GrainTable.js
sgillespie/beer-math
import { func, number, object } from 'prop-types'; import { withStyles } from 'material-ui/styles'; import React from 'react'; import Table, { TableBody, TableCell, TableHead, TableRow } from 'material-ui/Table'; import Typography from 'material-ui/Typography'; import map from 'lodash.map'; import GrainTableRow from '...
src/components/js/Avatar.js
ucev/chatroom
import React, { Component } from 'react'; import '../css/Avatar.css'; class Avatar extends Component { render() { return ( <img src={this.props.imgsrc} className="avatar" alt="avatar"/> ); } } export default Avatar;
app/assets/javascripts/actions/static.js
loggingroads/onboarding
import React from 'react'; export const SET_COMMUNITY_DATA = 'SET_COMMUNITY_DATA'; export const SET_USERS_ACTIVITY_DATA = 'SET_USERS_ACTIVITY_DATA'; export const SET_EVENTS_LIST = 'SET_EVENTS_LIST'; export const SET_GEOMS = 'SET_GEOMS'; export const SET_COUNTRIES_LIST = 'SET_COUNTRIES_LIST'; export const SET_SELECTED_...
src/charts/step/Step.js
Golodhros/britecharts-react
import React from 'react'; import PropTypes from 'prop-types'; import step from './stepChart'; import {loadingContainerWrapper} from '../loading/LoadingContainer'; class Step extends React.Component { static propTypes = { /** * Internally used, do not overwrite. */ data: PropType...
src/svg-icons/device/battery-charging-80.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11...
src/components/Mdx/Mdx.js
aravindballa/website2017
import React from 'react'; import Code from './Code'; import GrayBlock from './GrayBlock'; const preToCodeBlock = (preProps) => { if ( // children is code element preProps.children && // code props preProps.children.props && // if children is actually a <code> preProps.children.props.mdxType...
src/svg-icons/action/record-voice-over.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRecordVoiceOver = (props) => ( <SvgIcon {...props}> <circle cx="9" cy="9" r="4"/><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2....
src/routes/error/index.js
wanchopen/vida
/** * 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 ErrorPage from './ErrorP...
test/unit/shared/view/resources/individual/connected-resource-test.js
travi/travi.org-admin
import React from 'react'; import {createStore} from 'redux'; import {fromJS} from 'immutable'; import sinon from 'sinon'; import {assert} from 'chai'; import {shallow} from 'enzyme'; import {simpleObject, integer, string, boolean} from '@travi/any'; import ConnectedResource from '../../../../../../src/shared/views/res...
src/scenes/player/components/CurrentTrack.js
niekert/soundify
import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, pure } from 'recompose'; import LikeButton from 'components/buttons/LikeButton'; import ArtWork from 'components/Track/ArtWork'; import styled from 'styled-components'; const Wrapper = styled.div` display: flex; align-it...
src/components/maps/MetroMap.js
availabs/kauffman-atlas
"use strict" import React from 'react' import d3 from 'd3' import { connect } from 'react-redux' import { loadNationalData } from 'redux/modules/geoData' import { loadMetroData } from 'redux/modules/metroZbpData' import { loadMetroScores } from 'redux/modules/metroScoresData' import topojson from 'topojson' import clas...
test/frontend/app/components/test-header.js
LINKIWI/linkr
import React from 'react'; import {mount} from 'enzyme'; import test from 'tape'; import Header from '../../../../frontend/app/components/header'; test('Header renders all link items', (t) => { const header = mount( <Header /> ); t.equal(header.find('.header-link-item').length, 4, 'All header link items ar...
src/components/ParticipantHeal.js
liekki/nodebb-plugin-raidstats
import React from 'react' import numeral from 'numeral' export default React.createClass({ render() { let participant = this.props.data let heal = participant.data.heal let healText = `${numeral(heal/this.props.duration).format('0')} hps (${Math.round(heal/this.props.totalHeal*10000)/100}%)` let rel...
packages/showcase/radial-chart/arc-series-example.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/server.js
shaine/squidtree-react
import 'babel-polyfill'; import Express from 'express'; // Caching needs to come before React since it patches its internals import 'electrode-react-ssr-caching'; // eslint-disable-line import React from 'react'; // eslint-disable-line import { Provider } from 'react-redux'; import ReactDOM from 'react-dom/server'; imp...
App/Components/Row.js
HyphenateInc/hyphenate-react-native
import React from 'react' import { View, Text, Image, TouchableOpacity } from 'react-native' import Styles from './Styles/RowStyle' import {Images, Metrics, Colors} from '../Themes' const data = { onPress: null, style: {}, subs: [ { type: 'image' }, { onPress: null, // func / null...
examples/counter-static/common/components/Counter.js
retaxJS/retax
import React from 'react'; import { bindActionCreators } from 'redux'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { incrementActionCreator } from '../actionsCreators/counter'; export default connect( ({ counter }) => ({ counter }), dispatch => bindActionCreators({ increment...
src/components/BusinessResult.js
MouseZero/nightlife-frontend
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { setGoing } from '../actions/search' import NightlifeButton from './NightlifeButton' const goingAndNotGoingIndicator = (your_going) => { if (your_going) { return ( <div> <i className="fa fa-ch...
docs/About.js
jxnblk/cxs
import React from 'react' import Flex from './Flex' import Box from './Box' import Text from './Text' import Column from './Column' import Bar from './Bar' const About = () => ( <section id='about'> <Box pt={5} pb={5}> <Bar mb={4} /> <Text f={20}> cxs is a minimal css-in-js solution t...
geonode/contrib/monitoring/frontend/src/components/molecules/average-memory/index.js
ingenieroariel/geonode
import React from 'react'; import PropTypes from 'prop-types'; import CircularProgress from 'material-ui/CircularProgress'; import HoverPaper from '../../atoms/hover-paper'; import styles from './styles'; class AverageMemory extends React.Component { static propTypes = { mem: PropTypes.number, } static con...
app/javascript/mastodon/features/compose/components/warning.js
alarky/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { message } = this.props; return ( <div className='compose-form__warning'> {message}...
src/containers/Asians/TabControls/Dashboard/Controls/Created/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import EnableRegistration from './EnableRegistration' import AddInformation from './AddInformation' export default connect(mapStateToProps)(({ dispatch, tournament }) => { if ( !tournament.startDate || !tournament.endDate || tournament....
source/client/components/visitor/layout/nav-list.js
lawshe/boda
import React from 'react'; import Nav from 'react-bootstrap/lib/Nav'; import Link from 'react-router/lib/Link'; import variables from '../../../../../config/variables.js'; import local from './_styles'; export default (props) => { const navId = local[props.navId]; let ACTIVE = { color : variables.$grayLight }; ...
src/index.js
LogvinovLeon/React-DApp
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
client/components/App/AppComponent.js
reactexcel/todo-relay-graphql-mongo
import React from 'react'; import PropTypes from 'prop-types'; import 'normalize.css/normalize.css'; import 'react-mdl/extra/css/material.cyan-red.min.css'; import Navbar from '../Navbar/NavbarComponent'; import Footer from '../Footer/FooterContainer'; import styles from './App.scss'; import yeoman from '../../assets/y...
app/javascript/mastodon/features/ui/components/column_link.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span> : null; if (href) { return ( <...
public/src/components/Card.js
MarcoPires/react-flashcard-app
/** * npm modules */ import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; const Card = ({ card }) => { return ( <div className='card'> <div> <p>{card.front}</p> <Link className='btn' to={`/deck/${card.deckId}/edit/${card.id}`} > Edit </Link> </div> ...
src/create.js
pluralsight/redux-react-connector
import React from 'react' import { Connector, Provider } from 'react-redux' export default function createConnector(store) { return function connect(select) { return function decorateSource(DecoratedComponent) { return class ConnectorWrapper extends React.Component { render() { return ( ...
packages/component/src/Attachment/TextContent.js
billba/botchat
/* eslint react/no-danger: "off" */ /* eslint react/no-array-index-key: "off" */ // The content rendered here is sanitized. import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import useRenderMarkdownAsHTML from '../hooks/useRenderMarkdownAsHTML'; import useStyleSet fr...
src/svg-icons/communication/phone.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61...
src/components/Footer.js
mikalmorello/mikalmorello.github.io
import React from 'react'; import Fade from 'react-reveal/Fade'; import { Link } from 'react-router-dom'; import { ReactComponent as Logo } from './logo.svg'; class Footer extends React.Component { render(){ return ( <Fade> <footer id="footer" className="footer"> <div className="foo...
js/components/people/PersonList.js
doabit/react-relay-graphql-starter-kit
import {IndexLink, Link} from 'react-router'; import React from 'react'; import Relay from 'react-relay'; class PersonList extends React.Component { render() { var currentNumber = this.props.relay.variables.limit; var buttonStyle = {}; if (!this.props.store.people.pageInfo.hasNextPage) { buttonSty...
RNLearning/template/template.js
ivanl001/ReactNative-Learning
/** * Created by feng on 16/12/3. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; var IMTemplate = React.createClass({ // getDefaultProps方法 getDefaultProps(){ return{ } }, // getInitialState方法 get...
src/Root.js
pekkis/react-broilerplate-project
// @flow import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import { receiveTodos } from './ducks/todo'; import { Provider } from 'react-redux'; import App from './components/container/AppContainer'; import IndexPage from './pages/container/IndexPageContainer'; import TodoPage from '....
docs/src/markdownPage.js
jedwards1211/breakout
import React from 'react' import ReactMarkdown from 'react-markdown' import withStyles from '@material-ui/core/styles/withStyles' const imageStyles = (theme) => ({ root: { maxWidth: '90%', margin: theme.spacing(4), zoom: '50%', }, }) const ImageRenderer = withStyles(imageStyles)(({ classes, ...props }...
src/components/Layout/Footer.js
caijinchun/hsweb-antd
import React from 'react' import styles from './Footer.less' import { config } from '../../utils' const Footer = () => <div className={styles.footer}> {config.footerText} </div> export default Footer
src/routes/YouTube.js
rdfurman/web-rfurman
import React, { Component } from 'react'; import { Row, Col, Panel } from 'react-bootstrap'; class YouTube extends Component { render() { return ( <div> <Row> <Col md={4}> <Panel> <Panel.Heading>2018 Philippines Part 1: Tandag</Panel.Heading> <Panel...
app/app.js
forwk1990/wechart-checkin
/** * Created by Itachi * on 2016-10-20. */ import React from 'react'; import './assets/stylesheets/app.scss'; import {connect} from 'react-redux'; import {MessageBox, Validator, WxManager} from 'Utils'; import DataStore from 'DataStore'; import ActionTypes from 'constants/ActionTypes' import QRCodeModal...
tests/new_react/state6.js
ylu1317/flow
// @flow import React from 'react'; const any: any = null; type State = {foo: number, bar: number}; type StateUpdater1 = {(State): $Shape<State>}; type StateUpdater2 = {(State): $Shape<State>, foo: number, bar: number}; type StateUpdater3 = {(number): number, foo: number, bar: number}; class MyComponent extends Re...
src/index.js
Software-Eng-THU-2015/pacific-rim
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory, Router, Route, Link } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import App from './App'; import Stats from './Home/Stats'; import About from './About'; import TagWrapper from './Tag/Tag...
docs/src/app/components/pages/components/FlatButton/Page.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import flatButtonReadmeText from './README'; import flatButtonExampleSimpleCode ...
node_modules/semantic-ui-react/src/collections/Form/FormSelect.js
SuperUncleCat/ServerMonitoring
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Select from '../../addons/Select' import FormField from './FormField' /** * Sugar for <Form.Field control={Select} />. * @see Form * @see Select */ function FormSelect(props) { const { ...
src/scenes/home/history/timelineEvent/timelineEvent.js
sethbergman/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './timelineEvent.css'; const TimelineEvent = ({ title, content }) => ( <div className={styles.eventContainer}> <h4 className={styles.eventTitle}>{title}</h4> <div className={styles.eventContent}>{content}</div> </div> ); Ti...
fields/types/geopoint/GeoPointColumn.js
stosorio/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropType...
examples/fiber/debugger/src/Fibers.js
aaron-goshine/react
import React from 'react'; import { Motion, spring } from 'react-motion'; import dagre from 'dagre'; import prettyFormat from 'pretty-format'; import reactElement from 'pretty-format/plugins/ReactElement'; function getFiberColor(fibers, id) { if (fibers.currentIDs.indexOf(id) > -1) { return 'lightgreen'; } i...
src/svg-icons/action/history.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHistory = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
investninja-web-ui-admin/src/routes/login/index.js
InvestNinja/InvestNinja-web-ui
/** * 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 App from '../../compo...
src/stories/index.js
marcusnielsen/reactive-tournament
import React from 'react' import '../index.css' import { compose } from 'ramda' import { storiesOf } from '@kadira/storybook' import Provider from '../components/provider' import ColorThemeModel, {defaultPrimaryMain} from '../components/color-theme' import ColorThemeViewable from '../components/color-theme/viewable' im...
src/svg-icons/action/card-giftcard.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardGiftcard = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H...
examples/using-jest/src/components/layout.js
0x80/gatsby
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import Header from './header' import './layout.css' const Layout = ({ children }) => ( <StaticQuery query={graphql` query SiteTitleQuery { site { s...
src/Parser/Rogue/Subtlety/Modules/BaseRotation/NightbladeDuringSymbols.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Wrapper from 'common/Wrapper'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import DamageTracker from 'Parser/Core/Modules/AbilityTracker'; import SymbolsDamageTracker from './../RogueCore/SymbolsDamageTra...
jenkins-design-language/src/js/components/material-ui/svg-icons/content/clear.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentClear = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); ContentClear.displayName = 'ContentClear'; ContentClear.muiName ...
src/client/components/Sidebar/LastDrafts.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, FormattedRelative } from 'react-intl'; import { Link } from 'react-router-dom'; import { draftType, draftArrayType } from '../../types/drafts'; import Loading from '../../components/Icon/Loading'; import './LastDrafts.less'; impor...
src/svg-icons/file/attachment.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileAttachment = (props) => ( <SvgIcon {...props}> <path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-....
web/src/layout/leftpanel/faqpanel.js
corradio/electricitymap
import React from 'react'; import { connect } from 'react-redux'; import { Link, Redirect, useLocation } from 'react-router-dom'; import { useTranslation } from '../../helpers/translation'; import FAQ from '../../components/faq'; const mapStateToProps = state => ({ isMobile: state.application.isMobile, }); const F...
src/web/forms/fields/TextUnitInput/index.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
src/client.js
eseom/hapi-react-fullstack-boilerplate
// @flow /* eslint no-console: "off" */ import React from 'react' import ReactDOM from 'react-dom' import ReactGA from 'react-ga' import { Provider } from 'react-redux' import { Router, browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import { ReduxAsyncConnect } from 'red...
jspm_packages/npm/react-router@2.6.1/es6/IndexRoute.js
Imms/imms.github.io
/* */ "format cjs"; import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /**...
reflux-app/components/Status/AgentStatus.js
Orientsoft/conalog-front
import React from 'react' import { FormattedMessage } from 'react-intl'; import { Icon,Tag,Switch,TimePicker,message,Modal } from 'antd'; // let message = require('antd/lib/message') // let TimePicker = require('antd/lib/time-picker') // let Switch = require('antd/lib/switch') // let Tag = require('antd/lib/tag') // l...
step9-redux/node_modules/react-router/es6/RoutingContext.js
jintoppy/react-training
'use strict'; import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`Rou...
packages/vx-bounds/src/enhancers/withBoundingRects.js
Flaque/vx
/* eslint react/no-did-mount-set-state: 0, react/no-find-dom-node: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; const emptyRect = { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0, }; const rectShape = PropTypes.shape({ top: PropTypes.nu...
node_modules/react-router/es6/RoutingContext.js
ZSMingNB/react-news
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...