path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/Journal.js
billyvg/pokemon-journal
import React, { Component } from 'react'; import { inject, observer, } from 'mobx-react'; import autobind from 'autobind-decorator'; import PokemonList from './PokemonList'; import styles from './Journal.css'; @inject('authStore') @autobind @observer export default class Journal extends Component { render() { ...
src/containers/InfoModalContainer/index.js
MatthewKosloski/lugar
import React from 'react'; import { connect } from 'react-redux'; import InfoModal from '../../components/InfoModal'; const InfoModalContainer = (props) => <InfoModal {...props} />; const mapStateToProps = (state) => { const { photo } = state; const { user, urls } = photo.data; const username = user.name; const ...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
flocks/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/containers/DevTools/DevTools.js
gregsabo/beanstalk-movie-critic
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="ctrl-H" changePositionKey="ctrl-Q" defaultIsVisible={fal...
src/svg-icons/navigation/expand-more.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationExpandMore = (props) => ( <SvgIcon {...props}> <path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/> </SvgIcon> ); NavigationExpandMore = pure(NavigationExpandMore); NavigationExpandMore.displayN...
app/index.js
gammapy/web-experiments
import React from 'react'; import { render } from 'react-dom'; import App from './App'; import 'leaflet/dist/leaflet.css!css'; import './style/reset.css!css'; import './style/app.css!css'; import './style/react-select.min.css!css'; // Create a node to attach the virtual react dom // tree to the body const node = docume...
examples/sections/src/components/Button/Button.js
styleguidist/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import './Button.css'; /** * The only true button. */ export default function Button({ color, size, children }) { const styles = { color, fontSize: Button.sizes[size], }; return ( <button className="button" style={styles}> {children} </bu...
src/svg-icons/editor/bubble-chart.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBubbleChart = (props) => ( <SvgIcon {...props}> <circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/> </SvgIcon> ); EditorBubbleChart = pure(EditorBub...
example/components/react/Counter.js
subuta/redux-virtual-dom
import React from 'react' import { connect, inject } from 'example/store.js' import { createSelector } from 'reselect'; import { bindActionCreators } from 'redux' import { getCount } from 'example/reducers/counter.js'; const dummyActions = { dummyAction: () => { return { type: 'dummy' } } }; const ...
src/MainMenu.js
scapp281/cliff-effects
import React from 'react'; import { // Button, Container, Image, Menu, } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; import { BetaWarning } from './BetaWarning'; import logo from './images/logo.svg'; const MainMenu = function ( props ) { return( <Container> <Menu inverted se...
src/components/google_map.js
sean1rose/WeatherApp
// uses react-google-maps import React from 'react'; import { GoogleMapLoader, GoogleMap } from 'react-google-maps'; export default (props) => { return ( <GoogleMapLoader containerElement={ <div style={{height: '100%'}} /> } googleMapElement={ <GoogleMap defaultZoom={9} defaultCenter={{lat...
src/svg-icons/image/burst-mode.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBurstMode = (props) => ( <SvgIcon {...props}> <path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/...
imports/ui/home/components/home_carousel.js
dououFullstack/atomic
import React from 'react'; import Carousel from 'nuka-carousel'; import Loading from '/imports/ui/loading'; class Pics extends React.Component { render() { return ( this.props.ready ? <Carousel wrapAround autoplay autoplayInterval={5000}> {this.props.carousels.map( (v,k) => ...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
gale320/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
examples/custom-picker/src/index.js
casesandberg/react-color
import React from 'react' import ReactDOM from 'react-dom' import App from './App' ReactDOM.render( <App />, document.getElementById('root'), )
frontend/src/components/select-editor/sysadmin-user-status-editor.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; import SelectEditor from './select-editor'; const propTypes = { isTextMode: PropTypes.bool.isRequired, isEditIconShow: PropTypes.bool.isRequired, statusOptions: PropTypes.array.isRequired, currentSta...
src/ProgressiveImage.js
MiguelCrespo/react-progressive-loading
import React from 'react'; import SimpleImage from './SimpleImage'; import SolidImage from './SolidImage'; import BlurImage from './BlurImage'; import BlurBackground from './BlurBackground'; import './styles.css'; export { SimpleImage, BlurImage, BlurBackground }; export default { SimpleImage, BlurImage, ...
apps/mk-app-delivery-order-list/action.js
ziaochina/mk-demo
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import { fromJS } from 'immutable' import config from './config' import moment from 'moment' import utils from 'mk-utils' import extend from './extend' class action { constructor(option) { this.metaAction = option.me...
src/index.js
VuongVu/React_Training
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; import './index.css'; render(<App />, document.getElementById('app'));
listen.js
JonArnfred/react_component_editor
import { transformFile } from 'babel-core'; // we want to compile specific js files runtime import fs from 'fs'; import ReactDOMServer from 'react-dom/server'; import React from 'react'; // there should be a way to inject this const directory = 'component/'; // filename is the name given to the file // and event is ...
src/components/ScrollToTop/index.js
zsxsoft/blog.zsxsoft.com
import React from 'react' import { animateToTop } from '../../utils/scroll' import { withRouter } from 'next/router' import PropTypes from 'prop-types' class ScrollToTop extends React.PureComponent { static propTypes = { router: PropTypes.object } componentDidUpdate (prevProps) { if (this.props.router.a...
imports/ui/views/change-password.js
dklisiaris/grabber
import React from 'react'; import { Link } from 'react-router'; import { browserHistory } from 'react-router'; import { Meteor } from 'meteor/meteor'; import { renderErrorsFor } from '../../modules/utils'; export class ChangePassword extends React.Component { constructor(props) { super(props); this.state = {...
src/svg-icons/hardware/phonelink-off.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelinkOff = (props) => ( <SvgIcon {...props}> <path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6...
src/js/components/video/Overlay.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Box from '../Box'; import Heading from '../Heading'; import VideoShare from './Share'; import VideoPlayButton from './PlayButton'; import CSSClassnames from '../../utils/CSSClassnames'; const CLASS_R...
src/js/routes.js
Chandransh/calculate-cost-redux
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; import App from './components/App'; import BillingApp from './containers/BillingApp/BillingApp'; import NotFoundView from './views/NotFoundView'; export default ( <Route path="/" component={App}> <IndexRoute component={Billin...
frontend/src/components/SearchInput.js
purocean/yii2-template
import React from 'react'; import { Input, Button} from 'antd'; import classNames from 'classnames'; const InputGroup = Input.Group; class Component extends React.Component { constructor(props){ super(props); this.state = { value: this.props.value, focus: false, }; } handleInputChange(e...
example_app/src/routes/register/index.js
blueberryapps/radium-bootstrap-grid
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Register from './Registe...
src/components/dropdowns/DropdownHeader.js
ProAI/react-essentials
import React from 'react'; import PropTypes from 'prop-types'; import BaseView from '../../utils/rnw-compat/BaseView'; const propTypes = { children: PropTypes.node.isRequired, }; const DropdownHeader = React.forwardRef((props, ref) => ( <BaseView {...props} ref={ref} accessibilityRole="heading" ar...
react-src/catalog/components/voyages/CatalogVoyageTitle.js
gabzon/experiensa
import React from 'react'; export default class CatalogVoyageTitle extends React.Component { constructor(){ super() } render() { return ( <div className="content"> <div className="header catalog-title">{this.props.title}</div> </div> ); } ...
src/svg-icons/action/bug-report.js
verdan/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...
src/index.js
pjkarlik/Hacker
require('console-polyfill'); import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Router, useRouterHistory } from 'react-router'; import { createHistory } from 'history'; const history = useRouterHistory(createHistory)({ basename: window.baseName || '/' }); /** Entry Point...
demo/celsius_react/src/index.js
gristlabs/grainjs
// This comes from https://reactjs.org/docs/lifting-state-up.html, and from the // linked CodePen https://codepen.io/gaearon/pen/WZpxpz?editors=0010. import React from 'react'; import ReactDOM from 'react-dom'; const scaleNames = { c: 'Celsius', f: 'Fahrenheit' }; function toCelsius(fahrenheit) { return (fahre...
packages/elza-react/src/utils/withErrors.js
octree-gva/elzajs
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import {List} from 'immutable'; import {getForm} from 'elza-core'; export default function(Component) { return class withErrors extends React.Component { static displayName = 'withErrors(' + Component + ')'; static propTyp...
src/pages/reading.js
pascalwhoop/pascalwhoop.github.io
import React from 'react' import { graphql } from 'gatsby' import Layout from '../components/layout' import Helmet from 'react-helmet' import WordLimit from 'react-word-limit' const Reading = ({ data }) => { const books = data.goodreadsShelf.reviews.sort( (a, b) => a.dateAdded > b.dateAdded ) return ( <L...
src/components/Tag/Tag.js
VumeroInstitute/Vumero-Talent-Matrix
/** * Created by wangdi on 6/10/17. */ import React from 'react'; import PropTypes from 'prop-types'; import './tag.css'; export default class Tag extends React.Component{ static propTypes = { title: PropTypes.string, deleteCallback: PropTypes.func }; render(){ return ( ...
docs/src/sections/TabsSection.js
Lucifier129/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function TabsSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anch...
photos/static/js/components/photo-panel.js
dpetzold/django-react-djangocon2015
import React from 'react' import { Thumbnail, ButtonGroup, Button, ButtonToolbar, ListGroupItem, Col, Row } from 'react-bootstrap' import { LAYOUT_THUMBNAILS, LAYOUT_LIST, TYPE_ALL, TYPE_COLOR, TYPE_BW, ControlBar } from './control-bar' import {isFavorite} from '../utils' import Actions from '../actions' const Ph...
stories/Anchor/SimpleLinkPluginEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; import createInlineToolbarPlugin from 'draft-js-inline-toolbar-plugin'; import createLinkPlugin from 'draft-js-anchor-plugin'; import { ItalicButton, BoldButton, UnderlineButton } from 'draft-js-button...
app/javascript/mastodon/components/edited_timestamp/index.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, injectIntl } from 'react-intl'; import Icon from 'mastodon/components/icon'; import DropdownMenu from './containers/dropdown_menu_container'; import { connect } from 'react-redux'; import { openModal } from 'mastodon/actions/modal...
entry_types/scrolled/package/src/frontend/Panorama/FullscreenIndicator.js
tf/pageflow
import React from 'react'; import classNames from 'classnames'; import ArrowLeftIcon from '../icons/arrowLeft.svg'; import styles from './FullscreenIndicator.module.css'; export function FullscreenIndicator({visible, onClick}) { const size = 50; return ( <div className={classNames(styles.indicator, {[styles...
docs/app/Examples/elements/Step/Groups/index.js
jcarbo/stardust
import React from 'react' import { Icon, Message } from 'stardust' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Groups = () => ( <ExampleSection title='Groups'> <ComponentExample title='S...
lib/index.js
ppot/hyper
import {webFrame} from 'electron'; import forceUpdate from 'react-deep-force-update'; import {Provider} from 'react-redux'; import React from 'react'; import {render} from 'react-dom'; import rpc from './rpc'; import init from './actions/index'; import * as config from './utils/config'; import * as plugins from './uti...
es/components/toolbar/toolbar.js
cvdlab/react-planner
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
src/index.js
mianuddin/GPA-Goal-Graph
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, useRouterHistory } from 'react-router'; import { createHashHistory } from 'history'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { fromJS } from 'immutable'; import { combineReducers } from 'redux-immut...
client/src/javascript/components/general/WindowTitle.js
jfurrow/flood
import {injectIntl} from 'react-intl'; import React from 'react'; import connectStores from '../../util/connectStores'; import {compute, getTranslationString} from '../../util/size'; import EventTypes from '../../constants/EventTypes'; import TransferDataStore from '../../stores/TransferDataStore'; const WindowTitle ...
app/index.js
jpsierens/webpack-react-redux
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { configureStore, history } from './store/configureStore'; import Root from './containers/Root'; const store = configureStore(); render( <AppContainer> <Root store={store} history={histor...
src/server.js
Sawtaytoes/Ghadyani-Framework-Webpack-React-Redux
import React from 'react' import { renderToString } from 'react-dom/server' import { StaticRouter as Router } from 'react-router-dom' import { Provider } from 'react-redux' import { compose, createStore } from 'redux' import 'utils/polyfills' import Pages from 'components/pages' import renderSite from 'renderers/rend...
src/components/Cover/index.js
mother/oio
import PropTypes from 'prop-types' import React from 'react' const Cover = ({ src, size = 'cover', position, children, className }) => { const style = { float: 'left', position: 'relative', width: '100%', height: '100%', backgroundImage: `url(${src})`, backgroundSi...
src/app/components/source/UserInfo.js
meedan/check-web
import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { browserHistory } from 'react-router'; import IconButton from '@material-ui/core/IconButton'; import IconEdit from '@material-ui/icons/Edit'; import AccountChips from './AccountChips'; import Can from '../Can'; import ParsedTe...
src/components/Iconfont/Iconfont.js
china2008qyj/DVA-DEMO
import React from 'react' import PropTypes from 'prop-types' import './iconfont.less' const Iconfont = ({ type, colorful }) => { if (colorful) { return (<span dangerouslySetInnerHTML={{ __html: `<svg class="colorful-icon" aria-hidden="true"><use xlink:href="#${type.startsWith('#') ? type.replace(/#...
src/app/modules/Network/components/dialogs/AddProxyDialog.js
toxzilla/app
import React from 'react'; import {connect} from 'cerebral-view-react'; import {Content} from './../../../../common/UserInterface'; import {Dialog} from './../../../Dialog'; import ProxyForm from './../forms/ProxyForm'; export default connect({ dialogName: 'dialog.name' }, class AddProxyDialog extends React.Compon...
src/components/topic/wizard/TopicSettingsForm.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { reduxForm, Field } from 'redux-form'; import { Row, Col } from 'react-flexbox-grid/lib'; import AppButton from '../../common/AppButton'; import withIntlForm from '../../common/hocs/IntlForm'; const localMessages = { name: { id: 'topic.form.detai...
components/Property.js
stucco/ui
import React from 'react' class Property extends React.Component { render () { return ( <div> <dt>{this.props.propertyName}</dt> <dd>{this.props.propertyValue}</dd> </div> ) } } Property.propTypes = { propertyName: React.PropTypes.string, propertyValue: React.PropTypes.any ...
www/src/components/survey/RenderValidationField.js
cygwin255/SimpleSurvey
import React from 'react' const RenderValidationField = ({ input, meta: { touched, error, warning }, span, textarea, ...props }) => { let errorProps = {} let externalError if (touched && error) { errorProps.className = props.className + ' is-invalid' if (!input.value) { errorProps.placeh...
node_modules/react-router/modules/IndexRedirect.js
FrancoCotter/ReactWeatherApp
import React from 'react' import warning from './routerWarning' import invariant from 'invariant' import Redirect from './Redirect' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * An <IndexRedirect> is used to redirect from an indexRoute. */ const IndexRedirect = React.createCla...
photoView.js
dcy0701/ReactNativeServer
'use strict' import { StyleSheet, Text, View, TabBarIOS, NavigatorIOS, ScrollView, Dimensions, TouchableOpacity, Image, AsyncStorage, AlertIOS } from 'react-native'; import React from 'react'; import {API} from './config'; var Icon = require('react-native-vector-icons/Font...
app/app.js
azothForgotten/Newznab-Frontend
// ES6 Component // Import React and ReactDOM import React from 'react'; import ReactDOM from 'react-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import inject...
src/components/javascript/plain/JavascriptPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './JavascriptPlain.svg' /** JavascriptPlain */ function JavascriptPlain({ width, height, className }) { return ( <SVGDeviconInline className={'JavascriptPlain' + ' '...
src/elements/parserElements.js
EtherTyper/react-lang
import React from 'react' import { generateAST } from '..'; const Parser = (Super = Object) => class BasicElements extends Super { static parse(element, props, children) { let babylon = props.babylon; if (babylon) { let [ code ] = children; let ast = babylon.parse(code.valu...
lesson-6/todos/src/components/Header.js
msd-code-academy/lessons
import React from 'react' import { Link } from 'react-router-dom' import NewNoteModal from './NewNoteModal' import logo from '../logo.png' import '../styles/Header.css' class Header extends React.Component { getNoteCountMessage(noteCount){ const isPlural = noteCount > 1; return `(containing ${noteCount} id...
src/components/ButtonList/Button.js
kshvmdn/seen-it
import React from 'react' import classNames from 'classnames' import toSentenceCase from 'utils/sentenceCase' import styles from './styles.module.css' export default class Button extends React.Component { constructor(props) { super(props); } handleClick() { return this.props.onClick(this.props.name) ...
src/admin/components/Programi.js
zeljkoX/e-learning
import React from 'react'; import {State, History} from 'react-router'; import { Menu, Mixins, Styles } from 'material-ui'; import Content from '../../components/layout/Content'; import ContentHeader from '../../components/layout/ContentHeader'; import Tabela from '../../components/Tabela'; class Programi extends Reac...
src/svg-icons/communication/stay-current-landscape.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
admin/client/Signin/index.js
brianjd/keystone
/** * The signin page, it renders a page with a username and password input form. * * This is decoupled from the main app (in the "App/" folder) because we inject * lots of data into the other screens (like the lists that exist) that we don't * want to have injected here, so this is a completely separate route and...
src/components/BaseRouteComponent.js
kooinam/awry-utilities
import React, { Component } from 'react'; import { Route, Switch } from 'react-router-dom'; import { matchRouteParams } from './BreadcrumbsNavigator'; import { connect } from 'react-redux'; import type { Connector } from 'react-redux'; class BaseRouteComponent extends Component { render() { const { match, matche...
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/suggestion.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { localize } from 'i18n-calypso'; import { omit } from 'lodash'; import classNames from 'classnames'; /** * Internal dependencies */ import FormLabel from 'components/forms/form-label'; import FormR...
src/svg-icons/hardware/sim-card.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSimCard = (props) => ( <SvgIcon {...props}> <path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0...
src/components/Footer/Footer.js
medevelopment/updatemeadmin
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
views/blocks/Likes/LikesContainer.js
FairTex/team5
import React from 'react'; import sender from './../Sender/Sender'; import CommentsPoster from './../comments/CommentsPoster.js'; import Likes from './Likes'; const LikesWithSending = sender(Likes); export default class LikesContainer extends React.Component { constructor(props) { super(props); t...
src/TagCloud/TagCloud.js
resmio/mantecao
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import Tag from '../Tag' const ItemStyled = styled.div` display: inline-block; margin: 0.4em 0.4em 0.4em 0; ` const TagCloud = ({ names, onClickAction }) => <div> {names.map((name, i) => <ItemStyled ke...
src/components/StartAuction/TimeDuration.js
chochinlu/ens-bid-dapp
import React from 'react'; import classNames from 'classnames'; import {momentFromNow} from '../../lib/util'; import './TimeDuration.css'; const TimeBlock = (props) => { const classes = classNames( 'TimeDuration-block', props.step); const title = props.step === 'reveal' ? 'Reveal Bids On' : 'Auction Final...
lib/components/inner-dock.js
conveyal/scenario-editor
// @flow import React from 'react' export default class InnerDock extends React.PureComponent { _el: HTMLElement state: { height?: number } componentDidMount () { window.addEventListener('resize', this._setHeight) } componentWillUnmount () { window.removeEventListener('resize', this._setHeigh...
components/User/UserProfile/UserLTIs.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {NavLink, navigateAction} from 'fluxible-router'; import updateUserlti from '../../../actions/user/userprofile/updateUserlti'; import deleteUserlti from '../../../actions/user/userprofile/deleteUserlti'; import leaveUserlti from '../../../actions/use...
src/docs/pages/list.js
gabrielcsapo/psychic-ui
import React from 'react'; import Example from '../components/example'; class List extends React.Component { render() { const { brand } = this.props; const height = window.innerHeight; return ( <section style={{ 'minHeight': height, position: "relative"}}> <div style={{padding: "50px"}}> ...
src/renderer/components/attributions.js
sirbrillig/gitnews-menubar
import React from 'react'; import BellIcon from '../components/bell-icon'; import MuteIcon from '../components/mute-icon'; export default function Attributions({ openUrl }) { const openLink = event => { event.preventDefault(); openUrl(event.target.href); }; return ( <div className="attributions"> <h3>Attri...
index.ios.js
monicasoni/react-native-calculator
// It's property of Monica Soni import React, { Component } from 'react'; import { AppRegistry,Button, StyleSheet,TouchableHighlight, Text, View } from 'react-native'; export default class Calculator extends Component { constructor(props) { super(props) this.state = { show: '' }; this.v1 = 0; ...
node_modules/react-router/es/IndexRoute.js
AdamB59/Klient
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
app/components/auth/Register.js
JoaoCnh/picto-pc
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Auth.css'; import AuthError from './AuthError'; import Button from '../common/Button'; import AuthAPI from '../../api/auth'; import strUtils from '../../utils/str'; export default class Register extends Com...
src/svg-icons/device/battery-30.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery30 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V15h10V5.33z"/><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
src/svg-icons/content/redo.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
stories/ReadOnly/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React from 'react'; import { Editor } from '../../src'; const Basic = () => (<div className="rdw-storybook-root"> <h3>ReadOnly editor</h3> <Editor readOnly toolbarClassName="rdw-storybook--toolbar" wrapperClassName="rdw-storybook-wrapper" editorClassName="rdw-story...
Realization/frontend/czechidm-core/src/content/role/RoleIdentities.js
bcvsolutions/CzechIdMng
import React from 'react'; import Helmet from 'react-helmet'; import _ from 'lodash'; // import * as Basic from '../../components/basic'; import { IdentityManager } from '../../redux'; import SearchParameters from '../../domain/SearchParameters'; import IdentityTableComponent, { IdentityTable } from '../identity/Identi...
client/app/components/auth/Login.js
joelseq/SourceGrade
import React from 'react'; import PropTypes from 'prop-types'; import { Field, reduxForm } from 'redux-form'; import { Button, Grid, Row, Col, Alert, } from 'react-bootstrap'; import { userLogin } from '../../modules/auth'; import { history } from '../../store'; import UsernameInput from './UsernameInput'; ...
examples/huge-apps/app.js
maksad/react-router
import React from 'react'; import { Router } from 'react-router'; import stubbedCourses from './stubs/COURSES'; var rootRoute = { component: 'div', childRoutes: [{ path: '/', component: require('./components/App'), childRoutes: [ require('./routes/Calendar'), require('./routes/Course'), ...
src/containers/NotFoundPage/index.js
sebacorrea33/todoinstitutos
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Oops! Error 404!</h1> <p>Esa página no existe!</p> </div> ); }
admin/src/component/Icon.js
zentrope/webl
// // Copyright (c) 2017 Keith Irwin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // // This program is distri...
step6-serviceapi/node_modules/react-router/modules/RouteContext.js
jintoppy/react-training
import warning from './routerWarning' import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitio...
client/src/components/Draftail/Tooltip/Tooltip.js
nealtodd/wagtail
import PropTypes from 'prop-types'; import React from 'react'; const TOP = 'top'; const LEFT = 'left'; const TOP_LEFT = 'top-left'; const getTooltipStyles = (target, direction) => { const top = window.pageYOffset + target.top; const left = window.pageXOffset + target.left; switch (direction) { case TOP: r...
client/src/components/dayBooking/slot.js
joejknowles/Open-Up
import React from 'react'; import '../../styles/DayBooking.css'; import { connect } from 'react-redux'; import { createSlotSelector } from '../../reducers'; import BookButton from './bookButton'; import format from 'date-fns/format'; const formatTime = (time) => ( format(time, 'HH:mm') ); export const Slot = (props...
code/workspaces/web-app/src/components/common/buttons/SecondaryActionButton.js
NERC-CEH/datalab
import React from 'react'; import Button from '@material-ui/core/Button'; const SecondaryActionButton = ({ children, ...rest }) => ( <Button {...rest} variant="outlined" color="secondary" > {children} </Button> ); export default SecondaryActionButton;
js/Header.js
aurimas-darguzis/react-intro
import React from 'react' import { connect } from 'react-redux' import { setSearchTerm } from './actionCreators' import { Link } from 'react-router' class Header extends React.Component { constructor (props) { super(props) this.handleSearchTermChange = this.handleSearchTermChange.bind(this) } handleSear...
src/svg-icons/Cancel.js
AndriusBil/material-ui
// @flow import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; /** * @ignore - internal component. */ let Cancel = 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....
app/javascript/mastodon/components/setting_text.js
ambition-vietnam/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
app/components/Navbar.js
migueloop/1streaction
import React from 'react'; import {Link} from 'react-router'; import NavbarStore from '../stores/NavbarStore'; import NavbarActions from '../actions/NavbarActions'; import ShapesListActions from '../actions/ShapesListActions'; class Navbar extends React.Component { constructor(props) { super(props); this.st...
client/src/components/Footer.js
commandzpdx/habit-calendar
import React from 'react'; export default function Footer() { return ( <footer> <p>@habitcalendar2017</p> </footer> ); }
docs/app/Examples/modules/Progress/States/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const ProgressStatesExamples = () => ( <ExampleSection title='States'> <Message info>...
src/svg-icons/communication/contacts.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContacts = (props) => ( <SvgIcon {...props}> <path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s...
src/containers/searchOverlay.js
joakikr/SAAS
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { clearSearch } from '../actions/index'; import { Jumbotron, Button, Glyphicon, Modal, ModalHeader, ModalBody, Row, Col } from 'react-bootstrap'; import SearchBar from '../containers/sear...
src/components/fieldset-component.js
davidkpiano/redux-simple-form
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import getModel from '../utils/get-model'; import omit from '../utils/omit'; import resolveModel from '../utils/resolve-model'; const propTypes = { model: PropTypes.string.isRequired, component: Pro...
app/javascript/mastodon/components/modal_root.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import 'wicg-inert'; import { createBrowserHistory } from 'history'; import { multiply } from 'color-blend'; export default class ModalRoot extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { ...