path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/compose/components/upload_button.js
tateisu/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
node_modules/react-navigation/lib-rn/views/Header.js
joan17cast/Enigma
'no babel-plugin-flow-react-proptypes'; import React from 'react'; import { Animated, Platform, StyleSheet, View } from 'react-native'; import HeaderTitle from './HeaderTitle'; import HeaderBackButton from './HeaderBackButton'; import HeaderStyleInterpolator from './HeaderStyleInterpolator'; const APPBAR_HEIGHT = P...
src/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devic...
src/AffixMixin.js
deerawan/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; const AffixMixin = { propTypes: { offset: React.PropTypes.number, offsetTop: React.PropTypes.number, offsetBottom: React.PropTypes.number }, getInitialState() { return { a...
src/svg-icons/av/remove-from-queue.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRemoveFromQueue = (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-7v2H8v-2h8z"/> </SvgIcon> );...
app/pages/Splash.js
c446984928/playtogether
import React from 'react'; import { Dimensions, Animated } from 'react-native'; import store from 'react-native-simple-store'; import { registerApp } from 'react-native-wechat'; import AV from 'leancloud-storage'; import NavigationUtil from '../utils/NavigationUtil'; const maxHeight = Dimensions.get('window').height; ...
Libraries/Utilities/throwOnWrongReactAPI.js
htc2u/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/svg-icons/image/broken-image.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrokenImage = (props) => ( <SvgIcon {...props}> <path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ...
src/components/settlement/receipt/SettlementReceiptHeader.js
HuZai/react_settlement
import React from 'react'; import {render} from 'react-dom'; import ReceiptTips from 'components/settlement/receipt/SettlementReceiptTips'; class SettlementReceiptHeader extends React.Component { rightClick() { // 发票须知 render( <ReceiptTips/>, document.getElementById("receipt-pops")); } backCli...
app/imports/ui/app/HomePage.js
raiden-network/raiden-token
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; export default class HomePage extends Component { render() { const { location } = this.props; return React.createElement('div', {}, React.createElement('div', {}, React.createElement(Link, { className...
client/components/Privacy/Privacy.js
bjoberg/social-pulse
import React from 'react'; // Styles import styles from '../../main.css'; export function Privacy() { return ( <div className={styles.container}> <h1> Privacy </h1> <p> We take privacy very seriously. We do not pass on your information to any third party device or application. We use yo...
src/icons/FavoriteIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FavoriteIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 42.7l-2.9-2.63C10.8 30.72 4 24.55 4 17 4 10.83 8.83 6 15 6c3.48 0 6.82 1.62 9 4.17C26.18 7.62 29.52 6...
src/MessageBox/MessageBoxLayout2.js
nirhart/wix-style-react
import React from 'react'; import * as styles from './MessageBoxLayout2.scss'; import {HeaderLayout1, FooterLayout1} from './'; const MessageBoxLayout2 = ({title, onCancel, onOk, confirmText, children, hideFooter, cancelText, style, theme}) => { //TODO When deprecation ends, _theme won't be needed. const _theme = ...
examples/browserify-gulp-example/src/app/app.js
rhaedes/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Main from './Main'; // Our custom react component //Needed for onTouchTap //Can go away when react 1.0 release //Check this repo: //https://github.com/zilverline/react-tap-event-plugin injectT...
frontend/src/InteractiveImport/AlbumRelease/SelectAlbumReleaseModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Modal from 'Components/Modal/Modal'; import SelectAlbumReleaseModalContentConnector from './SelectAlbumReleaseModalContentConnector'; class SelectAlbumReleaseModal extends Component { // // Render render() { const { ...
src/containers/Profile/media/github.js
TheodorTomas/theodortomas.github.io
import React from 'react'; export default ( <svg className="icon github" width="32" height="32" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg" > <path d="M896 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 .5-76.5t.5-134.5q0-...
client/src/app/install/install-step-3-database.js
ivandiazwm/opensupports
import React from 'react'; import _ from 'lodash'; import history from 'lib-app/history'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import Button from 'core-components/button'; import Header from 'core-components/header'; import Form from 'core-components/form'; import FormField from 'core-...
src/components/texts/info-text.js
tuantle/hypertoxin
/** * Copyright 2016-present Tuan Le. * * Licensed under the MIT License. * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/mit-license.html * * Unless required by applicable law or agreed to in writing, software * d...
js/Details.js
jelliotartz/FEM-react-intro
import React from 'react' import { connect } from 'react-redux' import { getOMDBDetails } from './actionCreators' import Header from './Header' const { shape, string, func } = React.PropTypes const Details = React.createClass({ propTypes: { show: shape({ title: string, year: string, poster: str...
test/regressions/tests/Button/MultilineButton.js
cherniavskii/material-ui
// @flow import React from 'react'; import Button from 'material-ui/Button'; export default function MultilineButton() { return ( <Button variant="raised" style={{ width: 400 }}> {[ 'Raised buttons are rectangular-shaped buttons.', 'They may be used inline.', 'They lift and display...
docs/src/app/components/pages/components/List/Page.js
igorbt/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import listReadmeText from './README'; import listExampleSimpleCode from '!raw!....
server/server.js
CODEINAE/todoy
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
src/index.js
muiradams/plantogo
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import reduxThunk from 'redux-thunk'; import App from './components/App'; import Welcome f...
src/routes/general/confirmation/index.js
chunkiat82/rarebeauty-ui
/* eslint-disable jsx-a11y/alt-text */ /** * 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 fro...
src/components/google/original/GoogleOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './GoogleOriginal.svg' /** GoogleOriginal */ function GoogleOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'GoogleOriginal' + ' ' + c...
src/components/slide2-jsx.js
lucky3mvp/react-demo
import React from 'react' export default React.createClass({ render () { return ( <div className="m-code-dis no-border"> <img src="../img/jsx.jpg" height="400" width="500" /> </div> ) } })
client/admin/components/navbar.js
kirinami/portfolio
import moment from 'moment'; import React, { Component } from 'react'; import { Link, Route, withRouter } from 'react-router-dom'; import { inject, observer } from 'mobx-react'; import { UncontrolledTooltip } from 'reactstrap'; @withRouter @inject('alertStore', 'authStore', 'contactStore') @observer export default cla...
examples/01 Dustbin/Multiple Targets/index.js
globexdesigns/react-dnd
import React, { Component } from 'react'; import Container from './Container'; export default class DustbinMultipleTargets extends Component { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the So...
01_webstack/03Wk02/conFusion_Gulp/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
allenmodroid/webstack
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
pages/product.js
dwest-teo/wattos-spaceship-emporium
import React from 'react'; import PropTypes from 'prop-types'; import withRedux from 'next-redux-wrapper'; import initStore from '../lib/store'; import serverSideInit from '../lib/server-side-init'; import { openSidebar, toggleDropdown } from '../actions/menu'; import { addToCart, removeFromCart } from '../actions/cart...
src/index.js
yuhaogo/study-mk-photos
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/svg-icons/hardware/keyboard-arrow-up.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowUp = (props) => ( <SvgIcon {...props}> <path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowUp = pure(HardwareKeyboardArrowUp); HardwareKeyboardAr...
packages/generator-react-redux-template/generators/component/templates/Component.js
abouthiroppy/dish
import React from 'react';<% if (style) { %> import styles from './style.css';<% } %> <% if (isStateless) { %> const <%= componentname %> = () => (<% if (style) { %> <div className={styles.container}>hello</div><% } else { %> <div>hello</div><% } %> );<% } else { %> class <%= componentname %> extends React.Componen...
src/Interests.js
pebutler3/new-site
import React, { Component } from 'react'; class Interests extends Component { render() { return ( <ul className="col-3"> <h2>Interests</h2> <li>JavaScript</li> <li>ReactJS</li> <li>NodeJs</li> <li>SCSS</li> <li>Static Sites</li> <li>Performance</li> ...
scripts/benchmarks/src/app/Text.js
tkh44/emotion
/* eslint-disable react/prop-types */ import { bool } from 'prop-types' import React from 'react' import { StyleSheet, Text } from 'react-native' import { colors } from './theme' class AppText extends React.Component { static displayName = '@app/Text' static contextTypes = { isInAParentText: bool } rend...
code/workspaces/web-app/src/components/common/PromisedContentWrapper.js
NERC-CEH/datalab
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core'; import CircularProgress from '@material-ui/core/CircularProgress'; const useStyles = makeStyles(() => ({ fullSizeBase: { display: 'flex', alignItems: 'center', justifyContent: 'center', }, f...
src/components/AudioPlayer.js
erwaiyang/aup-to-srt-for-NTUPDS
import React, { Component } from 'react'; class AudioPlayer extends Component { constructor(props){ super(props); this.state = { audio: null }; } handleFile(e){ let file = e.target.files[0]; const URL = window.URL || window.webkitURL; const fileURL = URL.createObjectURL(file); ...
application/js/Components/Home/HomeNavigation.js
cfrank/React-Reddit
import React from 'react' import { Link, IndexLink } from 'react-router' const ACTIVE_CLASS = "active-home-link" export default class HomeNavigation extends React.Component{ render(){ return( <nav className="home-navigation"> <ul> <li><IndexLink to="/" activeClassName={ACTIVE_CLASS}>Home...
src/svg-icons/action/bug-report.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBugReport = (props) => ( <SvgIcon {...props}> <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7...
client/app/scripts/components/nodes-resources.js
paulbellamy/scope
import React from 'react'; import { connect } from 'react-redux'; import Logo from './logo'; import ZoomWrapper from './zoom-wrapper'; import NodesResourcesLayer from './nodes-resources/node-resources-layer'; import { layersTopologyIdsSelector } from '../selectors/resource-view/layout'; import { resourcesZoomLimitsS...
src/svg-icons/image/wb-sunny.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbSunny = (props) => ( <SvgIcon {...props}> <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7...
app/javascript/mastodon/components/admin/Dimension.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedNumber } from 'react-intl'; import { roundTo10 } from 'mastodon/utils/numbers'; import Skeleton from 'mastodon/components/skeleton'; export default class Dimension extends React.PureComponent { static pr...
packages/vx-gradient/src/gradients/DarkgreenGreen.js
Flaque/vx
import React from 'react'; import LinearGradient from './LinearGradient'; export default (props) => { return ( <LinearGradient from='#184E86' to='#57CA85' {...props} /> ); }
src/js/components/ui/CardContent.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { ORIGIN_CONTEXT } from '../../constants/Constants'; import ProgressBar from './ProgressBar'; import CardIcons from './CardIcons'; import Image from './Image'; import UserStore from '../../stores/UserStore'; import * as UserActionCreat...
src/svg-icons/action/pets.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPets = (props) => ( <SvgIcon {...props}> <circle cx="4.5" cy="9.5" r="2.5"/><circle cx="9" cy="5.5" r="2.5"/><circle cx="15" cy="5.5" r="2.5"/><circle cx="19.5" cy="9.5" r="2.5"/><path d="M17.34 14.86c-.8...
src/components/Chat/NotificationMessages/SkipMessage.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import Username from '../../Username'; import UserNotificationMessage from './UserNotificationMessage'; const toUsername = (user) => ( <Username user={user} /> ); const getLangKey = (hasModerator,...
weather-app/src/App.js
plotly/academy
import React from 'react'; import './App.css'; import { connect } from 'react-redux'; import Plot from './Plot'; import { changeLocation, setSelectedDate, setSelectedTemp, fetchData } from './actions'; export class App extends React.Component { fetchData = (evt) => { evt.preventDefault(); var locat...
app/HomeAutomation/components/Loading/Loading.js
tomatrocho/auto-door
import React from 'react'; import { Text, View, ActivityIndicator } from 'react-native'; import Style from './style'; export default class Loading extends React.Component { constructor(props) { super(props); } render() { return ( <View style = { Style.container }> ...
src/components/app.js
JeremyWeisener/Test
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import CamperList from './camper_list.js'; export default class FetchComp extends Component { constructor(props) { super(props); this.state = { requestFailed: false, recentCampers: [], al...
packages/ringcentral-widgets-docs/src/app/pages/Components/SpinnerOverlay/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
app/components/UploadButton/index.js
cerebral/cerebral-reference-app
import React from 'react'; import styles from './styles.css'; import ToolbarButton from 'common/components/ToolbarButton'; import icons from 'common/icons.css'; function UploadButton(props) { const className = styles.wrapper; return ( <div className={className}> <ToolbarButton disabled={props.di...
src/components/Tag/index.js
andywillis/uws
// Dependencies import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; // Style import './style.css'; /** * @function Tag * @param {object} props Component properties * @return {jsx} Component */ const Tag = ({ txt }) => { return ( <Link to={{ pathname: `/ta...
src/containers/weather_list.js
gui-santos/exp-redux
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; class WeatherList extends Component { renderWeather(cityData) { const name = cityData.city.name; const temps = cityData.list.map(weather => weather.main.temp); const pressures = cityD...
java-script/12-webpack-demo/src/components/VideoPlayer.js
ruslan2k/public-files
import React, { Component } from 'react'; import videojs from 'video.js' class VideoPlayer extends Component { componentDidMount() { // instantiate Video.js this.player = videojs(this.videoNode, this.props, () => { console.log('onPlayerReady', this); }); } // destroy player on unmount compon...
src/components/ReplOutputChartViewer.js
princejwesley/Mancy
import React from 'react'; import _ from 'lodash'; import ReplCommon from '../common/ReplCommon'; import ReplOutputHTML from './ReplOutputHTML'; import c3 from 'c3'; export default class ReplOutputChartViewer extends React.Component { constructor(props) { super(props); this.state = { type: 'bar', ...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
frankleng/react-router
import React from 'react'; class Assignments extends React.Component { render () { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ); } } export default Assignments;
src/giraffe-ui/footer/text.js
MoveOnOrg/mop-frontend
import React from 'react' import CaretRightSvg from '../svgs/caret-right.svg' export const Text = () => ( <div className='footer__text'> <div className='footer__text__item'> A joint website of MoveOn.org Civic Action and MoveOn.org Political Action. MoveOn.org Political Action and MoveOn.org Civic A...
client/src/app/routes/smartadmin-intel/index.js
zraees/sms-project
import React from 'react'; import HtmlRender from '../../components/utils/HtmlRender' export default { path: 'smartadmin', component: require('../../components/common/Layout').default, childRoutes: [ { path: 'app-layouts', getComponent(nextState, cb){ System.import('html-loader?-attrs!./...
src/components/Picker/PointerCircle.js
claus/react-dat-gui
import React from 'react'; const PointerCircle = () => <div className="pointer-circle" />; export default PointerCircle;
src/svg-icons/social/poll.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPoll = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); SocialPoll = ...
uiexplorer/examples/Carousel.js
tipsi/tipsi-ui-kit
import React from 'react' import { View, Text } from 'react-native' import Icon from 'react-native-vector-icons/FontAwesome' import register from '../core/utils/register' import { Carousel } from '../../src' /* eslint react/prop-types: 0 */ const Wrapper = ({ children }) => ( <View style={{ borderRadius: 5, backgrou...
src/components/views/SmartForm.js
huang6349/react-dva
import React, { Component } from 'react'; import { Form, Input, Radio, Select, Switch, DatePicker, } from 'antd'; import PropTypes from 'prop-types'; import styles from './SmartForm.css'; export const ItemType = { TEXT: 'text', PASSWORD: 'password', RADIO: 'radio', TEXTAREA: 'textarea', SELECT: ...
app/containers/Login/LoginContainer.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { LoginPageWrapper } from '../../components/Login'; import { sendLoginToServer, fetchStates, selectState } from '../../actions/'; class Login extends Compon...
src/components/Tagline/Tagline.js
kdrabek/exchange_rates_frontend
import React from 'react'; import { Row, Col, PageHeader } from 'react-bootstrap'; const Tagline = (props) => { return ( <Row> <Col xs={12} md={12}> <PageHeader> Kursy walut NBP <br /><small>Według tabeli A</small> </PageHeader> </Col> </Row> ); }; export default Tagl...
components/playerlist/BarList.js
nvbf/pepper
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Bar from './Bar'; const Container = styled.div` width: 600px; min-height: 48px; `; function BarList(props) { return ( <Container> {props.isShowing && props.team.players.map((player, in...
release/darwin-x64/shokushu-darwin-x64/shokushu.app/Contents/Resources/app/app/components/Sidebar.js
y-takey/shokushu
import _ from 'lodash'; import React, { Component } from 'react'; import LeftNav from 'material-ui/lib/left-nav'; import MenuItem from 'material-ui/lib/menus/menu-item'; import Divider from 'material-ui/lib/divider'; import FontIcon from 'material-ui/lib/font-icon'; import Color from 'material-ui/lib/styles/colors' imp...
app/components/service/ServiceDetail.js
jendela/jendela
import React from 'react' import Parse from 'parse' import { Link } from 'react-router' import Loading from '../template/Loading' import ServiceSummary from './ServiceSummary' import ServiceDetailRow from './ServiceDetailRow' const styles = { content: { paddingTop: "25px", paddingBottom: "25px" ...
src/components/Todos/components/TodoFetchError/index.js
dominicfallows/todo-app-react-redux-aws
import React from 'react'; import PropTypes from 'prop-types' const TodoFetchError = ({ message, onRetry }) => ( <div> <p>Could not fetch todos. {message}</p> <button onClick={onRetry}>Retry</button> </div> ); TodoFetchError.propTypes = { message: PropTypes.string.isRequired, onRetry: PropTypes.func.i...
app/javascript/mastodon/features/following/index.js
theoria24/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 { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
components/Footer.js
jkupcho/eri-blog
import React from 'react' import Title from './Title' import Icon from './Icon' import ContactForm from '../containers/ContactForm' export default () => { return ( <footer className="footer" style={{borderTop: '1px solid #cfcfcf'}}> <div className="container"> <div className="content has-text-cente...
client/portfolio2017/src/Components/AppSnackBar/AppSnackBar.js
corrortiz/portafolio2017
import React, { Component } from 'react'; import PropTypes from 'prop-types'; //MUI Components import Button from 'material-ui/Button'; import Snackbar from 'material-ui/Snackbar'; import Slide from 'material-ui/transitions/Slide'; import { withStyles } from 'material-ui/styles'; //HOC for connect to Redux import Globa...
src/svg-icons/image/crop-16-9.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop169 = (props) => ( <SvgIcon {...props}> <path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/> </SvgIcon> ); ImageCrop169 = pure(ImageCrop169); ImageCr...
src/client/components/CircleImageWidget/CircleImageWidget.js
trippian/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' import { CircleImageWidget as appConfig } from '../../config/appConfig' const renderImage = (imageSrc, link, title) => { const imageHTML = <img src={imageSrc} alt={title} /> if (link) { return ( <Link to={link}...
src/svg-icons/device/signal-wifi-3-bar-lock.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3BarLock = (props) => ( <SvgIcon {...props}> <path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-...
node_modules/laravel-elixir/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Jerrrrry/gxw
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/AdminPage.js
OR13/car2go
import React from 'react' import { Card, CardTitle, CardText } from 'material-ui/Card' import Page from 'layouts/Page' import MeshPointTableContainer from 'containers/MeshPointTableContainer' export default class AdminPage extends React.Component { render() { return ( <Page renderParticles={true}> ...
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js
superKaigon/TheCave
// TODO: This module should be ElementChildren, and should use named exports. import React from 'react'; /** * Iterates through children that are typically specified as `props.children`, * but only maps over children that are "valid components". * * The mapFunction provided index will be normalised to the compone...
src/routes/RequestPayment/components/CostsForSpecialist.js
vijayasankar/ML2.0
import Col from 'react-bootstrap/lib/Col' import DollarTextField from 'components/DollarTextWithTwoDecimalsField' import RadioGroupField from 'components/RadioGroupField' import React from 'react' import Row from 'react-bootstrap/lib/Row' import TypeaheadField from 'components/TypeaheadField' import classnames from 'cl...
src/svg-icons/notification/time-to-leave.js
frnk94/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-....
src/svg-icons/device/battery-charging-20.js
manchesergit/material-ui
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 ...
src/app/components/project/Project.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { browserHistory } from 'react-router'; import Relay from 'react-relay/classic'; import { graphql } from 'react-relay/compat'; import { FormattedMessage } from 'react-intl'; import FolderOpenIcon from '@material-ui/icons/FolderOpen'; import Visibilit...
docs/app/Examples/collections/Message/Types/MessageListPropExample.js
ben174/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const list = [ 'You can now have cover images on blog pages', 'Drafts will now auto-save while writing', ] const MessageListPropExample = () => ( <Message header='New Site Features' list={list} /> ) export default MessageListPropEx...
app/components/payment/planDetails.js
ritishgumber/dashboard-ui
import React from 'react'; import planList from './plans'; import {paymentCountries} from './config'; import Popover from 'material-ui/Popover'; import ReactTooltip from 'react-tooltip'; class PlanDetails extends React.Component { constructor(props) { super(props); this.state = { openPl...
src/index.js
kleavjames/SimpleYoutubeSearchApp
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import YTSearch from 'youtube-api-search'; import SearchBar from './components/SearchBar'; import VideoList from './components/VideoList'; import VideoDetail from './components/VideoDetail'; const API_KEY = 'AIz...
assets/registration/components/SuccessAlert.js
janta-devs/nyumbani
import React, { Component } from 'react'; const SuccessAlert = (props) => { return( <div className="alert alert-success"> <strong>Success!</strong> Please Continue... </div> ) } export default SuccessAlert;
js/components/Pipe.js
gilesbradshaw/uaQL
// @flow 'use strict'; import React from 'react'; import Relay from 'react-relay'; import LocalizedText from './LocalizedText'; import {createContainer} from 'recompose-relay'; import {compose, doOnReceiveProps} from 'recompose'; import DataValue from './DataValue'; import Component from './Component'; import Compo...
frontend/src/components/pages/searchresults.js
wilsonwen/kanmeiju
import React, { Component } from 'react'; import Config from '../../config' import { browserHistory } from 'react-router'; import Spin from '../spin' import { VelocityTransitionGroup } from 'velocity-react'; import SeasonList from './seasonlist' class SearchResults extends Component { constructor(props) { super(...
src/svg-icons/editor/border-style.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderStyle = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/> </SvgIcon> ); E...
packages/react-interactions/events/src/dom/Press.js
flarnie/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {PointerType} from 'shared/ReactDOMTypes'; import React from 'react'; import {useTap} from 'react-interac...
src/components/CompanyAndJobTitle/StatusRenderer.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import Loader from 'common/Loader'; import { isUnfetched, isFetching, isError } from '../../constants/status'; const StatusRenderer = ({ status, children, ...props }) => { if (isUnfetched(status)) { return null; } if (isFetching(status)) { re...
src/components/Link.js
hackclub/website
// Based on https://sven-roettering.de/external-gatsby-links/ import React from 'react' import { Link as DSLink } from '@hackclub/design-system' import { Link as GatsbyLink } from 'gatsby' const isExternalLink = path => path.startsWith('http') || path.startsWith('//:') const DSGatsbyLink = DSLink.withComponent(Gatsby...
packages/material-ui-icons/src/GridOn.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let GridOn = 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-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4...
src/routes/indexMyCustom.js
daxiangaikafei/QBGoods
import React from 'react' import { Route, IndexRoute, Router } from 'dva/router' import CoreLayout from '../containers/layout' import Hotgoods from 'views/Hotgoods/page' import MyCustom from 'views/MyCustom/page' import SelfSupport from 'views/SelfSupport/page' import GatherGoods from 'views/GatherGoods/page' import Ga...
maodou/posts/client/components/post.js
ShannChiang/USzhejiang
import React from 'react'; import Loading from 'client/components/common/loading'; import moment from 'moment'; export default (props) => { return ( <div className="container" style={{ paddingTop: '40px'}}> <div className="row"> <div className="col-lg-12"> { props.post ? ...
frontend/src/javascripts/stores/PostStore.js
funaota/notee
import React from 'react'; import assign from 'object-assign'; import request from 'superagent'; var EventEmitter = require('events').EventEmitter; // notee import NoteeDispatcher from '../dispatcher/NoteeDispatcher'; import Constants from '../constants/NoteeConstants'; // utils import EventUtil from '../utils/EventU...
app/components/Feed.js
Atamas1llya/Flerse
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getFeed, getSubscribedFeed } from '../actions/feed'; import { Grid, Row, Col, Tabs, Tab } from 'react-bootstrap'; import Story from './Story'; class Feed extends Component { componentDidMount() { this.props.getFeed(); ...
src/parser/shaman/restoration/modules/azerite/BaseHealerAzerite.js
sMteX/WoWAnalyzer
import { calculateAzeriteEffects } from 'common/stats'; import { formatNumber, formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import React from 'react'; import ItemHealingDon...
imports/ui/components/files/NewDirectoryModal.js
hwillson/file-metadata-manager
import React, { Component } from 'react'; import { Modal, Button, FormGroup, ControlLabel, FormControl, HelpBlock, } from 'react-bootstrap'; import { css } from 'aphrodite'; import UtilityStyles from '../../styles/utility'; import { createDirectory } from '../../../api/fs_files/methods'; class NewDirector...
Frontend/src/index/user_center.js
zsefvlol/threedegrees
"use strict"; import React from 'react'; import { render } from 'react-dom'; import { Link } from 'react-router' import WeUI from 'react-weui'; import UserList from './user_list' import InviteList from './invite_list' const {Cells, CellsTitle, CellBody, Cell, Button, CellFooter, ButtonArea} = WeUI; export default cl...
src/components/RadioButtonGroup/RadioButtonGroup.js
jzhang300/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import RadioButton from '../RadioButton'; import warning from 'warning'; export default class RadioButtonGroup extends React.Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, defaultSelected: PropTypes.on...