path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/ContentBlock/index.js
rapicastillo/beautifulrising-client
/** * * ContentBlock * */ import React from 'react'; import styled, { ThemeProvider } from 'styled-components'; import { injectIntl } from 'react-intl'; const LatinContentTheme = ` font-size: 14px; line-height: 22px; text-align: left; `; const ArabicContentTheme = ` font-size: 13px; line-height: 24px; te...
src/reducers/tweet.js
philly-d/chirp-for-twitter
import React from 'react' import { combineReducers } from 'redux' import twitterText from 'twitter-text' import _ from 'underscore' import { getAutocompleteTerm } from './autocomplete' import { CompositeDecorator, ContentState, Editor, EditorState, getDefaultKeyBinding, KeyBindingUtil, Selec...
web/src/components/Calendar/DateContentRow.js
AcrylicInc/totalblu
import cn from 'classnames'; import getHeight from 'dom-helpers/query/height'; import qsa from 'dom-helpers/query/querySelectorAll'; import PropTypes from 'prop-types'; import React from 'react'; import { findDOMNode } from 'react-dom'; import dates from './utils/dates'; import { accessor, elementType } from './utils/...
examples/with-shallow-routing/pages/index.js
callumlocke/next.js
import React from 'react' import Link from 'next/link' import Router from 'next/router' import { format } from 'url' let counter = 1 export default class Index extends React.Component { static getInitialProps ({ res }) { if (res) { return { initialPropsCounter: 1 } } counter++ return { ...
src/components/itemHolder/index.js
ShinyLeee/React-PhotoSwipe
/* eslint-disable no-param-reassign */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AnimationBox from './components/animationBox'; import EnhancedWrapper from './styled'; import { PAN_FRICTION_LEVEL, ZOOM_FRICTION_LEVEL, BOUNCE_BACK_DURATION, DIRECTION_VERT, DIRECTION_U...
app/containers/Signin.js
Block-and-Frame/block-and-frame
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import axios from 'axios'; import authHelpers from '../utils/authHelpers'; import SigninForm from '../components/auth/SigninForm'; class Signin extends Component { constructor(props) { super(props); this.state...
app/containers/Root.js
caiizilaz/exchange-rate
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Routes from '../routes'; type RootType = { store: {}, history: {} }; export default function Root({ store, history }: RootType) { return ( <Provider store={store}> <...
components/ListItemProduct.js
NigelEarle/SSR-shopping
import React from 'react'; import Link from 'next/link'; const SingleProduct = ({ id, title, description, inventory, price }) => ( <div> <Link prefetch as={`/product/${id}`} href={`/product?id=${id}`}> <a> <div> <h3>{title}</h3> </div> </a> </Link> </div> ); ...
src/Menu/MenuItem.js
boldr/boldr-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import BoldrComponent from '../util/BoldrComponent'; class MenuItem extends BoldrComponent { static propTypes = { icon: PropTypes.node, text: PropTypes.string, onClick: PropTypes.func, }; render() { ...
src/components/DashboardBackground/DashboardBackground.js
Zoomdata/nhtsa-dashboard
import React from 'react'; import H2Header from '../H2Header/H2Header'; import GridContainer from '../GridContainer/GridContainer'; import CloseHood from '../CloseHood/CloseHood'; const DashboardBackground = () => { return ( <div className="dashboard-background"> <H2Header /> <GridContainer /> ...
docs/components/Homepage/Platforms/index.js
jribeiro/storybook
import React from 'react'; import './style.css'; const Platform = () => <div id="platform" className="row"> <div className="col-md-12"> <h3 className="built-for">Built for</h3> <p className="platforms"> <a href="https://github.com/storybooks/storybook/tree/master/app/react" ...
packages/react-instantsearch-core/src/connectors/connectStateResults.js
algolia/react-instantsearch
import createConnector from '../core/createConnector'; import { getResults } from '../core/indexUtils'; /** * The `connectStateResults` connector provides a way to access the `searchState` and the `searchResults` * of InstantSearch. * For instance this connector allows you to create results/noResults or query/noQue...
20161216/cnode/index.ios.js
fengnovo/react-native
// import React from 'react'; // import { AppRegistry } from 'react-native'; // import Root from './app/app.js'; // AppRegistry.registerComponent('cnode', ()=>Root); require('./app/main');
app/components/Avatar/index.js
brentvatne/react-conf-app
// @flow import React from 'react'; import { Image, Platform, View } from 'react-native'; import theme from '../../theme'; type Props = { size?: number, source: string, style: Object | null | Array<Object | null>, }; export default class Avatar extends React.Component { render() { let { size, source, sty...
src/icons/IosInfiniteOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosInfiniteOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M451.229,188.098C432.682,169.967,407.95,160,381.585,160c-26.363,0-51.095,9.967-69.642,28.098l-42.229,41.1...
components/ui/SearchSelect.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; import isEqual from 'lodash/isEqual'; // Components import Icon from 'components/ui/icon'; export default class SearchSelect extends React.Component { constructor(props) { super(props); this.state = { selectedItem: props.options ? props.op...
src/routes/register/Register.js
Frenzzy/react-starter-kit
/** * 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-...
node_modules/semantic-ui-react/src/elements/Button/ButtonGroup.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey, useWidthProp, } from '../../lib' /** * Buttons can be grouped. */ function ButtonGroup(props) { const { a...
docs/src/app/layout/Main.js
GetAmbassador/react-ions
import React from 'react' const Main = props => { return ( <section role='main'> {props.children} </section> ) } export default Main
react/Pill/Pill.js
seek-oss/seek-style-guide
// @flow import styles from './Pill.less'; import React, { Component } from 'react'; import classnames from 'classnames'; import Text from '../Text/Text'; import CrossIcon from '../CrossIcon/CrossIcon'; import ScreenReaderOnly from '../ScreenReaderOnly/ScreenReaderOnly'; type Props = { children?: React$Node, butto...
specs/helper.js
dminuoso/react-modal
// The following eslint overrides should be removed when refactoring can occur /* eslint react/no-render-return-value: "warn" */ import React from 'react'; import ReactDOM from 'react-dom'; import Modal from '../lib/components/Modal'; const divStack = []; export function renderModal (props, children, callback) { c...
reactjs/src/cr_vars.js
astro44/FreeDraw
import React from 'react'; //import registerServiceWorker from './registerServiceWorker'; class var_Manager { constructor(){ if(! var_Manager.instance){ this._data = {}; var_Manager.instance = this; } return var_Manager.instance; } add(key, value) { this._data[key]=value //...
src/components/player.js
romainberger/react-switch
import React from 'react' export default class Player extends React.Component { getUrl() { var url = `http://dailymotion.com/embed/video/${this.props.id}` if (this.props.autoplay) { url += '?autoplay=1' } if (this.props.start) { url += (this.props.autoplay ? '&' : '?') + `start=${this.p...
packages/demo/stories/sticky-list.js
zzarcon/skatepark.js
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import 'skateparkjs-sticky-list'; import options from './defaultStoryOptions'; storiesOf('Sticky List', module) .addWithInfo('Default options', () => { const data = [{ name: 'Cars', items: ['BWV', 'Mercedes', 'Ferrari', 'Audi...
src/svg-icons/notification/airline-seat-legroom-extra.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomExtra = (props) => ( <SvgIcon {...props}> <path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1....
app/javascript/mastodon/features/ui/index.js
pinfort/mastodon
import classNames from 'classnames'; import React from 'react'; import { HotKeys } from 'react-hotkeys'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Redirect, withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import NotificationsContai...
TODO/app/containers/AddTodo.js
kosl90/Redux-Study
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(a...
src/compose.js
kadirahq/react-komposer
import React from 'react'; import shallowEqual from 'shallowequal'; import pick from 'lodash.pick'; import { mayBeStubbed } from 'react-stubber'; import { inheritStatics } from './utils'; export default function compose(dataLoader, options = {}) { return function (Child) { const { errorHandler = (err) => {...
src/index.js
vkarpov15/shidoshi
import { Provider } from 'react-redux'; import ReactDOM from 'react-dom'; import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import App from './components/App'; import Article from './components/Article'; import Editor from './components/Editor'; import Home from './compo...
app/javascript/mastodon/features/community_timeline/index.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/admin/components/SchemaForm/BooleanField.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import FormControlLabel from '@mui/material/FormControlLabel'; import FormHelperText from '@mui/material/FormHelperText'; import Checkbox from '@mui/material/Checkbox'; function BooleanField({ schema, value, onChange }) { return ( <> <FormContr...
classic/src/scenes/mailboxes/src/Scenes/CommandPaletteScene/CommandPaletteSearchItemCommandSuggestion.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import CommandPaletteSearchItem from './CommandPaletteSearchItem' import { withStyles } from '@material-ui/core/styles' import grey from '@material-ui/core/colors/grey' const styles = { helper: { ...
src/test/account.js
jperez10/RobinHoodAutoTrader
import React, { Component } from 'react'; class Account extends Component { render() { //console.log("pineapple") console.log("this.props.Account",this.props.Account); if(this.props.Account === undefined){ return ( <div className="account"> Please update Acco...
app/views/calculator.js
7kfpun/BitcoinReactNative
import React from 'react'; import { ListView, NetInfo, Platform, StyleSheet, Text, TouchableHighlight, TouchableOpacity, View, } from 'react-native'; // 3rd party libraries import { Actions } from 'react-native-router-flux'; import { ifIphoneX } from 'react-native-iphone-x-helper'; import GoogleAnalyti...
web/src/content/work/Books.js
ajmalafif/ajmalafif.com
import React from 'react' import tw, { css, theme } from 'twin.macro' export const Books = () => { return ( <div className="books"> <div tw="mt-8 md:mt-16 w-full flex flex-row overflow-hidden space-x-4 md:space-x-16"> <div tw=" m-0 px-6 py-4 md:p-8 md:pb-4 rounded w-40 h-48 md:h-72 md:w-5...
client/intl/ismorphicIntlProvider.js
jkettmann/universal-react-relay-starter-kit
import React from 'react' import { IntlProvider, addLocaleData } from 'react-intl' import en from 'react-intl/locale-data/en' import de from 'react-intl/locale-data/de' import localeData from './locales/data.json' addLocaleData([...en, ...de]) const withIntl = (children, locale) => { const messages = localeData[lo...
src/svg-icons/maps/rate-review.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRateReview = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1...
app/javascript/mastodon/components/common_counter.js
im-in-space/mastodon
// @ts-check import React from 'react'; import { FormattedMessage } from 'react-intl'; /** * Returns custom renderer for one of the common counter types * * @param {"statuses" | "following" | "followers"} counterType * Type of the counter * @param {boolean} isBold Whether display number must be displayed in bold ...
cypress/app/src/components/ValidationTest.js
darrikonn/react-chloroform
import React from 'react'; import { Button, Form, Input, Select, TextArea, } from 'react-chloroform'; function ValidationTest() { const attachCypressOrConsoleLog = model => { if (window.Cypress) { window.model = model; } else { console.log(model); } }; return ( <div> ...
client/modules/core/components/top_nav_bar/top_nav_bar.js
bompi88/grand-view
// ////////////////////////////////////////////////////////////////////////////// // TopNavbar SCSS Styles // ////////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Concept // // Licensed under the Apache License, Version 2.0 (the 'License'); // you may not use this file exc...
src/routes/MetaCoin/components/HeaderComponent.js
trixyrabbit/Exile
import React from 'react' export const Header = () => { return ( <div> <h2>MetaCoin Example Webpack react-redux Example!</h2> </div> ) } Header.propTypes = { } export default Header
app/app.js
SergejKasper/churchfathers
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/components/svg/Logo.js
ryanabragg/VanguardLARP
import React from 'react'; import PropTypes from 'prop-types'; const Logo = (props) => { return ( <svg width={props.width} height={props.height} viewBox="0 0 648 360" xmlns="http://www.w3.org/2000/svg"> <path id="compass" fill={props.colorCompass} d="m 201.279,15.5 c 21.06,-0.791 41.549,2.187 61.91,9.451 -...
src/higherOrders/Transition.js
lenxeon/react-ui
import React from 'react' import PropTypes from '../utils/proptypes' function childrenToItems (children) { if (!children) { return {} } let items = {} if (!Array.isArray(children)) { children = [children] } children.forEach((child) => { items[child.key] = child }) return items } functio...
node_modules/react-bootstrap/es/PagerItem.js
caughtclean/but-thats-wrong-blog
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/helpers/Html.js
hasibsahibzada/quran.com-frontend
/* eslint-disable global-require, quotes, max-len */ import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Helmet from 'react-helmet'; import serialize from 'serialize-javascript'; const Html = ({ store, component, assets }) => { const content = component ? Re...
src/Component/React/ReactAdapter/index.js
Kitware/paraviewweb
import React from 'react'; import ReactDOM from 'react-dom'; export default class ReactContainer { constructor(reactClass, reactProps) { this.props = reactProps; this.reactClass = reactClass; this.container = null; this.component = null; } setContainer(el) { if (this.container && this.contai...
core/src/app.js
syon/gaiyas
/* @type */ import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { fetchPosts, makeRanking } from './actions' import Main from './components/Main.jsx' import configureStore from './store/configureStore' import './css/app.css' const defaultUrl = new URL(location.href)...
app/src/common/hoc/withBackButton.js
BlackBoxVision/react-native-redux-todo
import React from 'react'; import PropTypes from 'prop-types'; import { BackAndroid, Platform } from 'react-native'; import connect from 'react-redux/lib/connect/connect'; export default function withBackButton() { return ReactComponent => { const mapStateToProps = state => ({ index: state.navi...
src/components/organisms/Hero/index.js
DimensionLab/narc
import React from 'react' import styled from 'styled-components' import { palette, size } from 'styled-theme' import { Block, Paragraph, IconLink, IconButton, LogoImage, PreformattedText, Heading, Tooltip, } from 'components' const Wrapper = styled(Block)` display: flex; justify-content: center; ...
src/index.js
Gab-Metzger/react-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/components/shared/GoBack.js
juandjara/open-crono
import React from 'react' import { browserHistory } from 'react-router' import Button from 'react-toolbox/lib/button/Button'; const NotFound = () => { return ( <Button primary onClick={() => browserHistory.goBack()} label="Volver atr&aacute;s" /> ) } export default NotFound
src/components/CatalogList/CatalogList.js
pustovitDmytro/maysternya
/** * 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 cx from 'classnames';...
src/components/NavsFigure.js
yuhaogo/study-mk-photos
import React from 'react'; class NavsFigure extends React.Component{ handleClick=(e)=>{ const {isCenter}=this.props.arrange; if(isCenter){ this.props.inverse(); }else{ this.props.center(); } e.stopPropagation(); e.preventDefault(); } ...
src/js/ui/chunk-row.js
SpaceHexagon/pylon
import React from 'react'; import ChunkMenu from './chunk-menu.js'; export default class ChunkRow extends React.Component { constructor() { super(); this.state = {filterText: ''} } render () { return ( <div className={"chunk-row "+this.props.offset}> {this.props.chunks.map(function (chunk, ...
src/interface/Portal.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import PortalTarget from './PortalTarget'; class Portal extends React.PureComponent { static propTypes = { children: PropTypes.node.isRequired, }; state = { elem: null, }; componentDidMount() { this....
src/svg-icons/maps/flight.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsFlight = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon>...
src/screen/ScreenPreviewer.js
RoyalIcing/gateau
import R from 'ramda' import React from 'react' import seeds, { Seed } from 'react-seeds' import Frame from 'react-frame-component' import Button from '../ui/Button' import Choice from '../ui/Choice' import * as stylers from '../stylers' import destinations from '../destinations' const catchRenderErrors = false cons...
src/routes/contact/index.js
mcfa77y/isla_de_pescua
/** * 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 Contact from './Contact'...
webclient/home/index.js
souravDutta123/Cognitive-Assistant
import Introduction from './introduction.js'; import Navbar from './navBar.js'; import React from 'react'; import Paper from 'material-ui/Paper'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; const styles = { }; export {Introduction,Navbar} ;
cms/cms.js
GeniusWigga/irmua
import React from 'react' import CMS from 'netlify-cms' // CMS.registerPreviewStyle('/styles.css') // CMS.registerPreviewTemplate('blog', BlogPostPreview)
src/renderer/components/Frame/FrameControls.js
MovieCast/moviecast-desktop
import { remote } from 'electron'; import React, { Component } from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Minimize from './Controls/Minimize'; import Maximiz...
ui/js/layout.js
beni55/spigo
'use strict'; import React from 'react'; import Header from 'header'; export default React.createClass({ render () { return ( <section id="app"> <Header /> {this.props.children} </section> ); } });
app/components/Github/Repos.js
joshuar500/repository-notes
import React from 'react'; class Repos extends React.Component { render(){ var repos = this.props.repos.map(function(repo, index){ // funny way to do if then statement with && return ( <li className="list-group-item" key={index}> {repo.html_url && <h...
templates/rubix/demo/src/routes/Messengerjs.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Grid, Panel, Table, Button, PanelBody, PanelHeader, PanelContainer, } from '@sketchpixy/rubix'; export default class Messengerjs extends React.Component { componentDidMount() { // configuring default options for Messenger Messenger.options = { ...
public/js/cat_source/es6/components/segments/Segment.js
Ostico/MateCat
/** /** * React Component for the editarea. */ import SegmentCommentsContainer from './SegmentCommentsContainer' import SegmentsCommentsIcon from './SegmentsCommentsIcon' import React from 'react' import SegmentStore from '../../stores/SegmentStore' import SegmentActions from '../../actions/SegmentActions' import S...
src/js/pages/AnswerQuestionPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import selectn from 'selectn'; import TopNavBar from "../components/TopNavBar/TopNavBar"; import AnswerQuestion from '../components/questions/AnswerQuestion'; import AuthenticatedComponent from '../components/AuthenticatedComponent'; import t...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
akingyin1987/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
mangomint/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'; export default class extends Component { static propTyp...
admin/client/App/shared/AlertMessages.js
w01fgang/keystone
import React from 'react'; import { Alert } from '../elemental'; import { upcase } from '../../utils/string'; /** * This renders alerts for API success and error responses. * Error format: { * error: 'validation errors' // The unique error type identifier * detail: { ... } // Optional details specific t...
fixtures/dom/src/components/FixtureSet.js
yangshun/react
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { title: PropTypes.node.isRequired, description: PropTypes.node.isRequired, }; class FixtureSet extends React.Component { render() { const {title, description, children} = this.props; return ( <div> <h1>{titl...
src/library/validations/components/Select.js
zdizzle6717/universal-react-movie-app
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import defaultValidations from '../constants/defaultValidations' import classNames from 'classnames'; import FormActions from '../actions/FormActions'; import FormStore from '../stores/FormStore'; export default class Select extends React.Comp...
client/analytics/components/pages/overview/assetReport/AssetSummary.js
Haaarp/geo
import React from 'react'; import {connect} from 'react-redux'; import FormWrap from 'konux/common/components/FormWrap'; import Block from './../../../partials/Block'; import SingleInfoIndicatorContainer from './../../../partials/indicators/SingleInfoIndicatorContainer'; import { translate } from 'react-i18next'; cl...
src/utils/typography.js
mattdell/coinmarketwatch
/* eslint-disable */ import ReactDOM from 'react-dom/server'; import React from 'react'; import Typography from 'typography'; import CodePlugin from 'typography-plugin-code'; import { MOBILE_MEDIA_QUERY } from 'typography-breakpoint-constants'; const options = { baseFontSize: '18px', baseLineHeight: 1.45, scaleR...
src/pages/resume/components/preface.js
dan9186/danielhess.me
import React from 'react' import styled from 'styled-components' import { Section } from '../../../components/grid' export const Preface = ({ preface }) => ( <Section> <Content>{preface}</Content> </Section> ) const Content = styled.div` display: flex; flex-flow: row wrap; margin-top: ${({ theme }) => ...
src/components/Publish/components/type_tabs/index.js
dloa/alexandria-librarian
import React from 'react'; import ExtraDrop from '../drop_zones/extra'; import MusicTab from './music'; export default React.createClass({ getTab(){ switch (this.props.selectedType) { case 'music': return <MusicTab/>; break; } }, render...
src/svg-icons/editor/border-right.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderRight = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h...
node_modules/react-bootstrap/es/MediaList.js
Technaesthetic/ua-tools
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 ...
components/spinner/spinner.js
Travix-International/travix-ui-kit
import classnames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { getClassNamesWithMods, warnAboutDeprecatedProp } from '../_helpers'; /** * General Spinner component. */ function Spinner(props) { warnAboutDeprecatedProp(props.mods, 'mods', 'className'); const { classN...
src/components/Title.js
roycejewell/flux-ui-example
import React, { Component } from 'react'; class Title extends Component { render() { return ( <h1 className={`title title--${this.props.type}`}>{this.props.children}</h1> ); } } export default Title;
packages/example-phone/src/scripts/components/call/media-status.js
glhewett/spark-js-sdk
import React from 'react'; export default function MediaStatus({audioDirection, videoDirection}) { return ( <table> <tbody> <tr> <td>audio:</td> <td className="audio-direction">{audioDirection}</td> </tr> <tr> <td>video:</td> <td className="vi...
src/components/Feedback/Feedback.js
ademuk/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
test/componentsMock.js
michaltakac/mathworldvr
import React from 'react' import PropTypes from 'prop-types' module.exports = new Proxy({}, { get: (target, property) => { const Mock = (props) => <a-entity>{props.children}</a-entity> Mock.displayName = property Mock.propTypes = { children: PropTypes.any, } return Mock }, })
src/icons/Folder.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Folder extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M430.1,192H81.9c-17.7,0-18.6,9.2-17.6,20.5l13,183c0.9,11.2,3.5,20.5,21.1,20.5h316.2c18,0,20.1-9.2,21.1-20.5l12.1-185....
node_modules/react-router/es6/RouteUtils.js
gurusewak/react101
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 React from 'react'; function isValidChild(object) { ...
actor-apps/app-web/src/app/components/JoinGroup.react.js
hzy87email/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
src/svg-icons/av/skip-previous.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipPrevious = (props) => ( <SvgIcon {...props}> <path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/> </SvgIcon> ); AvSkipPrevious = pure(AvSkipPrevious); AvSkipPrevious.displayName = 'AvSkipPrevious'; AvSkipPrevious.mu...
imports/ui/pages/Admin/Suppliers/NewSupplier/NewSupplier.js
haraneesh/mydev
import React from 'react'; import PropTypes from 'prop-types'; import SupplierEditor from '../../../../components/SupplierEditor/SupplierEditor'; const NewSupplier = ({ history }) => ( <div className="NewSupplier"> <h2 className="page-header">New Supplier</h2> <SupplierEditor history={history} /> </div> );...
app/packs/src/components/qc/components/substance/BlockIr.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import { Panel, Alert } from 'react-bootstrap'; import QcMolView from '../helper/qc_mol_view'; import { iconByMargin } from '../helper/icon'; import { tableIr } from '../helper/ir'; const emptyBlock = () => ( <div className="card-qc"> <h5> <sp...
chapter-11/react_router_chunked/src/pages/NotFound.js
mocheng/react-and-redux
import React from 'react'; const NotFound = () => { return ( <div>404: Not Found</div> ); }; export default NotFound;
client/main.js
hr-memories/TagMe
import Exponent from 'exponent'; import React from 'react'; import Login from './login'; import Homescreen from './homescreen'; import Memory from './memory'; import Memories from './memories'; import { Navigator } from 'react-native'; class App extends React.Component { renderScene(route, navigator) { if (rou...
ui/src/pages/SettingsStoresPage/index.js
LearningLocker/learninglocker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withProps, compose } from 'recompose'; import { withModels } from 'ui/utils/hocs'; import { fromJS } from 'immutable'; import { queryStringToQuery, modelQueryStringSelector } from 'ui/redux/modu...
docs/components/App/index.js
WEACOMRU/react-giphy-select
import React, { Component } from 'react'; import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/dist/light'; import bash from 'react-syntax-highlighter/dist/languages/bash'; import javascript from 'react-syntax-highlighter/dist/languages/javascript'; import tomorrowNightEighties from 'react-synt...
js/pages/HomePage.js
KissLuckystar/HotelMarketingApp
/** * 主页 * @flow * Created by smk on 2017/2/23 */ import React, { Component } from 'react'; import { StyleSheet, Image, View, BackAndroid, ToastAndroid } from 'react-native'; //react-native导航条组件 import TabNavigator from 'react-native-tab-navigator'; import MainPage from './MainPage'; //第一页主导航 ...
examples/src/components/Contributors.js
mcls/react-select
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
src/app/components/DatePickerExampleSimple.js
leoliew/react-webpack-example
/** * Created by leoliew on 2016/11/28. */ import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import ShowCaseCard from './ShowCaseCard'; /** * The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`. * You can also disable the Dialog passing `true` to ...
src/components/FunctionBox.js
piecewisecss/piecewisecss.github.io
import React from 'react'; import { WindowResizeListener } from 'react-window-resize-listener' WindowResizeListener.DEBOUNCE_TIME = 20; export default class FunctionBox extends React.Component{ constructor(props){ super(props); this.state = { width: window.innerWidth }; } render(){ // console.log('st...
packages/material-ui-icons/src/Compare.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Compare = props => <SvgIcon {...props}> <path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /> </SvgIcon>; Compare = ...
examples/websdk-samples/LayerReactNativeSample/src/LoginDialog.js
layerhq/layer-js-sampleapps
import React, { Component } from 'react'; import { StyleSheet, View, Modal, Text, TouchableOpacity, Image, TextInput } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; export default class LoginDialog extends Component { constructor(props) { super(props); this....
packages/mineral-ui-icons/src/IconDomain.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconDomain(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}>...