path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/demos/kepler.gl/3-load-config/src/main.js
uber-common/vis-academy
// Copyright (c) 2018 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
pages/services/index.js
wasap/beauty_salon
import Layout from '../../components/Layout'; import { connect } from 'react-redux'; import React from 'react'; import s from './styles.scss'; import { getServices, getBrands, getReviews } from '../../core/info'; class servicesPage extends React.Component { static propTypes = { services: React.PropTypes.array.is...
app/components/Filter/BusinessDropdown.js
Bullseyed/Bullseye
import React from 'react' import { Input } from 'react-materialize' import SubRest from './SubDropdowns/SubRest' import SubLaund from './SubDropdowns/SubLaund' import { connect } from 'react-redux' import { addBType } from '../../reducers/b-type-reducer' import SubNight from './SubDropdowns/SubNight' import SubBeauty f...
actor-apps/app-web/src/app/components/Main.react.js
hmoraes/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
src/search_results.js
offenesdresden/annotieren
import React from 'react' import Reflux from 'reflux' import Route from 'react-route' import { Card, CardTitle, CardActions, CardText } from 'react-md/lib/Cards' import { RaisedButton } from 'react-md/lib/Buttons' import { List, ListItem } from 'react-md/lib/Lists' import Subheader from 'react-md/lib/Subheaders' impor...
app/components/Main.js
vikramcse/react-project-shop-admin
import React from 'react'; import { Router, Route, Link } from 'react-router' import firebaseUtils from '../utils/firebaseUtils'; var Main = React.createClass({ getInitialState: function(){ return { loggedIn: firebaseUtils.isLoggedIn() } }, handleLogout: function(loggedIn){ this.setState({ ...
src/screens/Actions.js
nanomish/a9
import React from 'react'; import { StyleSheet, ScrollView } from 'react-native'; import Row from '../components/Row'; class Actions extends React.Component { constructor(props) { super(props); this._fab = false; this._rightButton = null; this._contextualMenu = false; this._toggleTabs = 'shown'...
webapp/containers/DevTools/DevTools.js
raksuns/universal-iraks
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
src/routes/dashboard/index.js
102010cncger/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Row, Col, Card } from 'antd' import { color } from 'utils' import { Page } from 'components' import { NumberCard, Quote, Sales, Weather, RecentSales, Comments, Completed, Browser, Cpu, User } from './components' import s...
react-fundamentals/es6-react-setup/main.js
gongmingqm10/EggHead
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import Wrapper from './Wrapper'; import WrapperUpdater from './WrapperUpdater'; import AppMixin from './AppMixin'; import NumberApp from './NumberApp'; import PersonApp from './PersonApp'; import JSXApp from './JSXApp'; ReactDOM.rend...
src/server/frontend/render.js
hsrob/league-este
import DocumentTitle from 'react-document-title'; import Html from './html.react'; import Promise from 'bluebird'; import React from 'react'; import Router from 'react-router'; import config from '../config'; import immutable from 'immutable'; import initialState from '../initialstate'; import routes from '../../client...
server/sonar-web/src/main/js/apps/overview/meta/Meta.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...
packages/icons/src/md/image/PictureAsPdf.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPictureAsPdf(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 4c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H16c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4h24zM23 19v-2c0-1.66-1.34-3-3-3h-5v12h3v-4h2c1.66 0 3-1.34...
examples/containers/landing/LandingFoot.js
alcedo-ui/alcedo-ui
/** * @file LandingFoot.js */ import React from 'react'; // Components import IconAnchor from 'src/IconAnchor'; // Styles import './LandingFoot.scss'; const LandingFoot = () => ( <div className="landing-foot"> <> <span className="name">Alcedo-UI</span> &nbsp;is freely distribu...
app/index.js
waagsociety/tnl-relationizer
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { ReduxRouter } from 'redux-router'; import store from './store'; import './index.css'; render( <Provider store={store}> <ReduxRouter /> </Provider>, document.getElementById('app') );
src/svg-icons/content/content-paste.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentPaste = (props) => ( <SvgIcon {...props}> <path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s...
src/routes/Oppgave1/components/Oppgave1Text.js
andreasnc/summer-project-tasks-2017
import React from 'react'; const Oppgave1Text = () => <div> <p>a) Legg til navn og høyde på Anakin vha verdier fra props i StarWarsCharacter komponenten.</p> <p>b) Nå mottar kompenenten "StarWarsCharacter" datafeltene om en karakter via et samlet object "character". Forsøk å endre slik at "StarWarsCharacter"...
packages/react-error-overlay/src/components/CodeBlock.js
HelpfulHuman/helpful-react-scripts
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { redTransparent, yellowTransparent } from '../styles'; const _preStyle = { display: 'b...
showcase/plot/area-chart-elevated.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/views/Items.js
alexras/truepeacein.space
import React, { Component } from 'react'; import './Items.css'; import missiletank from './images/missile-tank.png'; import energytank from './images/energy-tank.png'; var areas = ['norfair', 'brinstar', 'ridley', 'kraid']; class Item extends Component { constructor(props) { super(props); this.handleClick ...
app/components/LoadingIndicator/index.js
EpiAggregator/web
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
client/src/components/SignUpForm.js
jferrettiboke/react-auth-app-example
import React from 'react'; import { Field, reduxForm } from 'redux-form'; const renderField = ({ input, label, type, meta: { touched, error } }) => { const hasError = (touched && error) ? 'has-danger' : ''; return ( <div className={`form-group ${hasError}`}> <label>{label}</label> <div> <in...
client/www/lib/auth0-lock/src/ui/box/multisize_slide.js
pymelibre/age-of-companies
import React from 'react'; import ReactDOM from 'react-dom'; import CSSCore from 'fbjs/lib/CSSCore'; export default class Slider extends React.Component { constructor(props) { super(props); this.state = {children: {current: props.children}}; } componentWillReceiveProps(nextProps) { // TODO: take a p...
src/components/ForkMeOnGithubRibbon.js
zwhitchcox/redux-game-of-life
import React from 'react'; const PROJECT_URL = 'https://github.com/alanrsoares/redux-game-of-life'; export default class ForkMeOnGithubRibbon extends React.Component { render() { return ( <div> <div className="github-fork-ribbon-wrapper right-bottom visible-xs"> { this.renderRibbon() } ...
src/containers/sign-petition.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import Petition from 'Theme/petition' import { LoadableThanks } from '../loaders/' import { actions as petitionActions } from '../actions/petitionActions' import { appLocation } from '../routes' class SignPetition exten...
client/src/assignment/Assignment.js
ziel5122/autograde
import Paper from 'material-ui/Paper'; import Subheader from 'material-ui/Subheader'; import React from 'react'; import { Route, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import Actions from '../home/Actions'; import Editor from './Editor'; import Tabs from '../home/Tabs'; const ass...
src/components/containers/jobownerJob-container.js
mberneti/ReactAdmin
import React from 'react'; import { connect } from 'react-redux'; import JobOwnerJob from '../views/jobownerJob'; import store from '../../store'; import { loadDashboardTitle } from '../../actions/dashboard-actions'; import * as jobApi from '../../api/jobowner-api'; class jobownerJobContainer extends React.Component {...
src/vrPlayer.js
kngroo/Kngr
import React, { Component } from 'react'; require('./styles/vrPlayer.scss'); var gl, mvMatrix, squareVerticesBuffer, vertexPosAttr, shaderProgram, perspectiveMatrix; export default class VrPlayer extends Component { constructor(props) { super(props); } componentWillMount() { var fragmentScript = docum...
demo/script.js
lacona/react-lacona
import React from 'react' import {render} from 'react-dom' import {combinePlaceholders} from 'lacona-utils' import {Parser} from 'lacona' import {createElement} from 'lacona-phrase' import ReactLacona from '..' const parser = new Parser() parser.grammar = createElement('list', {items: ['Batman', 'Spiderman', 'Superma...
src/components/wallet/AddressGet.js
whphhg/vcash-ui
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { action, computed, extendObservable, reaction } from 'mobx' /** Ant Design */ import AutoComplete from 'antd/lib/auto-complete' import Button from 'antd/lib/button' import Input from 'antd/lib/inpu...
internals/templates/app.js
JonathanMerklin/react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
packages/metadata-react/src/Diagrams/Settings/grid23.js
oknosoft/metadata.js
// @flow weak import React from 'react'; import SvgIcon from '@material-ui/core/SvgIcon'; export default function Flask(props) { return <SvgIcon {...props} viewBox="0 0 120 120"> <path d={` M0,0 l120,0 l0,4 l-120,0 l0,-4z M0,39 l120,0 l0,4 l-120,0 l0,-4z M0,79 l120,0 l0,4 l-120,0 l0,-4z M0,116 l...
src/svg-icons/image/exposure-zero.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureZero = (props) => ( <SvgIcon {...props}> <path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44...
examples/real-world/src/root/Root.prod.js
mpeyper/redux-subspace
import React from 'react' import PropTypes from 'prop-types' import { Provider } from 'react-redux' import { ConnectedRouter } from 'connected-react-router' import Routes from './Routes' const Root = ({ store, history }) => ( <Provider store={store}> <ConnectedRouter history={history}> <Routes /> </Con...
src/internal/SlideInChild.js
rscnt/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import autoPrefix from '../utils/autoPrefix'; import transitions from '../styles/transitions'; class SlideInChild extends React.Component { static propTypes = { children: React.PropTypes.node, direction: React.PropTypes.string, enterDelay: Reac...
src/app/screens/Authentication/screens/ForgotPassword/components/ForgotPassword.js
docgecko/react-alt-firebase-starter
/*! React Alt Firebase Starter */ import './ForgotPassword.less'; import React from 'react'; export default class Login extends React.Component { render() { return ( <div className='forgot-password'> <h1>Forgot Password...</h1> </div> ); } }
docs/src/app/components/pages/components/Card/ExampleControlled.js
spiermar/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Toggle from 'material-ui/Toggle'; export default class CardExampleControlled extends React.Component { constructor(props) { super(pro...
frontend/src/DiscoverMovie/Posters/DiscoverMoviePoster.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CheckInput from 'Components/Form/CheckInput'; import Icon from 'Components/Icon'; import Label from 'Components/Label'; import IconButton from 'Components/Link/IconButton'; import Link from 'Components/Link/Link'; import Popover from '...
src/components/hoc/require_authentication.js
sfordjasiri/TT
import React from 'react'; import _ from 'lodash'; import {connect} from 'react-redux'; /** * This is an HOC (Higher Order Component) whose render() method * makes sure that the application store's state.authenticated flag * is set to true before calling the "wrapped" component's, * (i.e. ComposedComponent), rende...
dapp/src/routes/iot/components/chile/main.js
airalab/DAO-IPCI
import React from 'react' import { translate } from 'react-i18next' import { Link } from 'react-router' import _ from 'lodash' import Form from '../../containers/formChile' // {t('countDevices', { count: props.info.countDevice })} |&nbsp; const Main = (props) => { const { t } = props return <div> <div classNam...
classic/src/scenes/wbfa/generated/FARClone.free.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faClone } from '@fortawesome/free-regular-svg-icons/faClone' export default class FARClone extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faClone} />) } }
src/components/About.js
unikorp/king
import React from 'react'; const About = () => ( <div> <h2>About the product</h2> <p> This product is an open-source UI that allows to manage Kong by another way than using the API. This is more friendly! </p> <h2>About the team</h2> <p> We are a lovely team of few developers i...
src/packages/@ncigdc/modern_components/Pvalue/Pvalue.relay.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { graphql } from 'react-relay'; import { compose, withPropsOnChange } from 'recompose'; import Query from '@ncigdc/modern_components/Query'; export default (Component: React$Element<*>) => compose( withPropsOnChange(['data'], ({ data }) => { return { vari...
lib/client/components/index.js
chaos-adept/monkey-tournament
import React from 'react'; import {Stats} from './stats'; import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router'; const ACTIVE = { color: 'blue' }; export class Index extends React.Component { render(){ return ( <div> <h2>Index</h2> ...
stories/index.stories.js
henrybuilt/react-sticky-table
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, number, text } from '@storybook/addon-knobs/react' import './demo.css'; import Basic from './Basic/index'; import StickyAllSides from './StickyAllSides/index'; import Borders from './Borders/index'; import NoBorders from './N...
src/client.js
Astro9113/wanchainWeb
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
admin/client/App/screens/Item/components/EditForm.js
trentmillar/keystone
import React from 'react'; import moment from 'moment'; import assign from 'object-assign'; import { Form, FormField, FormInput, Grid, ResponsiveText, } from '../../../elemental'; import { Fields } from 'FieldTypes'; import { fade } from '../../../../utils/color'; import theme from '../../../../theme'; import { ...
src/gapi.js
aha-app/bigquery-log-viewer
import React from 'react'; export default class Gapi extends React.Component { state = { initialized: false, }; componentDidMount() { if (this.mountedOnce) { return; } this.mountedOnce = true; if (window.gapi) { this.setState({ initialized: true }); return; } cons...
packages/wizard/src/components/MappingFieldsetArray.js
wq/django-data-wizard
import React from 'react'; import { useComponents } from '@wq/react'; import PropTypes from 'prop-types'; export default function MappingFieldsetArray({ label, subform, children }) { const { Fieldset, Table, TableHead, TableBody, TableRow, TableTitle } = useComponents(); return ( <Fieldset labe...
srcjs/components/app.js
wlainer/react-redux-tutorial
import React from 'react' import { Link } from 'react-router' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { loadingChanged } from '../actions' import { loadBooks } from '../actions/books' import { loadAuthors } from '../actions/authors' import NotificationContainer from './no...
src/svg-icons/navigation/unfold-less.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationUnfoldLess = (props) => ( <SvgIcon {...props}> <path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"/> </SvgIcon> )...
app/components/blog.js
gon250/gonzalobarba-reactjs
/* * Module dependencies */ import React from 'react'; import Reflux from 'reflux'; import BlogStore from '../stores/blogStore'; import Card from './shared/card.js' var Blog = React.createClass({ mixins: [Reflux.connect(BlogStore, 'blogstore')], render: function() { if(this.state.blogstore){ ...
src/main.js
vlt5/react-starter-kit
/* entry file */ import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('app-root'));
src/views/base/progress/Progress.js
mrholek/CoreUI-React
import React from 'react' import { CCard, CCardBody, CCardHeader, CCol, CProgress, CProgressBar, CRow } from '@coreui/react' import { DocsCallout, DocsExample } from 'src/components' const Progress = () => { return ( <CRow> <CCol xs={12}> <DocsCallout name="Progress" href="components/progress" /> ...
src/js/views/devices/new.js
mmagr/gui
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { PageHeader, ActionHeader } from "../../containers/full/PageHeader"; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { Link, hashHistory } from 'react-router' import alt from '../../alt'; import AltCont...
packages/icons/src/md/av/Forward5.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdForward5(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M8 28c0 8.8 7.2 16 16 16s16-7.2 16-16h-4c0 6.6-5.4 12-12 12s-12-5.4-12-12 5.4-12 12-12v8l10-10L24 4v8c-8.8 0-16 7.2-16 16zm13.4 1.8l.5-4.3h4.8v1.4h-...
springboot/GReact/src/main/resources/static/app/routes/ui/containers/icons/FontAwesomeIcons.js
ezsimple/java
import React from 'react' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../../components' export default class FontAwesomeIcons extends React.Component { state = { search: '' } shouldComponentUpdate(nextProps, nextState) { if (this.state.search != nextState.search) { let ...
app/assets/javascripts/components/story/ExpandedStory/ExpandedStoryHistoryLocation.js
Codeminer42/cm42-central
import React from 'react'; import Clipboard from 'react-clipboard.js'; import { storyUrl } from '../StoryUrl'; import { editingStoryPropTypesShape, hasHistory } from '../../../models/beta/story'; import PropTypes from 'prop-types'; const ExpandedStoryHistoryLocation = ({ story, onClone, showHistory }) => ( <di...
src/hooks/useStore.js
reactjs/react-redux
import { useContext } from 'react' import { ReactReduxContext } from '../components/Context' import { useReduxContext as useDefaultReduxContext } from './useReduxContext' /** * Hook factory, which creates a `useStore` hook bound to a given context. * * @param {React.Context} [context=ReactReduxContext] Context pass...
src/StaggeredMotion.js
chenglou/react-motion
/* @flow */ import mapToZero from './mapToZero'; import stripStyle from './stripStyle'; import stepper from './stepper'; import defaultNow from 'performance-now'; import defaultRaf from 'raf'; import shouldStopAnimation from './shouldStopAnimation'; import React from 'react'; import PropTypes from 'prop-types'; import...
src/containers/Navigation/Navigation.js
ashelkov/hexa
/* @flow */ import React from 'react' export default class Navigation extends React.Component { render () { return ( <nav className='navbar navbar-default'> <div className='container'> <div className='navbar-header'> <button type='button' className='navbar-toggle...
src/parser/druid/guardian/modules/features/GalacticGuardian.js
fyruna/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS';...
demo/src/entry.js
lonord/react-marked-editor
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; import './font-awesome-less/font-awesome.less'; ReactDOM.render(<App/>, document.getElementById('root'))
docs/src/sections/MenuItemSection.js
HPate-Riptide/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function MenuItemSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <...
src/SegmentedControl/index.js
octopitus/RNAnimatedBarChart
/* @flow */ import React, { Component } from 'react'; import { Animated, View, Text, TouchableWithoutFeedback } from 'react-native'; import styles from './styles'; type DefaultProps = { onChange: (value: *) => void }; type Props = DefaultProps & { animateDuration: number, tabWidth: number, labels: Array<stri...
stories/tooltip/index.js
shulie/dh-component
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import TooltipDeom from './tooltip.jsx'; // import { Tooltip, Button } from '../../src'; import withReadme from 'storybook-readme/with-readme'; const options = { inline: true } storiesOf('Tooltip 提示信息', module) // .addDecora...
src/SparklinesSpots.js
goodeggs/react-sparklines
import React from 'react'; export default class SparklinesSpots extends React.Component { static propTypes = { size: React.PropTypes.number, style: React.PropTypes.object, spotColors: React.PropTypes.object }; static defaultProps = { size: 2, spotColors: { ...
src/components/field/CheckBox.js
redux-autoform/redux-autoform-material-ui
import React from 'react'; import PropTypes from 'prop-types'; import Checkbox from 'material-ui/Checkbox/Checkbox'; import { getDisplayName } from 'redux-autoform-utils'; import FormGroup from '../common/FormGroup'; import propTypes from '../../util/FieldPropTypes'; const styles = { checkbox: { marginTop: '0 !imp...
assets/jqwidgets/demos/react/app/colorpicker/settings/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxColorPicker from '../../../jqwidgets-react/react_jqxcolorpicker.js'; import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js'; class App extends React.Component { componentDidMount() { this.refs.myColorPicker.on('c...
src/svg-icons/notification/sms-failed.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSmsFailed = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); NotificationSmsFail...
packages/ringcentral-widgets-docs/src/app/pages/Components/FeedbackPanel/index.js
u9520107/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...
src/@ui/Header/BackButton.js
NewSpring/Apollos
import React from 'react'; import { View, Platform } from 'react-native'; import { compose, withProps } from 'recompose'; import MediaQuery from '@ui/MediaQuery'; import { Link } from '@ui/NativeWebRouter'; import { H7 } from '@ui/typography'; import Icon from '@ui/Icon'; import styled from '@ui/styled'; const Row = s...
src/Notification.js
neelvadgama-hailo/react-bootstrap-table
import React, { Component } from 'react'; import { ToastContainer, ToastMessage } from 'react-toastr'; const ToastrMessageFactory = React.createFactory(ToastMessage.animation); class Notification extends Component { // allow type is success,info,warning,error notice(type, msg, title) { this.refs.toastr[type...
js/components/developer/job-information-screen/jobDetails.js
justarrived/p2p-client
import React, { Component } from 'react'; import { Container, Content } from 'native-base'; import { connect } from 'react-redux'; import PreviewJobCard from '../../common/preview-job-card/previewJobCard'; import GlobalStyle from '../../../resources/globalStyle'; import JAButton from '../../common/ja-button'; import { ...
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js
frnk94/material-ui
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; const style = { marginRight: 20, }; /** * Default size and `mini` FABs, in primary (default), `secondary` and `disabled` colors. */ const FloatingActionButton...
app/components/Gallery.js
davidj288/learn-es6
import React, { Component } from 'react'; class Gallery extends Component{ render(){ let default_thumb = "http://www.novelupdates.com/img/noimagefound.jpg"; return ( <div className="Gallery"> { this.props.items.map((item, index) => { let {title, imageLinks, infoLink} = item.volumeInfo; re...
src/components/common/icons/Sort.js
WendellLiu/GoodJobShare
import React from 'react'; /* eslint-disable */ export default props => ( <svg {...props} version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" enableBackground="new 0 0 24 24"> <g> <path d="M9,0C8.7,0,8.5,0.1,8.3,0.3l-8,8C0.1,8.5,0,8.7,0,9c0,0.3,0.1,0.5,0.3,0.7l1.4,1.4c0.2,0.2,0.5,0.3,0.7,0...
node_modules/react-bootstrap/es/MediaListItem.js
superKaigon/TheCave
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 ...
gmatgamefrontend/src/App.js
decodeMERV/GMATgameFE
import React, { Component } from 'react'; import { Link } from 'react-router'; import './App.css'; import Menu from './modals/Menu'; import auth from './auth.js'; import onClickOutside from 'react-onclickoutside'; const Burger = onClickOutside(class extends Component { handleClickOutside() { this.props.onClickOu...
node_modules/react-router-dom/node_modules/react-router/es/Router.js
victor335882/ReduxSimpleStarter-4
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
src/packages/@ncigdc/components/analysis/SelectScrnaSeq/SelectScrnaSeqWorkflow/SelectScrnaSeqWorkflow.relay.js
NCI-GDC/portal-ui
/* eslint-disable camelcase */ import React from 'react'; import { graphql } from 'react-relay'; import { compose, pure, setDisplayName, withPropsOnChange, } from 'recompose'; import Query from '@ncigdc/modern_components/Query'; import { scrnaSeqFilters } from '../SelectScrnaSeq.relay'; const variables = { files...
src/components/DialogCloseAnimation/index.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; /** * Component that handles the material-ui/Dialog close animation when a Dialog unmounts. */ export default class DialogCloseAnimation extends React.Component { timeout = null; static propTypes = { children: PropTypes.element, delay: PropT...
src/svg-icons/av/slow-motion-video.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSlowMotionVideo = (props) => ( <SvgIcon {...props}> <path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1....
src/svg-icons/notification/sync.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSync = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25...
docs/app/Examples/elements/List/Content/ListExampleIcon.js
vageeshb/Semantic-UI-React
import React from 'react' import { Icon, List } from 'semantic-ui-react' const ListExampleIcon = () => ( <List> <List.Item as='a'> <Icon name='help' /> <List.Content> <List.Header>Floated Icon</List.Header> <List.Description> This text will always have a left margin to make ...
examples/row-selection/src/App.js
tannerlinsley/react-table
import React from 'react' import styled from 'styled-components' import { useTable, useRowSelect } from 'react-table' import makeData from './makeData' const Styles = styled.div` padding: 1rem; table { border-spacing: 0; border: 1px solid black; tr { :last-child { td { border...
src/components/widgets/audio/SoundByte.js
brancusi/lingo-client-react
import React from 'react'; import Radium from 'radium'; import Player from 'components/widgets/audio/SoundBytePlayer'; import fetch from 'isomorphic-fetch'; import { fromJS } from 'immutable'; import guidFn from 'utils/guid'; @Radium export default class SoundByte extends React.Component { static propTypes = { i...
node_modules/react-router/es/IndexRoute.js
iEnder/React-Blog
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
src/svg-icons/hardware/keyboard-voice.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardVoice = (props) => ( <SvgIcon {...props}> <path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6....
app/routes/configureRoutes.js
natac13/portfolio-2016
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import App from '../containers/App/'; import Main from '../components/Main/'; import Contact from '../components/Contact/'; import JavascriptExperience from '../components/JavascriptExperience/'; import ElectricalExperience from '../c...
packages/react-error-overlay/src/iframeScript.js
digitalorigin/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 './utils/pollyfills.js'; import React from 'react'; import ReactDOM from 'react-dom'; import CompileErrorContainer from './contai...
src/svg-icons/social/sentiment-satisfied.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentSatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1...
src/applications/hca/config/chapters/veteranInformation/americanIndian.js
department-of-veterans-affairs/vets-website
import fullSchemaHca from 'vets-json-schema/dist/10-10EZ-schema.json'; import React from 'react'; import PrefillMessage from 'platform/forms/save-in-progress/PrefillMessage'; const { sigiIsAmericanIndian } = fullSchemaHca.properties; const Description = props => { return ( <> <PrefillMessage {...props} ...
test/e2e/getserversideprops/app/pages/blog/[post]/index.js
zeit/next.js
import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' export async function getServerSideProps({ params, resolvedUrl }) { if (params.post === 'post-10') { await new Promise((resolve) => { setTimeout(() => resolve(), 1000) }) } if (params.post === 'post-100'...
addons/centered/example/index.js
enjoylife/storybook
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import decorator from '../index'; const content = decorator(() => 'Hello World!'); const wrapper = document.querySelector('#content'); ReactDOM.render(content, wrapper);
src/svg-icons/action/label.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabel = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/> </SvgIcon> ); A...
src/settings/SettingsContainer.js
qingweibinary/binary-next-gen
import React, { Component } from 'react'; import shouldPureComponentUpdate from 'react-pure-render/function'; import { connect } from 'react-redux'; import immutableChildrenToJS from 'binary-utils/lib/immutableChildrenToJS'; import SettingsCard from './SettingsCard'; import settingsSelectors from './settingsSelectors'...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
KnzkDev/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
docs/app/Examples/elements/Segment/Variations/SegmentPaddedExample.js
jcarbo/stardust
import React from 'react' import { Segment } from 'stardust' const SegmentPaddedExample = () => ( <Segment padded> Padded content. </Segment> ) export default SegmentPaddedExample
packages/slate-html-serializer/test/serialize/block.js
6174/slate
/** @jsx h */ import React from 'react' import h from '../helpers/h' export const rules = [ { serialize(obj, children) { if (obj.kind == 'block' && obj.type == 'paragraph') { return React.createElement('p', {}, children) } } } ] export const input = ( <state> <document> <...