path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
node_modules/react-bootstrap/es/InputGroupAddon.js
GregSantulli/react-drum-sequencer
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 ...
blueocean-material-icons/src/js/components/svg-icons/content/content-copy.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentContentCopy = (props) => ( <SvgIcon {...props}> <path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/> </SvgIcon> ); ContentContentCopy.displayName =...
app/imports/client/Pages/Home/index.js
FractalFlows/Emergence
/* * Built by Astrocoders * @flow */ // Modules import React from 'react' import styled from 'styled-components' import { FlatButton, Paper, TextField, RaisedButton, } from 'material-ui' import { white, cyan400, grey300, grey400, grey700, grey800, lightBlue500, } from 'material-ui/styles/colors' // Comp...
src/components/ChatApp/MessageListItem/MessageListItem.react.js
DeveloperAlfa/chat.susi.ai
import React from 'react'; import PropTypes from 'prop-types'; import Emojify from 'react-emojione'; import TextHighlight from 'react-text-highlight'; import {AllHtmlEntities} from 'html-entities'; import $ from 'jquery'; import { imageParse, processText, renderTiles, drawMap, drawTable, renderMessageFooter, render...
react/src/server.js
Brianpan/charity
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
client/modules/Post/__tests__/components/PostListItem.spec.js
Skrpk/mern-sagas
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { BrowserRouter } from 'react-router-dom'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant...
react-dixie-memory-considerate-loading/src/components/MainContent/TwoBox/index.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
app/module-animation/Animation.js
NelsonRock/react-todo-app
import React, { Component } from 'react'; import { render } from 'react-dom'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; class AnimateList extends Component { constructor() { super(...arguments); this.state = { items:[ {id: 1, name: 'Nelson'}, {id: 2, name:...
src/components/Feedback/Feedback.js
kaiqigong/verdant-giggle
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/components/Project.js
drakang4/creative-project-manager
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Card from './Card'; import Text from './Text'; import { secondary, blackLessLight } from '../styles/color'; const Wrapper = styled.div` padding: 16px; padding-top: 72px; `; const Contents = styled.div` ...
client/src/components/hocs/withScrollToTop.js
jenovs/bears-team-14
import React, { Component } from 'react'; export const withScrollToTop = WrappedComponent => { return class ScrollToTop extends Component { componentDidMount() { window.scrollTo(0, 0); } render() { return <WrappedComponent {...this.props} />; } }; };
app/javascript/mastodon/components/media_gallery.js
riku6460/chikuwagoddon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
amazedkoumei/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import ImmutablePropTypes from ...
admin/client/App/components/Navigation/Secondary/index.js
xyzteam2016/keystone
/** * The secondary navigation links to inidvidual lists of a section */ import React from 'react'; import { Container } from 'elemental'; import SecondaryNavItem from './NavItem'; var SecondaryNavigation = React.createClass({ displayName: 'SecondaryNavigation', propTypes: { currentListKey: React.PropTypes.str...
pkg/frontend/src/components/Loader.js
Zenika/MARCEL
import React from 'react' import '../css/loader.css' const Loader = ({ className, style }) => ( <div className={(className || '') + ' loaderContainer fullSize'}> <div className={'loader'} style={style}> Loading... </div> </div> ) export default Loader
src/icons/FlightTakeoffIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FlightTakeoffIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M5 38h38v4H5zm39.14-18.73c-.43-1.6-2.07-2.55-3.67-2.12L29.84 20 16.04 7.13l-3.86 1.04 8.28 14.35-9.9...
ajax/libs/react-instantsearch/4.1.0-beta.3/Connectors.js
extend1994/cdnjs
/*! ReactInstantSearch 4.1.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && ...
src/Marker.js
chugachski/gorilla-bus-FE
import React from 'react' const PSMarker = React.createClass({ render: function() { var K_WIDTH = 40; var K_HEIGHT = 40; var PSMarkerStyle = { position: 'absolute', width: K_WIDTH, height: K_HEIGHT, left: -K_WIDTH / 2, top: -K_HEIGHT / 2, ...
src/app/components/imageableEdit.js
benigeri/soapee-ui
import _ from 'lodash'; import React from 'react'; import cx from 'classnames'; import { Button, Thumbnail } from 'react-bootstrap'; import { imageableThumbUrl } from 'resources/imageable'; export default React.createClass( { render() { return ( <div className="imageable-edit"> ...
packages/mineral-ui-icons/src/IconLocalPlay.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconLocalPlay(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
packages/showcase/showcase-app.js
uber/react-vis
import React from 'react'; import PropTypes from 'prop-types'; import ShowcaseDropdown from './showcase-components/showcase-dropdown'; import { AxesShowcase, PlotsShowcase, SunburstSection, RadialShowcase, RadarShowcase, LegendsShowcase, SankeysShowcase, TreemapShowcase, ParallelCoordinatesShowcase, ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
aovertus/goc_2016_front
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
components/App.js
jordancappy/jorder
import React from 'react' class App extends React.Component { render() { return ( <div> {this.props.children} </div> ) } } export default App
demo/components/Logo.js
Adphorus/react-date-range
import React from 'react'; import PropTypes from 'prop-types'; import Styled from 'rsg-components/Styled'; import logo from './logo.svg'; const styles = ({ fontFamily, color }) => ({ logo: { display: 'flex', alignItems: 'center', margin: 0, fontFamily: fontFamily.base, fontSize: 18, fontWeigh...
Waterfall.js
gimhol/react-native-waterfall
import React, { Component } from 'react'; import { ScrollView, View, StyleSheet} from 'react-native'; import ItemView from './ItemView' var styles = StyleSheet.create({ root: { flex:1, alignSelf:'stretch' }, container: { alignSelf:'stretch' }, header:{ } }) export default class Waterfall extends...
katharsis-ui/src/main/resources/App.js
adnovum/katharsis-framework
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
docs/src/pages/components/tree-view/RecursiveTreeView.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TreeView from '@material-ui/lab/TreeView'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import ChevronRightIcon from '@material-ui/icons/ChevronRight'; import TreeItem from '@material-ui/lab/TreeItem'; const data = ...
src/components/HelpContents/HelpDialog.js
synchu/schema
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import {Dialog, Button, Tabs, Tab} from 'react-toolbox' import {SearchContent, SideNavigation, TopMenuContent, AppSettingsContent, GeneralContent} from '../HelpContents/HelpContents' import classes from './HelpDialog.scss' export class HelpD...
client/app/components/Body/Body.js
sfabrizio/bloggy
import React from 'react'; import BlogStore from '../../stores/BlogStore'; import * as BlogActions from '../../actions/BlogActions'; import BlogItemRow from './BlogItemRow'; import BlogEntryCreator from './BlogEntryCreator'; import Loading from './Loading'; export default class Body extends React.Component { cons...
public/javascripts/main.js
nicrou/react_js_playground
import React from 'react'; import ReactDOM from 'react-dom'; import Counter from './counter'; document.addEventListener('DOMContentLoaded', function() { ReactDOM.render( React.createElement(Counter), document.getElementById('mount') ); });
src/components/layout/SimpleLayout/SimpleLayout.js
jdbence/capstone-project
import React, { Component } from 'react'; import { Layout } from 'react-toolbox/components/index.js'; import { withRouter } from 'react-router'; export default function (Wrapped){ class SimpleLayout extends Component { static propTypes = { router: React.PropTypes.shape({ push: React.PropTyp...
app/javascript/mastodon/features/reblogs/index.js
masto-donte-com-br/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
dsopel94/create-react-app
/** * 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. */ import Rea...
packages/reactReduxFormBase/DEV/schemaData.js
daniloster/react-experiments
import React from 'react'; import { combineValidations } from '../src/formUtils'; export default { 'contacts[].value': combineValidations(({ data, path, value }) => { const isValid = !!value; const message = isValid ? null : ( <span key={`${path}-required`} className="react__form-item-validation-messag...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/phonelink-lock.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationPhonelinkLock = (props) => ( <SvgIcon {...props}> <path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 9.5V11c-.6 0-1.2.6-1.2 1.2v3.5c0 ...
src/helpers/universalRouter.js
sylnp0201/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export function createTr...
src/components/LoginForm.spec.js
raymondji/focus21-sampleapp
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import LoginForm from './LoginForm'; import UserHeadshot from './UserHeadshot'; import LoginFormInput from './LoginFormInput'; describe('<LoginForm />', () => { it('should display a UserHeadshot when email is verified', ()...
src/svg-icons/maps/local-hotel.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsLocalHotel = pu...
src/app/components/media/AutoCompleteMediaItem.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { makeStyles } from '@material-ui/core/styles'; import Box from '@material-ui/core/Box'; import Tooltip from '@material-ui/core/Tooltip'; import Checkbox from '@material-ui/core/Checkbox'; import Typogra...
packages/reactor-kitchensink/src/examples/Grid/GroupedGrid/GroupedGrid.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container, Grid, Toolbar, SegmentedButton, Button, Column } from '@extjs/ext-react'; import './data'; Ext.require([ 'Ext.grid.cell.Number', 'Ext.grid.cell.Widget', 'Ext.grid.SummaryRow', 'Ext.ux.rating.Picker' ]); export default class GroupedGridExamp...
wwwroot/app/src/components/MyRecipesPage/MyRecipesPageContainer.js
AlinCiocan/FoodPlanApp
import React, { Component } from 'react'; import { ApiRequest } from '../../services/ApiRequest'; import Routes from '../../services/Routes'; import RecipeService from '../../services/RecipeService'; import TopBar from '../TopBar/TopBar'; import RecipesList from './RecipesList'; import ConfirmModal from '../base/modal/...
src/client/app/index.js
mapkiwiz/sectorisation
import React from 'react'; import ReactDOM from 'react-dom'; import {App} from './app'; import {Provider} from 'react-redux'; import {reducer} from './reducers/index'; import {loadProject, saveProject} from './shared/project'; import URLSearchParams from 'url-search-params'; const Redux = require('redux'); class Messe...
src/svg-icons/maps/add-location.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
fields/types/azurefile/AzureFileColumn.js
Redmart/keystone
import React from 'react'; var AzureFileColumn = React.createClass({ renderValue () { var value = this.props.data.fields[this.props.col.path]; if (!value) return; return <a href={value.url} target="_blank">{value.url}</a>; }, render () { return ( <td className="ItemList__col"> <div className="ItemLis...
components/Login.js
HossamSamir/instagramClone
import React from 'react'; import { AppRegistry, StyleSheet, Alert, Text, Button, View, Image, TextInput, TouchableOpacity, TouchableHighlight } from 'react-native'; export default () => ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> <Image sour...
src/svg-icons/av/volume-up.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeUp = (props) => ( <SvgIcon {...props}> <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91...
mxcube3/ui/containers/SampleViewContainer.js
meguiraun/mxcube3
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import SampleImage from '../components/SampleView/SampleImage'; import MotorControl from '../components/SampleView/MotorControl'; import PhaseInput from '../components/SampleView/PhaseInput'; imp...
packages/icons/src/md/communication/ImportContacts.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdImportContacts(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42 8c1.5.5 2.8 1.1 4 2v29.2c0 .5-.5 1-1 1-.2 0-.3 0-.5-.1-2.8-1.5-6.2-2.1-9.5-2.1-3.4 0-8.3 1.3-11 3-2.9-2.2-7.1-3-11-3-2.9 0-6.8.9-9.5 2.2-....
actor-apps/app-web/src/app/components/SidebarSection.react.js
hmoraes/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
NavigationReactMobile/sample/isomorphic/server.js
grahammendick/navigation
import express from 'express'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { NavigationHandler } from 'navigation-react'; import { NavigationMotion } from 'navigation-react-mobile'; import getStateNavigator from './getStateNavigator'; import Isomorphic from './Isomorphic'; var app ...
lib/index.js
gavindoughtie/multi-vendor-bundles
import React from 'react'; import ReactDOM from 'react-dom'; export default function entry() { const reactRoot = document.createElement('div'); reactRoot.id = 'my-react-root'; document.body.appendChild(reactRoot); ReactDOM.render(<h1>Loaded All Modules</h1>, reactRoot); } entry();
src/components/ThemeMenu.js
grommet/grommet-docs
// (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Anchor from 'grommet/components/Anchor'; import Layer from 'grommet/components/Layer'; import Box from 'grommet/components/Box'; import Menu from 'grommet/components...
src/components/Roster/Roster.js
footballhackday/hackday-example
'use strict'; import React, { Component } from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Player from './Player'; class Roster extends Component { constructor(props) { super(props); this.state = { roster: null }; } render() { if(!this.state.roster) { return null; } ...
src/native/app/App.js
chad099/react-native-boilerplate
// @flow import type { State } from '../../common/types'; import * as themes from '../themes'; import Menu from './Menu'; import Page from './Page'; import React from 'react'; import SideMenu from 'react-native-side-menu'; import common from '../../common/app/common'; import { Baseline } from '../components'; import { ...
src/app/components/elements/Author/spec.js
TimCliff/steemit.com
import React from 'react'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import Author from './index'; import rootReducer from 'app/redux/RootReducer'; import { configure, shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-15'; configure({ adapter: new Adapter() }); con...
Libraries/Components/Keyboard/Keyboard.js
naoufal/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/maps/edit-location.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsEditLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm-1.56 10H9v-1.44l3.35-3.34 1.43 1.43L10.44 12zm4.45-4.45l-.7.7-1.44-1.44.7-....
js/mutations/AddPlaylistMutation.js
ChrisMLee/relay-mongoose-plair
import Relay from 'react-relay'; import React from 'react'; export default class AddPlaylistMutation extends Relay.Mutation { // static fragments = { // user: () => Relay.QL` // fragment on User { // id // } // ` // }; getMutation () { return Relay.QL`mutation { addPlaylist }`; } getV...
test/JumbotronSpec.js
leozdgao/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Jumbotron from '../src/Jumbotron'; describe('Jumbotron', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Jumbotron> <strong>Content</strong>...
src/routes/home/index.js
luanlv/comhoavang
import React from 'react'; import Home from './Home'; import fetch from '../../core/fetch'; import needFetch from '../../core/needFetch'; import Layout from '../../components/Layout'; import { setData } from '../../actions/data'; import { showLoading, hideLoading } from 'react-redux-loading-bar' export default { pat...
packages/ringcentral-widgets/components/SpinnerOverlay/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Spinner from '../Spinner'; import styles from './styles.scss'; export default function SpinnerOverlay({ className, }) { return ( <div className={classnames(styles.root, className)} > <div className=...
src/components/Body.js
Diane27/big-red-hacks-2017
import React, { Component } from 'react'; export default class Body extends Component { render() { return ( <div className="body"> <p>We Are trip.edu</p> </div> ); } }
src/components/Root.js
tolylya/octoberry
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import routes from '../routes.tsx'; import { Router } from 'react-router'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <Prov...
test/ButtonGroupSpec.js
coderstudy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonGroup from '../src/ButtonGroup'; import Button from '../src/Button'; import { shouldWarn } from './helpers'; describe('ButtonGroup', function () { it('Should output a button group', function () { let instance = ReactTe...
src/desktop-index.js
ericyd/surfplotjs
/** * This is used for the Electron build. * The menu bar handles all other views, * so we only need to mount the plotter. */ import React from 'react'; import ReactDOM from 'react-dom'; import Plotter from './views/Plotter'; import './index.scss'; if (typeof window !== undefined) { ReactDOM.render( <...
frontend/src/components/loader/loader.js
reabreu/discount-ascii-warehouse
import React from 'react'; import SpinningLoader from './loader_style'; export default function () { return ( <SpinningLoader className="loader">Loading...</SpinningLoader> ); }
templates/rubix/node-seed/server.babel.js
jeffthemaximum/jeffline
import path from 'path'; import express from 'express'; import compression from 'compression'; import cookieParser from 'cookie-parser'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import routes from './src/routes'; import { renderHTMLString } from '@sketchpixy/rubix/lib/node/router'; im...
src/view/components/pages/NotFoundPage.js
Danny-Robinson/bt-bingo
/** * Created by 611218504 on 07/06/2017. */ import React from 'react'; const NotFoundPage = () => <div className="notFound"> <h3><font color="white">404 page not found</font></h3> <p><font color="white">These aren't the pages you were looking for...</font></p> <img src="data:image/jpeg;b...
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Original.js
kdambekalns/neos-development-collection
import React from 'react'; export default class Original extends React.PureComponent { render() { const {persistenceIdentifier, previewUri, width, height} = this.props; return ( <ul className="neos-thumbnails"> <li className="asset" data-asset-identifier={persistenceIde...
website/core/SnackPlayer.js
doochik/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...
helloworld/__tests__/App.js
Pandolango/Intercom-Hello-World-
import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <App /> ); });
src/PopupContainer.js
ericsoco/react-leaflet
import React from 'react'; import MapLayer from './MapLayer'; export default class PopupContainer extends MapLayer { render() { const children = this.getClonedChildrenWithMap({ popupContainer: this.leafletElement, }); return <div style={{display: 'none'}}>{children}</div>; } }
antd-dva/dva-restart/src/components/AddTodo.js
JianmingXia/StudyTest
import React, { Component } from 'react'; import { Form, Input, Button } from 'antd'; const FormItem = Form.Item; // const AddTodo = ({ onAdd }) => { // const { getFieldDecorator } = this.props.form; // function onSubmit() { // console.log(this); // } // return ( // <div> // ...
packages/schema-dot-org-json-ld-components/test/component-test.js
zillow/schema-dot-org-markup
//@flow import {configure, render} from 'enzyme'; import {describe, it} from 'mocha'; import chai, {expect} from 'chai'; import Adapter from 'enzyme-adapter-react-15'; import {URL} from 'url'; import React from 'react'; import {VideoObject} from 'schema-dot-org-types'; import {DEFAULT_CONTEXT} from 'schema-dot-org-typ...
src/navbar/navbar.app.js
joeldenning/single-spa-examples
import React from 'react'; import ReactDOM from 'react-dom'; import singleSpaReact from 'single-spa-react'; import navbar from './navbar.component.js'; /* The navbar app is an app that is always active and is responsible for showing the top navbar. * It is written in React and does not even use a router like react-ro...
wrappers/toml.js
Cspeisman/cspeisman.github.io
import React from 'react' import toml from 'toml-js' import DocumentTitle from 'react-document-title' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return (...
src/components/controls/stateless/AuctionListItemControl.js
mm-taigarevolution/tas_web_app
import React from 'react'; import PropTypes from 'prop-types'; import {Media, Container, Row, Col, Badge } from 'reactstrap'; import TimeRemainingControl from './TimeRemainingControl'; import WithTapAnimated from '../stateful/TapAnimator'; const containerStyle = { margin: '15px 0px', padding: '10px', border: '1p...
blueocean-material-icons/src/js/components/svg-icons/places/beach-access.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const PlacesBeachAccess = (props) => ( <SvgIcon {...props}> <path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95-3.93 10.35.02 14.3l2.86-2.86C5.7...
node_modules/recompose/build/Recompose.js
ClaaziX/foodshare
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
src/entypo/RemoveUser.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--RemoveUser'; let EntypoRemoveUser = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M15.989,19.129c0-2.246-2.187-3.389-4.317-4.307c-2.123-0.914-2.801-1.684-2.801-3.334c0-0.989,0...
examples/antd-demo/src/routes/IndexPage.js
zjxpcyc/xrc-form
import React from 'react'; import { connect } from 'dva'; import { Form, Input, Button, Modal } from 'antd'; import FormBody from '../../../../xrc-form/lib'; import styles from './IndexPage.css'; const WrapItem = (props) => { return ( <Form.Item labelCol={{ xs: { span: 24 }, sm: { span: 6 }...
client/test/components/Navbar.spec.js
andela-iamao/iamdocuman
/* global expect:true */ /* global shallow:true */ /* global mount:true */ import React from 'react'; // eslint-disable-line no-unused-vars import { shallow } from 'enzyme'; import Navbar from '../../src/components/reusable/Navbar.component.jsx'; const defaultStyle = { backgroundColor: '#222222', opacity: 0.7, ...
src/svg-icons/image/audiotrack.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAudiotrack = (props) => ( <SvgIcon {...props}> <path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/> </SvgIcon> ); ImageAudiotrack = p...
src/components/Mousetrap.js
zebras-filming-videos/streamr-web
import React from 'react' import forEach from 'lodash/forEach' import mousetrap from 'mousetrap' export default class Mousetrap extends React.Component { componentDidMount () { forEach(this.props.bindings || [], (callback, key) => { mousetrap.bind(key, callback) }) } componentWillUnmount () { ...
src/components/fields/FieldErrors.js
zebras-filming-videos/streamr-web
import React from 'react' export default ({ errors }) => ( <ul className='field-errors'> {errors.map((error) => <li className='field-error' key={error}>{error}</li> )} </ul> )
src/entypo/ArrowWithCircleRight.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ArrowWithCircleRight'; let EntypoArrowWithCircleRight = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,0.4c-5.303,0-9.601,4.298-9.601,9.6c0,5.303,4.298,9.601,9.601,9.601c5....
modules/design/messages.js
liors/wix-chat-settings
import React from 'react'; import * as UI from 'editor-ui-lib'; class Messages extends React.Component { render() { return ( <div> <UI.sectionDividerLabeled label="Messages"/> <UI.fontPicker title="Message text" wix-param="design_m...
src/components/TextArea/TextArea-test.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { mount, shallow } from 'enzyme'; import TextArea from '../TextArea'; describe('TextArea', () => { descr...
src/svg-icons/image/looks-5.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks5 = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/> </SvgI...
src/svg-icons/social/notifications-active.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsActive = (props) => ( <SvgIcon {...props}> <path d="M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02...
src/Picker/SelectField.js
skystebnicki/chamel
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import DropDownArrow from '../svg-icons/drop-down-arrow'; import Paper from '../Paper/Paper'; import Menu from '../Menu/Menu'; import Popover from '../Popover/Popover'; import ThemeService from '../styles/Cha...
react-flux-mui/js/material-ui/src/svg-icons/device/signal-wifi-4-bar-lock.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
src/svg-icons/image/rotate-left.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateLeft = (props) => ( <SvgIcon {...props}> <path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1....
wwwroot/app/src/components/TopBar/TopBar.js
AlinCiocan/FoodPlanApp
import React, { Component } from 'react'; import { Link } from 'react-router'; import logo from './logo.svg'; export default class TopBar extends Component { renderAddButton() { if (this.props.addButton) { return ( <button className="top-bar__side top-bar__s...
fields/types/textarea/TextareaFilter.js
lojack/keystone
import _ from 'underscore'; import classNames from 'classnames'; import React from 'react'; import { FormField, FormInput, FormSelect } from 'elemental'; const CONTROL_OPTIONS = [ { label: 'Matches', value: 'matches' }, { label: 'Contains', value: 'contains' }, { label: 'Begins with', value: 'beginsWith' }, { lab...
app/components/PointMap/index.js
GuiaLa/guiala-web-app
/** * * PointMap * */ import React from 'react'; import styles from './styles.css'; class PointMap extends React.Component { render() { return ( <div className={ styles.pointMap }> <h1>MAPAAAA</h1> </div> ); } } export default PointMap;
src/api/index.js
DigitalGlobe/jetset
import React from 'react'; import PropTypes from 'prop-types'; import logger, { formatBranchArgs } from '../lib/log'; import createActions from './main'; import store from '../store'; export default class Api extends React.Component { static propTypes = { url: PropTypes.string.isRequired, // see ...
app/components/SubredditDescription.js
nantaphop/redd
import React from 'react' import Paper from 'material-ui/Paper' import styled from 'styled-components' import { compose, withHandlers, setDisplayName } from 'recompose' import { inject, observer } from 'mobx-react' import Typography from 'material-ui/Typography' import { CircularProgress } from 'material-ui/Progress'; ...
src/organisms/cards/PolicyCard/PolicyActions.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import accounting from 'accounting'; import Text from 'atoms/Text'; import Layout from 'atoms/Layout'; import Button from 'atoms/Button'; import Hide from 'wrappers/Hide'; import Spacer from 'atoms/Spacer'; import styles from './policy_card.module.scss'; c...
ui/src/containers/ModelAutoComplete/index.js
LearningLocker/learninglocker
import React from 'react'; import { Map } from 'immutable'; import { compose, withProps, withState } from 'recompose'; import AutoComplete2 from 'ui/components/AutoComplete2'; import ModelInput from 'ui/components/AutoComplete2/Inputs/SingleInput/ModelInput'; import ModelOptionList from 'ui/components/AutoComplete2/Opt...