path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Results.js
AdlerPlanetarium/pluto-poll
import React from 'react'; import Bar from './ResultsBar'; import Rebase from 're-base'; const base = Rebase.createClass('https://pluto-poll.firebaseio.com'); export default class Results extends React.Component { constructor(props) { super(props); this.state = { data: [], intervalID: undefined...
app/components/ThankYou.js
gidich/votrient-kiosk
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './ThankYou.css'; export default class ThankYou extends Component { render() { return ( <div className={styles.container}> <Link to="/" className={styles.home}></Link> <Link to="/ProductInf...
src/parser/warrior/arms/modules/core/Dots/RendUptime.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS/index'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/StatisticL...
components/BottomBar.js
dominiktilp/congestion-charge-app
import React from 'react'; import { browserHistory } from 'react-router'; class BottomBar extends React.Component { render() { return ( <div id="bottom-bar"> {this.props.children} </div> ); } } BottomBar.propTypes = { children: React.PropTypes.oneOfType([ React.PropTypes.ar...
src/components/About/About.js
zhouxuanpo/Big-Demo
import React from 'react' import Header from './Header'; import MyInfo from './MyInfo'; class About extends React.Component { render () { let styles={ root:{ width:'100vw', height:'100%', // background:'url("http://photo.enterdesk.com/2011-6-11/enterdesk.co...
web/static/js/goal_app.js
babie/goal-server
import React from 'react'; import {Flux} from 'flumpt'; import _ from 'lodash'; import GoalAppComponent from './components/goal_app'; class GoalApp extends Flux { subscribe() { this.on("self_and_ancestor_ids:update", (node) => { const self_and_ancestor_ids = node.getPath().map((n) => (n.model.id)).reverse(...
src/Fade.js
xuorig/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; class Fade extends React.Component { render() { let timeout = this.props.timeout || this.props.duration; retu...
src/main.js
sjoyal/neighborhood
import React from 'react'; import { render } from 'react-dom'; export function App(props) { return ( <div>Hello Neighborhood World!</div> ); } render(<App />, document.getElementById('app'));
client/react/entry/j/react/About.js
Firescar96/macweb
import React, { Component } from 'react'; import Navbar from './Navbar.js'; class About extends Component { render() { return ( <div className="entryj"> <Navbar /> <div className="title-div"> <h1>Welcome to J Entry!</h1> <h4>MacGregor House, MIT</h4> </div> ...
src/documentation/TableWithFilter/TableWIthFilter.stories.js
wfp/ui
import React from 'react'; import markdown from './README.mdx'; import TableWithFilter from './TableWithFilter'; import RegularPage from '../RegularPage'; export default { title: 'Templates/TableWithFilter', component: TableWithFilter, parameters: { componentSubtitle: 'Example', mdx: markdown, previ...
src/components/Footer/Footer.js
VitaliyGaliy/GroceryList
import React from 'react' const propTypes = { } const defaultProps = { } export class Footer extends React.Component { constructor(props) { super(props); this.onSlideChange = this.onSlideChange.bind(this); } onSlideChange(e){ const f = e.currentTarget.getAttribute('data-myAttr'); this.props.filterSlides(f...
client/src/NoteActionBar.js
panter/mykonote
import React, { Component } from 'react'; import ActionBar from './ActionBar'; import { ReactComponent as ShowListIcon } from './icons/material/arrow_back-24px.svg'; export class NoteActionBar extends Component { render() { let showListButtonClassName = 'icon big invisible-lg'; if (this.props.showList) { ...
src/containers/sidebar.js
davidmferris/showhopper_v3_client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import SearchBar from './search_bar'; import CitiesList from './cities_list'; import ShowsList from './shows_list'; import DateFilter from './date_filter'; class Sidebar extends Component { constructor(props) { super(props); } ...
src/svg-icons/action/backup.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBackup = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z...
frontend/src/Settings/CustomFormats/CustomFormats/EditCustomFormatModalConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { clearPendingChanges } from 'Store/Actions/baseActions'; import EditCustomFormatModal from './EditCustomFormatModal'; function mapStateToProps() { return {}; } const mapDispatchToProps = { ...
src/components/HeaderComponent.js
Bigbrd/Colorrelation
import React from 'react'; //TODO - add twitter widget and facebook widget to like/share. // add email sign up for the modal? or just have the email form right there. add text // add privacy policy & contact me email? //design an actual logo as an image inside the a href class HeaderComponent extends React.Component {...
src/svg-icons/image/wb-auto.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbAuto = (props) => ( <SvgIcon {...props}> <path d="M6.85 12.65h2.3L8 9l-1.15 3.65zM22 7l-1.2 6.29L19.3 7h-1.6l-1.49 6.29L15 7h-.76C12.77 5.17 10.53 4 8 4c-4.42 0-8 3.58-8 8s3.58 8 8 8c3.13 0 5.84-1.81 7.1...
src/components/browsevacancy/PricePerHour.js
Vasyl1989/Opus.ua
import React from 'react'; import { PropTypes } from 'prop-types'; import { connect } from 'react-redux'; import { searchVacancy } from '../../actions/vacancyActions'; import * as consts from '../../constants/const'; class PricePerHour extends React.Component { constructor(props) { super(props); this.state...
js/components/sideBar/index.js
laurar07/onMy6
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Content, Text, List, ListItem } from 'native-base'; import { setIndex } from '../../actions/list'; import { closeDrawer } from '../../actions/drawer'; import { replaceOrPushRoute } from '../../actions/route'; import myTheme from...
client/src/components/ProductRow.js
wojjas/mega-store
import React from 'react'; class ProductRow extends React.Component { render() { var name = this.props.product.stocked ? this.props.product.name : <span style={{color: 'red'}}> {this.props.product.name} </span>; return...
node_modules/react-bootstrap/es/Media.js
chenjic215/search-doctor
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/Landmarks.js
jebeck/dead-on-everest
import React from 'react'; import './Landmarks.css'; const Landmarks = (props) => ( <div className="Text"> <p> In general, those who die on Everest <span className="Landmarks-stay">stay on Everest</span>. <br/> <br/> Some corpses even serve as <span className="Landmarks-landmarks">landma...
src/components/Search/Search.Skeleton.js
wfp/ui
/* eslint-disable jsx-a11y/label-has-for */ /* eslint-disable jsx-a11y/label-has-associated-control */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; export default class SearchSkeleton extends Component { static propTypes = { small: PropTypes.b...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
paweljedrzejczyk/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
fields/types/number/NumberColumn.js
lojack/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.obj...
src/components/HeroPage/HeroPage.js
hack-duke/hackduke-code-for-good-website
import React from 'react' import classes from './HeroPage.scss' export const HeroPage = () => ( <div> <div className={classes.hero}> <div className={classes.mainText}> // <img src='./images/HOME.png' alt='Hackduke HomePage' /> <h6> 2018 Event Oct 13-14 </h6> </div> </div> </div>...
src/components/projects/show/ProjectImage.js
tehfailsafe/portfolioReact
import React from 'react'; import VideoPlayer from './VideoPlayer' const ProjectImage = React.createClass({ stop(){ this.refs.player.stop(); }, getInitialState(){ return{ playing: false } }, render(){ return( <div className="imageHolder"> <VideoPlayer ref="player" path...
src/svg-icons/notification/ondemand-video.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationOndemandVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/> </SvgIc...
analysis/paladinholy/src/modules/checklist/Component.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { t, Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import { TooltipElement } from 'interface'; import COVENANTS from 'game/shadowlands/COVENANTS'; import Checklist from 'parser/shared/module...
.storybook/components/ProgressIndicatorStory.js
hellobrian/carbon-components-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import { ProgressIndicator, ProgressStep, } from '../../components/ProgressIndicator'; storiesOf('Progress Indicator', module).addWithInfo( 'Default', ` For React usage, ProgressIndicator holds the currentIndex state to indicate whi...
examples/todo/js/app.js
michaelchum/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
app/components/MyPage.js
bopace/headrest
import React from 'react'; import Tappable from 'react-tappable'; import Habit from './Habit'; import Quiz from './Quiz'; import '../css/mypage.css'; import HabitStore from '../stores/habit'; const MyPage = React.createClass({ displayName: 'MyPage', getInitialState() { return { currentSt...
docs/src/app/components/pages/components/Dialog/ExampleScrollable.js
igorbt/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; const styles = { radioButton: { marginTop: 16, }, }; /** * Dialog co...
client/src/app/routes/forms/components/layouts/RegistrationForm.js
zraees/sms-project
import React from 'react' import UiValidate from '../../../../components/forms/validation/UiValidate' import MaskedInput from '../../../../components/forms/inputs/MaskedInput' import UiDatepicker from '../../../../components/forms/inputs/UiDatepicker' const validationOptions = { // Rules for form validation rul...
src/components/explorer/builder/LoggedInQueryContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { updateTimestampForQueries, resetSelected, selectQuery, removeDeletedQueries, removeNewStatusFromQueries, countSourceCollectionUsage } from '../../../actions/explorerA...
imports/api/profiles/profiles.js
howlround/worldtheatremap
// Meteor import { TAPi18n } from 'meteor/tap:i18n'; import { Factory } from 'meteor/factory'; // Utilities import { FormattedMessage } from 'react-intl'; import classnames from 'classnames'; // Forms import React from 'react'; import t from 'tcomb-form'; import ReactSelect from 'react-select'; // API // import { al...
react/src/app/screens/Welcome/index.js
JasonKDarby/listopolis
import React from 'react'; import Splash from './components/Splash'; export default () => ( <Splash/> );
ui/src/main/js/components/JobListItem.js
thinker0/aurora
import React from 'react'; import { Link } from 'react-router-dom'; import Icon from 'components/Icon'; import { TASK_COUNTS } from 'utils/Job'; export function JobTaskStats({ stats }) { const taskStats = []; TASK_COUNTS.forEach((k) => { if (stats[k] > 0) { const label = k.replace('TaskCount', ''); ...
src/components/video_detail.js
tanimmahmud/React_youtube_search
import React from 'react'; const VideoDetail = (props) => { const video = props.video; if (!video) { return <div>Loading .... </div> } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}` return( <div className="video-detail col-md-8"> <div className="e...
3.StockQuote/src/scripts/components/options.js
TravelingTechGuy/svcc-chrome-extension
import React from 'react'; import Footer from './footer'; import './options.css'; const timezones = { 'Eastern': 'America/New_York', 'Central': 'America/Chicago', 'Mountain': 'America/Denver', 'Pacific': 'America/Los_Angeles', 'GMT': 'Etc/GMT' }; export default class Options extends React.Component { cons...
src/index.js
RajeshJangra/ecom-ui
// import React from 'react'; import {render} from 'react-dom'; // import './index.css'; import App from './App'; import Registration from './Registration'; import Login from './AppSecurity/Login'; import React from 'react'; import ProductList from './ListProducts/ProductList'; import Checkout from './checkout/Checkout...
playground/playground.js
invertase/react-autocompleter
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import AutoCompleter from '../src/AutoCompleter'; import data from './data'; document.title = 'React AutoCompleter Playground'; document.body.style.padding = '30px 40px'; document.body.style.background = '#eeeeee'; document.body.style.display ...
ActionSheet/index.js
rnxteam/rnx-ui
import React, { Component } from 'react'; import { Platform, View, Text, TouchableHighlight, } from 'react-native'; import PropTypes from 'prop-types'; import Sheet from '../Sheet'; import styles from './styles'; const NOOP = () => {}; const isAndroid = Platform.OS === 'android'; class ActionSheet extends Co...
src/interface/report/Results/Timeline/Cooldowns.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Abilities from 'parser/core/modules/Abilities'; import './Cooldowns.scss'; import Lane from './Lane'; class Cooldowns extends React.PureComponent { static propTypes = { start: PropTypes.number.isRequired, end: PropTypes.number.isRequired...
src/svg-icons/av/video-label.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoLabel = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z"/> </SvgIcon> ); AvVideoLabel = pure(AvVideoLabel); AvVid...
docs/app/Examples/modules/Popup/Usage/PopupExampleClick.js
ben174/Semantic-UI-React
import React from 'react' import { Button, Popup } from 'semantic-ui-react' const PopupExampleClick = () => ( <Popup trigger={<Button color='red' icon='flask' content='Activate doomsday device' />} content={<Button color='green' content='Confirm the launch' />} on='click' positioning='top right' />...
app-course-sync/views/SyncronizationCompletedView.js
globant-ui-rosario/progress-tracker
import React, { Component } from 'react'; class BootcampSyncCompletedView extends Component { render () { return <div>Syncronization completed</div>; } }; export default BootcampSyncCompletedView;
src/js/Components/Player/PlayerItem.js
dhenson02/fan2c
'use strict'; import React from 'react'; class PlayerItem extends React.Component { constructor ( props ) { super(props); } shouldComponentUpdate ( nextProps ) { return nextProps.showStarters !== this.props.showStarters || nextProps.player.id !== this.props.player.id || ...
src/svg-icons/av/library-music.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
docs/app/Examples/elements/Segment/Groups/SegmentExampleStackedSegments.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleStackedSegments = () => ( <Segment.Group stacked> <Segment>Top</Segment> <Segment>Middle</Segment> <Segment>Bottom</Segment> </Segment.Group> ) export default SegmentExampleStackedSegments
src/components/modal.js
AndrewFridley/PDF-To-Image
import React from 'react'; export default class Modal extends React.Component { render() { if (this.props.isOpen === false) return null let modalStyle = { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', zIndex: '9999', ...
src/svg-icons/communication/forum.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationForum = (props) => ( <SvgIcon {...props}> <path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/> </SvgIcon> ); Co...
app/components/dashboard/Dashboard.js
ArcBees/Tempora
import React, { Component } from 'react'; import StatsRecap from '../stats-recap/StatsRecap'; import * as WorklogService from '../../services/WorklogService'; import { Worklog } from '../../services/apis/TempoApi'; import './Dashboard.scss'; export default class Dashboard extends Component { constructor(props) {...
examples/simple/index.js
pkibbey/react-custom-scrollbars
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render(<App />, document.getElementById('root'));
containers/LanguageProvider/index.js
CUANALO/Slider
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
apps/customer/assets/static/js/containers/HeaderContainer/index.js
tsurupin/job_search
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as AuthenticationActionCreators from '../AuthenticationContainer/action'; import { Wrapper, FavoriteJobLink, BrandLink, HeaderLinkList, But...
app/jsx/external_apps/components/ExternalToolPlacementButton.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
node_modules/react-bootstrap/es/NavItem.js
Crisa221/Lista-Giocatori
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 ...
packages/core/__deprecated__/Link/Link.js
romelperez/arwes
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; export default function Link (props) { const { theme, classes, className, children, ...etc } = props; const cls = cx(classes.root, className); return ( <a className={cls} {...etc}> {children} </a> ); } Li...
admin/client/App/screens/List/index.js
w01fgang/keystone
/** * The list view is a paginated table of all items in the list. It can show a * variety of information about the individual items in columns. */ import React from 'react'; // import { findDOMNode } from 'react-dom'; // TODO re-implement focus when ready import numeral from 'numeral'; import { connect } from 'rea...
client/modules/core/components/navigation.js
markoshust/mantra-sample-blog-app
import React from 'react'; const Navigation = () => ( <div> <b> Navigation: </b> <a href="/">Home</a> | <a href="/new-post">New Post</a> </div> ); export default Navigation;
gatsby-ssr.js
eventjuicer/homepage
import React from 'react'; import { renderToString } from 'react-dom/server'; import { JssProvider } from 'react-jss'; import createContext from "./src/styles/createContext"; import { MuiThemeProvider } from 'material-ui/styles'; exports.replaceRenderer = ({ bodyComponent, replaceBodyHTMLString, setHeadCompo...
web/static/js/components/ColorLabel.js
maxdec/cellar
import React from 'react'; import classNames from 'classnames'; export default ({className, color}) => { const colorClass = classNames({ [className]: true, tag: true, 'color-label': true, // 'pull-xs-right': true, 'is-red-wine': color === 'red', 'is-rose-wine': color === 'rose', 'is-white...
client/app/scripts/components/details.js
kinvolk/scope
import React from 'react'; import { connect } from 'react-redux'; import DetailsCard from './details-card'; class Details extends React.Component { render() { const { controlStatus, details } = this.props; // render all details as cards, later cards go on top return ( <div className="details"> ...
src/components/section.js
tmcw/docbox
import React from 'react'; import remark from 'remark'; import PropTypes from 'prop-types'; import remarkHTML from 'remark-html'; import remarkHighlight from '../highlight'; import { postHighlight, remarkPlugins } from '../custom'; function renderHighlighted(nodes) { return { __html: postHighlight(remark() ...
src/app/components/team/SwitchTeamsComponent.js
meedan/check-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { FormattedMessage } from 'react-intl'; import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight'; import { browserHistory, Link } from 'react-router'; import Card from '@material-u...
examples/react-hello/test/lib/index.js
ericelliott/tdd-es6-react
import test from 'tape'; import React from 'react'; import dom from 'cheerio'; import hello from '../../source/hello'; import createActions from '../fixtures/create-actions'; const renderText = React.renderToStaticMarkup; test('Hello component', nest => { nest.test('...with no props', assert => { const Hello =...
app/javascript/mastodon/components/account.js
alarky/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import DisplayName from './display_name'; import Permalink from './permalink'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'rea...
src/svg-icons/content/forward.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentForward = (props) => ( <SvgIcon {...props}> <path d="M12 8V4l8 8-8 8v-4H4V8z"/> </SvgIcon> ); ContentForward = pure(ContentForward); ContentForward.displayName = 'ContentForward'; ContentForward.muiNam...
src/component/searchTab/FixedScrollableList.js
BristolPound/cyclos-mobile-3-TownPound
import React from 'react' import { ScrollView, TouchableHighlight, View } from 'react-native' import Colors from '@Colors/colors' const FixedScrollableList = (props) => <View style={props.style}> <ScrollView> {props.items.map((item, index) => //zIndex is required for overflow to work ...
lib/jasmine/custom-matchers.6.js
cyaninc/beaker
/** * Custom Jasmine matchers * @author Adam Meadows [@job13er](https://github.com/job13er) * @author Matthew Dahl [@sandersky](https://github.com/sandersky) * @copyright 2015 Ciena Corporation. All rights reserved. */ import './typedefs'; import {diffJson} from 'diff'; import React from 'react'; debugger; /**...
src/svg-icons/content/gesture.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentGesture = (props) => ( <SvgIcon {...props}> <path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3....
app/main.js
alubling/Twilio-Zendesk-API
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('root'));
node_modules/react-router/es/Redirect.js
Aznachang/CompanyPersonelReactJS
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
node_modules/react-bootstrap/es/Popover.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 ...
app/components/Participants.js
national-treasures-tw/landing-page
import React from 'react'; import NavHeader from './NavHeader'; import FooterContent from './FooterContent'; import { Link } from 'react-router'; import styles from '../styles.css'; import background from '../assets/participants/background-2.png'; import logo from '../assets/hero-menu-logo.png'; import mobileLogo from ...
client/src/containers/DevTools/DevTools.js
jabelone/marvin
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
node_modules/_antd@2.13.4@antd/es/notification/index.js
ligangwolai/blog
import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import Notification from 'rc-notification'; import Icon from '../icon'; var notificationInstance = {}; var defaultDuration = 4.5; var defaultTop = 24; var defaultBottom = 24; var defaultPlacement = 'topRight'; var defaultGetContainer = voi...
src/components/Header/Header.js
markkohdev/corndog
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <h1>corndog</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> </div> ) export default Header
CompositeUi/src/views/component/Form.js
kreta/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import './../../scss/components/_form.scs...
src/components/Modal/index.js
markdhel/heavens-garden
import React, { Component } from 'react'; import classnames from 'classnames'; import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from 'react-modal-bootstrap'; class Manage extends Component { // static propTypes = {} // static defaultProps = {} // state = { // } con...
src/svg-icons/image/filter-hdr.js
hai-cea/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/components/App/index.js
rikukissa/webpack-project-template
import React from 'react'; import './index.styl'; export default class App extends React.Component { render() { return <h1>h</h1>; } }
node_modules/rc-util/es/Children/mapSelf.js
yhx0634/foodshopfront
import React from 'react'; function mirror(o) { return o; } export default function mapSelf(children) { // return ReactFragment return React.Children.map(children, mirror); }
app/components/List.js
MaxMEllon/hiyakake
'use strict'; import React from 'react'; let List = React.createClass({ displayName: 'ListComponent', propTypes: { name: React.PropTypes.string.isRequired }, render() { return ( <li>{this.props.name}</li> ); } }); export default List;
src/parser/shaman/shared/azerite/IgneousPotential.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { formatNumber } from 'common/format'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import { calcu...
src/modules/editor/components/popovers/addTooltip/AddTooltipMenu/AddDividerButton/AddDividerButton.js
CtrHellenicStudies/Commentary
import React from 'react'; import autoBind from 'react-autobind'; import { connect } from 'react-redux'; // redux import editorActions from '../../../../../actions'; // components import AddTooltipMenuItemButton from '../../AddTooltipMenuItemButton'; // lib import addNewBlock from '../../../../../lib/addNewBlock'; ...
src/@ui/HistoricalContributionCard/index.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { compose, pure, setPropTypes, defaultProps } from 'recompose'; import { Platform, View } from 'react-native'; import { startCase, toLower } from 'lodash'; import moment from 'moment'; import { withIsLoading } from '@ui/isLoading'; import styled fro...
src/containers/Asians/_components/PublishedBreakRound/Ballots/SmallBallots/Instance/BallotInstance/Total.js
westoncolemanl/tabbr-web
import React from 'react' import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List' import StarIcon from 'material-ui-icons/Star' export default ({ total, winner }) => <div className={'w-100'} > <List> <ListItem> {winner && <ListItemIcon> <StarIcon /> ...
app/containers/Home/index.js
scribeklio/audora-io
/* * * Home * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router'; import Paper from 'material-ui/Paper'; import MediaQuery from 'react-responsive'; import Header from 'components/Header'; import HomeAboutMe from 'components/HomeAboutMe'; import ForHire from 'componen...
example/src/pages/Home.js
ethanselzer/react-lazy-tree
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import Header from '../components/Header'; import hamburger from '../images/hamburger.png'; import catalog from '../images/catalog.png'; import qr from '../images/hamburger-qr.png'; import viewer from '../images/viewer.png'; import 'bootstr...
src/client/lib/flux/devtools.js
cazacugmihai/este
import Component from '../../components/component.react'; import React from 'react'; export default function devTools(BaseComponent) { return class DevTools extends Component { static propTypes = { flux: React.PropTypes.object.isRequired } constructor(props) { super(props); this.hist...
react/features/calendar-sync/components/AddMeetingUrlButton.web.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { createCalendarClickedEvent, sendAnalytics } from '../../analytics'; import { translate } from '../../base/i18n'; import { Icon, IconAdd } from '../../base/icons'; import { connect } from '../../base/redux'; impo...
stories/InputWithOptions/ExampleNoDropdownIfEmptyInput.js
skyiea/wix-style-react
import React from 'react'; import InputWithOptions from 'wix-style-react/InputWithOptions'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px' }; const options = [ {id: '0', value: 'First option'}, {id: '1', value: 'Second option'}, {id: '2', value: 'Third op...
packages/strapi-plugin-content-manager/admin/src/components/TableFooter/index.js
skelpook/strapi
/** * * TableFooter * */ import React from 'react'; import LimitSelect from '../LimitSelect'; import Pagination from '../Pagination'; import styles from './styles.scss'; class TableFooter extends React.Component { render() { return ( <div className={`row ${styles.tableFooter}`}> <div className="...
app/app.js
bryantwang1/react-weather
import React from 'react'; import ReactDOM from 'react-dom'; import AppContainer from './containers/app.container' class App extends React.Component { render() { return ( <AppContainer /> ); } } ReactDOM.render( <App />, document.getElementById('content') );
demo/index.android.js
KenHky/react-native-menu-button
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import MenuButton from 'react-native-menu-button' export default class rndemo extends Component { constructor(...
docs/src/app/components/pages/components/RadioButton/ExampleSimple.js
pomerantsev/material-ui
import React from 'react'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import ActionFavorite from 'material-ui/svg-icons/action/favorite'; import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; const styles = { block: { maxWidth: 250, }, radioButton: { ...
src/client.js
andyshora/memory-tools
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import createStore from './redux/create'; import ApiClient from '....
packages/icons/src/delete.js
yldio/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg xml...