path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/scripts/components/details.js
hustbill/network-verification-ui
import React from 'react'; import { connect } from 'react-redux'; import DetailsCard from './details-card'; class Details extends React.Component { render() { const { controlStatus, details } = this.props; // render all details as cards, later cards go on top return ( <div className="details"> ...
packages/bootstrap-shell/src/providers/Modal/with.js
TarikHuber/react-most-wanted
import Context from './Context' import React from 'react' const withContainer = (Component) => { const ChildComponent = (props) => { return ( <Context.Consumer> {(contextProps) => { return <Component {...contextProps} {...props} /> }} </Context.Consumer> ) } return ...
lib/components/MapHeatmap.js
pjamrozowicz/react-native-maps
import PropTypes from 'prop-types'; import React from 'react'; import { ViewPropTypes, View, } from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; import { PROVIDER_GOOGLE, } from './ProviderConstants'; const viewPropTypes = ViewProp...
src/react/index.js
martinbuberl/boilerplate-web
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App hello="Hello React" />, document.getElementById('root') );
src/challenges/react/React_20.js
bonham000/fcc-react-tests-module
/* eslint-disable */ import React from 'react' import assert from 'assert' import { transform } from 'babel-standalone' import Enzyme from '../Enzyme'; const shallow = Enzyme.shallow; const mount = Enzyme.mount; const render = Enzyme.render; export const QA = true; // ---------------------------- define challenge t...
src/components/Select.js
5-gwoap/adopt-a-family
import React from 'react'; import PropTypes from 'prop-types'; const Select = (props) => ( <select name={props.name}> <option value="donator">Donator</option> <option value="family">Family</option> <option value="organizer">Organizer</option> </select> ); Select.propTypes = { name: PropTypes.string,...
src/app/app.js
borgnix/solid-winner
import 'babel-polyfill' import React from 'react'; import {render} from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import {Provider} from 'react-redux' import {createStore} from 'redux' import Routes from './routes' import reducer from './reducer' export let store = createStore(reducer); s...
app/components/app.js
AidanNichol/stedwards-booking-system
// import 'babel-polyfill' // import 'longjohn'; import React from 'react'; import {isUserAuthorized} from 'services/auth'; // import {loginUser} from '_users' // loginUser() import { Provider } from 'react-redux'; import {store, sagaMiddleware} from 'store'; import { Router, Route, IndexRoute, browserHistory } from...
web/src/index.js
jhonfredynova/Scaffolding-Nodejs-Reactjs
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory } from 'react-router' import { IntlProvider, addLocaleData } from 'react-intl'; import App from './components/App'; import Home from './components/Home'; import About from './components/About'; import Contact from './com...
src/containers/CardGroup/CardGroup.js
apasashkov/treasy-client
import React, { Component } from 'react'; import { DropTarget } from 'react-dnd'; import PropTypes from 'prop-types'; import Auth from '../../utils/Auth'; import Card from '../../components/Card/'; import EditableText from '../../components/EditableText/'; import { CARD_HEIGHT, OFFSET_HEIGHT, CARD_MARGIN } from '../.....
src/routes/index.js
raineroviir/SUWProject
import React from 'react' import { Route, IndexRoute, Redirect } from 'react-router' // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files ...
app/components/header.js
SunsetFrost/ReactMusicPlayer
import React from 'react' import './header.less' let Header=React.createClass({ render(){ return( <div className="components-header row"> <img src="/static/images/logo.png" width="40" alt="" className="-col-auto"/> <h1 className="caption">Music Player</h1> ...
config/index.html.js
pawelgalazka/firestarter
import React from 'react' export default function IndexHtml ({initialState, innerHTML, styles, scripts}) { return ( <html> <head> <meta charSet='utf-8' /> <title>Title</title> <meta name='viewport' content='width=device-width, initial-scale=1' /> {styles.map((cssUrl, index) ...
react/features/settings/components/web/audio/Meter.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { Icon, IconMeter } from '../../../../base/icons'; type Props = { /** * Own class name for the component. */ className: string, /** * Flag indicating whether the component is greyed out/disabled. */ isDisabled?: boolean, /** *...
addons/knobs/src/components/types/Color.js
nfl/react-storybook
import { document } from 'global'; import PropTypes from 'prop-types'; import React from 'react'; import { SketchPicker } from 'react-color'; const conditionalRender = (condition, positive, negative) => (condition ? positive() : negative()); const styles = { swatch: { background: '#fff', borderRadius: '1px'...
node_modules/react-router/modules/Router.js
Maxwelloff/react-football
import createHashHistory from 'history/lib/createHashHistory' import useQueries from 'history/lib/useQueries' import React from 'react' import createTransitionManager from './createTransitionManager' import { routes } from './PropTypes' import RouterContext from './RouterContext' import { createRoutes } from './RouteU...
src/components/Menus/MenuItem.js
instacart/Snacks
import React from 'react' import PropTypes from 'prop-types' import Radium from '@instacart/radium' import { colors } from '../../styles' import Icon from '../Icon/Icon' import spacing from '../../styles/spacing' /* eslint jsx-a11y/no-noninteractive-tabindex: 0 */ const styles = { root: { backgroundColor: '#fff...
src/components/Verse/spec.js
korabh/quran.com-frontend
import React from 'react'; import { shallow } from 'enzyme'; import Ayah from './index'; import ayah from '../../../tests/fixtures/ayah'; let wrapper; describe('<Ayah />', () => { beforeEach(() => { wrapper = shallow(<Ayah ayah={ayah} audioActions={{ setCurrentWord: () => {} }} />); }); it('should render'...
src/containers/CounterContainer/index.js
brucecham/redux-saga
import React from 'react' import { connect } from 'react-redux' import Counter from '@/components/Counter' import CountTimer from '@/components/CountTimer' import { INCREMENT, DECREMENT, INCREMENT_ASYNC, INCREMENT_ASYNC_ONCE } from '@/const/actions' import {CT_SHOW_REQUEST} from '@/const/countTimer' class coun...
frontend/src/Settings/Indexers/Indexers/AddIndexerItem.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Button from 'Components/Link/Button'; import Link from 'Components/Link/Link'; import Menu from 'Components/Menu/Menu'; import MenuContent from 'Components/Menu/MenuContent'; import { sizes } from 'Helpers/Props'; import translate from...
src/components/search_bar.js
gokulraj-ece/React-youtube
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } render() { //return <input onChange={event => this.setState({ term: event.target.value })} /> // return <input ...
src/main.js
emb0624/react-material-design-crud
import 'file?name=[name].[ext]!./index.html'; import 'babel-polyfill'; import 'fastclick'; import 'font-awesome-sass-loader'; import './scss/main.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import injectTapEventPlugin from 'react-tap-event-plugin'; import co...
src/index.js
Schachte/React-Routes-Learning
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import promise from 'redux-promise'; import routes from './routes'; import reducers from './reducers'; cons...
app/containers/CorporatePartnershipsSitesContainer/index.js
tblazina/analytics_project
/* * * CorporatePartnershipsContainer * */ import React from 'react'; import { connect } from 'react-redux'; import {DropdownButton, MenuItem} from 'react-bootstrap'; import {bindActionCreators} from 'redux'; import * as actionCreators from './actions'; import selectCorporatePartnershipsSitesContainer from './sele...
native/app/components/SplashPanel.js
cedricium/notes
import fxaUtils from '../vendor/fxa-utils'; import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { StackActions, NavigationActions } from 'react-navigation'; import { View, Text, ToastAndroid, Image, NetInfo } from 'react-native'; import { KINTO_LOADED } from '....
src/content/Content.js
ltoddy/ltoddy.github.io
import React from 'react' import { Timeline } from 'react-event-timeline' import LazyLoad from 'react-lazyload' import { StyleRoot } from 'radium' import PropTypes from 'prop-types' import { flipInXOption, rollInOption } from '../animation-config' import Repository from './Repository' import Essay from './Essay' impor...
clients/packages/admin-client/src/pages/admin/communities/settings/mailchimp/page.connected.js
nossas/bonde-client
// // @route /community/mailchimp // // New File import React from 'react'; import urljoin from 'url-join'; export default class extends React.Component { componentDidMount() { window.location.href = urljoin(process.env.REACT_APP_DOMAIN_ADMIN_CANARY || "", '/community/integrations/mailchimp'); } render() { ...
app/javascript/mastodon/features/status/index.js
lindwurm/mastodon
import Immutable from 'immutable'; import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { createSelector } from 'reselect'; import { fetchStatus } from '../../actions/...
01/Foo.js
razh/react-intro-fall-2015
import React from 'react'; export default class Foo extends React.Component { render() { return <div>Foo</div>; } }
client/src/components/Draftail/decorators/Link.js
mikedingjan/wagtail
import PropTypes from 'prop-types'; import React from 'react'; import Icon from '../../Icon/Icon'; import TooltipEntity from '../decorators/TooltipEntity'; import { STRINGS } from '../../../config/wagtailConfig'; const LINK_ICON = <Icon name="link" />; const BROKEN_LINK_ICON = <Icon name="warning" />; const MAIL_IC...
app/components/Header.js
loseyear/ReactNativeToDoList
import React, { Component } from 'react'; import { StyleSheet, TextInput, Text, View, } from 'react-native'; import PTD from './../../library/PxToDp'; const s = StyleSheet.create({ box: { marginTop: PTD(6), width: PTD(375), height: PTD(40), fontSize: 20, bac...
src/svg-icons/social/sentiment-neutral.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentNeutral = (props) => ( <SvgIcon {...props}> <path d="M9 14h6v1.5H9z"/><circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C1...
test/PopoverSpec.js
omerts/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Popover from '../src/Popover'; describe('Popover', function () { it('Should output a popover title and content', function () { let instance = ReactTestUtils.renderIntoDocument( <Popover title="Popover title"> <...
web/src/components/pages/HomePage.js
Takaitra/RecipeRunt
import React from 'react'; import TopNav from '../TopNav'; import RecipeSearch from '../RecipeSearch'; require('materialize-css/sass/materialize.scss'); const HomePage = () => { return ( <div> <TopNav/> <RecipeSearch/> </div> ); }; export default HomePage;
src/entypo/Clipboard.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Clipboard'; let EntypoClipboard = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M15.6,2l-1.2,3H5.6l-1.2-3C3.629,2,3,2.629,3,3.4V18.6c0,0.77,0.629,1.4,1.399,1.4h11.2c0.77,0,1.4...
src/components/talks.js
spb-frontend/spb-frontend.ru
import React from 'react' import Helmet from 'react-helmet' import {Link} from 'gatsby' import styles from './../css/meetup.module.css' import {defaultHelmetMeta, Layout} from './layout' const PostLink = ({title, to}) => ( <div className={styles.post}> <header className={styles.header}> <h3 className={sty...
react-flux-mui/js/material-ui/src/svg-icons/action/open-with.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenWith = (props) => ( <SvgIcon {...props}> <path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/> </SvgIcon> ); ActionOpenWith = pure(Act...
docs/build.js
modulexcite/react-bootstrap
import React from 'react'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import Root from './src/Root'; import fsp from 'fs-promise'; import { copy } from '../tools/fs-utils'; import { exec } from '../tools/exec'; import metadata from './generate-metadata'; const repoRo...
src/Home.js
grommet/grommet-docs
// (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; import Article from 'grommet/components/Article'; import Header from 'grommet/components/Header'; import Heading from 'grommet/components/Heading'; import Footer from ...
src/app/core/atoms/icon/icons/download.js
blowsys/reservo
import React from 'react'; const Download = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><rect width="12" height="2" x="6" y="17"/><polygon points="12.00015 15.9999 17.70695 10.2999002 16.29295 8.87990011 12.99995 12.1798998 12.99995 4 10.99995 4 10.99995 12.1798998 7.70695 8.87990011 6.29295 10.2999002"/></g><...
yup/src/index.js
zuik/stuff
import React from 'react'; import ReactDOM from 'react-dom'; import MainPage from './Main.js'; import './index.css'; ReactDOM.render( <MainPage />, document.getElementById('root') );
docs/client.js
mengmenglv/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
src/pages/villon.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Villon' /> )
src/main.js
z0d14c/system-performance-viewer
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.css' // Store Initialization // ------------------------------------ const store = createStore(window.__INITIAL_STATE__) // Render Setup // ------------------------------------ const MOUNT_NO...
example/src/front.js
knpwrs/css-modules-electron
import hook from '../../register'; import React from 'react'; import App from './components/App'; if (typeof document !== 'undefined') { React.render(<App />, document.getElementById('outlet')); }
fields/types/email/EmailColumn.js
ligson/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obje...
src/jp-trade/JpTradeContainer.js
qingweibinary/binary-next-gen
import React, { Component } from 'react'; import shouldPureComponentUpdate from 'react-pure-render/function'; import immutableChildrenToJS from 'binary-utils/lib/immutableChildrenToJS'; import JpTradeCard from './JpTradeCard'; export default class JpTradeContainer extends Component { shouldComponentUpdate = shou...
stories/examples/CardGroups.js
reactstrap/reactstrap
import React from 'react'; import { Card, Button, CardImg, CardTitle, CardText, CardGroup, CardSubtitle, CardBody } from 'reactstrap'; const Example = (props) => { return ( <CardGroup> <Card> <CardImg top width="100%" src="https://picsum.photos/318/180" alt="Card image cap" /> <CardBody>...
react/features/base/react/components/web/Text.js
gpolitis/jitsi-meet
import React, { Component } from 'react'; import { getFixedPlatformStyle } from '../../../styles'; /** * Implements a React/Web {@link Component} for displaying text similar to React * Native's {@code Text} in order to facilitate cross-platform source code. * * @augments Component */ export default class Text ex...
src/components/footer.js
WatkinsSoftwareDevelopment/HowardsBarberShop
import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <div> <nav className="navbar navbar-default navbar-fixed-bottom">\ <div className="container-fluid"> <ul className="nav navbar-nav navbar-right footerText"> ...
src/components/Frontend/Area.js
Angular-Toast/habitat
import React from 'react'; import { StyleSheet, Text, View, ART, } from 'react-native'; const { Surface, Group, Rectangle, ClippingRectangle, LinearGradient, Shape, } = ART; import Art from './Art'; import * as scale from 'd3-scale'; import * as shape from 'd3-shape'; import * as format from 'd3-...
__tests__/components/WorldMap-test.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import WorldMap from '../../src/js/components/WorldMap'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('WorldMap', ()...
blueocean-material-icons/src/js/components/svg-icons/action/pageview.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionPageview = (props) => ( <SvgIcon {...props}> <path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-3.21 14.21l-2.91-2.91c-.6...
src/components/Interactive/Link/index.js
ndlib/usurper
import { Link } from 'react-router-dom' import { connect } from 'react-redux' import { withRouter } from 'react-router' import React from 'react' import PropTypes from 'prop-types' export const LINK_CLICK = 'LINK_CLICK' const svgArrow = ( <svg viewBox='0 0 16 1' preserveAspectRatio='none'> <path d='M0,0 0,0 16,...
src/components/form/preview_item.js
woshisbb43/coinMessageWechat
//1.0.0 components import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * Preview Item for all purpose usage * */ const PreviewItem = (props) => { const { className, label, value, ...others } = props; const cls = classNames({ 'weui-for...
browser/app/js/components/BrowserUpdate.js
harshavardhana/minio
/* * MinIO Cloud Storage (C) 2016 MinIO, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
src/components/GithubButton/GithubButton.js
quicksnap/react-redux-universal-hot-example
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
src/MessageItemFromOther.js
ken2576/ChatApp
import React, { Component } from 'react'; export class MessageItemFromOther extends React.Component { render() { return ( // html -> jsx <div className="message-item message-from-other"> <span>{this.props.message}</span> </div> ); } }
src/components/Sandbox.js
alexfigtree/CoreID
import React, { Component } from 'react'; export default class Sandbox extends Component { render(){ return ( <div id="navbar" className="sidebar app-aside">Sandbox</div> ); } }
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
CivBase/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
sandbox/graphqlVersion/client/components/aaApp.js
guigrpa/mady
// @flow /* eslint-env browser */ import React from 'react'; import { graphql } from 'react-relay'; import moment from 'moment'; import { Floats, Hints, Notifications, hintDefine, hintShow } from 'giu'; import type { KeyFilter } from '../gral/types'; import type { ViewerT } from '../../common/types'; import _t from '...
app/containers/Autocomplete/Input.js
castlemilk/nutry-web
import React from 'react'; import styled from 'styled-components'; // Create an <Input> component that'll render an <input> tag with some styles const Input = styled.input` outline:none; padding-top: 10px; margin-top:5px; margin-bottom:5px; padding-left:10px; width: 100%; `; export default Input
client/src/html.js
HKuz/FreeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; export default class HTML extends React.Component { render() { return ( <html id='__fcc-html' {...this.props.htmlAttributes} lang='en'> <head> <meta charSet='utf-8' /> <meta content='ie=edge' httpEquiv='x-ua-compatib...
ajax/libs/react-select/1.0.0-rc.9/react-select.es.js
wout/cdnjs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElement('span', { className: ...
src/articles/2018-07-18-Prepatch/index.js
sMteX/WoWAnalyzer
import React from 'react'; import { Link } from 'react-router-dom'; import { Zerotorescue } from 'CONTRIBUTORS'; import RegularArticle from 'interface/news/RegularArticle'; import Header from './header.jpg'; export default ( <RegularArticle title="Improve your performance in the Battle for Azeroth pre-patch" publi...
src/svg-icons/image/photo.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePhoto = p...
packages/material-ui-icons/src/FlightTakeoff.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><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-.43 5.31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1....
src/svg-icons/editor/format-size.js
jacklam718/react-svg-iconx
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...
app/components/ProductPanel.js
cqlanus/bons
import React from 'react' import { Link } from 'react-router' const ProductPanel = function({product}) { console.log("PRODUCT Img", product.img) return ( <div className="indivArt"> <Link to={`/products/${product.id}`}> { product.user ? <div className="row"><img src={ product.im...
src/svg-icons/action/zoom-in.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
src/svg-icons/av/fiber-pin.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberPin = (props) => ( <SvgIcon {...props}> <path d="M5.5 10.5h2v1h-2zM20 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-2zM9 11.5c0 .85-.65 1.5-1.5 1.5h-2v2H4V9h3.5c.85...
src/index.js
seydimomogueye/E-MEDIC-FRONTEND
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/routes/appRoutes.js
flyingSprite/sohot
// Libraries import React from 'react'; import { Router, Route, browserHistory } from 'react-router'; // import createBrowserHistory from 'history/lib/createBrowserHistory'; // import App from '../containers/app/app.js'; import Main from '../Containers/main/main.js'; import { MaterialDesignIconView } from '../Cont...
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js
ptomasroos/react-native
'use strict'; import React, { Component } from 'react'; import { Image, Platform, StyleSheet, } from 'react-native'; import ListItem from '../../components/ListItem'; import WelcomeText from './WelcomeText'; export default class WelcomeScreen extends Component { static navigationOptions = { title: 'Welc...
js/react/catch-of-the-day/src/components/StorePicker.js
austinjalexander/sandbox
import React from 'react'; import { render } from 'react-dom'; class StorePicker extends React.Component { render() { return ( <form className="store-selector"> <h2>Please Enter A Store</h2> <input type="text" required placeholder="Store Name" /> <button type="submit">Visit Store →</but...
src/shared/utils/category-select.js
rvboris/finalytics
import React from 'react'; const indent = (node, rootLevel = false, spacer = '&#160;', rate = 3) => { const repeatCount = node.getPath().length - (1 + Number(!rootLevel)); return `${repeatCount ? spacer.repeat(repeatCount * rate) : ''}${node.model.name}`; }; export const optionRenderer = (rootLevel = false) => (o...
client/index.js
diondirza/react-universally
/* eslint-disable global-require */ import React from 'react'; import { render } from 'react-dom'; import BrowserRouter from 'react-router-dom/BrowserRouter'; import asyncBootstrapper from 'react-async-bootstrapper'; import { AsyncComponentProvider } from 'react-async-component'; import './polyfills'; import ReactHo...
src/Badge.js
wjb12/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
docs/app/Examples/elements/Header/index.js
ben174/Semantic-UI-React
import React from 'react' import Types from './Types' import Content from './Content' import States from './States' import Variations from './Variations' const HeaderExamples = () => ( <div> <Types /> <Content /> <States /> <Variations /> </div> ) export default HeaderExamples
app/addons/components/components/copy.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the 'License'); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/svg-icons/toggle/indeterminate-check-box.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleIndeterminateCheckBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"/> </SvgIcon> ); ToggleIndeterminateCheck...
examples/sidebar/app.js
jeffreywescott/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link } from 'react-router'; import data from './data'; var Category = React.createClass({ render() { var category = data.lookupCategory(this.props.params.category); return ( <div> <h1>{cat...
src/modules/pages/About.js
OCMC-Translation-Projects/ioc-liturgical-db-public-app
import React from 'react' import server from '../../config/server'; import Email from "../components/images/SsEmailContact" import {AboutDatabase, Configuration} from 'ioc-liturgical-react' import VersionNumbers from "../../config/VersionNumbers"; import { connect } from 'react-redux'; class About extends React.Compon...
app/screens/containers/seller/goods-edit.js
yiyinsong/react-native-example-jdh
import React, { Component } from 'react'; import { View, Text, ScrollView, TouchableOpacity, TextInput, Image, FlatList, InteractionManager, DeviceEventEmitter, Modal, WebView, KeyboardAvoidingView } from 'react-native'; import Utils from '../../../js/utils'; import Config from '../../../config...
src/client/viewer.components/Viewer.Extensions/Viewing.Extension.PlantFactory/Viewing.Extension.PlantFactory.js
jeremytammik/forgefader
///////////////////////////////////////////////////////// // Viewing.Extension.PlantFactory // by Philippe Leefsma, March 2017 // ///////////////////////////////////////////////////////// import ExtensionBase from 'Viewer.ExtensionBase' import './Viewing.Extension.PlantFactory.scss' import WidgetContainer from 'WidgetC...
src/components/__tests__/RichTextEditor-test.js
tsaiDavid/react-rich-text-editor
jest.unmock('../RichTextEditor'); import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import CheckboxWithLabel from '../CheckboxWithLabel';
tool/Atlas/js/components/NodeMenu.js
Metalith/Astrum
import React from 'react'; import { connect } from 'react-redux'; import Actions from '../Actions'; import Inputs from './NodeTypes/Input'; import Maths from './NodeTypes/Math'; import Noise from './NodeTypes/Noise'; class MenuItem extends React.Component { render() { return <div className="Node...
src/docs/examples/ProgressBar/Example70Percent.js
abhiisheek/ps-react-abhiisheek
import React from 'react'; import ProgressBar from 'ps-react-abhiisheek/ProgressBar'; /** 70% Progress */ const Example70Percent = () => { return <ProgressBar percent={70} width={150} />; }; export default Example70Percent;
src/components/Profile/Profile.js
peachy19/senpie
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ProfileHead from './ProfileHead'; import Header from '../Header' import Skills from './Skills'; import Experience from './Experience'; import Education from './Education'; import Description from './Description'; import axios from '...
src/RichTextArea/htmlSerializer.js
skyiea/wix-style-react
import React from 'react'; import {Html} from 'slate'; const BLOCK_TAGS = { p: 'paragraph', ul: 'unordered-list', li: 'list-item', ol: 'ordered-list', img: 'image' }; const MARK_TAGS = { em: 'italic', strong: 'bold', u: 'underline' }; const INLINE_TAGS = { a: 'link' }; const rules = [ { dese...
src/components/Notification.js
magalhini/react-ui-notification
/* jshint esversion:6 */ import React from 'react'; import Styles from './Styles'; class Notification extends React.Component { constructor(props) { super(props); this.onDismiss = this.onDismiss.bind(this); } componentDidUpdate(props) { if (!this.props.isActive) { requ...
app_videos/skeleton/src/app/App.js
RPallas92/congreso-web-2016
import React, { Component } from 'react'; import Either from 'data.either'; import { Empty, searchVideos } from './domain/model'; import VideoSearch from './views/VideoSearch'; import styles from './styles/styles'; class App extends Component { constructor(props) { super(props); this.state = { ...
chapter-06/hoc/src/proxy/RefsHOC.js
mocheng/react-and-redux
import React from 'react'; const refsHOC = (WrappedComponent) => { return class HOCComponent extends React.Component { constructor() { super(...arguments); this.linkRef = this.linkRef.bind(this); } linkRef(wrappedInstance) { this._root = wrappedInstance; } render() { co...
src/svg-icons/action/today.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToday = (props) => ( <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/> </SvgIcon> ); Ac...
src/components/common/svg-icons/action/gavel.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGavel = (props) => ( <SvgIcon {...props}> <path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z...
__tests__/src/components/options.spec.js
bluedaniel/Kakapo-app
import React from 'react'; import { MemoryRouter } from 'react-router-dom'; import { ImportOptions } from 'components/'; import { createComponentWithIntl } from '../helper'; test('<Options/> render', () => { const props = {}; const tree = createComponentWithIntl( <MemoryRouter> <ImportOptions {...props} ...
tests/client/amo/components/TestLanguagePicker.js
squarewave/addons-frontend
import React from 'react'; import { Simulate, renderIntoDocument, findRenderedComponentWithType, } from 'react-addons-test-utils'; import { findDOMNode } from 'react-dom'; import { Provider } from 'react-redux'; import createStore from 'amo/store'; import { LanguagePickerBase, changeLocaleURL, } from 'amo/co...
app/Components/Chat/Header/Header.js
martinvarelaaaa/tintina
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text, TouchableOpacity, Modal } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import Avatar from '../../../Components/Atoms/Avatar'; import { TextBasic } from '../../Atoms/Text'; import ChangeChild...
client/modules/questions/components/sessionFinish.js
johngonzalez/abcdapp
import React from 'react'; import {Button} from 'react-bootstrap'; const SessionFinish = ({error, sessionId, code, finish, children}) => ( <div> {error ? <p style={{color: 'red'}}>error</p> : null} <p>{`Comparte el siguiente código con tus estudiantes: ${code}`}</p> <Button bsStyle="danger" bsSize="large...
App/db/entities/content/Place.js
nthbr/mamasound.fr
/* * Copyright (c) 2017. Caipi Labs. All rights reserved. * * This File is part of Caipi. You can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. ...