path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/shared/components/Products/Details/Favorite.js
Grace951/ReactAU
import { connect } from 'react-redux'; import React from 'react'; import * as modalActions from '../../../actions/modalAction'; import * as userActions from '../../../actions/userAction'; import HeartToggle from '../../Shared/HeartToggle'; let Favorite = class Favorite extends React.Component{ constructor(props) { ...
src/NavBrand.js
bbc/react-bootstrap
import classNames from 'classnames'; import React from 'react'; class NavBrand extends React.Component { render() { const {className, children, ...props} = this.props; if (React.isValidElement(children)) { return React.cloneElement(children, { className: classNames( children.props.cl...
packages/react-test-renderer/src/ReactShallowRenderer.js
apaatsio/react
/** * Copyright (c) 2013-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'; import describeComponentFrame from 'shared/describeComponentFrame'; import getComponentName from 'shared/g...
src/App.js
jamigibbs/fair-split-calculator
import React, { Component } from 'react'; // import logo from './logo.svg'; import './App.css'; import Header from './components/Header'; import Earnings from './components/Earnings'; import Bills from './components/Bills'; import Results from './components/Results'; class App extends Component { constructor(props...
src/svg-icons/content/clear.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentClear = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); ContentClear = pure(ContentClea...
src/TimeGridHeader.js
TeaBough/react-big-calendar
import PropTypes from 'prop-types' import clsx from 'clsx' import scrollbarSize from 'dom-helpers/scrollbarSize' import React from 'react' import * as dates from './utils/dates' import DateContentRow from './DateContentRow' import Header from './Header' import ResourceHeader from './ResourceHeader' import { notify } f...
src/svg-icons/av/fiber-smart-record.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberSmartRecord = (props) => ( <SvgIcon {...props}> <g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g> </S...
1-initial/button.js
aruberto/styling-react-components
import React from 'react'; import cx from 'classnames'; const Button = ({ error, ...restProps }) => ( <button {...restProps} className={cx('button', { error })} /> ); Button.propTypes = { error: React.PropTypes.bool, }; export default Button;
src/PageHeader.js
sheep902/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
test/fixtures/webpack-message-formatting/src/AppLintError.js
ConnectedHomes/create-react-web-app
import React, { Component } from 'react'; function foo() { const a = b; } class App extends Component { render() { return <div />; } } export default App;
src/svg-icons/communication/stop-screen-share.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
src/containers/recipes/Browse/BrowseView.js
npdat/Demo_React_Native
/** * Receipe Tabs Screen * - Shows tabs, which contain receipe listings * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, InteractionManager, } from 'react-native'; ...
components/SmallCard.js
dsvictor94/trello-kanban-metrics
import React from 'react'; import Paper from 'material-ui/Paper'; import css from './SmallCard.css'; const SmallCard = ({children, icon, title}, context) => { icon = React.cloneElement(icon, {style: {display: 'block', width: '100%', height: '100%'}}); return ( <Paper className={css.smallCard}> <div clas...
app/assets/js/components/submitArtist.js
CrucifixArnaud/rapworldmap
import React from 'react'; import PropTypes from 'prop-types'; import {EventEmitter} from 'events'; export default class SubmitArtist extends React.Component { static propTypes = { bus: PropTypes.instanceOf(EventEmitter) } defaultState = { open: false, errors: [], name: '', city: '', bio...
src/components/MonthSelector.js
mohebifar/react-persian-datepicker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment-jalali'; import classnames from 'classnames'; import MonthsViewHeading from './MonthsViewHeading'; import { persianNumber } from '../utils/persian'; import { leftArrow, rightArrow } from '../utils/assets'; // List ...
fields/types/number/NumberField.js
ratecity/keystone
import React from 'react'; import Field from '../Field'; import { FormInput } from '../../../admin/client/App/elemental'; module.exports = Field.create({ displayName: 'NumberField', statics: { type: 'Number', }, valueChanged (event) { var newValue = event.target.value; if (/^-?\d*\.?\d*$/.test(newValue)) { ...
modules/gui/src/app/home/body/apps/appList/appDetails.js
openforis/sepal
import {AppItem} from './appItem' import {Markdown} from 'widget/markdown' import {Panel} from 'widget/panel/panel' import {msg} from 'translate' import PropTypes from 'prop-types' import React from 'react' import styles from './appDetails.module.css' export const AppDetails = props => { const {app, onClose} = pro...
docs/app/Examples/modules/Progress/States/ProgressExampleWarning.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleWarning = () => ( <Progress percent={100} warning> I am warning you </Progress> ) export default ProgressExampleWarning
src/components/chips/demos/Button.js
isogon/material-components
import React from 'react' import { ButtonChip } from '../../../' export default () => <ButtonChip>Button Chip</ButtonChip>
techCurriculum/ui/solutions/4.3/src/components/Message.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * 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...
app/utils/decorators/defaultProps.js
Coding/WebIDE-Frontend
import React from 'react' function getDisplayName (WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component' } export default function defaultProps (propsMapper) { return function decorator (WrappedComponent) { const displayName = getDisplayName(WrappedComponent) fun...
examples/todomvc/containers/App.js
gbezyuk/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider redux={...
client/BucketList/src/components/Routing.js
raynormw/bucket-list
import React from 'react' import { StackNavigator, DrawerNavigator } from 'react-navigation' import Icon from 'react-native-vector-icons/FontAwesome' import { color } from './styles' import BurgerButton from './buttons/BurgerButton' import GroceryButton from './buttons/GroceryButton' import DrawerContent from './scree...
src-client/scripts/app.js
VeryBarry/iLuggit
import Backbone from 'backbone' import React from 'react' import ReactDOM from 'react-dom' import $ from 'jquery' import {geocodeKey} from './secrets.js' import PackAuthView from './pack-auth-view.js' import LuggAuthView from './lugg-auth-view.js' import HomeView from './home-page.js' import AppController from './lu...
packages/docs/pages/plugin/text-alignment/index.js
draft-js-plugins/draft-js-plugins
// eslint-disable-next-line import/no-unresolved // eslint-disable-next-line import/no-duplicates import customExampleCode from '!!raw-loader!../../../components/Examples/text-alignment/CustomStaticToolbarPlugin'; // eslint-disable-next-line import/no-unresolved import themedExampleButtonStylesCode from '!!raw-loader!....
examples/with-graphql-hooks/components/submit.js
zeit/next.js
import React from 'react' import { useMutation } from 'graphql-hooks' const CREATE_POST = ` mutation createPost($title: String!, $url: String!) { createPost(title: $title, url: $url) { id title votes url createdAt } }` export default function Submit({ onSubmission }) { const [createPost, sta...
src/components/tabs.js
shootermantes/rome-weather
import React, { Component } from 'react'; import { Link } from 'react-router'; import Current from './current'; import FiveDay from './fiveday'; export default class Tabs extends Component { constructor (){ super() } render() { return ( <div className="tabs-container"> <ul className="tabs"> <Link t...
actor-sdk/sdk-web/src/sdk/actor-sdk.js
ljshj/actor-platform
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import 'babel-polyfill'; import 'setimmediate'; import 'intl'; import Actor from 'actor-js'; import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, Redirect, IndexRedirect } from 'react-router'; import Modal fr...
src/Parser/Warrior/Arms/CONFIG.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { TheBadBossy } from 'CONTRIBUTORS'; import SPECS from 'common/SPECS'; import Wrapper from 'common/Wrapper'; import Warning from 'common/Alert/Warning'; import CombatLogParser from './CombatLogParser'; import CHANGELOG from './CHANGELOG'; export default { // The people that have c...
docs/src/pages/components/tabs/FullWidthTabs.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import SwipeableViews from 'react-swipeable-views'; import { makeStyles, useTheme } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Ty...
client/portfolio2017/src/Components/ContactForm/ContactForm.js
corrortiz/portafolio2017
import React, { Component } from 'react'; //MUI Components import Grid from 'material-ui/Grid'; import TextField from 'material-ui/TextField'; import { withStyles } from 'material-ui/styles'; import { CircularProgress } from 'material-ui/Progress'; import Button from 'material-ui/Button'; //HOC of globlals states; impo...
docs/src/app/components/AppNavDrawer.js
pradel/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import {List, ListItem, MakeSelectable} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem';...
src/ModalFooter.js
brynjagr/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalFooter extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalFooter....
Faw.Web.Client/src/containers/MenuContainer.js
Demenovich-A-J/Family-s-adventure-world
import React from 'react' import Menu from '../components/Menu' import { fetchUserInfo, logoutUser } from 'store/user' import { connect } from 'react-redux' import { browserHistory } from 'react-router' import _ from 'lodash' const MenuContainer = React.createClass({ navItemsSwitcher : { null : [ ], 'Vi...
nlyyAPP/component/停止入组/单个中心/MLDgzxYtzrzLB.js
a497500306/nlyy_APP
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, Navigator, ListView, Alert } from 'react-native'; //时间操作 var moment = require('moment'); moment().format(); var MLNavigatorBar = require('../../MLNavigatorBar/MLNavigatorBar'); v...
voting_app/frontend/src/containers/Login.js
azaleas/sentio
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Redirect from 'react-router-dom/Redirect'; import {api} from './../utils/Api'; class Login extends Component { constructor(props) { super(props); this.state = { shouldRedirect: false, wron...
packages/simplebar/demo/index.js
Grsmto/simplebar
import React from 'react'; import ReactDOM from 'react-dom'; import Demo from './Demo'; ReactDOM.render( <Demo />, document.getElementById('root') );
src/components/Table/TableColumn/TableColumn.stories.js
auth0-extensions/auth0-extension-ui
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import TableColumn from './'; storiesOf('TableColumn', module) .add('default view', () => ( <TableColumn> This is the TableColumn children. </TableColumn> ));
src/components/FormField.js
nitrog7/nl-fluid
import React from 'react'; import ReactCSSTransitionReplace from 'react-css-transition-replace'; import _ from 'lodash'; import Box from './Box'; import Component from './Component'; import Icon from './Icon'; import InputField from './InputField'; export default class FormField extends Component { static get propTy...
test/integration/scss-fixtures/npm-import/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' import '../styles/global.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
node_modules/enzyme/src/version.js
IgorKilipenko/KTS_React
import React from 'react'; export const VERSION = React.version; export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = VERSION.slice(0, 3) === '15.';
src/user/ui/logoutbutton/LogoutButton.js
ranneyd/eth-faucet
import React from 'react' const LogoutButton = ({ onLogoutUserClick }) => { return( <li className="pure-menu-item"> <a href="#" className="pure-menu-link" onClick={(event) => onLogoutUserClick(event)}>Logout</a> </li> ) } export default LogoutButton
src/client/common/PrivateRoute.js
therealedsheenan/contempo-auth
import React from 'react' import { Route, Redirect } from 'react-router-dom' import { connect } from 'react-redux' const RedirectRoute = (newProps) => { return ( <Route path={newProps.path} render={props => { if (newProps.authentication.isAuthenticated) { return ( React.createElement(newP...
src/components/Hr/index.js
BoilerMake/frontend
import React from 'react'; import './_common.Hr.source.scss'; const Hr = ({ children }) => { return ( <div className="c-hr"> <span className="c-hr__text">{children}</span> </div> ); }; export default Hr;
src/components/common/svg-icons/editor/format-align-right.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignRight = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignRight = pure(EditorFormatAlign...
app/components/children/HomeHeading.js
asconwe/formulate
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class HomeHeading extends Component { render() { return ( <div> <header> <div className="container"> <div className="row"> <...
Faw.Web.Client/src/components/InputFile/InputFile.js
Demenovich-A-J/Family-s-adventure-world
import React from 'react' import { Textfield, IconButton } from 'react-mdl' import _ from 'lodash' import './InputFile.scss' export const InputFile = (props) => { let inputFile = null function handleClick (e) { e.preventDefault() inputFile.inputRef.click() } function handleChange (e, changeHanlder)...
Taramti-Mobile/Taramti-Mobile/src/components/Home/Auction.js
ranoichman/Taramti-Mobile
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import Swipeable from 'react-swipeable'; import FontAwesome from 'react-fontawesome'; import Modal from 'react-modal'; import axios from 'axios'; // taramti babait components import Timer from '../Generic/Timer'; import Pic from '.....
src/routes/home/index.js
zmj1316/InfomationVisualizationCourseWork
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 fetch from '../../core/f...
components/list/ListItemText.js
KerenChandran/react-toolbox
import React from 'react'; import ClassNames from 'classnames'; import style from './style'; const ListItemText = ({className, primary, children, ...other}) => { const _className = ClassNames(style.itemText, {[style.primary]: primary}, className); return ( <span data-react-toolbox="list-item-text" className={...
admin/App.js
romainquellec/cuistot
import 'babel-polyfill'; import React, { Component } from 'react'; import { Admin, Resource } from 'admin-on-rest'; import { Delete } from 'admin-on-rest/lib/mui'; import createRestClient from './createAdminOnRestclient'; // import './App.css'; import authClient from './authClient'; import sagas from './sagas'; impor...
demo/app.js
chrisborrowdale/react-basic-datepicker
import React from 'react'; import ReactDOM from 'react-dom'; import Datepicker from '../src/Datepicker'; ReactDOM.render(<Datepicker dateFormat="DD/MM/YYYY" />, document.getElementById('react-root'));
node_modules/react-scripts/template/src/index.js
joekay/awebb
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
test/unit/server/view/error-renderer-test.js
travi-org/admin.travi.org
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import sinon from 'sinon'; import {assert} from 'chai'; import proxyquire from 'proxyquire'; import any from '@travi/any'; import {INTERNAL_SERVER_ERROR} from 'http-status-codes'; import * as storeCreator from '../../../../src/shared/store/create...
src/svg-icons/action/system-update-alt.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSystemUpdateAlt = (props) => ( <SvgIcon {...props}> <path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/> ...
examples/shopping-cart/index.js
ellbee/redux
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import logger from 'redux-logger' import thunk from 'redux-thunk' import reducer from './reducers' import { getAllProducts } from './actions' import App from './contai...
app/components/header.js
bigappleinsider/auth-client-prod
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; class Header extends Component { renderMainNavLinks() { if(this.props.authenticated) { return ( <ul className="nav navbar-nav"> <li><Link to="/questionaire">Questionaire...
stories/Range/index.js
skyiea/wix-style-react
import React from 'react'; import {storiesOf} from '@storybook/react'; import InteractiveCodeExample from '../utils/Components/InteractiveCodeExample'; import Markdown from '../utils/Components/Markdown'; import Readme from '../../src/Range/README.md'; import ExampleStandard from './ExampleStandard'; storiesOf('3. In...
stories/FieldAutocomplete.stories.js
maputnik/editor
import React from 'react'; import {useActionState} from './helper'; import FieldAutocomplete from '../src/components/FieldAutocomplete'; import {Wrapper} from './ui'; import {withA11y} from '@storybook/addon-a11y'; export default { title: 'FieldAutocomplete', component: FieldAutocomplete, decorators: [withA11y],...
source/component/listview/postCommentRow.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, Text, Image, TouchableHighlight } from 'react-native'; import moment from 'moment'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import HtmlConvertor from '../htmlConvertor'; import { filterCommentData, getBloggerAvatar, decodeHTML } from '....
src/helpers/menuLinks.js
sars/appetini-front
import React from 'react'; const menuLinks = [ {to: '/', label: 'Главная', index: true}, {to: '/team_offers', label: 'Корпоративные обеды'}, {to: '/cooks', label: 'Кулинары'}, {to: '/about', label: 'О Нас'}, {to: '/tariffs', label: <span><span className="tariffs long">Тарифные планы</span><span className="ta...
app/javascript/mastodon/features/compose/containers/warning_container.js
d6rkaiz/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Warning from '../components/warning'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { me } from '../../../initial_state'; const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i; const mapStateT...
analysis/demonhunterhavoc/src/modules/talents/BlindFury.js
anom0ly/WoWAnalyzer
import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { SpellLink } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import STATISTIC_ORDER from 'parser/ui...
modules/Router.js
clloyd/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...
examples/todos/containers/AddTodo.js
Aweary/redux
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
src/svg-icons/image/looks-5.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks5 = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/> </SvgI...
example/src/util/factory.js
redux-autoform/redux-autoform-next
import React from 'react'; import { Field } from 'redux-form'; import { TextField } from 'material-ui'; const buildInput = ({ displayName }) => ( ({ input }) => ( <div> <TextField {...input} fullWidth floatingLabelText={displayName} />...
code-samples/js/ARPhysicsSample/BasicPhysicsSample.js
viromedia/viro
'use strict'; import React, { Component } from 'react'; import {StyleSheet} from 'react-native'; import { ViroARScene, ViroText, Viro360Image, ViroMaterials, ViroBox, ViroQuad, Viro3DObject, ViroOmniLight, ViroController, ViroNode, ViroARPlane, ViroFlexView, ViroAmbientLight, ViroLightingE...
src/components/Home/JuzList/index.js
hasibsahibzada/quran.com-frontend
import React, { Component } from 'react'; import * as customPropTypes from 'customPropTypes'; import styled from 'styled-components'; import debug from 'helpers/debug'; import RouterLink from 'react-router/lib/Link'; import { JUZ_LIST_EVENTS } from '../../../events'; const Link = styled(RouterLink)` display: block;...
packages/material-ui/src/internal/svg-icons/Warning.js
cherniavskii/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; /** * @ignore - internal component. */ let Warning = props => ( <SvgIcon {...props}> <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" /> </SvgIcon> ); Warning = pure(Warning); Warning.muiName = 'Svg...
app/components/audit_log/Drawer/actorSection.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { Section, SectionHeading } from './shared'; class AuditLogActorSection extends React.PureComponent { static propTypes = { auditEvent: PropTypes.shape({ actor: PropTypes.shape({ name: Pro...
triton/src/routes/Examples.js
Penson122/Third-Year-Project
import React from 'react'; import PropTypes from 'prop-types'; import Graph from '../components/Graph'; import { Area, Line } from 'recharts'; import palette from 'google-palette'; const styles = { card: { margin: '1% 3%', } }; const getDataset = async (url) => { let dataset = await fetch(url); return data...
src/main.js
amaurisquezada/battleship
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' import { Map } from 'immutable' // ======================================================== // Store Instantiation // ===========================================...
es/components/WaitList/SimpleRow.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 compose from 'recompose/compose'; import withProps from 'recompose/withProps'; import userCardable from '../../utils/userCardable'; import Avatar from '../Avatar'; im...
modules/RouteContext.js
buddhike/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
src/Parser/Warlock/Destruction/Modules/Talents/RoaringBlaze.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import Enemies from 'Parser/Core/Modules/Enemies'; import calculateEffectiveDamage from 'Parser/Core/calculateEffectiveDamage'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'co...
src/components/AuthenticatedComponent.js
morrishopkins/test_spa
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router'; import * as actionCreators from '../actions/auth'; function mapStateToProps(state) { return { token: state.auth.token, username: state.auth.username, ...
docs/app/Examples/modules/Progress/States/ProgressExampleError.js
clemensw/stardust
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleError = () => ( <Progress percent={100} error> There was an error </Progress> ) export default ProgressExampleError
packages/components/src/Rich/Layout/RichLayout.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Inject from '../../Inject'; import theme from './RichLayout.scss'; const TooltipPropTypes = { id: PropTypes.string.isRequired, children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),...
src/icons/SettingsIcon.js
resmio/mantecao
import React from 'react' import Icon from '../Icon' const SettingsIcon = props => <Icon {...props}> <path d="M3 17.5C3 18 3.4 18.6 4 18.7L7.1 19.6C7.7 19.7 7.9 20.3 7.7 20.8L6.3 23.8C6.1 24.3 6.2 25 6.6 25.3L7.9 26.4C8.4 26.7 9.1 26.8 9.6 26.6L12.4 25.3C12.9 25.1 13.5 25.3 13.6 25.9L14.4 28.8C14.6 29.3 15.2 29....
app/components/examples/H2/index.js
GuiaLa/guiala-web-app
import React from 'react'; import styles from './styles.css'; function H2(props) { return ( <h2 className={ styles.heading2 } { ...props } /> ); } export default H2;
YMHuPu/index.ios.js
Whg8908/HuPu
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import App from './App'; export default class YMHuPu extends Component { render() { return ( <App /> ...
node_modules/react-bootstrap/es/SplitToggle.js
acalabano/get-committed
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DropdownToggle fr...
example/react-station/stateless-component.js
entwicklerstube/takeoff
const t = require('outdent'); module.exports = ({name}) => t` import React from 'react'; import PropTypes from 'prop-types'; const MyStatelessComponent ({ name }) => ( <div className='container'> <span>hello: ${name}</span> </div> ); MyStatelessComponent.propTypes = { name: PropTypes.string } export defau...
app/shared/availability-view/AvailabilityView.js
fastmonkeys/respa-ui
import isEqual from 'lodash/isEqual'; import PropTypes from 'prop-types'; import React from 'react'; import ReservationInfoModal from '../modals/reservation-info/ReservationInfoModalContainer'; import DateSelector from './DateSelector'; import TimelineGroups from './timeline-groups/TimelineGroups'; import Sidebar from...
components/NestedChildren/RandomChildOne.js
craigbilner/cant-test-this
import React from 'react'; export default () => ( <div>i am random child one</div> );
src/main.js
hydro-c/methane
/** * The root of the whole app */ import React from 'react'; import Container from './components/Container'; React.render(<Container />, document.querySelector("#app"));
examples/02 Drag Around/Naive/index.js
tomulin1/react-dnd
import React, { Component } from 'react'; import Container from './Container'; import { Link } from 'react-router'; export default class DragAroundNaive extends Component { constructor(props) { super(props); this.handleHideSourceClick = this.handleHideSourceClick.bind(this); this.state = { hideSour...
webApp/web_client/components/StreamEntry.js
deliquescentlicorice/silent-disco
import React from 'react'; // MATERIAL DESIGN import Divider from '../../node_modules/material-ui/lib/divider'; import ListItem from '../../node_modules/material-ui/lib/lists/list-item'; import Avatar from '../../node_modules/material-ui/lib/avatar'; import PlayCircleOutline from 'material-ui/lib/svg-icons/av/play-cir...
src/svg-icons/action/system-update-alt.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSystemUpdateAlt = (props) => ( <SvgIcon {...props}> <path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/> ...
src/svg-icons/notification/phone-paused.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
src/components/Password/Password.js
MeetDay/dreampark-web
import React from 'react'; import PropTypes from 'prop-types'; export default class Password extends React.Component { static propTypes = { title: PropTypes.string, value: PropTypes.string, onChange: PropTypes.func } static defaultProps = { title: '密码' } constructor(...
ui/src/page/Review.js
tibyte/hanpyo
import React, { Component } from 'react'; class review extends Component { render() { return ( <div> <h1> review 페이지 입니다. </h1> </div> ); } } export default review;
test/__mocks__/@styled-icons/material.js
styled-components/styled-components-website
import React from 'react'; const DummyIcon = props => <svg {...props} />; module.exports = { Close: DummyIcon, Favorite: DummyIcon, KeyboardArrowRight: DummyIcon, KeyboardDown: DummyIcon, Link: DummyIcon, Search: DummyIcon, };
app/containers/App/index.js
haxorbit/chiron
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import { Helmet } from 'react-helmet'; import styled from 'styled-components'; import { Switch, Route } from 'react-router-d...
stories/components/layouts/notification/index.js
one-love/storybook
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import cssModules from 'react-css-modules'; import Header from '../../molecules/header'; import Footer from '../../atoms/footer'; import Notification from '../../atoms/notification'; import styles from './notification.sc...
fields/types/localfile/LocalFileField.js
developer-prosenjit/keystone
import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } from 'elemental'; module.exports = Field.create({ shouldCollapse () { return this.props.collapse && !this.hasExisting(); }, fileFieldNode () { return this.refs.fileField.getDOMNode(); }, changeFile ()...
src/components/notfound/NotFound.js
60frames/react-boilerplate
import React from 'react'; import styles from 'components/notfound/NotFound.css'; function NotFound() { return ( <div className={styles.root}> 404 Not Found </div> ); } export default NotFound;
RN HotUpdate/SmartHomeII/SmartHome/Me/HeaderCell.js
HarrisLee/React-Native-Express
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, View, Text, Image, TouchableHighlight, PixelRatio } from 'react-native'; import Constant from '../Global/Constant.js'; export default class He...
react/src/pages/byyear/UsageByYearGraph.js
VREMSoftwareDevelopment/bwmon
/* * Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com> * * 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: //w...