path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/_common/__tests__/Direction-test.js
qingweibinary/binary-next-gen
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import Direction from '../Direction'; describe('<Direction />', () => { it('renders without any properties', () => { const wrapper = shallow(<Direction />); expect(wrapper.type()).to.equal('svg'); }); ...
docs/app/Examples/elements/Label/Content/LabelExampleLinkDetail.js
shengnian/shengnian-ui-react
import React from 'react' import { Icon, Label } from 'shengnian-ui-react' const LabelExampleLinkDetail = () => ( <Label> <Icon name='mail' /> 23 <Label.Detail>View Mail</Label.Detail> </Label> ) export default LabelExampleLinkDetail
components/__tests__/StyledText-test.js
FuzzyHatPublishing/isleep
import 'react-native'; import React from 'react'; import { MonoText } from '../StyledText'; import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create(<MonoText>Snapshot test!</MonoText>).toJSON(); expect(tree).toMatchSnapshot(); });
src/components/app.js
matwej/IAmHungryFor
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import ResultsList from '../containers/results_list'; export default class App extends Component { render() { return ( <div className="container"> <div className="row vert-offset-top-4"> <div class...
src/components/IngestionWizardFormAdvanced/WizardForm.js
giux78/daf-dataportal
import React, { Component } from 'react'; import WizardFormFirstPage from './WizardFormFirstPage'; import WizardFormSecondPage from './WizardFormSecondPage'; import WizardFormThirdPage from './WizardFormThirdPage'; import Steps, { Step } from 'rc-steps'; import themes from '../../data/themes' import licenze from '../.....
packages/reactReduxFormBase/DEV/App.js
daniloster/react-experiments
import React, { Component } from 'react'; import ErrorBoundary from './ErrorBoundary'; import AppModel from './AppModel'; import AppModelList from './AppModelList'; import AppFormState from './AppFormState'; export default class App extends Component { render() { return ( <ErrorBoundary> <AppModel ...
src/components/ui/List.js
elarasu/roverz-chat
/** * List * <List><ListView /></List> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { List } from 'react-native-elements'; // Consts and Libs import { AppColors } from '../../theme/'...
node_modules/react-select/examples/src/components/NumericSelect.js
Sweetgrassbuffalo/ReactionSweeGrass-v2
import React from 'react'; import Select from 'react-select'; var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: 10, label: 'Ten' }, { value: 11, label: 'Eleven' }, { ...
src/app/components/common/SimpleField.js
jhagai/react-redux-demo
import React from 'react'; export default ({input, label, type, meta: {touched, error, warning}}) => { let feedBack = touched && ((error && <span>{error}</span>) || (warning && <span>{warning}</span>)); return ( <div className={'form-group ' + (touched && error ? 'has-error' : '')}> <inpu...
docs/src/examples/modules/Popup/Variations/PopupExampleWide.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Popup } from 'semantic-ui-react' const PopupExampleWide = () => ( <> <Popup trigger={<Icon circular name='heart' />}> Hello. This is a regular pop-up which does not allow for lots of content. You cannot fit a lot of words here as the paragraphs will be pretty ...
app/components/GameCard.js
georgeF105/handball-scoring
import React from 'react' import { Link } from 'react-router' import { formatScore } from '../../lib/formatNumber' export default (props) => { const game = props.game const homeTeam = props.homeTeam || 'Home Team' const awayTeam = props.awayTeam || 'Away Team' const homeTeamScore = formatScore(game.current_sco...
src/pages/list/daigou.js
neekey/daigou
import React from 'react'; import Item from './comp.Item'; import style from './daigou.scss'; import data from 'src/data/index'; import config from '../../components/header/header.json'; import ImagePreview from './imagePreview'; function getDataForCat(cat) { return data({ tags: cat.tags, keyword: cat.keyword }, cat...
JS/server.js
letsspeak/Stock
import React from 'react'; import { renderToString } from 'react-dom/server'; import { createStore } from 'redux' import { Provider } from 'react-redux' import { StaticRouter as Router, Route } from 'react-router-dom' import rootReducer from './reducers' import Layout from './components/Layout' import Portfolio from ...
src/components/swatches/SwatchesColor.js
socialtables/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' export class SwatchesColor extends ReactCSS.Component { shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1]) classes(): any { return { ...
docs/app/Examples/elements/Input/Variations/InputExampleLeftCornerLabeled.js
mohammed88/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleLeftCornerLabeled = () => ( <Input label={{ icon: 'asterisk' }} labelPosition='left corner' placeholder='Search...' /> ) export default InputExampleLeftCornerLabeled
app/components/AdvancedChat.js
andreybutenko/fieldtrip
import React, { Component } from 'react'; import { View, StyleSheet, Text } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import ConversationsRow from './ConversationsRow'; const styles = StyleSheet.create({ container: { height: 30, flexDirection: 'row', a...
frontend/src/router/router.js
Coroneal/spark
import React from 'react'; import { Route, Redirect, IndexRoute } from 'react-router'; import Home from 'container/home/Home'; import SimpleListComponent from 'container/SimpleListComponent'; import PrivatePage from 'container/PrivatePage'; import LoginPage from 'container/LoginPage'; import privateRoute from 'router/...
packages/material/src/components/ScrollView.native.js
wq/wq.app
import React from 'react'; import { ScrollView as PaperScrollView } from 'react-native'; import { useTheme } from 'react-native-paper'; import PropTypes from 'prop-types'; export default function ScrollView({ style, ...rest }) { const theme = useTheme(); return ( <PaperScrollView style={{ ...
example/src/Screens/Docs/AnimatedRoute/Code.js
maisano/react-router-transition
import React from 'react'; import Footer from '../shared/Footer'; import AnimatedRouteJS from '!!prismjs-loader?lang=jsx!./example'; const ExampleCode = () => ( <div> <h2>Example Code</h2> <div> <h3>AnimatedRouteDemo.js</h3> <pre className="language-javascript" dangerouslySetInn...
packages/reactor-kitchensink/src/examples/Charts/Pie/Spie/Spie.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Polar } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; export default class Spie extends Component { store = Ext.create('Ext.data.Store', { fields: ['os', 'data1', 'data2'], ...
app/containers/AdminRelaisCommandes/components/ListeAcheteurs.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { List, makeSelectable } from 'material-ui/List'; import { format } from 'utils/dates'; import compareDesc from 'date-fns/compare_desc'; import...
app/routes/waste-type/CreateRoute.js
ryrudnev/dss-wm
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as WasteType } from '../../entities/WasteType'; import { Collection as MethodTypes } from '../../entities/MethodType'; import { Collection as AggregateStates } from '../../entities/AggregateState'; im...
src/components/ParticipantListItem.js
brianyamasaki/rideshare
import React, { Component } from 'react'; import { Text, TouchableOpacity } from 'react-native'; import { Actions } from 'react-native-router-flux'; class ParticipantListItem extends Component { onEdit() { Actions.participantEdit({ participant: this.props.participant }); } render() { const { firstname, ...
examples/todomvc/containers/Root.js
Drooids/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
client/src/app/routes/misc/containers/Page404.js
zraees/sms-project
import React from 'react' export default class Page404 extends React.Component { render() { return ( <div id="content"> {/* row */} <div className="row"> <div className="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div className="row"> <div className="col-...
src/star/ui/transferbutton/TransferSection.js
flysonic10/initial-celestial-offering
import React from 'react' import TransferButton from './TransferButtonContainer'; class TransferSection extends React.Component { constructor(props) { super(props); this.state = { to: '0x0' } } updateToAddress() { this.setState({to: this.refs.to.value}); } render() { let starInde...
test/app/components/Header.spec.js
halumz/githubSearch
import { expect } from 'chai'; import sinon from 'sinon'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Header from '../../../app/components/Header'; import TodoTextInput from '../../../app/components/TodoTextInput'; function setup() { const props = { addTodo: sinon.spy() }...
src/shared/components/button/button.js
miaket/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; const Button = (props) => { const { handleClick, ...otherProps } = props; return ( <button onSubmit={handleClick} {...otherProps} /> ); }; Button.propTypes = { handleClick: PropTypes.func }; Button.defaultProps = { handleClick: n...
blueocean-material-icons/src/js/components/svg-icons/action/perm-data-setting.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionPermDataSetting = (props) => ( <SvgIcon {...props}> <path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-...
src/components/graph/screens/GraphTagDisplay/containers/GraphTagDisplayContainer.js
yasavbrain/yasav
import React from 'react'; import { Dimensions } from 'react-native'; import { connect } from 'react-redux'; import * as shape from 'd3-shape'; import * as hierarchy from 'd3-hierarchy'; import * as force from 'd3-force'; import * as zoom from 'd3-zoom'; import Colors from 'yasav/src/styles/Colors'; import GraphTagDisp...
src/components/Login/LoginTab.js
ascrutae/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
src/DatePicker/DayButton.js
skarnecki/material-ui
import React from 'react'; import Transition from '../styles/transitions'; import {isEqualDate} from './dateUtils'; import EnhancedButton from '../internal/EnhancedButton'; function getStyles(props, context) { const { date, disabled, selected, } = props; const {hover} = context; const { baseT...
app/client/src/components/SearchUsers/SearchUsers.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { graphql, compose } from 'react-apollo'; import SearchPresentation from 'components/SearchPresentation'; import { addSearchItem, } from 'actions/SearchActions'; import UsersQuery from 'schem...
src/components/search/TimelineCard.js
ChrisWhiten/react-rink
import Schedule from 'material-ui/svg-icons/action/schedule'; import Paper from 'material-ui/Paper'; import Divider from 'material-ui/Divider'; import RaisedButton from 'material-ui/RaisedButton'; import React from 'react'; import moment from 'moment'; import locale from '../../localization/locale'; import './styles/T...
src/svg-icons/content/next-week.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentNextWeek = (props) => ( <SvgIcon {...props}> <path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2...
test/utils/create-test-component.js
vincefliek/Pet-Firebase
import React, { Component } from 'react'; import { findRenderedComponentWithType, renderIntoDocument } from 'react-addons-test-utils'; export function createTestComponent(TestComponent, props) { return findRenderedComponentWithType( renderIntoDocument(<TestComponent {...props}/>), TestComponent ); }
client/common/components/guide/Text/index.js
Haaarp/geo
import React from 'react'; import Label from './../../Label'; import FormWrap from './../../FormWrap'; import FormGroup from './../../FormGroup'; const TextSection = () => ( <FormWrap> <FormGroup> <Label className="lbl-1">Text styles</Label> </FormGroup> <FormWrap className="f...
test/containers/CounterPage.spec.js
RichardLilja/BMC
import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import { createBrowserHistory } from 'history'; import { ConnectedRouter } from 'react-router-redux'; import CounterPage from '../../app/containers/CounterPage'; import { configureStore } from '../../app/store/configureSt...
tus-front-end/src/components/Message.js
nit3owl/testing-utility-server
import React, { Component } from 'react'; class Message extends Component { constructor(props) { super(); } render() { let message; if(this.props.message !== undefined) message = this.props.message; else message = 'Whoops! Something wen...
examples/js/remote/remote-sorting.js
AllenFang/react-bootstrap-table
import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; export default class RemoteSorting extends React.Component { constructor(props) { super(props); } render() { return ( <BootstrapTable data={ this.props.data } remote={ true }...
src/svg-icons/editor/border-bottom.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderBottom = (props) => ( <SvgIcon {...props}> <path d="M9 11H7v2h2v-2zm4 4h-2v2h2v-2zM9 3H7v2h2V3zm4 8h-2v2h2v-2zM5 3H3v2h2V3zm8 4h-2v2h2V7zm4 4h-2v2h2v-2zm-4-8h-2v2h2V3zm4 0h-2v2h2V3zm2 10h2v-2h-2v2zm...
app/src/components/Department/LearnMore.js
open-austin/budgetparty
import React from 'react' import { Link } from 'react-router-dom' import PropTypes from 'prop-types'; import Navigation from '../Navigation' import departments from '../../data/departments.js' const LearnMore = (props) => { const serviceId = props.match.params.service_id const departmentId = props.match.params.id...
src/svg-icons/places/smoke-free.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesSmokeFree = (props) => ( <SvgIcon {...props}> <path d="M2 6l6.99 7H2v3h9.99l7 7 1.26-1.25-17-17zm18.5 7H22v3h-1.5zM18 13h1.5v3H18zm.85-8.12c.62-.61 1-1.45 1-2.38h-1.5c0 1.02-.83 1.85-1.85 1.85v1.5c2.24 0 ...
src/svg-icons/image/iso.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
src/components/form/error/index.js
WHCIBoys/nitpik-web
import React from 'react'; import classNames from 'classnames'; function FormError({ children, isVisible, testid = 'form-error', ...props}) { const formErrorClasses = classNames('bold', 'black', { 'hide': !isVisible }); return ( <div data-testid={testid} className={ formErrorClasses } {...props}> { chil...
src/js/components/TextInput/stories/OnSelect.js
grommet/grommet
import React from 'react'; import { Box, TextInput } from 'grommet'; const suggestions = Array(100) .fill() .map((_, i) => `suggestion ${i + 1}`); export const OnSelect = () => { const [value, setValue] = React.useState(''); const onChange = (event) => setValue(event.target.value); const onSelect = (even...
web/client/configdev/src/config/DiskManager.js
project-owner/Peppy
/* Copyright 2021 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
pfm-eyesightjp/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...
app/javascript/flavours/glitch/features/ui/components/upload_area.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from 'flavours/glitch/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTy...
src/main/js/containers/App.js
rexk/spring-webpack-reactjs
import React from 'react'; import TodoApp from './TodoApp' import './App.less'; class App extends React.Component { static displayName = 'App'; render() { return ( <TodoApp /> ); } } export default App;
examples/react/app.js
spicydonuts/lucid-router
import React from 'react' import ReactDOM from 'react-dom' import * as router from 'lucid-router' import App from './components/App' router.addRoutes([ {name: 'home', path: '/'}, {name: 'friends', path: '/friends'}, {name: 'friends.info', path: '/friends/:name'} ]) router.register(location => rende...
pages/demos/paper.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/demos/paper/paper.md'; function Page() { return ( <MarkdownDocs markdown={markdown} demos={{ ...
node_modules/react-bootstrap/es/Form.js
hsavit1/gosofi_webpage
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 ...
client/trello/src/app/components/HeaderSearch/HeaderSearch.js
Madmous/madClones
import FontAwesome from 'react-fontawesome'; import React from 'react'; import './HeaderSearch.css'; export default function HeaderSearch(props) { return ( <div className="Header-Button Header-Board-Search"> <input className="Header-Board-Search-Input" type="text" autoComplete="...
src/AppRouters.js
hanpanpan200/react-native-starter
import React from 'react' import { Tabs, Scene, Router } from 'react-native-router-flux' import { StyleSheet } from 'react-native' import { connect } from 'react-redux' import Blank from './layout/Blank' import TabIcon from './layout/TabIcon' import { COLOR, FONT } from './constants/theme' const styles = StyleSheet.cr...
react/features/deep-linking/components/DeepLinkingDesktopPage.web.js
bgrozev/jitsi-meet
// @flow import Button, { ButtonGroup } from '@atlaskit/button'; import { AtlasKitThemeProvider } from '@atlaskit/theme'; import React, { Component } from 'react'; import { connect } from '../../base/redux'; import type { Dispatch } from 'redux'; import { createDeepLinkingPageEvent, sendAnalytics } from '../../analyt...
tests/components/Header/Header.spec.js
tyleriguchi/photoshop-battles
import React from 'react' import { Header } from 'components/Header/Header' import classes from 'components/Header/Header.scss' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header/>) ...
app/javascript/mastodon/components/attachment_list.js
mstdn-jp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export default class AttachmentList extends Immutabl...
components/Select/stories.js
insane-ux/rebulma
// @flow import React from 'react' import { storiesOf } from '@kadira/storybook' import Select from './' const options = [ { label: 'Rr', value: 'dr', }, { label: 'Mr', value: 'mr', }, { label: 'Ms', value: 'ms', }, { label: 'Miss', value: 'miss', }, ] storiesOf('Selec...
app/containers/NotFoundPage/index.js
akeel26/react-user-management
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a 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...
src/components/tag/theme/minified.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
app/javascript/mastodon/features/ui/components/actions_modal.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
client/desktop/app/components/teacher/classes/ClassData/StudentData.js
Jakeyrob/thumbroll
import React from 'react' import {Route, RouteHandler, Link} from 'react-router' import api from '../../../../utils/api'; class StudentData extends React.Component { constructor(props){ super(props); this.state = { firstName: this.props.location.state.firstName, lastName: this.props.location.sta...
test/LoginSpec.js
tillkahlbrock/libro-web
import React from 'react'; import { shallow } from 'enzyme'; import Login from 'components/Login'; describe('Login', () => { let defaultProps; beforeEach(() => { defaultProps = { onUsernameInputChange: () => null, onPasswordInputChange: () => null, onLoginButtonClic...
packages/hello-world-example/pages/Home.js
wangzuo/cxx
import React from 'react'; import Layout from '../components/layout'; export default () => <Layout titleTemplate="%s" title="Hello World Example"> <h1>Home</h1> </Layout>;
src/containers/App.js
JailBreakC/react-redux-wechat
import React, { Component } from 'react'; import PropTypes from 'prop-types' import { reduxConnect } from '../helpers' import Panel from './Panel' import ChatContent from './ChatContent' import Copyleft from '../components/Copyleft' import Promise from 'promise' import './App.less'; class App extends Component { sta...
src/desktop/components/fair_week_marketing/__tests__/PageScaffold.jest.js
kanaabe/force
import React from 'react' import { extend, cloneDeep } from 'lodash' import { mount } from 'enzyme' import { FairWeekPageScaffold } from '../PageScaffold' import Fixture from 'desktop/apps/armory_week/fixture.json' describe('FairWeekPageScaffold', () => { const getWrapper = (data = {}) => { const props = extend(...
src/Thumbnail.js
justinanastos/react-bootstrap
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const Thumbnail = React.createClass({ mixins: [BootstrapMixin], propTypes: { alt: React.PropTypes.string, href: React.PropTypes.string, src: React.PropTyp...
src/parser/hunter/marksmanship/modules/features/AlwaysBeCasting.js
FaideWW/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; class AlwaysBeCasting extends CoreAlwaysBeCasting { get suggestionThresholds() { re...
app/components/VendorList.js
stratigos/stormsreach
import React from 'react'; import PropTypes from 'prop-types'; import Vendor from './Vendor'; const VendorList = ({ vendors }) => { return( <div className='crafter-list-container'> {vendors.map( (vendor) => { return(<Vendor key={vendor.id} vendor={vendor} />); })} </div> ); }; VendorLi...
webvis/src/components/DeviceCams.js
kacperzuk/mldrive
import React, { Component } from 'react'; class DeviceCams extends Component { handleRef(ref) { if(this.unmounting || !ref) return; ref.onload = () => { this.handleRef(ref); }; ref.onerror = () => { setTimeout(() => { this.handleRef(ref); }, 500); }; ref.src = this.p...
packages/material-ui-icons/legacy/BatteryCharging20Sharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M11 20v-3H7v5h10v-5h-4.4L11 20z" /><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v13h4v-2.5H9L13 7v5.5h2L12.6 17H17V4z" /></React.Fragment> , 'BatteryCharging20Sharp');
docs/src/HomePage.js
egauci/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageFooter from './PageFooter'; import Grid from '../../src/Grid'; import Alert from '../../src/Alert'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; export default class HomePage extends React.Component { render(...
zwdemoRect/src/components/appBar.js
send2ocean/nodelearn
import React from 'react'; import AppBar from 'material-ui/AppBar'; import Drawer from 'material-ui/Drawer'; import RaisedButton from 'material-ui/RaisedButton'; import MenuItems from './menuItem.js' import IconButton from 'material-ui/IconButton'; import NavigationClose from 'material-ui/svg-icons/navigation/arrow-b...
src/components/pages/RawContentTitle/Page.js
Galernaya20/galernaya20.com
//@flow import React from 'react' import {Footer} from '../../Footer/Footer' import Helmet from 'react-helmet' import {defaultMeta} from '../../../defaultMeta' import {Header} from '../../Header/Header' export const Page = ({header}: {header: Object}) => ( <div> <Header {...header} /> <Helmet meta={defaultM...
example/src/components/3-ClassComposition/ClassCompositionDemo.js
knpwrs/css-modules-electron
import React, { Component } from 'react'; import ClassComposition from './ClassComposition'; import Snippet from '../shared/Snippet/Snippet'; import readFile from '../shared/readFile'; const js = readFile(__dirname, 'StyleVariantA/StyleVariantA.js'); const css = readFile(__dirname, 'StyleVariantA/StyleVariantA.css');...
src/components/common/svg-icons/maps/directions-car.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsCar = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1...
__tests__/index.android.js
iMaddin/Benkio
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
node_modules/react-bootstrap/es/Tab.js
acalabano/get-committed
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import PropTypes from 'pr...
src/avatar/Avatar.js
martinezguillaume/react-native-elements
import PropTypes from 'prop-types'; import React from 'react'; import { View, Text, Image, Platform, StyleSheet, TouchableOpacity, TouchableHighlight, TouchableNativeFeedback, TouchableWithoutFeedback, } from 'react-native'; import ViewPropTypes from '../config/ViewPropTypes'; import Icon from 'reac...
frontend/src/components/helper/LazyFadeIn.js
VitaC123/youTubeMixTape
import React from 'react'; import LazyLoad from 'react-lazyload'; import { CSSTransitionGroup } from 'react-transition-group'; const LazyFadeIn = props => ( <LazyLoad height={props.height || 400} offset={150} once={true}> <CSSTransitionGroup transitionName='fadeInOnLoad' transitionAppear={true} ...
src/index.js
f3rno/react-transition-manager
'use strict'; import React from 'react'; import filter from 'lodash/collection/filter'; import remove from 'lodash/array/remove'; import findIndex from 'lodash/array/findIndex'; import cloneWithClasses from './clone-with-classes'; import isIn from './is-in'; import mergeChildren from './merge-children'; const Transi...
modules/saldotuc-website/src/components/Header/index.js
nerdify/saldotuc
import queryString from 'query-string'; import React from 'react'; import { withRouter } from 'react-router-dom'; import Icon from 'components/Icon'; import { Link, Logo, Wrapper } from './style'; function Header(props) { const query = queryString.parse(props.location.search); if (query && query.ref === 'facebo...
app/javascript/mastodon/features/public_timeline/index.js
Kirishima21/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
test/app/components/TodoItem.spec.js
CKPalk/PA-POC-Video-Contoller
import { expect } from 'chai' import sinon from 'sinon' import React from 'react' import TestUtils from 'react-addons-test-utils' import TodoItem from '../../../app/components/TodoItem' import style from '../../../app/components/TodoItem.css' import TodoTextInput from '../../../app/components/TodoTextInput' function s...
src/components/Dashboard/Workouts/workout.js
gperl27/liftr-v2
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../../actions'; import { Link } from 'react-router'; import ExerciseList from '../Exercises/exercise_list'; import AddExercise from '../Exercises/add_exercise'; import AddWorkout from './add_workout'; import Wo...
shared/components/CategoryHome.js
AndrewGibson27/react-webpack-express-isomorphic-boilerplate
import React, { Component } from 'react'; import { connect, PromiseState } from 'react-refetch'; import { Route, NavLink } from 'react-router-dom'; import StoryList from './StoryList'; import asyncComponent from '../utils/asyncComponent'; import { GridRow, ColumnThree } from '../styles/grid'; function stripCategorySl...
app/javascript/mastodon/features/mutes/index.js
Chronister/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/svg-icons/content/undo.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentUndo = (props) => ( <SvgIcon {...props}> <path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/> </Svg...
src/components/MidiFileInput.js
BenGoldstein88/MidiTester
import React from 'react'; import FileReaderInput from 'react-file-reader-input'; export default class MidiFileInput extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this) } handleChange(e, results) { results.forEach(result => { const [e, f...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-none.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilterNone = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); ImageFilterNone.displayName = 'Image...
packages/react-error-overlay/src/containers/StackFrame.js
maletor/create-react-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 CodeBlock from './StackFrameCodeBlock'; import { getPrettyURL } from '../ut...
frontend/src/components/username-history/list-empty.js
1905410/Misago
import React from 'react'; export default class extends React.Component { getEmptyMessage() { if (this.props.emptyMessage) { return this.props.emptyMessage; } else { return gettext("No name changes have been recorded for your account."); } } render() { /* jshint ignore:start */ r...
src/svg-icons/hardware/speaker-group.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeakerGroup = (props) => ( <SvgIcon {...props}> <path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2...
src/Courses/DeleteCourse/DeleteForm.js
esharp054/SwimmingFishWeb
import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import MenuItem from 'material-ui/MenuItem'; const styles = { buttonStyle: { marginBottom: 12, marginTop: 12 }, dropStyle: { width: '100%', ...
src/index.js
erwaiyang/website-starter-kit
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import store from './store' import App from './App' render( <Provider store={store}> <App /> </Provider>, document.getElementById('root'), )
components/tooltip/Tooltip.js
rubenmoya/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import Portal from '../hoc/Portal'; import { getViewport } from '../utils/utils'; import { TOOLTIP } from '../identifiers'; import events from '../utils/events'; c...
src/components/DataTable/DataTable.js
propertybase/react-lds
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import isEmpty from 'lodash-es/isEmpty'; import omit from 'lodash-es/omit'; import { Row, Table } from '../Table'; import { uniqueId } from '../../utils'; import { propTypes as tablePropTypes } from '../Table/Ta...
pages/api/bottom-navigation-action.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './bottom-navigation-action.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/svg-icons/av/mic-none.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicNone = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ...