path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/svg-icons/communication/stay-primary-landscape.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js
adamruzicka/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Card } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; import { TASKS_DASHBOARD_AVAILABLE_QUERY_MODES, TASKS_DASHBOARD_AVAILABLE_TIMES, TASKS_DASHBOARD_CURRENT_TIME, } from '....
src/components/ProgressBar/ProgressBar.stories.js
guilhermecvm/react-dribbble-components
// import React from 'react' // // import { storiesOf } from '@storybook/react' // import { ProgressBar } from './ProgressBar' // // class ProgressBarWrapper extends React.Component { // constructor(props) { // super(props) // this.state = { pct: 0 } // } // // componentDidMount() { // setTimeout(() =...
src/Parser/AfflictionWarlock/Modules/Talents/MaleficGrasp.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import Enemies from 'Parser/Core/Modules/Enemies'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; ...
app/components/ProductTable.js
pacmessica/hackathon-frontend
import PropTypes from 'prop-types'; import React from 'react'; import ProductRow from './ProductRow'; const products = [ { category: 'Sporting Goods', price: '$49.99', stocked: true, name: 'Football' }, { category: 'Sporting Goods', price: '$9.99', stocked: true, name: 'Baseball' }, { category: 'Sporting Goods',...
docs/src/components/header.js
FormidableLabs/spectacle
import React from 'react'; import styled from 'styled-components'; import Hero from '../screens/home/hero'; import bgImg from '../static/bg_hero_feather.jpg'; import headerTriangle from '../static/svgs/header-triangle.svg'; import logoFormidableWhite from '../assets/logo_formidable_white.png'; const Container = style...
frontend/src/screens/camera-log/camera-log.js
linea-it/qlf
import React from 'react'; import PropTypes from 'prop-types'; import Terminal from '../../components/terminal/terminal'; import Paper from '@material-ui/core/Paper'; const styles = { close: { float: 'right', cursor: 'pointer', }, main: { width: 'calc(100vw - 64px)', margin: '16px', padding: ...
stories/Typography.js
abouthiroppy/scuba
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { Container } from '../src'; storiesOf('Typography', module).add('list', () => ( <Container> <h1>h1 Hello!</h1> <h2>h2 Hello!</h2> <h3>h3 Hello!</h3> <h4>h4 Hello!</h4> <h5>h5 Hello!</h5> <h6>h6 Hello!</h6> </C...
node_modules/react-bootstrap/es/MenuItem.js
yeshdev1/Everydays-project
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 ...
packages/material-ui-icons/src/DesktopMac.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z" /></g> , 'DesktopMac');
src/components/pages/NotFoundPage.js
annamaz/pokedex
import React from 'react'; import {Link} from 'react-router'; const NotFoundPage = () => { return ( <div className="not-found-page"> <h4> 404 Page Not Found </h4> <Link to="/">Go back to homepage</Link> </div> ); }; export default NotFoundPage;
src/app/routes.js
Drathal/redux-playground
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from '../containers/App' import LayoutDashboard from '../components/LayoutDashboard' import LayoutMain from '../components/LayoutMain' import NotFound from '../components/NotFound' import ProductListContainer from '../containers/P...
src/App.js
rbtpzk/react-redux-currency-xchange
import React, { Component } from 'react'; import './App.css'; import NumberInput from './Components/NumberInput' import { fetchData, swapThem, updateSettings } from "./Actions/dataActions" import { connect } from 'react-redux' import Button from './Components/Button'; import Dropdown from './Components/Dropdown'; impor...
packages/web/examples/mongo-examples/DataSearch/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, DataSearch, ReactiveList, ResultCard, SelectedFilters, } from '@appbaseio/reactivesearch'; import './index.css'; const Main = () => ( <ReactiveBase enableAppbase app="default" url="https://us-east-1.aws.webhooks.mongodb-r...
src/components/Preview.js
rsamec/react-designer
import React from 'react'; import Binder from 'react-binding'; import _ from 'lodash'; import {HtmlPagesRenderer} from 'react-html-pages-renderer'; export default class Preview extends React.Component { constructor(props) { super(props); this.state = {data: _.cloneDeep(this.props.schema.props && this.props.s...
packages/example-phone/src/scripts/containers/page-sections/call-page-header.js
good-joe/spark-js-sdk
import React from 'react'; import {connect} from 'react-redux'; import {PageHeader} from 'react-bootstrap'; function CallPageHeader({callStatus}) { return ( <PageHeader>Call Status: <small className="call-status">{callStatus}</small></PageHeader> ); } CallPageHeader.propTypes = { callStatus: React.PropTypes...
src/containers/referrals/index.js
dylanlott/bridge-gui
import React, { Component } from 'react'; import { connect } from 'react-apollo'; import { hashHistory } from 'react-router'; import client from 'utils/api-client'; import gql from 'graphql-tag'; import { ReferralInfo, ReferralLink, SendReferralEmail } from '../../components'; import { isValidEmail } from '../../...
src/scripts/views/form/index.js
JanKuukkanen/Oauth-client-react
import page from 'page'; import React from 'react'; import Broadcaster from '../../components/broadcaster'; import FormData from '../../views/form/form-map'; import BroadcastAction from '../../actions/broadcast'; /** * */ export default React.createClass({ mixins: [ React.addons.LinkedStateMixin ], p...
renderer/components/Icon/Plus.js
LN-Zap/zap-desktop
import React from 'react' const SvgPlus = props => ( <svg className="plus_svg__feather plus_svg__feather-plus" fill="none" height="1em" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} viewBox="0 0 24 24" width="1em" {...props} > <path d...
website/src/PhoneGraphic.js
half-shell/react-navigation
import React, { Component } from 'react'; export default class PhoneGraphic extends Component { props: { sources: { android: string, iphone: string } }; state = { activeExample: this.props.alt ? 'android' : 'iphone' }; render() { const {activeExample} = this.state; return ( <div className="example-...
client/node_modules/react-error-overlay/lib/index.js
bourdakos1/Visual-Recognition-Tool
/** * 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. */ import React from 'react'; import ReactDOM from 'react-dom'; import CompileErrorContainer from './containers/CompileErrorContainer'; im...
blueocean-material-icons/src/js/components/svg-icons/maps/local-phone.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45...
src/components/Feedback/Feedback.js
bmatthews/haze-lea
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
app/javascript/mastodon/features/account_timeline/index.js
hyuki0000/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { refreshAccountTimeline, expandAccountTimeline } from '../../actions/timelines'; import StatusL...
Realization/frontend/czechidm-core/src/components/advanced/Form/EavForm.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import _ from 'lodash'; // import * as Basic from '../../basic'; import * as Utils from '../../../utils'; import { FormAttributeManager } from '../../../redux'; import FormInstance from '../../../domain/FormInstance'; //...
src/main.js
Mrancois/barduino
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-polyfill'; im...
app/components/NewRecipeDialog.js
tempestaddepvc/proyecto-electron
import React from 'react'; import axios from "axios"; import Dialog from 'material-ui/Dialog'; import NavigationClose from 'material-ui/svg-icons/navigation/close'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import Divider from 'material-ui/Divider' import Steps from './St...
public/js/components/chat/tabs1.react.js
MadushikaPerera/Coupley
import React from 'react'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import TextField from 'material-ui/lib/text-field'; import Divider from 'material-ui/lib/divider'; import IconButton from 'material-ui/lib/icon-button'; import Tabs from 'material-ui/lib/tab...
src/components/common/svg-icons/device/airplanemode-inactive.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeInactive = (props) => ( <SvgIcon {...props}> <path d="M13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.68l7.83 7.83L21 16v-2l-8-5zM3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L1...
docs/src/app/components/pages/get-started/Usage.js
pancho111203/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import usageText from './usage.md'; const Usage = () => ( <div> <Title render={(previousTitle) => `Usage - ${previousTitle}`} /> <MarkdownElement text={usageText} /> </div> ); export...
le-react-app/src/Components/Footer.js
TS000/react-app
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <footer className="App-footer"> <h1 className="FooterText">I am the Footer!</h1> </footer> ); } } export default Footer;
geonode/monitoring/frontend/monitoring/src/components/cels/errors/index.js
tomkralidis/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program 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 # ...
app/react-icons/fa/circle-thin.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCircleThin extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m20.1 5.7q-2.9 0-5.5 1.2t-4.6 3-3 4.6-1.1 5.5 1.1 5.5 3 4.6 4.6 3 5.5 1.2...
examples/huge-apps/components/GlobalNav.js
hgezim/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
examples/react-native-counter/index.js
6061960/react_native
import React, { Component } from 'react'; import { AppRegistry, Text } from 'react-native'; var Counter = React.createClass({ getInitialState: function() { return {counter: 0}; }, componentWillMount: function() { setInterval(this.minus, 1000, this); }, add: function() { le...
src/wallet/Transfer.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { injectIntl, FormattedMessage } from 'react-intl'; import steem from 'steem'; import steemConnect from 'sc2-sdk'; import { Form, Input, Radio, Modal } from 'antd'; import { closeTransfer } from './walletActions...
src/frontend/index.js
Tjorriemorrie/pokeraide
import React from 'react'; import ReactDOM from 'react-dom'; import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import rootRoute from './views' ReactDOM.render( <Router routes={rootRoute} history={browserHistory} />, document.getElementById('app') );
Libraries/Components/MapView/MapView.js
mrspeaker/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/svg-icons/image/filter-none.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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> ); Ima...
src/components/ListPicker.js
pixel-glyph/better-reads
import React from 'react'; import PropTypes from 'prop-types'; import BookList from './BookList'; import Plus from './svg/Plus'; class ListPicker extends React.Component { componentDidMount() { if(this.props.newListInputActive) { this.newListName.focus(); } } getNumbooks = (list, i) => { c...
app/javascript/mastodon/features/ui/components/report_modal.js
anon5r/mastonon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports'; import { expandAccountTimeline } from '../../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-pro...
docs/src/app/components/pages/components/List/ExampleContacts.js
ngbrown/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import Divider from 'material-ui/Divider'; import Avatar from 'material-ui/Avatar'; import {pinkA200, transparent} from 'mater...
app/javascript/mastodon/components/error_boundary.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { version, source_url } from 'mastodon/initial_state'; import StackTrace from 'stacktrace-js'; export default class ErrorBoundary extends React.PureComponent { static propTypes = { children: Prop...
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallActionMenu/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
client/components/App.js
brucelane/react-redux
import React from 'react'; import NavigationBar from './NavigationBar'; import FlashMessagesList from './flash/FlashMessagesList'; class App extends React.Component { render() { return ( <div className="container"> <NavigationBar /> <FlashMessagesList /> {this.props.children} ...
examples/ColorPicker/index.android.js
crowtec/react-native-pixel-color
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class ColorPicker extends Component { render() { return ( <View style={styles.contain...
app/javascript/mastodon/components/missing_indicator.js
pointlessone/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='regeneration-indicator missing-indicator'> <div> <div className='regeneration-indicator__figure' /> <div className='regeneration-indicator__label'> <FormattedMessage id=...
packages/react-router-website/modules/examples/Basic.js
goblortikus/react-router
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' const BasicExample = () => ( <Router> <div> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/about">About</Link></li> <li><Link to="/topics">Topics</Link></li> </ul> ...
src/svg-icons/action/change-history.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChangeHistory = (props) => ( <SvgIcon {...props}> <path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/> </SvgIcon> ); ActionChangeHistory = pure(ActionChangeHistory); ActionChangeHistory.display...
website/src/components/gameSummary/MatchupHistory/HistoricalMatchup/index.js
jwngr/notreda.me
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {push} from 'connected-react-router'; import FootballShape from '../../../common/FootballShape'; import {Season, FootballScoreWrapper, HistoricalMatchupWrapper} from './index.styles'; co...
modules/RouteUtils.js
brownbathrobe/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
server/sonar-web/src/main/js/apps/code/components/Component.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
elements/Line.js
udfalkso/react-native-svg
import React from 'react'; import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; import {LineAttributes} from '../lib/attributes'; import Shape from './Shape'; import {pathProps, numberProp} from '../lib/props'; import extractProps from '../l...
src/common/components/header/index.js
canonical-ols/build.snapcraft.io
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { signOut } from '../../actions/auth-store'; import { conf } from '../../helpers/config'; import style from '../../style/vanilla/css/navigation.css'; import containerStyles from '../../containers/container.css'; import { IconUser }...
src/containers/Main.js
Warm-men/Investment-by-react
import React from 'react' class App extends React.Component { render() { return ( <div>{this.props.children}</div> ) } } export default App
components/Footer/Footer.js
Kudrik/ReactTest
import React, { Component } from 'react'; import './footer.scss'; class Footer extends Component { render() { return ( <footer className='footer'></footer> ); } } export default Footer;
packages/node_modules/@ciscospark/widget-message-meet-demo/src/index.js
Altocloud/alto-react-ciscospark
import React from 'react'; import ReactDOM from 'react-dom'; import {IntlProvider} from 'react-intl'; import {CookiesProvider} from 'react-cookie'; // import messages from './locales/en'; import '@ciscospark/react-component-spark-fonts'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProv...
app/main.js
DenisPronin/react-starter
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux' import DevTools from './redux/utils/DevTools' import configureStore from './redux/configureStore' import { rootReducers } from './redux/appRoot' import AppLayout from './views/AppLayout'; const store = configureStore({...
src/scenes/home/informationForm/formComponents/militaryInfo.js
NestorSegura/operationcode_frontend
import React, { Component } from 'react'; import { Line } from 'rc-progress'; import Form from 'shared/components/form/form'; import PropTypes from 'prop-types'; import FormSelect from 'shared/components/form/formSelect/formSelect'; import { MILSTATUS, BRANCH, BRANCH_PROMPT } from 'shared/constants/status'; import styl...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
ontruck/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. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(users) { return [ { id: 1, name: '1' ...
src/components/start-screen/locale-select/LocaleSelect.js
marc-ed-raffalli/geo-game
import React from 'react'; import {Link} from 'react-router-dom'; import './_localeSelect.css'; function getLabel(name) { return <span className="mb-4 text-capitalize text-nowrap">{name}</span>; } export default props => ( <div className="gg-localeSelect d-flex flex-row flex-wrap justify-content-between ...
__tests__/index.ios.js
mrphu3074/react-native-bootstrap
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 /> ); });
src/js/modules/products/ProductTable.js
djordjes/webpack-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import ProductRow from './ProductRow'; import ProductCategoryRow from './ProductCategoryRow'; function ProductTable(props) { console.log(props); const rows = []; let lastCategory = null; props.products.forEach((product) => { if (product.nam...
src/core/containers/FleetSetup.js
getfilament/Distil
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as hqActionCreators from '../actions/hqActionCreators'; import Section from '../components/Section'; import FleetInfoForm from '../components/forms/FleetInfoForm'; let FleetSetup = React.createClass...
src/utils/children.js
felipethome/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export default { create(fragments) { const newFragments = {}; let validChildrenCount = 0; let firstKey; //Only create non-empty key fragments for (const key in fragments) { const currentChild = fragments...
src/routes.js
jch254/audio-insights
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import AboutPage from './shared-components/AboutPage'; import GlossaryPage from './shared-components/GlossaryPage'; import HomePage from './shared-components/HomePage'; import NotFoundPage from './shared-components/NotFoundPage'; import App f...
packages/bonde-admin/src/pages/admin/mobilizations/widgets/form/settings/finish/page.spec.js
ourcities/rebu-client
import React from 'react' import { shallow } from 'enzyme' import { expect } from 'chai' import Page from './page' describe('routes/admin/authenticated/sidebar/widgets-form-settings/finish/page', () => { let wrapper beforeAll(() => { wrapper = shallow(<Page />) }) describe('#render', () => { it('sho...
src/svg-icons/image/photo-camera.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 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-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24...
app/App.js
basask/react-router-material-ui-seed
import React from 'react'; import ReactDom from 'react-dom'; import Routes from './components/Routes'; import './stylesheet/index.scss'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); ReactDom.render( <Routes />, document.getElementById('app') );
src/containers/MyAccount/MyAccount.js
petorious/dmprov-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, intlShape } from 'react-intl'; import { Activity } from '../../containers/Activity' import { setSimpleValue } from '../../store/simpleValues/actions'; import MyAccountForm from...
test/mochaTestHelper.js
glaserp/Maturita-Project
import Bluebird from 'bluebird'; import chai, {assert, expect} from 'chai'; import React from 'react'; import sinon from 'sinon'; import sinonAsPromised from 'sinon-as-promised'; import sinonChai from 'sinon-chai'; import TestUtils from 'react-addons-test-utils'; chai.should(); chai.use(sinonChai); // Use Bluebird Pr...
src/routes/app/routes/pages/routes/faqs/components/FAQs.js
ahthamrin/kbri-admin2
import React from 'react'; import QueueAnim from 'rc-queue-anim'; const Hero = () => ( <section className="hero"> <div className="hero-content"> <h1 className="hero-title">FAQs</h1> </div> <p className="hero-tagline">Frequently Asked Questions</p> </section> ); const FAQs = () => ( <article cl...
src/Textfield.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; import mdlUpgrade from './utils/mdlUpgrade'; const propTypes = { className: PropTypes.string, disabled: PropTypes.bool, error: PropTypes.node, expandable: PropTyp...
src/components/app/form/Submit.js
teamNOne/showdown
import React from 'react'; export default class Submit extends React.Component { render() { return <input type="submit" className={ `btn ${ this.props.type }` } value={ this.props.value } />; } }
packages/demo/src/index.js
marnusw/react-css-transition-replace
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import './transitions.css' import Demo from './Demo' ReactDOM.render(<Demo />, document.getElementById('root'))
fields/types/password/PasswordColumn.js
helloworld3q3q/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var PasswordColumn = React.createClass({ displayName: 'PasswordColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
app/components/papers/album/component.js
DenQ/electron-react-lex
import React, { Component } from 'react'; import { Paper, RaisedButton, Popover, Menu, MenuItem } from 'material-ui'; import PlayIcon from 'material-ui/svg-icons/av/play-circle-filled'; import BaseComponent from 'lex/libs/base/component'; import { I18n } from 'react-redux-i18n'; import Badge from 'material-ui/Badge'; ...
frontend/src/components/Footer.js
dimkarakostas/rupture
import React from 'react'; export default class Footer extends React.Component { render() { return( <footer> <a href='https://ruptureit.com/'>RuptureIt</a> </footer> ); } }
react-ui/src/components/NavTransition.react.js
simonlimon/varsncrafts
import React from 'react'; import { RouteTransition } from 'react-router-transition'; class NavTransition extends React.PureComponent { render() { return ( <div> <RouteTransition pathname={this.props.location.pathname} atEnter={{ opacity: 0 }} atLeave={{ opacity: 0 }} ...
src/utils/devTools.js
BenGoldstein88/redux-chartmaker
import React from 'react'; import { createStore as initialCreateStore, compose } from 'redux'; export let createStore = initialCreateStore; if (__DEV__) { createStore = compose( require('redux-devtools').devTools(), require('redux-devtools').persistState( window.location.href.match(/[?&]debug_sess...
src/svg-icons/device/battery-charging-80.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11...
packages/canvas-media/src/shared/CanvasSelect.js
djbender/canvas-lms
/* * Copyright (C) 2020 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
examples/dynamic-segments/app.js
whouses/react-router
import React from 'react'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</Link></li> </ul> {this.props.children} ...
src/ui-kit/Grid/index.js
Menternship/client-web
// @flow import React from 'react'; import { Grid as GridFB } from 'react-flexbox-grid'; type $props = { children?: any, }; export default ({ children, ...props }: $props) => ( <GridFB {...props} fluid> {children} </GridFB> );
src/components/joystick/JoystickMotorSelect.js
TheGigabots/gigabots-dashboard
import React from 'react'; import PropTypes from 'prop-types' import Typography from 'material-ui/Typography'; import Paper from 'material-ui/Paper'; import Select from 'material-ui/Select'; import {MenuItem} from 'material-ui/Menu'; const style = { height: 75, width: 200, margin: 20, textAlign: 'cent...
tests/framework.spec.js
stefanosKarantin/stefanos-react-prj
import assert from 'assert' import React from 'react' import {mount, render, shallow} from 'enzyme' class Fixture extends React.Component { render () { return ( <div> <input id='checked' defaultChecked /> <input id='not' defaultChecked={false} /> </div> ) } } describe('(Framewo...
src/index.js
undefinedist/sicario
import React from 'react' import ReactDOM from 'react-dom' import Docs from './docs/Docs' import '../node_modules/highlight.js/styles/ocean.css' import './index.css' import registerServiceWorker from './registerServiceWorker' ReactDOM.render(<Docs />, document.getElementById('root')) registerServiceWorker()
app/components/RentalsPage.js
stratigos/stormsreach
/****************************************************************************** * Component for composing the Rentals page of the Housing section. ******************************************************************************/ import React from 'react'; import RentalsContainer from '../containers/RentalsContainer'; ...
src/static/containers/Home/index.js
24HeuresINSA/pass-checker
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import './style.scss'; import reactLogo from './images/react-logo.png'; import reduxLogo from './images/redux-logo.png'; class HomeView extends React.Component { static propTypes = { statusText: React.P...
src/molecules/archive/pagination/component-test.js
dsmjs/components
import React from 'react'; import {shallow} from 'enzyme'; import any from '@travi/any'; import {assert} from 'chai'; import Pagination from '.'; suite('archive pagination', () => { test('that links are rendered for each page', () => { const totalPages = any.integer({min: 2, max: 10}); const currentPage = an...
src/client/components/hoc/Order/withOrders.hoc.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; export const withOrders = WrappedComponent => { const Wrapper = class extends React.Component { render() { return <WrappedComponent {...this.props} />; } }; const mapStateToProps = state => { return { orders: state.orderRedu...
scripts/utils/connectToStores.js
machnicki/healthunlocked
import React, { Component } from 'react'; import shallowEqual from 'react-pure-render/shallowEqual'; /** * Exports a higher-order component that connects the component to stores. * This higher-order component is most easily used as an ES7 decorator. * Decorators are just a syntax sugar over wrapping class in a func...
test/CollapsibleNavSpec.js
JimiHFord/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Navbar from '../src/Navbar'; import CollapsibleNav from '../src/CollapsibleNav'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; describe('CollapsibleNav', function () { it('Should create div and add collapse...
packages/generator-emakinacee-react/generators/app/templates/static/src/index.js
emakina-cee-oss/generator-emakinacee-react
import React from 'react'; import ReactDOM from 'react-dom'; import { Container } from '@cerebral/react'; import App from './containers/App/App'; import controller from './controller'; import registerServiceWorker from './registerServiceWorker'; import './styles/global.scss'; ReactDOM.render( <Container controller...
src/svg-icons/notification/drive-eta.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDriveEta = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ...
test/components/FileUploadProgress_spec.js
georgeOsdDev/react-fileupload-progress
'use strict'; import React from 'react'; import ReactDom from 'react-dom'; import TestUtils from 'react-dom/test-utils'; import chai from 'chai'; import sinon from 'sinon'; let expect = chai.expect; import FileUploadProgress from '../../src/components/FileUploadProgress'; describe('Test of FileUploadProgress', () => {...
src/index.js
papernotes/actemotion
import React from 'react'; import {render} from 'react-dom'; import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk' import {Provider} from 'react-redux'; import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import {syncHistoryWithStore, router...
src/svg-icons/maps/person-pin.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPin = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2...
app-client/src/index.js
vikoperdomo/serverql
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();
docs/app/Examples/collections/Form/FieldVariations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const FormFieldVariationsExamples = () => ( <ExampleSection title='Field Variations'> <ComponentExample title='Inline' ...