path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
demos/react/react-native.js
iCasa/js-xlsx
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ import * as XLSX from 'xlsx'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, Alert, Image } from 'react-native'; import { Table, Row, Rows } from 'react-native-table-component'; // react-native-fs import { w...
docs/src/SupportPage.js
victorzhang17/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
pootle/static/js/shared/mixins/FormValidationMixin.js
unho/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; // eslint-disable-line no-unus...
src/clincoded/static/components/individual_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, external_url_map, country_cod...
frontend/javascript/components/app.component.js
artyomtrityak/letsplay-graphql-sever
import React from 'react'; import Relay from 'react-relay'; class App extends React.Component { render() { return ( <div> <h1>Users list</h1> <ul> {this.props.viewer.users.map(user => <li key={user.id}>{user.email} (ID: {user.id})</li> )} </ul> ...
react-native-life/ReactNativeLife/js/Components/SectionList/index.js
CaMnter/front-end-life
/** * @author CaMnter */ import React from 'react'; import {SectionListExample} from "./SectionList"; class Root extends React.Component{ constructor(props){ super(props); } render(){ return( <SectionListExample/> ); } } module.exports = Root;
app/containers/MainPage/index.js
PeterKow/clientAurity
/* * * MainPage * */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { fetchTest } from 'dbTweets' import { createSelector } from 'reselect'; import mainSelector from 'mainSelector'; import Button from 'Button'; import SnippetContainer from 'com...
app/javascript/mastodon/features/getting_started/components/announcements.js
tootsuite/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import Icon f...
src/Parser/HolyPaladin/Modules/Features/CastEfficiency.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ISSUE_IMPORTANCE from 'Parser/Core/ISSUE_IMPORTANCE'; import CoreCastEfficiency from 'Parser/Core/Modules/CastEfficiency'; const SPELL_CATEGORY = { ROTATIONAL: 'Rotatio...
actor-apps/app-web/src/app/index.js
mxw0417/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import injectTapEventPlugin from 'react-tap-event-plugin'; import Deactivated from 'components/Deactivated.react'; import Login from 'components/Login.react'; import ...
src/svg-icons/content/move-to-inbox.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMoveToInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3...
packages/reactor-kitchensink/src/examples/Layouts/fit/fit.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container, Panel } from '@extjs/ext-react'; import colors from '../../colors'; export default class FitLayoutExample extends Component { render() { return ( <Container layout="vbox" padding={10}> <Panel shadow ui="instructions"...
node_modules/material-ui/src/styles/theme-decorator.js
DocWave/Doc-tor
import React from 'react'; export default (customTheme) => { return function(Component) { return React.createClass({ childContextTypes: { muiTheme: React.PropTypes.object, }, getChildContext() { return { muiTheme: customTheme, }; }, render() { ...
tests/react_modules/es6class-proptypes-callsite.js
fletcherw/flow
/* @flow */ import React from 'react'; import Hello from './es6class-proptypes-module'; class HelloLocal extends React.Component<void, {name: string}, void> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): React.Element<*> { return <div>{this.props.name}</div>; ...
src/components/icons/PauseCircleIconBold.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import { colors, generateFillFromProps } from '../styles/colors'; const PauseCircleIconBold = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 512 512"> {props.title && <title>{props.title}</title>} <path {...generateFillFromProps(props,...
ssr_demo/react-ssr-demo/src/createApp.js
hstarorg/PythonDemo
import App from './pages/App'; import { Provider } from 'react-redux'; import React from 'react'; export const createApp = (store) => ( <Provider store={store}> <App /> </Provider> );
fixtures/fiber-debugger/src/index.js
aickin/react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
viewer/core/static/js/app/components/views/chart.js
openjck/distribution-viewer
import React from 'react'; import Fetching from './fetching'; import ChartAxisContainer from '../containers/chart-axis-container'; import ChartLineContainer from '../containers/chart-line-container'; import ChartHoverContainer from '../containers/chart-hover-container'; import ChartFocus from './chart-focus'; export...
client/src/containers/App.js
Nonsoft/crdweb
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import AppLayout from '../components/AppLayout'; import AppRoutes from '../routes/AppRoutes'; import Login from './Login' import { fetchUserLogout, fetchIni...
node_modules/react-router/es6/RoutingContext.js
MichaelWiss/React_E
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
src/client/components/TeamCardWidget/TeamCardWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' const TeamCardWidget = ({ github = 'https://github.com/trippian/', name = '', image = '', about = '', location = '', role = 'Software Engineer' }) => { return ( <div className="col-xs-12 col-sm-6 col-md-6 team"> <div className="text-center"> <...
site/IndexPage.js
konce/react-dnd
import './base.less'; import Constants, { APIPages, ExamplePages, Pages } from './Constants'; import HomePage from './pages/HomePage'; import APIPage from './pages/APIPage'; import ExamplePage from './pages/ExamplePage'; import React, { Component } from 'react'; const APIDocs = { OVERVIEW: require('../docs/00 Quick ...
assets/jqwidgets/demos/react/app/chart/percentagestackedcolumns/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let sampleData = [{ a: 0.35, b: 14.5 }, { a: 1, b: 2.5 }, { a: 10, b: 0.2 }, { a: 100, b: 205 }, { a: 1, b: 100 }, { a: 5.11, b: 1...
src/svg-icons/device/signal-wifi-1-bar-lock.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
src/svg-icons/action/swap-horiz.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapHoriz = (props) => ( <SvgIcon {...props}> <path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/> </SvgIcon> ); ActionSwapHoriz = pure(ActionSwapHoriz); ActionSwapHoriz.d...
src/components/MultiSelect/MultiSelect-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. */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKn...
src/scenes/dashboard/grouplist/index.js
PowerlineApp/powerline-rn
//This is the My Groups screen accessible via the burger menu //Shows the user's current groups he is joined to except public town/state/country groups (which only appear on Group Selector, not in My Groups list below) //https://api-dev.powerli.ne/api-doc#get--api-v2-user-groups import React, { Component } from 'react...
client/components/Landing/Landing.js
ncrmro/reango
import React from 'react' import Page from 'components/Page/Page' import Link from 'react-router-dom/es/Link' import Button from 'react-mdc-web/lib/Button/Button' const Landing = () => <Page heading='Landing' > <p>This is the landing page</p> <Link to='/polls' ><Button>Polls</Button></Link> </Page> export ...
admin/client/components/Forms/InvalidFieldType.js
suryagh/keystone
import React from 'react'; module.exports = React.createClass({ displayName: 'InvalidFieldType', propTypes: { path: React.PropTypes.string, type: React.PropTypes.string, }, render () { return <div className="alert alert-danger">Invalid field type <strong>{this.props.type}</strong> at path <strong>{this.props...
app/javascript/mastodon/features/notifications/components/column_settings.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import GrantPermissionButton from './grant_permission_button'; import SettingToggle from './set...
src/routes.js
Kronenberg/WebLabsTutorials
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, Pagination, } from 'containers'; export ...
src/components/Navbar/Navbar.js
hawaiilife/hawaiilife-react-starter-kit
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * 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'; // eslint-disable-line no-unused-vars class Navbar { rende...
app/react-icons/fa/tablet.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaTablet extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m21.3 31.4q0-0.5-0.4-1t-1-0.4-1 0.4-0.5 1 0.5 1 1 0.5 1-0.5 0.4-1z m8.6-3.5v-...
packages/ringcentral-widgets-docs/src/app/pages/Components/ContactList/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ContactList from 'ringcentral-widgets/components/ContactList'; const props = {}; props.currentLocale = 'en-US'; props.contactGroups = [{ id: 'K', caption: 'K', contacts: [{ id: '123', name: 'Kevin One', extensionNumber: '1234', type: '...
src/components/Sidebar/index.js
luigiplr/Ulterius
import React from 'react'; import _ from 'lodash'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import { History } from 'react-router'; export default React.createClass({ mixins: [PureRenderMixin, History], getInitialState() { return { active: '/', tabs: ...
app/containers/CreateGamePage.js
cdiezmoran/playgrounds-desktop
// @flow import React, { Component } from 'react'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import type { Dispatch } from '../actions/types'; // import actions import { addGameRequest, fetchEditGameIfNeeded, editGameRequest } from '../actions/game'; import { requestSignatureCa...
docs/app/Examples/elements/Label/Types/LabelExampleCorner.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const LabelExampleCorner = () => ( <Grid columns={2}> <Grid.Column> <Image fluid label={{ as: 'a', corner: 'left', icon: 'heart' }} src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.C...
test/helpers/shallowRenderHelper.js
yeWangye/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src-web/js/view/Editor.js
kwangkim/pigment
import React from 'react'; import Radium from 'radium'; import * as MaterialUI from 'material-ui'; import { getChildren, reactJoin } from './util'; let { Styles: { Colors } } = MaterialUI; let theme = MaterialUI.Styles.ThemeManager().getCurrentTheme(); const headerStyle = { //borderLeft: '4px solid gray', borderB...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
masto-donte-com-br/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...
js/components/content/content.js
Krelix/krelix.github.io
/** * Created by Adrien on 11/04/2016. */ import React from 'react'; export default class Content extends React.Component { render() { //TODO : set content to be rendered return ( <main> {this.props.children} </main> ); } }
packages/material-ui-icons/src/Undo.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Undo = props => <SvgIcon {...props}> <path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z" /> </SvgIcon...
UI/Buttons/ButtonStopWatch.js
Datasilk/Dedicate
import React from 'react'; import { View, TouchableOpacity} from 'react-native'; import {G, Path} from 'react-native-svg'; import SvgIcon from 'ui/SvgIcon'; import AppStyles from 'dedicate/AppStyles'; export default class ButtonStopWatch extends React.Component { constructor(props){ super(props); } ...
renderer/containers/UI/CryptoValue.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import Span from 'components/UI/Span' import Value from 'components/UI/Value' import { tickerSelectors } from 'reducers/ticker' const mapStateToProps = state => ({ currency: tickerSelectors.cryptoUnit(state), }) const...
app/containers/HomePage/index.js
KarandikarMihir/react-boilerplate
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Helmet from 'react-helmet'; import messages from './messages'; import { createStructuredSelector } from 'reselect'...
app/components/Chat/index.js
GuiaLa/guiala-web-app
/** * * Chat * */ import React from 'react'; import styles from './styles.css'; function Chat() { return ( <div className={ styles.chat }> <h1>Chat chat chat, chat line!</h1> </div> ); } export default Chat;
react/private/withTextProps.js
seek-oss/seek-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import omit from 'lodash/omit'; import has from 'lodash/has'; import some from 'lodash/some'; import includes from 'lodash/includes'; import forEach from 'lodash/forEach'; export const sizes = [ 'small', 'standard', 'large', 'subheading', 'headi...
webapp/pages/infra_fails_page.js
dropbox/changes
import React from 'react'; import ChangesLinks from 'es6!display/changes/links'; import SectionHeader from 'es6!display/section_header'; import { ChangesPage, APINotLoadedPage } from 'es6!display/page_chrome'; import { Grid } from 'es6!display/grid'; import { SingleBuildStatus } from 'es6!display/changes/builds'; impo...
server/sonar-web/src/main/js/apps/background-tasks/components/Header.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...
app/javascript/mastodon/components/missing_indicator.js
blackle/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='regeneration-indicator missing-indicator'> <div> <div className='regeneration-indicator__figure' /> <div className='regeneration-indicator__label'> <FormattedMessage id=...
docs/app/Examples/collections/Form/FieldVariations/FormExampleInlineField.js
vageeshb/Semantic-UI-React
import React from 'react' import { Form, Input } from 'semantic-ui-react' const FormExampleInlineField = () => ( <Form> <Form.Field inline> <label>First name</label> <Input placeholder='First name' /> </Form.Field> </Form> ) export default FormExampleInlineField
app/containers/ProcessViewPage/components/Burner/index.js
BrewPi/brewpi-ui
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actions from '../../actions'; const classNames = require('classnames'); import styles from './styles.css'; import { SvgParent } from '../SvgParent'; const SvgBurner = require('./svg/burner.svg?tag...
app/javascript/mastodon/features/ui/components/columns_area.js
nonoz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import { links, getIndex, get...
src/index.js
ShevaDas/exhibitor-management
import React from 'react'; import { render } from 'react-dom'; import { ConnectedRouter as Router } from 'react-router-redux'; import { Switch, Route, Redirect } from 'react-router-dom'; import { Provider } from 'react-redux'; import store, { history } from './store'; import registerServiceWorker from './registerServi...
quizzical/app/Quizzical.js
CSergienko/quizzical
/** @module quizzical */ import React from 'react'; import { render } from 'react-dom'; import { Router, Route, Link, useRouterHistory, browserHistory } from 'react-router'; import { createHistory, useBasename } from 'history'; import App from './components/App'; import QuestionList from './components/QuestionList'; i...
examples/immutable/components/submit-button.js
nikitka/react-redux-form
import React from 'react'; import { connect } from 'react-redux'; import Immutable from 'immutable'; const SubmitButton = ({ user }) => // user is an Immutable Map <button type="submit"> Finish registration, {user.get('firstName')} {user.get('lastName')}! </button>; SubmitButton.propTypes = { user: React.Pr...
threeforce/node_modules/react-bootstrap/es/MediaBody.js
wolfiex/VisACC
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/containers/guide/level6.js
wunderg/PTC
import React from 'react'; import Highlight from '../../helpers/highlight.js'; import { objectProps, objectPropsExample, objectPropsSolution, eachModified, reduceModified } from './code/objectProps.js'; import { indexOf, indexOfExample, indexOfSolution, eachModifiedIndex, reduceModifiedIndex } from './code/indexOf.js';...
src/components/Metronome.js
pyreta/MIDInterceptor-Electron
import React from 'react'; const Metronome = props => { const quarter = props.clicks % 16 === 0; const eighth = props.clicks % 8 === 0; const whole = props.clicks % 64 === 0; let label = '' if (whole) { label = 'BEEP' } else if (quarter) { label = 'boop' } else if (eighth) { label = '' } ...
src/main.js
betterTry/Blog-rRichText
import React from 'react'; import ReactDOM from 'react-dom'; import AppComponent from './react/App.jsx'; ReactDOM.render(<AppComponent />, document.getElementById('app'));
reflux-app/components/Peg.js
Orientsoft/conalog-front
import React from 'react' import _ from 'lodash' import $ from '../../public/js/jquery.min' import constants from '../const' import PegActions from '../actions/PegActions' import PegStore from '../stores/PegStore' import CodeEditor from './Peg/CodeEditor' import InputEditor from './Peg/InputEditor' import Settings fr...
src/components/chart.js
jeffgietz/rr_weather
import _ from 'lodash'; import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; function average(data) { return _.round(_.sum(data)/data.length); } export default (props) => { return( <div> <Sparklines height={120} width={180} data={props.data}>...
components/auth/Logout.js
rabbotio/nap
import { gql, graphql } from 'react-apollo' import persist from '../../lib/persist' import React from 'react' import userProfile from '../userProfile.gql' import PropTypes from 'prop-types' const Logout = ({ logout }) => { return ( <button onClick={logout}>LogOut (GraphQL)</button> ) } const logout = gql` mut...
src/Table/Row/Row.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; const PROPERTY_TYPES = { item: PropTypes.any, rowProps: PropTypes.any }; const DEFAULT_PROPS = {}; class Row extends React.Component { constructor(props) { super(props); } shouldComponentUpdate(nextProps, nextState) { ...
js/common/TextSeparator.js
BarberHour/barber-hour
import React, { Component } from 'react'; import { View, Text, StyleSheet, } from 'react-native'; const TextSeparator = (props) => { return( <View style={[styles.container, props.style]}> <View style={styles.separator} /> <Text style={styles.text}> OU </Text> <View style={styles.separat...
src/components/post_show.js
pleaobraga/blog-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions'; class PostShow extends Component { componentDidMount() { const { id } = this.props.match.params; this.props.fetchPost(id); ...
examples/todomvc/index.js
radnor/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
examples/only-client-render-external-dependencies/pages/index.js
BlancheXu/test
import React from 'react' import Link from 'next/link' import LineChart from '../components/LineChart' const data = [ { name: 'Page A', uv: 1000, pv: 2400, amt: 2400 }, { name: 'Page B', uv: 3000, pv: 1398, amt: 2210 }, { name: 'Page C', uv: 2000, pv: 9800, amt: 2290 }, { name: 'Page D', uv: 2780, pv: 3908, am...
front/src/components/card/cardForm.js
tersfeld/DETER
import React from 'react'; import { Component } from 'react'; import {reduxForm} from 'redux-form'; import {addCard} from '../../actions/index'; class CardForm extends Component { constructor(props) { super(props); } onSubmit(props){ this.props.addCard(props) .then(() => { this.setRandomCol...
src/packages/@ncigdc/components/Aggregations/ExactMatchFacet.js
NCI-GDC/portal-ui
// @flow // Vendor import React from 'react'; import { compose, withState, pure } from 'recompose'; import LocationSubscriber from '@ncigdc/components/LocationSubscriber'; // Custom import { parseFilterParam } from '@ncigdc/utils/uri'; import { getFilterValue, makeFilter } from '@ncigdc/utils/filters'; import { Row, ...
app/containers/Permissions/UserList.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { fetchUsers } from '../../actions'; import { UserListView } from '../../components/Permissions'; class GetUsers extends Component { componentDidMount() { this.props.fetchUsers(); } r...
docs/src/app/components/pages/components/FontIcon/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconCode from '!raw!material-ui/FontIcon/FontIcon'; import iconReadmeText...
client/components/admin/layout/nav.js
maodouio/meteor-react-redux-base
import React from 'react'; import {Link} from 'react-router'; export default (props) => ( <div> <div className="color-line"> </div> <div id="logo" className="light-version"> <span> {props.appName} </span> </div> <nav role="navigation"> <Link to="#" className="heade...
docs/src/app/components/pages/components/Menu/ExampleIcons.js
ichiohta/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; import PersonAdd from 'material-ui/svg-icons/social/person-add'; import ContentLink from 'material-ui...
app/containers/DevTools.js
dearfrankg/soundio
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' defaultIsVisible={false}> ...
src/index.js
abobwhite/slate-editor
import React from 'react' import ReactDOM from 'react-dom' import ExampleApp from './example' ReactDOM.render( <ExampleApp />, document.getElementById('root') )
public/app/components/online-tab/index.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; import * as bs from 'react-bootstrap'; import TreeContainer from '../../containers/online-tab/tree-container'; import DetailsContainer from '../../containers/online-tab/details-container'; import tabStyles from '../base/tab-styles'; class ...
src/routes/register/Register.js
Ozaroni/modestLifer
/** * 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-...
app/js/components/Header.js
alex-xia/react-rocket-demo
'use strict'; import React from 'react'; class Header extends React.Component { constructor(props) { super(props); } render() { return ( <header> Header </header> ); } } export default Header;
src/components/LeftNavComponent.js
fredelf/dashboard
import React from 'react' import { connect } from 'react-redux' import { logout } from 'actions/auth' import firebase from 'firebase' import {FaThLarge, FaRocket, FaCog, FaGroup, FaSignOut} from 'react-icons/lib/fa' import { browserHistory, Link } from 'react-router' class LeftNavComponent extends React.Component { ...
client/src/javascript/components/modals/settings-modal/ResourcesTab.js
jfurrow/flood
import {Checkbox, Form, FormRow, Textbox} from 'flood-ui-kit'; import {FormattedMessage} from 'react-intl'; import React from 'react'; import ModalFormSectionHeader from '../ModalFormSectionHeader'; import SettingsTab from './SettingsTab'; export default class ResourcesTab extends SettingsTab { state = {}; handl...
redux-client/src/app/redux/components/App.js
rahulharinkhede2013/enovos
import React from 'react'; import UserList from '../containers/user-list'; import UserDetails from '../containers/user-detail'; import DataTable from '../containers/dataTable'; import LoadData from '../containers/LoadData' require('../../scss/style.scss'); import {bindActionCreators} from 'redux'; const App = () => ( ...
src/index.js
ksmithbaylor/simple-react-starter
import React from 'react'; import { render } from 'react-dom'; import App from './App'; render(<App />, document.getElementById('root'));
src/components/Loader/Loader.js
andrew-filonenko/habit-tracker
import React from 'react'; import bem from '../../utils/bem-helper'; import Icon from 'react-fa'; import cx from 'classnames'; export default function({ className: _className }) { const { block, elem } = bem('b', 'loader'); const className = cx(block, _className); return ( <div className={ className }> ...
cerberus-dashboard/src/components/ConfirmationBox/ConfirmationBox.js
Nike-Inc/cerberus-management-service
/* * Copyright (c) 2020 Nike, 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 ...
addon/tools/control-panel/main.js
6a68/idea-town
/* * This Source Code is subject to the terms of the Mozilla Public License * version 2.0 (the 'License'). You can obtain a copy of the License at * http://mozilla.org/MPL/2.0/. */ /* global CustomEvent */ import React, { Component } from 'react'; import { render } from 'react-dom'; import * as actions from '../....
app/javascript/mastodon/features/follow_requests/index.js
Nyoho/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
modules/RoutingContext.js
neebz/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
client/src/components/shared/candidate.js
Siyanda-Mzam/hire-grad
import React, { Component } from 'react'; import SignIn from './sign-in'; // Authorization HOC const Authorization = (WrappedComponent, allowedRoles) => { alert("Yo") return class WithAuthorization extends Component { constructor(props) { alert("Alert"); console.log(props); super(props) ...
packages/showcase/data/mini-data-examples.js
uber/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/svg-icons/social/people-outline.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeopleOutline = (props) => ( <SvgIcon {...props}> <path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7...
src/examples/SuggestExample/SuggestExample.js
Hypnosphi/qex-controls-react
import React, { Component } from 'react'; import s from './SuggestExample.scss'; import { ISuggest } from '../../blocks'; function City({ option: { city, countryCode } }) { return ( <div className={s.city}> {city} <span className={s.country}> {countryCode} </span> </div> ); } cla...
packages/react/src/components/TimePicker/TimePicker-story.js
carbon-design-system/carbon-components
/** * 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. */ import React from 'react'; import { action } from '@storybook/addon-actions'; import { withKnobs, boolean, number, select, text, }...
src/svg-icons/social/sentiment-satisfied.js
matthewoates/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...
lib/encoding/XSS_AttrValue.js
waynecraig/encoding-present
require('./sass/fullpage.sass'); require('./sass/code.sass'); import React, { Component } from 'react'; import CodeBlock from '../components/CodeBlock'; import ArtTemplate from 'art-template/dist/template'; export default class Slide extends Component { constructor() { super(); this.state = {}; this.state....
src/RootCloseWrapper.js
Cellule/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; // TODO: Merge this logic with dropdown logic once #526 is done. export default class RootCloseWrapper extends React.Component { constructor(props) { super(props); this.handleDocumentClic...
es/components/HeaderBar/AppTitle.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import IconButton from "@material-ui/core/es/IconButton"; import AboutIcon from "@material-ui/icons/es/ArrowDropDown"; import logo from '../../../assets/img/logo-square.png'...
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/step-confirmation-button/index.js
Automattic/woocommerce-services
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import FormButton from 'components/forms/form-button'; const StepConfirmationButton = ( { disabled, onClick, children } ) => { return ( <div className="step-confirmation-...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
way1989/actor-platform
import React from 'react'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import GroupStore from 'stores/GroupStore'; import InviteUserActions from 'actions/InviteUserA...
packages/mineral-ui-icons/src/IconPerson.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconPerson(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}>...