path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
examples/NavigationPlayground/js/Banner.js
half-shell/react-navigation
/* @flow */ import React from 'react'; import { Image, Platform, StyleSheet, Text, View, } from 'react-native'; const Banner = () => ( <View style={styles.banner}> <Image source={require('./assets/NavLogo.png')} style={styles.image} /> <Text style={styles.title}>React Navigation E...
client/src/shared/MarkdownBlock.js
clembou/github-requests
import React from 'react'; import marked from 'marked'; marked.setOptions({ renderer: new marked.Renderer(), gfm: true, tables: true, breaks: false, pedantic: false, sanitize: false, smartLists: true, smartypants: false }); const MarkdownBlock = props => <div dangerouslySetInnerHTML={{ __html: marked(...
index.js
codeocelot/react-class-properties
import React from 'react' import ReactDOM from 'react-dom' class App extends React.Component{ constructor(props){ super(props); this.state = { clickCount: props.initialCount} } addOne = () => { this.setState({ clickCount : this.state.clickCount + 1 }); } subOne = () => { this.setState({ click...
Rosa_Madeira/Cliente/src/components/conta/DadoItem.js
victorditadi/IQApp
import React, { Component } from 'react'; import { Text, View } from 'react-native'; import { Icon } from 'native-base'; import { CardSection, Card, Button } from '../common/card_produto'; import { Spinner } from '../common'; import { Container, Content, List, ListItem, InputGroup, Input } from 'native-base'; import { ...
packages/vx-text/src/text/TextBackground.js
Flaque/vx
import React from 'react'; import cx from 'classnames'; export default function TextBackground({ x = 0, y = 0, dx = 0, dy = 0, children, fontSize = 12, fontFamily = 'Arial', textAnchor = 'start', fill = 'white', stroke = 'none', strokeWidth = 0, strokeDasharray, backgroundFill = 'white', ba...
app/components/HorizontalPlayer/stories.js
scampersand/sonos-front
import React from 'react' import { storiesOf, action } from '@kadira/storybook' import HorizontalPlayer from '.' let props = { currentTrackInfo: { album_art: "https://placekitten.com/500/500", }, transportState: "PLAYING", } storiesOf('HorizontalPlayer', module) .add('playing', () => ( <HorizontalPl...
packages/wix-style-react/src/CardGalleryItem/docs/exampleProps.js
wix/wix-style-react
import React from 'react'; import Edit from 'wix-ui-icons-common/Edit'; import Delete from 'wix-ui-icons-common/Delete'; import Email from 'wix-ui-icons-common/Email'; import More from 'wix-ui-icons-common/More'; import { storySettings } from './storySettings'; import PopoverMenu from '../../PopoverMenu'; import { Ba...
actor-apps/app-web/src/app/components/Install.react.js
hmoraes/actor-platform
import React from 'react'; export default class Install extends React.Component { render() { return ( <section className="mobile-placeholder col-xs row center-xs middle-xs"> <div> <img alt="Actor messenger" className="logo" src="assets/img/logo.png" ...
src/entypo/ImageInverted.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ImageInverted'; let EntypoImageInverted = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M18,3H2C1.447,3,1,3.447,1,4v12c0,0.552,0.447,1,1,1h16c0.553,0,1-0.448,1-1V4C19,3.448,18...
src/components/video_list.js
CalinoviciPaul/react
/** * Created by IrianLaptop on 2/5/2017. */ import React from 'react'; import VideoListItem from "./video_list_item"; const VideoList = (props) =>{ const videoItems = props.videos.map((video) => { return <VideoListItem video={video} key ={video.etag} onVideoSelect={props.onVideoSelect}/> }); r...
src/svg-icons/av/web-asset.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWebAsset = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/> </SvgIcon> ); AvWebAsset = pure(AvWebAsset); AvWebAss...
client/component/table/row/loading-row.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; const Row = ( props ) => { const { columns } = props; return ( <tr className="is-placeholder"> { columns.map( ( item, pos ) => ( <td key={ pos }> <div className="wpl-placeholder__loading" /> </td> ) ) } <td> <div className="wp...
app/components/models/scene.react.js
Chaos-Zero/GoemonInternational
import * as THREE from 'three'; import React from 'react'; import ReactDOM from 'react-dom'; import React3 from 'react-three-renderer'; import SettingsAction from 'actions/settings_action'; import OrbitControls from 'components/modelImporter/OrbitControls'; /* scene graph */ class SceneComponent extends React.Componen...
blueocean-material-icons/src/js/components/svg-icons/action/remove-shopping-cart.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionRemoveShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.83 1.62 0 1.1.89 2 1.99 2 .67 0 1....
packages/cf-component-page/test/PageHeader.js
jroyal/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { PageHeader } from '../src/index'; import { felaSnapshot } from 'cf-style-provider'; test('should render title', () => { const snapshot = felaSnapshot(<PageHeader title="Title" />); expect(snapshot.component).toMatchSnapshot(); expect...
src/parser/deathknight/unholy/modules/features/Apocalypse.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Analyzer from 'parser/core/Analyzer'; import EnemyInstances from 'parser/shared/modules/EnemyInstances'; import StatisticBox, { STATISTIC_ORDER } from 'interface/ot...
react-ui/src/components/Shared/Button.js
civicparty/legitometer
import React, { Component } from 'react'; class Button extends Component { render() { return ( <button className="button"> {this.props.text} </button> ); } } export default Button;
src/icons/Bug.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Bug extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M374.64,127.327C345.365,88.512,303.062,64,256,64s-89.365,24.512-118.64,63.327c6.354,15.64,15.833,30,28.13,42.297 c24.1...
docs/src/stories/Readme.js
byumark/react-table
/* eslint-disable import/no-webpack-loader-syntax */ import React from 'react' import marked from 'marked' // import Readme from '!raw!../../../README.md' import 'github-markdown-css/github-markdown.css' export default class Story extends React.Component { render () { return <span className='markdown-body' dange...
src/index.js
ptkach/react-redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, connect } = createAll(React);
src/components/table/EntryTable.js
metasfresh/metasfresh-webui-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import WidgetTooltip from '../widget/WidgetTooltip'; import MasterWidget from '../widget/MasterWidget'; /** * @file Class based component. * @module EntryTable * @extends Component */ export default ...
packages/virtualized/src/virtualize.js
jquense/react-widgets
import React from 'react' import VirtualList, { getVirtualListProps, virtualListPropTypes, } from './VirtualList' export default function virtualize(Widget) { let name = Widget.name || Widget.displayName || 'Widget' name = name[0] + name.slice(1) return class extends React.Component { static displayNam...
app/javascript/mastodon/features/generic_not_found/index.js
yi0713/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator fullPage /> </Column> ); export default GenericNotFound;
docs/app/Examples/elements/List/Variations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ListVariations = () => ( <ExampleSection title='Types'> <ComponentExample ...
packages/ui-toolkit/src/styleguide/logo.js
yldio/joyent-portal
import React from 'react'; export default () => ( <svg width="100" height="22" viewBox="0 0 100 22" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" > <desc>Created using Figma</desc> <g id="Canvas" transform="translate(-7602 299)"> <g id="Joyent"> ...
src/components/Session/Form/__tests__/ExerciseRest.spec.js
diegocasmo/workouter
import React from 'react' import {act} from 'react-dom/test-utils' import {Factory} from 'rosie' import sinon from 'sinon' import {expect} from 'chai' import {shallow, mount} from 'enzyme' import {SessionExerciseRest} from '../ExerciseRest' import {Countdown} from '../../../Time/Countdown' import {WorkoutExerciseItem} ...
src/App.js
theCoolKidsJavaScriptMeetup/PeoriaHackathon
import React, { Component } from 'react'; import { BrowserRouter as Router } from 'react-router-dom' import Firebase from 'firebase' import Navigation from './components/Navigation'; import Footer from './components/Footer'; import Main from './components/Main'; import Sponsors from './components/Sponsors'; import Reg...
src/svg-icons/av/pause-circle-filled.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleFilled = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"/> </SvgIcon> ); AvPauseCircleFilled = pure(AvP...
web/src/components/RecipeSearch.js
Takaitra/RecipeRunt
import React from 'react'; const RecipeSearch = () => { return ( <div className="section no-pad-bot" id="index-banner"> <div className="container"> <div className="search-wrapper row center"> <input id="search" className="autocomplete"/><i className="material-icons">search</i> <...
src/Alert.js
bbc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
client/components/init/weboob-readme.js
ZeHiro/kresus
import React from 'react'; import { connect } from 'react-redux'; import { get } from '../../store'; import { translate as $t, MIN_WEBOOB_VERSION as minVersion } from '../../helpers'; import ExternalLink from '../ui/external-link'; import LocaleSelector from '../settings/customization/locale-selector'; import { rep...
src/components/presentational/CartMenu/CartMenu.js
AurimasSk/DemoStore
import React from 'react'; import PropTypes from 'prop-types'; const CartMenu = ( {productsInCart} ) => { return ( <div> <div className="cart-menu-overlay-div" /> {productsInCart.length > 0 ? productsInCart.map(currentProduct => { <h4> {currentProduct.name} </h4>...
shared/components/App/AsyncEdit/EditRoute.js
deanslamajr/trakta.co
import React from 'react' import Switch from 'react-router-dom/Switch' import Route from 'react-router-dom/Route' import Redirect from 'react-router/Redirect' import withStyles from 'isomorphic-style-loader/lib/withStyles' import { compose } from 'redux' import { connect } from 'react-redux' import Helmet from 'react-h...
NewsAppDemo/index.android.js
SpadeZach/RNNewsApp
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; //引入外部的组件 var Main = require('./Compoent/Main'); export default class NewsAppDemo extends Component { render() ...
docs/src/pages/demos/text-fields/ComposedTextField.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Input, { InputLabel } from 'material-ui/Input'; import { FormControl, FormHelperText } from 'material-ui/Form'; const styles = theme => ({ ...
components/list/List.js
react-toolbox/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { LIST } from '../identifiers'; import InjectListItem from './ListItem'; const mergeProp = (propName, child, parent) => ( child[propName] !== undefined ...
Sources/ewsnodejs-server/node_modules/react-transition-group/esm/Transition.js
nihospr01/OpenSpeechPlatform-UCSD
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import config from './config'; import { timeoutsSha...
server/dashboard/js/components/DashboardEdit.react.js
timofey-barmin/mzbench
import React from 'react'; import DashboardStore from '../stores/DashboardStore'; import BenchStore from '../stores/BenchStore'; import GlobalStore from '../stores/GlobalStore'; import MZBenchRouter from '../utils/MZBenchRouter'; import MZBenchActions from '../actions/MZBenchActions'; import Autosuggest from 'react-aut...
admin/client/views/signin.js
nickhsine/keystone
'use strict'; import classnames from 'classnames'; import React from 'react'; import ReactDOM from 'react-dom'; import SessionStore from '../stores/SessionStore'; import { Alert, Button, Form, FormField, FormInput } from 'elemental'; import { createHistory } from 'history'; var history = createHistory(); var SigninV...
src/routes/MyVideos/components/MyVideo.js
xiaoyai0622/youTubeApiTest
import React from 'react' import Tile from '../../../components/Tile' import Title from '../../../components/Title' class MyVideo extends React.Component { componentWillMount() { } render() { console.log(this.props.movies) if (this.props.movies.myVideo) { return ( <div> <Title title...
__tests__/index.ios.js
vitalybe/ReactNativeUniversal
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
test/control-component-spec.js
peterox/react-redux-form
/* eslint react/no-multi-comp:0 react/jsx-no-bind:0 */ import { assert } from 'chai'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-dom/test-utils'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import sinon from 'sinon'; import capitalize from...
src/interface/statistics/components/Gauge.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { formatPercentage } from 'common/format'; const Gauge = ({ value }) => ( <div className="flex" style={{ textAlign: 'center', marginTop: 12 }}> <div className="flex-main text-right text-muted" style={{ paddingTop: 23, paddingRight: 8, fontSiz...
client/component/rest-api-status/index.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { translate as __ } from 'i18n-calypso'; import classnames from 'classnames'; /** * Internal dependencies */ import ApiResult from './api-result'; import { Spinner } from 'w...
examples/demos/customHeader.js
Incubity/react-big-calendar
import React from 'react'; import BigCalendar from 'react-big-calendar'; import events from '../events'; let MyOtherNestedComponent = React.createClass({ render(){ return <div>NESTED COMPONENT</div> } }) let MyCustomHeader = React.createClass({ render(){ const { label } = this.props return ( ...
app/screens/Matches/Match/MatchInfos/StadiumTooltip/StadiumTooltip.js
mbernardeau/Road-to-Russia-2018
import React from 'react' import PropTypes from 'prop-types' import './stadiumTooltip.scss' const StadiumTooltip = ({ name, photo, city, capacity }) => ( <div className="stadium-tooltip"> <div className="stadium-tooltip-title"> <div>{name}</div> <div>•</div> <div>{city}</div> </div> {p...
packages/website/src/components/content/YouTubeVideo.js
mucsi96/w3c-webdriver
import React from 'react'; import styled from 'styled-components'; const VideoContainer = styled.div` margin: 25px -20px; position: relative; padding-bottom: 56.25%; /*16:9*/ padding-top: 30px; height: 0; overflow: hidden; @media (min-width: 894px) { margin-right: -18px; margin-left: -18px; ...
src/svg-icons/action/store.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStore = (props) => ( <SvgIcon {...props}> <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/> </SvgIcon> ); ActionStore = pure(ActionStore); ActionStore.displayName = ...
docs/src/pages/components/portal/SimplePortal.js
lgollut/material-ui
import React from 'react'; import Portal from '@material-ui/core/Portal'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ alert: { padding: theme.spacing(1), margin: theme.spacing(1, 0), border: '1px solid', }, })); export default function SimplePortal...
react/click-counter/test/click-counter_test.js
fooloomanzoo/js-tests
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-dom/test-utils'; import renderer from 'react-test-renderer'; import ClickCounter from '../src/components/ClickCounter.js'; describe('Basic Functionality', () => { it('Renders ClickCounter component correctly', () => { ...
app/components/SelectFileForm.js
seungha-kim/grade-sms
// @flow import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import s from './SelectFileForm.css'; import cs from './commonStyles.css...
examples/react-router/src/App.js
algolia/react-instantsearch
import React from 'react'; import qs from 'qs'; import { useLocation, useHistory } from 'react-router-dom'; import { InstantSearch, HierarchicalMenu, Hits, Menu, Pagination, PoweredBy, RatingMenu, RefinementList, SearchBox, ClearRefinements, } from 'react-instantsearch-dom'; import algoliasearch fro...
src/Option.js
pedroseac/react-select
import React from 'react'; import classNames from 'classnames'; const Option = React.createClass({ propTypes: { className: React.PropTypes.string, // className (based on mouse position) isDisabled: React.PropTypes.bool, // the option is disabled isFocused: React.PropTypes.bool, ...
tests/components/DropDownMenu.spec.js
trussworks/DoDidDone
import React from 'react'; import { DropDownMenu } from 'components/DropDownMenu'; import { shallow } from 'enzyme'; describe('(Component) DropDownMenu', () => { let _wrapper; beforeEach(() => _wrapper = shallow(<DropDownMenu/>)); it('Renders an FAQ', () => { const menu = _wrapper.find('Menu'); expect(...
src/VibrancyView.android.js
ahanriat/react-native-blur
import React from 'react'; class VibrancyView extends React.Component { render() { console.error("VibrancyView is not implemented on Android"); } } module.exports = VibrancyView
modules/__tests__/pushState-test.js
yongxu/react-router
import expect from 'expect'; import React from 'react'; import resetHash from './resetHash'; import execSteps from './execSteps'; import Router from '../Router'; import Route from '../Route'; describe('pushState', function () { beforeEach(resetHash); var node; beforeEach(function () { node = document.create...
prop-ui-poc/src/components/library/Modals.js
somrajg7/Astoria
import React from 'react'; import {Button, Modal, Panel} from 'react-bootstrap'; import {translate} from 'react-i18next'; var CloseSvgIcon = require('babel!svg-react!../../assets/images/close.svg?name=close'); class Modals extends React.Component { constructor(props) { super(props); // Bind fun...
src/NavItem.js
gianpaj/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
src/components/molecule.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles, Grid, Card, Typography, Link } from '@material-ui/core'; import { has, isNil } from 'lodash-es'; import PageHead from './page-head'; import PageBody from './page-body'; import CardComponent from './item-details-card';...
src/svg-icons/image/assistant.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistant = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11...
client/src/containers/Signup.js
DemocracyGuardians/DGTeam
import React from 'react'; import { connect } from "react-redux"; import { LocalForm, Control } from 'react-redux-form' import { Link, withRouter } from 'react-router-dom' import { Button, Container, Input, Message } from 'semantic-ui-react' import PropTypes from 'prop-types' import { RSAA } from 'redux-api-middleware...
test/specs/chart/RadialBarChartSpec.js
thoqbk/recharts
import React from 'react'; import { expect } from 'chai'; import { RadialBarChart, RadialBar, Legend, Sector, Tooltip } from 'recharts'; import { mount, render } from 'enzyme'; describe('<RadialBarChart />', () => { const data = [ { name: '18-24', uv: 31.47, pv: 2400, fill: '#8884d8' }, { name: '25-29', uv: ...
test/ThumbnailSpec.js
wjb12/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Thumbnail from '../src/Thumbnail'; describe('Thumbnail', () => { it('Should have a thumbnail class and be an anchor', () => { let instance = ReactTestUtils.renderIntoDocument( <Thumbnail href="#" src="#" alt="test" /> ...
src/main.js
findinstore/instore-webapp
import React from 'react'; import ReactDOM from 'react-dom'; import { useRouterHistory } from 'react-router'; import { createHistory } from 'history'; import makeRoutes from './routes'; import Root from './containers/Root'; import configureStore from './store/configureStore'; const historyConfig = { basename: __BASENA...
blueocean-material-icons/src/js/components/svg-icons/maps/flight.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsFlight = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon> ); MapsFlight.displayName = 'Map...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/local-car-wash.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zM7 5c.83 ...
src/App.js
NestorSegura/operationcode_frontend
import React, { Component } from 'react'; import { Route, Router } from 'react-router'; import ReactGA from 'react-ga'; import createHistory from 'history/createBrowserHistory'; import ScrollToTop from 'shared/components/scrollToTop/scrollToTop'; import Home from './scenes/home/home'; const history = createHistory(); ...
src/main/VisualizationWrapper.js
piotr-gawron/pileup.js
/** * @flow */ 'use strict'; import type {TwoBitSource} from './sources/TwoBitDataSource'; import type {GenomeRange, VizWithOptions} from './types'; import React from 'react'; import ReactDOM from 'react-dom'; import d3utils from './viz/d3utils'; import _ from 'underscore'; import d3 from '../lib/minid3'; export ...
resources/src/js/sections/Music/index.js
aberon10/thermomusic.com
'use strict'; // Dependencies import React from 'react'; import Ajax from '../../Libs/Ajax'; // Components import ContentSpacing from '../../components/Containers/ContentSpacing'; import CoverArtist from '../../components/Containers/CoverArtist'; import MainContent from '../../components/Main'; import { stringFromCh...
packages/react/components/messagebar-attachments.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7MessagebarAttachments extends React.Compo...
packages/material-ui-icons/src/ArrowBack.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /></g> , 'ArrowBack');
src/router.js
markpalfreeman/github-labels
import app from 'ampersand-app' import React from 'react' import Router from 'ampersand-router' import qs from 'qs' import uuid from 'node-uuid' import xhr from 'xhr' import PublicPage from './pages/public' import ReposPage from './pages/repos' import RepoDetailPage from './pages/repo-detail' import Layout from './lay...
admin/client/App/shared/Popout/PopoutBody.js
linhanyang/keystone
/** * Render the body of a popout */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, scrollable: React...
packages/generator-ext-react/generators/app/templates/js/App.minimal.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; // Enable responsiveConfig app-wide. You can remove this if you don't plan to build a responsive UI. Ext.require('Ext.plugin.Responsive'); export default class App extends Component { render() { return ( <...
components/react-semantify/src/views/card.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; let defaultClassName = 'ui card'; const Card = React.createClass({ mixins: [ClassGenerator], render: function () { let {className, ...other} = this.props; return ( <div {...other} className={this.getClassName(defau...
app/components/Counter.js
nickrfer/code-sentinel
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styles from './Counter.css'; class Counter extends Component { props: { increment: () => void, incrementIfOdd: () => void, incrementAsync: () => void, decrement: () => void, counter: number }; ...
src/components/App.js
hanndbn/appDemo
import React from 'react'; import PropTypes from 'prop-types'; // This is a class-based component because the current // version of hot reloading won't hot reload a stateless // component at the top-level. class App extends React.Component { componentDidUpdate(){ this.runInit(); } runInit(){ window.scro...
src/svg-icons/image/rotate-90-degrees-ccw.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotate90DegreesCcw = (props) => ( <SvgIcon {...props}> <path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7...
web/containers/About/About.js
viatsko/lyn
import React from 'react'; export default class About extends React.Component { constructor(props) { super(props); } render() { return ( <div> <h1>About</h1> <p>This is about page content</p> </div> ); } }
src/client/src/main.js
dhagan/react-constructor
/* * Copyright 2015 Alexander Pustovalov * * 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 a...
.storybook/Image.stories.js
kylpo/kylpo-monorepo
import React from 'react' import { storiesOf, action } from '@kadira/storybook' import Image from '../Image' import Col from '../packages/Col' storiesOf('Image', module) .add('without children', () => ( <Image src='https://placeholdit.imgix.net/~text?txtsize=33&txt=350%C3%97150&w=350&h=150' /> )) .add('with ...
pages/roadmap.js
bmagic/acdh-client
import React from 'react' import {withReduxSaga} from 'configureStore' import Layout from 'components/Layout' import Title from 'components/Title' import Meta from 'components/Meta' class RoadmapPage extends React.Component { render () { return ( <Layout> <div id='roadmap-page'> <Meta ti...
src/components/FuelSavingsResults.spec.js
lisavogtsf/canned-react-slingshot-app
import React from 'react'; import {shallow} from 'enzyme'; import FuelSavingsResults from './FuelSavingsResults'; describe('<FuelSavingsResults />', () => { it('should display savings when savings exist', () => { const savings = { monthly: '10', annual: '120', threeYear: '360' }; const...
client/src/modules/Login/LoginPage.js
kvago36/graphql-relay
import React, { Component } from 'react'; import { gql, graphql, compose } from 'react-apollo'; import { Header } from 'semantic-ui-react'; import { connect } from 'react-redux'; import { LOGIN } from '../../auth/AuthConstants'; import Login from './Login'; import './LoginPage.css'; class LoginPage extends Component ...
docs/app/Examples/modules/Dropdown/States/DropdownExampleError.js
koenvg/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const options = [ { key: 1, text: 'Choice 1', value: 1 }, { key: 2, text: 'Choice 2', value: 2 }, ] const DropdownExampleError = () => ( <Dropdown text='Dropdown' options={options} error /> ) export default DropdownExampleError
packages/components/src/Dialog/Dialog.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'react-bootstrap/lib/Modal'; import classNames from 'classnames'; import './Dialog.scss'; import Action from '../Actions/Action'; import ActionBar from '../ActionBar'; import Inject from '../Inject'; import Progress from '../Progress'; ...
examples/codepush/app/index.js
bugsnag/bugsnag-react-native
import React, { Component } from 'react'; import CodePush from 'react-native-code-push'; import bugsnag from 'lib/bugsnag'; import NativeCrash from 'lib/native_crash'; import { StyleSheet, Text, Button, View } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyConten...
docs/assets/js/app.js
shibe97/React-AwesomeModal
import React from 'react'; import ReactDOM from 'react-dom'; import Demo from './demo.js'; ReactDOM.render( <Demo />, document.getElementById('App') );
node_modules/rc-time-picker/es/Header.js
ZSMingNB/react-news
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
examples/react-router-redux/src/index.js
stylesuxx/generator-react-webpack-redux
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { browserHistory, Router } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import configureStore from './stores'; import routes from './routes'; const store = configureStore();...
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js
rutan/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import IconButton from '../../../components/icon_button'; import { changeComposeSensitivity } from '../../../actions/compose'; import Motion from '../../ui/util/optional_motion'; im...
src/modules/selects/SelectPlugin/SelectPlugin.js
hellofresh/janus-dashboard
import React from 'react' import PropTypes from 'prop-types' import Select from 'react-select' import 'react-select/dist/react-select.css' import './SelectPlugin.css' const propTypes = { name: PropTypes.string.isRequired, onChange: PropTypes.func.isRequired, options: PropTypes.arrayOf(PropTypes.object).isRequir...
app/containers/Root.js
FermORG/FermionJS
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Routes from '../routes'; type RootType = { store: {}, history: {} }; export default function Root({ store, history }: RootType) { return ( <Provider store={store}> <...
src/components/blocks/BlockFeedbackText.js
m0sk1t/react_email_editor
/* eslint-disable */ import React from 'react'; import { connect } from 'react-redux'; import { stylizeBlock } from '../../actions'; const mapStateToProps = (state) => { return { config: state.tinymce_config }; }; const mapDispatchToProps = (dispatch) => { return { onPropChange: (prop, val, container, elementI...
src/svg-icons/action/compare-arrows.js
ArcanisCz/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...
src/components/SettingsWrapper.js
joellanciaux/Griddle
import React from 'react'; // This is a component that wraps all of the other settings components ( SettingsToggle, Settings, etc). // All of the settings views will be hiddne if isEnabled = false const SettingsWrapper = ({ SettingsToggle, Settings, isEnabled, isVisible, style, className }) => ( isEnabled ? ( <d...
docs/src/PropTable.js
albertojacini/react-bootstrap
import merge from 'lodash-compat/object/merge'; import React from 'react'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); let capitalize = str => str[0].toUpperCase()...
examples/with-typestyle/pages/index.js
BlancheXu/test
import React from 'react' import { style } from 'typestyle' const className = style({ color: 'red' }) const RedText = ({ text }) => <div className={className}>{text}</div> export default () => <RedText text='Hello Next.js!' />
app/containers/Programs/Programs.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Loadable from 'react-loadable'; import isEmpty from 'lodash.isempty'; import { getPrograms, toggleCreateProgramModal, toggleCreateAssessmentModal, selectProgram, } from '../../actions'; ...
public/client-render.js
mookey/consi
'use strict'; import React from 'react'; // eslint-disable-line import ReactDOM from 'react-dom'; import { Router } from 'react-router'; import { routes } from '../server/routes'; import createBrowserHistory from 'history/lib/createBrowserHistory'; require('normalize.css'); require('./entry.scss'); ReactDOM.render(...