path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/routes/UserMgmt/components/UserMgmtPanel.js
patzj/ims
import React from 'react'; import UserMgmtTable from '../containers/UserMgmtTable'; export const UserMgmtPanel = () => { return ( <div className="col-xs-10 col-xs-offset-1"> <h2 className="pull-left"><span className="glyphicon glyphicon glyphicon-user"></span>&nbsp;User Management</h2> ...
lib/DebuggerView.js
ghgofort/Bart
'use babel'; import React from 'react'; import ReactDOM from 'react-dom'; import EventEmitter from 'events'; const noop = function() {}; class StackView extends React.Component { render() { if (this.props.thread === 'spin') { return <span className='loading loading-spinner-tiny inl...
src/decorators/withViewport.js
wildcard/react-starter
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
client/app/components/Todos.js
pho3nixf1re/fullstack-workshop
import React from 'react' import store from '../store' import Loading from './Loading' const styles = { row: { display: 'flex' }, remove: { marginRight: 10 } } const Todos = ({ loading, todos }) => { if (loading) { return <Loading /> } return ( <div> {todos.map(({ id, description ...
packages/reactor-kitchensink/src/examples/Charts/3DColumn/NegativeValues/NegativeValues.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; export default class NegativeValues extends Component { store = Ext.create('Ext.data.Store', { fields: ['quarter', 'co...
src/entypo/EmojiHappy.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--EmojiHappy'; let EntypoEmojiHappy = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,0.4C4.698,0.4,0.4,4.698,0.4,10C0.4,15.302,4.698,19.6,10,19.6c5.301,0,9.6-4.298,9.6-9.601C...
demos/demo/src/components/Project/Input.js
bdjnk/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {props, signal, state} from 'cerebral/tags' import translations from '../../common/compute/translations' export default connect( { // autoFocus enterPressed: signal`projects.enterPressed`, escPressed: signal`projects.escPressed`, ...
packages/example/mobx-example/src/components/todoFooter.js
Raathigesh/wiretap
import React from 'react'; import PropTypes from 'prop-types'; import {observer} from 'mobx-react'; import {pluralize} from '../utils'; import { ALL_TODOS, ACTIVE_TODOS, COMPLETED_TODOS } from '../constants'; @observer export default class TodoFooter extends React.Component { render() { const todoStore = this.props...
JS Web/ReactJS/Event and Forms/src/index.js
mitaka00/SoftUni
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
modules/line-chart/index.js
rma-consulting/rc-d3
import React from 'react'; import ReactFauxDOM from 'react-faux-dom'; import { event as lastEvent, select, axisBottom, axisLeft, axisRight, line, timeFormat } from 'd3'; import { createUniqueID, reduce, calculateMargin, createValueGenerator, createDomainRangeGenerator, defaultColors, defaul...
src/components/Logo/Logo.js
askd/animakit
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Logo.css'; const Logo = (props) => <div className={ `${styles.logo} ${props.className}` } /> ; Logo.propTypes = { className: PropTypes.string, }; export default Logo;
admin/src/components/Portal.js
kwangkim/keystone
import React from 'react'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, render: () => null, componentDidMount() { let p = document.createElement('div'); document.body.appendChild(p); this.portalElement = p; this.componentDidUpdate(); }, componentWillUnmount() { docume...
app/index.js
beverku/wtimer-react
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; // import { browserHistory } from 'react-router'; // import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import HelloWorld from './HelloWorld'; // const history = syncHistoryW...
src/svg-icons/image/brightness-4.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness4 = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13...
app/javascript/mastodon/components/load_gap.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap exte...
client/modules/Theme/components/List/List.js
b3j0f/lechangement
import './List.css'; import React, { Component } from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import Theme from '../Item/Item'; class List extends Component { constructor(props) { super(props); this.state = { allthemes:...
node_modules/nuka-carousel/src/decorators.js
HasanSa/hackathon
'use strict'; import React from 'react'; const DefaultDecorators = [ { component: React.createClass({ render() { return ( <button style={this.getButtonStyles(this.props.currentSlide === 0 && !this.props.wrapAround)} onClick={this.handleClick}>PREV</button> ...
app/components/Waiting/index.js
zillding/hangouts
/** * * Waiting * */ import React from 'react'; import Icon from 'material-ui/svg-icons/social/people'; import { Flex } from 'react-flex'; import styles from './styles.css'; const iconStyle = { height: 46, width: 46, }; const Waiting = () => ( <Flex column justifyContent="center" className={style...
app/components/Header/index.js
dmalik/livepoll
import React from 'react'; import MegaphoneIcon from '../MegaphoneIcon'; import styles from './styles.css'; function Header(props) { return ( <header> <div className={styles.headerSection}> <div className={styles.iconBox}><MegaphoneIcon size="3em" /> </div> <div className={styles.arrowBox}...
src/components/ModelWrapper/ModelWrapper.js
Zoomdata/nhtsa-dashboard-2.2
import styles from './ModelWrapper.css'; import React, { Component } from 'react'; import ModelHeader from '../ModelHeader/ModelHeader'; import ModelBarChart from '../ModelBarChart/ModelBarChart'; export default class ModelWrapper extends Component { render() { return <div className={styles.root}> ...
frontend/src/components/shared/preloader/index.js
Kilte/cindy
import React from 'react'; import './index.css'; const Preloader = () => <div className="preloader"></div>; export default Preloader;
client/src/components/Icon/Icon.js
nealtodd/wagtail
import PropTypes from 'prop-types'; import React from 'react'; /** * Abstracts away the actual icon implementation (font icons, SVG icons, CSS sprite). * Provide a `title` as an accessible label intended for screen readers. */ const Icon = ({ name, className, title }) => ( <span> <span className={`icon icon-$...
react/Paragraph/Paragraph.js
seekinternational/seek-asia-style-guide
import styles from './Paragraph.less'; import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export default function Paragraph({ children, className, ...restProps }) { return ( <p {...restProps} className={classnames(styles.root, className)}> {children} </p...
src/scenes/UserConsole/components/Header/Header.js
adeira/connector-frontend
import React from 'react'; import styles from './Header.css'; import MainMenu from './../MainMenu/MainMenu'; import Authenticator from 'services/Authenticator'; import {browserHistory} from 'react-router' class Header extends React.Component { handleLogout() { Authenticator.deauthenticateUser(); browserHistory.p...
src/applications/static-pages/widget-creators/resources-and-support-search.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; import ReactDOM from 'react-dom'; export default (store, widgetType) => { const root = document.querySelector(`[data-widget-type="${widgetType}"]`); if (root) { import(/* webpackChunkName: "resources-and-support-search" */ 'applications/resources-and-support/comp...
src/components/Video.js
RicardoG2016/WRFD-project-site
import React, { Component } from 'react'; import '../App.css'; class Video extends Component { componentDidMount(){ window.scrollTo(0, 0); } render() { return ( <div className="video"> <h3 className="Header">Stop the Burning</h3> <iframe className="yt-video" src="https://www.youtube.c...
src/docs/examples/RegistrationForm/ExampleRegistrationForm.js
tlraridon/ps-react-train-tlr
import React from 'react'; import RegistrationForm from 'ps-react-train-tlr/RegistrationForm'; export default class ExampleRegistrationForm extends React.Component { onSubmit = (user) => { console.log(user); } render() { return <RegistrationForm onSubmit={this.onSubmit} confirmationMessage...
src/views/BlocksGrid.js
abachman/my-new-tab
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Responsive, WidthProvider } from 'react-grid-layout' import Actions from 'actions' import Link from './Blocks/Link' import Weather from './Blocks/Weather' import Clock from './Blocks/Clock' import Bookmarks fro...
b_stateMachine/complex_templates/jsx/wizard/summary.js
Muzietto/react-playground
'use strict'; import React from 'react'; // NB props.handlers[0] is meant for the wizard restart link export default function summary(props) { return ( <div className="summary"> <div className={_class_name(1)} onClick={props.handlers && props.handlers[1]}> ...
source/shared/components/about/index.js
nRewik/react-railgun
import React from 'react' import { connect } from 'react-redux' const About = () => { return ( <div> react-railgun is an elegant universal react-redux starter kit. <div>Greatly inspired by {' '} <a href='https://github.com/cloverfield-tools/universal-react-boilerplate'> cloverfield-...
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
pradel/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; const optionsStyle = { maxWidth: 255, marginRight: 'auto', }; export default class DatePickerExampleToggle extends React.Component { constructor(pr...
src/components/Index.js
vihanchaudhry/cake-showdown
import React from 'react' import Showdown from '../containers/Showdown' import Rankings from '../containers/Rankings' const Index = () => ( <div> <Showdown /> <Rankings /> </div> ) export default Index
resources/js/ChatRoom.js
milon/node-chat-room
import React from 'react'; import ReactDOM from 'react-dom'; import MessageBox from './MessageBox'; var socket = io.connect(); var ChatRoom = ReactDOM.render(<MessageBox socket={socket} />, document.querySelector('#msg-body')); socket.on('message', function(data){ console.log(data); ChatRoom.newMessage(dat...
src/layouts/CoreLayout.js
react-li/React-Redux-material-ui-Starter-Kit
import React from 'react'; import 'styles/core.scss'; export default class CoreLayout extends React.Component { static propTypes = { children : React.PropTypes.element } render () { return ( <div className='page-container'> <div className='view-container'> {this.props.children} ...
src/widths_mixins.js
djforth/morse-react-mixins
// Libraries // import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import includes from 'lodash/includes'; let attrs = [ 'padding-left', 'padding-right', 'margin-left', 'margin-right', 'border-left-width', 'border-right-width', 'width', ]; let elements = []; let elmSize...
packages/wix-style-react/src/Layout/docs/examples/Form.js
wix/wix-style-react
import React from 'react'; import { style, classes } from '../styles.st.css'; import { Layout, Cell, Card, FormField, Input, InputArea, Checkbox, Text, Button, RadioGroup, } from 'wix-style-react'; export default () => ( <div className={style(classes.exampleContainer)}> <Layout> {/* B...
examples/todomvc/index.js
iansinnott/redux
import 'babel/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
pootle/static/js/admin/components/User/UserEdit.js
Finntack/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import UserForm from './UserFo...
clients/packages/admin-client/src/mobilizations/components/list/items/fund-raising.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' const FundRaising = ({ total_fund_raising: totalFundRaising }) => ( <div className='fund-raising px3 col col-2'> <FormattedMessage id='mobilizations.components--list.items.fund-raising.currency' ...
app/containers/TodoListScene.js
uiheros/react-native-redux-todo-list
import NavigationBar from 'react-native-navbar'; import React, { Component } from 'react'; import { View, ScrollView, } from 'react-native'; import { connect } from 'react-redux'; import { themeable } from '../themes'; import { toggleTodo, setVisibilityFilter } from '../actions'; import Todos from '../components/T...
app/components/routes/Collection/index.js
robcalcroft/cybelle
import React from 'react'; import Container from 'common/Container'; export default class Home extends React.Component { constructor() { super(); } renderBoxContainer() { let numberOfRows = 10; let key = 0; let boxContainers = []; let selectedBoxes = [1, 34, 65, 67,...
googlemaps/index.ios.js
DaveWJ/LearningReact
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class googlemaps extends Component { render() { return ( <View style={styles.containe...
src/scenes/App/scenes/MapOverview/scenes/Leaderboards/components/Leaderboard/components/LeaderboardAdminDropdown/index.js
jsza/tempus-website
import React from 'react' import P from 'prop-types' import IP from 'react-immutable-proptypes' import {CLASSINDEX_TO_NAME} from 'root/constants/TFClasses' import {withRouter} from 'react-router' import {Route} from 'react-router-dom' import {DropdownButton, MenuItem} from 'react-bootstrap' import {LinkContainer} fr...
src/Main/PlayerBreakdown.js
enragednuke/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPECS from 'common/SPECS'; class PlayerBreakdown extends React.Component { static propTypes = { report: PropTypes.object.isRequired, playersById: PropTypes.object.isRequired, }; calculatePlayerBreakdown(stats, playersById) { cons...
components/FeaturedProject.js
adamkrogh/adamkrogh.com
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import styled from 'styled-components'; const StyledProject = styled(Link)` display: block; margin: 45px 0; img { margin-bottom: 20px; } @media (max-width: 767px) { .hover-...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
christophemilliere/angular2
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
src/index.js
galsen0/hair-dv-front
// Set up your application entry point here... import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import 'semantic-ui-css/semantic.css'; import './styles.scss'; render( <Router routes={routes} h...
src/pages/AgendaScreen.js
LinDing/two-life
import React, { Component } from 'react'; import { StyleSheet, Image, TouchableOpacity, Dimensions, Navigator, AsyncStorage, DeviceEventEmitter, TouchableWithoutFeedback } from 'react-native'; import {Agenda} from 'react-native-calendars'; import * as Animatable from 'react-native-animatable'; import { ...
src/components/withViewport.js
DarkLicornor/personalWebsite
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; // eslint-disabl...
fujion-react-parent/fujion-react-example/src/main/webjar/pomodoro.es6.js
fujion/fujion-framework
import React, { Component } from 'react'; class ImageComponent extends Component { render() { return React.createElement('img', { src : 'webjars/fujion-react-example/assets/img/pomodoro.png', alt : 'Pomodoro' }); } } class CounterComponent extends Component { formatTime() { return format(this.props.mi...
src/pages/services.js
nvasquez97/CataVasken
import React from 'react'; class Services extends React.Component { render(){ return( <div> <div className="panelH container"> <img src="/imgs/GirlDuringToilette.jpg" style={{width:'100%'}} className="img-responsive" title="Conservation" alt="Holmes Panel Conservation"/...
examples/with-i18next/components/Post.js
giacomorebonato/next.js
import React from 'react' import { translate } from 'react-i18next' class Post extends React.Component { constructor (props) { super(props) this.t = props.t } render () { return ( <div> {this.t('namespace1:greatMorning')} </div> ) } } export default translate(['namespace1'...
src/components/SSORedirect.js
folio-org/stripes-core
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter, Redirect } from 'react-router'; import queryString from 'query-string'; class SSORedirect extends Component { getParams() { const search = this.props.location.search; if (!search) return undefined; return q...
public/scripts/views/Banner.js
shantanuraj/dash
import React from 'react'; class Banner extends React.Component { render() { return ( <div style={styles.banner}> <p>Welcome to <img src="/images/dash.png" width={40} height={40}/></p> </div> ); } } var styles = { banner: { display: 'flex', backgroundColor: '#065150', color: 'white', textAlig...
containers/ResultsScreen.js
fridl8/cold-bacon-client
import React, { Component } from 'react'; import { Text, Image, View, FlatList } from 'react-native'; import styles from './styles/ResultsScreenStyle'; import { StackNagivator } from 'react-navigation'; import GeneralButton from '../components/GeneralButton'; import buttonStyles from '../components/styles/ButtonStyle';...
map/src/containers/Map/MapFooter.js
teikei/teikei
import React from 'react' import i18n from '../../i18n' const MapFooter = () => ( <footer className="map-footer"> <ul className="map-footer__navigation"> <li> <a href="http://ernte-teilen.org/" target="_blank" rel="noopener noreferrer" > ernte-teilen....
src/client/pages/NotFound.js
jukkah/comicstor
import React from 'react' import Route from 'react-router-dom/Route' const Status = ({ code, children }) => ( <Route render={({ staticContext }) => { if (staticContext) { staticContext.status = code } return children }}/> ) const NotFound = () => ( <Status code={404}> <div> <h1>Sorry...
src/components/Gallery.js
ZachGawlik/print-to-resist
import PropTypes from 'prop-types'; import React from 'react'; import FilterBar from './FilterBar'; import ListingTile from './ListingTile'; import '../styles/Gallery.css'; class Gallery extends React.Component { componentDidMount() { if (!this.props.listings.length) { this.props.getListings(); } } ...
examples/master-detail/app.js
meraki/react-router
import React from 'react' import { render, findDOMNode } from 'react-dom' import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router' import ContactStore from './ContactStore' import './app.css' const App = React.createClass({ getInitialState() { return { contacts: ContactStore.getContac...
src/components/input/toggle/index.js
KleeGroup/focus-components
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Translation from '../../../behaviours/translation'; import Material from '../../../behaviours/material'; import filterProps from '../../../utils/filter-html-attributes'; const propTypes = { label:...
app/javascript/mastodon/components/permalink.js
rutan/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
packages/material/src/inputs/Checkbox.native.js
wq/wq.app
import React from 'react'; import { useField } from 'formik'; import { Checkbox as PaperCheckbox, useTheme } from 'react-native-paper'; import { Text, View } from 'react-native'; import PropTypes from 'prop-types'; export default function Checkbox({ name, label }) { const theme = useTheme(), [, meta, helpe...
blueocean-material-icons/src/js/components/svg-icons/image/wb-incandescent.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageWbIncandescent = (props) => ( <SvgIcon {...props}> <path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.69 6 6 6s6-2.69 6-6c0-2.22-1.21-4...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
nguyenhongson03/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { Pure...
fay-admin/src/app/bundle/components/Bundle.js
love-fay/fay-sso
/** * Created by feichongzheng on 17/9/12. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Bundle extends Component { static propTypes = { load: PropTypes.any, children: PropTypes.any, }; state = { // short for "module" but that's a keyword...
app/Success/index.js
mskcc-clinbx/python-jwt-react-login-flow
import React from 'react'; import { getToken } from '../authentication'; import Modal from '../Modal'; import './Success.css'; import { sendLoginInformation } from '../Login'; class Success extends React.Component { state = { status: '', authModal: false, secondsElapsed: 0, email: '', password: '...
src/app/components/team/SlackConfig/index.js
meedan/check-web
import React from 'react'; import Relay from 'react-relay/classic'; import { createFragmentContainer, graphql } from 'react-relay/compat'; import PropTypes from 'prop-types'; import { FormattedMessage, injectIntl } from 'react-intl'; import Box from '@material-ui/core/Box'; import Card from '@material-ui/core/Card'; im...
webpack/components/pf3Table/components/TableSelectionHeaderCell.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; const TableSelectionHeaderCell = ({ id, label, checked, onChange, ...props }) => ( <Table.SelectionHeading aria-label={label}> <Table.Checkbox id={i...
app/src/pages/Deneme/deneme.js
fikrimuhal/animated-potato
import React from 'react' export default React.createClass({ render() { return ( <svg> <circle cx={50} cy={50} r={10} fill="red"/> </svg> ) } })
src/containers/DevTools/DevTools.js
fforres/coworks
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="Q"> <LogMonitor /> </Dock...
investninja-web-ui-admin/src/components/Widget/index.js
InvestNinja/InvestNinja-web-ui
import React, { Component } from 'react'; import { Panel } from 'react-bootstrap'; import Link from '../Link'; class StatWidget extends Component{ // eslint-disable-line static propTypes = { style: React.PropTypes.string, count: React.PropTypes.string, headerText: React.PropTypes.string, icon: React....
src/svg-icons/notification/system-update.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSystemUpdate = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/> </Sv...
components/Deck/DeckLandingPage.js
slidewiki/slidewiki-platform
import React from 'react'; import {Card} from 'semantic-ui-react';; import { NavLink } from 'fluxible-router'; import { Grid, Divider, Button, Header, Image, Icon, Item, Label, Menu, Segment, Container } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import { connectToStores } from 'fluxible-addons-reac...
src/pages/Login/Login.js
Minishlink/DailyScrum
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { StyleSheet, View, Button, Linking, Platform, Dimensions } from 'react-native'; import { isEmpty } from 'lodash'; import SplashScreen from 'react-native-splash-screen'; import SafariView from 'react-native-safari-view'; im...
src/features/ViewMenuPopups/Shape.js
erhathaway/cellular_automata
import React from 'react'; import styled from 'react-emotion'; import { inject, observer } from 'mobx-react'; import { Container, Title, DimensionLineItem } from './Views'; const DimensionContainer = styled('div')` display: flex; width: 80%; justify-content: center; margin-bottom: 10px; `; export default inj...
docs/src/app/components/pages/components/Snackbar/Page.js
IsenrichO/mui-with-arrows
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import SnackbarReadmeText from './README'; import SnackbarExampleSimple from './...
src/encoded/static/components/viz/AreaChart.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import memoize from 'memoize-one'; import url from 'url'; import * as d3 from 'd3'; import ReactTooltip from 'react-tooltip'; import DropdownItem from 'react-bootstrap/esm/DropdownItem'; import DropdownButton from ...
src/docs/examples/TextInputStyledComponents/ExampleError.js
ThomasBem/ps-react-thomasbem
import React from 'react'; import TextInput from 'ps-react/TextInputStyledComponents'; /** Required TextBox with error */ export default class ExampleOptional extends React.Component { render() { return ( <TextInput htmlId="example-optional" label="First Name" name="firstname" ...
src/component/view-cover/index.js
Cadburylion/personal-portfolio
import React from 'react' import User from '../user/index.js' import {connect} from 'react-redux' import {Route} from 'react-router-dom' import {withRouter} from 'react-router' import {NavLink} from 'react-router-dom' import FontAwesome from 'react-fontawesome' import * as route from '../../action/route.js' imp...
packages/theme-patternfly-org/components/propsTable/propsTable.js
patternfly/patternfly-org
import React from 'react'; import { Badge } from '@patternfly/react-core'; import { Table, TableHeader, TableBody, cellWidth } from '@patternfly/react-table'; import { AutoLinkHeader } from '../autoLinkHeader/autoLinkHeader'; import { PropTypeWithLinks } from './propTypeWithLinks'; import { css } from '@pattern...
utils/tester.js
seeden/react-provide-props
import TestUtils from 'react-addons-test-utils'; import React from 'react'; const jsdom = require('jsdom'); function renderComponent(react, props) { global.document = jsdom.jsdom('<!DOCTYPE html><html><body></body></html>'); global.window = document.defaultView; global.navigator = {userAgent: 'node.js'}; con...
client/src/header/DemoButton.js
ziel5122/autograde
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; const linkStyle = { textDecoration: 'none', }; const style = { color: 'whitesmoke', fontSize: '16px', lineHeight: '16px', padding: '12px', }; const DemoButton = ({ ...
src/js/components/icons/base/FormCalendar.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/NewsHeader.js
jamesburton/newsappreactnative
import React from 'react'; import {Text, View} from 'react-native'; var NewsHeader = () => <Text style={{color:'#fff', fontSize: 18}}>Example News App</Text>; module.exports = NewsHeader;
src/client/routes.js
lassecapel/este-isomorphic-app
import React from 'react'; import App from './app/app.react'; import SearchPageRoute from './routes/search-page-route.react'; import Todos from './pages/todos.react'; import NotFound from './pages/notfound.react'; import {DefaultRoute, NotFoundRoute, Route} from 'react-router'; export default ( <Route handler={App}...
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import IconButton from '../../../components/icon_button'; import { changeComposeSensitivity } from '../../../actions/compose'; import Motion from '../../ui/util/optional_motion'; im...
app/components/ui/UserProfile.js
feat7/OurGroup
'use strict'; import React, { Component } from 'react'; import { StyleSheet, View, Text, Alert, Button } from 'react-native'; import { Actions } from 'react-native-router-flux' const FBSDK = require('react-native-fbsdk'); const { GraphRequest, GraphRequestManager, } = FBSDK; class UserProfile extends C...
src/svg-icons/image/grid-on.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGridOn = (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-6...
src/app/components/player-artwork.js
pashist/soundcloud-like-player
import React from 'react'; import PlayerArtworkFollow from './player-artwork-follow'; export default class PlayerArtwork extends React.Component { render() { let size = window.window.devicePixelRatio > 1 ? '500x500' : '200x200'; let imgUrl = this.getImageUrl(size); return ( <di...
examples/real-world/routes.js
dieface/redux
import React from 'react' import { Route } from 'react-router' import App from './containers/App' import UserPage from './containers/UserPage' import RepoPage from './containers/RepoPage' export default ( <Route path="/" component={App}> <Route path="/:login/:name" component={RepoPage} /> <Route p...
src/index.js
kaifn/kaifn-page
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
docs/src/app/components/pages/components/Menu/Page.js
verdan/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 menuReadmeText from './README'; import MenuExampleSimple from './ExampleS...
src/components/auth/signout.js
ercekal/client-side-auth-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions' class Signout extends Component { componentWillMount(){ this.props.signoutUser(); } render() { return <div>See you soon!</div>; } } export default connect(null, actions)(Signout);...
packages/base-shell/src/providers/SimpleValues/with.js
TarikHuber/react-most-wanted
import Context from './Context' import React from 'react' const withContainer = (Component) => { const ChildComponent = (props) => { return ( <Context.Consumer> {(values) => { return <Component {...values} {...props} /> }} </Context.Consumer> ) } return ChildCompone...
admin/client/components/Navigation/PrimaryNavigation.js
Tangcuyu/keystone
import React from 'react'; import { Container } from 'elemental'; var PrimaryNavItem = React.createClass({ displayName: 'PrimaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropTypes.string.isRequired, label: React.PropTypes.string, title:...
src/ctl/ui/src/components/HelpTooltip.js
m3db/m3db
import React from 'react'; import {Popover, Icon} from 'antd'; import {getHelpText} from '../utils/helpText'; export default function HelpTooltip({helpTextKey, title, ...rest}) { return ( <Popover title={title} content={<div style={{maxWidth: 200}}>{getHelpText(helpTextKey)}</div>} trigger="cli...
test/tools/renderPage.js
nerdchacha/react-hoverintent
import { mount } from 'enzyme' import React from 'react' function renderPage (component) { return mount( <div> {component} </div> ) } module.exports = renderPage
src/index.js
aryalprakash/omgyoutube
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import Main from './Components/Main'; import App from './Components/App'; import Home from './Components/Home'; import Watch from './Components/Watch'; import Movie f...
containers/OrderList.js
goominc/goommerce-seller-native
'use strict'; import React from 'react'; import { ListView, StyleSheet, Text, View } from 'react-native'; import { connect } from 'react-redux'; import { orderActions } from 'goommerce-redux'; import _ from 'lodash'; import EmptyView from '../components/EmptyView'; import OrderCell from '../components/OrderCell'; imp...
server/sonar-web/src/main/js/components/controls/Favorite.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...