path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
test/js/release_test/PhysicsGroupTest.js
viromedia/viro
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { ViroScene, ViroBox, ViroMaterials, ViroNode, ViroImage, ViroVideo, ViroFlexView, V...
lib/components/displayConversation.js
jksmall0631/shoot-da-breeze
import React from 'react'; import DisplayMessage from './DisplayMessage'; const DisplayConversation = ({messages, userMessages, reverse})=>{ if(userMessages) { if(reverse){ return ( <ul className="message-container"> {userMessages.reverse().map((message) => { return (<DisplayM...
source/containers/ContentPage/index.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Switch } from 'react-router-dom'; import NotFound from 'components/NotFound'; import { css } from 'emotion'; import { mobileMaxWidth } from 'constants/css'; import Content from './Content'; ContentPage.propTypes = { match: PropTypes.objec...
react-ui/src/components/shared/GenericLoader.js
EdwinJow/truthindata
import React, { Component } from 'react'; import '../../css/shared/generic-loader.min.css'; class GenericLoader extends Component { constructor(props) { super(props); this.state = { open: props.open }; } componentWillReceiveProps(nextProps) { if (nextPro...
src/svg-icons/notification/do-not-disturb.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturb = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13...
beta/frontend-frameworks/calculator/src/main.js
GregoryGoncalves/freecodecamp
/* Author: Selhar Date: 2017 Contact: selhar@protonmail.com License: GPL */ import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import Index from './components/indexComponent'; import store from './store'; const css = require('./main.scss'); render( <P...
node_modules/react-router/es6/IndexRoute.js
laere/country-news
'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e...
src/js/ui/components/tabMenu.js
hiddentao/heartnotes
import _ from 'lodash'; import React from 'react'; import Classnames from 'classnames'; var Tab = React.createClass({ propTypes: { data: React.PropTypes.object.isRequired, onSelect: React.PropTypes.func.isRequired, active: React.PropTypes.bool, attention: React.PropTypes.object, }, render: fun...
src/components/LandingStatic/LandingNavItems.js
ortonomy/flingapp-frontend
import React from 'react'; // library dependencies import { Link } from 'react-router-dom'; // styles import styles from './LandingNav.module.css'; const LandingNavItems = ({ items, ...props}) => { return ( <div className={styles.NavBarNavItems}> { items && items.map( (item, i) => { ret...
components/person-view.js
pho3nixf1re/followupboss-example
import React from 'react'; import isEmpty from 'lodash/isEmpty'; import State from 'lib/state'; import {actions as peopleActions} from 'lib/reactions/people'; import Person from 'components/person'; const PersonView = React.createClass({ propTypes: { state: React.PropTypes.object, params: React.P...
docs/src/app/components/pages/get-started/ServerRendering.js
mtsandeep/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import serverRenderingText from './server-rendering.md'; const ServerRendering = () => ( <div> <Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} /> <MarkdownElemen...
client/components/HomePage.js
GO345724/pair-programming
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as problemsActions from '../actions/problemsActions'; import * as userActions from '../actions/userActions.js'; import ChooseUserName from './ChooseUser...
src/routes/hat/Hat.js
macdja38/pvpsite
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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, { Component } from 'react'; import PropTypes...
src/React/Widgets/NumberSliderWidget/example/index.js
Kitware/paraviewweb
import 'normalize.css'; import React from 'react'; import ReactDOM from 'react-dom'; import NumberSliderWidget from 'paraviewweb/src/React/Widgets/NumberSliderWidget'; class ColorField extends React.Component { constructor(props) { super(props); this.state = { r: 30, g: 60, b: 90, }; ...
frontend/src/components/popup/ProductDetails.js
jirkae/BeerCheese
import React from 'react'; import { Modal, ModalBody, Container, Row, Col } from 'reactstrap'; export default props => { return ( <Modal isOpen={true} toggle={props.hideModals}> <ModalBody> <Container> <Row> <Col> <Row> {props.data.name} ...
resource/js/components/Page/PageBody.js
kyonmm/crowi
import React from 'react'; export default class PageBody extends React.Component { constructor(props) { super(props); this.crowiRenderer = window.crowiRenderer; // FIXME this.getMarkupHTML = this.getMarkupHTML.bind(this); } getMarkupHTML() { let body = this.props.pageBody; if (body === '')...
packages/material-ui-icons/src/CheckCircle.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CheckCircle = props => <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" /> </SvgIcon>; CheckCircle = ...
src/svg-icons/notification/sync.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSync = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25...
Realization/frontend/czechidm-core/src/components/basic/Table/LinkCell.js
bcvsolutions/CzechIdMng
import React from 'react'; import { Link } from 'react-router-dom'; import pathToRegexp from 'path-to-regexp'; import _ from 'lodash'; // import { SecurityManager } from '../../../redux'; import DefaultCell from './DefaultCell'; import Popover from '../Popover/Popover'; import Button from '../Button/Button'; // TODO: L...
geonode/contrib/monitoring/frontend/src/components/molecules/ws-service-select/index.js
timlinux/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; import actions from './actions'; const mapStateToProps = (state) => ({ services: state.wsServices.response, select...
docs/src/CodeExample.js
HorizonXP/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
packages/mineral-ui-icons/src/IconNearMe.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 IconNearMe(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}>...
packages/cf-component-label/example/basic/component.js
mdno/mdno.github.io
import React from 'react'; import { Label } from 'cf-component-label'; const LabelComponent = () => ( <p> <Label type="default">Default</Label> <Label type="info">Info</Label> <Label type="success">Success</Label> <Label type="warning">Warning</Label> <Label type="error">Error</Label> </p> ); ...
mla_game/front-end/javascript/components/partials/menu_footer.js
WGBH/FixIt
import React from 'react' import Modal from 'react-modal' import { PopupCenter } from '../../helpers' import { patchData } from '../../helpers' class MenuFooter extends React.Component { constructor(){ super() this.setModal = this.setModal.bind(this) this.closeModal = this.closeModal.bind(this) this....
src/routes/error/index.js
peeyush1234/react-nodejs-skeleton
/** * 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 ErrorPage from './Err...
src/front/js/routes.js
raccoon-app/ui-kit
import React from 'react'; import { Route } from 'react-router'; import { IndexRoute } from 'react-router'; import Auth from './containers/Auth'; import ProjectSelection from './containers/ProjectSelection'; import Project from './containers/Project'; export default () => ( <Route path="/" > <IndexRoute c...
src/svg-icons/navigation/subdirectory-arrow-right.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowRight = (props) => ( <SvgIcon {...props}> <path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/> </SvgIcon> ); NavigationSubdirectoryArrowRight = pure(Navigat...
src/containers/Asians/Published/Debaters/DebaterRoster/SmallDebaterRoster.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import List, { ListItem, ListItemText } from 'material-ui/List' import Paper from 'material-ui/Paper' export default connect(mapStateToProps)(({ debaters, teamsById, institutionsById }) => { debaters.sort((a, b) => { if ( teamsById[...
src/svg-icons/editor/insert-link.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3...
node_modules/react-router/es/RouteUtils.js
vietvd88/developer-crawler
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function isValidChild(object) { ...
project/src/pages/Page/components/PageLayout/PageLayout.js
boldr/boldr
// @flow import React from 'react'; import type { Node } from 'react'; import { Footer, Container } from '@boldr/ui/Layout'; import styled from 'styled-components'; import View from '@boldr/ui/View'; import Navigation from '../Navigation'; import type { CurrentUser, RouterLocation, MenuType } from '../../../../types/bo...
packages/examples-counter/src/containers/CounterApp.js
kastigar/borex
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; class CounterApp extends Component { render() { const { counter, dispatch } = this...
src/components/shell/index.js
datea/datea-webapp-react
import React from 'react'; import {inject} from 'mobx-react'; import {RouterView} from 'mobx-state-router'; import Main from '../main'; import HeadMeta from '../head-meta'; import DateoFormModal from '../dateo-form-modal'; import {MarkerDefs} from '../marker'; import ViewMap from './viewMap'; const Shell = ({store}) =...
app/js/public_keys/connected_public_key_list.js
yock/forte-gui
import React from 'react'; import { connect } from 'react-redux'; import PublicKeyList from './public_key_list'; const deletePublicKey = (id) => { return { type: 'DELETE_PUBLIC_KEY', publicKeyId: id } } const mapStateToProps = (state) => { return { publicKeys: state.publicKeys } } const mapDispat...
src/Pagination.js
PeterDaveHello/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import PaginationButton from './PaginationButton'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const Pagination = React.createClass({ mixins: [BootstrapMixi...
examples/demo3.js
seolheehwang/seolhee
import React from 'react'; import ReactDOM from 'react-dom'; import Gallery from '../src/Gallery'; class Demo3 extends React.Component { constructor(props){ super(props); this.state = { images: this.props.images }; } render () { return ( <div ...
js/messages/Post.js
andrej-kolic/A1terEg0
import React from 'react'; import moment from 'moment' import createLogger from '../logger'; const log = createLogger('components.Post'); export default class Post extends React.Component { constructor(props) { super(props); this.state = { dateDescription: this.getDateDescription() }; } getDateDescrip...
node_modules/react-bootstrap/es/MediaList.js
Chen-Hailin/iTCM.github.io
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 ...
src/svg-icons/av/snooze.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSnooze = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9...
src/client/components/Html.js
BhumiSukhadiya/React_Project_Repo
/** * 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 PropTypes from 'prop-...
reflux-app/components/Status/PassiveStatus.js
Orientsoft/conalog-front
import React from 'react' import { FormattedMessage } from 'react-intl'; let message = require('antd/lib/message') let TimePicker = require('antd/lib/time-picker') let Switch = require('antd/lib/switch') let Tag = require('antd/lib/tag') let Modal = require('antd/lib/modal') let Icon = require('antd/lib/icon...
src/modals/AddContact.js
galaxyfeeder/sschat-client
import React from 'react'; import ReactModal from 'react-modal'; class AddContact extends React.Component { constructor (props){ super(props); this.handleClose = this.handleClose.bind(this); this.handleCancel = this.handleCancel.bind(this); this.handleFileChange = this.handleFileCha...
src/svg-icons/device/battery-90.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1...
bench/pages/stateless-big.js
dizlexik/next.js
import React from 'react' export default () => { return ( <ul> {items()} </ul> ) } const items = () => { var out = new Array(10000) for (let i = 0; i < out.length; i++) { out[i] = <li key={i}>This is row {i + 1}</li> } return out }
src/svg-icons/content/unarchive.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentUnarchive = (props) => ( <SvgIcon {...props}> <path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.4...
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js
peopleticker/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 from 'react'; import CodeBlock from '../components/CodeBlock'; import { applyStyles } from '../utils/dom/css'; ...
app/javascript/flavours/glitch/features/favourited_statuses/index.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from 'flavours/glitch/actions/favourites'; import Column from ...
src/index.js
td-ui/td-ui.github.io
/** * @Author: Zhengfeng.Yao <yzf> * @Date: 2017-06-08 15:14:16 * @Last modified by: yzf * @Last modified time: 2017-06-08 15:14:19 */ import React from 'react'; import ReactDOM from 'react-dom'; import { Router, match, useRouterHistory } from 'react-router'; import { createHistory } from 'history'; import {...
app/javascript/mastodon/features/account_timeline/components/header.js
pfm-eyesightjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
envkey-react/src/components/env_manager/env_cell/traits/flashable_cell.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" import Flashable from 'components/shared/traits/flashable' const FlashableCell = Cell => class extends Flashable(Cell) { _renderCellContents(){ return super._renderCellContents().concat([ this._renderFlash() ]) } } export def...
src/example/FluxOnly/FluxOnly.js
halhenke/component-router
import React from 'react'; import {Store, Url, Actions} from '../..'; import styles from './FluxOnly.css'; const Switch = React.createClass({ getInitialState() { return Store.getQuery(); }, componentDidMount() { this.unsubscribe = Store.subscribe(this.onChange); }, componentWillUnmount() { ...
app/javascript/flavours/glitch/util/react_router_helpers.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from 'flavours/glitch/features/ui/components/column_loading'; import BundleColumnError from 'flavours/glitch/features/ui/components/bundle_column_error'; import BundleContainer from 'fl...
src/packages/@ncigdc/modern_components/CancerDistributionBarChart/CancerDistributionBarChart.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { compose, withState } from 'recompose'; import { sortBy, sum, get } from 'lodash'; import withRouter from '@ncigdc/utils/withRouter'; import { Row, Column } from '@ncigdc/uikit/Flex'; import DownloadVisualizationButton from '@ncigdc/components/DownloadVisualizationButton'; i...
src/main/resources/public/js/components/CSVReader.js
SICTIAM/ozwillo-portal
import React from 'react'; import PropTypes from 'prop-types'; import Tools from "../util/tools"; import { i18n } from "../config/i18n-config" export default class CSVReader extends React.Component { constructor() { super(); this._tools = new Tools(); } state = { error: null, ...
example/examples/AnimatedViews.js
ksincennes/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, Animated, } from 'react-native'; import MapView from 'react-native-maps'; import PanController from './PanController'; import PriceMarker from './AnimatedPriceMarker'; const screen = Dimensions.get('window'); const ASPECT_RATIO = screen.width ...
examples/web/client/src/components/RequestsQueue.js
jevakallio/redux-offline
import React from 'react'; import { connect } from 'react-redux'; function RequestsQueue({ actions }) { if (actions.length === 0) { return <p>There are no requests</p>; } return ( <ul> {actions.map(action => ( <li key={action.meta.transaction}> <span>{action.type}</span> ...
src/components/TimeAndSalary/common/DashBoardTable.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import R from 'ramda'; import Table from 'common/table/Table'; import { InfoButton } from 'common/Modal'; import styles from '../TimeAndSalaryBoard/TimeAndSalaryBoard.module.css'; import { getCompany, getJobTitle, getFrequency, getWeekWorkTime, ...
src/svg-icons/action/view-quilt.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
node_modules/semantic-ui-react/src/elements/Step/StepContent.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, createShorthand, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import StepDescription from './StepDescription' import StepTitle from './StepTitle' /** * A step c...
packages/material-ui-icons/src/EvStation.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let EvStation = props => <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V14...
chrome/extension/window/index.js
theaidem/reachext
import React from 'react' import { render } from 'react-dom' import Root from './Root' window.addEventListener('load', () => { chrome.storage.local.get(null, (store) => { render(<Root />, document.querySelector('#root')) }) })
appsrc/js/plaster-app.js
esonderegger/plaster
import React from 'react'; import Podcast from './podcast.js'; import Snackbar from 'material-ui/Snackbar'; import Dialog from 'material-ui/Dialog'; import LinearProgress from 'material-ui/LinearProgress'; import FlatButton from 'material-ui/FlatButton'; import WelcomeScreen from './welcome-screen.js'; import PlasterUp...
src/svg-icons/av/radio.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRadio = (props) => ( <SvgIcon {...props}> <path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3...
docs/src/Anchor.js
albertojacini/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className="anchor"> <span className="anchor-ic...
src/svg-icons/image/filter-2.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter2 = (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 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ...
app/components/Button.js
jmcolella/unique-twitter-followers
import React from 'react'; import { Link } from 'react-router'; const Button = ( props ) => ( <Link to={ props.link }> <button type='button' > { props.children } </button> </Link> ); Button.propTypes = { link: React.PropTypes.string.isRequired, children: React.PropTypes.string.isRequir...
server/boot/a-react.js
lawrence34/freecodecamp
import React from 'react'; import Router from 'react-router'; import Fetchr from 'fetchr'; import Location from 'react-router/lib/Location'; import debugFactory from 'debug'; import { app$ } from '../../common/app'; import { RenderToString } from 'thundercats-react'; const debug = debugFactory('freecc:react-server'); ...
app/containers/FeaturePage/index.js
mmaedel/react-boilerplate
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
webpack/landing.js
CDCgov/SDP-Vocabulary-Service
require("styles/master.scss"); require("bootstrap-sass/assets/javascripts/bootstrap.js"); import 'react-dates/initialize'; import 'react-dates/lib/css/_datepicker.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { hashHistory, Router, Route, IndexRoute ...
es/components/sidebar/panel-element-editor/element-editor.js
cvdlab/react-planner
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;...
docs/src/pages/layout/MediaQuery.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import { withStyles } from 'material-ui/styles'; import withWidth from 'material-ui/utils/withWidth'; import Typography from 'material-ui/Typography'; const styles = theme => ({ root: { padding:...
blueocean-material-icons/src/js/components/svg-icons/content/backspace.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17...
app/components/List/index.js
aditigoel23/React-Car-App
import React from 'react'; import Ul from './Ul'; import Wrapper from './Wrapper'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={...
docs/src/App.js
byumark/react-table
import React from 'react' // import ReactStory, { defaultProps } from 'react-story' import './stories/utils/prism.css' import '../../react-table.css' import Readme from './stories/Readme.js' import Simple from './stories/Simple.js' import CellRenderers from './stories/CellRenderers.js' import DefaultSorting from './s...
src/components/comment.js
josebigio/PodCast
import React, { Component } from 'react'; import CountIcon from './count-icon' import ReplyList from './reply-list'; class Comment extends Component { constructor(props) { super(props); this.state = { selected:false } } handleClick() { this.setState({ ...
client/js/components/widget-create.js
ericwgreene/relay-practice
import React from 'react'; import PropTypes from 'prop-types'; import { createFragmentContainer, graphql } from 'react-relay'; import { WidgetForm } from './widget-form'; import { insertWidget } from '../mutations/insert-widget-mutation'; export class WidgetCreate extends React.Component { static propTypes = { ...
app/components/Contact.js
leckman/purlpal
import React from 'react'; import { connect } from 'react-redux' import { submitContactForm } from '../actions/contact'; import Messages from './Messages'; class Contact extends React.Component { constructor(props) { super(props); this.state = { name: '', email: '', message: '' }; } handleChange(event) ...
react-demos/undo_redo/src/index.js
konvajs/site
import React, { Component } from 'react'; import { createRoot } from 'react-dom/client'; import { Stage, Layer, Rect, Text } from 'react-konva'; let history = [ { x: 20, y: 20, }, ]; let historyStep = 0; class App extends Component { state = { position: history[0], }; handleUndo = () => { i...
client/trello/src/app/routes/home/routes/boardView/components/Forms/CreateCard/CreateCard.js
Madmous/Trello-Clone
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import FontAwesome from 'react-fontawesome'; import PropTypes from 'prop-types'; import './CreateCard.css'; const propTypes = { isCreateCardFormOpen: PropTypes.bool.isRequired, boardViewActions: PropTypes.object.isRequired } function Cr...
src/client/songs/songlinklazy.react.js
steida/songary
import Component from '../components/component.react'; import React from 'react'; import SongLink from '../songs/songlink.react'; import listenSong from './listensong'; @listenSong export default class SongLinkLazy extends Component { static propTypes = { actions: React.PropTypes.object.isRequired, params: ...
client/src/components/dashboard/Account.js
no-stack-dub-sack/alumni-network
import { connect } from 'react-redux'; import { connectScreenSize } from 'react-screen-size'; import { mapScreenSizeToProps } from '../Navbar'; import React from 'react'; import styled from 'styled-components'; import { addFlashMessage, clearFlashMessage } from '../../actions/flashMessages'; import { Button, Modal } f...
src/components/MessageText.js
twhite96/checkyoself
/* jshint ignore: start */ import React from 'react'; import { Message } from 'reactbulma'; import '../smde-editor.css'; class MessageText extends React.Component { render() { return ( <React.Fragment> <div className="fit pad-bottom"> <Message className="change-body body-styles"> ...
tests/react_native_tests/test_data/native_code/ReusableComponents/app/components/UserConnect/component.js
ibhubs/sketch-components
/** * @flow */ import React from 'react' import PropTypes from 'prop-types' import { observer } from 'mobx-react/native' import styles from './styles' import Button from '@rn/commons/app/components/VIButton/VIButton' import styled from 'styled-components/native' import { Text } from 'react-native' import { View } f...
client/src/javascript/components/icons/ChevronLeftIcon.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class ChevronLeftIcon extends BaseIcon { render() { return ( <svg className={`icon icon--chevron-left ${this.props.className}`} viewBox={this.getViewBox()}> <polygon points="41.34 1.2 47.35 7.21 24.6 29.96 47.42 52.79 41....
src/components/ArrowBottom/ArrowBottom.js
Zoomdata/nhtsa-dashboard-2.2
import styles from './ArrowBottom.css'; import React from 'react'; const ArrowBottom = ({ hoodAction, arrowVisibility }) => { const arrowBottomStyles = { display: 'none' }; return ( <div className={ hoodAction === 'OPEN_HOOD' ? styles.ac...
src/components/App.js
yingray/create-react-redux-app
import React from 'react' import Header from './Header' const App = ({ children }) => <div> <Header /> <div> {children} </div> </div> export default App
App/Containers/AllComponentsScreen.js
okmttdhr/YoutuVote
// @flow // An All Components Screen is a great way to dev and quick-test components import React from 'react'; import { Platform, View, ScrollView, Text, Image } from 'react-native'; import { Images } from '../Themes'; import styles from './Styles/AllComponentsScreenStyle'; // Components to show examples (only real ...
app/index.js
foysalit/runkeeper-desktop
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.css'; const store = configureStore(); render( <Provider store={store}> <...
src/svg-icons/image/timelapse.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimelapse = (props) => ( <SvgIcon {...props}> <path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4...
src/svg-icons/maps/place.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPlace = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
src/svg-icons/image/panorama.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanorama = (props) => ( <SvgIcon {...props}> <path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePanora...
src/fluxtable/NewServerActionStateManager.js
MirekSz/avem
import React, { Component } from 'react'; import ContainersStore from './container/ContainersStore'; import {LoadAllContainers} from './container/ContainersActionCreator'; var NewServerActionStateManager = React.createClass({ componentDidMount(){ var store = this.props.store; store.addListener(this...
src/svg-icons/editor/border-clear.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderClear = (props) => ( <SvgIcon {...props}> <path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v...
src/svg-icons/content/content-copy.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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> );...
src/SplitButton.js
albertojacini/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
blueocean-material-icons/src/js/components/svg-icons/social/mood.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialMood = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 ...
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1041.js
guardicore/monkey
import React from 'react'; import ReactTable from 'react-table'; import {ScanStatus} from './Helpers'; import MitigationsComponent from './MitigationsComponent'; class T1041 extends React.Component { constructor(props) { super(props); } static getC2Columns() { return ([{ Header: 'Data exfiltratio...
src/auth/Credentials.js
BushrootPDX/app
import React from 'react'; import styled from 'styled-components'; const Form = styled.form` text-align: center; label { display: block; } label, button { padding: 5px; } `; export default ({ submit}) => ( <Form onSubmit={e => { e.preventDefault(); const { eleme...
src/components/Game.js
vgamula/poisoning
import React, { Component } from 'react'; import {gameStep} from 'bl'; class Cell extends Component { render() { const isInfected = this.props.data.infected; const isHealing = this.props.data.infected && this.props.data.ticks > 6; let style = { backgroundColor: 'green', }; if (isInfected) {...
react/features/base/react/components/native/NavigateSectionListEmptyComponent.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { Text, View } from 'react-native'; import { translate } from '../../../i18n'; import { Icon, IconMenuDown } from '../../../icons'; import styles from './styles'; type Props = { /** * The translate function. */ t: Function, }; /** * Impl...