path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/report/components/status_check_box.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
razorchess-react/examples/src/app.js
blank-blank/razorchess
require('./app.less'); import React, { Component } from 'react'; import Examples from './Examples'; class App extends Component { render() { return ( <div> <h1 className="header">react-chessboard</h1> <Examples /> </div> ); } } React.render(<App />, document.getElementById('ap...
src/svg-icons/action/accessibility.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
admin/client/views/item.js
Ftonso/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import Columns from '../columns'; import Lists from '../stores/Lists'; import CreateForm from '../components/CreateForm'; import EditForm from '../components/EditForm'; import EditFormHeader from '../components/EditFormHeader'; import FlashMessages from '../c...
src/server.js
Boelensman1/championpick2
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
app/javascript/mastodon/features/reblogs/index.js
hugogameiro/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs ...
src/App.js
qianjiahao/webpack-babel-react-development-tools
import React, { Component } from 'react'; import './styles/common.css'; import './styles/font.css'; export default class App extends Component { render() { return ( <div className="container"> <h1>Start Your Project</h1> <i className="material-icons md-36">face</i> </div> ) } }...
src/svg-icons/action/description.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDescription = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/> </SvgIcon> ); A...
docs/src/app/components/pages/get-started/Installation.js
IsenrichO/mui-with-arrows
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import installationText from './installation.md'; const Installation = () => ( <div> <Title render={(previousTitle) => `Installation - ${previousTitle}`} /> <MarkdownElement text={insta...
src/svg-icons/communication/contact-mail.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactMail = (props) => ( <SvgIcon {...props}> <path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3...
components/ParticipantArea.js
pigflymoon/geo-app
import React from 'react'; export default class ParticipantArea extends React.Component { constructor(props) { super(props); } renderUserNumbersArea() { // Display the welcome message let number = this.props.userNumbers; var message = "Welcome to Socket.IO Chat – "; ...
src/components/TicketList/Ticket/Heading/index.js
sdwvit/coding-challenge-frontend-b
import React from 'react'; import { string, number, func } from 'prop-types'; import './style.scss'; import { Layout, Header } from '../../../'; function getHoursMins(date) { return date.toLocaleString('en-us', { hour: '2-digit', minute: '2-digit', }); } function getDaysDiff(date, duration) { return parseInt(...
src/App.js
porterjamesj/goodreads-vis
import React from 'react'; import { Route } from 'react-router'; import { HashRouter } from 'react-router-dom'; import Q from 'q'; import Prolyfill from 'prolyfill'; import 'whatwg-fetch'; import PlotManager from './PlotManager'; Prolyfill(Q); function App(props) { return ( <div className="big-container">...
docs/client/components/pages/NotFound/index.js
dagopert/draft-js-plugins
import React from 'react'; const NotFound = () => ( <div>Page not Found :(</div> ); export default NotFound;
imports/ui/components/EditorialTeam/EditorialTeam.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, FormGroup, ControlLabel, Button , Alert , Label } from 'react-bootstrap'; import { Capitalize , capAllFirstLetter , subtractMe } from '../../../modules/utilities'; import { Meteor } from 'meteor/meteor'; import { Random } from 'meteor/ra...
src/svg-icons/communication/stay-primary-landscape.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
src/parser/deathknight/shared/RuneTracker.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import SPELLS from 'common/SPELLS'; import { formatDuration, formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; imp...
src/app/App.js
watsonink/obscure-harbor-78183
import React, { Component } from 'react'; import 'normalize.css'; import styles from './App.css'; import AddButton from './addButton/AddButton.container' import Todos from './todos/Todos.container'; import Footer from './footer/Footer.container'; import Navigation from './navigation/Navigation.container'; class App ...
src/svg-icons/content/save.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSave = (props) => ( <SvgIcon {...props}> <path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/> </Svg...
ui/src/main/js/components/RoleList.js
apache/aurora
import React from 'react'; import { Link } from 'react-router-dom'; import Icon from 'components/Icon'; import Pagination from 'components/Pagination'; export default class RoleList extends React.Component { constructor(props) { super(props); this.state = { filter: props.filter, reverseSort: pro...
src/PhotoLayoutEditor/Container/index.js
RedgooseDev/react-photo-layout-editor
import React from 'react'; import { connect } from 'react-redux'; import classNames from 'classnames'; import * as actions from '../actions'; import Body from './Body'; import Side from './Side'; let ready = false; class Container extends React.Component { constructor(props) { super(props); this.el = n...
examples/with-goober/pages/_app.js
JeromeFitz/next.js
import React from 'react' import { prefix } from 'goober-autoprefixer' import { setup } from 'goober' // goober's needs to know how to render the `styled` nodes. // So to let it know, we run the `setup` function with the // `createElement` function and prefixer function. setup(React.createElement, prefix) export defa...
react/src/sui/CarouselComponent.js
ineffablep/simple-ui
import React from 'react'; import uuidV4 from 'uuid/v4'; class Carousel extends React.Component { constructor(props) { super(props); this.state = { currentSlide: 0 }; this.handleThumbClick = this.handleThumbClick.bind(this); this.handleArrowClick = this.handleArrowClick.bind(this);...
example/examples/CustomMarkers.js
Nabobil/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE...
js/components/Execute.js
gilesbradshaw/uaQL
// @flow 'use strict'; import React from 'react'; import Relay from 'react-relay'; import {createContainer} from 'recompose-relay'; import {compose, doOnReceiveProps} from 'recompose'; import DataValue from './DataValue'; import DataType from './DataType'; import observeMultiProps from './util/observeMultiProps'; i...
stories/Tooltip/Core/ExampleTheme.js
skyiea/wix-style-react
import React from 'react'; import {Tooltip} from 'wix-style-react'; import styles from './Example.scss'; export default () => <div> <Tooltip active placement="right" alignment="center" content="Dark Theme" showTrigger="custom" hideTrigger="custom" theme="dark"> <div className={styles.box}>Dark Theme</div>...
src/svg-icons/device/network-cell.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
src/js/ui/components/errorMessage.js
hiddentao/heartnotes
import React from 'react'; module.exports = React.createClass({ propTypes: { error: React.PropTypes.object.isRequired, }, render() { return ( <div className="error-message">{'' + this.props.error}</div> ); } });
app/javascript/mastodon/main.js
theoria24/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { setupBrowserNotifications } from './actions/notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = requ...
src/components/locator/api/Google/components/GoogleCurrentlocation.js
mgoodenough/estimator
'use strict'; /* * Module Definition * */ import React from 'react'; import { bindToEvent, camelize } from '../../../utils/index'; import { getReverseGeoCode } from '../utils/GoogleGeoCoder'; import GoogleGeoLocation from '../utils/GoogleGeoLocation'; /* * Class Definition * */ class GoogleCurrentlocation ext...
docs/app/Examples/modules/Rating/Types/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RatingTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Rating' description='A b...
tmeister/static/src/audit-trail/audit-trail.container.js
CanopyTax/toggle-meister
import React from 'react'; import AuditTrail from './audit-trail.component.js'; export default function AuditTrailContainer() { return ( <div style={{marginLeft: "56px", marginRight: '56px'}}> <h2> Audit trail </h2> <AuditTrail /> </div> ); }
examples/js/cell-edit/dbclick-to-edit-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/layouts/Layout.js
johatl/react-hot-boilerplate3
import React from 'react'; export default function Layout({ children }) { return ( <div> <h1 id="pageTitle">Hello, world!</h1> {children} </div> ) }
app/app.js
therealaldo/MacroManagement
'use strict'; // React import React from 'react'; import { Navigator, Text, View, StyleSheet, Alert } from 'react-native'; import { Router, Scene, Reducer, TabBar } from 'react-native-router-flux'; // Store w/ Redux import { Provider, connect } from 'react-redux'; import configureStore from './store/configure_store';...
frontend/src/Activity/Queue/Status/QueueStatusConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import PageSidebarStatus from 'Components/Page/Sidebar/PageSidebarStatus'; import { fetchQueueStatus } from 'Store/Actions/queueActions'; function createMapSta...
src/svg-icons/editor/format-underlined.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatUnderlined = (props) => ( <SvgIcon {...props}> <path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/> </SvgIcon> ); EditorF...
src/client/pages/tocheckitem.react.js
sljuka/bucka-portfolio
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; class ToCheckItem extends Component { static propTypes = { item: React.PropTypes.object.isRequired }; render() { return ( <li> <FormattedHTMLMessage message={...
src/components/flashcard/mode/quiz/fill_in_blank_questions.js
trihpham/flashcard-webapp
import React, { Component } from 'react'; import { saveAnswer } from '../../../../actions/quiz'; import { Message, Input } from 'semantic-ui-react'; import { connect } from 'react-redux'; import { FILL_IN_BLANK } from '../../../../constants/question_options'; import classNames from 'classnames'; class FillInBlankQuest...
scripts/app.js
sAbakumoff/FlashCards
import React from 'react'; import ReactDom from 'react-dom'; import App from './containers'; ReactDom.render(React.createElement(App(window.__initialstate__)), document.getElementById('app'));
src/routes/Processes/components/ProcessHeader.js
sljuka/buzzler-ui
import Radium from 'radium' import React from 'react' const ProcessHeader = (props) => { const { addProcessInstance, addProcessInstancePending, closeProcess, process } = props return ( <div> <div style={style.header}> <button style={style.buttonCloseProcess} ...
app/src/Frontend/libs/weui/components/panel/panel_header.js
ptphp/ptphp
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; export default class PanelHeader extends React.Component { render() { const {children, ...others} = this.props; const className = classNames({ weui_panel_hd: true }); return ...
packages/@vega/composer-tool/src/components/ComposerProvider.js
VegaPublish/vega-studio
import React from 'react' import PropTypes from 'prop-types' import {WithFormBuilderValue} from 'part:@lyra/form-builder' import schema from 'part:@lyra/base/schema' import {withRouterHOC} from 'part:@vega/core/router' import Editor from './Editor' import WithPointersAsMarkers from './WithPointersAsMarkers' import Comm...
src/components/Counter/Counter.js
iamakulov/Colr
import React from 'react'; import { connect } from 'react-redux'; import styles from './Counter.css'; const DumbCounter = ({ children, isVisible }) => <div className={isVisible ? styles.counterVisible : styles.counterInvisible}> {children} </div>; DumbCounter.propTypes = { children: React.PropTyp...
packages/bonde-admin/src/components/editor-draft-js/Toolbar/LinkControls/Link.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { Entity } from 'draft-js' const Link = ({ children, entityKey }) => { const { href, target } = Entity.get(entityKey).getData() return ( <a href={href} target={target}>{children}</a> ) } Link.propTypes = { entityKey: PropTypes.string.isR...
src/index.js
eUstundag/react_redux_skeleton
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
packages/material-ui-icons/src/ViewColumn.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ViewColumn = props => <SvgIcon {...props}> <path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z" /> </SvgIcon>; ViewColumn = pure(ViewColumn); ViewColumn.muiName = 'SvgIcon'; export default ViewC...
src/giraffe-ui/petition/details.js
MoveOnOrg/mop-frontend
import React from 'react' import { Link } from 'react-router' import PropTypes from 'prop-types' import CaretRightSvg from '../svgs/caret-right.svg' export const Details = ({ children }) => ( <div className='petition-details col-10 col-lg-12 my-5'> <div className='petition-details__content'>{children}</div> <...
src/components/Icon/RightArrow.js
tehkaiyu/bananas
import React from 'react'; function RightArrow() { return ( <svg version="1.1" className="icon-right" x="0px" y="0px" viewBox="78.8 13.45 6.15 13.05" xmlSpace="preserve" > <g> <path fill="#9AA7AF" d="M78.95,26.3c-0.2-0.2-0.2-0.5,0-0.7l4.6-...
app/components/AppLayout/AppLayout.js
eguneys/react-redux-todo-app
import React from 'react'; import { Link } from 'react-router'; import './_AppLayout.scss'; class AppLayout extends React.Component { render() { return ( <div className='page-container'> <nav> <ul> <li><Link to='/'>Home</Link></li> <li><Link to='/about'>About</Lin...
src/app/components/PlayerAssembled/Controls.js
vinodronold/fivefrets-next
import React from 'react' import glamorous from 'glamorous' import Button from '../html/Button' import PLAYER_STATUS from '../../constants/PlayerStatus' import { IsPlaying } from '../utils' const ControlContainer = glamorous.div({ margin: '1rem 0', display: 'flex', justifyContent: 'center', flexWrap: 'wrap', ...
src/components/ServerThumbnail.js
DanielDeychakiwsky/ReleaseDashboard
import React, { Component } from 'react'; import { Thumbnail, Button, Col } from 'react-bootstrap'; import ServerStatsModal from './ServerStatsModal'; import ModalActions from '../actions/ModalActions'; import { componentLogger } from '../utils/logger'; const componentName = 'ServerThumbnail'; class ServerThumbnail e...
app/components/Photos.js
licaon/progressive_app
import React from 'react'; const Photos = () => ( <div>Photos page</div> ); export default Photos;
server/sonar-web/src/main/js/apps/project-permissions/permissions.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
geonode/contrib/monitoring/frontend/src/components/cels/throughput/index.js
simod/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import styles from './styles'; class Throughput extends React.Component { static propTypes = { data: PropTypes.array.isRequired, } render() { let tota...
packages/material-ui-icons/src/SignalCellular0BarOutlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path fillOpacity=".3" d="M2 22h20V2L2 22z" /> , 'SignalCellular0BarOutlined');
src/components/NotFoundPage.js
yahorzhylinski/zhylinski-me-cliend-side
'use strict'; import React from 'react'; import { Link } from 'react-router'; export default class NotFoundPage extends React.Component { render() { return ( <div className="not-found"> <h1>404</h1> <h2>Page not found!</h2> <p> <Link to="/">Go back to the main page</Link>...
node_modules/react-router/es6/Redirect.js
danshapiro-optimizely/bandwidth
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
src/components/body/results.js
ericaporter/trending-hashtags
import React from 'react'; import SearchTwitter from './searchtwitter'; import Listings from './listings'; class Results extends React.Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-12"> <SearchTwitter /> <...
src/svg-icons/content/drafts.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDrafts = (props) => ( <SvgIcon {...props}> <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>...
examples/universal/common/components/Counter.js
gaearon/redux
import React from 'react' import PropTypes from 'prop-types' const Counter = ({increment, incrementIfOdd, incrementAsync, decrement, counter}) => ( <p> Clicked: {counter} times {' '} <button onClick={increment}>+</button> {' '} <button onClick={decrement}>-</button> {' '} <button onClick=...
client/src/components/TermsSnippetViewer.js
ViDA-NYU/domain_discovery_tool
// Filename: TermsSnippetViewer.js // Purpose: Showing snippets that belong to an specific term. // Author: Sonia Castelo (scastelo2@gmail.com) import React, { Component } from 'react'; import {scaleLinear} from 'd3-scale'; import {range} from 'd3-array'; import {select} from 'd3-selection'; import ReactFauxDom fro...
app/components/shared/page.js
7hci/surfboard
import React from 'react'; import { Form } from 'react-redux-form'; export default (props) => { const { model = 'form.none', onSubmit, header, content, buttons, spinner } = props; return ( <div className="page-wrapper"> <div className="page-container"> <div className="page-row"> <Form c...
docs/src/app/components/pages/components/Chip/Page.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import chipReadmeText from './README'; import ChipExampleSimple from './ExampleS...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
ajames72/MovieDBReact
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/svg-icons/av/forward-5.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward5 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1....
src/svg-icons/action/print.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPrint = (props) => ( <SvgIcon {...props}> <path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/> </...
src/mui/field/EmailField.js
RestUI/rest-ui
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import pure from 'recompose/pure'; const EmailField = ({ source, record = {}, elStyle }) => <a style={elStyle} href={`mailto:${get(record, source)}`}>{get(record, source)}</a>; EmailField.propTypes = { addLabel: PropT...
src/utils/createContextWrapper.js
chilts/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return function (contextTypes) { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; }...
src/svg-icons/device/wifi-tethering.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWifiTethering = (props) => ( <SvgIcon {...props}> <path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21...
app/javascript/mastodon/features/ui/components/modal_loading.js
salvadorpla/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; // Keep the markup in sync with <BundleModalError /> // (make sure they have the same dimensions) const ModalLoading = () => ( <div className='modal-root__modal error-modal'> <div className='error-modal__body'> ...
code/web/node_modules/react-bootstrap/es/Collapse.js
zyxcambridge/RecordExistence
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 ...
app/javascript/mastodon/components/column_back_button.js
cybrespace/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length === 1)...
components/Tag.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; const TYPES = { beta: 'Beta', community: 'Community', custom: 'Custom', dedicated: 'Dedicated', experimental: 'Experimental', ibm: 'IBM', local: 'Local', private: 'Private', 'third-party': 'Third-Party...
src/routes/index.js
anovelmous-dev-squad/anovelmous-web
import { Route, IndexRoute } from 'react-router'; import React from 'react'; import Relay from 'react-relay'; import CoreLayout from 'layouts/CoreLayout'; import ContributeView from 'views/ContributeView'; import HomeView from 'views/HomeView'; import StatsView from 'views/StatsView'; import Chapter from 'containers/Ch...
app/components/Header/TopHeader/index.js
Blacksage959/Michael.McCann
/** * * TopHeader * */ import React from 'react'; import HomeIcon from 'material-ui/svg-icons/action/home'; import FavoriteBorderIcon from 'material-ui/svg-icons/action/favorite-border'; import {Link} from "react-router"; import FlatButton from 'material-ui/FlatButton'; class TopHeader extends React.PureComponent { ...
node_modules/react-icons/io/laptop.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoLaptop = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m37.5 8.3v20.5h-35v-20.5c0-0.5 0.3-0.8 0.8-0.8h33.4c0.5 0 0.8 0.3 0.8 0.8z m-2.5 18v-16.3h-30v16.3h30z m-35 4.1v-0.4h40v0.4c-5.5 1.6-9.1 2.1-20 2.1s-14.5-0.5-20-2.1z"/...
.noxt/server/ssrMiddleware.js
suranartnc/noxt.js
import React from 'react' import Helmet from 'react-helmet' import { renderToString } from 'react-dom/server' import { RouterContext, match } from 'react-router' import 'isomorphic-fetch' import getRoutes from '../app/routes' import prefetch from 'noxt/server/prefetch' import config from '../config' import createStore...
src/media/js/site/components/page.js
mozilla/marketplace-submission
import classnames from 'classnames'; import React from 'react'; import {connect} from 'react-redux'; import {reverse, ReverseLink} from 'react-router-reverse'; export class Page extends React.Component { static propTypes = { breadcrumbText: React.PropTypes.string, breadcrumbTo: React.PropTypes.string, c...
src/components/AudioURL.js
ptrslr/silent-party
import React from 'react'; import { connect } from 'react-redux'; import { resolve } from '../actions'; let AudioURL = ({ value, dispatch }) => { let input; const handleSubmit = (e) => { e.preventDefault(); dispatch(resolve(input.value)) } return ( <div className="audioURL ph3"> <h2 class...
packages/map/src/components/Legend.js
wq/wq.app
import React from 'react'; import PropTypes from 'prop-types'; export default function Legend({ children }) { return ( <table> <thead> <tr> <th>Group</th> <th>Name</th> <th>Active</th> <th>Detail</th...
src/components/hi/index.js
ipanasenko/temp
import React from 'react'; import styles from './hi.styl'; import 'styles/_base.styl'; export default class Hi extends React.Component { render () { return ( <h1 className={styles.hi}>Hi!</h1> ); } }
packages/material-ui-icons/src/FormatTextdirectionLToR.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FormatTextdirectionLToR = props => <SvgIcon {...props}> <path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z" /> </SvgIcon>; FormatTextdirectionLToR = pure(Format...
src/svg-icons/notification/sync-disabled.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncDisabled = (props) => ( <SvgIcon {...props}> <path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20...
src/components/gallery.js
kapz/anapaula.art
import React from 'react' import styled from 'styled-components' import Link from 'gatsby-link' import LazyLoad from 'react-lazyload'; import 'animate.css' const Wrapper = styled.div` height: auto; display: flex; width: 100%; @media screen and (max-width: 468px) { flex-direction: column; ...
src/components/NavigationBar/NavigationBar.js
bigtable2006/practice-04
import React from 'react'; import { Link } from 'react-router'; import { Navbar, Nav, NavDropdown, MenuItem } from 'react-bootstrap'; import './NavigationBar.scss'; class NavigationBar extends React.Component { render() { return ( <div> <Navbar inverse collapseOnSelect className='cus-navigation'> <Navb...
src/ButtonGroup.js
jamon/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const ButtonGroup = React.createClass({ mixins: [BootstrapMixin], propTypes: { vertical: React.PropTypes.bool, justified: React.PropTypes.b...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SassModulesInclusion.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 from 'react'; import styles from './assets/sass-styles.module.sass'; import indexStyles from './assets/index.module.sass'; ...
app/js/components/file-diff.js
michaelbrewerdavis/gerrit-mobile
import React from 'react' import { Map, List } from 'immutable' import { getCommentsForLine } from './file-comments' require('../../css/app.css') const LINES_TO_COLLAPSE = 10 function DiffLine(props) { const onClick = props.addComment.bind(null, { editing: true, filename: props.filename, path: props.filename, line...
src/TripTableEntry.js
MichaelKohler/where
import React from 'react'; import PropTypes from 'prop-types'; // eslint-disable-line import/no-extraneous-dependencies import './scss/triptable.scss'; const TripTableEntry = ({ trip }) => { const classes = []; const today = new Date(); const tripToShow = { ...trip, dateFrom: new Date(trip.dateFrom), ...
imports/ui/components/versions/VersionsList.js
KyneSilverhide/team-manager
import React from 'react'; import { browserHistory } from 'react-router'; import HorizontalTimeline from 'react-timeline-view'; import { ListGroup, ListGroupItem, Alert } from 'react-bootstrap'; import Confirm from 'react-confirm-bootstrap'; import FontAwesome from 'react-fontawesome'; import { Bert } from 'meteor/them...
lib/client/js/components/flex-layout.js
Bornholm/yasp
/* jshint esnext: true, node: true */ 'use strict'; import React from 'react'; export default class FlexLayout extends React.Component { constructor() { super(); } render() { let alignItems = this.props.alignItems || 'flex-start'; let justifyContent = this.props.justifyContent || 'flex-start'; ...
src/interface/icons/Performance.js
ronaldpereira/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/term/performance/952795/ // performance by pictohaven from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <path d="M 50 6 C 25.723154 6 6 25.72312 6 50 C 6 74.276...
fixtures/packaging/systemjs-builder/input.js
claudiopro/react
import React from 'react'; import ReactDOM from 'react-dom'; var CSSTransitionGroup = React.addons.CSSTransitionGroup; ReactDOM.render( React.createElement(CSSTransitionGroup, { transitionName: 'example', transitionAppear: true, transitionAppearTimeout: 500, transitionEnterTimeout: 0, transitionL...
core/src/plugins/action.demo_counter/res/js/Counter.js
huzergackl/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio is free software: 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, o...
app/javascript/mastodon/components/autosuggest_emoji.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; const assetHost = process.env.CDN_HOST || ''; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequired, ...
frontend/app/components/Alphabet/AlphabetPrintPresentation.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import './Alphabet.css' import GridList from '@material-ui/core/GridList' import GridListTile from '@material-ui/core/GridListTile' import FVLabel from 'components/FVLabel' /** * @summary AlphabetPresentation * @versi...
charts/react-chartjs-3/example1/src/App.js
rob-blackbourn/scratch-js
import React from 'react' import CssBaseline from '@material-ui/core/CssBaseline' import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles' import FlowControl from './components/FlowControl' const theme = createMuiTheme({ palette: { type: 'dark', }, typography: { useNextVariants: true, ...
src/interface/common/Alert/index.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class Alert extends React.PureComponent { static propTypes = { kind: PropTypes.oneOf(['danger', 'warning', 'info']), children: PropTypes.node.isRequired, className: PropTypes.string, }; render() { const { kind, children, className, ....
django/webcode/webcode/frontend/src/components/Footer/index.js
OpenKGB/webcode
import React from 'react'; class Footer extends React.Component { render() { return ( <div className="footer"> <div className="pull-right"> 10GB of <strong>250GB</strong> Free. </div> <div> <strong>Copyright</strong> Example Company &copy; 2015-2017 </div...