path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
js/userinput.js
janithl/Bus-Route-Finder-3.0
'use strict'; import React, { Component } from 'react'; class LocateMeButton extends Component { constructor() { super(); this.geolocate = this.geolocate.bind(this); } /** geolocate code from MDN: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/Using_geolocation */ geoloc...
src/components/onboarding/OnboardingSettings.js
ello/webapp
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import OnboardingNavbar from './OnboardingNavbar' import { MainView } from '../views/MainView' import { ElloOutlineMark } from '../assets/Icons' import InfoForm from '../forms/InfoForm' import Uploader from '../uploaders/Up...
src/views/Statistic/StatisticGroup.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useWidthProp, } from '../../lib' import Statistic from './Statistic' /** * A group of stat...
src/Parser/Warrior/Fury/Modules/BuffDebuff/FrothingBerserkerUptime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox from 'Main/StatisticBox'; import Combatants from 'Parser...
src/routes/SetPassword/components/SetPassword.js
Terrapin-Ticketing/althea
import React, { Component } from 'react'; import './SetPassword.scss'; import { browserHistory } from 'react-router'; import classNames from 'classnames'; class SetPassword extends Component { constructor(props) { super(props); this.state = { password: '', confirmPassword: '', setPasswordEr...
client/src/components/Task/TaskProse.js
DemocracyGuardians/DGTeam
import React from 'react'; import { withRouter } from 'react-router-dom' import PropTypes from 'prop-types' import DOMPurify from 'dompurify' import TaskStepBaseClass from './TaskStepBaseClass' import './TaskProse.css' class TaskProse extends TaskStepBaseClass { render() { let { content } = this.props setT...
src/container/home_page/home.js
PangPangPangPangPang/react-blog
/** * Created by wangyefeng on 02/03/2017. */ import React from 'react' import './home.css' import '../about/about.css' import Footer from '../footer/footer' export default class Home extends React.Component { constructor(props) { super(props) this.state = { show: true } } componentDidMount() { th...
src/components/shared/ToggleConfiguration.js
svrnm/demomonkey
/* global chrome */ import React from 'react' import ToggleButton from 'react-toggle-button' import Configuration from '../../models/Configuration' import PropTypes from 'prop-types' class ToggleConfiguration extends React.Component { static propTypes = { currentUrl: PropTypes.string.isRequired, onlyShowAvai...
src/client/StoryBox.js
JiLiZART/tmfeed-menu
import React from 'react' import _ from 'lodash' import Client from 'electron-rpc/client' import StoryList from './StoryList.js' import Spinner from './Spinner.js' import Footer from './Footer.js' import Header from './Header.js' import StoryType from '../model/StoryType.js' export default class StoryBox extends React...
node_modules/react-router/es/Redirect.js
iEnder/React-Blog
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, string = _React$PropTypes.st...
src/components/header/avatorPopup.js
change-soft8/cs-project-antd
import React from 'react'; import { Card } from 'antd'; export default class AvatorPopup extends React.Component { render() { let imgSrc = this.props.show ? 'https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png' : 'http://'; return ( <Card style={{ width: 240 }} bodyStyle={{ padding:...
app/javascript/mastodon/features/compose/components/compose_form.js
honpya/taketodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
node_modules/react-bootstrap/es/Col.js
vitorgomateus/NotifyMe
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/client/handlers/AppHandler.js
janicduplessis/imessage-client
import React from 'react'; import StyleSheet from 'react-style'; import TransitionGroup from 'react/lib/ReactCSSTransitionGroup'; import ThemeManager from 'material-ui/lib/styles/theme-manager'; import {branch} from 'baobab-react/decorators'; import {RouteHandler} from 'react-router'; import NavBar from '../components...
js/components/App.react.js
antonybritto/React-Kit
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import Logo from '../../img/logo.png'; class App extends Com...
src/components/common/icons/Glike.js
chejen/GoodJobShare
import React from 'react'; /* eslint-disable */ const Glike = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <g fillRule="evenodd" transform="translate(25)"> <path d="M31.1149089,122.893731 C26.6674205,117.906016 24.2182868,111.158309 24.2182868,103.891725 C24.2182868,96.62049...
src/Common/plugs/index.js
yurizhang/ishow
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import rangeType from './range'; import regexType from './regex'; PropTypes.range = rangeType; PropTypes.regex = regexType; export default class Component extends React.Component { classNames(...args) { return cla...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
fengchenlianlian/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
src/svg-icons/image/brightness-5.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness5 = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.6...
components/Btn/Btn.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classnames from 'classnames'; import noop from '../../utils/noop'; import css from './Btn.css'; export default class Btn extends Component { static propTypes = { children: PropTypes.node.isRequired, className: PropTypes.str...
src/components/reply-item/index.js
bingqichen/cnode-react
import React from 'react'; import { formatTime } from '@/utils'; import './style.less'; export default (props) => { const { replyItem } = props; return ( <div className="cell reply_area reply_item"> <div className="author_content"> <a className="user_avatar"> <img src={replyItem.auth...
example/src/components/Teaser.js
bfncs/linopress
import React from 'react'; import PropTypes from 'prop-types'; import hash from 'murmurhash'; import { StyleSheet, css } from 'aphrodite'; const styles = StyleSheet.create({ container: { listStyle: 'none', margin: 0, padding: '1em', }, blockHeader: { color: 'teal', ':hover': { color: 'p...
client/main.js
ItsDizzy/miner-backend
import React from 'react'; import { Meteor } from 'meteor/meteor'; import { render } from 'react-dom'; import App from '../imports/ui/components/App/App'; Meteor.startup(() => { render(<App />, document.getElementById('app-mount')); });
app/javascript/mastodon/components/avatar.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
app/javascript/mastodon/components/domain.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
Project 03 - TopMovies/src/App.js
DCKT/30DaysofReactNative
import React from 'react' import { Provider } from 'react-redux' import store from './store' import { StackNavigator } from 'react-navigation' import Home from './containers/Home' import Details from './containers/Details' const Router = StackNavigator({ Home: { screen: Home }, Details: { screen: Details } }, { ...
test/test_helper.js
huynhtastic/ReduxSimpleStarter
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/svg-icons/communication/call-missed-outgoing.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMissedOutgoing = (props) => ( <SvgIcon {...props}> <path d="M3 8.41l9 9 7-7V15h2V7h-8v2h4.59L12 14.59 4.41 7 3 8.41z"/> </SvgIcon> ); CommunicationCallMissedOutgoing = pure(CommunicationCallM...
packages/showcase/misc/null-data-example.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/components/common/ListItem.js
msalem07/LectureRecorder
import React, { Component } from 'react'; import { Text, TouchableWithoutFeedback, View } from 'react-native'; import { connect } from 'react-redux'; import { CardSection } from './'; import * as actions from '../../actions'; class ListItemComponent extends Component { renderDescription() { const {librar...
src/component/app/index.js
saidmattar/cloud-life-frontend
import './_app.scss'; import React from 'react'; import Navbar from '../navbar'; import {connect} from 'react-redux'; import * as utils from '../../lib/utils'; import HomeContainer from '../home-container'; import {tokenSet} from '../../action/auth-actions'; import LandingContainer from '../landing-container'; import ...
redux-react/client/components/Comments.js
mayank-mittal/Handson
import React from 'react'; const Comments = React.createClass({ renderComment(comment, i){ return( <div className="comment" key={i}> <p> <strong>{comment.user}</strong> {comment.text} <button className="remove-comment">&times;</button> </p> </div> ) }, handleSubmit(e){ e.preventDefault(...
docs/src/Routes.js
jareth/react-materialize
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import Root from './Root'; import HomePage from './HomePage'; import GettingStartedPage from './GettingStartedPage'; import BadgesPage from './BadgesPage'; import ButtonsPage from './ButtonsPage'; import BreadcrumbsPage from './BreadcrumbsPage';...
base-app/src/components/pages/homePage.js
Pedr0Rocha/Reacting
import React, { Component } from 'react'; class Homepage extends Component { render() { return ( <div> Home Page Content </div> ); } } export default Homepage;
node_modules/react-bootstrap/es/MediaLeft.js
newphew92/newphew92.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/svg-icons/action/offline-pin.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOfflinePin = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"/> </SvgIcon> ...
app/components/GateAnimation/index.js
yasserhennawi/yasserhennawi
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'utils/styled-components'; import { StaggeredMotion } from 'react-motion'; import { connect } from 'react-redux'; import colors from 'theme/color'; import { routeIsReady as routeIsReadyAction } from '../../containers/App/actions'; import ...
src/index.js
kfnxu/fantastic-waffle
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import './styles.scss'; import 'font-awesome/css/font-awesome.css'; import ...
frontend/web/js/src/works-header.js
DiegoGallegos4/backoffice.sps.com
import React from 'react'; import { DateTimeInput, FileInput,Checkbox, TextInput, Select } from './components/form-elements.js'; const WorkHeader = ({data, onChange, handleImage, options}) => ( <div> <div className='row'> <div className='col-md-9 col-lg-offset-3'> <form className='form-horizo...
webclient/conversation/conversation.js
souravDutta123/Cognitive-Assistant
import React from 'react'; class Conversation extends React.Component { constructor() { super(); } render() { const style={ textAlign: 'center', }; return( <div><br/> <br/> <br/> <h1 style={style}>Let your conversation begin...</h1></div> ); } } export default Conversati...
ios/versioned-react-native/ABI9_0_0/Libraries/CustomComponents/Navigator/Navigator.js
jolicloud/exponent
/** * Copyright (c) 2013-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. * * Facebook,...
components/Header.js
VadimKhoroshiltsev/resolve-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import TodoTextInput from './TodoTextInput'; function Header(props) { return ( <header className="header"> <h1>todos</h1> <TodoTextInput newTodo onSave={text => text.length && props.addTodo(text)} placeholder="What...
js/App/Components/TabViews/SubViews/Sensor/TypeBlockList.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/parser/druid/feral/modules/spells/ThrashHitCount.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import HitCountAoE from '../core/HitCountAoE'; /** * Even with its DoT, thrash shouldn't be used against a single target. It's possible that some ...
app/javascript/mastodon/containers/status_container.js
MastodonCloud/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Status from '../components/status'; import { makeGetStatus } from '../selectors'; import { replyCompose, mentionCompose, directCompose, } from '../actions/compose'; import { reblog, favourite, unreblog, unfavourite, pin, unpin, }...
node_modules/@expo/vector-icons/vendor/react-native-vector-icons/lib/toolbar-android.js
jasonlarue/react-native-flashcards
import { isEqual, pick } from 'lodash'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ToolbarAndroid } from './react-native'; export default function createToolbarAndroidComponent( IconNamePropType, getImageSource ) { return class IconToolbarAndroid extends Component { ...
examples/todomvc/index.js
madole/redux-devtools
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
react-flux-mui/js/material-ui/src/svg-icons/communication/chat-bubble-outline.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChatBubbleOutline = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/> </SvgIcon> ); CommunicationChatBubbleOutl...
WashingmachineFrontend/vaskemaskine-app/src/components/Sidebar/Admin/AdminPanel.js
holdam/washingmachine-booking
import React from 'react'; import './AdminPanel.css'; import fetch from 'isomorphic-fetch'; import urls from '../../../commons/urls'; import {monthNamesShort, YEAR_PROJECT_ENTERED_PROD, COST_OF_TUMBLE_DRY_USE, COST_OF_WASHING_MACHINE_USE} from '../../../commons/util'; import {Button} from 'react-bootstrap' import downl...
src/svg-icons/device/widgets.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWidgets = (props) => ( <SvgIcon {...props}> <path d="M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z"/> </SvgIcon> ); DeviceWidgets = pure(DeviceWidgets); ...
src/components/video_list_item.js
dulik06/ReduxStarter
import React from 'react'; const VideoListItem = (props) => { const video = props.video; const onVideoSelect = props.onVideoSelect; const imageUrl = video.snippet.thumbnails.default.url; return( <li onClick={() => onVideoSelect(video)} className='list-group-item'> <div className='video-lst media'> ...
src/components/MobilePause.js
adamhundley/block_party
import React, { Component } from 'react'; export function MobilePause({ game }) { let information; if(!game.inGame && !game.landscape && game.mobile){ information = ( <div className="endgame"> <h1>Welcome to BlocParty</h1> <h3>Please Rotate your phone to start the game!</h3> <img...
src/js/Root.js
AlejandroHerr/fotoxjs
// @flow import React from 'react'; import 'basscss/css/basscss.css'; import Scroller from './Scroller'; import DemoContent from './containers/DemoContent'; import './root.css'; const Root = () => ( <div> <header> <h1 className="h0 font--display text-shadow--mild"> All Cats Are Beautiful </...
src/index.js
ReceipeFinder/frontend
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import promise from 'redux-promise'; import thunk from 'redux-thunk'; import AppRouter from './Router'; import reducers from './reducers'; const createStoreWithMid...
Rosa_Madeira/Cliente/src/components/common/card_produto/CardSection.js
victorditadi/IQApp
import React from 'react'; import { View } from 'react-native'; const CardSection = (props) => { return ( <View style={styles.containerStyle}> {props.children} </View> ); }; const styles = { containerStyle: { borderBottomWidth: 1, padding: 5, backgroundColor: '#b79b7b', justifyCont...
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/main.js
patel344/Mr.Miner
import React from 'react' import createSagaMiddleware from 'redux-saga' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import rootReducer from './reducers/index.js' import rootSaga from './sagas/index.js' import { getLockStatus, getSyncState, getBalance, getTransactions } fr...
packages/components/src/Actions/ActionDropdown/ActionDropdown.component.js
Talend/ui
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import get from 'lodash/get'; import classNames from 'classnames'; import { Iterable } from 'immutable'; import { DropdownButton, MenuItem } from 'react-bootstrap'...
client/src/react/bookmarks/Bookmark.js
charlesj/Apollo
import React from 'react' import PropTypes from 'prop-types' import FontAwesome from 'react-fontawesome' import { TextButton, Tag, } from '../_controls' function Bookmark(props) { const { bookmark: { createdAtDisplay, link, title, tags, description, }, editBookmark, deleteBookmark, } = props return ...
src/components/post/post_data/read_the_source_code.js
refinedjs/refinedjs-blog
import React from 'react'; module.exports = function () { return ( <div> <p> A lot of people use open source libraries without understanding the nuts and bolts. On the surface this may seem fine. You read its description, it says it will do what you need so you give integrating it into your...
client/js/pages/Product/Properties.js
mysteryihs/guan_shu_v2
import React from 'react' export default (props) => { const { product } = props if (!product.product_properties.length) { return <div /> } return ( <div data-hook="product_properties"> <h3 className="product-section-title">{I18n.t('spree.properties')}</h3> <table id="product-properties" c...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Media.js
Akkuma/npm-cache-benchmark
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 ...
ui/app/app-shell.js
antono/ban-dong-dong
import React, { Component } from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { connect } from 'react-redux'; import { Router, Route, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import store from './store'; import AppBar from '...
internals/templates/containers/LanguageProvider/index.js
ScoutingIJsselgroep/Jotihunt
/* * * 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...
src/components/icons/Logo.js
branch-bookkeeper/pina
import React from 'react'; import SvgIcon from '@material-ui/core/SvgIcon'; const Logo = props => ( <SvgIcon viewBox="0 0 380 380" {...props}> <path fill="#2B3137" d="m126.8 285.7c2.3 2.9 4.1 6.3 5.1 10h10.7v-10h-15.8z"/> <path fill="#F96232" d="m176.5 265.8c-6.5-0.1-13.1-0.3-19.6-0.5l-4.9-0.1-2.4-...
src/components/video_detail.js
hlgbls/ReduxSimpleStarter
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div> } const videoId = video.id.videoId; const url = `https://youtube.com/embed/${videoId}`; console.log(video); return ( <div className="video-detail col-md-8"> <div...
ajax/libs/react-instantsearch/4.1.1/Dom.js
BenjaminVanRyseghem/cdnjs
/*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
src/components/Sidebar/Author/Author.js
Amine-H/Amine-H.github.io
// @flow strict import React from 'react'; import { withPrefix, Link } from 'gatsby'; import styles from './Author.module.scss'; type Props = { author: { name: string, bio: string, photo: string }, isIndex: ?boolean }; const Author = ({ author, isIndex }: Props) => ( <div className={styles['author...
shared/app/Tms/components/Card/CardTitle/CardTitlePlaceholder.js
pebie/react-universally-node-config
import React from 'react'; import classnames from 'classnames'; import styles from './CardTitle.scss'; const css = classnames(styles.title, styles['title--loader']); /** * CardTitlePlaceholder * * used to display a placeholder when Title has no content */ /* eslint-disable jsx-a11y/heading-has-content*/ const Ca...
src/components/Decorators/HandleSpan.js
markdyousef/zen-editor
// @flow import React from 'react'; import styled from 'styled-components'; const Handle = styled.span` color: rgba(98, 177, 254, 1.0); direction: ltr; unicode-bidi: bidi-override `; export default ({ contentState, entityKey, children }:Object) => { return <Handle>{children}</Handle>; };
lib/utils/plugins.js
rickycodes/hyper
import {remote} from 'electron'; import {connect as reduxConnect} from 'react-redux'; // patching Module._load // so plugins can `require` them wihtout needing their own version // https://github.com/zeit/hyper/issues/619 import React from 'react'; import ReactDOM from 'react-dom'; import Component from '../component'...
src/app/rightContent/navbar/NavBar.js
johneisenheim/petroadvisor
import React from 'react'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import ArrowBack from 'material-ui/svg-ico...
node_modules/react-icons/md/track-changes.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdTrackChanges = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.8 8.2c3 3.1 4.8 7.2 4.8 11.8 0 9.2-7.4 16.6-16.6 16.6s-16.6-7.4-16.6-16.6 7.4-16.6 16.6-16.6h1.6v13.7c1.1 0.6 1.8 1.7 1.8 2.9 0 1.8-1.6 3.4-3.4 3.4s-3.4-1.6-...
src/Parser/Hunter/Marksmanship/Modules/Features/TraitsAndTalents.js
enragednuke/WoWAnalyzer
import React from 'react'; import StatisticsListBox from 'Main/StatisticsListBox'; import STATISTIC_ORDER from "Main/STATISTIC_ORDER"; import Analyzer from 'Parser/Core/Analyzer'; import AMurderOfCrows from '../Talents/AMurderOfCrows'; import ExplosiveShot from '../Talents/ExplosiveShot'; import PiercingShot from '....
frontend/src/components/dialog/sysadmin-dialog/sysadmin-batch-add-admin-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap'; import UserSelect from '../../user-select'; import { gettext } from '../../../utils/constants'; const propTypes = { toggle: PropTypes.func.isRequired, addAdminInBatch: Pro...
resources/assets/js/components/admin/modals/UpdateTeacherModal.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import TransferGroupToNewTeacherForm from '../forms/TransferGroupToNewTeacherForm'; export default class UpdateTeacherModal extends Component { constructor(props) { super(props); this.state = { showingGroupsOptions: true, selectedOption: null }; } ...
client/components/HeroBanner/HeroBanner.js
LetAmericaVote/strikeout
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import './hero-banner.scss'; const BANNER_CENTER = 'Center Aligned'; const BANNER_LEFT = 'Left Aligned'; const HeroBanner = (props) => { const BackgroundImage = () => ( <div className="hero-banner__background" ...
src/svg-icons/communication/phonelink-lock.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkLock = (props) => ( <SvgIcon {...props}> <path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ...
src/common/AlertPageContent/AlertPageContent.js
Syncano/syncano-dashboard
import React from 'react'; import { Link } from 'react-router'; import { RaisedButton } from 'material-ui'; const AlertPageContent = ({ imgSrc, headline, message, buttonLinkTo, buttonLabel, buttonSet, buttonDescription, bottomText }) => { const styles = { root: { display: 'flex', flex...
examples/with-polka/src/client.js
jaredpalmer/react-production-starter
import React from 'react'; import { hydrate } from 'react-dom'; import App from './App'; hydrate(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept(); }
test/integration/image-component/base-path/pages/layout-intrinsic.js
azukaru/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Layout Intrinsic</p> <Image id="intrinsic1" src="/docs/wide.png" width="1200" height="700" layout="intrinsic" ></Image> <Image id="intrinsic2" ...
src/entypo/Bug.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Bug'; let EntypoBug = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,1C7.7907715,1,6,2.7908325,6,5h8C14,2.7908325,12.2092285,1,10,1z M19,10h-3V7.5031738c0-0.02771-0.0065918...
app/javascript/mastodon/features/notifications/components/notification.js
pinfort/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'; import { HotKeys } from 'react-hotkeys'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { me ...
src/parser/shaman/enhancement/modules/talents/LightningShield.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox from 'interface/others/StatisticBox'; class LightningShield extends Analyzer ...
renderer/components/Channels/ChannelsSummaryDonut.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Box } from 'rebass/styled-components' import { CoinBig } from '@zap/utils/coin' import { Donut } from 'components/UI' const ChannelsSummaryDonut = ({ sendCapacity, receiveCapacity, ...rest }) => { const total = CoinBig.sum(sendCapacity, receiveCap...
examples/carousel.js
dundalek/react-blessed-contrib
// Adapted from https://github.com/yaronn/blessed-contrib/blob/master/examples/carousel.js import React, { Component } from 'react'; import blessed from 'blessed'; import { render } from 'react-blessed'; import { Carousel, Map, Grid, GridItem, Line } from '../src/index'; class Info extends Component { render() { ...
components/time_picker/ClockHand.js
KerenChandran/react-toolbox
import React from 'react'; import style from './style.clock'; import events from '../utils/events'; import prefixer from '../utils/prefixer'; import utils from '../utils/utils'; class Hand extends React.Component { static propTypes = { angle: React.PropTypes.number, className: React.PropTypes.string, len...
src/HomePage/HomePage.js
yining1023/thesisBook
import React from 'react' import s from './HomePage.css' import {connect} from 'react-redux' import {resetSearch, search, setAdvisorFilter, setCategoryFilter} from '../redux/actions/filters' import {getFilteredProjects} from '../redux/selectors/projects' import {Card, CardText} from 'material-ui' import Header from '.....
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js
pancho111203/material-ui
import React from 'react'; import ActionHome from 'material-ui/svg-icons/action/home'; import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download'; import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as...
src/containers/customerDetails.js
rawris/bill
import React, { Component } from 'react'; import { connect } from 'react-redux'; import TransactionList from './transactionList'; import NewTransaction from './newTransaction'; import Modal from 'react-modal'; import NewCustomer from './newCustomer'; const customStyles = { content: { top: '50%', le...
src/parser/shaman/elemental/modules/azerite/EchoOfTheElementals.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer, {SELECTED_PLAYER, SELECTED_PLAYER_PET} from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import ItemDamageDone from 'interface/oth...
examples/react-firebase-redux/src/routes/Projects/components/ProjectsPage/ProjectsPage.js
prescottprue/generator-react-firebase
import React from 'react' import { Route, Switch, useRouteMatch } from 'react-router-dom' import ProjectRoute from 'routes/Projects/routes/Project' import { renderChildren } from 'utils/router' import ProjectsList from '../ProjectsList' function ProjectsPage() { const match = useRouteMatch() return ( <Switch> ...
node_modules/react-bootstrap/es/CarouselItem.js
vietvd88/developer-crawler
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/utils/childrenValueInputValidation.js
albertojacini/react-bootstrap
import React from 'react'; import { singlePropFrom } from './CustomPropTypes'; const propList = ['children', 'value']; export default function valueValidation(props, propName, componentName) { let error = singlePropFrom(propList)(props, propName, componentName); if (!error) { error = React.PropTypes.node(pro...
docs/src/examples/elements/Button/GroupVariations/ButtonExampleGroupIconShorthand.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupIconShorthand = () => ( <Button.Group> <Button icon='play' /> <Button icon='pause' /> <Button icon='shuffle' /> </Button.Group> ) export default ButtonExampleGroupIconShorthand
components/AppBar.js
SocialCycling/sc-web-client
import React from 'react' import AppBar from 'material-ui/AppBar' const AppBarComponent = (props : {}) => { return (<AppBar {...props} title="Social Cycling" />) } export default AppBarComponent
src/main.js
wiljanslofstra/pyramid
/* global document, __DEV__, window */ import 'whatwg-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './store/createStore'; import AppContainer from './containers/AppContainer'; const store = createStore(); const MOUNT_NODE = document.getElementById('root'); const rende...
examples/full-example/src/isomorphic/base/components/message.js
yahoo/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; var count = 0; class Message extends React.Component { shouldComponentUpdate() { return false; } render() { return <div className="mes...
docs/src/examples/collections/Menu/Variations/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' const Variations = () => ( <ExampleSection title='Variations'> <ComponentExample title='Fixed' description='A menu c...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
mitchellporter/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
app/static/src/performer/NewTestForm_modules/TestTypeSelectField.js
SnowBeaver/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import HelpBlock from 'react-bootstrap/lib/HelpBlock'; var items = []; var TestTypeSelectField = React.createClass({ handleChange: function (event, index, value) { this.se...