path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/basic/forms/index.js
bluSCALE4/react-modal
import React, { Component } from 'react'; import Modal from 'react-modal'; const MODAL_A = 'modal_a'; const MODAL_B = 'modal_b'; const DEFAULT_TITLE = 'Default title'; class Forms extends Component { constructor(props) { super(props); this.state = { isOpen: false }; } toggleModal = event => { con...
test/helpers/shallowRenderHelper.js
SKoschnicke/react-test
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
examples/real-world/index.js
eiriklv/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
charts/react-chartjs-3/example1/src/index.js
rob-blackbourn/scratch-js
import React from 'react' import ReactDOM from 'react-dom' import 'typeface-roboto' import App from './App' import * as serviceWorker from './serviceWorker' ReactDOM.render(<App />, document.getElementById('root')) serviceWorker.unregister()
app/components/EmployeeFormCreate/index.js
dreamweaver1231/frontend
/** * * EmployeeFormCreate * */ import React from 'react'; import { reduxForm, Field } from 'redux-form/immutable'; import MenuItem from 'material-ui/MenuItem'; import { RaisedButton, Divider } from 'material-ui'; import { SelectField, TextField, DatePicker } from 'redux-form-material-ui'; const EmployeeFormCreate = ...
react/Hidden/Hidden.js
seekinternational/seek-asia-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './Hidden.less'; const Hidden = ({ children, component, className, print, screen, mobile, aboveMobile, desktop, ...restprops }) => { const props = { ...restprops, className: classNames({ ...
docs/app/Examples/elements/Button/Variations/ButtonExampleFloated.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleFloated = () => ( <div> <Button floated='right'>Right Floated</Button> <Button floated='left'>Left Floated</Button> </div> ) export default ButtonExampleFloated
packages/react-devtools-shell/src/app/InspectableElements/SimpleValues.js
Simek/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * 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'; export default function SimpleValues() { return ( <ChildComponent string="abc"...
js/components/pages/NotFound.react.js
Kielan/kielan-com
import React, { Component } from 'react'; import { Link } from 'react-router'; class NotFound extends Component { render() { return ( <article> <h1>Page not found.</h1> <Link to="/" className="btn">Home</Link> </article> ); } } export default NotFound;
src/js/components/filter__row/index.js
Arlefreak/arlefreakClient
import PropTypes from 'prop-types'; import React from 'react'; const FilterRow = ({ onClick, name, className}) => ( <li> <a className={ className } onClick={ onClick }> { name } </a> </li> ); FilterRow.propTypes = { onClick: PropTypes.func.isRequired, ...
test/src/index.js
gnextia/gnextia
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware, compose } from 'redux' import createSagaMiddleware from 'redux-saga' import { Provider } from 'react-redux' const { name } = require('../package.json') import config from './config' import './theme/index.scss' import Ap...
code/schritte/2-hierarchy/src/GreetingController.js
st-he/react-workshop
import React from 'react'; import GreetingMaster from './GreetingMaster'; import GreetingDetail from './GreetingDetail'; let currentId = 0; const sampleGreetings = [{ id: currentId++, name: 'Olli', greeting: 'Huhu' }, { id: currentId++, name: 'Oma', greeting: 'Hallo' } ]; ...
gui/react/src/components/Loading.js
williamparry/cloudRIG
import React, { Component } from 'react'; import { Dimmer, Loader } from 'semantic-ui-react' import 'semantic-ui-css/semantic.min.css'; class Loading extends Component { render() { return( <Dimmer active inverted> <Loader inverted>{this.props.message}</Loader> </Dimmer> ) } } export default ...
app/components/Basketball.js
RogerZZZZZ/widget_electron
import React from 'react' import { Component} from 'react' import { BasketballCrawler} from '../utils/crawler.js' import { Table, ButtonGroup, Button } from './BasketballComponent.js' let bCrawler = new BasketballCrawler(); class Basketball extends Component{ constructor(props){ super(props) let s...
examples/npm-webpack/src/index.js
gorangajic/react-swipe-views
'use strict'; import React from 'react'; import { default as Router, Route, DefaultRoute, Redirect } from 'react-router'; import App from './components/App'; require('../../../lib/react-swipe-views.css'); require('./main.css'); require('babel-core/polyfill'); React.initializeTouchEvents(true); const routes = ( <R...
src/browser/app/components/Spinner.js
xiankai/triple-triad-solver
/* @flow */ import React from 'react'; import Image from './Image'; const Spinner = (props: Object) => ( <Image {...props} tagName="img" src={require('./ajax-loader.gif')} /> ); export default Spinner;
src/MenuItem.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import all from 'react-prop-types/lib/all'; import SafeAnchor from './SafeAnchor'; import { bsClass, prefix, splitBsPropsAndOmit } from './utils/bootstrapUtils'; import createChainedFunction from './utils/createChainedFunction'; const propTypes = { /**...
frontend/src/@crema/core/AppsContainer/AppsContent.js
edinnen/Thanksgiving_Intranet
import React from 'react'; import Scrollbar from '../Scrollbar'; import makeStyles from '@material-ui/core/styles/makeStyles'; const AppsContent = (props) => { const useStyles = makeStyles((theme) => ({ appsContentContainer: (props) => ({ height: `calc(100% - ${props.isDetailView ? 60 : 115}px)`, ...
src/ui/form/checkbox/checkbox-story.js
josmardias/react-redux-boilerplate
import React from 'react' import { storiesOf } from '@kadira/storybook' import Checkbox from '.' storiesOf('ui.Form.Checkbox', module) .add('Default', () => ( <Checkbox label="Check it!" /> ))
src/routes/Home/components/HomeView.js
gohup/react_testcase
import React from 'react' import DuckImage from '../assets/Duck.jpg' import classes from './HomeView.scss' export const HomeView = () => ( <div> <h4>This is not a duck!</h4> <img alt='This is not a duck!' className={classes.duck} src={DuckImage} /> </div> ) export default HomeView
components/FunnelInputField/FunnelInputField.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import mergeObjectStrings from '../../utils/mergeObjectStrings/mergeObjectStrings'; import InputField from '../Form/InputField/InputField'; import css from './FunnelInputField.css'; const FunnelInputField = ({ classNames, ...rest }) => { const classes =...
src/components/Forms/TextArea.js
josedigital/koala-app
import React from 'react' const TextArea = (props) => { return ( <div className="form-element"> <label htmlFor={props.name}>{props.label}</label> <textarea name={props.name} id={props.name} value={props.content} onChange={props.controlFunction}> </textarea> </div> ) } ...
src/collections/Menu/Menu.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { ModernAutoControlledComponent as Component, childrenUtils, customPropTypes, createShorthandFactory, getElementType, getUnhandledProps, SUI, useKeyOnly, useKeyOrValueAndKey, useValueAnd...
src/pages/launchWindow/launchWindowPage.js
Synchro-TEC/site-apollo-11
import React from 'react'; import { LaunchWindow } from 'syntec-apollo-11'; import {PrismCode} from 'react-prism'; class LaunchWindowPage extends React.Component { constructor() { super(); } showLaunchWindow() { this.refs.modal.show(); } render() { return ( <div className='dm-content'> ...
blueocean-material-icons/src/js/components/svg-icons/device/battery-std.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBatteryStd = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/> </SvgIcon> ); DeviceBatteryStd.displayName = 'De...
admin/client/App/screens/List/components/UpdateForm.js
creynders/keystone
import React from 'react'; import Select from 'react-select'; import { findDOMNode } from 'react-dom'; import assign from 'object-assign'; import { Fields } from 'FieldTypes'; import InvalidFieldType from '../../../shared/InvalidFieldType'; import { plural } from '../../../../utils/string'; import { BlankState, Button,...
src/Collapse.js
yuche/react-bootstrap
import React from 'react'; import Transition from './Transition'; import domUtils from './utils/domUtils'; import createChainedFunction from './utils/createChainedFunction'; let capitalize = str => str[0].toUpperCase() + str.substr(1); // reading a dimension prop will cause the browser to recalculate, // which will l...
node_modules/antd/es/form/FormItem.js
yhx0634/foodshopfront
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/components/Map.js
TorinoMeteo/tm-realtime-map
import React from 'react' import PropTypes from 'prop-types' import Spinner from 'react-spinner' import LiveMap from 'components/LiveMap' import HistoryMap from 'components/HistoryMap' import ForecastMap from 'components/ForecastMap' import WebcamsMap from 'components/WebcamsMap' import AirQualityMap from 'components/A...
dispatch/static/manager/src/js/components/ZoneEditor/WidgetField.js
ubyssey/dispatch
import React from 'react' import * as fields from '../fields' import * as Form from '../Form' export default function WidgetField(props) { const Field = fields[props.field.type] let fieldError = '' let childErrors = null if (props.field.type == 'widget' && props.error) { try { childErrors = JSON.par...
client/src/research/BackgroundColor.js
mit-teaching-systems-lab/threeflows
import React, { Component } from 'react'; //Teacher Moments sets background color based on users' screen size (see: public/index.html) //This component sets the background color of Teacher Moments to white for all of the research related pages. class BackgroundColor extends Component { componentWillMount() { do...
examples/async/index.js
morgante/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
test/test-controller-without-model.js
mxc/cauldron
"use strict"; import React from 'react'; import ReactDOM from 'react-dom'; import TestComp from './test-comp'; import TestModel from './test-model'; import BaseController from '../src/base-controller' class TestControllerWithoutModel extends BaseController { constructor(props,context){ super(props,context);...
webapp/app/components/Users/Button/index.js
EIP-SAM/SAM-Solution-Server
// // List buttons page users // import React from 'react'; import { ButtonToolbar } from 'react-bootstrap'; import LinkContainerButton from 'components/Button'; import styles from './styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class UsersButton extends React.Component { render...
src/components/Schemes/ColorPicker/index.js
nobus/weaver
import React, { Component } from 'react'; import { SketchPicker } from 'react-color'; import { Modal, Button } from 'react-bootstrap'; class ColorPicker extends Component { render() { return ( <Modal show={this.props.showModal} onHide={this.props.close}> <Modal.Header> <Modal.Title>Color ...
docs/src/pages/components/lists/CheckboxListSecondary.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'; import ListItemText from '@material-ui/core/ListItemText'; impo...
src/components/header/Description.js
jckfa/img.silly.graphics
import React from 'react' import styled from 'styled-components' import Gutters from '../utils/Gutters' import { site } from '../config/vars' import media from '../utils/media' const Container = styled.ul` padding: 1.25em 0 2em; & li { display: block; } & li + li { padding-top: 0.5em; } ${media....
examples/counter/containers/App.js
blackxored/redux-devtools
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import thunk from 'redux-...
src/components/ItemCard.js
nikolay-radkov/EBudgie
import React from 'react'; import { Text, StyleSheet, View, TouchableHighlight, } from 'react-native'; import { Icon } from 'react-native-elements'; import colors from '../themes/Colors'; import metrics from '../themes/Metrics'; const styles = StyleSheet.create({ items: { flexDirection: 'column', ba...
react/features/calendar-sync/components/ConferenceNotification.native.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; import { appNavigate } from '../../app/actions'; import { getURLWithoutParamsNormalized } from '../../base/connection'; import { getLocalizedDateFormatter, translate } from '../../base/i18n'; import { Icon,...
src/List.js
kiloe/ui
import React from 'react'; import View from './View'; import CSS from './utils/css'; CSS.register({ }); export default class List extends View { static defaultProps = { ...View.defaultProps, scroll: true, row: false, } getClassNames(){ let cs = super.getClassNames(); cs.list = true; ...
frontend/src/Album/EpisodeStatusConnector.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import createAlbumSelector from 'Store/Selectors/createAlbumSelector'; import createQueueItemSelector from 'Store/Selectors/createQueueI...
es/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js
cvdlab/react-planner
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
webpack/components/PermissionDenied.js
mmoll/foreman_templates
import React from 'react'; import PropTypes from 'prop-types'; import { EmptyStatePattern as EmptyState } from 'foremanReact/components/common/EmptyState'; const PermissionDenied = props => { const description = ( <span> {__('You are not authorized to perform this action.')} <br /> {__( ...
src/svg-icons/content/create.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentCreate = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/...
src/components/ArticleListItem/ArticleListItem.js
bingomanatee/wonderworld
import React from 'react'; import './articleListItem.scss'; import {FolderLabel} from '../FolderLabel/FolderLabel'; export const ArticleListItem = (props) => ( <div className='article-list-item' onClick={() => props.visitArticle(props.article)} key={'article-list-item-' + props.article}> <div className='...
services/ui/src/pages/index.js
amazeeio/lagoon
import React from 'react'; import Router from 'next/router'; import { queryStringToObject } from 'lib/util'; export default class IndexPage extends React.Component { static async getInitialProps({ req, res }) { if (res) { const currentUrl = new URL(req.url, `https://${req.headers.host}`); res.writeHe...
app/javascript/flavours/glitch/components/status_list.js
im-in-space/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from 'flavours/glitch/containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap fro...
src/components/SettingsController/index.js
michaltakac/mathworldvr
import React from 'react' import PropTypes from 'prop-types' import { Entity } from 'aframe-react' const propTypes = { initialState: PropTypes.any.isRequired, actionToTrigger: PropTypes.func, min: PropTypes.number, max: PropTypes.number, step: PropTypes.number, type: PropTypes.string, name: PropTypes.str...
src/routes/Apply/components/Apply.js
techcoop/techcoop.group
import React from 'react' import ReactDOM from 'react-dom' import './Apply.scss' const formDomain = 'https://docs.google.com/forms/' const formUrl = formDomain + 'd/e/1FAIpQLSccXBwqFccJ-g_n9545FEomK0v8wXI0KNfgqnCgiI0LLtnYHg/viewform?embedded=true' export class Apply extends React.Component { constructor (props) { ...
client/acp/src/view/display/avatar.js
NicolasSiver/nodebb-plugin-ns-awards
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; export default class Avatar extends React.Component { render() { let avatarClass = classNames('aws-avatar', 'aws-avatar--' + this.props.size); let iconClass = classNames('aws-avatar__icon', 'aws-ava...
src/components/app.js
martezconner/react_vidhub
import _ from 'lodash'; import React, { Component } from 'react'; import YTSearch from 'youtube-api-search'; // import SideBar from './nav/side_bar'; import Footer from './footer/footer'; import SearchBar from './search_bar'; import VideoList from './video_list'; import VideoDetail from './video_detail'; const API_KE...
src/scenes/home/404/fourOhFour.js
NestorSegura/operationcode_frontend
import React from 'react'; import styles from './fourOhFour.css'; const FourOhFour = () => ( <div className={styles.FourOhFour}> <div className={styles.bg}> <h1 className={styles.title}>404!</h1> <p className={styles.paragraph}>You definitely weren&apos;t supposed to see this...</p> </div> </di...
app/javascript/mastodon/features/notifications/components/notification.js
NS-Kazuki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { injectIntl, FormattedMessage } from 'react-intl'; ...
app/Translator.js
steemit-intl/steemit.com
import React from 'react'; import isString from 'lodash/isString'; import isObject from 'lodash/isObject'; import isUndefined from 'lodash/isUndefined'; import { IntlProvider, addLocaleData, injectIntl } from 'react-intl'; // most of this code creates a wrapper for i18n API. // this is needed to make i18n future proof...
app/ui/Container.js
spleenboy/pallium
import React, { Component } from 'react'; import styles from './Container.css'; export default class Container extends Component { render() { return ( <div className={styles.container}> {this.props.children} </div> ); } }
node_modules/react-dimensions/index.js
SpatialMap/SpatialMapDev
'use strict'; 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; }; var _createClass = function () { function defi...
packages/ringcentral-widgets-docs/src/app/pages/Components/Spinner/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import Spinner from 'ringcentral-widgets/components/Spinner'; const props = {}; /** * A example of `Spinner` */ const SpinnerDemo = () => ( <div style={{ position: 'relative', height: '50px', width: '50px', }}> <Spinner {...props} ...
src/labels/IndividuLabel.js
dezede/dezede
import React from 'react'; import PropTypes from 'prop-types'; import {computed} from "mobx"; import {observer} from "mobx-react"; import Individu from "../models/Individu"; @observer class IndividuLabel extends React.Component { static propTypes = { id: PropTypes.number.isRequired, }; @computed get ind...
docs/app/Examples/elements/Header/Variations/HeaderExampleInverted.js
vageeshb/Semantic-UI-React
import React from 'react' import { Header, Segment } from 'semantic-ui-react' const HeaderExampleInverted = () => ( <Segment inverted> <Header as='h4' inverted color='red'>Red</Header> <Header as='h4' inverted color='orange'>Orange</Header> <Header as='h4' inverted color='yellow'>Yellow</Header> <Hea...
src/svg-icons/action/three-d-rotation.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThreeDRotation = (props) => ( <SvgIcon {...props}> <path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-....
test/integration/client-navigation/pages/nav/head-2.js
BlancheXu/test
import React from 'react' import Head from 'next/head' import Link from 'next/link' export default props => ( <div id='head-2'> <Head> <meta name='description' content='Head Two' /> <title>this is head-2</title> </Head> <Link href='/nav/head-1'> <a id='to-head-1'>to head 1</a> </Lin...
app/Images.js
SKatiyar/LetterTrack
'use strict'; import React, { Component } from 'react'; import { Modal, Image, StyleSheet, View, Text, TouchableWithoutFeedback, } from 'react-native'; import { Button, Icon, Toast, } from 'native-base'; export default class ImageList extends Component { constructor(props) { super(props); ...
src/svg-icons/action/motorcycle.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionMotorcycle = (props) => ( <SvgIcon {...props}> <path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2...
app/js/app.js
benekex2/smart_mirror
import React from 'react' import ReactDOM from 'react-dom' import '../css/app.css' import '../css/weather-icons.css' import { Weather } from "./components/weather.js" import { Clock } from "./components/clock.js" import { News } from "./components/news.js" import { WeatherInside } from "./components/weatherInside.js"...
app/components/tab-icon.js
7kfpun/BitcoinReactNative
import React from 'react'; import { Text, View, } from 'react-native'; import { ifIphoneX } from 'react-native-iphone-x-helper'; export default class TabIcon extends React.PureComponent { render() { return ( <View style={{ alignItems: 'center', ...ifIphoneX({ paddingBottom: 6...
src/components/comment_list.js
vndeguzman/redux-exercise
import React from 'react' import { connect } from 'react-redux'; const CommentList = (props) => { const list = props.comments.map(comment => <li key={comment}>{comment}</li>); return ( <ul className="comment-list"> {list} </ul> ) }; function mapStateToProps(state) { return ...
app/javascript/mastodon/components/poll.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Motion fr...
src/js/components/Tag.js
davrodpin/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Anchor from './Anchor'; import Props from '../utils/Props'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.TAG; export default class Tag extends Component { r...
frontend/src/lib/ResponsiveTable.js
GAumala/Facturacion
import React, { Component } from 'react'; import { Table } from 'fixed-data-table'; import ContainerDimensions from 'react-container-dimensions'; /** * This component draws a Table efficiently using all the space available. It expects the parent to have all the height available, so that the table fits the size of the ...
app/javascript/mastodon/features/compose/components/compose_form.js
imas/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
src/client.js
Nek/react-redux-universal-hot-example
/* global __DEVTOOLS__ */ import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import createStore from './redux/create'; import ApiClient from './ApiClient'; import universalRouter from './universalRouter'; const history = new Browser...
app/containers/Preschool/EditPreschool.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import get from 'lodash.get'; import isEmpty from 'lodash.isempty'; import { deleteInstitution, modifyInstitution, ena...
src/components/mention-area.component.js
dyesseyumba/git-point
import React, { Component } from 'react'; import fuzzysort from 'fuzzysort'; import styled from 'styled-components'; import { TouchableOpacity, Animated, ScrollView } from 'react-native'; import { animations, fonts, normalize } from 'config'; const StyledAnimatedView = styled(Animated.View)` ${({ style }) => style}...
src/components/team/EloHistory.js
tervay/AutoScout
import React from 'react'; import ResponsiveLine from 'nivo/lib/components/charts/line/ResponsiveLine'; export default class EloHistory extends React.Component { constructor(props) { super(props); this.state = { show: true, }; this.toggleGraph = this.toggleGraph.bind(this); } componentDid...
showcase/showcase-components/showcase-utils.js
Apercu/react-vis
import React from 'react'; export function mapSection(section, index) { const SectionComponent = section.component; return ( <section key={`${section.name}-index`}> <h3>{section.name}</h3> <div className="flex"> {section.sourceLink && <a className="docs-link" href={section.sourceLink}>> Sou...
docs-ui/components/contextData.stories.js
mvaled/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import ContextData from 'app/components/contextData'; storiesOf('UI|ContextData', module).add( 'strings', withInfo('Default')(() => <ContextDat...
src/components/SideBar/Nav.js
chaitanya1375/Myprojects
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router-dom'; import { Collapse } from 'react-bootstrap'; class Nav extends Component { state = {}; render() { let { location } = this.props; return ( <ul className="nav"> <li className={location.pathname === ...
components/reports/RangeCalendar.js
hutsi/bookkeeping
import React, { Component } from 'react'; import { DateRangePicker } from 'react-dates'; import Button from '@material-ui/core/Button'; import moment from 'moment'; import { withStyles } from '@material-ui/core/styles'; import 'react-dates/initialize'; import 'react-dates/lib/css/_datepicker.css'; const styles = them...
src/components/HiddenInput/HiddenInput.js
eliaslopezgt/ps-react-eli
import React from 'react'; import PropTypes from 'prop-types'; /** Hidden Input with name and value */ function HiddenInput({name, value, ...props}) { return ( <input name={name} value={value} type="hidden" {...props}/> ); } HiddenInput.propTypes = { /** Input name. Recommend settin...
themes/frontend/assets/reactjs/process/js/Car/Filter/DesktopFilters.js
fonea/velon
import React from 'react'; export default class DesktopFilters extends React.Component { render() { return(<div>juice</div>); } }
docs/src/app/components/pages/components/AppBar/ExampleIconButton.js
ngbrown/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import NavigationClose from 'material-ui/svg-icons/navigation/close'; import FlatButton from 'material-ui/FlatButton'; function handleTouchTap() { alert('onTouchTap triggered on the title component');...
components/companies/CompanyList.js
Justbit-site/justbit-mobile
import React from 'react'; import { StyleSheet, View, ListView, } from 'react-native'; import { createRouter } from '@expo/ex-navigation'; import Ripple from 'react-native-material-ripple'; import Router from '../../navigation/Router'; import CompanyBox from './companyBox'; import CompanyDetails from '../../sc...
src/donations/index.js
dyegolara/sismo-frontend
import React from 'react' const SOURCE = [ { link: 'http://www.topos.mx/', label: 'Topos – Brigada de Rescate Topos Tlaltelolco, A.C. (Earthquake help team)' }, { link: 'https://www.amazon.com.mx/b?ie=UTF8&node=17290014011', label: 'Cruz Roja Mexico (Red Cross Mexico) - Amazon Wishlist ' }, {...
es/components/Chat/ChatMessages.js
welovekpop/uwave-web-welovekpop.club
import _extends from "@babel/runtime/helpers/builtin/extends"; import _jsx from "@babel/runtime/helpers/builtin/jsx"; import _assertThisInitialized from "@babel/runtime/helpers/builtin/assertThisInitialized"; import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose"; import React from 'react'; import Pr...
src/svg-icons/action/play-for-work.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPlayForWork = (props) => ( <SvgIcon {...props}> <path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/> </SvgIcon> ); ActionPlayForWork ...
clients/libs/slate-editor-font-family-plugin/src/FontFamilyMark.js
nossas/bonde-client
/* eslint-disable react/prop-types */ import React from 'react' import FontFamilyList from './FontFamilyList' const FontFamilyMark = ({ children, mark: { data } }) => ( <span style={{ fontFamily: FontFamilyList[data.get('fontFamilyIndex')].name }}> {children} </span> ) export default FontFamilyMark
node_modules/semantic-ui-react/dist/es/views/Item/ItemHeader.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _isNil from 'lodash/isNil'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; /** * An item can contain...
src/svg-icons/toggle/check-box-outline-blank.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBoxOutlineBlank = (props) => ( <SvgIcon {...props}> <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ToggleCheckBoxOutlineBlank =...
webpack/scenes/ContentViews/Details/Filters/index.js
Katello/katello
import React from 'react'; import { Route } from 'react-router-dom'; import { number, shape } from 'prop-types'; import ContentViewFilters from './ContentViewFilters'; import ContentViewFilterDetails from './ContentViewFilterDetails'; const ContentViewFiltersRoutes = ({ cvId, details }) => ( <> <Route exact path...
examples/customised/src/components/RandomButton/RandomButton.js
styleguidist/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import sample from 'lodash/sample'; import s from './RandomButton.css'; /** * Button that changes label on every click. */ export default class RandomButton extends Component { static propTypes = { /** * List of possible labels. ...
src/components/Layoutx/Menux/index.js
wz-one-piece/Antd-Demo
import React from 'react' import PropTypes from 'prop-types' import styles from './index.less' import { Menu, Icon } from 'antd'; import { Link } from 'dva/router' import { arrayToTree, queryArray, config } from 'utils' const Menux = ({menu, handleClickNavMenu}) => { // 生成树状 const menuTree = arrayToTree(menu.filter...
src/icons/StrokeDecentralization.js
ipfs/webui
import React from 'react' const StrokeDecentralization = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M90 39.9a4.75 4.75 0 0 0-5.4-3.9 4.66 4.66 0 0 0-2.18 1l-8.25-5.41a4.59 4.59 0 0 0 .11-2 4.81 4.81 0 0 0-.25-.94l5.3-4.33a1.22 1.22 0 0 0 .17.15 4.67 4.67 0 0 0 2.78.91 4.79 4.79 0 0 0 3.85-2 4.75 ...
app/app.js
easingthemes/berlinmap
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
pootle/static/js/admin/components/Language/LanguageEdit.js
evernote/zing
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import LanguageForm from './La...
TestDemos/examples/LessonExamples/IIID-News/Components/Finder.js
AzenXu/ReactNativeTest
/** * Created by Azen on 16/9/4. */ import React, { Component } from 'react'; import { View, Image, Text, TabBarIOS, StyleSheet } from 'react-native' var Finder = React.createClass({ render() { return( <View style={styles.container}> <Text>发现</Text> ...
components/react-draft-wysiwyg/util/TextArea.js
andresin87/wysiwyg
/** * Created by alucas on 6/12/16. */ import React, { Component } from 'react'; class TextArea extends Component { constructor() { super(); this.setValue = this.setValue.bind(this); this.onChange = this.onChange.bind(this); } onChange(event) { this.setState({ value: event.target.value }); ...
src/components/Welcome/Welcome.js
ihenvyr/react-app
import React from 'react'; import styles from './Welcome.scss'; class Welcome extends React.Component { static propTypes = {}; static defaultProps = {}; state = { checked: false }; checkboxToggle = () => { this.setState({ checked: !this.state.checked }) }; render() { return ( <div cla...
src/index.js
znewton/myxx-client
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import fapp from 'firebase/app'; import registerServiceWorker from './registerServiceWorker'; import './sass/index.scss'; const config = { apiKey: "AIzaSyCcCJOhAOAXQIUR17x2Uy_Gbo5W1kWHrWk", authDomain: "myxx-6b351.firebaseapp.com...
resources/js/react/MissingPage.js
chekun/spore
import React from 'react'; var Router = require('react-router'); var Link = Router.Link; class MissingPage extends React.Component { constructor(props) { super(props) } render() { return ( <div className="container landing-container"> <h2>404 Not Found!</h2> ...