path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
server/sonar-web/src/main/js/components/SourceViewer/components/LineIssuesIndicator.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
www/src/components/survey/RenderSingleQuestionOptions.js
cygwin255/SimpleSurvey
import React from 'react' import { Field } from 'redux-form' import RenderValidationField from 'components/survey/RenderValidationField' import { required } from 'redux-form-validators' import Delete from 'svg/cross.svg' const RenderSingleQuestionOptions = ( { fields }) => { return ( <div className='qu...
app/app.js
Cherubyx/JamJam
import React from 'react'; import ReactDOM from 'react-dom'; // Import components import AppContainer from './containers/app.container' // Search component as a class class App extends React.Component { // Render returns JSX template render() { return ( <AppContainer /> ); } } // Render to ID co...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
IgorKilipenko/KTS_React
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
js/jqwidgets/demos/react/app/chart/intervalandsteps/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; import JqxNumberInput from '../../../jqwidgets-react/react_jqxnumberinput.js'; class App extends React.Component { ...
src/components/AboutPage.js
akataz/webSite
import React from 'react'; import {Link} from 'react-router'; import '../lib/css/about-page.css'; // Since this component is simple and static, there's no parent container for it. const AboutPage = () => { return ( <div> <h2 className="alt-header">About</h2> <p> This example app is part of th...
src/components/App.js
goldylucks/adamgoldman.me
/** * 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-t...
src/components/atoms/LogoImage/index.stories.js
DimensionLab/narc
import React from 'react' import { storiesOf } from '@storybook/react' import LogoImage from '.' storiesOf('LogoImage', module) .add('default', () => ( <LogoImage width={200} /> ))
basic/node_modules/react-router/es6/IndexRedirect.js
jintoppy/react-training
'use strict'; import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './PropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <Ind...
Libraries/Image/Image.ios.js
peterp/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/Icon/Icon.js
ilxanlar/cathode
import React from 'react'; import styled from 'styled-components'; import { icon as propTypes } from '../../helpers/propTypes'; const defaultIcons = { close: 'close', info: 'info-circled', success: 'ok-circled', warning: 'attention', error: 'attention', help: 'help-circled', angleDown: 'angle-down', fi...
node_modules/react-router/es6/RouterContext.js
victor335882/ReduxSimpleStarter-4
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < argum...
src/Thumbnail.js
westonplatter/react-bootstrap
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const Thumbnail = React.createClass({ mixins: [BootstrapMixin], propTypes: { alt: React.PropTypes.string, href: React.PropTypes.string, src: React.PropTyp...
classic/src/scenes/wbui/BrowserToolbarContent.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { IconButton, Tooltip } from '@material-ui/core' import { withStyles } from '@material-ui/core/styles' import { CHROME_PDF_URL } from 'shared/constants' import { URL } from 'url' import Spinner ...
client/src/components/Main.js
commandzpdx/habit-calendar
import React from 'react'; import { Route, Switch, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import SignIn from './SignIn'; import Home from './Home'; import UserMain from './UserMain'; import UserSetUp from './UserSetUp'; import NotFound from './NotFound'; // TODO: replace /firstname wit...
src/shared/components/socialMedia/socialMedia.js
tal87/operationcode_frontend
import React from 'react'; import fbImage from 'images/icons/Facebook-Icon.svg'; import ghImage from 'images/icons/GitHub-Icon.svg'; import twtImage from 'images/icons/Twitter-Icon.svg'; import liImage from 'images/icons/LinkedIn-Icon.svg'; import SocialMediaContainer from './socialMediaContainer/socialMediaContainer';...
src/routes.js
mbrochh/react-journal
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) ...
client/admin/scenes/protected/contacts.js
kirinami/portfolio
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { inject, observer } from 'mobx-react'; import { Breadcrumb, BreadcrumbItem } from 'reactstrap'; import Loading from '../../components/loading'; @inject('alertStore', 'contactStore') @observer export default class Contacts exten...
client/Components/UI/Modal/index.js
myheritage/UiZoo.js
import React from 'react'; import Card from '../Card'; import _ from 'underscore'; import './index.scss'; /** * @name * Modal * * @module * Content * * @description * Change isOpen to open/close the modal * * @example * <Modal className="modal_class_name" title="title"> * inner modal content * </Moda...
internals/templates/homePage/homePage.js
sedubois/belong
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/components/utilities/SearchAdvanced.js
jackson-/hireblack.io
import React from 'react' import PropTypes from 'prop-types' import { FormGroup, FormControl, ControlLabel, HelpBlock, Checkbox, Button, Glyphicon, Row, Col } from 'react-bootstrap' import './SearchAdvanced.css' const SearchAdvanced = props => { return ( <form className='SearchAdvanced' onSubmit={props.filte...
src/icons/ForwardIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ForwardIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 16V8l16 16-16 16v-8H8V16z"/></svg>;} };
admin/client/App/screens/List/components/Filtering/ListFiltersAdd.js
jacargentina/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import Transition from 'react-addons-css-transition-group'; import classnames from 'classnames'; import ListFiltersAddForm from './ListFiltersAddForm'; import Popout from '../../../../shared/Popout'; import PopoutList from '../../../../shared/Popout/PopoutLis...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
lstNull/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import classnames from '...
pages/about.js
sarahxy/irc
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { config } from 'config'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; export default class About extends Component { render () { return ( <div className="page page--about"> <Hel...
src/svg-icons/content/archive.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentArchive = (props) => ( <SvgIcon {...props}> <path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-....
src/components/google/plain/GooglePlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './GooglePlain.svg' /** GooglePlain */ function GooglePlain({ width, height, className }) { return ( <SVGDeviconInline className={'GooglePlain' + ' ' + className} ...
components/dataEntry.js
simon-jk-casey/hth-client
import React from 'react' import Menu from './menu' import addCaptureDataSvc from '../services/addCaptureData' import Predators from './predators' module.exports = ({state, dispatch}) => { const captureDevice = (e) => dispatch({type: 'ADD_PREDATOR', payload: {field: 'captureDevice', value: e.target.value}}) const ...
yycomponent/provider/Connector.js
77ircloud/yycomponent
import React from 'react'; import {connect} from 'react-redux'; import { Component, PropTypes } from 'react'; class Connector extends Component { render() { const { children, location, dispatch, common_table_data } = this.props; const cloneRouteChild = React.cloneElement(children, { key: 8675655463, ...
src/DropdownStateMixin.js
yuche/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; /** * Checks whether a node is within * a root nodes tree * * @param {DOMElement} node * @param {DOMElement} root * @returns {boolean} */ function isNodeInRoot(node, root) { while (node) { ...
src/atoms/header-bars/recurrence/component.js
dsmjs/components
import React from 'react'; import styles from '../styles'; const recurrenceBarStyles = { ...styles, background: '#AD5472' }; export default function RecurrenceBar() { return <div css={recurrenceBarStyles}>Second Tuesday every month</div>; }
src/svg-icons/maps/directions-railway.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRailway = (props) => ( <SvgIcon {...props}> <path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2...
src/components/Messages.js
chunghe/react-router-example
import React from 'react'; import {Link} from 'react-router'; class Messages extends React.Component { render() { return ( <div id="messages"> <Link className="message" to="message" params={{messageId: 1}}> <span className="from">David Brown</span> <span className="text">Hey, ...
app/components/CMenuItem.js
S4KH/react-native-nav-exp
/** * * Menu items displayed inside drawer, or tabs * * @author skh **/ import React, { Component } from 'react'; import { View, TouchableHighlight, StyleSheet, PixelRatio, Text } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; export default class CMenuItem extends Compone...
src/Button.js
thealjey/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; import ButtonInput from './ButtonInput'; const Button = React.createClass({ mixins: [BootstrapMixin], propTypes: { active: React.PropTypes.bool,...
src/routes.js
tomtom87/react-demo
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
src/decorator.js
kouhin/rrr-lazy
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import Lazy from './Lazy'; function interopRequireDefault(obj) { // eslint-disable-next-line no-underscore-dangle return obj && obj.__esModule ? obj : { default: obj }; } function noop() {} ...
src/svg-icons/device/bluetooth-searching.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothSearching = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9...
src/components/EditableSelectInput/EditableSelectInput.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import PropTypes from 'prop-types'; import SelectOptions from '../SelectInput/SelectOptions'; import SelectWrapper from '../SelectInput/SelectWrapper'; import EditableTextInput from './EditableTextInput'; import { checkDocumentEvent, openOptionsList, closeOptionsList, toggleOptionsL...
react-flux-mui/js/material-ui/src/svg-icons/toggle/star-half.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarHalf = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15....
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js
kagucho/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import IconButton from '../../../components/icon_button'; import { changeComposeSensitivity } from '../../../actions/compose'; import Motion from 'react-motion/lib/Motion'; import s...
examples/Overlay.js
cesarandreu/react-overlays
import React from 'react'; import Overlay from 'react-overlays/Overlay'; import Button from 'react-bootstrap/lib/Button'; // Styles Mostly from Bootstrap const TooltipStyle = { position: 'absolute', padding: '0 5px' }; const TooltipInnerStyle = { padding: '3px 8px', color: '#fff', textAlign: 'center', bor...
src/svg-icons/content/sort.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSort = (props) => ( <SvgIcon {...props}> <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/> </SvgIcon> ); ContentSort = pure(ContentSort); ContentSort.displayName = 'ContentSort'; ContentSort.mui...
src/frontend/src/index.js
blengerich/GenAMap
import jwt from 'jsonwebtoken' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { Router, Route, hashHistory } from 'react-router' import injectTapEventPlugin from 'react-tap-event-plugin' import { AppContainer } from 'react-hot-loader'; injectTapEventPlugin() ...
src/pages/Application/ApplicationCompletedCard.js
BoilerMake/frontend
import React from 'react'; import { Card } from 'bm-kit'; const ApplicationCompletedCard = ({ show }) => { return show ? ( <Card className="p-application__status_card"> <p> Hey there{' '} <span role="img" aria-label="wave"> 👋 </span>{' '} just a heads up! Your app...
modules/About.js
lida1984/react-router-learning
import React from 'react' export default React.createClass({ render() { return (<div> <h3>About</h3> <img src= 'myimg.png'/> </div> ) } })
src/components/ui/atoms/Text/Text.js
asukaleido/react-flux-example
import classNames from 'classnames'; import React from 'react'; import s from './Text.css'; export default function Text({ children, className }) { return ( <span className={classNames(className, s.container)}> {children} </span> ); } Text.propTypes = { children: React.PropTypes.oneOfType([ Re...
src/routes/SingleEvent/components/EnrollForm/EnrollForm.js
peksi/ilmomasiina
import React from 'react'; import Formsy from 'formsy-react'; import _ from 'lodash'; import { CheckboxGroup, Select, Input, Textarea } from 'formsy-react-components'; import './EnrollForm.scss'; export class EnrollForm extends React.Component { constructor(props) { super(props); this.parseSubmit = this.par...
src/svg-icons/content/delete-sweep.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDeleteSweep = (props) => ( <SvgIcon {...props}> <path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/> </SvgIcon> ); ContentDeleteSwee...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
mstdn-jp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, unmuteAccount, } from '../../../actions/accounts'; import { mentionCompose,...
src/components/Loader.js
AlexeySmolyakov/likeometer-redux
import React from 'react'; import PropTypes from 'prop-types'; const Loader = ({ photosTotal, photosLoaded }) => { const photosLoadedString = `${photosLoaded} / ${photosTotal}`; return ( <div className="loader-wrap"> <div className="loader" /> { photosTotal > 0 && <div className={'...
src/components/field-component.js
peterox/react-redux-form
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _get from '../utils/get'; import identity from '../utils/identity'; import omit from '../utils/omit'; import isPlainObject from '../utils/is-plain-object'; import pick from '../utils/pick'; import { connect } from 'react-redux'; import...
assets/jqwidgets/demos/react/app/dropdownlist/bindingtojson/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.myDropDownList.on('select', (event) => { if (event.args) { let item ...
client/js/morpheus/casts/factory.js
CaptEmulation/webgl-pano
import React from 'react'; import { head, once, tail, reverse, wrap, } from 'lodash'; import { createSelector } from 'reselect'; import { selectors as sceneSelectors, getSceneType, } from 'morpheus/scene'; import { decorate as faderDecorator } from './components/Fader'; import Special from './components/...
src/client/adapters/interactors/createRouter.js
axross/camelot
/* @flow */ import React from 'react'; import { IndexRoute, Route, Router } from 'react-router'; import { connect } from 'react-redux'; import NotFoundRoute from './routes/NotFoundRoute'; import ListPostsRoute from './routes/ListPostsRoute'; import Root from './Root'; const createRouter = (history: Object): Object =...
assets/javascripts/kitten/components/form/radio-button/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import deprecated from 'prop-types-extra/lib/deprecated' import classNames from 'classnames' import styled from 'styled-components' import { pxToRem, stepToRem } from '../../../helpers/utils/typography' import COLORS from '../../../constants/colors-config' im...
react/features/overlay/components/native/PageReloadOverlay.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { appNavigate, reloadNow } from '../../../app/actions'; import { ConfirmDialog } from '../../../base/dialog'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; import { setFatalError, setPageReloadOverlayCanceled } from '../../act...
app/config/Routes.js
jcarva/get_weather
import React from 'react' import { Router, Route, IndexRoute, hashHistory } from 'react-router' import Main from '../components/Main' import Home from '../components/Home' import ForecastContainer from '../containers/ForecastContainer' import DetailedDayContainer from '../containers/DetailedDayContainer' export defaul...
front/manage/components/villages.js
RalphSleigh/bookings
import React from 'react' import {DragDropContext, Draggable, Droppable} from 'react-beautiful-dnd' import update from 'immutability-helper'; //import bookings from '../bookings' import {manageWholeEventCheck} from '../permission.js' import Immutable from "immutable"; import { Row, Col, Button, Card, ...
components/Hero/Hero.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import m from '../../globals/modifiers.css'; import css from './Hero.css'; const Hero = (props) => { const { className, innerClassName, backgroundClassName, backgroundImage, children, caption, ani...
docs/src/app/components/pages/components/Dialog/ExampleAlert.js
ngbrown/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation. */ export default class DialogExampleAler...
src/js/components/WorldMap.js
linde12/grommet
// (C) Copyright 2016 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 KeyboardAccelerators from '../utils/KeyboardAccelerators'; const CLASS_ROOT = CS...
Paths/React/05.Building Scalable React Apps/1-react-boilerplate-building-scalable-apps-m1-exercise-files/Before/app/components/H2/index.js
phiratio/Pluralsight-materials
import React from 'react'; import styles from './styles.css'; function H2(props) { return ( <h2 className={styles.heading2} {...props} /> ); } export default H2;
packages/material-ui-icons/src/SignalWifi2Bar.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M4.79 12.52l7.2 8.98H12l.01-.01 7.2-8.98C18.85 12.24 16.1 10 12...
scripts/core/editor3/directive.js
fritzSF/superdesk-client-core
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {EditorState} from 'draft-js'; import {Editor3} from './components'; import createEditorStore from './store'; import {fromHTML} from './html'; import {changeEditorState, setReadOnly} from './actions'; /** * @ngd...
src/components/OrderStatus/OrderStatus.js
expdevelop/ultrastore
import React from 'react' import { Select, Content } from 'components' import { GREEN_COLOR, PINK_COLOR, TEXT_COLOR, GRAY_COLOR, BLUE_COLOR } from 'constants/colors' import { isEmpty } from 'helpers' import s from './OrderStatus.sass' const parseData = data => data.map(item => item.name); const createOnChange = (d...
frontend/src/components/navigation/Modals.js
jirkae/BeerCheese
import React from 'react'; import { connect } from 'react-redux'; import { hideModals } from '../../actions/openModal'; import ProductDetails from '../popup/ProductDetails'; import NewProductAdmin from '../popup/NewProductAdmin'; import EditProductAdmin from '../popup/EditProductAdmin'; import EditCustomerAdmin from '....
app/javascript/mastodon/components/autosuggest_input.js
Nyoho/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
src/containers/TopLevel.js
namelos/react-demo
import React, { Component } from 'react'; import MD from '../components/MD'; export default class TopLevel extends Component { render = () => <MD url="http://localhost:3000/toplevel.md" /> }
src/components/services/content/ServiceRestricted.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import { serviceLimitStore } from '../../../features/serviceLimit'; import Button from '../../ui/Button'; import { RESTRICTION_TYPES } from '../.....
src/components/SimpleButton/SimpleButton.js
maximgatilin/weathernow
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { TweenLite, Elastic } from 'gsap'; import styles from './SimpleButton.css'; class SimpleButton extends Component { componentDidMount() { if (this.props.animated) { this.animate(); } } render() { return ( <div classNa...
src/library/Tabs/Tab.js
mineral-ui/mineral-ui
/* @flow */ import React, { Component } from 'react'; import Truncate from '../Truncate'; import { TabAnchor as Anchor } from './styled'; import { tabPropTypes } from './propTypes'; import type { TabProps } from './types'; export default class Tab extends Component<TabProps> { static displayName = 'Tab'; static ...
src/components/Trick.js
tgevaert/react-redux-hearts
import React from 'react'; import Card from './Card'; import { Slide } from './Slide'; export const Trick = ({ trick, playerIDs, winnerID, POVIndex }) => { const directions = ['south', 'west', 'north', 'east']; const pnum = playerIDs.length; const directionMap = {}; for (let i = 0; i < playerIDs.length; i++) {...
docs/app/Examples/elements/Icon/IconSet/IconExampleRating.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Icon } from 'semantic-ui-react' const IconExampleRating = () => ( <Grid columns='5' doubling> <Grid.Column> <Icon name='empty heart' /> <p>empty heart</p> </Grid.Column> <Grid.Column> <Icon name='empty star' /> <p>empty star</p> </Grid....
examples/huge-apps/routes/Calendar/components/Calendar.js
amsardesai/react-router
import React from 'react'; class Calendar extends React.Component { render () { return ( <div> <h2>Calendar</h2> </div> ); } } export default Calendar;
app/components/GitHub/UserProfile.js
vandosant/react-notetaker
import React from 'react'; class UserProfile extends React.Component { render() { return ( <div> <h3>User Profile </h3> <ul className="list-group"> {this.props.bio.avatar_url && <li className="list-group-item"><img className="img-thumbnail" src={this.props.bio.avatar_url...
react-flux-mui/js/material-ui/src/svg-icons/editor/space-bar.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; EditorSpaceBar.muiName ...
src/components/home.js
avalla/webpack-react-kit
import React from 'react'; import Grid from 'react-bootstrap/lib/Grid' import Row from 'react-bootstrap/lib/Grid' import Col from 'react-bootstrap/lib/Col' import Counter from './home/counter.js' import PageHeader from './_shared/page_header' import styles from '../styles/style.scss' export default class Home exten...
gravity/gravity-frontend/src/forecast.js
egovernments/analytics
import React, { Component } from 'react'; import { store } from "./redux_store.js"; import { connect } from 'react-redux'; import MetricsGraphics from 'react-metrics-graphics'; import ReactTable from 'react-table'; import moment from 'moment'; import {offset} from "./utils.js"; class ForecastsPanel extends Component {...
opentech/static_src/src/app/src/components/SubmissionLink/index.js
OpenTechFund/WebApp
import React from 'react'; import PropTypes from 'prop-types'; import './styles.scss'; const SubmissionLink = ({ submissionID }) => { const submissionLink = `/apply/submissions/${submissionID}/`; return ( <div className="submission-link"> <a target="_blank" rel="noopener noreferrer" href=...
admin/src/components/PopoutList.js
stosorio/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutList = React.createClass({ displayName: 'PopoutList', propTypes: { children: React.PropTypes.node.isRequired, }, render () { let className = classnames('PopoutList', this.props.className); let props =...
lib/viewer/index.js
Kitware/in-situ-data-viewer
import React from 'react'; import PropTypes from 'prop-types'; import DataSetView from './DataSetView'; import icon from './icon.png'; // Load CSS import './style.css'; export default function ArcticViewer(props) { const base = props.basePath; return ( <div className="ArcticViewer"> <div className="Arc...
node_modules/material-ui/src/muiThemeable.js
Sporks/Doc-tor
import React from 'react'; import getMuiTheme from './styles/getMuiTheme'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } export default function muiThemeable(WrappedComponent) { const MuiComponent = (props, {muiTheme = getMuiTheme()}) =>...
js/Landing.js
jimmynono/cocktail-app
import React from 'react' import { Link } from 'react-router' import '../public/stylesheets/components/landing.scss' const Landing = React.createClass({ render () { return ( <div className='landing'> <h1 className='hero-title'>Deloitte Digital</h1> <h2 className='hero-subtitle'>Cocktail Gui...
src/universalRouter.js
michaelgruber/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import routes from './views/routes'; import { Provider } from 'react-redux'; const getFetchData = (component) => { return component.fetchData || (component.DecoratedComponent && component.DecoratedComponent.fetchData); }; export function createTransition...
src/client/athrun/apps/demo/screens/home/components/DistrictSelect.js
cnfi/laboratory
import React, { Component } from 'react'; import shallowCompare from 'react-addons-shallow-compare' import { Cascader } from 'antd'; class DistrictSelect extends React.Component { handleAreaClick(e, label, option) { e.stopPropagation(); console.log('点击了', label, option); } render() { con...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
wangkang0627/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import classnames from '...
packages/wix-style-react/src/Grid/docs/ExampleRowWithEqualHeight.js
wix/wix-style-react
import React from 'react'; import { Container, Row, Col, Card, FormField, Input } from 'wix-style-react'; export default () => ( <div style={{ background: '#F0F4F7', padding: 30 }}> <Container> <Row stretchViewsVertically> <Col span={8}> <Card stretchVertically> <Card.Header ...
fields/types/select/SelectColumn.js
helloworld3q3q/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; import { intlShape, FormattedMessage } from 'react-intl'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.ob...
client/src/pages/unsubscribed.js
otavioarc/freeCodeCamp
import React from 'react'; import { Router } from '@reach/router'; import RedirectHome from '../components/RedirectHome'; import ShowUnsubscribed from '../client-only-routes/ShowUnsubscribed'; function Unsubscribed() { return ( <Router> <ShowUnsubscribed path='/unsubscribed/:unsubscribeId' /> <ShowU...
src/js/components/deployment_plan/DeploymentPlan.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
docs/app/Examples/views/Feed/Types/FeedExampleEventsProp.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const events = [{ date: '1 Hour Ago', image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg', meta: '4 Likes', summary: 'Elliot Fu added you as a friend', }, { date: '4 days ago', image: 'http://semantic-ui.com/images/avatar/small/h...
public/js/pages/SessionsPage.js
JasonShin/HELP-yo
import React from 'react'; import SessionList from '../components/SessionsList'; import SessionsStore from '../stores/SessionsStore'; import animationConstants from '../constants/animationConstants'; const ReactCSSTransitionGroup = require('react-addons-css-transition-group'); export default class Sessions extends Rea...
mobile/App.js
nokia/LearningStore
import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import { Root, AppRegistry } from 'native-base'; import Home from './Home' import Store from './Store' import Item from './Item' import Search from './Search' import Simple from './Simple' import { Font } from 'expo'; impor...
src/utils/emoji.js
marg51/uto
import React from 'react' import emojify from 'emojify.js' emojify.setConfig({ignore_emoticons: true, img_dir: 'http://hassankhan.me/emojify.js/images/emoji'}) window.emojify = emojify function Emoji({children, ...props}) { const formated = emojify.replace(children) return (<span dangerouslySetInnerHTML={{_...
viewer/components/Panels.js
longcmu/geotrellis-osm-elevation
"use strict"; import React from 'react'; import _ from 'lodash'; import { PanelGroup, Panel, Input, Button, ButtonGroup } from 'react-bootstrap'; import SingleLayer from "./SingleLayer"; import DiffLayer from "./DiffLayer"; import DiffLayers from "./DiffLayers"; import AverageByState from "./AverageByState"; import Ave...
html.js
kepatopoc/gatsby-starter-clean
import React from 'react' import Helmet from "react-helmet" import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes () { return {...
src/react/tabs/tab.js
pivotal-cf/pivotal-ui
import React from 'react'; import PropTypes from 'prop-types'; export class Tab extends React.PureComponent { static propTypes = { 'aria-labelledby': PropTypes.string, className: PropTypes.string, disabled: PropTypes.bool, eventKey: PropTypes.any, onEntered: PropTypes.func, onExited: PropTyp...
src/svg-icons/hardware/watch.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareWatch = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2....
app/modules/humnos/components/Lists.js
arizto/humnos-mobile
'use strict'; import React, { Component } from 'react'; import { InteractionManager, View, FlatList, Animated, Text, ActivityIndicator, StyleSheet } from 'react-native'; import { SearchBar } from 'react-native-elements' import { List } from 'immutable'; import {bindActionCreators} from 'redux'; import { connect } fr...