path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
gulp/templates/EmptyComponent.js
h-iwata/react-babel-reflux-tutorial-for-blog
'use strict'; import React from 'react'; class EmptyComponent extends React.Component { static get propTypes() { return { }; } static get defaultProps() { return { } } constructor(props) { super(props); this.state = {} } componentDidMount(){ this.setState({}); } re...
src/client/Dev.js
Restuta/rcn.io
/* eslint-disable max-len */ import React from 'react' import Component from 'react-pure-render/component' import Row from 'atoms/Row.jsx' import Col from 'atoms/Col.jsx' import Button from 'atoms/Button.jsx' import Icon from 'atoms/Icon.jsx' import Event from 'calendar/events/Event.jsx' import Badge from 'calendar/bad...
app/containers/LocaleToggle/index.js
itimofeev/hustledb-ui
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { selectLocale } from '../LanguageProvider/selectors'; import { changeLocale } from '../LanguageProvider/actions'; import { appLocales } from '../../i18n'; import { createSelector } from 'reselect'; import styles fr...
imports/ui/pages/EditorInChiefDashboard/EditorInChiefDashboard.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, FormGroup, HelpBlock , Alert , ControlLabel, Button , Well , FormControl , ProgressBar , Jumbotron , ListGroup , ListGroupItem , Table , Panel , Label , ButtonToolbar , ButtonGroup} from 'react-bootstrap'; im...
test/test-cases/multiple-routes/app/src/handlers/AsyncComponent.js
seek-oss/sku
import React from 'react'; export default () => <span>Some special async content</span>;
src/shared/components/App/bits/showcase.js
brettsnaidero/bsd
import React, { Component } from 'react'; // Utils import * as _ from 'lodash'; import { Motion, spring } from 'react-motion'; import ShowcaseItem from './showcase-item'; import showcaseItems from '../data/showcase-items.js'; export default class Showcase extends Component { constructor(props) { super(pro...
lib/site/topic-layout/topic-article/admin-actions/component.js
DemocraciaEnRed/vicentelopez
import React from 'react' import t from 't-component' import urlBuilder from 'lib/url-builder' export default ({ topic, forum }) => { if (!topic.privileges.canEdit) return null return ( <div className='topic-article-content topic-admin-actions'> {topic.privileges.canEdit && ( <a href={...
src/Components/Packet.js
nevtum/packet-buddy
import React from 'react'; import BlockTypes from '../xseries/blocktypes'; import './packet.css'; const PacketDetails = (props) => { let { data, expanded } = props; let configTabulated = Object.keys(data.configData).map(function(key, index) { return Object.assign({}, data.configData[key], { descripti...
src/app/components/FrameOfCard.js
lili668668/lili668668.github.io
import React from 'react' import PropTypes from 'prop-types' import Grid from '@material-ui/core/Grid' function FrameOfCard (props) { const { children, className, style } = props return ( <Grid container> <Grid item xs /> <Grid item xs={12} sm={10} md={8} lg={4} className={className} style={style}...
src/components/__tests__/PaginationTest.js
joellanciaux/Griddle
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import Pagination from '../Pagination'; test('renders', (t) => { const wrapper = shallow(<Pagination />); t.true(wrapper.matchesElement(<div />)); }); test('renders with style', (t) => { const style = { backgroundColor: "#EDE...
app/containers/HomePage/index.js
OrenElad/picashare
/* * 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...
assets/js/BuyMealPage.js
codeforgoodconf/sisters-of-the-road-admin
import React, { Component } from 'react'; import axios from 'axios'; import DollarInput from './DollarInput' import AccountSummary from './AccountSummary'; axios.defaults.xsrfHeaderName = "X-CSRFTOKEN"; axios.defaults.xsrfCookieName = "csrftoken"; class BuyMealPage extends Component { constructor () { su...
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/LurkersInsidiousGift.js
sMteX/WoWAnalyzer
import React from 'react'; import { formatNumber, formatPercentage } from 'common/format'; import { calculateSecondaryStatDefault } from 'common/stats'; import SPELLS from 'common/SPELLS/index'; import ITEMS from 'common/ITEMS/index'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events fr...
src/components/antd/transfer/search.js
hyd378008136/olymComponents
import React from 'react'; import Icon from '../icon'; import Input from '../input'; export default class Search extends React.Component { constructor() { super(...arguments); this.handleChange = (e) => { const onChange = this.props.onChange; if (onChange) { o...
client/src/about/About.js
petertrotman/adventurelookup
import React from 'react'; import './About.scss'; const About = () => ( <div className="about"> <h2>About</h2> <p> Wouldn't it be great to think "I want to run an adventure with a Beholder as the villain!" and be able to find a list of every published adventure featuring beholders? Then be...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
daniel-chermetz/angular2-flickr-app
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/client/app/components/ui/table.js
LINKIWI/apache-auth
import React from 'react'; /** * Component describing a table with a header and row entries. */ export default class Table extends React.Component { static propTypes = { headerClassName: React.PropTypes.string, // Expected to be of shape ['col 0 name', 'col 1 name', ...] header: React.PropTypes.arrayOf...
app/javascript/flavours/glitch/components/missing_indicator.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import illustration from 'flavours/glitch/images/elephant_ui_disappointed.svg'; import classNames from 'classnames'; const MissingIndicator = ({ fullPage }) => ( <div className={classNames('regeneration-indi...
node_modules/generator-react-fullstack/react-starter-kit/src/components/Feedback/Feedback.js
jdl031/FHIR-test-app
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import s from '....
src/App.js
mamal72/dgkala-web
import React, { Component } from 'react'; import { Grid } from 'react-bootstrap'; import IncredibleOffersContainer from './IncredibleOffers/IncredibleOfferContainer'; import Navbar from './Navbar/Navbar'; class App extends Component { render() { const navigationMenuData = { header: 'دیجی‌کالا', item...
app/components/PosMain/NavigationMenu.js
sahilkhan99/PosApp
import React from 'react'; import NavigationDrawer from 'react-md/lib/NavigationDrawers'; import Greeting from 'components/PosMain/Greetings'; const NavigationMenu = () => ( <NavigationDrawer drawerTitle="react-md with webpack" toolbarTitle="Welcome to react-md" tabletDrawerType={NavigationDrawer.Drawer...
packages/react-error-overlay/src/components/ErrorOverlay.js
ConnectedHomes/create-react-web-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import { black } from '../styles'; import type { Node as ReactNode } from 'react'...
frontend/modules/browse/components/SearchBar.js
rustymyers/OpenEats
import React from 'react' import DebounceInput from 'react-debounce-input'; import PropTypes from 'prop-types' import { injectIntl, IntlProvider, defineMessages, formatMessage } from 'react-intl'; class SearchBar extends React.Component { constructor(props) { super(props); this.state = { ...
src/server.js
huangc28/palestine-2
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
examples/containers/TodoApp.js
skevy/redux
import React from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import AddTodo from '../components/AddTodo'; import TodoList from '../components/TodoList'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp { render() { return ( ...
app/javascript/mastodon/components/admin/Trends.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Hashtag from 'mastodon/components/hashtag'; export default class Trends extends React.PureComponent { static propTypes = { lim...
src/components/Html.js
utage2002/mm
/** * 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-...
templates/expo-template-bare-minimum/App.js
exponent/exponent
import { StatusBar } from 'expo-status-bar'; import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default function App() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> <StatusBar style="auto" /> </View> );...
src/svg-icons/communication/call-merge.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMerge = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); CommunicationCallMerge...
node_modules/react-bootstrap/es/Media.js
vietvd88/developer-crawler
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
threeforce/node_modules/react-bootstrap/es/Label.js
wolfiex/VisACC
import _Object$values from 'babel-runtime/core-js/object/values'; import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
modules/RoutingContext.js
kelsadita/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' var { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ var RoutingConte...
demo/static/js/node_modules/react-router/modules/Route.js
OmegaDroid/django-jsx
import React from 'react'; import warning from 'warning'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './PropTypes'; var { string, bool, func } = React.PropTypes; /** * A <Route> is used to declare which components are rendered ...
src/svg-icons/notification/sim-card-alert.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSimCardAlert = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 15h-2v-2h2v2zm0-4h-2V8h2v5z"/> </SvgIcon> ); NotificationSimCard...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
hyuki0000/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.Component { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-header...
examples/css-modules/src/index.js
namuol/react-seamstress
import React from 'react'; import { render } from 'react-dom'; import App from './App'; render(<App />, document.getElementById('root'));
src/pages/chart/Recharts/ReChartsComponent.js
zuiidea/antd-admin
import React from 'react' import PropTypes from 'prop-types' import AreaChartComponent from './AreaChartComponent' import BarChartComponent from './BarChartComponent' import LineChartComponent from './LineChartComponent' const ReChartsComponent = ({ type }) => { if (type === 'areaChart') return <AreaChartComponent ...
src/ScrollContainer/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import styles from './styles.css'; import classNames from 'classnames'; class ScrollContainer extends React.Component { constructor(props) { super(props); this.handleRef = this.handleRef.bind(this); ...
src/client/js/components/ThreadListItem/ThreadListItem.react.js
onomatopio/ChatPlayground
import css from './ThreadListItem.css'; import ChatActionCreators from '../../actions/ActionCreator'; import React from 'react'; import classNames from 'classnames'; class ThreadListItem extends React.Component { static propTypes = { thread: React.PropTypes.object, currentThreadID: React.PropTypes...
frontend/src/components/eois/details/overview/results/resultRadio.js
unicef/un-partner-portal
import React from 'react'; import RadioForm from '../../../../forms/radioForm'; const confirmValues = [ { value: true, label: 'Yes, I accept', }, { value: false, label: 'No, I decline', }, ]; const ResultRadio = () => ( <RadioForm fieldName="confirmation" values={confirmValues} />...
client/omnichannel/installation/Installation.js
iiet/iiet-chat
import React from 'react'; import { Box } from '@rocket.chat/fuselage'; import { useSetting } from '../../contexts/SettingsContext'; import { useTranslation } from '../../contexts/TranslationContext'; import Page from '../../components/basic/Page'; import RawText from '../../components/basic/RawText'; import TextCopy ...
js/components/form/floatingLabel.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Item, Label, Input, Body, Left, Right, Icon, Form, Text } from 'native-base'; import { Actions } from 'react-native-route...
app/javascript/mastodon/features/compose/components/upload_progress.js
res-ac/mstdn.res.ac
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes...
src/listItem.js
Miloucodaisseur/task_manager
import React from 'react'; import jQuery from 'jquery'; import EditableTextField from './EditableTextField'; class ListItem extends React.Component { constructor(){ super(); } componentDidMount() { this.setState({ key: this.props.id, id: this.props.id, projectId: this.props.projectId, description: ...
packages/react-instantsearch-dom/src/widgets/ScrollTo.js
algolia/react-instantsearch
import { connectScrollTo } from 'react-instantsearch-core'; import ScrollTo from '../components/ScrollTo'; /** * The ScrollTo component will make the page scroll to the component wrapped by it when one of the * [search state](guide/Search_state.html) prop is updated. By default when the page number changes, * the s...
entry_types/scrolled/package/src/frontend/ScrollToSectionContext.js
tf/pageflow
import React from 'react'; export default React.createContext(() => {});
bro/components/Tile.js
sullenor/skeleton
import React, { Component } from 'react'; class Tile extends Component { render() { const { visible } = this.props; const classes = 'tile' + (visible ? ' tile--opened' : ''); return ( <i className={ classes } { ...this.props }> { this.props.children } </i> ); } } export defaul...
node_modules/semantic-ui-react/dist/es/elements/List/ListIcon.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { createShorthandFactory, getUnhandledProps, META, SUI, useVerticalAlignProp } from '../../lib'; import Icon from '../Icon/Icon'; /** * A list item can contain an i...
app/containers/HomePage.js
otissv/projectkit
import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
native-module/voiceNative/index.ios.js
deneuv34/tryout-02
/** * 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 voiceNative extends Component { render() { return ( <View style={styles.contain...
webpack/components/AnsibleHostDetail/index.js
theforeman/foreman_ansible
import React from 'react'; import AnsibleHostDetail from './AnsibleHostDetail'; const WrappedAnsibleHostDetail = props => <AnsibleHostDetail {...props} />; export default WrappedAnsibleHostDetail;
src/svg-icons/image/loupe.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLoupe = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3....
test/integration/css-fixtures/bad-custom-configuration-arr-4/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
react-router-demo/lessons/14-whats-next/modules/NavLink.js
zhangjunhd/react-examples
// modules/NavLink.js import React from 'react' import { Link } from 'react-router' export default React.createClass({ render() { return <Link {...this.props} activeClassName="active"/> } })
src/components/common/TextEditor/Mark/UnderlineMark.js
anztrax/simple-image-server-frontend
import React from 'react'; export default class UnderlineMark extends React.Component{ constructor(props){ super(props); } render(){ return ( <u>{this.props.children}</u> ) } }
app/components/NavBar.js
bgrugett/campusManagement
// Required libraries import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; // ------------- Component const NavBar = (props) => { return ( <nav className="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div className="container"> <di...
node_modules/react-bootstrap/es/Breadcrumb.js
firdiansyah/crud-req
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/pages/resume/components/timeline/point/index.js
picchietti/picchietti.io
import React from 'react'; import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import '../index.css'; function Point(props) { const getShortDateRange = () => { if(!props.to) return `${props.from}+`; return `${props.from.slice(-2)}-${props.to.slice(-2)...
src/sync/SyncModal.js
sussol/mobile
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2019 */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Dimensions, View, Text, StyleSheet, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import Mod...
frontend/src/index.js
BrechtBa/homecon
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import 'fontsource-roboto'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') );
dataowner/src/App.js
e-nettet/CustomerConsentWallet
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import NavBar from './NavBar.js'; import ApplyForConcentForm from './ApplyForConcentForm.js'; class App extends Component { render() { return ( <div> <NavBar /> <div className="container theme-showc...
src/pages/pokemon-list.js
tylerchilds/pokedex
import React from 'react'; import TypeList from '../components/type-list'; import PokemonLink from '../components/pokemon-link'; import ALL_POKEMON from '../data/pokemon'; export default class PokemonList extends React.Component { componentDidMount(){ PkSpr.process_dom() } render() { return ( <div...
src/svg-icons/action/flight-takeoff.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightTakeoff = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-....
node_modules/react-icons/fa/github-alt.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaGithubAlt = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15.8 27.1q0 0.9-0.3 1.9t-1 1.7-1.6 0.7-1.6-0.7-1-1.7-0.2-1.9 0.3-1.8 0.9-1.7 1.6-0.7 1.6 0.7 1 1.7 0.3 1.8z m14.3 0q0 0.9-0.3 1.9t-1 1.7-1.6 0.7-1.6-0.7-1-1.7-0.2-...
packages/material-ui-icons/src/SignalCellularConnectedNoInternet2BarOutlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment> , 'SignalCellularConnectedNoInternet2BarOutlined');
node_modules/react-icons/io/social-vimeo.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoSocialVimeo = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.8 8.9c0.5 2.6 0 5.2-1 7.6s-2.5 4.6-4 6.8c-2.1 2.8-4.1 5.5-6.7 7.9-1.5 1.4-3.2 2.7-5.1 3.4-2.5 0.9-4.1 0.4-5.6-1.7-1.1-1.5-1.7-3.1-2.2-4.9-0.9-3.5-1.9-7.1-2.9-...
src/ui/components/Library/Library.react.js
Eeltech/SpaceMusik
import React, { Component } from 'react'; import { Link } from 'react-router'; import PropTypes from 'prop-types'; import FullViewMessage from '../Shared/FullViewMessage.react'; import TracksList from '../Shared/TracksList.react'; /* |-------------------------------------------------------------------------- | Globa...
examples/todomvc/index.js
cyhunter/redux-devtools
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
blueocean-material-icons/src/js/components/svg-icons/action/payment.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionPayment = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); ActionPayment.displayName = 'ActionPayment...
project-templates/reactfiber/externals/react-fiber/fixtures/ssr/src/components/Chrome.js
itsa-server/itsa-cli
import React, { Component } from 'react'; import './Chrome.css'; export default class Chrome extends Component { render() { const assets = this.props.assets; return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial...
src/EventEndingRow.js
jquense/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import clsx from 'clsx' import EventRowMixin from './EventRowMixin' import { eventLevels } from './utils/eventLevels' import range from 'lodash/range' let isSegmentInSlot = (seg, slot) => seg.left <= slot && seg.right >= slot let eventsInSlot = (segments, sl...
node_modules/react-bootstrap/src/OverlayMixin.js
gitoneman/react-soc
import React from 'react'; import CustomPropTypes from './utils/CustomPropTypes'; import domUtils from './utils/domUtils'; export default { propTypes: { container: CustomPropTypes.mountable }, componentWillUnmount() { this._unrenderOverlay(); if (this._overlayTarget) { this.getContainerDOMNode...
src/js/analytics/Footer.js
TTFG-Analytics/commonground
import React from 'react' import { Modal, Button } from 'react-bootstrap'; export default class Footer extends React.Component{ render() { return ( <Modal.Footer> <Button onClick={this.props.toggleModal}>Close</Button> </Modal.Footer> ) } }
fluent-react/test/localized_fallback_test.js
zbraniecki/fluent.js
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import { FluentBundle, FluentResource } from '../../fluent-bundle/src'; import ReactLocalization from '../src/localization'; import { Localized } from '../src/index'; suite('Localized - fallback', function() { test('message id ...
webapp/src/browser/issues/Issue.react.js
yamadapc/git-issues
import Component from 'react-pure-render/component'; import shortParagraph from '../../images/short-paragraph.png'; import React from 'react'; import {Link} from 'react-router'; import './Issue.css'; class IssueDescription extends Component { render() { if(this.props.body.length === 0) { return ( <...
client/app/shared/Tasks/index.js
prilutskiy/hackathon
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { Header, Icon, Segment, List, Button, Form, Input, TextArea, } from 'semantic-ui-react'; import { createContainer } from 'meteor/react-meteor-data'; import { Tasks } from '/imports/collections'; import moment from 'moment';...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
codl/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
src/components/Menu/Menu.js
labzero/lunch
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Link from '../Link'; import s from './Menu.scss'; class Menu extends Component { static propTypes = { closeMenu: PropTypes.func.isRequired, hasGuestRole: PropT...
src/shared/visualization/Sankey.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import { scaleSequential } from 'd3-scale'; import { interpolateLab } from 'd3-interpolate'; import { ResponsiveNetworkFrame } from 'semiotic'; /* * TODOS * Make it vertical on mobile * Generally clarify */ class Sankey extends React.Component { co...
src/svg-icons/maps/local-mall.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_05/start/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' import './stylesheets/ui.scss' import { SkiDayCount } from './components/SkiDayCount' window.React = React render( <SkiDayList days={ [ { resort: "Squaw Valley", date: new Date("1/2/2016"), powder: true, backcountry: false }, { ...
src/svg-icons/device/bluetooth.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetooth = (props) => ( <SvgIcon {...props}> <path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46...
app/react-icons/fa/unlock-alt.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaUnlockAlt extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m30.6 17.1q0.9 0 1.5 0.7t0.6 1.5v12.8q0 0.9-0.6 1.6t-1.5 0.6h-21.5q-0.8 0-...
docs/app/Examples/modules/Dropdown/Content/DropdownExampleHeader.js
clemensw/stardust
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleHeader = () => ( <Dropdown text='Filter' floating labeled button className='icon'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Dropdown.Header icon='tags' content='Filter by tag' /> <Dropdown.Item...
tilapp/src/containers/Scenes/About/index.js
tilap/tilapp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Share } from 'react-native'; import { Container, Content, ListItem, List, Body, Text, View } from 'native-base'; import merge from 'deep-assign'; import parameters from '~/config/parameters'; import config from '~/config/environment'...
stories/sequencing.stories.js
joshwcomeau/react-flip-move
import React from 'react'; import { storiesOf } from '@storybook/react'; import FlipMoveWrapper from './helpers/FlipMoveWrapper'; import FlipMoveListItem from './helpers/FlipMoveListItem'; ['div', FlipMoveListItem].forEach(type => { const typeLabel = type === 'div' ? 'native' : 'composite'; storiesOf(`Sequencing...
packages/icons/src/md/file/CloudDownload.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdCloudDownload(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38.71 20.07C43.89 20.44 48 24.72 48 30c0 5.52-4.48 10-10 10H12C5.37 40 0 34.63 0 28c0-6.19 4.69-11.28 10.7-11.93C13.21 11.28 18.22 8 24 8c7.28...
docs/src/app/components/pages/components/TimePicker/ExampleComplex.js
igorbt/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; export default class TimePickerExampleComplex extends React.Component { constructor(props) { super(props); this.state = {value24: null, value12: null}; } handleChangeTimePicker24 = (event, date) => { this.setState({value24:...
examples/BorderlessTable.js
jareth/react-materialize
import React from 'react'; import Table from '../src/Table'; export default <Table> <thead> <tr> <th data-field="id">Name</th> <th data-field="name">Item Name</th> <th data-field="price">Item Price</th> </tr> </thead> <tbody> <tr> <td>Alvin</td> <td>Eclair</td> <...
src/layouts/PageLayout/PageLayout.js
mertsev/blockchain-escrow
import React from 'react' import { IndexLink, Link } from 'react-router' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({ children }) => ( <div className='container text-center'> <h1>Fintech project</h1> <Link to='/seller' activeClassName='page-layout__nav-item--acti...
src/components/Footer/Nav/Nav-story.js
Tarabyte/foodlr-web
import React from 'react' import Nav from './Nav' import { storiesOf } from '@kadira/storybook' storiesOf('Footer-Navigation', module) .add('Default', () => <Nav />)
app/containers/HomePage/index.js
pashakbit/react-gallery
import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Helmet from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import { selectGallery, selectLoading, selectError, } from './selectors'; import { loadGallery, loadGallerySucc...
components/Module.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; const propTypes = { children: PropTypes.node, className: PropTypes.string, size: PropTypes.oneOf(['single', 'double']), }; const moduleBodyPropTypes = { children: PropTypes.node, centered: PropTypes.bool, c...
demo/components/checkbox/CheckBoxDemo.js
ctco/rosemary-ui
import DemoWithSnippet from '../../layout/DemoWithSnippet'; import CheckBox from '../../../src/CheckBox'; import React from 'react'; export default class CheckBoxDemo extends React.Component { render() { return ( <DemoWithSnippet> <CheckBox label="Checkbox lable - default "/> ...
test/fixtures/node_path/src/index.js
Timer/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
examples/src/components/BooleanSelect.js
foxbroadcasting/react-select
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; var ValuesAsBooleansField = createClass({ displayName: 'ValuesAsBooleansField', propTypes: { label: PropTypes.string }, getInitialState () { return { options: [ ...
src/client.js
roth1002/react-redux-universal-hot-example
/* global __DEVTOOLS__ */ import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import createStore from './redux/create'; import ApiClient from './ApiClient'; import universalRouter from './universalRouter'; const history = new Browser...
src/js/components/icons/base/Layer.js
odedre/grommet-final
/** * @description Layer SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prop...
layout/explore/explore-datasets/explore-datasets-tags/tooltip/component.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; // Components import Tag from 'components/ui/Tag'; class DatasetTagsTooltip extends React.Component { static propTypes = { tags: PropTypes.array.isRequired, onTagSelected: PropTypes.func, }; render() { const { tags, onTagSelected } = th...
example/src/index.js
jedirandy/redux-url
import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware, compose } from 'redux'; import { Provider } from 'react-redux'; import { createBrowserHistory as createHistory } from 'history'; import { createRouter } from 'redux-url'; import reducer from './reducer'; import App fro...