path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/js/custom/insert-modal/default-custom-insert-modal-header.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, InsertModalHeader } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; ...
examples/sidebar/app.js
clloyd/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' import data from './data' require('./app.css') const history = useBasename(createHistory)({ basename: '/sidebar' }) class Category extends React.Component { render() { const categ...
src/svg-icons/hardware/gamepad.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareGamepad = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); HardwareGamepad = pure(Hardw...
stories/examples/InputGroupProps.js
reactstrap/reactstrap
import React from 'react'; import { InputGroup, InputGroupText } from 'reactstrap'; import Props from './Props'; const Example = () => ( <Props components={[InputGroup, InputGroupText]} /> ); export default Example;
client/src/components/Profile/deleteProfileModal.js
wolnewitz/raptor-ads
import React from 'react'; import { Button, Header, Modal } from 'semantic-ui-react'; const DeleteProfileModal = ({onDeleteClick}) => <Modal trigger={ <Button className="ui red right floated button" type="button" > Delete Profile </Button> } > <Header icon="trash...
src/app.js
eujc21/sc-hackathon-pi-pong
import React from 'react' import {Router, Route, IndexRoute, browserHistory} from 'react-router' import Layout from 'layout' const App = (props) => { return ( <Router history={browserHistory}> <Route path="/" component={Layout}></Route> </Router> ) } export default App
src/ModalHeader.js
leozdgao/react-bootstrap
import React from 'react'; import classnames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classnames(this.props.className, this.props.modalClassName)} > { this.props.closeButton && <button ...
src/components/CheckboxList.js
angeloocana/angeloocana
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Checkbox from './Checkbox'; import { FormattedMessage } from 'react-intl'; import { pipe, not, any, contains } from 'ramda'; import { InvisibleSpan } from './Invisible'; const Ul = styled.ul` padding: 0; j...
app/containers/Registration/style.js
ArtemDervoed/DiplomWork
import React from 'react'; import styled from 'styled-components'; import {Tabs, Tab} from 'material-ui/Tabs'; export const Section = styled.div` width: 900px; margin: 50px auto; background-color: rgba(0,0,0,0.05); border-radius: 5px; padding:25px; padding-left:60px; padding-right:60px; box-shadow: 5p...
src/components/Forms/Login.js
txwkx/book-room
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import axios from 'axios'; import FormInput from './FormInput'; import Success from './Success'; class Login extends Component { state = { success: false } handleLogin = (e) => { ...
src/svg-icons/image/gradient.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGradient = (props) => ( <SvgIcon {...props}> <path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2z...
app/components/CubicMeter/index.js
balintsoos/app.rezsi.io
import React from 'react'; const CubicMeter = () => ( <span>m<sup>3</sup></span> ); export default CubicMeter;
src/basic/Swipe/SwipeoutBtn.js
chaitanya0bhagvan/NativeBase
import React, { Component } from 'react'; import { Text, TouchableHighlight, View } from 'react-native'; import NativeButton from './NativeButton'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; class SwipeoutBtn extends Component { sta...
docs/src/app/components/pages/components/Card/ExampleWithoutAvatar.js
tan-jerene/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleWithoutAvatar = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableB...
src/common/Shape.js
senthilporunan/react-jrate
import React from 'react' import RatingUtils from '../../lib/common/RatingUtils.js' export default class Shape extends React.Component { constructor(props) { super(props); this.handleMouseMove = this.handleMouseMove.bind(this); this.handleMouseClick = this.handleMouseClick.bind(this); this.handleMouseLeave ...
node_modules/react-router/es6/Link.js
Karthik9321/ReduxSimpleStarter
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 = {...
blueocean-material-icons/src/js/components/svg-icons/image/looks-two.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageLooksTwo = (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-2zm-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 2v2z"/> </SvgIcon> ); ImageLook...
client/components/about/About.js
andela-tisrael/checkpoint-document-management
import React from 'react'; class AboutPage extends React.Component { render() { return ( <div className="about-page"> <h1>About Document Management</h1> <p>React front end rendering of about page</p> </div> ); } } export default AboutPage;
src/index.js
rawad-alawar/stow
import React from 'react' import {render} from 'react-dom' import {createStore} from 'redux' import {Provider} from 'react-redux' import '../public/styles/main.css' import reducer from './reducer' import App from './components/App' import {store, loadUserToStore, loadListingsToStore, loadFeedbackToStore, loadUsersToSt...
admin/src/components/SecondaryNavigation.js
Freakland/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; import { Container } from 'elemental'; var SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { className: React.PropTypes.string, children: React.PropTypes.node.isRequired, href: ...
src/pages/NotFound.js
zeachco/rockplusinc.com
import React from 'react'; import PropTypes from 'prop-types'; import {Link} from 'react-router'; import Sidebar from '../components/Sidebar'; const NotFound = props => ( <div> <Sidebar /> <div id="home_content"> <big>Ooops! "{props.params.splat}" does not exist</big> <p>Maybe you want to go bac...
js/components/footer/iconFooter.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Footer, FooterTab, Text, Body, Left, Right, Icon } from 'native-base'; import { Actions } from 'react-native-router-flux'...
src/components/HeatMapController.js
TorinoMeteo/tm-realtime-map
import React from 'react' import PropTypes from 'prop-types' import Switch from 'react-switch' class HeatMapController extends React.Component { static propTypes = { changeHeatMapStatus: PropTypes.func.isRequired, status: PropTypes.shape({ active: PropTypes.bool }), view: PropTypes.string.isReq...
src/containers/projectlistcontainer.js
kristian76/geezer
/** * ProjectListContainer * */ import React from 'react' import ReactDOM from 'react-dom' import { connect } from 'react-redux' import { Link, Route } from 'react-router-dom' import ProjectList from './../components/projectlist' class ProjectListContainer extends React.Component { constructor(props) { super(p...
src/imports/ui/builder/components/product/Product.js
hwillson/meteor-recommendation-builder
import React from 'react'; import s from 'underscore.string'; import RemoveButton from './RemoveButton'; import ProductRemovedOverlay from './ProductRemovedOverlay'; import ProductDescription from './ProductDescription'; import QuantityStepper from './QuantityStepper'; import ProductVariationSelect from './ProductVari...
src/js/components/icons/base/Next.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...
src/App.js
aryalprakash/aryalprakash.github.io
import React, { Component } from 'react'; import {Router, Route, hashHistory} from 'react-router' import Portfolio from './components/Portfolio'; // import Infinia from './components/Infinia'; // import Infinia2 from './components/Infinia2'; // import Infinia3 from './components/Infinia3'; // import Infinia4 from './co...
step-capstone/src/components/TripForms/TripSettingPopover.js
googleinterns/step98-2020
import React from 'react'; import { Backdrop, Button, makeStyles, Modal, Dialog } from '@material-ui/core'; import TripSettingFormPopover from './TripSettingFormPopover'; import AddIcon from '@material-ui/icons/Add'; import "../../styles/TripSetting.css" const useStyles = makeStyles((theme) => ({ backdrop: { zIn...
src/shared/components/CategoriesTree/index.js
rvboris/financebutler
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import classnames from 'classnames'; import { get } from 'lodash'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import TreeView from '../TreeView'; import style from './style.css';...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
src/svg-icons/editor/border-color.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderColor = (props) => ( <SvgIcon {...props}> <path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp...
frontend/src/components/threads-list/thread/subscription/options.js
1905410/Misago
import React from 'react'; import Button from 'misago/components/button'; // jshint ignore:line import { patch } from 'misago/reducers/threads'; // jshint ignore:line import ajax from 'misago/services/ajax'; // jshint ignore:line import modal from 'misago/services/modal'; // jshint ignore:line import snackbar from 'mis...
src/parser/warrior/fury/modules/talents/MeatCleaver.js
sMteX/WoWAnalyzer
import React from 'react'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { SELECTED_PLAYER } from 'parser/core/EventFilter'; import SPELLS from 'common/SPELLS'; const BUFFER_MS = 50; const RAGE_GAIN_WW...
techCurriculum/ui/solutions/5.3/src/components/Title.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/components/LoginEntry/index.js
unihackhq/skilled-acolyte-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'; import { Redirect } from 'react-router-dom'; import { Button, Content, Title } from 'bloomer'; import Loader from '../Loader'; import Page from '../Page'; import * as contstant from ...
src/components/ColorSwatchGrid.js
sparkdesignsystem/spark-design-system
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const SwatchGrid = ({ children, additionalClasses }) => { return ( <div className={classnames('docs-o-ColorSwatchGrid', additionalClasses)}> {children} </div> ); }; SwatchGrid.propTypes = { children...
tosort/2016/jspm/lib_react_102/components/app/index.js
Offirmo/web-tech-experiments
import React from 'react'; import { connect } from 'react-redux' import Menu from '../menu/index' import Journey from '../journey/index' import Fab from '../fab/index' import {actions} from '../../models/journey' //////////////////////////////////// let App = ({ onFabClick }) => ( <div> <Menu /> <Journey /> ...
internals/templates/containers/HomePage/index.js
KyleAWang/react-boilerplate
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/js/components/chart/Graph.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 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 { padding, pointSize } from './utils...
src/views/layout.js
mrjoseph/react-redux-todo-app
import React from 'react'; import { Link } from 'react-router' if (process.env.BROWSER) require("./style.css"); class Nav extends React.Component { render(){ return ( <ul className="nav"> <li><Link to="/">Home</Link></li> <li><Link to="todo">Todo app</Link></li> <li><Link to="contact">Contact</Link...
src/components/common/svg-icons/action/view-list.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList = pure(ActionViewList); Actio...
client/components/Input/InputWrapper.js
jkettmann/universal-react-relay-starter-kit
import React from 'react' import PropTypes from 'prop-types' import { compose, withProps } from 'recompose' import styled from 'styled-components' import FloatingLabel from './FloatingLabel' import BorderBottom from './BorderBottom' import ErrorMessage from './ErrorMessage' const Wrapper = styled.div` position: rel...
spa/pages/register.js
chadwilcomb/health-trackr
import React from 'react'; import app from 'ampersand-app' import ampersandMixin from 'ampersand-react-mixin'; import MessagePage from './message'; export default React.createClass({ mixins: [ampersandMixin], displayName: 'RegisterUserPage', getInitialState () { return { username: '', ...
src/avatar.js
leobeltran/reactStarter
import React from 'react' export default React.createClass({ render (){ return( <div className='control'> <p className='control is-flex' style={{justifyContent: 'center'}}>{this.props.email}</p> <img src={this.props.src}/> </div> ) } })
website/src/components/main.js
honnibal/spaCy
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import patternBlue from '../images/pattern_blue.jpg' import patternGreen from '../images/pattern_green.jpg' import patternPurple from '../images/pattern_purple.jpg' import patternNightly from '../images/pattern_nightly.jpg...
app/assets/javascripts/NewNodeWidget/Section/Contact.js
sozialhelden/wheelmap
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { createStructuredSelector } from 'reselect'; import Form from '../../common/Form'; import { CONTACT } from '../models/sections'; import { navigateToNextSection, changeNode } from '../actions'; import *...
src/components/NavBar.js
mimukit/react-youtube-app
import React from 'react'; const NavBar = (props) => { return ( <div className="nav-bar"> <h1 id="site-title">{props.siteTitle}</h1> </div> ); } export default NavBar;
src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/Path.js
me-box/databox-sdk
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import {camelise} from 'nodes/processors/uibuilder/utils'; import { actionCreators as canvasActions, selector } from '../..'; import { connect } from 'react-redux'; @connect(selector, (dispatch) => { return{ actions: bindActio...
docs/src/app/components/pages/components/Card/Page.js
pancho111203/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 cardReadmeText from './README'; import cardExampleWithAvatarCode from '!r...
client/src/auth/SignOut.js
flyrightsister/boxcharter
/* * Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved. * * This file is part of BoxCharter. * * BoxCharter is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, either version 3 of the License, ...
app/components/About.js
jpsierens/budget
// @flow import React from 'react'; const About = () => <div className="about"> <h2>Thanks for using this example.</h2> <p>Show some love!</p> <div className="github"> <iframe src="https://ghbtns.com/github-btn.html?user=jpsierens&repo=budget&type=star&size=large" ...
app/app.js
jdelatorreitrs/react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/components/common/svg-icons/maps/layers-clear.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLayersClear = (props) => ( <SvgIcon {...props}> <path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-...
src/components/add_findings.js
emertola/eform-findings-tool
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class AddFindings extends Component { constructor(props) { super(props); this.state = { type: null, content: '' } } handleSelectChange(e) { this.setState({ type: parseInt(e.target.value) }) } handleTex...
webpack/components/DualList/ListItem.js
theforeman/foreman_ansible
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; const ListItem = props => { const draggableBtn = ( <div className="pf-c-dual-list-selector__draggable"> <button className="pf-c-button pf-m-plain" type="button" aria-pressed="false" ...
actor-apps/app-web/src/app/components/DialogSection.react.js
damoguyan8844/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import PeerUtils from 'utils/PeerUtils'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'c...
example/index.ios.js
tielan/react-native-form
/** * 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 example extends Component { render() { return ( <View style={styles.container}>...
src/groups/notifs/GroupsListNotifs.js
dash-/netjumpio-tabs-web
/// // Dependencies /// import React, { Component } from 'react'; import PanelNotifications from '../../elements/PanelNotifications'; import GetListFailNotif from './GetListFailNotif'; import RemoveItemDoneNotif from './RemoveItemDoneNotif'; import RemoveItemFailNotif from './RemoveItemFailNotif'; import RestoreItem...
src/svg-icons/av/queue.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueue = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> </SvgIco...
packages/material-ui-icons/src/FormatQuote.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FormatQuote = props => <SvgIcon {...props}> <path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z" /> </SvgIcon>; FormatQuote = pure(FormatQuote); FormatQuote.muiName = 'SvgIcon'; export default FormatQuo...
src/components/app/Indicator.js
metasfresh/metasfresh-webui-frontend
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classnames from 'classnames'; import { connect } from 'react-redux'; /** * @file Indicator is a component that shows the save status to user in form of a save progress * line beneath the Header. * @module Indicator * @extends Comp...
frontend/src/Components/Form/OAuthInputConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { resetOAuth, startOAuth } from 'Store/Actions/oAuthActions'; import OAuthInput from './OAuthInput'; function createMapStateToProps() { return createS...
src/js/containers/GrommetCmsConfigProvider/grommetCmsConfig.js
grommet/grommet-cms-boilerplate
import React from 'react'; import GrommetLogo from 'grommet/components/icons/Grommet'; export default { frontend: { title: 'Grommet CMS', logo: <GrommetLogo invert size="small" />, favicon: '', contact: { copyright: '© 2017 Grommet Labs', email: 'hello@grommet.io', phone: '123-456-7...
ajax/libs/recompose/0.20.1/Recompose.js
pvnr0082t/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
src/svg-icons/content/text-format.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentTextFormat = (props) => ( <SvgIcon {...props}> <path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/> </SvgIcon> ); ContentTextFormat = pure(C...
src/components/ChatForm.js
zsiciarz/isthisachat
import React from 'react'; export class ChatForm extends React.Component { static propTypes = { onSend: React.PropTypes.func.isRequired } state = {text: ''} handleSubmit = (e) => { this.props.onSend(this.state.text); this.setState({text: ''}); let input = this.refs.mes...
src/svg-icons/maps/navigation.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsNavigation = (props) => ( <SvgIcon {...props}> <path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/> </SvgIcon> ); MapsNavigation = pure(MapsNavigation); MapsNavigation.displayName = 'MapsNavigation'; ...
app/node_modules/react-router/es6/IndexRedirect.js
lycha/masters-thesis
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
src/components/ControlSidebar/Tab.js
falmar/react-adm-lte
import React from 'react' import PropTypes from 'prop-types' import Tab from '../NavTab/Tab' import Link from './../../utils/Link' const ControlSidebarTab = ({active, iconClass, onClick}) => { return ( <Tab active={active}> <Link onClick={onClick}> <i className={iconClass} /> </Link> </T...
node_modules/react-native/Libraries/Image/ImageBackground.js
TrungSpy/React-Native-SampleProject
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
fields/types/url/UrlField.js
belafontestudio/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'URLField', openValue () { var href = this.props.value; if (!href) return; if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) { href = 'http://' + href; } window...
src/ButtonInput.js
egauci/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
allengaller/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import AvatarItem from...
js/components/Calendar/CalendarEvent.js
ecohealthalliance/GoodQuestion
import React from 'react'; import { TouchableOpacity, Text, View, } from 'react-native'; import Styles from '../../styles/Styles'; import Color from '../../styles/Color'; import ViewText from '../ViewText'; import Icon from 'react-native-vector-icons/FontAwesome'; const CalendarEvent = React.createClass({ pro...
highorder/index-2.js
lizichen0403/201704slider
import React from 'react'; import ReactDOM from 'react-dom'; let Post=(props)=>( <div> <p>{props.content}</p> <button onClick={props.refresh}>刷新</button> </div> ); function getData(url) { return fetch(url).then((res)=>res.json()); } //接收url地址作为参数 let loadAndRefresh=(url)=>{ return functi...
src/svg-icons/image/panorama-wide-angle.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaWideAngle = (props) => ( <SvgIcon {...props}> <path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12...
src/client/src/Components/EditableTable/EditableTableRow/index.js
severnsc/brewing-app
import React from 'react' import PropTypes from 'prop-types' import Button from '../../Button' import RoundButton from '../../RoundButton' import styled from 'styled-components' const TableRow = styled.tr` display:flex; flex-direction:row; position:relative; border-bottom:1px solid rgb(224, 224, 224); margin...
app/javascript/mastodon/components/animated_number.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedNumber } from 'react-intl'; import TransitionMotion from 'react-motion/lib/TransitionMotion'; import spring from 'react-motion/lib/spring'; import { reduceMotion } from 'mastodon/initial_state'; const obfuscatedCount = count => { if (co...
app/js/update/views/success.js
blockstack/blockstack-browser
import React from 'react' import { ShellScreen, Type } from '@blockstack/ui' import PropTypes from 'prop-types' class Success extends React.Component { componentDidMount() { setTimeout(() => this.props.finish(), 3500) } render() { const { finish, ...rest } = this.props const props = { title: ...
src/svg-icons/action/view-headline.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewHeadline = (props) => ( <SvgIcon {...props}> <path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/> </SvgIcon> ); ActionViewHeadline = pure(ActionViewHeadline); ActionViewHeadline.d...
docs/app/Examples/elements/Reveal/Types/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RevealTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Fade' description='An el...
src/components/Main.js
KENJU/LeanCanvasOnline
/** * Main.js */ import React from 'react'; import CanvasBox from '../containers/CanvasBox'; class Main extends React.Component { render() { const data = this.props.currentCanvasData; return ( <main> <div id="canvas"> <CanvasBox ...
fields/components/columns/ArrayColumn.js
lojack/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var ArrayColumn = React.createClass({ displayName: 'ArrayColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obje...
src/mixins/helpers.js
dptoot/react-slick
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTransitionEvents from 'react/lib/ReactTransitionEvents'; import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper'; import assign from 'object-assign'; var helpers = { initialize: function (props) { var slid...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/FormComponents/TextArea.js
sambaheerathan/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
react/learn/lesson3/main.js
fengnovo/diary
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; import Div1 from './Div1.jsx'; import Div2 from './Div2.jsx'; import Div3 from './Div3Props.jsx'; import LikeButton from './Div4State.jsx'; import Hello from './Div5DefaultProps.jsx'; import Div6StateAndProps from './Div6StateAnd...
src/svg-icons/action/picture-in-picture.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPictureInPicture = (props) => ( <SvgIcon {...props}> <path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/> </SvgIcon> ...
packages/material-ui-icons/src/FlashOn.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FlashOn = props => <SvgIcon {...props}> <path d="M7 2v11h3v9l7-12h-4l4-8z" /> </SvgIcon>; FlashOn = pure(FlashOn); FlashOn.muiName = 'SvgIcon'; export default FlashOn;
src/components/GaugeChart/GaugeChart.js
Zoomdata/nhtsa-dashboard
import React, { Component } from 'react'; import echarts from 'echarts/lib/echarts'; import 'echarts/lib/chart/gauge'; export default class GaugeChart extends Component { shouldComponentUpdate() { return false; } componentWillReceiveProps(nextProps) { if (!nextProps.data || !nextProps.max) { return...
examples/js/remote/remote-store-insert-row.js
echaouchna/react-bootstrap-tab
import React from 'react'; import RemoteInsertRow from './remote-insert-row'; function getProducts() { const products = []; const startId = products.length; for (let i = 0; i < 12; i++) { const id = startId + i; products.push({ id: id, name: 'Item name ' + id, price: Math.floor((Math.ra...
app/javascript/mastodon/containers/domain_container.js
gol-cha/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { blockDomain, unblockDomain } from '../actions/domain_blocks'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Domain from '../components/domain'; import { openModal } from '../actions/modal'; const messages = d...
app/components/Editor/EmptySpaceSlider.js
mswiszcz/pagebuilder
// @flow import React, { Component } from 'react'; import styles from './EmptySpaceSlider.css'; export default class EmptySpaceSlider extends Component { render() { return ( <div className={styles.component}> <div className={styles.slide}> No file selected <br/> </div> </div...
frontend/src/Settings/Profiles/Delay/DelayProfiles.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FieldSet from 'Components/FieldSet'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import Measure from 'Components/Measure'; import PageSectionContent from 'Components/Page/PageSectionContent'; import Scr...
imports/client/ui/pages/Admin/AdminTable/Roles.js
mordka/fl-events
import React from 'react'; import { parseData } from './helper' import RoleSelect from './../RoleSelect/index.js' const Roles = ({ user, changeUserRole }) => { const roles = parseData('role', user); const UserName = parseData('user', user); return ( <RoleSelect rolesData={roles} UserName={UserName} user={us...
src/scenes/App/scenes/MapOverview/components/MapOverviewNav/index.js
jsza/tempus-website
import React from 'react' import Immutable from 'immutable' import {withRouter} from 'react-router' import {NavLink} from 'react-router-dom' import ZoneIcon from 'root/components/ZoneIcon' import {prettyZoneName} from 'root/utils/TempusUtils' import './styles.styl' const zoneTypes = Immutable.List(['map', 'cours...
src/components/groups/GroupRolesListItem.js
mg4tv/mg4tv-web
import _ from 'lodash' import React from 'react' import {Link} from 'react-router-dom' import {compose, withHandlers, withProps} from 'recompose' import Username from '../users/Username' const enhance = compose( withProps('newRoleMember', 'updateNewRoleMember', ''), withHandlers( { onNewRoleMemberChang...
src/modules/AudioPlayerViewContainer.js
futurice/PelaryHemmo
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Player } from 'react-native-audio-toolkit'; const mapStateToProps = state => ({ isActive: state.getIn(['session', 'isActive']), }); @connect(mapStateToProps) export default class AudioPlayer...
src/components/IndividualBook/IndividualBook.js
mikeadossi/Bookstore
import './individualBook.css' import React from 'react' import { Link } from 'react-router-dom'; import axios from 'axios'; export default class IndividualBook extends React.Component{ constructor(props) { super(props) this.state = { title: props.title, author_name: props.author_name, list...
InvertibleScrollView.js
exponentjs/react-native-invertible-scroll-view
import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import React from 'react'; import cloneReferencedElement from 'react-clone-referenced-element'; import { ScrollView, StyleSheet, View, } from 'react-native'; import ScrollableMixin from 'react-native-scrollable-mixin'; type De...
code/web/src/components/ZyxMain.js
zyxcambridge/RecordExistence
require('normalize.css/normalize.css'); // require('styles/ZyxApp.scss'); require('styles/App.scss'); // 不使用 ES6 的转译器 var ReactRouter = require('react-router') var Router = ReactRouter.Router var Route = ReactRouter.Route var Link = ReactRouter.Link import React from 'react'; import ReactDOM from 'react-dom'; import ...