path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/compose/components/reply_indicator.js
h-izumi/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import emojify from '../../../...
src/components/Html.js
quyetvv/react-starter-kit
/** * 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 PropTypes from 'prop-...
src/interface/icons/Mana.js
yajinni/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" className="icon" {...props}> <path d="M44.584,43.126l-7.489-11.73v-4.722h0.425c1.753,0,3.335-1.432,3.335-3.29v-1.35 c0-1.857-1.582-3.328-3.335-3.328H26.736c-1.753,0-3.428,1.471-3.428,3.3...
js/components/Navigation.js
Couto/firstaidgit
import React from 'react'; import { DefaultRoute, Link, Route, RouteHandler } from 'react-router'; let Navigation = React.createClass({ render() { return ( <section className="row"> <ul className="main-navigation column-12"> <li className="main-navigation__it...
client/home/sign-up.js
pradel/octon
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; const StyledSignUp = styled.div` background: #fff; padding: 120px 0; text-align: center; `; const SignUp = ({ handleLogin }) => (<StyledSignUp> <div className="content"> <h3>Octon is absolutely fre...
app/component/Modal.js
vankai/hitokoto-pwa
import React from 'react'; import ReactDOM from 'react-dom'; const modalRoot = document.getElementById('modal-root'); const ANIMATION_DURING = 300; export class Modal extends React.Component { constructor(props) { super(props); this.el = document.createElement('div'); this.el.classList.add('modal__root...
mlflow/server/js/src/experiment-tracking/components/ExperimentRunsTableCompactView.js
mlflow/mlflow
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ExperimentViewUtil from './ExperimentViewUtil'; import { RunInfo } from '../sdk/MlflowMessages'; import classNames from 'classnames'; import { Dropdown, Menu } from 'antd'; import BaggedCell from './BaggedCell';...
src/components/common/svg-icons/hardware/phone-android.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneAndroid = (props) => ( <SvgIcon {...props}> <path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/> </SvgIcon> ...
client/src/SaveStateLabel.js
panter/mykonote
import React, { Component } from 'react'; import './SaveStateLabel.css'; class SaveStateLabel extends Component { constructor(props, context) { super(props, context); this.state = { isSynced: props.isSynced }; } componentWillReceiveProps(nextProps) { this.setState({ isSynced: nextProps.isSynced });...
examples/progressive-render/components/Loading.js
zeit/next.js
import React from 'react' export default function Loading() { return ( <div> <h3>Loading...</h3> <style jsx>{` div { align-items: center; display: flex; height: 50vh; justify-content: center; } `}</style> </div> ) }
src/components/Header/Header.js
Pamplemaus/raincloud
import React from 'react'; import Audio from '../Audio/Audio'; import styles from './Header.scss'; const Header = ({ toggleNav, selectedTrack, nextTrack }) => { return( <div className={styles.header}> <a className={styles.menuToggle} onClick={toggleNav}> <span></span> <span></span> ...
src/docs/src/templates/blog.js
StarterInc/Ignite
import { graphql } from 'gatsby'; import Helmet from 'react-helmet'; import React from 'react'; import Footer from '../components/Footer'; import CodeTabs from '../components/CodeTabs'; import CodeClipboard from '../components/CodeClipboard'; import BlogMain from '../components/Blog/BlogMain'; import BlogArticle from '...
app/components/footer/index.js
ayrton/pinata
/* @flow */ import React from 'react'; import Svg from 'components/svg'; import styles from './style.css'; /** * Footer component. */ export default function Footer(): ReactElement { const date = new Date(); const year = date.getFullYear(); const text = `${year} Piñata`; return ( <footer className={s...
system/src/routes/Document/containers/DocumentListContextMenuContainer/index.js
axmatthew/react
/* eslint react/prefer-stateless-function: 0 */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import documentModule from '../../../../modules/documents'; import DocumentListContextMenu from '../../components/DocumentListContextMenu'; import {...
app/assets/scripts/views/app.js
worldbank-cdrp/disaster-risk-explorer
'use strict' import React from 'react' import { connect } from 'react-redux' import { hashHistory } from 'react-router' import _ from 'lodash' import c from 'classnames' import { t, isValidLanguage, setLanguage } from '../utils/i18n' var App = React.createClass({ displayName: 'App', propTypes: { routes: Reac...
app/app.js
Blacksage959/Michael.McCann
/** * 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 { applyRouterMiddleware, Router, brows...
componentes/SearchBar.js
yomi-network/app
import React, { Component } from 'react'; import { Text, TextInput, View } from 'react-native'; class SearchBar extends Component { render() { return ( <View style={{backgroundColor: '#f7941e'}}> <TextInput style={{height: 80, backgroundColor: '#fff', fontSize: 25}} ...
src/js/MLViewerApp/Table/Tbody.js
stutorial/ml-viewer
import React from 'react'; export default class Tbody extends React.Component { findValue(product, index) { const index_array = index.split('.'); const value = index_array.reduce((valorAnterior, valorActual) => { return valorAnterior[valorActual]; }, product); return value; } createTd(header, product) ...
src/svg-icons/image/photo-size-select-large.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectLarge = (props) => ( <SvgIcon {...props}> <path d="M21 15h2v2h-2v-2zm0-4h2v2h-2v-2zm2 8h-2v2c1 0 2-1 2-2zM13 3h2v2h-2V3zm8 4h2v2h-2V7zm0-4v2h2c0-1-1-2-2-2zM1 7h2v2H1V7zm16-4h2v2h-2V3zm0 16h2...
docs/app/Examples/elements/Image/Usage/ImageExampleChildren.js
mohammed88/Semantic-UI-React
import React from 'react' import { Image, Label } from 'semantic-ui-react' const ImageExampleChildren = () => ( <div> <Image size='small'> <Label content='Image not found!' icon='warning' /> </Image> <span>Some other content</span> </div> ) export default ImageExampleChildren
definitions/npm/react-modal_v3.1.x/test_react-modal_v3.1.x.js
orlandoc01/flow-typed
// @flow import React from 'react'; import ReactModal from 'react-modal'; ReactModal.setAppElement('#foo'); ReactModal.setAppElement(document.body); // $ExpectError ReactModal.setAppElement(1); <ReactModal />; <ReactModal isOpen />; // $ExpectError <ReactModal isOpen={1} />; <ReactModal portalClassName="foo" />; /...
src/frontend/src/components/GMLeftMenu.js
blengerich/GenAMap
import React from 'react' import LeftNav from 'material-ui/Drawer' import GMUser from './GMUser' import GMProjectMenuContainer from './GMProjectMenuContainer' const GMLeftMenu = React.createClass({ render: function () { return ( <LeftNav open={this.props.open} width={this.props.width}> <GMUser use...
src/Well.js
pivotal-cf/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
openex-front/src/private/components/nav/TopMenuDashboard.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { withRouter, Link } from 'react-router-dom'; import withStyles from '@mui/styles/withStyles'; import { compose } from 'ramda'; import Button from '@mui/material/Button'; import inject18n from '../../../components/i18n'; const st...
app/javascript/mastodon/components/relative_timestamp.js
hugogameiro/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' }, minutes: { id: 'relat...
docs/src/components/Gist/index.js
directlyio/redink
// modified from: https://gist.github.com/aVolpe/b364a8fcd10f1ba833d97e9ab278f42c import React, { Component } from 'react'; class Gist extends Component { static propTypes = { id: React.PropTypes.string.isRequired, } constructor(props) { super(props); this.id = props.id; this.stylesheetAdded = ...
src/svg-icons/action/aspect-ratio.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAspectRatio = (props) => ( <SvgIcon {...props}> <path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"/> <...
src/pages/Text.js
marktani/react-native-express-1
import React from 'react' import markdown from 'markdown-in-js' import markdownOptions from '../utils/MarkdownOptions' import DefaultPage from './DefaultPage' import { WebPlayer } from '../components' const code = `import React, { Component } from 'react' import { AppRegistry, View, Text, StyleSheet } from 'react-nat...
src/components/equation/EquationBlocksByCategory.js
mlesk/equation-blocks
import React from 'react'; import EquationBlockCategory from './EquationBlockCategory'; import './Equation.css'; const EquationBlocksByCategory = ({equations}) => { const equationsByCategory = equations.reduce((groups, equation) => { (groups[equation.category] = groups[equation.category] || []).push(equation); ...
test/test_helper.js
BryceKrah/Portfolio
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
public/index.js
narthur157/letsclimbstuff
import React from 'react' import {render} from 'react-dom' import {BrowserRouter} from 'react-router-dom' import LetsClimbMain from 'Components/LetsClimbMain.jsx' import 'tachyons' render(( <BrowserRouter> <LetsClimbMain /> </BrowserRouter> ), document.getElementById('root'))
src/interface/icons/Cancel.js
yajinni/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=circled%20cross&i=1144421 // Created by johartcamp from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <path d="M 50 5 C 25.18272 5 5 25.1827 5 50 C 5 7...
src/components/Panonav.js
swashcap/LookieHere
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Animated, Dimensions, PanResponder, StyleSheet, View, } from 'react-native'; const { width: windowWidth } = Dimensions.get('window'); const styles = StyleSheet.create({ container: { flex: 1, }, }); /** * Panonav ...
src/PaginationButton.js
brentertz/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
fall-colors/components/default/link.js
mathisonian/idyll
import React from 'react'; class Link extends React.PureComponent { constructor(props) { super(props); } render() { let props = this.props; if (props.url) { props.href = props.url; } return ( <a {...props}> {this.props.text || this.props.children} </a> ); } } ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
obonyojimmy/hospital
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/modules/widget/Checkbox.js
lenxeon/react
"use strict" import React from 'react' import classnames from 'classnames' import { requireCss } from './themes' requireCss('checkbox') class Checkbox extends React.Component { static displayName = "Checkbox" static propTypes = { checked: React.PropTypes.bool, children: React.PropTypes.any, className...
core/router.js
augusto-santos/webapp
/** * React App SDK (https://github.com/kriasoft/react-app) * * Copyright © 2015-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'; function decodeParam(val) ...
assets/jqwidgets/demos/react/app/menu/centermenuitems/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxMenu from '../../../jqwidgets-react/react_jqxmenu.js'; class App extends React.Component { componentDidMount() { this.centerItems(); window.onresize = () => { this.centerItems(); } } centerItems() {...
test/helpers/shallowRenderHelper.js
HuZai/react_settlement
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
main.js
beven/reactApp
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; import './main.css'; ReactDOM.render( <App/>, document.getElementById('app') );
src/components/Sidebar/Sidebar.js
amoseui/blog
// @flow strict import React from 'react'; import Author from './Author'; import Contacts from './Contacts'; import Copyright from './Copyright'; import Menu from './Menu'; import styles from './Sidebar.module.scss'; import { useSiteMetadata } from '../../hooks'; type Props = { isIndex?: boolean, }; const Sidebar =...
src/@ui/typography/H7/H7.stories.js
NewSpring/Apollos
import React from 'react'; import { View } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import H7 from './'; storiesOf('typography/H7', module) .add('Default', () => ( <H7>{'"We may speak about a place where there are no tears, no death, no fear, no night; but those are just the be...
frontend/src/App.js
dataprev/cidadao360
import React, { Component } from 'react'; import './App.css'; // React router import { BrowserRouter as Router, Route, Link, NavLink, Redirect, } from 'react-router-dom' import response from './mock/template_service.json'; // Reactstrap - Bootstrap components import { Container, Row, Col, Collap...
pages/projects/247-edmonton/index.js
adamkrogh/adamkrogh.com
import React from 'react'; import devicesImage from 'assets/247-edmonton-devices.png'; import mapImage from 'assets/247-edmonton-map.png'; import { mapExternalLinks } from 'utils/links'; import SectionHeader from 'components/SectionHeader'; export const data = { id: 2, title: '24/7 Edmonton', layout: 'pro...
docs2/src/components/SideNav.js
graphql-dotnet/graphql-dotnet
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import classnames from 'classnames' const createMenuList = (listData, location) => ( <nav> <ul> {listData.map( element => ( <li key={element.title}> {element.file && ( <Link ...
node_modules/react-icons/fa/hand-o-up.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaHandOUp = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.6 35.7q0-0.6-0.5-1t-1-0.4-1 0.4-0.4 1 0.4 1 1 0.4 1-0.4 0.5-1z m2.8-17q0-4.3-3.7-4.3-0.6 0-1.3 0.2-0.3-0.7-1.1-1.1t-1.7-0.4-1.5 0.4q-1.1-1.2-2.7-1.2-0.5 0-1.2 0.2...
hello world/1.6 - style/src/components/main.js
wumouren/react-demo
import React from 'react'; export default class Main extends React.Component { render() { return ( <div> </div> ) } }
Realization/frontend/czechidm-acc/src/content/system/SchemaAttributeDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; // import { Advanced, Basic, Managers, Utils } from 'czechidm-core'; import { SchemaAttributeManager, SchemaObjectClassManager } from '../../redux'; const uiKey = 'schema-attribute';...
examples/counter/index.js
wong2/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
src/components/Header/Header.js
scele/coverigate
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; // eslint-disable-line no-unused-vars import styles from './Header.less'; // eslint-disable-line no-unused-vars import withStyles from '../../decorators/withStyles'; // eslint-disable-line no-unused-vars import Link fro...
src/parser/monk/windwalker/modules/features/checklist/Component.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import Requirement from 'parser/shared/modules...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
KitoHo/actor-platform
import React from 'react'; import DialogStore from 'stores/DialogStore'; import ActivityActionCreators from 'actions/ActivityActionCreators'; //import AvatarItem from 'components/common/AvatarItem.react'; var getStateFromStores = () => { return {dialogInfo: null}; }; class ToolbarSection extends React.Component ...
src/scenes/home/landing/hero/hero.js
sethbergman/operationcode_frontend
import React from 'react'; import LinkButton from 'shared/components/linkButton/linkButton'; import commonUrl from 'shared/constants/commonLinks'; import styles from './hero.css'; const hero = () => ( <div className={styles.container}> <header className={styles.header}> <h1 className={styles.heading}>Deplo...
app/common/labeltoselect.react.js
Cron-J/Rule-Engine
import React from 'react'; import Select from 'react-select'; export default class LabelToSelect extends React.Component { constructor(props) { super(props); } componentWillReceiveProps(nxtprops) { this.props = nxtprops; } render(){ this.label = <span ref="label" className="v...
scripts/main.js
Lutando/Passenjr
import 'jquery'; import 'bootstrap'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../styles/main.scss'; import store from "./store/store"; import App from './containers/App'; const main = document.getElementById('main') ReactDOM.rend...
docs/app/Examples/collections/Grid/Types/GridExampleDividedPhrase.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image } from 'shengnian-ui-react' const GridExampleDividedPhrase = () => ( <Grid columns='three' divided> <Grid.Row> <Grid.Column> <Image src='/assets/images/wireframe/media-paragraph.png' /> </Grid.Column> <Grid.Column> <Image src='/asse...
client/src/js/component/LoginView.js
lologarithm/fastbible
import React from 'react'; const {div, span, h1, ul, li, a, button} = React.DOM; import component from 'component'; import {Link, Router} from './router-jsx'; import {routeNames, keys, errorMessages} from 'constants'; import {Input, Glyph, ProgressBar} from '../react-bootstrap-jsx'; import userSession from '../store/u...
src/Components/TagList/TagList.js
sashasushko/moira-front
// @flow import React from 'react'; import Tag from '../Tag/Tag'; import cn from './TagList.less'; type Props = {| tags: Array<string>; onClick?: (tag: string) => void; onRemove?: (tag: string) => void; |}; export default function TagList(props: Props): React.Element<*> { const { tags, onClick, onRemo...
packages/reactI18nBase/src/__test__/Greeting.js
daniloster/react-experiments
import React from 'react'; import Italic from './Italic'; export default ({ i18n, name }) => ( <div> <h2>{i18n.greeting(name, Italic)}</h2> <div>{i18n.message('strong')}</div> </div> );
src/routes/home/index.js
24v/player-sankey
/** * 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 Home from './Home'; i...
src/components/Button/ButtonGroup.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; import { spacingStyles } from '../Spacing/utils'; import { Button } from '../Button'; function ButtonGroup({ loose, children, margin, block, disabled }) { const style = spacingStyles({ margin }); const className = classnames('ui-buttongroup', { 'u...
js/jqwidgets/demos/react/app/datatable/csvdata/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let source = { dataType: 'csv', dataFields: [ { name: 'Date...
react/features/always-on-top/HangupButton.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; // We need to reference these files directly to avoid loading things that are not available // in this environment (e.g. JitsiMeetJS or interfaceConfig) import { IconHangup } from '../base/icons'; import type { Props } from '../base/toolbox/components/AbstractButton';...
packages/material-ui-icons/src/Weekend.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Weekend = props => <SvgIcon {...props}> <path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51 2 2....
src/pages/index.js
adrienlozano/stephaniewebsite
import React from 'react' import CalloutSection from '~/components/callout'; import MainCarousel from '~/components/main-carousel'; import { ServicesSection } from '~/components/services'; import { NewsSection } from '~/components/news'; import Icon from "~/components/icon"; import { Box, Flex } from 'rebass'; import...
front/app/app/rh-components/rh-CustomTable.js
nudoru/React-Starter-2-app
import React from 'react'; import PropTypes from 'prop-types'; // let testData = { // header: [{title: 'title', cellRenderer: null}], // rows : [ // { // className: 'rowClass', // cols : [] // } // ] // } class CustomTable extends React.Component { constructor() { super(); th...
client/components/users/login-form.js
LIYINGZHEN/meteor-react-redux-base
import React from 'react'; import {Link} from 'react-router'; export default class extends React.Component { constructor(props) { super(props); this.onSubmit = this.onSubmit.bind(this); } onSubmit(e) { e.preventDefault(); this.props.loginWithPassword(this._emailInput.value, this._passwordInput.v...
admin/client/App/components/Navigation/Mobile/index.js
pr1ntr/keystone
/** * The mobile navigation, displayed on screens < 768px */ import React from 'react'; import Transition from 'react-addons-css-transition-group'; import MobileSectionItem from './SectionItem'; const ESCAPE_KEY_CODE = 27; const MobileNavigation = React.createClass({ displayName: 'MobileNavigation', propTypes: ...
node_modules/react-router/es6/Redirect.js
HasanSa/hackathon
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
examples/todomvc/containers/TodoApp.js
ytiurin/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
src/components/TextInputStyledComponents/TextInputStyledComponents.js
ebirito/ps-react-ebirito
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styled from 'styled-components'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text...
frontend/src/components/nonAuth.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles'; import MuiThemeProviderLegacy from 'material-ui-old/styles/MuiThemeProvider'; import { initSession, loadUserData } from '../reducer...
packages/retabulate-react-renderer/src/components/NestedTable.js
jasonphillips/retabulate
import React from 'react'; import _ from 'lodash'; import buildGroups from '../utils/buildGroups'; import buildRows from '../utils/buildRows'; import {mergeCellRenderers, getRenderer, getLabelRenderer} from '../utils/getRenderers'; const BasicCell = ({cell: {value, queries, variable, agg}, cellID, cellProps}) => ( <...
src/agent/agent-card/index.js
kmiracle-iscs/wca-react-poc
import React from 'react'; import { connect } from 'react-redux'; import FaEnvelope from 'react-icons/lib/fa/envelope'; import FaPhone from 'react-icons/lib/fa/phone'; import { getAgent } from '../actions'; import styles from '../../index.css'; export class AgentCard extends React.Component { componentWillMount...
test/react/visual/tests/Components/__fixtures__/Title.js
JulienPradet/pigment-store
import React from 'react' const Title = (props) => <h1>{props.children}</h1> export default Title
client/modules/core/components/postlist.js
luki21213/tripIdeas
import React from 'react'; const PostList = ({posts}) => ( <div className='postlist'> <ul> {posts.map(post => ( <li key={post._id}> <a href={`/post/${post._id}`}>{post.title}</a> </li> ))} </ul> </div> ); export default PostList;
test/integration/css-fixtures/url-global/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global1.css' import '../styles/global2.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
test/components/home.js
MonkeyKingPlus/react-native-picker
import React from 'react'; import BaseComponent from './baseComponent' import { StyleSheet, Text, View, TouchableOpacity } from 'react-native'; import {viewStyles} from '../themes/default'; export default class Home extends BaseComponent { render() { return <View style={viewStyles.main}> ...
app/javascript/mastodon/features/account_gallery/index.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from 'mastodon/actions/accounts'; import { expandAccountMediaTimeline } from '../../actions/timelines'; import LoadingIndicator from '...
src/modules/main/component.js
gustavoisensee/shoppingcart
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import style from './style.scss'; import Product from './../product/container'; import Notification from './../notification/component'; import Loading from './../loading/component'; const defaultProps = { main: { products: {}, noti...
app/index.js
uvarovserge/tomorrowex-client
import React from 'react'; import {render} from 'react-dom'; import Root from './containers/Root'; import BigNumber from 'bignumber.js'; import {AppContainer} from 'react-hot-loader'; import {configureStore, history} from './store/configureStore'; const store = configureStore(); BigNumber.config({ DECIMAL_PLACES: 18 ...
cheesecakes/plugins/content-type-builder/admin/src/components/PopUpRelations/index.js
strapi/strapi-examples
/** * * PopUpRelations * */ import React from 'react'; import PropTypes from 'prop-types'; import { findIndex, get, isEmpty, map, take, takeRight } from 'lodash'; import { FormattedMessage } from 'react-intl'; import pluralize from 'pluralize'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'r...
ReactNative/node_modules/react-navigation/src/views/Drawer/DrawerView.js
tahashahid/cloud-computing-2017
import React from 'react'; import { Dimensions } from 'react-native'; import DrawerLayout from 'react-native-drawer-layout-polyfill'; import addNavigationHelpers from '../../addNavigationHelpers'; import DrawerSidebar from './DrawerSidebar'; import getChildEventSubscriber from '../../getChildEventSubscriber'; /** * ...
src/index.js
gaearon/react-transform-boilerplate
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
client/components/shared/flash/FlashMessagesList.js
AnatolyBelobrovik/itechartlabs
import React from 'react'; import { connect } from 'react-redux'; import FlashMessage from './FlashMessage'; import PropTypes from 'prop-types'; import { deleteFlashMessage } from '../../../actions/flashMessagesActions'; const FlashMessagesList = ({ messages, deleteFlashMessage }) => { const renderMessages = mess...
packages/demos/todomvc/src/components/Footer/index.js
garth/cerebral
import React from 'react' import { connect } from '@cerebral/react' import { state, signal } from 'cerebral/tags' import counts from '../../computed/counts' import classnames from 'classnames' const filters = ['All', 'Active', 'Completed'] export default connect( { filter: state`filter`, counts, filterC...
actor-apps/app-web/src/app/components/Install.react.js
guiquanz/actor-platform
import React from 'react'; export default class Install extends React.Component { render() { return ( <section className="mobile-placeholder col-xs row center-xs middle-xs"> <div> <img alt="Actor messenger" className="logo" src="assets/img/logo.png" ...
clients/libs/webpage/src/lib/plugins/form/components/raise.js
nossas/bonde-client
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' const Raise = ({ message, classes, styles }) => ( <div className={classnames('p1 border-left border-red mb1 rounded-right red bold', classes)} style={{ ...styles }} > {message} </div> ) Raise.propTypes =...
webui/src/components/Shared/Button.js
acetcom/nextepc
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import oc from 'open-color'; import withRipple from './withRipple'; function getBgColor(props) { let color = oc.indigo[7]; let colorDark = oc.indigo[8]; // Determine color based on props if (props.secondar...
react/LinkedInIcon/LinkedInIcon.js
seek-oss/seek-style-guide
import svgMarkup from './LinkedInIcon.svg'; import svgMarkupFilled from './LinkedInIconFilled.svg'; import React from 'react'; import PropTypes from 'prop-types'; import Icon from '../private/Icon/Icon'; export default function LinkedInIcon({ filled, ...props }) { const markup = filled ? svgMarkupFilled : svgMarku...
packages/reactor-tests/src/tests/rel/RelGridColumn.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Container, Grid, Column, WidgetCell, SparkLineLine } from '@extjs/ext-react'; export default class RelGridColumn extends Component { store = Ext.create('Ext.data.Store', { data: [ { first: 'Mark', last: 'Brocato', trend: [1,2,3,4,3,2,1] } ...
src/svg-icons/places/kitchen.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesKitchen = (props) => ( <SvgIcon {...props}> <path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/> ...
client/src/containers/FirebaseChooseCampaign.js
codefordenver/Circular
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter, browserHistory } from 'react-router'; import { Grid, Row, Col } from 'react-bootstrap'; import { firebaseCreateNewCampaign } from '../redux/actions/firebaseCampaigns'; import RenderL...
src/App.js
davesnx/Typeform-logo-WebVR
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import VRScene from './components/VRScene' render( <VRScene />, document.querySelector('.root') )
client/views/setupWizard/SetupWizardPage.stories.js
iiet/iiet-chat
import React from 'react'; import SetupWizardPage from './SetupWizardPage'; import { finalStep } from './SetupWizardState'; export default { title: 'views/setupWizard/SetupWizardPage', component: SetupWizardPage, }; export const atStep1 = () => <SetupWizardPage currentStep={1} />; export const atStep2 = () => <Se...
src/admin/client/modules/shared/imageUploadMultiple/uploader.js
cezerin/cezerin
import React from 'react'; import Dropzone from 'react-dropzone'; import messages from 'lib/text'; import style from './style.css'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class MultiUploader extends React.Component { onDrop = files => { let ...
templates/rubix/meteor/meteor-seed/imports/routes.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import { Grid, Row, Col, MainContainer } from '@sketchpixy/rubix'; /* Common Components */ import Sidebar from './common/sidebar'; import Header from './common/header'; import Footer from './common/footer'; /* Pages */ import Home from './...
docs/index.js
jonniespratley/px-components-react
/* eslint-disable global-require, import/no-unresolved, react/no-multi-comp */ import React from 'react'; import ReactDOM from 'react-dom'; import GithubCorner from 'react-github-corner'; import { Catalog, CodeSpecimen, ReactSpecimen } from 'catalog'; //import 'purecss/build/pure.css'; import './main.css'; import px f...
src/svg-icons/maps/local-see.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalSee = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 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-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5...