path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/chat/MessageInput.js
ExtremeModeration/CommandCenter
import React from 'react' import { TextField } from 'material-ui' const MessageInput = (props) => ( <TextField hintText="Message..." value={props.value} onChange={props.onChange} onKeyUp={(e) => { if (e.keyCode === 13) { props.onEnter() } }} /> ) export default MessageInput...
app/javascript/mastodon/components/autosuggest_textarea.js
3846masa/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import ImmutablePureComponent from 'react-immutable-pure-comp...
demo/components/grid/GridDemo.js
ctco/rosemary-ui
import React from 'react'; export default () => { return ( <div> <p><a target="_blank" href="http://gridle.org/documentation">Grid Documentation</a></p> <div className="row"> <div className="gr-1">1/18</div> <div className="gr-1">1/18</div> ...
opwen_statuspage/src/Grid.js
ascoderu/opwen-cloudserver
import React from 'react'; import { List } from 'antd'; function Grid(props) { return ( <List grid={{ gutter: 16, xs: 1, md: 4, lg: 6 }} itemLayout="vertical" {...props} /> ); } export default Grid;
app/containers/App/index.js
bhefty/react-redux-boilerplate
import React from 'react' import Helmet from 'react-helmet' import styled, { ThemeProvider } from 'styled-components' import { Switch, Route } from 'react-router-dom' import Header from 'components/Header' import Footer from 'components/Footer' import HomePage from 'containers/HomePage/Loadable' import FeaturePage fro...
src/index.js
nbkhope/componentes-controlados
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
nodes/stampzilla-server/web/src/components/ErrorBoundary.js
stampzilla/stampzilla-go
import React from 'react'; class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false }; } componentDidCatch(error, info) { this.setState({ hasError: true, error, info, }); } render() { const { hasError, error, info ...
docs/app/Examples/collections/Table/Variations/TableExampleVerticalAlign.js
vageeshb/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleVerticalAlign = () => { return ( <Table striped> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Not...
react/features/base/dialog/components/AbstractDialog.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; import { hideDialog } from '../actions'; import { DIALOG_PROP_TYPES } from '../constants'; /** * Abstract dialog to display dialogs. */ export default class AbstractDialog extends Component { /** * Abstract Dialog component's property types. * * @static ...
react-apollo/src/components/InputTextWithErrors/index.js
strapi/strapi-examples
/* eslint-disable no-mixed-operators */ import React from 'react'; import PropTypes from 'prop-types'; import { isEmpty, isFunction } from 'lodash'; import cn from 'classnames'; // Design import Label from '../../components/Label'; import InputDescription from '../../components/InputDescription'; import InputErrors fr...
public/scripts/components/Calendar.js
Ohems/watodo
import React from 'react'; import BigCalendar from 'react-big-calendar'; import moment from 'moment'; BigCalendar.momentLocalizer(moment); class Calendar extends React.Component { render() { const myEventsList = []; return ( <div className="calendar"> <BigCalendar {...this.props} ...
src/routes/home/index.js
yurikrupnik/meaner
/** * 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 Home from './Home'; impo...
GitHubFinder/src/components/Main/Main.js
Louis0503/TestRact
// Stateless Component : provide the entry for all views. import React from 'react'; // import ReactDOM from 'react-dom'; import TodoHeaderContainer from '../../containers/TodoHeaderContainer'; import TodoListContainer from '../../containers/TodoListContainer'; const Main = () => ( <div> <TodoHeaderContainer />...
app/pages/user/App/index.js
czy0729/react-alumni
/** * user分组 * @Date: 2017-03-01 03:47:47 * @Last Modified by: Administrator * @Last Modified time: 2017-03-19 08:10:29 */ 'use strict'; import React from 'react'; const prefixCls = 'pages-user__app'; export default class UserApp extends React.Component { constructor() { super(); } re...
client/scripts/components/user/questionnaire/next-button/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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 Lic...
src/svg-icons/action/view-quilt.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
Server/app/assets/javascripts/components/PageTitleComponent.js
codemeow5/Carnival
import React from 'react'; export default React.createClass({ render: function(){ return ( <div className="page-title"> <h1>{this.props.title}</h1> </div> ); } });
src/shared/components/form/formCheckBox/formCheckBox.js
sethbergman/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './formCheckBox.css'; const FormCheckBox = ({ checkBox, name, value, onChange, label }) => ( <div style={checkBox}> <input type="checkbox" name={name} id={value} value={value} onChange={onChange} ...
src/components/Footer.js
mattbanks/mattbanks
import React from 'react'; import { OutboundLink } from 'gatsby-plugin-google-analytics'; import config from '../../config'; export default function Footer() { return ( <footer id="footer"> <ul className="icons"> {config.socialLinks.map((social) => { const { style, icon, name, url } = soc...
test/mocks/example.js
hex13/ast-stream
import React from 'react'; function foo () { return true; } function bar () { return false; } function Component({name}) { return <div>{name}</div>; }
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleShorthandElement.js
mohammed88/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleShorthandElement = () => ( <Checkbox label={<label>Make my profile visible</label>} /> ) export default CheckboxExampleShorthandElement
app/containers/CallLogs/index.js
luis-teixeira/react-twilio-webphone
/* * * CallLogs * */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import Loading from 'components/Loading'; import Card from 'components/Card'; import CardBod...
examples/with-emotion/pages/index.js
nelak/next.js
import React from 'react' import styled, { hydrate, keyframes, css, injectGlobal } from 'react-emotion' // Adds server generated styles to emotion cache. // '__NEXT_DATA__.ids' is set in '_document.js' if (typeof window !== 'undefined') { hydrate(window.__NEXT_DATA__.ids) } export default () => { injectGlobal` ...
pages/Home.js
stucco/ui
import React from 'react' import cx from 'classnames' import SearchBox from '../components/SearchBox' import Histogram from '../components/Histogram' import Layout from '../components/Layout' import Graph from '../components/Graph' class Search extends React.Component { render () { return ( <Layout classN...
examples/universal/server.js
DLRandy/redux
import path from 'path'; import Express from 'express'; import qs from 'qs'; import React from 'react'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; import App from './containers/App'; import { fetchCounter } from './api/counter'; const app = Express(); const port = 3000...
pages/_document.js
ajaykurien/nextjs-starter-kit
import Document, { Head, Main, NextScript } from 'next/document' import React from 'react' import flush from 'styled-jsx/server' import { basicStyle } from '../config/constants' export default class MyDocument extends Document { static getInitialProps ({ renderPage }) { const { html, head, errorHtml, chunks } ...
src/ui/form/text-field/text-field.js
josmardias/react-redux-boilerplate
import React from 'react' import TextFieldM from 'material-ui/TextField' const TextField = ({ label, secure = false, }) => ( <TextFieldM hintText={label} underlineShow type={secure ? 'password' : 'text'} fullWidth /> ) TextField.propTypes = { label: React.PropTypes.string.isRequired, secur...
src/svg-icons/action/view-quilt.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
docs/src/sections/AlertsSection.js
Sipree/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 AlertsSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <An...
app/javascript/mastodon/main.js
mstdn-jp/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
src/js/components/MessagePlaceholder.js
nicksp/react-geo-weather
import React, { Component } from 'react'; export default class MessagePlaceholder extends Component { showError(error) { this.refs.errorPlaceholder.innerHTML = error; } render() { return ( <div className="weather__message" ref="errorPlaceholder"></div> ); } } MessagePlaceholder.displayName...
modules/messages/client/components/Flashcard.js
Trustroots/trustroots
import React from 'react'; import { useTranslation } from 'react-i18next'; export default function Flashcard() { const { t } = useTranslation('messages'); const flashcards = [ { title: t('Make sure your profile is complete'), content: t( "You're much more likely to get a positive response ...
src/components/organisms/Organism/index.stories.js
SIB-Colombia/dataportal_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import { Organism } from 'components' storiesOf('Organism', module) .add('default', () => ( <Organism /> )) .add('reverse', () => ( <Organism reverse /> ))
app/components/events/contributions/BringerView.js
alexko13/block-and-frame
import React, { Component } from 'react'; // TODO: style better / make into a flippable card ? class BringerView extends Component { constructor(props) { super(props); this.state = { bringer: props.info, }; } componentWillReceiveProps(nextProps) { this.setState({ bringer: nextProps.info ...
packages/material-ui-icons/src/Satellite.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Satellite = props => <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.87...
components/chronicle/ChronicleHeader.js
yudazilian/VisualJusticeTW
import React from 'react'; import ReactDom from 'react-dom'; import { RedRibbon } from '../common/githubRibbon'; export default class ChronicleHeader extends React.Component { render() { return ( <header className="col-md-12"> <div> <img id="Logo" src="./src/chronicle.png"/> <RedRibbon /> </...
src/svg-icons/action/turned-in.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionTurnedIn = pure(ActionTurnedIn); ActionTurnedIn.displayName = 'Ac...
packages/recon-engine/src/parse/__tests__/__fixtures__/basic-components/src.js
recon-js/recon
/* eslint-disable */ import React from 'react'; export function FunctionalComponent() { return <div>Hello world!</div>; } export const ArrowFunctionalComponent = () => <div />; export default class ClassComponent { render() { return <div>Hello world! <a href="link">Click Here!</a></div>; } }
client/authentication/components/pages/missingPage/MissingPage.js
Haaarp/geo
import React, { Component } from 'react'; class MissingPage extends Component { render() { return ( <div> </div> ); } } export default MissingPage;
WorldMoodTracker/js/components/WorldMoodTracker.js
djmgit/apps.loklak.org
import React from 'react'; import Header from './Header'; import WorldMap from './WorldMap'; import Footer from './Footer'; import ScaleBar from './ScaleBar'; export default class WorldMoodTracker extends React.Component { render() { return ( <div> <Header/> <Wor...
src/index.js
joshsmith27/starWarsCards
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware...
src/features/loading/Loading.js
michaelfriedman/capstone-g40
import React from 'react'; import FontAwesome from 'react-fontawesome'; const Loading = () => <div> <FontAwesome className="fa fa-spinner" name="spinner" size="5x" spin style={{ textShadow: '0 1px 0 rgba(0, 0, 0, 0.1)' }} /> </div>; export default Loading;
src/components/topic/platforms/builder/preview/PlatformPreview.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { Row, Col } from 'react-flexbox-grid/lib'; import PlatformTotalContentPreviewContainer from './PlatformTotalContentPreviewContainer'; import PlatformAttentionPreviewContainer from './PlatformAttentionPreviewC...
packages/material-ui-icons/src/SignalCellular0Bar.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SignalCellular0Bar = props => <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z" /> </SvgIcon>; SignalCellular0Bar = pure(SignalCellular0Bar); SignalCellular0Bar.muiName = 'SvgIcon'; export d...
react/mortgage/src/components/App.js
webmaster444/webmaster444.github.io
import React from 'react'; import Header from '../components/Header'; import TableMortgage from './TableMortgage'; import Chart from './Chart'; import BaseFigures from './BaseFigures'; import Overpayment from './Overpayment'; import Payment from './Payment'; export default () => ( <div> <Header title={"Mortgage...
clients/privacy/components/HelpBox.js
Desertsnowman/Caldera-Forms
import React from 'react'; import PropTypes from 'prop-types'; import {Twemoji} from 'react-emoji-render'; import {DocLinks} from "./DocLinks"; import {ListGroup, ListGroupItem } from 'react-bootstrap' export const HelpBox = (props) => { return ( <div style={{ backgroundColor: '#fff' }} className={'col-...
src/components/profile/other/Other.js
simnau/event-scraper-ui
import React from 'react'; function Other({ }) { return ( <div> Other </div> ); } export default Other;
_experiment/react-fetch-github-repo/v3-stable/src/ReposList.js
David-Castelli/react-testing
import React from 'react'; import {render} from 'react-dom'; import Repo from './Repo'; // List of elements class ReposList extends React.Component { // creo un constructor di ES6 per i dati del campo di input constructor(props) { // use 'super' for call function from the parent of the object super(props); /...
the_book/testing_with_enzyme/MyComponent.js
Muzietto/react-playground
'use strict'; import React from 'react'; import Foo from './Foo'; class MyComponent extends React.Component { constructor(props) { super(); this.props = props; } render() { return ( <div className="my_component icon-star"> <Foo myVar="cicciput"/> ...
src/svg-icons/action/autorenew.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAutorenew = (props) => ( <SvgIcon {...props}> <path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16-hooks/shared/Page.js
Brandon-J-Campbell/codemash
import React from 'react'; import classNames from 'classnames'; import ThemeContext from '../theme/context'; import styles from './Page.css'; export default function Page({ children }) { return ( <ThemeContext.Consumer> {({ theme }) => ( <div className={classNames(styles.page, styles[theme])}> ...
client_src/component/MainPage.js
frauca/votelist
import React from 'react' import Menu from './Menu.js' import TopNavigation from './TopNavigation.js' import PageContent from './PageContent.js' class MainPage extends React.Component { render () { return <div > <Menu/> <TopNavigation/> <PageContent/> </div> ; } } export default MainPag...
client/desktop/app/components/signup.js
absurdSquid/thumbroll
import React from 'react'; import api from '../utils/api'; class Signup extends React.Component { constructor(props) { super(props); this.state = { firstName: '', lastName: '', username: '', email: '', password: '', confirmedPassword: '', // Desktop app is currently ...
app/react-icons/fa/pagelines.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaPagelines extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m35.8 24.6q-0.7 1.8-1.7 3.1t-2 2-2.2 1-2.3 0.3-2.2-0.2-1.9-0.4-1.5-0.7-1.1...
src/web/solutions/Search/SolutionList.js
whybug/whybug-server
import React from 'react';
spec/javascripts/jsx/files/components/BreadcrumbsSpec.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js
hai-cea/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; /** * Simple Icon Menus demonstrating some of the layouts possible using the `anc...
frontend/src/components/Main/Navigation.js
VitaC123/YouTube-Mixtape
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import TapeLogo from '../../assets/tape-white.svg'; import { Collapse, Navbar, Nav, NavItem, Button } from 'reactstrap'; import ArtistSearch from '../Home/ArtistSearch'; import './Navigation.css'; const NavigationItems = props => ( <...
src/main/__init__/index.js
MichalBures/electron-redux-multi-window-comm-test-app
import React from 'react'; import { render } from 'react-dom'; import Root from './Root'; window.location.hash = '/'; render( <Root />, document.getElementById('MainContent') );
src/components/app.js
jesus-chacon/cookBook
import React, { Component } from 'react'; import { Switch, Route, Redirect } from 'react-router-dom'; import { withRouter } from 'react-router'; import { gql, graphql } from 'react-apollo'; import RecipeRouter from './recipes/router'; import Background from './commons/background'; import LoginComponent from './commons...
apps/home/feed/index.js
craigspaeth/newstack
import React from 'react' let { ul, li, img, h3, p } = React.DOM class Feed extends React.Component { render() { return ( ul({ style: styles.ul }, this.props.tweets.map((tweet) => { return ( li({ style: styles.li }, img({ src: tweet.img, style: styles.liChildr...
packages/giu/src/components/focusCapture.js
guigrpa/giu
// @flow import React from 'react'; import classnames from 'classnames'; import { IS_IOS } from '../gral/constants'; // ========================================== // Component // ========================================== type Props = { disabled?: boolean, registerRef?: (ref: ?Object) => void, // All other prop...
react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.js
pbca26/EasyDEX-GUI
import React from 'react'; import { connect } from 'react-redux'; import { toggleZcparamsFetchModal, downloadZCashParamsPromise, } from '../../../actions/actionCreators'; import Store from '../../../store'; import Config from '../../../config'; import translate from '../../../translate/translate'; import mainWindow...
src/svg-icons/device/battery-60.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery60 = (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.33V11h10V5.33z"/><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
client/src/client.js
jabelone/marvin
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
client/modules/App/components/Menu/BlogSubMenu.js
tranphong001/BIGVN
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import styles from './Menu.css'; import { Navbar, Nav, NavItem, Button, Glyphicon, NavDropdown, MenuItem } from 'react-bootstrap'; import {fetchCategories, setIsTyping, setPageHeader, setSearchCity} from...
docs/src/pages/demos/menus/ListItemComposition.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { MenuList, MenuItem } from 'material-ui/Menu'; import Paper from 'material-ui/Paper'; import { withStyles } from 'material-ui/styles'; import { ListItemIcon, ListItemText } from 'material-ui/List'; import InboxIcon from '@material-ui/icons/MoveToInb...
src/svg-icons/action/date-range.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDateRange = (props) => ( <SvgIcon {...props}> <path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0...
openex-front/src/private/components/exercises/lessons/LogForm.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { Form } from 'react-final-form'; import Button from '@mui/material/Button'; import { TextField } from '../../../../components/TextField'; import inject18n from '../../../../components/i18n'; import TagField from '../../../../comp...
src/enhancers/feed.js
broucz/mvu-react-form
import React from 'react'; import Container from '../components/FieldContainer'; import Question from '../components/FieldQuestion'; import Description from '../components/FieldDescription'; const UPDATE = 'UPDATE'; // -- Enhancer // -- Update // -- View const feed = (Child, options) => ({ update( {state =...
app/javascript/mastodon/components/status_list.js
blackle/mastodon
import { debounce } from 'lodash'; import React from 'react'; import { FormattedMessage } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-p...
docs/src/modules/components/MarkdownLinks.js
lgollut/material-ui
import React from 'react'; import Router from 'next/router'; import { pathnameToLanguage } from 'docs/src/modules/utils/helpers'; export async function handleEvent(event, as) { // Ignore click for new tab/new window behavior if ( event.defaultPrevented || event.button !== 0 || // ignore everything but left...
src/client/auth/logout.react.js
masterfung/react-immutable-flux-login
import React from 'react'; import {logout} from './actions'; import {msg} from '../intl/store'; export default class Logout extends React.Component { render() { return ( <div className="logout"> <button children={msg('auth.logout.button')} onClick={logout} /> </di...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
TondaHack/create-react-app
/** * 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. */ import Rea...
front/app/js/pages/Animations.js
nudoru/React-Starter-3
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { TweenMax, Quad, Circ } from 'gsap'; import { range } from 'lodash'; import { Animate, TweenGroup } from '../components/controls/common/Animate'; import Button from '../components/controls/Button'; import { Car...
js/AsyncRoute.js
galaxode/ubiquitous-eureka
import React from 'react' const { object } = React.PropTypes const AsyncRoute = React.createClass({ propTypes: { props: object, loadingPromise: object }, getInitialState () { return { loaded: false } }, componentDidMount () { this.props.loadingPromise.then((module) => { this.c...
docs/src/pages/components/use-media-query/ServerSide.js
lgollut/material-ui
import React from 'react'; import mediaQuery from 'css-mediaquery'; import { ThemeProvider } from '@material-ui/core/styles'; import useMediaQuery from '@material-ui/core/useMediaQuery'; function MyComponent() { const matches = useMediaQuery('(min-width:600px)'); return <span>{`(min-width:600px) matches: ${matche...
src/svg-icons/action/compare-arrows.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCompareArrows = (props) => ( <SvgIcon {...props}> <path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/> </SvgIcon> ); ActionCompareArrows = pure(ActionCompareArrows); Acti...
lib/js/apps/genetic-algorithms/CardSplitting/index.js
jneander/learning
import React from 'react'; import Container from 'instructure-ui/lib/components/Container'; import ExampleControls from 'js/shared/components/ExampleControls'; import ChromosomeTable from 'js/apps/genetic-algorithms/shared/ChromosomeTable'; import State from '../shared/State'; import Cards from './Cards'; import Cont...
packages/material-ui-icons/legacy/NetworkCellSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M17 7L2 22h15V7z" /></React.Fragment> , 'NetworkCellSharp');
js/components/Header/8.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, Subtitle } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; import...
6.4.0/examples/syncValidation/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(275),e.exports=n(274)},function(e,t,n){var r=n(4),o=n(37),i=n(20),a=n(21),u=n(38),s="prototype",...
components/Search/SearchResultsPanel/SpellcheckPanel.js
slidewiki/slidewiki-platform
import React from 'react'; class SpellcheckPanel extends React.Component { handleLink(suggestion, event){ event.preventDefault(); this.props.handleRedirect({ keywords: suggestion }); } renderSpellcheckCollations(){ if(this.props.spellcheckData.length === 0) ...
examples/js/selection/click-to-select-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
admin/client/components/ListColumnsForm.js
kumo/keystone
import classnames from 'classnames'; import React from 'react'; import Transition from 'react-addons-css-transition-group'; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, InputGroup, SegmentedControl } = ...
src/Parser/Mage/Arcane/Modules/Features/AlwaysBeCasting.js
hasseboulen/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellLink from 'common/SpellLink'; class AlwaysBeCasting extends CoreAlwa...
src/components/auth/signin.js
ckwong93/TailsFromTheCrypt
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import * as actions from '../../actions'; import Nav from '../nav'; class Signin extends Component { handleFormSubmit({ email, password }) { console.log(email, password); this.props.signinUser({ email, password}); } ...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
zipongo/react-router
/*globals COURSES:true */ import React from 'react' class Grades extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Grades</h3> <ul> {assignments.map(assignment => ( <li key={assignment.id}>{assignment...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
tsjing/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
src/react.js
aparticka/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
renderer/components/Autopay/AutopayCardView.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { themeGet } from '@styled-system/theme-get' import { Box, Flex } from 'rebass/styled-components' import { Card, Heading } from 'components/UI' import AutopayAddButton from './AutopayAddButton' import AutopayLimit...
packages/logos/src/percona.js
yldio/joyent-portal
import React from 'react'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, colors = {}, ...rest }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...rest}> <title>Artboard 1 copy 11</title> <path fill={calcFill({ fill, disabled...
src/components/CardTop.js
alphanumeric0101/pomodo-it
import React from 'react'; import AppBar from 'material-ui/lib/app-bar'; import IconButton from 'material-ui/lib/icon-button'; import Settings from 'material-ui/lib/svg-icons/action/settings'; import FlatButton from 'material-ui/lib/flat-button'; import MenuItem from 'material-ui/lib/menus/menu-item'; import IconMenu f...
src/FormGroup.js
rapilabs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class FormGroup extends React.Component { render() { let classes = { 'form-group': !this.props.standalone, 'form-group-lg': !this.props.standalone && this.props.bsSize === 'large', 'form-group-sm': !this.props.standalone && this.pr...
src/slack-icon.js
markmur/react-slack-feedback
import React from 'react' import styled from 'styled-components' export const SlackIcon = props => ( <svg id="SlackIcon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" width="20" height="20" aria-label="Slack" {...props} > <path d="M21.902.148c-3.299 0-5.973 2.68-5.973...
src/svg-icons/communication/ring-volume.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRingVolume = (props) => ( <SvgIcon {...props}> <path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0...
src/svg-icons/editor/format-size.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatSize = (props) => ( <SvgIcon {...props}> <path d="M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"/> </SvgIcon> ); EditorFormatSize = pure(EditorFormatSize); EditorFormatSize.displayName = 'EditorFo...
packages/icons/src/dv/GraphQL.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvGraphQL(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M39.067 28.752a3.55 3.55 0 0 1 2.724 3.44 3.57 3.57 0 0 1-3.538 3.595 3.547 3.547 0 0 1-2.69-1.196l-8.178 4.72a3.568 3.568 0 0 1-4.976 4.313 3.561 3....
app/react-icons/fa/puzzle-piece.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaPuzzlePiece extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m38.6 24.5q0 1.8-1 3t-2.7 1.2q-0.9 0-1.7-0.4t-1.4-0.8-1.2-0.9-1.6-0.3q-2...
app/javascript/mastodon/features/standalone/public_timeline/index.js
maa123/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as Imm...