path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/count-undo/index.js
cycgit/dva
import React from 'react'; import dva from '../../src/index'; import { connect } from '../../index'; import { Router, Route, useRouterHistory } from '../../router'; import { createHashHistory } from 'history'; import undoable, { ActionCreators } from 'redux-undo'; // 1. Initialize const app = dva({ onReducer: reduce...
src/frontend/src/components/GMUser.js
blengerich/GenAMap
import React from 'react' import AppBar from 'material-ui/AppBar' import IconMenu from 'material-ui/IconMenu' import MenuItem from 'material-ui/MenuItem' import IconButton from 'material-ui/IconButton' import FontIcon from 'material-ui/FontIcon' var GMUser = React.createClass({ render: function () { return ( ...
packages/mcs-lite-ui/src/LazyloadOnce/LazyloadOnce.js
MCS-Lite/mcs-lite
/* global window */ import React from 'react'; import PropTypes from 'prop-types'; import Waypoint from 'react-waypoint'; import rafThrottle from 'raf-throttle'; class LazyloadOnce extends React.PureComponent { static propTypes = { children: PropTypes.node, height: PropTypes.number, component: PropTypes...
src/app/Home.js
cityofasheville/coa-converse
import React from 'react'; import { Query, Mutation } from 'react-apollo'; import EmployeeHome from './EmployeeHome'; import LoadingAnimation from '../shared/LoadingAnimation'; import Error from '../shared/Error'; import { UPDATE_AUTHMODAL } from '../utilities/auth/graphql/authMutations'; import { getUser } from '../ut...
src/js/screens/Text.js
grommet/next-sample
import React from 'react'; import { Box, Text } from 'grommet'; import doc from 'grommet/components/Text/doc'; import Doc from '../components/Doc'; const desc = doc(Text).toJSON(); export default () => ( <Doc name='Text' desc={desc}> <Box pad='large'> <Text size='xsmall'>Text XSmall</Text> <Text s...
packages/@lyra/imagetool/example/src/ImageToolDemo.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import Preview from './Preview' import ImageSelector from './ImageSelector' import ImageTool from '../../src' import IMAGES from './data/testImages' const PREVIEW_ASPECT_RATIOS = [ ['None (default)', undefined], ['Auto', 'auto'], ['Landscape', 16 / 9]...
node_modules/enzyme/src/version.js
paul-brabet/tinkerlist
import React from 'react'; export const VERSION = React.version; const [major, minor] = VERSION.split('.'); export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = major === '15'; export const REACT155 = REACT15 && minor >= 5;
src/index.js
flydev-labs/react-face-detector
import React from 'react'; import { render } from 'react-dom'; import './css/styles.css'; import './css/spinner.css'; import App from './components/App'; render(<App/>, document.querySelector('#main'));
app/components/TopBar.js
wbowling/deciderer
import React from 'react' import Reflux from 'reflux' import { History } from 'react-router' import { Navbar, Nav, NavBrand, Button } from 'react-bootstrap' import LoginStore from '../stores/LoginStore' import LoginActions from '../actions/LoginActions' import PollStore from '../stores/PollStore' import debug from '.....
assets/js/components/MkdirModal.js
basarevych/webfm
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { Form, FormGroup, Label, Col, Input } from 'reactstrap'; import RequiredFieldLabel from './RequiredFieldLabel'; import FormMessages fro...
components/card/CardText.js
jasonleibowitz/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import { CARD } from '../identifiers.js'; const CardText = ({ children, className, theme, ...other }) => ( <div className={classnames(theme.cardText, className)} {...other}> ...
src/Alert.js
jamon/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number }, getDefaultProps() { return { bsCla...
src/js/components/RoutedAnchor/RoutedAnchor.js
grommet/grommet
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Anchor } from '../Anchor'; class RoutedAnchor extends Component { static contextTypes = { router: PropTypes.shape({}).isRequired, }; static defaultProps = { method: 'push', }; render() { const { path, method...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
js/components/signup/index.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { StatusBar, View, Image, TextInput, TouchableOpacity } from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base'; import { openDrawer } from...
src/containers/App/index.js
nickjvm/grommet-color-contrast
import React from 'react'; import Main from 'containers/Main'; import SampleComponent from 'components/SampleComponent'; import 'grommet/scss/hpe/index.scss'; export default function App() { return ( <Main> <SampleComponent /> </Main> ); }
app/javascript/mastodon/features/explore/suggestions.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import AccountCard from 'mastodon/features/directory/components/account_card'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { ...
src/svg-icons/av/add-to-queue.js
verdan/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"/> ...
actor-apps/app-web/src/app/components/common/Banner.react.js
liruqi/actor-platform
import React from 'react'; import BannerActionCreators from 'actions/BannerActionCreators'; class Banner extends React.Component { constructor(props) { super(props); if (window.localStorage.getItem('banner_jump') === null) { BannerActionCreators.show(); } } onClose = () => { BannerActionC...
src/components/routes/ImageAndTextTemplate.js
sievins/sarahs-footsteps
import React from 'react' import PropTypes from 'prop-types' import withClearDiv from 'components/with-clear-div' import grid from 'styles/grid.scss' import styles from './ImageAndTextTemplate.scss' ImageAndTextTemplate.propTypes = { img: PropTypes.shape({ src: PropTypes.string.isRequired, alt: PropTypes.str...
src/Row.js
pandoraui/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { re...
src/components/navigation/Header/Header.js
cltk/cltk_frontend
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; // components import NavBar from './NavBar'; import LeftMenu from '../LeftMenu'; // actions import * as authActions from '../../../modules/auth/actions'; const Header = ({ toggleAuthModal, userId }) => ( <div> <...
src/svg-icons/communication/business.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationBusiness = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2...
admin/src/components/ItemsTableCell.js
wustxing/keystone
import React from 'react'; var ItemsTableCell = React.createClass({ displayName: 'ItemsTableCell', propTypes: { className: React.PropTypes.string, }, render () { let className = 'ItemList__col' + (this.props.className ? (' ' + this.props.className) : ''); return ( <td {...this.props} className={className...
src/svg-icons/navigation/chevron-right.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronRight = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); NavigationChevronRight = pure(NavigationChevronRight); NavigationChevronRigh...
src/common/components/OutlineButton.js
skallet/este
// @flow import type { ButtonProps } from './Button'; import React from 'react'; import Button from './Button'; const OutlineButton = (props: ButtonProps) => ( <Button // TODO: Recheck after Flow 0.38, propValues should not be required. gray={true} // eslint-disable-line react/jsx-boolean-value outline={...
information/blendle-frontend-react-source/app/modules/campaigns/NewsletterSignUp.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import Logo from 'components/Logo'; import Link from 'components/Link'; import { translate, translateElement } from 'instances/i18n'; import BackboneView from 'components/shared/BackboneView'; import SignUpForm from 'views/...
examples/profile-cards-react-with-styles/src/components/Profile.js
weaintplastic/react-sketchapp
/* eslint-disable react/prop-types */ import React from 'react'; import { Image, View, Text } from 'react-sketchapp'; import { css, withStyles } from '../withStyles'; const Profile = ({ user, styles }) => ( <View {...css(styles.container)}> <Image source={user.profile_image_url} {...css(styles.avatar)} /> <V...
src/svg-icons/content/remove-circle.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircle = (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 2zm5 11H7v-2h10v2z"/> </SvgIcon> ); ContentRemoveCircle = pure(ContentRemoveCir...
src/App.js
kalaksi/meadmate
import React from 'react'; import './index.css'; import ParameterForm from './Components/ParameterForm'; import EquationCanvas from './Components/EquationCanvas'; import { ferment, rate_my_mead } from './ferment'; export default class App extends React.Component { constructor(props) { super(props); this.stat...
src/components/Feed/Feed.js
bodguy/bodguy.github.io
// @flow strict import React from 'react'; import moment from 'moment'; import { Link } from 'gatsby'; import type { Edges } from '../../types'; import styles from './Feed.module.scss'; type Props = { edges: Edges }; const Feed = ({ edges }: Props) => ( <div className={styles['feed']}> {edges.map((edge) => ( ...
mxcube3/ui/components/Tasks/AddSample.js
amilan/mxcube3
import React from 'react'; import { reduxForm } from 'redux-form'; import { Modal } from 'react-bootstrap'; class AddSample extends React.Component { constructor(props) { super(props); this.handleSubmit = this.handleSubmit.bind(this); this.handleCancel = this.handleCancel.bind(this); } handleCance...
src/svg-icons/action/alarm-on.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0...
app/javascript/mastodon/features/compose/components/search_results.js
palon7/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/status_container'; import Link from 'react-router-dom/Link'; import...
packages/material-ui-icons/src/Iso.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Iso = 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-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z" /> <...
Initial/src/client/app/components/ToDoApp.js
Louis0503/TestRact
'use strict' import React from 'react'; const TodoList = (props) => ( <ul> { props.items.map((item) => ( <li key={item.id}>{item.text}</li> )) } </ul> ); // 整個 App 的主要元件,這邊比較重要的是事件處理的部份 class ToDoApp extends React.Component { constructor(props) { ...
src/Parser/Paladin/Retribution/Modules/Talents/DivinePurpose.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox, { STATIST...
app/containers/AdminRelaisCommandes/components/DetailCommandeProduit.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import round from 'lodash/round'; import { TableRow, TableRowColumn } from 'material-ui/Table'; import { trouveTarification } from 'containers/CommandeEdit/com...
client/js/view_controllers/LoginViewController.js
nebrius/schat
/* The MIT License (MIT) Copyright (c) 2014 Bryan Hughes <bryan@theoreticalideations.com> (http://theoreticalideations.com) 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, in...
src/svg-icons/image/blur-off.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
src/pages/activities/StarBeach.js
ayltai/fishing-club
// @flow 'use strict'; import React from 'react'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { Card, CardMedia, CardTitle, CardText } from 'material-ui/Card'; import LazyLoad from 'react-lazy-load'; import ReactGA from 'react-ga'; import './StarBeach.css'; import StarBeachImage from '../../imag...
src/pageComponents/morph/morphResults.js
nai888/langua
import React from 'react' import classNames from 'classnames' import PropTypes from 'prop-types' import Results from '../../components/results' import sharedStyles from '../../components/results/sharedResults.module.sass' const MorphResults = ({ styles, outputFormat, results, showDiff, showChanges }) => { ...
test/unit/testHelper.js
SupasitC/Pricetrolley
import jq from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import createHistory from 'react-router/lib/browserHistory'; import { Provider...
src/@ui/Icon/icons/Search.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { Svg } from '../../Svg'; import makeIcon from './makeIcon'; const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => ( <Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}> <Svg.Path d="M20.77 18.56l-3.42-3.42c....
writeExampleWebpack2/src/js/components/Todo.js
fengnovo/webpack-react
import React from 'react' const Todo = ({onclick,isCompleted,text}) =>{ //来自props的,参数要加花括号 return <li onClick={onclick} style={{textDecoration: isCompleted ? "line-through": "none"}}> <i className={ isCompleted ? "icon-star":"icon-star-empty"}></i> {text} </li> } export def...
app/components/Header/index.js
fascinating2000/productFrontend
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import messages from './messages'; class Header extends React.Component { // eslint-disable-line react/prefer-stateless-function...
src/svg-icons/social/sentiment-very-satisfied.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVerySatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1...
examples/src/components/Multiselect.js
pedroseac/react-select
import React from 'react'; import Select from 'react-select'; const FLAVOURS = [ { label: 'Chocolate', value: 'chocolate' }, { label: 'Vanilla', value: 'vanilla' }, { label: 'Strawberry', value: 'strawberry' }, { label: 'Caramel', value: 'caramel' }, { label: 'Cookies and Cream', value: 'cookiescream' }, { label...
examples/fiber/debugger/src/App.js
sekiyaeiji/react
import React, { Component } from 'react'; import Draggable from 'react-draggable'; import ReactNoop from 'react-noop-renderer'; import ReactFiberInstrumentation from 'react-noop-renderer/lib/ReactFiberInstrumentation'; import Editor from './Editor'; import Fibers from './Fibers'; import describeFibers from './describeF...
docs/src/app/components/pages/components/Tabs/ExampleControlled.js
barakmitz/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; export default class TabsExampleControlled extends React.Component { constructor(props) { super(props); this.state =...
src/widgets/ContentBanner/index.js
mydearxym/mastani
/* * * ContentBanner * */ import React from 'react' import T from 'prop-types' import { contains, pluck, isNil, isEmpty } from 'ramda' import TimeAgo from 'timeago-react' import { buildLog } from '@/utils/logger' import DotDivider from '@/widgets/DotDivider' import { BannerContainer, BannerContentWrapper, ...
lib/MultiSelection/OptionsListWrapper.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import Popper from '../Popper'; const OptionsListWrapper = React.forwardRef(({ useLegacy, children, controlRef, isOpen, renderToOverlay, modifiers, ...props }, ref) => { if (useLegacy) { return <div data-open={props.isOpen} {...props} h...
src/components/home.js
seanagibson/reserver-space
import React from 'react'; import {Link} from 'react-router'; import Navbar from './navbar'; import LoginContainer from '../containers/loginContainer'; const Home = ({children, userAuthenticated, submitLogout}) => { return ( <div> <Navbar userAuthenticated={userAuthenticated} submitLogout={submitLogout}/> ...
plot/src/components/HomePage.js
tangr1/dd
import React from 'react'; const HomePage = () => { return ( <div> Hello world! </div> ); }; export default HomePage;
src/containers/ExampleForm/index.js
allyrippley/7ds
import React from 'react' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' import * as actions from '../../actions/heroActions' const Contact = (props) => { window.console.log('MainContactProps: ', props) return ( <div style={{width: '100%', paddingTop: 55}}> <div> <f...
blueocean-material-icons/src/js/components/svg-icons/image/movie-filter.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageMovieFilter = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 3h-3l-2-3h-2l2 3h-3l-2-3H8l2 3H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4zm-6.75 11.25L10 18l-1.25-2.75L6 14l2.75-1.25L10 10l1.25 2.75L14 14l-2.7...
app/javascript/mastodon/features/ui/components/column_subheading.js
unarist/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
src/svg-icons/navigation/cancel.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationCancel = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7...
react-components/src/library/components/search/material-links.js
concord-consortium/rigse
import React from 'react' export class SMaterialLinks extends React.Component { render () { return ( <div> {this.props.links.map((link, idx) => link.type === 'dropdown' ? <SMaterialDropdownLink key={idx} link={link} /> : <SMaterialLink key={idx} link={link} /> )} <...
src/entre.js
jerryshew/react-uikits
require("babel-polyfill"); import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import RootComponent from './RootComponent'; import dot from './page/demo.less' if (module.hot) { module.hot.accept() } ReactDOM.render(<RootComponent/>, document.getElementById('root'))
src/components/ModuleLoading.js
saas-plat/saas-plat-native
import React from 'react'; import nprogress from 'nprogress'; import { View, Text, StatusBar, TouchableOpacity, Platform } from 'react-native'; import { autobind } from 'core-decorators'; import Spinner from './Spinner'; import Bundle from '../core/Bundle'; import { connectStyle } from '../core/Theme'; import { transla...
src/index.js
grantpalin/bc-elects
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/containers/BVsecret.js
pjkarlik/ReactUI
import React from 'react'; const Panel = () => { const content = ( <span> <h2>What is this?</h2> <p> This is a living example of my work, code, music, video and other digital art. My ongoing digital experiment for ui development, digital and generative art, interface research. <...
src/components/CamVideoDashboard/index.js
happyboy171/Feeding-Fish-View-
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './style.css'; import history from '../../core/history'; import { Line, Circle } from 'rc-progress'; import ProgressBar from 'react-bootstrap'; import classNames from 'classnames'; import toDisplay ...
blueocean-material-icons/src/js/components/svg-icons/action/thumbs-up-down.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionThumbsUpDown = (props) => ( <SvgIcon {...props}> <path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1.38-.91l2.26-5.29c.07-.17.11-.36....
node_modules/react-router/es/StaticRouter.js
SuperUncleCat/ServerMonitoring
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/js/App.js
vincentleung1/PersonalPage
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import '../css/App.css'; import Home from './Home'; import About from './About'; import Contact from './Contact'; import CV from './CV'; class App extends Component { constructor (props) { super(props); } goHome = function() { ...
examples/huge-apps/routes/Course/components/Dashboard.js
ustccjw/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
src/layouts/CoreLayout/CoreLayout.js
prestonbernstein/react-redux-synthesizer
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) Co...
frontend/src/Artist/Editor/ArtistEditorFooter.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import MoveArtistModal from 'Artist/MoveArtist/MoveArtistModal'; import MetadataProfileSelectInputConnector from 'Components/Form/MetadataProfileSelectInputConnector'; import QualityProfileSelectInputConnector from 'Components/Form/QualityPro...
client/src/pages/SignUp.js
ccwukong/lfcommerce-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Form, FormGroup, Input, Modal, ModalHeader, ModalBody, Button, } from 'reactstrap'; import { injectIntl, FormattedMessage } from 'react-intl'; class SignUp extends Component { constructor(props) { super(props)...
app/main.js
kensworth/Filebrew
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.js'; ReactDOM.render(<App />, document.getElementById('root'));
src/user/User.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Route } from 'react-router-dom'; import { Helmet } from 'react-helmet'; import getImage from '../helpers/getImage'; import { getIsAuthenticated, getAuthenticatedUser, getUser } from '../reducers'; import { o...
fields/components/DateInput.js
giovanniRodighiero/cms
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import { findDOMNode } from 'react-dom'; import Popout from '../../admin/client/App/shared/Popout'; import { FormInput } from '../../admin/client/App/elemental'; let lastId = 0; module.exports = React.createClass({ disp...
springboot/GReact/src/main/resources/static/app/components/layout/components/LayoutSwitcher.js
ezsimple/java
import React from 'react'; import {bindActionCreators} from 'redux' import {connect} from 'react-redux'; import classnames from 'classnames' import {config} from '../../../config/config'; import * as LayoutActions from '../LayoutActions' class LayoutSwitcher extends React.Component { constructor(props){ ...
lib/ParallaxView.js
BigPun86/react-native-parallax-cached-image-view
'use strict'; import React, { Component } from 'react'; import ReactNative from 'react-native'; import Image from 'react-native-image-progress'; const { Dimensions, StyleSheet, View, ScrollView, Animated, ActivityIndicator } = ReactNative; const BlurView = require('react-native-blur').Blu...
src/Parser/Rogue/Assassination/Modules/Legendaries/DuskwalkersFootpads.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import SpellUsable from 'Parser/Core/Modules/SpellUsable'; import RESOURCE_TYPES from 'common/RESOURCE_TYPES'; import S...
src/Interpolate.js
adampickeral/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
examples/with-react-router/src/index.js
suitejs/suite
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter } from 'react-router-dom'; import App from './App'; import 'rsuite/es/styles/index.less'; ReactDOM.render( <HashRouter> <App /> </HashRouter>, document.getElementById('root') );
src/utils/children.js
chrismcv/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export default { create(fragments) { let newFragments = {}; let validChildrenCount = 0; let firstKey; //Only create non-empty key fragments for (let key in fragments) { const currentChild = fragments[key...
app/components/Library.js
adjohnston/react-pattern-library
import React from 'react' import Nav from '../components/Nav' import childRoutes from '../utils/urls' const Library = ({children}) => { return ( <main className="rpl-container" role="main"> <Nav className="rpl-container__span rpl-container__span--auto" childRoutes={childRoutes} ...
src/components/article/Youtube.js
garfieldduck/twreporter-react
'use strict' import BlockAlignmentWrapper from './BlockAlignmentWrapper' import React from 'react' // eslint-disable-next-line import YoutubePlayer from 'react-youtube' import cx from 'classnames' import commonStyles from './Common.scss' import styles from './Youtube.scss' // lodash import get from 'lodash/get' class...
src/App.js
EKlevrai/courantderacines
import React, { Component } from 'react'; import { BrowserRouter, Route } from 'react-router-dom'; import io from 'socket.io-client'; import Menu from './menu/Menu'; import Chart from './components/chart/Chart'; import Home from './components/home/Home'; import Map from './components/map/Map'; const socket = io('htt...
src/components/Loader/Loader.js
shaohuawang2015/goldbeans-admin
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import styles from './Loader.less' const Loader = ({ spinning }) => { return (<div className={classNames(styles.loader, { [styles.hidden]: !spinning })}> <div className={styles.warpper}> <div className={styles....
app/components/resources/randomResources.js
nypl-registry/browse
import React from 'react' // import Resource from '../../../models/resource.js' import RandomRecords from '../shared/randomRecords.js' const RandomResources = React.createClass({ render () { return <RandomRecords recordType='resource' records={this.props.resources} onFetch={this.props.onFetch} /> } }) export ...
src/components/active.js
casesandberg/reactcss
import React from 'react' export const active = (Component, Span = 'span') => { return class Active extends React.Component { state = { active: false } handleMouseDown = () => this.setState({ active: true }) handleMouseUp = () => this.setState({ active: false }) render = () => ( <Span onMouseD...
src/components/Header/Header.js
przeor/ReactC
import React from 'react' import { IndexLink, Link } from 'react-router' import classes from './Header.scss' let loginObj = { user: '', password: '' } const usernameOnChange = (e) => { loginObj.user = e.target.value } const passwordOnChange = (e) => { loginObj.password = e.target.value } co...
App/Platform/RefreshableListView.android.js
taskrabbit/ReactNativeSampleApp
import React from 'react'; import { ListView, RefreshControl, } from 'react-native'; import isPromise from 'is-promise'; function delay(time) { return new Promise((resolve) => setTimeout(resolve, time)); } class RefreshableListView extends React.Component { static propTypes = { loadData: React.PropType...
client/admin/viewLogs/ViewLogs.stories.js
subesokun/Rocket.Chat
import React from 'react'; import ViewLogs from './ViewLogs'; export default { title: 'admin/pages/ViewLogs', component: ViewLogs, decorators: [ (storyFn) => <div className='rc-old' style={{ display: 'flex', flexDirection: 'column', height: '100vh' }}> {storyFn()} </div>, ], }; export const _default = () ...
app/javascript/mastodon/features/list_adder/index.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListAdder, resetListAdder } from '...
containers/Main.js
sayakbiswas/Git-Blogger
import React from 'react'; import { HashRouter, Switch, Route } from 'react-router-dom'; import Home from './Home'; import LandingScreenContainer from './LandingScreenContainer'; import DashboardContainer from './DashboardContainer'; import SetupScreenContainer from './SetupScreenContainer'; class Main extends React.C...
example/src/screens/text.js
cereigido/react-native-ez-layouts
import React, { Component } from 'react'; import { MonospacedText, Row, Separator, SmallText, Subtitle, Text, Title, View } from '../../../src'; class TextScreen extends Component { static navigationOptions = { title: 'Texts', } render() { return ( <View padding scroll> ...
lib/components/MapPolygon.js
lelandrichardson/react-native-maps
import PropTypes from 'prop-types'; import React from 'react'; import { ColorPropType, ViewPropTypes, View } from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; import * as ProviderConstants from './ProviderConstants'; // if ViewPropTypes is ...
src/svg-icons/action/tab.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTab = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/> </SvgIcon> ); ActionTab = pure(ActionTab); ActionTab....
website/src/pages/components/Section.js
webdriverio/webdriverio
import React from 'react' import styles from './Section.module.css' export default function Section({ isDark, children }) { return ( <section className={[styles.section, ...(isDark ? [styles.darkSection, 'darkSection'] : [])].join(' ')}> <div className="container"> <div classNa...
src/views/components/task-item/task-item.js
connorbanderson/CoinREXX
import React, { Component } from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import Button from '../button'; import Icon from '../icon'; import './task-item.css'; export class TaskItem extends Component { constructor() { super(...arguments); this.state = {editing: fal...
app/components/shared/labelledFormComponent.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import FormInputHelp from './FormInputHelp'; import FormInputErrors from './FormInputErrors'; import FormInputLabel from './FormInputLabel'; export default function labelledFormComponent(FormComponent) { return class...
packages/@vega/layout/src/components/ToolContainer.js
VegaPublish/vega-studio
import React from 'react' import PropTypes from 'prop-types' import tools from 'all:part:@lyra/base/tool' import {RouteScope} from 'part:@vega/core/router' function ToolContainer(props) { if (!tools.length) { return ( <div> No tools fulfill the role <code>`tool:@lyra/base/tool`</code> </div> ...
pages/doc/publish-your-data.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' import attachI18n from '../../components/hoc/attach-i18n' import Page from '../../components/page' import Meta from '../../components/meta' import Content from '../../components/content' import Container from '../../components/container' import Link from '....
src/pages/projects/main.js
bhuvanmalik007/bhuvanmalik
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import Box from 'grommet/components/Box' import Anchor from 'grommet/components/Anchor' import Menu from 'grommet/components/Menu' import GunmetalHeading from '../../components/gunmetalheading' import texture from '../.....