path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
style-guide/src/pages/404.js
opentable/design-tokens
import React from 'react'; import styles from '../styles/index.module.scss'; import SectionHeader from '../components/section-header'; import withLayout from '../hocs/withLayout'; export default withLayout(() => { return ( <div className={styles.mainContainer}> <SectionHeader text="Whoops" /> <p>404<...
src/modules/Components/User/Views/Resources/Internships.js
rtellez700/MESA_Connect_2.0
import React, { Component } from 'react'; class Internships extends Component { render() { return ( <div className="display--in-center"> <h1> Hello from Internships.js! </h1> </div> ); } } module.exports = Internships;
src/components/Github.js
qkevinto/kevinto.me
import React from 'react'; import formatDistanceToNow from 'date-fns/formatDistanceToNow'; import SocialActivity from './SocialActivity'; export default class Github extends React.Component { constructor() { super(); this.state = { appURL: 'https://github.com/', loading: true, error: false...
src/containers/pages/create-deck/after-class-selection/right-container/topbar-assets/decklength.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; const Decklength = ({deck, maxLength = 30}) => { return ( <div className="deck-length"> <p>{deck.length} / {maxLength}</p> </div> ) }; Decklength.propTypes = { deck: PropTypes.arrayOf(PropTypes.object), maxLength: PropTypes.number, ...
app/javascript/mastodon/features/list_timeline/index.js
pixiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import { addColumn, removeColumn, move...
src/routes/home/ActiveOpt/ActiveOpt.js
globalART19/OrderedOptions
/** * 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 withStyles from 'isom...
src/Contact/index.js
pulse-opensource/pulselabs-homepage
import React from 'react'; export default function() { return <div>CONTACT</div>; }
src/index.js
CianCoders/react-stroke-7
import React from 'react' /** * A React component for the font-awesome icon library. * * * @param {Boolean} [border=false] Whether or not to show a border radius * @param {String} [className] An extra set of CSS classes to add to the component * @param {Boolean} [fixedWidth=false] Make buttons fixed width * @pa...
app/imports/ui/app/RouteWithSubRoutes.js
raiden-network/raiden-token
import React from 'react'; import { Route } from 'react-router-dom'; const RouteWithSubRoutes = (route) => ( React.createElement(Route, { path: route.path, render: props => ( React.createElement(route.component, { ...route, ...props }) ) }) ); export default RouteWithSubR...
src/svg-icons/action/description.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDescription = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/> </SvgIcon> ); A...
src/models/notices/AbstractNoticeModel.js
Pavel-DV/ChronoMint
import React from 'react' import {Record as record} from 'immutable' import {dateFormatOptions} from '../../config' // noinspection JSUnusedLocalSymbols const abstractNoticeModel = defaultValues => class AbstractNoticeModel extends record({ time: Date.now(), ...defaultValues }) { constructor (data) { if (new...
src/static/routes.js
qwertypomy/rental
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './app'; import { HomeView, LoginView, RegisterView, ProfileView, NotFoundView } from './containers'; import requireAuthentication from './utils/requireAuthentication'; export default( <Route path="/" component={App}> ...
imaginarySet/src/index.js
HJBowers/imaginary-shrew
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
examples/todomvc/index.js
gogobook/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/components/Overlay/Content.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; const OverlayContent = ({ className, children, }) => ( <div className={cx('Overlay-content', className)}> {children} </div> ); OverlayContent.propTypes = { className: PropTypes.string, children: PropTypes.node.isRequ...
src/components/NavigationBrick/index.js
line64/landricks-components
import React, { Component } from 'react'; import Fontawesome from 'react-fontawesome'; import styler from './styler'; export default class NavigationBrick extends Component { constructor(props){ super(props); this.state = { open : false } } renderItem(item, index, style){ return( <li onClick={ ()=> ...
src/svg-icons/device/network-cell.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
src/user/EditUser.js
codyloyd/teamup
import React from 'react' import UserForm from './userForm' class EditUser extends React.Component { render () { return ( <div> <UserForm onSubmit={console.log} /> </div> ) } } export default EditUser
__fixtures__/RootComponent.js
divyagnan/react-simple-theme
import React from 'react' /* eslint-disable react/prefer-stateless-function, react/prop-types */ export default class RootComponent extends React.Component { render() { return ( <div> Hi, Im the root Component! <button onClick={() => this.props.changeTheme('theme2')}>Change Theme</button> ...
client/analytics/components/partials/LeftSideBar.js
Haaarp/geo
import React from 'react'; import axios from 'axios'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { analytics, common } from './../../actions'; import * as MenuType from './../../constants/popupType'; import LeftSideBarHeader from './sideBar/LeftSideBarHeader'; import Left...
frontend/src/components/icons/Home.js
webrecorder/webrecorder
import React from 'react'; function Home() { return ( <svg width="21px" height="17px" viewBox="0 0 21 17" version="1.1" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> <g id="Index-of-Collection" transform="translate(-29.000000, -14.000000)" fil...
examples/sidebar/app.js
sprjr/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; import data from './data'; var Category = React.createClass({ render() { var category = data.lookupCategory(this.props.params.category); return ( <div> <h1>{category.name}</h1> {this.props.children || ( ...
packages/core/__deprecated__/Link/sandbox.js
romelperez/arwes
import React from 'react'; import Arwes from '../Arwes'; import Link from './index'; export default () => ( <Arwes> <div style={{ padding: 20 }}> This is an <Link href='#'>Intergalactic Link</Link>. </div> </Arwes> );
src/svg-icons/editor/show-chart.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart = pure(EditorShowChart); EditorShowChart.displayNa...
frontend/src/components/users/root.js
1905410/Misago
import React from 'react'; // jshint ignore:line import { connect } from 'react-redux'; import DropdownToggle from 'misago/components/dropdown-toggle'; // jshint ignore:line import { TabsNav, CompactNav } from 'misago/components/users/navs'; // jshint ignore:line import ActivePosters from 'misago/components/users/activ...
src/components/Counter.js
nivanson/hapi-universal-redux
import React from 'react'; import Radium from 'radium'; const styles = { base: { paddingBottom: 25 }, counter: { fontSize: '5em', color: 'white', marginLeft: 20 }, inputContainer: { height: 80, width: 40, float: 'left', marginTop: 15 }, button: { height: 38, width:...
fluxible-router/client.js
JonnyCheng/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ /*global App, document, window */ import React from 'react'; import debug from 'debug'; import app from './app'; import { createElementWithContext } from 'fluxible-addons-react'; const ...
tp-3/marisol/src/components/pages/materias/listado/MateriaListado.js
solp/sovos-reactivo-2017
import React from 'react'; const MateriaListado = () => { return ( <div> <h2>Listado de Materia </h2> <p> aqui va la lista </p> </div> ); }; export default MateriaListado;
tests/progress.js
goto-bus-stop/bulmare
import React from 'react' import test from 'tape' import { shallow } from 'enzyme' import { Progress } from '../src' test('Progress renders a progress bar with class "progress"', (t) => { t.equal( shallow(<Progress />).html(), shallow(<progress className='progress' />).html() ) t.end() }) test('Progress...
app/javascript/mastodon/features/ui/components/column_header.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, ...
static/src/index.js
mortbauer/webapp
require('expose?$!expose?jQuery!jquery'); require("bootstrap-webpack"); import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import injectTapEventPlugin from 'react-tap-event-plugin'; import 'style.scss'; i...
examples/counter/containers/CounterApp.js
TKHuang/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp extend...
fields/types/boolean/BooleanFilter.js
Tangcuyu/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Is Checked', value: true }, { label: 'Is NOT Checked', value: false }, ]; function getDefaultValue () { return { value: true, }; } var BooleanFilter = React.createClass({ propTypes: { filter: React.Pr...
tests/react_experimental/useTransition_hook.js
facebook/flow
// @flow import React from 'react'; React.useTransition(); // Ok React.useTransition({}); // Error: no arguments are expected by function type const [isPending, startTransition] = React.useTransition(); // OK (isPending: boolean); // Ok (startTransition: (() => void) => void); // Ok (isPending: (() => void) => vo...
src/Input.story.js
prometheusresearch/react-ui
/** * @flow */ import React from 'react'; import {storiesOf} from '@kadira/storybook'; import Input from './Input'; storiesOf('<Input />', module) .add('Default state', () => <Input />) .add('Error state', () => <Input error />) .add('Disabled state', () => <Input disabled />) .add('No border variant', () =...
src/routes/Workspace/components/Stage/Stage.js
dkushner/ArborJs-Playground
import React from 'react'; import THREE from 'three'; import registerExtras from 'three-orbit-controls'; import classes from './Stage.scss'; import { Renderer, Scene, PerspectiveCamera, AxisHelper, Line } from 'react-three'; const OrbitControls = registerExtras(THREE); class Stage extends React.Component...
app/javascript/mastodon/features/home_timeline/index.js
TheInventrix/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
src/components/FormJoinRace/ShirtSizes.js
matapang/virtualraceph2
import React from 'react'; import PropTypes from 'prop-types'; import { FormControl, InputGroup } from 'react-bootstrap'; import Select from '../Select'; const SHIRT_SIZES = [ "2XS (17 x 24 inches)", "XS (18 x 25 inches)", "S (19 x 25 inches)", "M (20 x 27 inches)", "L (21 x 28 inches)", "XL (...
src/components/form/FormStories.js
timLoewel/sites
import React from 'react'; import {storiesOf, action, linkTo} from '@kadira/react-native-storybook'; import CenterView from '../basics/CenterView'; import FormTextInput from './FormTextInput'; storiesOf('Form', module) .addDecorator(getStory => ( <CenterView >{getStory()}</CenterView> )) .add('initial', ()...
react/redux-start/react-redux-todos/src/containers/FilterLink.js
kobeCan/practices
import React from 'react'; import { connect } from 'react-redux'; import Link from '../components/Link'; import { setFilterLink } from '../actions'; const mapStateToProps = (state, ownProps) => { return { active: ownProps.filter === state.visibilityFilter } } const mapDispatchToProps = (dispatch, ownProps) => ({ ...
src/client/components/component.react.js
srhmgn/markdowner
import React from 'react'; import shallowEqual from 'react-pure-render/shallowEqual'; // import diff from 'immutablediff'; /** * Purified React.Component. Goodness. * http://facebook.github.io/react/docs/advanced-performance.html */ class Component extends React.Component { shouldComponentUpdate(nextProps, next...
example/browser.js
cloudflare/react-gateway
import React from 'react'; import Application from './Application'; import ReactDOM from 'react-dom'; ReactDOM.render(<Application/>, document.getElementById('root'));
packages/icons/src/md/notification/AirlineSeatReclineNormal.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdAirlineSeatReclineNormal(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M15.17 11.83a4.008 4.008 0 0 1 0-5.66 4.008 4.008 0 0 1 5.66 0 4.008 4.008 0 0 1 0 5.66 4.008 4.008 0 0 1-5.66 0zM12 33V15H8v18c0 5....
src/client/main.js
redcom/aperitive
// @flow import React from 'react'; import { createBatchingNetworkInterface } from 'apollo-client'; import { Client } from 'subscriptions-transport-ws'; import { ApolloProvider } from 'react-apollo'; import { Router, browserHistory } from 'react-router'; import createApolloClient from '../apollo_client'; import addGr...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
RobzDoom/frame_trap
/** * 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. */ import Rea...
index.android.js
alphonso-db/alphonso-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class myapp extends Component { render() { return ( <View style={styles.container}> ...
wrappers/json.js
gregcorby/gregcorby.com
import React from 'react' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <h1>{data.title}</h1> <p>Raw view of json file</p> <pre dangerouslySetI...
share/components/Common/Button.js
caojs/password-manager-server
import React from 'react'; import classNames from 'classnames'; import { injectProps } from '../../helpers/decorators'; import style from './Button.css'; export default class Button extends React.Component { @injectProps render({ children, className, ...rest }) { let btnClass = classNames(style.button, classN...
client/components/Flass/Upload/QuestionInsertion/Quiz/QuizMultipleChoice/QuizMultipleChoiceComponent.js
Nexters/flass
import _ from 'lodash'; import { List } from 'immutable'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import QuizSingleChoiceComponent from './QuizSingleChoice/QuizSingleChoiceComponent'; import AddQuizIcon from './icons/invalid-name@2x.png'...
src/components/common/header/ExplorerAppMenu.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import AppMenu from './AppMenu'; import { urlToExplorer } from '../../../lib/urlUtil'; import { getAppName } from '../../../config'; ...
pootle/static/js/auth/components/SignInForm.js
mail-apps/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. */ 'use strict'; import assign from 'object-assign'; import ...
src/components/FilterContainer.js
joellanciaux/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from '../utils/griddleConnect'; import { classNamesForComponentSelector, stylesForComponentSelector } from '../selectors/dataSelectors'; import { setFilter } from '../actions'; const EnhancedFilter = OriginalComponent => connect((state,...
src/svg-icons/editor/border-all.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderAll = (props) => ( <SvgIcon {...props}> <path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/> </SvgIcon> ); EditorBorderAll = pure(EditorBorderAll); EditorBorderAll....
docs/app/Examples/elements/Label/Types/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LabelTypes = () => ( <ExampleSection title='Types'> <ComponentExample title='Label' description='A label' ...
src/components/Footer.js
Open-Seat-Philly/open-seat
import React from 'react'; const Footer = () => ( <footer className="footer"> <div className="container"> <p className="text-muted pull-right"><a href="https://codeforphilly.org/projects/open_seat_finder"> Civic Engagement Launchpad 2017</a></p> </div> </footer> ); export default Footer;
src/components/MyiWorlds/ContainerMapperLevel1/containers/EdgeCardsContainer1/EdgeCardsContainer1.js
DaveyEdwards/myiworlds
/** * 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/javascript/mastodon/features/reblogs/index.js
narabo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs } from '../../actions/interactions'; import { ScrollContainer } from ...
app/containers/NotFoundPage/index.js
audoralc/pyxis
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * */ import React from 'react'; export default class NotFound extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <h1> 404: Not Found ...
app/js/views/Components/Switches/Switches.js
jagatjeevan/dakiya
import React, { Component } from 'react'; class Switches extends Component { render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-md-12"> <div className="card"> <div className="card-header"> 3d Switch ...
src/components/Social.js
maciejziaja/lutech-www
import React from 'react'; import styles from './Social.module.css'; const Social = ({ social }) => ( <a href={social.url} className={styles.link}> <img src={`/social/${social.name}.svg`} className={styles.logo} alt={social.description}/> </a> ); export default Social;
template/src/App.js
andyeskridge/create-react-app
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
generators/nfeb/templates/htmls/pcweb/pageapp.js
Horve/generator-nlife
/** * @jsdoc function * @name <%= appname %>.page:<%= pageName %> * @description * # <%= classedName %> * page of the <%= appname %> * `<<%= classedName %>App/>` main file */ import React from 'react'; import NLDownload from '../common/nl_download.js'; import NLDownloadType from '../../../../global_define/downl...
client/util/react-intl-test-helper.js
MingLow605/MERN-stack-testing
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
new-lamassu-admin/src/routing/pazuz.routes.js
naconner/lamassu-server
import React from 'react' import { Redirect } from 'react-router-dom' import ATMWallet from 'src/pages/ATMWallet/ATMWallet' import Accounting from 'src/pages/Accounting/Accounting' import Analytics from 'src/pages/Analytics/Analytics' import Assets from 'src/pages/Assets/Assets' import Blacklist from 'src/pages/Blackl...
src/components/blog_category.js
b0ts/react-redux-sweetlightstudios-website
import React from 'react'; import { LinkContainer } from 'react-router-bootstrap'; import { NavItem } from 'react-bootstrap'; const BlogCategory = ({ id, name, count, linkBy }) => ( <div> <LinkContainer className='blog-category-link' to={ '/blog/category/' + linkBy + '/page/1/' } > <NavItem className...
node_modules/styled-components/src/models/StyleSheet.js
bburnett-cpf/react-intro
// @flow import React from 'react' import BrowserStyleSheet from './BrowserStyleSheet' import ServerStyleSheet from './ServerStyleSheet' export const SC_ATTR = 'data-styled-components' export const LOCAL_ATTR = 'data-styled-components-is-local' export const CONTEXT_KEY = '__styled-components-stylesheet__' export inte...
src/components/Header/Header.js
hack-duke/hackduke-code-for-good-website
import React from 'react' import Scroll from 'react-scroll' import { Navbar, Nav, NavItem } from 'react-bootstrap' import classes from './Header.scss' // <Nav pullRight> // <a className={classes.applyButton} eventKey={1} href={'http://my.hackduke.org/login'}>Login</a> // </Nav> class Header extends React.C...
app/components/Welcome/index.js
fforres/coworks_2
/** * * Welcome * */ import React from 'react'; import styles from './styles.css'; class Welcome extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <div className={styles.welcome}> <h1>Hola Coworkers!</h1> <p> Lorem ipsum dolor sit amet, c...
modules/Router.js
axross/react-router
import React from 'react' import warning from 'warning' import createHashHistory from 'history/lib/createHashHistory' import { createRoutes } from './RouteUtils' import RoutingContext from './RoutingContext' import useRoutes from './useRoutes' import { routes } from './PropTypes' const { func, object } = React.PropTyp...
app/routes/index.js
alubbe/redux-blog-example
import React from 'react'; import { Route } from 'react-router'; import App from './App'; import SignupRoute from './SignupRoute'; import LoginRoute from './LoginRoute'; import ProfileRoute from './ProfileRoute'; import NotFound from '../components/NotFound'; import redirectBackAfter from '../utils/redirectBackAfter'; ...
antd-dva/dva-restart/src/routes/IndexPage.js
JianmingXia/StudyTest
import React from 'react'; import { connect } from 'dva'; import styles from './IndexPage.css'; import Header from '../components/Header'; function IndexPage() { return ( <div> <Header /> <div className={styles.normal}> <h1 className={styles.title}>Yay! Welcome to dva!</h1> <div class...
node_modules/@material-ui/core/es/SvgIcon/SvgIcon.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import { capitalize } from '../ut...
src/components/DateRange/index.js
Adphorus/react-date-range
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Calendar from '../Calendar'; import { rangeShape } from '../DayCell'; import { findNextRangeIndex, generateStyles } from '../../utils'; import { isBefore, differenceInCalendarDays, addDays, min, isWithinInterval, max } from 'date-fns';...
src/client.js
YorkshireDigital/yorkshiredigital.com
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, browserHistory } from 'react-router'; import configureStore from './store.js'; import { Provider } from 'react-redux'; import routes from './routes'; import RadiumContainer from './universal/containers/RadiumContainer'; import { syncHi...
src/router.js
zaneriley/personal-site
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
node_modules/react-navigation/lib-rn/views/withNavigation.js
RahulDesai92/PHR
import React from 'react'; import propTypes from 'prop-types'; import hoistStatics from 'hoist-non-react-statics'; var babelPluginFlowReactPropTypes_proptype_NavigationAction = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_NavigationAction || require('prop-types').any; var babelPluginFlowReactPr...
app/assets/scripts/components/modal-download/download-type-selector.js
openaq/openaq.org
import React from 'react'; import { PropTypes as T } from 'prop-types'; const downloadTypes = [ { id: 'locations', label: 'Locations', }, { id: 'projects', label: 'Datasets', }, ]; export const downloadTypeDefault = downloadTypes[0].id; export default function DownloadType(props) { const { ...
itemField/form.js
KAESapps/ks-admin
import get from 'lodash/get' import React from 'react' const el = React.createElement import { observer } from 'mobservable-react' import { map, asReference, observable } from 'mobservable' import Command from '../reactiveCollection/Command' import Box from '../layout/flex' import debounce from 'lodash/debounce' const...
src/svg-icons/editor/space-bar.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; EditorSpaceBar.muiName ...
src/navigation/tabs.js
N3TC4T/Nearby-Live
/** * Tabs Scenes */ import React from 'react'; import {Scene} from 'react-native-router-flux'; // Consts and Libs import {AppStyles, AppSizes, AppColors} from '@theme/'; // Components import {TabIcon} from '@ui/'; // Scenes import Placeholder from '@components/general/Placeholder'; // Containers import Home from...
src/docs/examples/Label/ExampleRequired.js
vonZ/rc-vvz
import React from 'react'; import Label from 'ps-react/Label'; /** Required label */ export default function ExampleRequired() { return <Label htmlFor="test" label="test" required /> }
src/components/common/svg-icons/notification/airline-seat-legroom-reduced.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomReduced = (props) => ( <SvgIcon {...props}> <path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 1...
src/routes/Home/components/CandidateList/CandidateItem.js
imrenagi/rojak-web-frontend
import React from 'react' import { Card, Icon, Image } from 'semantic-ui-react' export default class CandidateItem extends React.Component { render () { return ( <Card> <Image src={this.props.candidate.image_url} /> <Card.Content> <Card.Header> {this.props.candidate.na...
src/js/pages/Home/index.js
trazyn/weweChat
import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; import clazz from 'classname'; import classes from './style.css'; import Loader from 'components/Loader'; import SearchBar from './SearchBar'; import Chats from './Chats'; import ChatContent from './ChatContent'; @inject(stores ...
node_modules/react-router/es6/withRouter.js
fahidRM/aqua-couch-test
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; }; import invariant from 'invariant'; import React from 'react';...
src/Pagination.js
thealjey/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import PaginationButton from './PaginationButton'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const Pagination = React.createClass({ mixins: [BootstrapMixi...
src/components/Recipe.js
evelinalaroussi/evelinalaroussi.github.io
import React from 'react'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; //import { Code } from '../styles/style'; //import s from '../styles/home.style'; export default class Recipe extends React.Component { constructor(props) { super(props); } render() { return ...
src/containers/App.js
vasanthk/redux-friendlist-demo
import React, { Component } from 'react'; import { combineReducers } from 'redux'; import { Provider } from 'react-redux'; import { createStore, renderDevTools } from '../store_enhancers/devTools'; import FriendListApp from './FriendListApp'; import * as reducers from '../reducers'; const reducer = combineReducers(r...
src/components/theme-giraffe/register.js
MoveOnOrg/mop-frontend
import React from 'react' import RegisterForm from '../../containers/register-form' export const Register = () => ( <div className='container'> <div className='row justify-content-center mt-3'> <div className='col-md-6'> <h1 className='text-align-center mt-5 mb-3'>Quick Sign Up</h1> <Regist...
src/components/fileGrid.js
cephalization/filehub
// Import components import React from 'react'; import ItemGrid from './itemGrid'; import NotImplemented from './notImplemented'; import {Link} from 'react-router-dom'; import { Card, Image, Button, Container, Loader, Dimmer } from 'semantic-ui-react'; import FileModal from './fileModal'; // Import assets import white_...
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js
TryKickoff/create-kickoff-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 from 'react'; export default () => ( <span> <span id="feature-file-env-original-1"> {process.env.REACT_APP_ORI...
react/src/index.js
inversoft/passport-bluemix-example
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory, IndexRoute, Router, Route } from 'react-router'; import App from './App'; import auth from './auth'; import Login from './components/Login'; import Register from './components/Register'; import Logout from './components/Logout'; impo...
src/svg-icons/maps/pin-drop.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPinDrop = (props) => ( <SvgIcon {...props}> <path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/> </SvgIcon> ); ...
blueocean-material-icons/src/js/components/svg-icons/content/undo.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentUndo = (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> ); ContentUndo.displayName ...
src/components/layout.js
xavierdutreilh/xavier.dutreilh.com
import { StaticQuery, graphql } from 'gatsby' import PropTypes from 'prop-types' import React from 'react' import Helmet from 'react-helmet' import 'normalize.css' import Content from './content' import Wrapper from './wrapper' import './layout.scss' const Layout = ({ children }) => ( <StaticQuery query={grap...
src/js/components/Page/stories/CustomThemed/LeftColumn.js
grommet/grommet
import React from 'react'; import { Page, Header, Heading, Paragraph, Grid, Card, PageContent, Grommet, } from 'grommet'; const customTheme = { page: { customKind: { alignSelf: 'start', width: { min: '200px', max: '500px', }, small: { pad: 'medium',...
src/containers/user.js
suckak/vox
import React, { Component } from 'react'; import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { getUser } from "../actions/index"; import {getAssetsURL} from "../utils/utils"; class User extends Component { componentDidMount(){ this.props.getUser(); } renderU...
modules/Route.js
pjuke/react-router
import React from 'react' import warning from 'warning' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './PropTypes' const { string, bool, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to t...
shared/components/Admin/Sortable/Sortable.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import {SortableContainer, SortableElement,arrayMove} from 'react-sortable-hoc'; import {getQuestionGroups,setQuestionSort} from '../../../actions/sortQuestionActions'; import {Loading} from '../../SubCom...
react-app/src/components/CareNeedForm.js
floodfx/gma-village
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Neighborhood } from 'gma-village-data-model'; import { required, requiredArray } from './forms/Validate'; import FontAwesome from 'react-fontawesome'; import MultiCheckbox from './forms/MultiCheckbox'; import KidsChe...