path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
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 ...
packages/cf-component-label/test/Label.js
koddsson/cf-ui
import React from 'react'; import { felaSnapshot } from 'cf-style-provider'; import { Label } from '../../cf-component-label/src/index'; test('should render', () => { const snapshot = felaSnapshot(<Label type="default">A Label</Label>); expect(snapshot.component).toMatchSnapshot(); expect(snapshot.styles).toMatc...
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....
__tests__/index.android.js
PowerlineApp/powerline-rn
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
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...
packages/cf-component-select/test/Select.js
koddsson/cf-ui
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import Select from '../../cf-component-select/src/index'; test('should render', () => { const tree = shallow(<Select />); expect(toJson(tree)).toMatchSnapshot(); });
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...
src/svg-icons/device/signal-wifi-off.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifiOff = (props) => ( <SvgIcon {...props}> <path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.4...
src/client/react/user/components/dashboards/PostRaceDashboard.js
bwyap/ptc-amazing-g-race
import React from 'react'; import { Route } from 'react-router-dom'; import { connect } from 'react-redux'; import { Switch, Redirect } from 'react-router-dom'; import Base from '../Base'; import PostRaceMenu from '../menus/PostRaceMenu'; import TeamDashboard from '../../views/TeamDashboard'; import Feed from '../../vi...
app/App.js
singun/kanban-app
import React from 'react'; import ReactDOM, { render } from 'react-dom'; import { Router, Route } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import KanbanBoardContainer from './KanbanBoardContainer'; import KanbanBoard from './KanbanBoard'; import EditCard from './EditCar...
app/views/listing/add.js
jtparrett/countcals
import React from 'react' import { StyleSheet, View, TextInput, Button } from 'react-native' import Moment from 'moment' import Input from '../../components/input' export default class AddEntry extends React.Component { constructor(props) { super(props) this.state = { ...props, timestamp: props...
src/parser/hunter/shared/modules/talents/BindingShot.js
FaideWW/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import React from 'react'; /** * Fires a magical projectile, tethering the enemy and any other enemies within 5 yards for 10 sec, rooting them in place for 5 sec if th...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
fanhc019/react-router
import React from 'react'; import { Link } from 'react-router'; export default class AnnouncementsSidebar extends React.Component { render () { var announcements = COURSES[this.props.params.courseId].announcements; return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcemen...
frontend/src/screens/qa/qa.js
linea-it/qlf
import React, { Component } from 'react'; import Steps from './widgets/steps/steps'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; const styles = { container: { display: 'flex', justifyContent: 'space-around', flexDirection: 'column', marginBottom: '1vh', ...
CalcScreen.js
stevenpan91/ChemicalEngineerHelper
'use strict' import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, TouchableHighlight, TouchableOpacity, TextInput, Navigator } from 'react-native'; class CalcScreen extends Component { render() { return ( <Navigator renderScene={this.re...
webapp/imports/ui/layouts/SecurityDialog.js
clinical-meteor/meteor-on-fhir
// base layout import { CardHeader, CardText, CardTitle } from 'material-ui/Card'; import PropTypes from 'prop-types'; import { ReactMeteorData } from 'meteor/react-meteor-data'; import ReactMixin from 'react-mixin'; import React, { Component } from 'react'; import FlatButton from 'material-ui/FlatButton'; import {...
src/svg-icons/action/history.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHistory = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
node_modules/react-bootstrap/es/ModalBody.js
newphew92/newphew92.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/components/EntryEditor/__tests__/EntryEditorToolbar.spec.js
dopry/netlify-cms
import React from 'react'; import { shallow } from 'enzyme'; import EntryEditorToolbar from '../EntryEditorToolbar'; describe('EntryEditorToolbar', () => { it('should have the Save button disabled initally, and the Cancel button enabled', () => { const component = shallow( <EntryEditorToolbar onPer...
example/src/TabOne.js
PlexChat/mobx-navigation
import React from 'react'; import { Button, Text, TextInput, StyleSheet, View } from 'react-native'; import { inject, observer } from 'mobx-react'; import { scene } from '../..'; import Circular from './Circular'; const styles = StyleSheet.create({ test: { backgroundColor: 'green', }, }); @scene('Ta...
packages/watif-display/src/components/interactive-description.js
jwillesen/watif
import React from 'react' import {string, element, func, arrayOf} from 'prop-types' import Watext from './watext' import VerbBar from './verb-bar' import {verbShape} from '../property-shapes' import './interactive-description.css' export default class InteractiveDescription extends React.Component { static propTypes...
app/routes/index.js
vasanthk/redux-blog-example
import React from 'react'; import { Route } from 'react-router'; import App from './App'; import SignupRoute from './SignupRoute'; import LoginRoute from './LoginRoute'; import ProfileRoute from './ProfileRoute'; import NotFound from '../components/NotFound'; import redirectBackAfter from '../utils/redirectBackAfter'; ...
node_modules/react-router/es6/IndexRoute.js
Win-Myint/ReactChallenge2
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
docs/src/examples/modules/Modal/Usage/ModalExampleCallbacks.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Grid, Label, Modal, Segment } from 'semantic-ui-react' function exampleReducer(state, action) { switch (action.type) { case 'CLEAR_LOG': return { ...state, log: [] } case 'OPEN_MODAL': return { log: [ { event: action.event, ...
tests/components/Header/Header.spec.js
arleighdickerson/react-redux-express
import React from 'react' import { Header } from 'components/Header/Header' import { IndexLink, Link } from 'react-router' import { shallow } from 'enzyme' describe('(Component) Header', () => { let _wrapper beforeEach(() => { _wrapper = shallow(<Header />) }) it('Renders a welcome message', () => { ...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/complete/friends/Friends.entry.js
Brandon-J-Campbell/codemash
import React from 'react'; import getFriendsFromApi from './get-friends-from-api'; import Friends from './Friends'; export default class FriendsEntry extends React.Component { state = { friends: [] } async componentDidMount() { const friends = await getFriendsFromApi(); this.setState({ frien...
pilgrim3/components/optionsTable.js
opendoor-labs/pilgrim3
import React from 'react' import { map } from 'lodash' export default class OptionsTable extends React.Component { optionRow(value, key) { return ( <tr key={`${key}-${value}`}> <th>{key}</th> <td>{value.toString()}</td> </tr> ); } render() { if (!this.props.object) { ...
src/svg-icons/image/linked-camera.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLinkedCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3...
app/assets/scripts/views/about.js
openaq/openaq.github.io
'use strict'; import React from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; import JoinFold from '../components/join-fold'; import SponsorList from '../components/sponsor-list'; import TeamList from '../components/team-list'; import content from '../../content/content.json'; import sponsors...
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js
liruqi/actor-platform-v0.9
import { assign } from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, Snackbar } from 'material-ui'; import ReactZeroClipboard from 'reac...
lib/components/Application.js
sljohnson32/networkr
import React, { Component } from 'react'; import firebase, { signIn, signOut } from '../firebase'; import { pick, map, extend } from 'lodash'; import WelcomeScreen from './WelcomeScreen'; import HomeScreen from './HomeScreen'; import moment from 'moment' export default class Application extends Component { construc...
src/components/Background.js
shoegazer/shuffle-guru
import React from 'react' import {connect} from 'react-redux' @connect(state => ({ cover: state.track.current.cover })) class Background extends React.Component { render() { return pug`#background(style=${this.props.cover ? {backgroundImage: 'url(' + this.props.cover + ')'} : {}})`; } } export default Backg...
examples/Autocomplete.js
react-materialize/react-materialize
import React from 'react'; import Autocomplete from '../src/Autocomplete'; import Row from '../src/Row'; export default <Row> <Autocomplete title='Company' data={ { 'Apple': null, 'Microsoft': null, 'Google': 'http://placehold.it/250x250' } } /> </Row>;
examples/src/components/RemoteSelectField.js
nightwolfz/react-select
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...
src/Parser/Mage/Frost/Modules/Items/Tier20_2set.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import HIT_TYPES from 'Parser/Core/HIT_TYPES'; import getDamageBonus f...