path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/components/eois/modals/addClarificationAnswer/addClarificationAnswerForm.js
unicef/un-partner-portal
import React from 'react'; import { connect } from 'react-redux'; import { reduxForm, clearSubmitErrors } from 'redux-form'; import PropTypes from 'prop-types'; import Snackbar from 'material-ui/Snackbar'; import GridColumn from '../../../common/grid/gridColumn'; import TextFieldForm from '../../../forms/textFieldForm'...
src/components/Sections/SectionTable.js
demisto/sane-reports
import './SectionTable.less'; import React from 'react'; import PropTypes from 'prop-types'; import { getDefaultMaxLength, TABLE_CELL_TYPE } from '../../constants/Constants'; import { isEmpty, isString, isArray, truncate, isObjectLike, map } from 'lodash'; import WidgetEmptyState from './WidgetEmptyState'; import Secti...
src/index.js
budiantotan/book-store
import 'babel-polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import configureStore from './store/configu...
src/js/components/icons/base/VmMaintenance.js
kylebyerly-hp/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...
imports/old/signup/confirm.js
jiyuu-llc/jiyuu
import React from 'react'; const Confirm = () => ({ confirmNext(){ const firstName = Session.get("fname"); const lastName = Session.get("lname"); const username = Session.get('username'); const email = Session.get('contact'); const dob =Session.get('dob'); const password = Session.get('pass...
examples/js/app.js
prajapati-parth/react-bootstrap-table
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { IndexRoute, Router, Route, hashHistory } from 'react-router'; import App from './components/App'; import Home from './components/Home'; import GettingStarted from './components/GettingStarted'; import...
frontend/components/TwoColumn.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import styles from './TwoColumn.less'; const TwoColumn = ({children}) => <div className={styles.main}>{children}</div>; TwoColumn.propTypes = { children: PropTypes.node, }; TwoColumn.defaultProps = { children: null, }; export default TwoColumn;
docs/app/Examples/elements/Reveal/Types/RevealExampleMoveDown.js
aabustamante/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleMoveDown = () => ( <Reveal animated='move down'> <Reveal.Content visible> <Image src='/assets/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> <Image src=...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
nicksiyer/nicksiyer.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
index.android.js
quickresolve/CycleTheBay
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class CycleTheBay extends Component { render() { return ( <View style={styles.container}> <Text style...
src/icons/ArrowForwardIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ArrowForwardIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 8l-2.83 2.83L32.34 22H8v4h24.34L21.17 37.17 24 40l16-16z"/></svg>;} };
fixtures/nesting/src/modern/index.js
billfeller/react
import React from 'react'; import {StrictMode} from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import App from './App'; import {store} from '../store'; ReactDOM.render( <StrictMode> <Provider store={store}> <App /> </Provider> </StrictMode>, document.getElement...
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js
snagoor/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { cloneDeep, findIndex, isEqual } from 'lodash'; import { translate as __ } from 'foremanReact/common/I18n'; import { LoadingState } from '../../../../components/LoadingState'; import { recordsValid } from '../../SubscriptionValidation...
node_modules/react-bootstrap/es/PaginationButton.js
ivanhristov92/bookingCalendar
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/icons/ArrowUpC.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class ArrowUpC extends React.Component { render() { if(this.props.bare) { return <g> <path d="M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2 c-12.5,11.9-32.7,1...
src/components/Card.js
ciaoben/ListView
import React from 'react'; var Card = React.createClass({ getDefaultProps: function() { return { onPaginate: function() {}, status: 'loading', per: 25, page: 1, filter: null }; }, render: function() { return (<div className='card'> ...
src/containers/Simple/Simple.js
hungtruongquoc/shipper_front
import React, { Component } from 'react'; class Simple extends Component { render() { return ( <div className="app flex-row align-items-center"> {this.props.children} </div> ); } } export default Simple;
demo/universal-routed-flux-demo/components/AppContainer.react.js
waterbolik/prestudy
import React from 'react'; import {Link} from 'react-router'; export default class AppContainer extends React.Component{ constructor(props) { super(props); } render(){ var nav = <div> <p> <Link to="/todo">Todo list without logs</Link><br/> <Link...
src/TabPane.js
IveWong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const TabPane = React.createClass({ propTypes: { active: React.PropTypes.bool, animation: React.PropTypes.bool, onAnimateOutEnd: React.PropTypes.func, disabled: ...
src/svg-icons/content/filter-list.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFilterList = (props) => ( <SvgIcon {...props}> <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/> </SvgIcon> ); ContentFilterList = pure(ContentFilterList); ContentFilterList.displayName = 'Con...
app/javascript/mastodon/features/notifications/components/notification.js
hyuki0000/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 { FormattedMessage } from 'react-intl'; import Perma...
App/src/features/projects/ProjectsList.js
DupK/dashboard-epitech
import React, { Component } from 'react'; import moment from 'moment'; import { observer } from 'mobx-react/native'; import { Text, View, TouchableOpacity, Platform, ScrollView, ListView, } from 'react-native'; import ProgressBar from './ProgressBar'; import { Actions } from 'react-native-router...
src/components/GithubButton/GithubButton.js
paschcua/erikras
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
src/svg-icons/maps/layers-clear.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLayersClear = (props) => ( <SvgIcon {...props}> <path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-...
src/rows-toolbar.js
Uber5/u5-datatable
import React from 'react' import IconMenu from 'material-ui/IconMenu' import IconButton from 'material-ui/IconButton' import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more' import MenuItem from 'material-ui/MenuItem' import DropDownMenu from 'material-ui/DropDownMenu' import FlatButton from...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/Swagger/ApiCreateSwagger.js
lakmali/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
cobodo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandHashtagTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as ImmutableList } from 'immut...
src/shared/components/imageListItem/imageListItem.js
tal87/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './imageListItem.css'; const ImageListItem = props => ( <div className={styles.imageListItem}> <img className={styles.cardImage} src={props.image} alt={props.title} /> <div className={styles.cardText}> <h3 className={sty...
app/components/results-Child/Player.js
mohamekasem/reactstart
import React from 'react'; import PropTypes from 'prop-types'; import PlayerPreview from '../Battle-Child/Player-Preview'; const Profile = (props)=>{ let info = props.info; return ( <PlayerPreview username={info.login} avatar={info.avatar_url}> <ul className='space-list-items'> {info.name && <li>{i...
src/components/dashboard/feed/item.js
cosminseceleanu/react-sb-admin-bootstrap4
import React from 'react'; import Comment from "./comment"; import ItemActions from "./item-actions"; import { Card, CardImg, CardBody, CardFooter, CardTitle, CardText } from 'reactstrap'; const Item = ({item}) => { return ( <Card className="mb-3"> <CardImg top width="1...
src/Nav/Nav.js
brz0/folio-v11
import React from 'react'; import Modal from 'react-modal'; import {Link} from 'react-router'; import LogoLight from '../img/logo-light.svg'; import LogoDark from '../img/logo-dark.svg'; import MenuBtn from '../img/menu-btn.svg'; import MenuBtnDark from '../img/menu-btn-dark.svg'; import MenuClose from '../img/menuClos...
app/react-icons/fa/hand-peace-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaHandPeaceO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.8 14.4q1.3 0 2.3 0.6 3.2 1.4 3.2 5v3.9q0 2.2-0.5 4.2l-1.9 7.6q-0.5 1....
src/scripts/components/app.js
k-takam/simple-text-translator
import React, { Component } from 'react'; import Header from './header'; import Footer from './footer'; import MenuContainer from '../containers/menu-container'; import InputTextContainer from '../containers/input-text-container'; import OutputTextContainer from '../containers/output-text-container'; import ModalContai...
app/components/Vesting/CancelPowerDownPrompt.js
aaroncox/vessel
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Message, Modal, Segment } from 'semantic-ui-react'; import { Form } from 'formsy-semantic-ui-react' import * as KeysActions from '../../actions/keys'; class CancelPowerDownPro...
src/prop-types.js
narendrashetty/react-geosuggest
import React from 'react'; /** * Default values */ export default { fixtures: React.PropTypes.array, initialValue: React.PropTypes.string, placeholder: React.PropTypes.string, disabled: React.PropTypes.bool, className: React.PropTypes.string, inputClassName: React.PropTypes.string, suggestsHiddenClassN...
app/templates/src/createRoutes.js
chentsulin/generator-redux-app
import React from 'react'; import { Route } from 'react-router'; import App from './containers/App'; import * as containers from './containers'; const { CounterPage, AnotherPage, NotFoundPage, } = containers; /** * / * /another **/ const createRoutes = store => ( // eslint-disable-line no-unused-vars <...
src/Popover.js
JimiHFord/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/routes.js
kunwardeep/react-redux-store
import React from 'react'; import {Route,IndexRoute} from 'react-router'; import HomePage from './components/home/HomePage'; import App from './components/App'; import AboutPage from './components/about/AboutPage'; import CoursesPage from './components/course/CoursesPage'; import PracticePage from './components/practi...
docs/build.js
leozdgao/react-bootstrap
import React from 'react'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import Root from './src/Root'; import fsp from 'fs-promise'; import { copy } from '../tools/fs-utils'; import { exec } from '../tools/exec'; import metadata from './generate-metadata'; const repoRo...
actor-apps/app-web/src/app/components/ActivitySection.react.js
shaunstanislaus/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import ActorAppConstants from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'...
src/components/gradients/h-gradient.js
mapbox/react-colorpickr
import React from 'react'; import PropTypes from 'prop-types'; import themeable from 'react-themeable'; import { autokey } from '../../autokey'; function HGradient({ theme, active, hueBackground }) { const themer = autokey(themeable(theme)); if (!active) return <noscript />; return ( <> <div {...themer...
packages/react/components/fab-buttons.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7FabButtons extends React.Component { co...
src/react/connect.js
krasimir/stent
import React from 'react'; import connect from '../helpers/connect'; export default function(Component) { const withFunc = (...names) => { const mapFunc = (done, once, silent) => { const mapping = once ? "mapOnce" : silent ? "mapSilent" : "map"; return class StentConnect extends React.Component { ...
site/demos/ecommerce/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
assets/js/components/SignInModal.js
basarevych/webfm
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { Form, FormGroup, Label, Col, Input } from 'reactstrap'; import RequiredFieldLabel from './RequiredFieldLabel'; import FormMessages fro...
src/core/UserProfileStructure/ProfileImage/component.js
dlennox24/ricro-app-template
import { Collapse } from '@material-ui/core'; import Button from '@material-ui/core/Button'; import withStyles from '@material-ui/core/styles/withStyles'; import Typography from '@material-ui/core/Typography'; import classNames from 'classnames'; import _ from 'lodash'; import IconPencil from 'mdi-material-ui/Pencil'; ...
src/svg-icons/image/crop-3-2.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop32 = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z"/> </SvgIcon> ); ImageCrop32 = pure(ImageCrop32); ImageCro...
client/src/components/Draftail/Tooltip/Tooltip.js
jnns/wagtail
import PropTypes from 'prop-types'; import React from 'react'; const TOP = 'top'; const LEFT = 'left'; const TOP_LEFT = 'top-left'; const getTooltipStyles = (target, direction) => { const top = window.pageYOffset + target.top; const left = window.pageXOffset + target.left; switch (direction) { case TOP: ...
src/js/components/icons/base/Detach.js
odedre/grommet-final
/** * @description Detach 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. * @pro...
app/containers/Root.js
pamler/electron-mario
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Routes from '../routes'; type RootType = { store: {}, history: {} }; export default function Root({ store, history }: RootType) { return ( <Provider store={store}> <...
src/components/repository-section-title.component.js
Antoine38660/git-point
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { StateBadge } from 'components'; import { colors, fonts } from 'config'; type Props = { text: string, openCount: number, closedCount: number, loading: boolean, }; const styles = StyleSheet.create({ title: { flexDi...
app/containers/CodingPage/index.js
andresol/homepage
import React from 'react'; import Nav from 'components/Nav'; import StravaSection from 'components/Strava/Section'; const Coding = () => ( <div className="page-wrap"> <Nav index={3} /> <section id="main"> <StravaSection note={'Coding'} action={false} /> <section id="athlets"> <div> ...
modules/RouteContext.js
brownbathrobe/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
src/components/EditPaymentMethods.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'react-bootstrap'; import { defineMessages } from 'react-intl'; import withIntl from '../lib/withIntl'; import EditPaymentMethod from './EditPaymentMethod'; class EditPaymentMethods extends React.Component { static propTypes = { ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js
johnslay/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(name) { return [ { id: 1, name: `${na...
Libraries/Image/Image.ios.js
cdlewis/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...
client/src/components/instructor/InstructorCourseRow.js
yegor-sytnyk/contoso-express
import React from 'react'; const InstructorCourseRow = (props) => { let course = props.course; let activeClass = props.selectedCourseId === course.id ? 'success' : ''; return ( <tr className={activeClass}> <td className="tools"> <a href="#" onClick={props.onSelectClick...
fields/types/number/NumberColumn.js
ONode/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.object, data: React.PropTyp...
src/routes/not-found/NotFound.js
murthymuddu/murthy-umg
/** * 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-...
ButtonExample/src/containers/DisabledButtons.js
jacklam718/react-native-button-component
import React, { Component } from 'react'; import { View, ScrollView, StyleSheet } from 'react-native'; import ButtonComponent from 'react-native-button-component'; import GroupContainer from '../components/GroupContainer'; export default class DisabledButtons extends Component { render() { return ( <Scroll...
examples/todomvc/index.js
cyongen/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
inventapp/src/App/App.js
ladanv/learn-react-js
import React, { Component } from 'react'; import Header from './Header'; import SideNav from './SideNav'; import styles from './App.scss'; const App = ({ children }) => ( <div className="App"> <Header /> <SideNav /> <div className={styles.main}> {children} </div> </div> ); export default App...
client/src/components/thankyou.js
JoeDou/wesayidou
import React from 'react' export default () => { return ( <div className="thankyou"> <div className="thankyou-msg black">We got your</div> <img src="/assets/images/rsvp.jpg" width="600" height="350"/> <div className="thankyou-msg black">Thank You!</div> </div> ) }
main.js
BigAB/can-react-performance-test
import React from 'react'; import ReactDOM from 'react-dom'; import App from "./containers/app"; ReactDOM.render( <App />, document.querySelector( '#app' ) );
app/components/LoadingOverlay.js
LouWii/syno-music-app
import React from 'react'; import '../styles/LoadingOverlay.global.css' class LoadingOverlay extends React.Component { render() { const visibilityClass = this.props.ui.loadingOverlay ? 'running' : 'done' return ( <div className={'loading-overlay '+visibilityClass}> <div className="loading-back...
src/docs/examples/ProgressBar/ExampleProgressBar.js
choudlet/ps-react-choudlet
import React from 'react'; import ProgressBar from 'ps-react/ProgressBar'; /** 80% Example */ export default function ExampleProgressBar() { return <ProgressBar width={200} percent={80} /> }
src/clincoded/static/components/experimental_curation.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'underscore'; import moment from 'moment'; import url from 'url'; import { curator_page, content_views, history_views, queryKeyValue, dbxref_prefix_map, external_u...
client/auth/Forgot.js
bryanph/Geist
import React from 'react' import fetchJSON from './utils/fetch' import { withRouter } from 'react-router-dom' import { Link } from 'react-router-dom' import { RenderErrors, ValidationErrors } from './Error' import getHeaders from './headers' import { FlatButton } from '../app/components/button' import { InputEmail, ...
app/containers/DashboardPage.js
ClearwaterClinical/cwc-react-redux-starter
import React from 'react' import { connect } from 'react-redux' import { t } from '../i18n' import { Panel } from 'react-bootstrap' class DashboardPage extends React.Component { componentDidMount () { document.title = `${t('navigation.dashboard')} | ${t('_brand-styled')}` } render () { const { user } =...
src/svg-icons/navigation/more-vert.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreVert = (props) => ( <SvgIcon {...props}> <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"...
docs/app/Examples/elements/Step/Groups/StepExampleVertical.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const steps = [ { completed: true, icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' }, { completed: true, icon: 'credit card', title: 'Billing', description: 'Enter billing information' }, { active: true, icon: ...
src/components/SkeletonText/SkeletonText-story.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable no-console */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, boolean, numbe...
src/svg-icons/av/forward-5.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward5 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1....
src/parser/warlock/destruction/modules/talents/Inferno.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatThousands } from 'common/format'; import StatisticListBoxItem from 'interface/others/...
vendor/laravel/framework/src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js
binmurv/C.B.U.L.M.S.
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class Example extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-8 col-md-offset-2"> ...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
sylph-sin-tyaku/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandHashtagTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as ImmutableList } from 'immut...
webapp-src/src/Login/PasswordForm.js
babelouest/glewlwyd
import React, { Component } from 'react'; import i18next from 'i18next'; import apiManager from '../lib/APIManager'; import messageDispatcher from '../lib/MessageDispatcher'; class PasswordForm extends Component { constructor(props) { super(props); this.state = { username: props.username, p...
src/components/Icon.js
CookPete/rplayr
// http://dmfrancisco.github.io/react-icons import React from 'react' import classNames from './Icon.scss' export default function Icon ({ icon, className = '', ...extraProps }) { return ( <svg {...extraProps} className={classNames.icon + ' ' + className} viewBox='0 0 24 24' preserveAsp...
app/containers/App/index.js
j921216063/chenya
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; // import styled from 'styled-components'; import Header from 'components/Header'; impor...
client/components/singleentry/DetailTable.js
MusicConnectionMachine/VisualizationG6
import React from 'react' export default class DetailTable extends React.Component { constructor (props) { super(props) var entries = [] let defaultEntries = [] if (props.type === 'artists') { defaultEntries = [ { id: 'name', name: 'Name' }, { id: 'dateOfBirth', ...
src/routes/UIElement/iconfont/index.js
zhangjingge/sse-antd-admin
import React from 'react' import { Iconfont } from '../../../components' import { Table, Row, Col } from 'antd' import styles from './index.less' const iconlist = ['Cherry', 'Cheese', 'Bread', 'Beer', 'Beet', 'Bacon', 'Banana', 'Asparagus', 'Apple'] const IcoPage = () => <div className="content-inner"> <ul classNam...
lib/components/elements/text-box/style.js
rento19962/relax
import React from 'react'; import Utils from '../../../utils'; import Colors from '../../../colors'; import {Types} from '../../../data-types'; export default { type: 'text', options: [ { label: 'Font Family', id: 'font', type: Types.Font }, { label: 'Font Size', id: 'font...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
codl/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
src/packages/@ncigdc/modern_components/DownloadClinicalDropdown/DownloadClinicalDropdown.relay.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { graphql } from 'react-relay'; import { withRouter } from 'react-router-dom'; import { compose, withPropsOnChange } from 'recompose'; import Query from '@ncigdc/modern_components/Query'; import { makeFilter, addInFilters } from '@ncigdc/utils/filters'; export default (Comp...
client/containers/process_by_id.js
vidi-insights/vidi-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router' import {Panel, PageHeader} from '../components/index' import ChartistGraph from 'react-chartist' import {subscribe, unsubscribe} from '../actions/vidi' import _ from 'lodash' export const ProcessById = React.c...
resources/_pages/Contact.js
AndrewTJohnston/andrewtjohnston.com
import React from 'react' import Nodes from './ContactNodes' import Share from './ShareContact' export default React.createClass({ getInitialState() { return { data: require('json!./../_assets/data/contact.json'), width: 1000, height: 1000 } }, render() { return ( <div> <Share /> <Node...
app/components/build/Show.js
buildkite/frontend
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { RootContainer } from 'react-relay/classic'; import * as BuildQuery from 'app/queries/Build'; import AnnotationsList from './AnnotationsList'; import Header from './Header'; declare var Buildkite: { JobComponent: Object, BuildManualJo...
src/decorators/withViewport.js
JosephArcher/KappaKappaKapping
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
webapp/app/components/Notifications/Form/Groups/SelectedGroups/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component selected groups form notifications // import React from 'react'; import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap'; import ButtonPopover from 'components/ButtonPopover'; import Option from 'components/Option'; import styles from 'components/Notifications/styles.css'; /*...
react-flux-mui/js/material-ui/src/svg-icons/image/hdr-strong.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrStrong = (props) => ( <SvgIcon {...props}> <path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ...
node_modules/react-router-scroll/test/routes.js
juhov/travis-test
import React from 'react'; import { Route } from 'react-router-dom'; function Page1() { return ( <div style={{ width: 20000, height: 20000 }} /> ); } function Page2() { return ( <div style={{ width: 10000, height: 10000 }} /> ); } export const syncRoutes = [ <Route path="/" exact key="page1" compon...
server/sonar-web/src/main/js/apps/component-measures/details/treemap/MeasureTreemap.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
src/parser/priest/holy/modules/talents/90/Halo.js
fyruna/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import ItemDamageDone from 'interface/others/ItemDamageDo...
PublicApp/Main.js
sergiu-paraschiv/pi-media-center-automation
import React from 'react'; import ReactDOM from 'react-dom'; import InjectTapEventPlugin from 'react-tap-event-plugin'; import PageComponent from './Page/components/PageComponent'; InjectTapEventPlugin(); ReactDOM.render( <PageComponent />, document.getElementById('content') );
node_modules/radium/src/resolve-styles.js
Sweetgrassbuffalo/ReactionSweeGrass-v2
/* @flow */ import type {Config} from './config'; import appendImportantToEachValue from './append-important-to-each-value'; import cssRuleSetToString from './css-rule-set-to-string'; import getState from './get-state'; import getStateKey from './get-state-key'; import hash from './hash'; import {isNestedStyle, merge...
app/javascript/mastodon/features/direct_timeline/components/conversation.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'mastodon/components/status_content'; import AttachmentList from 'mastodon/components/attachment_list'...
app/components/Home.js
firewenda/testwebsite
import React from 'react'; import {Link} from 'react-router'; import HomeStore from '../stores/HomeStore' import HomeActions from '../actions/HomeActions'; import {first, without, findWhere} from 'underscore'; class Home extends React.Component { constructor(props) { super(props); this.state = HomeStore.getS...
src/decorators/withSize.js
orionsoft/parts
import React from 'react' import autobind from 'autobind-decorator' import throttle from 'lodash/throttle' export default function(ComposedComponent) { return class WithSize extends React.Component { constructor(props) { super(props) this.state = this.calculateSize() this.debouncedHandle = thro...
svg/logo.js
michael-lowe-nz/NBA-battles
import React from 'react' module.exports = () => <svg id="Layer_1" x="0px" y="0px" width="220px" height="220.5px"> <circle fill="#FFFFFF" stroke="#000000" strokeWidth="3" strokeMiterlimit="10" cx="110" cy="110.25" r="93.982"/> <line fill="none" stroke="#000000" strokeWidth="3" strokeMiterlimit="10"...
step7-flux/node_modules/react-router/es6/Lifecycle.js
jintoppy/react-training
'use strict'; import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation...