path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
scripts/pages/TrainingDetail.js
zupzup/reactgym
'use strict'; import React from 'react'; import TrainingStore from '../stores/TrainingStore.js'; import _ from 'lodash'; import SimpleHeaderMixin from '../mixins/SimpleHeaderMixin'; let TrainingDetail = React.createClass({ header: { title: 'Detail' }, mixins: [React.addons.PureRenderMixin, Simple...
src/components/comment_box.js
manjarb/ReduxSimpleStarter
import React, { Component } from 'react'; import { connect } from 'react-redux' import * as actions from '../actions' class CommentBox extends Component { constructor() { super() this.state = { comment: '' } } handleChange(event) { this.setState({comment: even...
website/core/WebPlayer.js
DanielMSchmidt/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/index.android.js
pabloalonsos/react-cross-platform
/** * 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 react_cross_platform extends Component { render() { return ( <View style={style...
index.js
intrepion/blog-spa-reactjs
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './containers/App' import configureStore from './store/configureStore' const store = configureStore() render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') )
src/routes/AboutMe/components/AboutMe.js
larsdolvik/portfolio
import React from 'react' // import DuckImage from '../assets/Duck.jpg' import './AboutMe.scss' export const AboutMe = () => ( <div> <h3>About me</h3> <div className="pageContainer"> <p> Ipsum is unattractive, both inside and out. I fully understand why it’s former users left it for something e...
examples/counter/index.js
nickhudkins/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
src/muiThemeable.js
gobadiah/material-ui
import React from 'react'; import DefaultRawTheme from './styles/raw-themes/light-raw-theme'; import ThemeManager from './styles/theme-manager'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } export default function muiThemeable(WrappedComp...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/view-compact.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageViewCompact = (props) => ( <SvgIcon {...props}> <path d="M3 19h6v-7H3v7zm7 0h12v-7H10v7zM3 5v6h19V5H3z"/> </SvgIcon> ); ImageViewCompact.displayName = 'ImageViewCompact'; ImageViewCompact.muiName = 'SvgIcon'; export default ImageViewCo...
src/hot.dev.js
gaearon/react-hot-loader
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import hoistNonReactStatic from 'hoist-non-react-statics'; import { getComponentDisplayName } from './internal/reactUtils'; import configuration from './configuration'; import AppContainer from './AppContainer.dev'; import reactHotLoader from ...
src/components/ParallaxBackground/index.js
r1cebank/react-native-boilerplate
/* eslint-disable import/no-unresolved */ import React from 'react'; import { Animated, View, Image, Dimensions } from 'react-native'; import Styles from './resources/styles'; import resolveAssetSource from 'resolveAssetSource'; const HEIGHT = Dimensions.get('window').height > 600 ? 200 : 150; const SCREEN_WIDTH = ...
kitchen-sink/react/src/app.js
AdrianV/Framework7
import React from 'react'; import ReactDOM from 'react-dom/cjs/react-dom.production.min'; import Framework7 from 'framework7/framework7.esm.bundle'; import Framework7React from 'framework7-react'; import App from './app.jsx'; Framework7.use(Framework7React); // Mount React App ReactDOM.render( React.createElement(Ap...
src/mixins/color-mixin.js
WaldoJeffers/react-dc
import React from 'react' import {withProps} from '../utils' const {arrayOf, func, number, string} = React.PropTypes export default withProps({ colorAccessor: func, colorDomain: arrayOf(string), colors: func, // TO DO : shape a scale linearColors: arrayOf(number), ordinalColors: arrayOf(string) })
front/reducers/index.js
bigkangtheory/wanderly
import React from 'react'; import { combineReducers } from 'redux'; import { routerReducer } from 'react-router-redux'; //import reducers here: import mapReducer from './map-reducer'; import itineraryReducer from './itinerary-reducer'; import destinationReducer from './destination-reducer'; import profileReducer from...
client/src/components/Title.js
StereoPT/TwitterAI
import React from 'react'; export default function Title({ title }) { return ( <div className="row"> <div className="col-12 mx-auto my-2"> <h1 className="text-capitalize font-weight-bold">{ title }</h1> </div> </div> ); }
src/Video/Video.js
brz0/chart-suite
import React from 'react'; import Modal from 'react-modal'; // Svg import Play from './play.svg'; import Close from './close.svg'; import chartsHome from './chartshome.svg'; import VideoPhotoPath from './videobg.jpg'; const VideoPhoto = {backgroundImage: 'url(' + VideoPhotoPath + ')'} const customStyles = { overlay...
e2e-tests/production-runtime/src/pages/paths.js
ChristopherBiscardi/gatsby
import { Router } from '@reach/router' import React from 'react' const App = () => <h1>App Page</h1> const NotFound = () => <h1>Not Found in App</h1> const AppPage = () => ( <Router> <App path="/paths/app" /> <NotFound default /> </Router> ) export default AppPage
examples/huge-apps/routes/Profile/components/Profile.js
ThibWeb/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
form/RangeField.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import _get from 'lodash-es/get'; import {types, view} from 'components'; export default class RangeField extends React.Component { static propTypes = { metaItem: PropTypes.object.isRequired, input: PropTypes.shape({ name:...
js/components/taskEdit/tabComments.js
bsusta/HelpdeskAppTemplate
import React, { Component } from 'react'; import { Input, Label, Button, Icon, Item, Footer, FooterTab, Thumbnail, Container, Content, Card, CardItem, Text, ListItem, List, Left, Body, Right } from 'native-base'; import { Actions } from 'react-native-router-flux'; import styles from './styles'; import { ActivityIndic...
definitions/npm/react-i18next_v1.10.x/test_react-i18next_v1.10.x.js
mkscrg/flow-typed
// @flow import React from 'react' import { loadNamespaces, translate, I18nextProvider, Interpolate, } from 'react-i18next' import type { TFunction, Translator } from 'react-i18next' const i18n = { loadNamespaces: () => {} }; <I18nextProvider i18n={ i18n } children={ <div /> } />; // $ExpectError - missing ...
src/Checkbox.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; import mdlUpgrade from './utils/mdlUpgrade'; const propTypes = { checked: PropTypes.bool, className: PropTypes.string, disabled: PropTypes.bool, label: PropTypes....
app/containers/LanguageProvider/index.js
Dattaya/react-boilerplate-object
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'...
src/components/views/open-account-progress-view.js
HuangXingBin/goldenEast
import React from 'react'; import { Table,Button } from 'antd'; import { Link } from 'react-router'; const OpenAccountProgressTable = React.createClass({ getColumns(){ var tableTitleChange = this.props.tableTitleChange == 0 ? '提交资料时间' : '注册时间'; const columns = [{ title: '姓名', dataIndex: 'user_name', k...
node_modules/react-bootstrap/es/Grid.js
rblin081/drafting-client
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 ...
admin/client/views/home.js
qwales1/keystone
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import { Container } from 'elemental'; import xhr from 'xhr'; import { plural } from '../utils'; import Footer from '../components/Footer'; import MobileNavigation from '../components/Navigation/MobileNavigation'; import PrimaryNavigation from ...
src/components/Walk/Walk.js
fxghqc/walk
import React from 'react' import classNames from 'classnames/bind'; import classes from './Walk.scss' let cx = classNames.bind(classes) export class Walk extends React.Component { propTypes: { walk: React.PropTypes.object.isRequired, nextAsync: React.PropTypes.func.isRequired, next: React.PropTypes.func...
src/svg-icons/maps/near-me.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsNearMe = (props) => ( <SvgIcon {...props}> <path d="M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"/> </SvgIcon> ); MapsNearMe = pure(MapsNearMe); MapsNearMe.displayName = 'MapsNearMe'; MapsNearMe.muiName...
src/client/react/user/views/Challenges/ChallengeList.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import { NonIdealState } from '@blueprintjs/core'; import { connect } from 'react-redux'; import LoadingSpinner from '../../../components/LoadingSpinner'; import ChallengeCard from './ChallengeCard'; const mapStateToProps = (state) => { return { challeng...
frontend/src/Settings/Notifications/Notifications/EditNotificationModalContentConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { saveNotification, setNotificationFieldValue, setNotificationValue, testNotification } from 'Store/Actions/settingsActions'; import createProviderSettin...
examples/sidebar/app.js
AnSavvides/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 || ( ...
app/javascript/mastodon/features/ui/components/zoomable_image.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const MIN_SCALE = 1; const MAX_SCALE = 4; const getMidpoint = (p1, p2) => ({ x: (p1.clientX + p2.clientX) / 2, y: (p1.clientY + p2.clientY) / 2, }); const getDistance = (p1, p2) => Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client...
app/views/STF/Voting/Panels/Budget/Budget.js
RcKeller/STF-Refresh
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Table, Tooltip, Icon } from 'antd' import { makeManifestByID } from '../../../../../selectors' import { Loading } from '../../../../../components' const currency = value => `$${Number.parseInt(value)....
components/time-picker/combobox.js
TDFE/td-ui
/** * @Author: Zhengfeng.Yao <yzf> * @Date: 2017-06-21 09:57:42 * @Last modified by: yzf * @Last modified time: 2017-06-21 09:57:44 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Select from './select'; const formatOption = (option, disabledOptions) => { let value =...
src/svg-icons/action/play-for-work.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPlayForWork = (props) => ( <SvgIcon {...props}> <path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/> </SvgIcon> ); ActionPlayForWork ...
node_modules/react-router/es6/Route.js
jwhite4870/moreReactRedux
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
app/javascript/mastodon/features/ui/components/mute_modal.js
NS-Kazuki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; import { muteAccount }...
frontend/src/SubjectPreference.js
googleinterns/step78-2020
import React from 'react'; import {CardContent, Input} from '@material-ui/core'; import Typography from '@material-ui/core/Typography'; class SubjectPreference extends React.Component { constructor(props) { super(props); this.handleSubjectChange = this.handleSubjectChange.bind(this); } handleSubjectCha...
app/components/Footer/index.js
ESTEBANMURUZABAL/bananaCatReact
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
docs/tutorial/DO_NOT_TOUCH/06/src/components/App/index.js
idream3/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state, signal} from 'cerebral/tags' import Toast from '../Toast' export default connect({ title: state`title`, subTitle: state`subTitle`, buttonClicked: signal`buttonClicked` }, function App (props) { return ( <div className='o-...
react/TickIcon/TickIcon.js
seek-oss/seek-style-guide
import svgMarkup from './TickIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function TickIcon(props) { return <Icon markup={svgMarkup} {...props} />; } TickIcon.displayName = 'TickIcon';
app/screens/components/buyer/cart-item.js
yiyinsong/react-native-example-jdh
import React, { Component } from 'react'; import { View, Text, Image, TouchableOpacity, TouchableHighlight, ScrollView, DeviceEventEmitter, TextInput } from 'react-native'; import styles from '../../../css/styles'; export default class BuyerCartItemComponent extends Component { constructor(props) { ...
index.js
weslylaboy/react-native-scroll-to-top
/** * Scroll to Top * * <ScrollToTop rootView={this.listview} icon={<Icon raised name="arrow-upward" />} /> * */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity, Dimensions, StyleSheet, Text } from 'react-native'; /* Styles...
app/components/animatedButtons/index.js
CKPalk/PA-POC-Video-Contoller
import React from 'react' import AnimatedButton, { TYPES } from './AnimatedButton' // export default Object.entries(TYPES).reduce( // (modules, [name, type]) => { // const moduleName = `Animated${name.charAt(0).toUpperCase()}${name.slice(1).toLowerCase()}` // return ({ // ...modules, // [moduleNa...
src/src/routes/Login/containers/LoginContainer.js
alexberriman/local-deals
import React from 'react' import { connect } from 'react-redux' import { login } from '../modules/login' import LoginForm from '../components/Login' class LoginContainer extends React.Component { /** * Sets up the component. * * @param props */ constructor(props) { super(props) this.LoginFor...
src/icons/PhonelinkLockIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class PhonelinkLockIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 ...
src/Table/Table.js
react-fabric/react-fabric
import React from 'react' import cx from 'classnames' import fabricComponent from '../fabricComponent' import style from './Table.scss' const Table = ({ children, fixed, ...props }) => ( <table data-fabric="Table" {...props } styleName={cx('ms-Table', { 'ms-Table--fixed': fixed, })}> { chil...
src/components/Back/Back.js
Grusteam/spark-in-me
import React from 'react'; import cx from 'classnames'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Back.css'; import Link from '../Link'; import history from '../../core/history'; class Back extends React.Component { handleClick() { history.goBack(); } render() { ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
IamJoseph/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; const styled = ([style]) => style .trim() .spli...
src/encoded/static/components/genome_browser.js
ENCODE-DCC/encoded
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { filterForVisualizableFiles } from './objectutils'; import Tooltip from '../libs/ui/tooltip'; import GeneSearch from './gene_search'; /** * Maps long annotation_type values to shorter versions for Valis track labels. An...
src/docs/ComponentPage.js
tlraridon/ps-react-train-tlr
import React from 'react'; import PropTypes from 'prop-types'; import Example from './Example'; import Props from './Props'; const ComponentPage = ({component}) => { const {name, description, props, examples} = component; return ( <div className="componentpage"> <h2>{name}</h2> <p>{description}</p...
app/screen/Login.js
shuiszhang/fanfou
/** * Created by shuis on 2017/5/27. */ import React, { Component } from 'react'; import { Button, View, Image, TextInput, StyleSheet } from 'react-native'; import Toast from 'react-native-root-toast'; import {auth} from '../api/api'; import {parse_auth} from '../util/util' class Login extends Component{ ...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
limarc/react-router
import React from 'react'; class Announcement extends React.Component { render () { var { courseId, announcementId } = this.props.params; var { title, body } = COURSES[courseId].announcements[announcementId]; return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } ...
src/parser/warlock/demonology/CHANGELOG.js
fyruna/WoWAnalyzer
import React from 'react'; import { Chizu, Gwelican } from 'CONTRIBUTORS'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; export default [ { date: new Date('2019-04-03'), changes: <>Add <SpellLink id={SPELLS.DEMONIC_CONSUMPTION_TALENT.id} /> power tracker. </>, contributor...
examples/CardReveal.js
react-materialize/react-materialize
import React from 'react'; import Card from '../src/Card'; import CardTitle from '../src/CardTitle'; import Icon from '../src/Icon'; export default <Card header={<CardTitle reveal image={"img/office.jpg"} waves='light'/>} title="Card Title" reveal={<p>Here is some more information about this product that is o...
src/App.js
betoesquivel/intertech-lenon-positweet-ui
import React, { Component } from 'react'; import logo from './logo.png'; import './App.css'; import Login from './Login.js'; class App extends Component { constructor() { super(); const current_url = typeof location !== 'undefined' ? location.toString() : ''; const queryMatch = current_url.match(/\?(.+)...
pgpilot-webapp/client/main.js
dperetti/PGPilot
import { Meteor } from 'meteor/meteor' // eslint-disable-line import React from 'react' import { render } from 'react-dom'; import PGNodes from './imports/PGNodes.jsx' import MainNavBar from './imports/NavBar.jsx' Meteor.startup(() => { // #Cypuu# render(<MainNavBar />, document.getElementById('navbar')); render(<...
InstitutionalApp/src/components/navBar.js
michelmarcondes/ReactNativeStudies
import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class NavBar extends Component { render() { return ( <View style={[styles.container, this.props.backgroundColor]}> <Text style={styles.title}>XYZ Consulting</Text> </View> ...
src/HorizonGraph.js
ornl-sava/vis-react-components
import React from 'react' import PropTypes from 'prop-types' import { TransitionGroup } from 'react-transition-group' import * as d3 from 'd3' import { setEase } from './util/d3' import SVGComponent from './SVGComponent' import BrushX from './BrushX' class HorizonGraph extends React.Component { constructor (props)...
examples/huge-apps/components/Dashboard.js
zipongo/react-router
import React from 'react' import { Link } from 'react-router' class Dashboard extends React.Component { render() { const { courses } = this.props return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of you...
src/components/DraggableList.js
tuomashatakka/tool-bar-gui
'use babel' import React from 'react' import { CompositeDisposable, Disposable } from 'atom' import ListItem from '../components/ListItemComponent' import DisposableEvent from '../util/DisposableEvent' import prop from 'prop-types' const { abs, min, max, sqrt } = Math const SNAP_CLICK_DISTANCE = 4 let index let begi...
EventEmitter.Client/src/components/Header/Header.js
Stelmashenko-A/EventEmitter
import React from 'react' import { Link } from 'react-router' import './Header.scss' import { Header, Navigation } from 'react-mdl' export const EHeader = (props) => ( <Header title={<span><Link to='/'>Event Emitter</Link></span>}> <Navigation> <Link className={(!props.user.login ? '' : 'hidden')} ...
src/examples/example-toolbox/example-toolbox.js
smollweide/react-speed-dial
import React from 'react'; import PropTypes from 'prop-types'; import { grey800, grey200, teal300, cyan900 } from 'material-ui/styles/colors'; import IconPlay from 'material-ui/svg-icons/av/play-arrow'; import IconPause from 'material-ui/svg-icons/av/pause'; import IconRewind from 'material-ui/svg-icons/av/fast-rewind'...
src/components/Posts/Posts.js
jonirrings/react-stack
/** * react-stack react-stack * * Copyright © 2016. JonirRings. * * 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 PropTypes from 'prop-types'; import withStyle from 'isomorphic-style-loader/lib/withS...
app/imports/client/Components/SearchInput/index.js
FractalFlows/Emergence
/* * Built by Astrocoders * @flow */ //Modules import React from 'react' import ReactDOM from 'react-dom' import { Meteor } from 'meteor/meteor' import styled from 'styled-components' import { CircularProgress } from 'material-ui' import SearchIcon from 'material-ui/svg-icons/action/search' import CloseIcon from 'm...
js/index.js
cotyembry/webpackBoilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import App from './components/App.jsx'; $(document).ready(function() { ReactDOM.render(<App />, document.getElementById('App')) })
app/javascript/mastodon/features/blocks/index.js
narabo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll'; import Column from '../ui/components...
src/index.js
vxsx/nearest-color-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import 'react-toolbox/lib/commons'; ReactDOM.render(<App />, document.getElementById('root'));
app/components/Header/index.js
abasalilov/react-boilerplate
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.png'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
src/svg-icons/action/stars.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStars = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53...
src/svg-icons/image/iso.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (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-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
app/features/settings/device/panels/SettingsDevicePanelReconnecting.js
squatsandsciencelabs/OpenBarbellApp
import React, { Component } from 'react'; import { Text, View, Image } from 'react-native'; import { SETTINGS_PANEL_STYLES } from 'app/appearance/styles/GlobalStyles'; // displays connecting device info class SettingsDevicePanelReconnecting extends Component { render() { return ( ...
project-templates/reactfiber/externals/react-fiber/fixtures/fiber-debugger/src/index.js
ItsAsbreuk/itsa-cli
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/editor/border-left.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderLeft = (props) => ( <SvgIcon {...props}> <path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2z...
web/src/components/Calendar/Popup.js
AcrylicInc/totalblu
import PropTypes from 'prop-types'; import React from 'react'; import getOffset from 'dom-helpers/query/offset'; import getScrollTop from 'dom-helpers/query/scrollTop'; import getScrollLeft from 'dom-helpers/query/scrollLeft'; import EventCell from 'components/Calendar/components/Events/EventCell'; import { isSelected...
frontend/src/js/app.js
terryx/react-gulp
'use strict'; import React from 'react'; import Main from './components/Main'; class App extends React.Component { constructor(props) { super(props); } componentWillMount() {} componentWillUnmount() {} componentDidMount() {} render() { return ( <div>Hello React World</div> ) } } R...
src/components/Account/ResourceList/ListActions/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import RenewButton from './RenewButton' import ExportButton from './ExportButton' import DeleteButton from './DeleteButton' import typeConstants from '../constants' import styles from './style.module.css' const ListActions = (props) => { const config = ...
src/styles/Cards/cardClassName.js
GKotsovos/WebPoker
import React from 'react'; import classNames from 'classnames'; import Styles from './cards.css' const ranks = { 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8, 9:9, 10:10, 11: 'J', 12: 'Q', 13:'K', 14: 'A' } export const cardClassName = { front: (rank, suit) => classNames( Styles.card, Styles['rank-' + rank.toString(...
src/components/MainNav/NavDivider/NavDivider.js
folio-org/stripes-core
import React from 'react'; import PropTypes from 'prop-types'; import css from './NavDivider.css'; const propTypes = { md: PropTypes.string, // Temporary as we work out the responsiveness of the header. }; function NavDivider(props) { function getClass() { const base = css.navDivider; const hide = props.m...
src/components/MobHeader/MobHeader.js
malinowsky/dataroot_03
/** * 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...
packages/react-router/modules/Switch.js
goblortikus/react-router
import React from 'react' import PropTypes from 'prop-types' import warning from 'warning' import matchPath from './matchPath' /** * The public API for rendering the first <Route> that matches. */ class Switch extends React.Component { static contextTypes = { router: PropTypes.shape({ route: PropTypes.ob...
fields/components/columns/CloudinaryImageSummary.js
kumo/keystone
import React from 'react'; // import CloudinaryImage from 'react-cloudinary-img'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; const linkStyle = { marginRight: 8, }; const boxStyle = { borderRadius: 3, display: 'inline-block', height: 18, overflow: 'hidden', verticalAlign: 'mid...
src/app/core/atoms/icon/icons/house.js
blowsys/reservo
import React from 'react'; const House = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="6.00058581 10.9998 6 11 6 19.9998 11 19.9998 11 16.0009 13 16.0009 13 19.9998 18 19.9998 18 11 17.9994142 10.9998 18.0027466 10.9998 12.0003 4.9998 6.0003 10.9998"/></g></g></svg>; export default House;
packages/react-native-renderer/src/ReactNativeComponent.js
TheBlasfem/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import type { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallb...
webpack/ForemanTasks/Components/TaskDetails/Components/Raw.js
theforeman/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { durationInWords } from './TaskHelper'; const Raw = ({ id, label, startedAt, endedAt, input, output, externalId }) => ( <div> <div> <span className="param-name list-group-item...
server/sonar-web/src/main/js/apps/permission-templates/app.js
abbeyj/sonarqube
import React from 'react'; import Main from './main'; import '../../helpers/handlebars-helpers'; window.sonarqube.appStarted.then(options => { var el = document.querySelector(options.el); React.render(<Main topQualifiers={options.rootQualifiers}/>, el); });
src/compos/Conversation.js
Blacktoviche/RNChat
import React, { Component } from 'react'; import { connect } from 'react-redux'; import uuid from 'react-native-uuid'; import * as backend from '../backend/Mediator'; import { sendTextMessage, setupConversation, addContact, changeReceiverContactStatus, showImageModal, hideImageModal, imageMessageTextChanged, se...
app/src/components/Technologies/TechnologyGridItem.js
RyanCCollins/ryancollins.io
import React, { Component } from 'react'; import { Column, Thumbnail } from 'react-foundation'; import './TechnologyGridItem.scss'; import elementInViewport from '../../../lib/isVisible'; class TechnologyGridItem extends Component { constructor(props) { super(props); this.state = { needsAnimation: true...
src/modules/Register/components/RegisterType.js
hdngr/mantenuto
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Helmet from 'react-helmet'; import RegisterForm from './RegisterForm'; import { register, login } from '../redux'; import { notifSend } from '../../Notif...
pages/404.js
Kudrik/ReactTest
import React, { Component } from 'react'; import AffiliateScheme from '../components/AffiliateScheme'; import Terms from '../components/Terms'; import Link from '../components/Link'; export default class extends Component { render() { return ( <div> <AffiliateScheme /> <h1>Not Found</h1> <...
docs/src/PageFooter.js
thealjey/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className="bs-docs-footer" role="contentinfo"> <div c...
apps/react-redux/components/NotFound.js
router5/examples
import React from 'react'; export default function NotFound(props) { return <div className='not-found'>Purposely Not found (not a bug)</div>; }
app/main.js
shawnxusy/git-dashboard
import React from 'react'; import Router from 'react-router'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import routes from './routes'; import Navbar from './components/Navbar'; let history = createBrowserHistory(); ReactDOM.render(<Router history={history}>...
cache/react-native-example/App.js
sharkspeed/dororis
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class App extends React.Component { render() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> <Text>Changes you make will automatically reload...
react_lifecycle_sample/setup.js
devSC/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import LifecycleComponent from './LifecycleComponent' export default class setup extends Component { constructor(pr...
app/javascript/mastodon/features/ui/components/bundle_modal_error.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; const messages = defineMessages({ error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp...
src/index.js
natcreates/react-learning
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; // BrowserRouter talks to the History library, which parses changes in url // Route is a React component we render inside React components that tells // React-router...
app/containers/HomePage/index.js
hukid/litaff
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/svg-icons/hardware/mouse.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareMouse = (props) => ( <SvgIcon {...props}> <path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/> </SvgIcon> ); HardwareMouse =...
src/server/index.js
sanchitgangwar/remind-plus
import express from 'express'; // import exphbs from 'express-handlebars'; // import React from 'react'; // import { renderToString } from 'react-dom/server'; // import { RouterContext, match } from 'react-router'; // import { Provider } from 'react-redux'; // import thunkMiddleware from 'redux-thunk'; // import { cre...