path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/image/filter-4.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter4 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14...
actor-apps/app-web/src/app/components/common/Document.react.js
stonegithubs/actor-platform
import React from 'react'; import classnames from 'classnames'; class Document extends React.Component { static propTypes = { content: React.PropTypes.object.isRequired, className: React.PropTypes.string }; constructor(props) { super(props); } render() { const { content, className } = this....
site/components/StaticHTMLBlock.js
srajko/react-dnd
import React from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas separated by Markdown <hr>s into ...
example/src/screens/types/tabs/TabOne.js
eeynard/react-native-navigation
import React from 'react'; import {View, Text} from 'react-native'; class TabOne extends React.Component { render() { return ( <View> <Text>Tab One</Text> </View> ); } } export default TabOne;
blueprints/route/files/src/routes/__name__/components/__name__.js
youdeshi/single-page-app-best-practice-client
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h4><%= pascalEntityName %></h4> </div> ) export default <%= pascalEntityName %>
httpdocs/theme/react/hooks-app/opendesktop-home/function/IntroductionDetailPersonal.js
KDE/ocs-webserver
import React from 'react'; function IntroductionDetailPersonal(props){ return( <div className="detail-personal detail"> <span class="arrow-down"></span> <div className="icon-container"> <a href="https://cloud.opendesktop.org/"> <div className="icon"></div> </a> </div> ...
src/views/np/NPRow.js
bostontrader/senmaker
// @flow import React from 'react' import {validateNP} from '../../data/Validator' //import NP from '../../data/np/NP' import NPActions from '../../data/np/NPActions' function NPRow(props:Object):Object { let {np} = props validateNP(np) const onClickEditNP = () => NPActions.onClickEditNP(np) ...
node_modules/react-router/es6/Route.js
signalcat/UIportfolio
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...
pootle/static/js/admin/components/AdminController.js
phlax/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import Backbone from 'backbone'; import $ from 'jquery'; i...
src/about/index.js
thiagodebastos/react-future-stack
import React from 'react'; import Layout from '../../components/Layout'; import { title, html } from './index.md'; class AboutPage extends React.Component { componentDidMount() { document.title = title; } render() { return ( <Layout> <h1>{title}</h1> <div // eslint-disabl...
src/components/portfolio-header.js
relwiwa/fcc-portfolio-page
import React from 'react'; import '../styles/portfolio-header.scss'; class PortfolioHeader extends React.Component { constructor(props) { super(props); this.state = { showNavigation: false }; } toggleNavigation() { this.setState({ showNavigation: !this.state.showNavigation }); ...
src/components/FuelSavingsResults.js
pagepress/pagepress
import React from 'react'; import PropTypes from 'prop-types'; import NumberFormatter from '../utils/numberFormatter'; // This is a stateless functional component. (Also known as pure or dumb component) // More info: https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html#stateless-functional-components // A...
actor-apps/app-web/src/app/components/common/Banner.react.js
Havi4/actor-platform
import React from 'react'; import BannerActionCreators from 'actions/BannerActionCreators'; class Banner extends React.Component { constructor(props) { super(props); if (window.localStorage.getItem('banner_jump') === null) { BannerActionCreators.show(); } } onClose = () => { BannerActionC...
src/components/common/apiConsole/SwaggerContainer.js
mitmedialab/MediaCloud-Web-Tools
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SwaggerUi from 'swagger-ui-react'; import 'swagger-ui-react/swagger-ui.css'; class SwaggerContainer extends Component { componentDidMount() { const { user } = this.props; console.log(us...
app/scripts/components/IsLoggedIn/IsLoggedIn.js
toddhb/Time_Card_Viewer
/* * TimeCard View * Copyright ©2015 Thomas Nelson, Jacob Nichols, David Opp, Todd Brochu, Andrew McGown, Sasha Fahrenkopf, Cameron B. White. * * This source code is licensed under the MIT license found in the * LICENSE text file in the root directory of this source tree. */ import React from 'react'; import Flux...
packages/reactor-boilerplate/src/About/About.js
sencha/extjs-reactor
import React from 'react'; import { Container } from '@extjs/ext-react'; export default function About() { return ( <Container padding="20"> <h1>About this App</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget leo sed mi imperdiet dictum a id turpis. Suspe...
src/hoc/withLikeCounter.js
rlesniak/tind3r.com
// @flow import React, { Component } from 'react'; import { observable, action } from 'mobx'; import { observer } from 'mobx-react'; import { CurrentUser } from 'models/CurrentUser'; import counterService from 'services/counterService'; type PropsType = { currentUser: CurrentUser, }; export type WithLikeCounterP...
app/components/Subtitle/index.js
JSSolutions/Perfi
import React from 'react'; import T from 'prop-types'; import { StyleSheet, View, ViewPropTypes } from 'react-native'; import { fontSizes, dimensions, colors, fontWeights } from '../../styles'; import { Text, Value } from '../../components'; import { formatDateForSubtitle } from '../../utils/dateHelpers'; const styles...
examples/fiber/debugger/src/App.js
rlugojr/react
import React, { Component } from 'react'; import Draggable from 'react-draggable'; import ReactNoop from 'react-noop-renderer'; import ReactFiberInstrumentation from 'react-noop-renderer/lib/ReactFiberInstrumentation'; import Editor from './Editor'; import Fibers from './Fibers'; import describeFibers from './describeF...
packages/material-ui-icons/src/Filter9Plus.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c...
src/js/components/app-navigation-component.js
dashukin/StyleMe
'use strict'; import React from 'react'; import AppActions from '../actions/actions'; import FlatButton from 'material-ui/FlatButton'; class NavigationComponent extends React.Component { constructor (props) { super(props); } render () { let buttonStyles = {width: '50%', textTransform: 'none'}; return (...
src/components/projectForm/index.js
codyloyd/teamup
import React from 'react' import {browserHistory} from 'react-router' const ProjectForm = ( { onSubmit, currentUser, project = { name: '', summary: '', description: '', tags: '' }, buttonLabel = 'Create Project' } ) => { let name, summary, description, tags return ( ...
frontend/src/components/FeedPhoto/presenter.js
plusbeauxjours/nomadgram
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.scss'; import PhotoActions from 'components/PhotoActions'; import PhotoComments from "components/PhotoComments"; import TimeStamp from 'components/TimeStamp'; import CommentBox from 'components/CommentBox'; import { Link } from ...
example/src/widgets/TextRenderer.js
rsamec/react-designer-core
import React from 'react'; import styleFont from './utils/font'; let TextRenderer = (props) => { var style = props.style || {}; styleFont(style, props.font); //size if (props.height) style.height = props.height; if (props.width) style.width = props.width; return ( <span style={style}>{props.content}</spa...
stories/ToggleButton.js
Bandwidth/shared-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import ToggleButton from 'components/ToggleButton'; import Horizontal from 'layouts/Horizontal'; storiesOf('ToggleButton', module).add('types', () => ( <React.Fragment> <h2>Standard</h2> ...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleSectionProps.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const sections = [ { content: 'Home', link: true }, { content: 'Search', active: true }, ] const BreadcrumbExampleSectionProps = () => ( <Breadcrumb sections={sections} /> ) export default BreadcrumbExampleSectionProps
src/icon.js
jaketrent/react-social-icons
import PropTypes from 'prop-types' import React from 'react' import { iconFor } from './networks.js' import { socialSvgContent } from './styles.js' function getStyle({ fgColor }) { return { ...socialSvgContent, fill: fgColor || 'transparent' } } function Icon({ fgColor, networkKey, ...props }) { return ...
codes/reactstrap-demo/src/containers/Simple/Simple.js
atlantis1024/react-step-by-step
import React, { Component } from 'react'; class Simple extends Component { render() { return ( <div className="app flex-row align-items-center"> {this.props.children} </div> ); } } export default Simple;
src/js/components/Dashboard/SectionLayoutForm/index.js
grommet/grommet-cms-boilerplate
/* @flow */ import React from 'react'; import Layer from 'grommet/components/Layer'; import Form from 'grommet/components/Form'; import FormFields from 'grommet/components/FormFields'; import FormField from 'grommet/components/FormField'; import Footer from 'grommet/components/Footer'; import Button from 'grommet/compo...
src/views/components/stockTable/index.js
raycent/ARWM_Exercise_Redux
import React from 'react'; import { AutoSizer, Column, Table } from 'react-virtualized'; export const StockTable = ({data}) => { const tableData = data.map(datePoint => ({ key: datePoint[0], date: datePoint[0], adjClose: `$${datePoint[1].toFixed(2)}` })).reverse(); return ( <AutoSizer> {(...
js/components/Home/Body.js
scaphold-io/react-relay-starter-kit
import React from 'react'; import Relay from 'react-relay'; import {Row, Col, Button} from 'react-bootstrap'; import Description from '../App/Description'; import FontAwesome from 'react-fontawesome'; class Body extends React.Component { render() { const user = JSON.parse(localStorage.getItem('user')); const...
frontend/src/pages/ContactPage.js
jirkae/BeerCheese
import React from 'react'; export default class ContactPage extends React.Component { render() { return ( <div> Contact us </div> ); } }
app/javascript/mastodon/features/followers/index.js
WitchesTown/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchAccount, fetchFollowers, expandFollowers, } from '../../actions/account...
packages/daheim-app-ui/src/components/Panel.js
daheim/daheim-app
import React from 'react' export default class Panel extends React.Component { static propTypes = { style: React.PropTypes.object, children: React.PropTypes.node }; render () { return ( <div style={Object.assign({background: 'rgba(255,255,255,0.9)', borderRadius: 6, padding: 20, paddingTop: 1...
examples/profile-cards-primitives/src/main.js
weaintplastic/react-sketchapp
import React from 'react'; import { render } from 'react-sketchapp'; import { Text, View } from 'react-primitives'; import type { User } from './types'; import { fonts, spacing } from './designSystem'; import Profile from './components/Profile'; import Space from './components/Space'; import DATA from './data'; const ...
installer/frontend/trail.js
erjohnso/tectonic-installer
import _ from 'lodash'; import React from 'react'; import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable'; import { commitPhases } from './actions'; import { PLATFORM_TYPE, DRY_RUN } from './cluster-config'; import { CertificateAuthority } from './components/certificate-authority'; import { ClusterType ...
src/components/TopAlbums.js
glennwedin/statisfy
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import ReactListScroll from 'reactlistscroll'; //import ReactListScroll from './scrolltest'; class TopAlbums extends React.Component { constructor(props) { super(props); this.state = { } } goTo...
src/client/components/logo/Logo.js
flute-io/flagshipped-io-app
import React from 'react' import Component from '../component/Component' import rocket from '../../assets/icons/rocket.svg' import SVG from 'react-svg' import './Logo.scss' export default class Logo extends React.Component { render () { return ( <Component class="Logo" {...this}> <SVG path={rocke...
shared/routes.js
johnny88/irisCookingBlog
import React from 'react'; import App from './container/App'; import { Route, IndexRoute } from 'react-router'; import HomePage from './container/HomePage/HomePage'; import PostDetailView from './container/PostDetailView/PostDetailView'; import PostContainer from './container/PostContainer/PostContainer'; const routes...
frontend/src/Settings/ImportLists/ImportLists/EditImportListModalContentConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { saveImportList, setImportListFieldValue, setImportListValue, testImportList } from 'Store/Actions/settingsActions'; import createProviderSettingsSelect...
packages/icon-build-helpers/src/builders/react/next.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2019, 2019 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const t = require('@babel/types'); const { default: generate } = require('@babel/generator'); const { default: template } = re...
src/components/Navigation/Navigation.js
kkdubey/gauri
/** * 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';...
docker-react-web-app/src/components/gridCell.js
garrettgraber/galaxy-map
import React from 'react'; import { Provider, connect } from 'react-redux'; import { displaySystems } from '../actions/mapActions.js'; var GridRectangle = { fill: "none", stroke: "#49fb35", opacity: 0.1, strokeWidth: 1 }; var GridRectangleMouseover = { /*fill-opacity: 1.0;*/ opacity: 0.5, strokeWidth...
src/router/NewProductNavigation.js
thrifty-p2p/thrifty-client
import React from 'react'; import {StackNavigator} from 'react-navigation' import NewProductPhotoPicker from '../components/NewProductPhotoPicker'; import NewProductForm from '../components/NewProductForm'; const NewProductNavigation = StackNavigator({ NewProductPhotoPicker: { screen: NewProductPhotoPicker, ...
examples/js/manipulation/multi-search-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries', 'cherries' ]; for (let i =...
src/svg-icons/av/skip-previous.js
matthewoates/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...
components/send-button.js
jaghit/ecc
import React, { Component } from 'react'; import { StyleSheet, Text, View, TextInput, Image, TouchableHighlight } from 'react-native'; export default class SendButton extends Component { render() { return ( <TouchableHighlight onPress={this.props.onPress}> ...
app/screens/containers/seller/order-refund-refuse.js
yiyinsong/react-native-example-jdh
import React, { Component } from 'react'; import { View, Text, TextInput, ScrollView, Image, Picker, TouchableHighlight, InteractionManager, DeviceEventEmitter } from 'react-native'; import styles from '../../../css/styles'; import UIToast from '../../common/ui-toast'; import Config from '../../../co...
app/javascript/mastodon/features/compose/components/search.js
vahnj/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
mxcube3/ui/components/Tasks/Helical.js
marcus-oscarsson/mxcube3
import React from 'react'; import { connect } from 'react-redux'; import { reduxForm, formValueSelector } from 'redux-form'; import { Modal, Button, Form, Row, Col, ButtonToolbar } from 'react-bootstrap'; import { DraggableModal } from '../DraggableModal'; import validate from './validate'; import warn from './warnin...
src/svg-icons/content/text-format.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentTextFormat = (props) => ( <SvgIcon {...props}> <path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/> </SvgIcon> ); ContentTextFormat = pure(C...
components/apiTemplate.js
waigo/waigo.github.io
import _ from 'lodash'; import path from 'path'; import React from 'react'; import { Link } from 'react-router'; import HtmlToReact from 'html-to-react'; import DocumentTitle from 'react-document-title'; import Classnames from 'classnames'; import { config } from 'config'; import UrlUtils from '../utils/url'; import He...
node_modules/@material-ui/core/esm/Checkbox/Checkbox.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import SwitchBase from '../internal/SwitchBase'; import CheckBoxOutlineBlankIcon from '../...
src/Dialog/DialogTitle.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import Typography from '../Typography'; export const styles = (theme: Object) => ({ root: { margin: 0, padding: `${theme.spacing.unit * 3}px ${them...
app/components/ShopLink.js
stratigos/stormsreach
/****************************************************************************** * Reusable component for linking to an Shop page. If Shop has no `id` * property, display name as text or passed child JSX instead. ******************************************************************************/ import React from 'reac...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
xiaotaijun/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import classnames from '...
src/components/PostIt/PostIt.js
arvigeus/studentlife
import React from 'react'; import { Link } from 'react-router'; import s from './PostIt.css'; export default function() { return ( <div className={s.root}> <i className={s.pin} /> <p> Запишете се за менторска среща с квалифициран преподавател по EQ, в която ще имате възможност да си н...
src/components/App.js
mehmettugrulsahin/cotd-react-es6
import React from 'react'; import Header from './Header'; import Order from './Order'; import Inventory from './Inventory'; import sampleFishes from '../sample-fishes'; import Fish from './Fish'; import base from '../base'; class App extends React.Component { static propTypes = { params: React.PropTypes.object.i...
src/components/views/rooms/ForwardMessage.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Vector Creations Ltd Copyright 2017 Michael Telatynski 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 applic...
src/components/VerticalNavigation/VerticalNavigationSection.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const VerticalNavigationSection = (props) => { const { children, className, id, title, ...rest } = props; const sldsClasses = ['slds-nav-vertical__section', className]; const renderChild = child =>...
src/chat/ui/group/SearchListView.js
elarasu/roverz-chat
// /** // * PhotoBrowser Screen // */ // import React, { Component } from 'react'; // import { List, ListItem } from 'react-native-elements'; // import { ListView } from 'realm/react-native'; // import { // ScrollView, // StatusBar, // View, // } from 'react-native'; // import PropTypes from 'prop-types'; // /...
docs/src/app/AppRoutes.js
skarnecki/material-ui
import React from 'react'; import { Route, Redirect, IndexRoute, } from 'react-router'; // Here we define all our material-ui ReactComponents. import Master from './components/Master'; import Home from './components/pages/Home'; import Prerequisites from './components/pages/get-started/Prerequisites'; import In...
node_modules/react-bootstrap/es/FormControlStatic.js
skinsshark/skinsshark.github.io
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/cards/card.js
govau/service-manual
import PropTypes from 'prop-types'; import React from 'react'; /** * The card component * * @disable-docs */ const Card = ({ link, background, image, headline, text, cta, preheadline, noCta }) => { if( image ) { image = image.startsWith('http') ? image : `/assets/img/${ image }`; } function renderCta() { ...
blueocean-material-icons/src/js/components/svg-icons/av/video-call.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvVideoCall = (props) => ( <SvgIcon {...props}> <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"/> </SvgIcon> ); AvVideoCall.displayName = 'AvVi...
src/App.js
noraeb/tictactoe
import React from 'react'; import GameModel from './models/GameModel'; import NewGameComponent from './components/NewGameComponent'; import GameListComponent from './components/GameListComponent'; import NewPlayerComponent from './components/NewPlayerComponent'; import BoardComponent from './components/BoardComponent';...
client/src/containers/hub/HubCreateDialog.js
JasonProcka/venos
// // --- Imports ---- // // // >>> React // import React from 'react'; // import ReactDOM from 'react-dom'; // import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; // // // >>> Redux // import {Field, reduxForm} from 'redux-form'; // import {connect} from 'react-redux'; // import {bindActionCreator...
src/components/case-study/single/templates/syfy/sharknado.js
adrienhobbs/redux-glow
import React from 'react'; import BaseTemplate from '../base-study-template'; import AboutSection from '../../../content-modules/about.js'; export class Sharknado extends BaseTemplate { static propTypes = { data: React.PropTypes.object }; constructor (props) { super(props); } render () { const co...
client/public/src/views/NewApp/DeploymentPlans.js
openview2017/openview
import React from 'react' import { Link } from 'react-router' import { ButtonArea } from './Util' import Slider from 'react-slick' import NewAppStore from '../../stores/NewAppStore' import * as NewAppActions from '../../actions/NewAppActions' import axios from 'axios' import HttpUtil from '../../utils/http' import { Mo...
docs/src/app/components/pages/components/List/Page.js
rhaedes/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import listReadmeText from './README'; import listExampleSimpleCode from '!raw!....
src/svg-icons/image/filter-hdr.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterHdr = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageFilterHdr = pure(ImageFilterHdr); ImageFilterHdr.displayName...
src/presentation/components/app-routes.component.js
vilellaj/tweet-sense
import React from 'react'; import { Router, browserHistory } from 'react-router'; import routes from '../routes'; export default class AppRoutes extends React.Component { render() { return ( <Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo(0, 0)}/> ); } }
tests/baselines/reference/jsxDeclarationsWithEsModuleInteropNoCrash.js
minestarks/TypeScript
//// [jsxDeclarationsWithEsModuleInteropNoCrash.jsx] /// <reference path="/.lib/react16.d.ts" /> import PropTypes from 'prop-types'; import React from 'react'; const propTypes = { bar: PropTypes.bool, }; const defaultProps = { bar: false, }; function Foo({ bar }) { return <div>{bar}</div>; } Foo.propTypes = ...
src/resources/assets/react-app/components/PreHeader.js
z5internet/ruf
import React, { Component } from 'react'; class PreHeader extends Component { render() { return null; } } export default PreHeader;
ajax/libs/react-instantsearch/4.4.2/Dom.js
extend1994/cdnjs
/*! ReactInstantSearch 4.4.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
client/routes.js
Cathje/KLP
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules/App/App'; // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps, callback) { callback(require); }; }...
src/sheetElems/textAnswer/ActiveInput.js
lukaszmakuch/quiz
import React from 'react'; import Tpl from './../ActiveAnswerInputTpl'; import TextField from 'material-ui/TextField'; // props: given, onChange, expected export default class extends Tpl { constructor(props) { super(props); this.inputRef = React.createRef(); } emptyAnswer() { return { type: ...
src/main.js
SimoNonnis/react-redux-saga
import React from 'react'; import { render } from 'react-dom'; import { Provider, connect } from 'react-redux'; import * as actionCreators from './actions/actionCreators'; import { bindActionCreators } from 'redux'; import store from './store'; import App from './components/App'; const mapStateToProps = (state) => (...
fields/types/date/DateFilter.js
davibe/keystone
import _ from 'underscore'; import classNames from 'classnames'; import React from 'react'; import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; const MODE_OPTIONS = [ { lab...
src/components/Top/Title.js
ens-bid/ens-bid-dapp
import React from 'react'; import Typography from 'material-ui/Typography'; import './Title.css'; export const Title = (props) => ( <Typography type="title" color="inherit" align="left" className="Title"> <span className="Title-name" onClick={() => props.backToSearch()}>ENS.BID</span> </Typography> );
src/components/AddNew.js
rafaelkyrdan/relay-app
import React from 'react' import {Link} from 'react-router' import classes from './AddNew.css' export default class AddNew extends React.Component { render () { return ( <Link to='/create' className={classes.link}> <div className={classes.page}> <div className={classes.plus}> ...
pootle/static/js/admin/components/Project/ProjectEdit.js
r-o-b-b-i-e/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import ProjectForm from './Pro...
App/ui/components/FBCommentsBox.js
nthbr/mamasound.fr
/* * Copyright (c) 2017. Caipi Labs. All rights reserved. * * This File is part of Caipi. You can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. ...
app/components/kitchen/Kitchen.js
restoko/restoko-desktop-app
import React, { Component } from 'react'; import ProductCard from './ProductCard'; import { API_URL } from '../../api/apiconfig'; import axios from 'axios'; export default class Kitchen extends Component { state = { pendingOrders: [] }; getPendingOrders = () => { axios({ url: A...
frontend/src/Components/Form/TagSelectInputConnector.js
Radarr/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import TagInput from './TagInput'; function createMapStateToProps() { return createSelector( (state, { value }) => value, (st...
es/Table/TableCell.js
uplevel-technology/material-ui-next
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/containers/DemoNotice.js
ayastreb/money-tracker
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Message, Button } from 'semantic-ui-react'; import { isDemoUser } from 'features/user/state/User.selector'; class DemoNotice extends React.Component { render() { if (!this.props.isVisible) return null; ...
src/index.js
bobrown101/tau-tag
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; // import thunk from 'redux-thunk'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore} from 'react-router-redux'; import routes from './routes'; im...
fields/types/textarea/TextareaField.js
alobodig/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from '../../../admin/client/App/elemental'; module.exports = Field.create({ displayName: 'TextareaField', statics: { type: 'Textarea', }, renderField () { const { height, path, style, value } = this.props; const styles = { heig...
public/src/containers/products/ProductTable.js
andy1992/react-redux-crud
import React from 'react'; import ProductRow from '../../components/products/ProductRow'; import { Link, browserHistory } from 'react-router'; import { connect } from 'react-redux'; import { selectAllProduct, selectAllProductFailed, selectAllProductSuccess, addSelectedProduct, removeSelectedProduct,...
src/svg-icons/editor/border-vertical.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderVertical = (props) => ( <SvgIcon {...props}> <path d="M3 9h2V7H3v2zm0-4h2V3H3v2zm4 16h2v-2H7v2zm0-8h2v-2H7v2zm-4 0h2v-2H3v2zm0 8h2v-2H3v2zm0-4h2v-2H3v2zM7 5h2V3H7v2zm12 12h2v-2h-2v2zm-8 4h2V3h-2v18z...
app/modules/layout/components/DefaultLayout/index.js
anton-drobot/frontend-starter
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { bem } from 'app/libs/bem'; import Header from 'app/modules/layout/components/Header'; import Footer from 'app/modules/layout/components/Footer'; const b = bem('DefaultLayout'); @observer export default class DefaultLayout exte...
src/App.js
Va5s0/fuel-calculator
import React, { Component } from 'react'; import './App.css'; import TextInput from './Components/TextInput'; import Output from './Components/Output'; import Grid from 'react-bootstrap/lib/Grid'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; class App extends Component { cons...
example/examples/AnimatedMarkers.js
hzdg/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, Animated, } from 'react-native'; import MapView from 'react-native-maps'; const screen = Dimensions.get('window'); const ASPECT_RATIO = screen.width / screen.height; const LATITUDE = 37.78825; const LONGITUDE = -122...
src/demo.js
ZeroCho/react-rte
import React from 'react'; import ReactDOM from 'react-dom'; import EditorDemo from './EditorDemo'; document.addEventListener('DOMContentLoaded', () => { let rootNode = document.createElement('div'); document.body.appendChild(rootNode); ReactDOM.render( <EditorDemo />, rootNode, ); });
src/layouts/index.js
Outfitio/breakfast-series-landing
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import defaultIcon from '../static/images/default.png' import wide from '../static/images/tile-wide.png' import tile from '../static/images/tile.png' import icon from '../static/images/icon.png' const TemplateWrapper = ({ ch...
src/main/js/builder/sponsors/containers/SponsorNameInput.js
Bernardo-MG/dreadball-toolkit-webpage
import React from 'react'; import PropTypes from 'prop-types'; import FormField from 'grommet/components/FormField'; import TypingStopInput from 'components/TypingStopInput'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { setSponsorName } from 'builder/actions'; import...
samples/react/app/components/IssueIcon/index.js
IntelliSearch/search-client
import React from 'react'; import PropTypes from 'prop-types'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className}> <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1...
packages/vulcan-core/lib/modules/containers/withCurrentUser.js
SachaG/Gamba
import React, { Component } from 'react'; import { getFragment } from 'meteor/vulcan:lib'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; const withCurrentUser = component => { return graphql( gql` query getCurrentUser { currentUser { ...UsersCurrent ...
app/src/Video/components/Video.js
rmonnier/hypertube
import React, { Component } from 'react'; import { injectIntl } from 'react-intl'; import axios from 'axios'; import Loader from '../../General/components/Loader'; class Video extends Component { state = { status: 'start', progress: 0, trackFr: null, trackEn: null, error: '0', }; componentDidMount() { ...