path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/PriceList.js
weizong85/coffee-test-code
import React from 'react'; class PriceList extends React.Component { addToOrderList() { this.props.addToOrderList(this) } render() { return ( <li> <div> {this.props.price.size} ${this.props.price.cost} <input type="button" onClick={this.addToOrderList.bind(this)} value='Add' /> </div>...
stories/react/Input.stories.js
onap-sdc/sdc-ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import Examples from './utils/Examples.js'; import ReactInput from '../../src/react/Input.js'; import InputDefaultHtml from '../../components/input/input.html'; import InputRequiredHtml from '../../components/input/input-required.html'; imp...
src/utils/devTools.js
Lukkub/Redux-ShopCartApp
import React from 'react'; import { createStore as initialCreateStore, compose } from 'redux'; export let createStore = initialCreateStore; let __DEV__ = false; if (__DEV__) { createStore = compose( require('redux-devtools').devTools(), require('redux-devtools').persistState( window.location.href...
src/shared/form/RadioList.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react'; import PropTypes from 'prop-types' import { Control } from 'react-redux-form'; import StatefulError from './StatefulError'; const RadioList = (props) => { const { id, label, name, options, model, messages, validators } = props;...
src/html.js
jumpalottahigh/jumpalottahigh.github.io
import React from 'react' import PropTypes from 'prop-types' export default class HTML extends React.Component { render() { return ( <html {...this.props.htmlAttributes} lang="en"> <head> <meta charSet="utf-8" /> <meta httpEquiv="x-ua-compatible" content="ie=edge" /> <...
test/index.android.js
ivanl001/ReactNative-Learning
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class test extends Component { render() { return ( <View style={styles.container}> ...
packages/material-ui-icons/src/ViewDay.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z" /></g> , 'ViewDay');
frontend/src/app/cmdb/group/edit.js
the-invoice/nab
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { pushPath } from 'redux-simple-router'; import { Route, IndexRoute } from 'react-router'; import { createSelector } from 'reselect'; import * as cmdb...
src/interface/others/PlayerBreakdown.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Trans } from '@lingui/macro'; import SPECS from 'game/SPECS'; import SpecIcon from 'common/SpecIcon'; import { formatNumber } from 'common/format'; import { TooltipElement } from 'common/Tooltip'; import indexByProperty from 'common/indexByPropert...
src/admin/app/index.js
jgretz/node-bits-admin
import './styles/styles.scss'; import 'react-select/dist/react-select.css'; import 'react-virtualized/styles.css'; import './babelHelpers'; import 'core-js/es6/symbol'; import 'core-js/es6/promise'; import 'core-js/es6/array'; import 'core-js/es6/number'; import 'core-js/es6/object'; import React from 'react'; import...
stories/types/result-field-token-type.js
smclab/react-faceted-token-input
import React from 'react'; const FIELDS = { "product": "Product", "description": "Description" }; export const RESULTS = [ { "product": "NPMP50000", "description": "", "status": "1-Compilazione-Richiesta", "createDate": "21/02/2015" }, { "product": "NPMP50078", "description": "MODIFI...
client/components/Main.js
gregmagdsick/learn-redux
import React from 'react'; import { Link } from 'react-router'; const Main = React.createClass({ render() { return ( <div> <h1> <Link to="/">Reduxtagram</Link> </h1> {React.cloneElement(this.props.children, this.props)} </div> ) } }); export default Main;
src/pages/yumarimel.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Yumarimel' /> )
src/Parser/Shaman/Restoration/Modules/Items/EonarsCompassion.js
hasseboulen/WoWAnalyzer
import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import React from 'react'; import ItemHealingDone from 'Main/ItemHealingDone'; import CoreEonarsCompassion from 'Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/EonarsCompassion'; import CooldownThroughputTracker from '../Features/CooldownTh...
src/apps/tabs/components/InfiniteScroll.react.js
producthunt/producthunt-chrome-extension
/** * Dependencies. */ import React from 'react'; import ReactDOM from 'react-dom'; /** * Utils. */ function topPosition(domElt) { if (!domElt) { return 0; } return domElt.offsetTop + topPosition(domElt.offsetParent); } /** * InfiniteScroll component. */ export default class InfiniteScroll extends ...
src/scenes/works/works-navigation.js
mattmischuk/m1x
// @flow import React from 'react' import styled from 'styled-components' import theme from 'styled-theming' import { Navigation, NavigationItem } from '../../components/navigation' import route from '../../data/routes' import { myTheme } from '../../styles' const { color, space } = myTheme const borderColor = the...
examples/huge-apps/routes/Calendar/components/Calendar.js
brandonlilly/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
src/Survey/Complex/Moth/Edit/Main/components/SpeciesList/components/SubSample/index.js
NERC-CEH/irecord-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { observer } from 'mobx-react'; import { IonItemOption, IonItemOptions, IonItem, IonIcon, IonItemSliding, IonButton, } from '@ionic/react'; import { alert } from 'ionicons/icons'; import './styles.sc...
packages/cf-component-card/test/CardToolbarLink.js
koddsson/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import CardToolbarLink from '../src/CardToolbarLink'; test('should render', () => { const component = renderer.create( <CardToolbarLink id="link" isActive={false} onClick={() => {}}> CardToolbarLink </CardToolbarLink> ); expect(...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
alobodig/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#888', fontSize: '.8rem', }; var Cloudin...
app/components/Labels/__tests__/LabelEdit-test.js
TailorDev/franklin
import React from 'react'; import { shallow, mount } from 'enzyme'; import { expect } from 'chai'; import sinon from 'sinon'; import Immutable from 'immutable'; // see: https://github.com/mochajs/mocha/issues/1847 const { describe, it } = global; import LabelEdit from '../LabelEdit'; import LabelForm from '../LabelFo...
admin/app/src/index.js
wjwu/blog
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import { HashRouter, Switch, Route, Redirect } from 'react-router-dom'; import createSagaMiddleware from 'redux-saga'; import reducers from './reducers'; import saga...
components/chronicle/Chronicle.js
yudazilian/VisualJusticeTW
import React from 'react'; import ReactDom from 'react-dom'; import ChronicleHeader from './ChronicleHeader'; import ChronicleFooter from './ChronicleFooter'; import ChronicleBody from './ChronicleBody'; export default class Chronicle extends React.Component { render() { return ( <div id="Chronicle" classNam...
scripts/main.js
maratgaip/MusicApp
import 'babel-polyfill'; import 'fastclick'; import 'isomorphic-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../styles/main.scss'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStor...
admin/client/components/Lightbox.js
suryagh/keystone
import React from 'react'; import blacklist from 'blacklist'; import Portal from './Portal'; import Transition from 'react-addons-css-transition-group'; const BODY = document.getElementsByTagName('body')[0]; var Lightbox = React.createClass({ displayName: 'Lightbox', propTypes: { backdropClosesModal: React.PropTy...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
fhchina/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
packages/component/src/ScreenReaderText.js
billba/botchat
/* eslint react/forbid-dom-props: ["off"] */ import PropTypes from 'prop-types'; import React from 'react'; import useStyleToEmotionObject from './hooks/internal/useStyleToEmotionObject'; const ROOT_STYLE = { // .sr-only - This component is intended to be invisible to the visual Web Chat user, but read by the AT w...
src/pages/dashboard/components/user.js
zuiidea/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Button, Avatar } from 'antd' import CountUp from 'react-countup' import { Color } from 'utils' import styles from './user.less' const countUpProps = { start: 0, duration: 2.75, useEasing: true, useGrouping: true, separator: ',', } functio...
react/features/base/dialog/components/native/ConfirmDialog.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { View } from 'react-native'; import Dialog from 'react-native-dialog'; import { translate } from '../../../i18n'; import { connect } from '../../../redux'; import AbstractDialog from '../AbstractDialog'; import { renderHTML } from '../functions.native'; import styles from ...
src/neuralNetwork/infoButtons/InfoButtons.js
csenn/nn-visualizer
import React from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; import * as graphConstants from '../networkGraph/graphConstants'; import InputLayerInfo from './InputLayerInfo'; import HiddenLayerInfo from './HiddenLayerInfo'; import BiasHistoryInfo from './BiasHistoryInfo'; import ActivationHistory...
src/svg-icons/action/view-carousel.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewCarousel = (props) => ( <SvgIcon {...props}> <path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/> </SvgIcon> ); ActionViewCarousel = pure(ActionViewCarousel); ActionViewCarousel.displayName =...
src/Foo.js
ferrannp/enzyme-example-jest
import React from 'react'; const Foo = React.createClass({ render() { return ( <p>I am not a very smart component...</p> ); } }); export default Foo;
test/OverlayTriggerSpec.js
brentertz/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import OverlayTrigger from '../src/OverlayTrigger'; import Popover from '../src/Popover'; import Tooltip from '../src/Tooltip'; describe('OverlayTrigger', function() { it('Should create OverlayTrigger element', function() { const i...
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
barakmitz/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuOpenImmediateExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value)...
demo/src/index.js
Psykar/react-filtered-multiselect
import 'bootstrap/dist/css/bootstrap.min.css' import 'bootstrap/dist/css/bootstrap-theme.min.css' import React from 'react' import {render} from 'react-dom' import FilteredMultiSelect from '../../src/index' import CULTURE_SHIPS from './ships.json' const BOOTSTRAP_CLASSES = { filter: 'form-control', select: 'form...
packages/ringcentral-widgets/components/ActiveCallDialPad/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DialPad from '../DialPad'; import CircleButton from '../CircleButton'; import BackHeader from '../BackHeader'; import audios from '../DialButton/audios'; import EndIcon from '../../assets/images/End.svg'; import styles from './styl...
src/components/UserCell.js
rollo-zhou/look
import React from 'react'; import { ActivityIndicator, Image, PixelRatio, StyleSheet, Text, TouchableOpacity, View, Dimensions, } from 'react-native'; import globalVariables from '../globalVariables.js'; import User from './User.js'; import moment from 'moment'; import Icon from 'react-native-vector-ic...
test/TagUncontroledGroupDemo.js
rsuite/rsuite-tag
import React, { Component } from 'react'; import { IconFont } from 'rsuite'; import Tag, { TagGroup } from '../src'; export default class TagUncontroledGroupDemo extends Component { constructor(props) { super(props); this.state = { tags: Object.keys(Tag.Color) }; } getColors = (color) => { ...
client/modules/App/components/Footer/Footer.js
msucorey/street-canvas
import React from 'react'; import { Link } from 'react-router'; // Import Style import styles from './Footer.css'; export function Footer() { return ( <div className={styles.footer}> <ul> <li className={styles.bottomNav}> <Link to="/" >MAP</Link></li> <li className={styles.bottomNav}><Link...
src/svg-icons/hardware/keyboard-arrow-up.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowUp = (props) => ( <SvgIcon {...props}> <path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowUp = pure(HardwareKeyboardArrowUp); HardwareKeyboardAr...
src/components/BrowserHeader/index.js
bkrall/react-portfolio
import React, { Component } from 'react'; /* component styles */ import { styles } from './browserHeader.scss'; export class BrowserHeader extends Component { render() { const { title, showBioPic, showPageDescription, pageDescription, headingClassString, titleClass } = this.props; return ( <section cl...
frontend/app/utils/async/injectReducer.js
briancappello/flask-react-spa
import React from 'react' import PropTypes from 'prop-types' import hoistNonReactStatics from 'hoist-non-react-statics' import get from 'lodash/get' import getInjectors from './reducerInjectors' /** * Dynamically injects a reducer * * @param {string} key A key of the reducer * @param {function} reducer A reducer...
lavalab/html/node_modules/react-bootstrap/es/Col.js
LavaLabUSC/usclavalab.org
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/Jumbotron.js
deerawan/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { ...
packages/ringcentral-widgets-docs/src/app/pages/Components/ConversationPanel/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
examples/src/main.js
prometheusresearch/react-forms
import React from 'react'; import ReactDOM from 'react-dom'; import Examples from './Examples'; import './styles/main.css'; ReactDOM.render(( <Examples /> ), document.getElementById('root'));
src/js/components/icons/base/Play.js
odedre/grommet-final
/** * @description Play SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prope...
src/components/Column.js
gakimball/react-inky
import React from 'react'; import PropTypes from 'prop-types'; import containsRow from '../util/containsRow'; import getAttrs from '../util/getAttrs'; import getColumnClasses from '../util/getColumnClasses'; import ContainerContext from '../util/containerContext'; /** * Grid column. Place sections of email content in...
src/components/DevTools.js
yosiat/gc-flags-viz
import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a monitor an...
__tests__/components/NumberInput-test.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import NumberInput from '../../src/js/components/NumberInput'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('NumberI...
front/app/js/rh-components/rh-IconCircleText.js
nudoru/learning-map
import React from 'react'; const IconCircleText = ({label, style, center, className}) => { let cls = 'rh-icon-circle-text'; if (style) { cls += '-' + style; } if (center) { cls += ' margin-center'; } if (className) { cls += ' ' + className; } return (<div className={cls}> <span>{lab...
src/renderer/components/SyncView/SyncTarget.js
digidem/ecuador-map-editor
import React from 'react' import { makeStyles } from '@material-ui/core/styles' import PhoneIcon from '@material-ui/icons/PhoneAndroid' import LaptopIcon from '@material-ui/icons/Laptop' import FileIcon from '@material-ui/icons/Usb' import ErrorIcon from '@material-ui/icons/Error' import Paper from '@material-ui/core/P...
docs/app/Examples/elements/Icon/Variations/IconExampleFitted.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleFitted = () => ( <div> <p>Tight spacing</p> <Icon fitted name='help' /> <p>Tight spacing</p> </div> ) export default IconExampleFitted
src/svg-icons/editor/border-clear.js
ArcanisCz/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/client/index.js
mitola/awesome-game
import React from 'react'; import ReactDOM from 'react-dom'; import './less/index.less'; import App from './App'; import registerServiceWorker from './utils/registerServiceWorker'; //TMP dependacy for material var injectTapEventPlugin = require("react-tap-event-plugin"); injectTapEventPlugin(); ReactDOM.render(<App ...
src/routes/app/routes/ui/routes/menus/components/Menus.js
ahthamrin/kbri-admin2
import React from 'react'; import QueueAnim from 'rc-queue-anim'; import Menu from './Menu'; import IconMenu from './IconMenu'; import DropdownMenu from './DropdownMenu'; const Menus = () => ( <section className="container-fluid with-maxwidth chapter"> <QueueAnim type="bottom" className="ui-animate"> <div ...
core/subschema-test-support/src/index.js
subschema/subschema-devel
import React, { Component } from 'react'; import PropTypes from 'subschema-prop-types'; import ValueManager from 'subschema-valuemanager'; import loader from 'subschema-loader'; import injector from 'subschema-injection'; import ReactDOM from 'react-dom'; import { expect } from 'chai'; import { ReactWrapper, configure,...
docs/app/Examples/elements/Divider/Variations/DividerExampleSection.js
shengnian/shengnian-ui-react
import React from 'react' import { Divider, Segment } from 'shengnian-ui-react' const DividerExampleSection = () => ( <Segment> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore... <Divider section /> Lorem ipsum dolor sit amet, consectetur adipiscing eli...
src/js/components/AccordionPanel.js
hadnazzar/ModernBusinessBootstrap-ReactComponent
import React from 'react'; export default class AccordionPanel extends React.Component { render() { return( <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="panel-group" id="accordion"> <div class="panel panel-defaul...
app/comp/HorizontalProgressComp.js
iwgang/GankCamp-React-Native
import React, { Component } from 'react'; import { View, ProgressViewIOS, ProgressBarAndroid, Platform } from 'react-native'; class HorizontalProgressComp extends Component { render() { if (Platform.OS === 'android') { return ( <ProgressBarAndroid styleAttr="Horizontal" colo...
src/components/Submit.js
nickorsk2020/agave-react-UI
/* * This file is part of the "Agave react UI" package * * Copyright (c) 2016 Stepanov Nickolay <nickorsk2020@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ import React from 'react'; import { Button } from 'react-b...
src/docs/layout/Footer.js
reactstrap/component-template
import React from 'react'; import { Container, Row, Col } from 'reactstrap'; const Footer = ({gh}) => { const [user, repo] = gh.split('/'); return ( <div className="footer mt-1"> <Container fluid> <Row> <Col className="text-center"> <p className="social"> <ifra...
src/common/components/DevTools/index.js
colinmeinke/universal-js
import DockMonitor from 'redux-devtools-dock-monitor' import LogMonitor from 'redux-devtools-log-monitor' import React from 'react' import { createDevTools } from 'redux-devtools' const DevTools = createDevTools( <DockMonitor changePositionKey='ctrl-q' toggleVisibilityKey='ctrl-h' > <LogMonitor /> </...
react/AndroidIcon/AndroidIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './AndroidIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function AndroidIcon({ ...props }) { return <Icon markup={svgMarkup} {...props} />; } AndroidIcon.displayName = 'AndroidIcon';
src/svg-icons/image/filter-center-focus.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterCenterFocus = (props) => ( <SvgIcon {...props}> <path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9...
app/components/ListItem/index.js
ddobby94/szakdoge_admin
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
src/Row.js
roderickwang/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { re...
app/components/Reusables/RefreshableListView.js
ethan605/react-native-zero
/** * @providesModule ZeroProj.Components.Reusables.RefreshableListView */ import React from 'react'; import { ListView, RefreshControl } from 'react-native'; import _ from 'lodash'; export default class RefreshableListView extends React.PureComponent { static propTypes = { onError: React.PropTypes.func, ...
app/assets/javascripts/libNmrSim/SampleDetailsTabName.js
ComPlat/nmr_sim
import React from 'react'; export default <div style={{ maxHeight: 25 }}>NMR</div>;
app/components/Sidebar/Sidebar.js
RichardLilja/BMC
// @flow import React, { Component } from 'react'; import styles from './Sidebar.scss'; export default class Sidebar extends Component { render() { return ( <section className={styles.container}> <header className={styles.header}> <h1 className={styles.headerHeading1}>Header</h1> ...
src/App.js
kosmologist/andromeda-web
import React from 'react'; import 'react-circular-progressbar/dist/styles.css' import Landing from "./components/Landing"; import {initFirebase} from "./firebase/fire"; import {store} from './store/DataStore' import Spinner from "./components/Spinner"; import Dashboard from "./components/Dashboard"; export default cla...
src/scenes/SettingsConfig/SettingsConfigContainer.js
jmlweb/paskman
import React, { Component } from 'react'; import PT from 'prop-types'; import { connect } from 'react-redux'; import { settingsFetchAction, settingsSaveAction, settingsChangeAction, } from '../../data/settings/duck'; import Loading from '../../components/Loading/Loading'; import SettingsConfig from './SettingsCon...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
xiaotaijun/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
packages/bonde-admin/src/components/dev-tools/index.js
ourcities/rebu-client
import React from 'react' // Exported from redux-devtools import { createDevTools } from 'redux-devtools' // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' // createDevTools takes a monitor and pr...
es/mobile/components/RoomHistory/HistoryList.js
welovekpop/uwave-web-welovekpop.club
import _extends from "@babel/runtime/helpers/builtin/extends"; import React from 'react'; import ReactDOM from 'react-dom'; import withProps from 'recompose/withProps'; import List from "@material-ui/core/es/List"; import Base from '../../../components/MediaList/BaseMediaList'; import HistoryRow from './Row'; var Histo...
src/components/ListItem.js
dazhifu/react-touch-ui
import React from 'react'; import assign from 'object-assign' import classnames from 'classnames'; import { View } from "./View.js" import Utils from "./common/Utils.js" import './ListItem.scss' import ArrowRight from 'react-icons/lib/io/ios-arrow-forward'; export class ListItem extends React.Component { ...
test/integration/css-fixtures/bad-custom-configuration-arr-2/pages/_app.js
zeit/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
app/containers/BudgetGrid/__tests__/index-test.js
ModusCreateOrg/budgeting-sample-app-webpack2
import React from 'react'; import renderer from 'react-test-renderer'; import { BudgetGrid } from '../index'; // mock nested component jest.mock('containers/EntryFormRow'); it('renders correctly', () => { const tree = renderer.create(<BudgetGrid transactions={[]} />).toJSON(); expect(tree).toMatchSnapshot(); });
lib/cli/test/fixtures/react_scripts_v2/src/index.js
storybooks/react-storybook
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
app/javascript/mastodon/features/ui/components/column_link.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const ColumnLink = ({ icon, text, to, href, method }) => { if (href) { return ( <a href={href} className='column-link' data-method={method}> <i className={`fa fa-fw fa-${icon} column-link__icon`}...
js/src/components/Editor/__test__/editorTest.js
understory-dev/react-draft-wysiwyg
/* @flow */ import React from 'react'; import { expect, assert } from 'chai'; import { shallow, mount } from 'enzyme'; import Editor from '..'; describe('Editor test suite', () => { it('should have a div when rendered', () => { expect(shallow(<Editor />).html().startsWith('<div')).to.be.true; }); it('shoul...
src/svg-icons/action/receipt.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReceipt = (props) => ( <SvgIcon {...props}> <path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-...
react-router-demo/src/index.js
iosWorker/iosWorker.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './Root'; ReactDOM.render( <Root />, document.getElementById('root') );
src/components/settings/password-form.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
public/javascripts/pages/main.js
kenticny/CasualData
import React from 'react'; import { Menu, Breadcrumb, Icon } from 'antd'; const ReactRouter = require('react-router'); module.exports = React.createClass({ getInitialState: function() { return { current: 'dashboard' } }, handleClick: function(e) { this.setState({ ...
imports/ui/components/UploadPdfCopy/UploadPdfCopy.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Table, Alert, Button , Row , Col } from 'react-bootstrap'; import { Bert } from 'meteor/themeteorchef:bert'; import { Capitalize } from '../../../modules/utilities'; import { SortReturnRecentOne, StripHtml ...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Details/LifeCycle/TransitionStateButton.js
ChamNDeSilva/carbon-apimgt
import React from 'react' import {Radio} from 'antd' const Button = Radio.Button; const TransitionStateButton = (props) => { return ( <Button value={props.state.targetState}>{props.state.event}</Button> ); }; export default TransitionStateButton
packages/website/src/components/TypeDoc/ApiClass.js
mucsi96/w3c-webdriver
import React from 'react'; import ApiFunction from './ApiFunction'; import Heading from '../content/Heading'; import ApiDescription from './ApiDescription'; const ApiClass = ({ name, children, minLevel, comment }) => { const items = children.filter(item => item.kindString === 'Method' && item.flags.isPublic); ite...
src/__tests__/For.js
damaera/react-conditioner
import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; import For from '../For'; describe('<For />', () => { it('should render children with length 3', () => { const Children = <span>Hello</span> const items = [0,1,2] const wrapper = mount( <For of={items} each=...
source/components/_STATELESS.react.js
argaskins/ThinkReact-Jenkins
import React from 'react'; const <NAME> = (parameters) => ( <div>{parameters}</div> ); export default <NAME>;
examples/huge-apps/routes/Grades/components/Grades.js
moudy/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
components/input/Input.js
KerenChandran/react-toolbox
import React from 'react'; import ClassNames from 'classnames'; import FontIcon from '../font_icon'; import style from './style'; class Input extends React.Component { static propTypes = { children: React.PropTypes.any, className: React.PropTypes.string, disabled: React.PropTypes.bool, error: React.P...
src/frame/rePCUI/tabs/base-tabs/InkTabBarMixin.js
gejialun8888/shop-react
import { setTransform, isTransformSupported } from './utils'; import React from 'react'; import classnames from 'classnames'; export function getScroll(w, top) { let ret = w[`page${top ? 'Y' : 'X'}Offset`]; const method = `scroll${top ? 'Top' : 'Left'}`; if (typeof ret !== 'number') { const d = w.document; ...
src/pages/tags.js
akilbekov/blog
import React from 'react'; import { Link } from 'gatsby'; import { Helmet } from 'react-helmet'; import kebabCase from 'lodash/kebabCase'; import Sidebar from '../components/Sidebar'; import { graphql } from 'gatsby'; class TagsRoute extends React.Component { render() { const { title } = this.props.data.site.sit...
docs/src/app/components/pages/discover-more/Community.js
ngbrown/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} />...
app/javascript/mastodon/features/account_timeline/components/header.js
Craftodon/Craftodon
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 ...
src/icons/ColorLensIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ColorLensIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 6C14.06 6 6 14.06 6 24s8.06 18 18 18c1.66 0 3-1.34 3-3 0-.78-.29-1.48-.78-2.01-.47-.53-.75-1.22-.75-...
src/js/components/icons/base/Checkmark.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/Tickets/AddProject.js
nadavspi/UnwiseConnect
import React, { Component } from 'react'; export default class AddProject extends Component { state = { projectId: '', }; submit = (e) => { e.preventDefault(); this.props.onAdd(this.state.projectId); } render() { return ( <form onSubmit={this.submit}> <div><label htmlFor="proj...
client/src/containers/NotFoundPage/index.js
steThera/react-mobx-koa
import React from 'react'; import ContentWrapper from 'components/ContentWrapper'; const NotFoundPage = () => ( <ContentWrapper> <section className="content"> Not found page </section> </ContentWrapper> ); export default NotFoundPage;