path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/IntroBlock/index.js
daicas/react-boilerplate-examp
import React from 'react'; import { FormattedMessage } from 'react-intl'; import Img from 'components/Img'; import styled from 'styled-components'; import { IntroBlockWapper, IntroBlockContent, Title, IntroBlockDes, LinkViewMore, IntroSlider, IntroSliderItem } from './style'; class IntroBlock extends React....
src/components/WebView.js
Root-App/react-native-mock-render
import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType'; import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import View from './View'; import ScrollView from './ScrollView'; import WebViewManager from '../NativeModules/WebViewManager'; const RCT_W...
src/internal/ClearFix.js
hwo411/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import BeforeAfterWrapper from './BeforeAfterWrapper'; const styles = { before: { content: "' '", display: 'table', }, after: { content: "' '", clear: 'both', display: 'table', }, }; const ClearFix = ({style, children, ...other...
src/client/components/Utils/ScrollToTopOnMount.js
busyorg/busy
import React from 'react'; import { withRouter } from 'react-router'; class ScrollToTopOnMount extends React.Component { componentDidMount() { if (window && window.location.hash === '') { window.scrollTo(0, 0); } } render() { return null; } } export default withRouter(ScrollToTopOnMount);
src/svg-icons/file/file-download.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFileDownload = (props) => ( <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/> </SvgIcon> ); FileFileDownload = pure(FileFileDownload); FileFileDownload.displayName = 'FileFileDown...
src/svg-icons/av/video-call.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoCall = (props) => ( <SvgIcon {...props}> <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"/> </SvgIcon> )...
src/native/app/components/Text.js
robinpokorny/este
import React from 'react'; import theme from '../themes/initial'; import { StyleSheet, Text } from 'react-native'; // https://github.com/facebook/react-native/issues/7877 const round = value => Math.round(value); const styles = StyleSheet.create({ text: { // eslint-disable-line react-native/no-unused-styles col...
src/svg-icons/maps/flight.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsFlight = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon>...
packages/wix-style-react/src/FunnelChart/FunnelBar/FunnelBar.js
wix/wix-style-react
import React from 'react'; import { st, classes } from './FunnelBar.st.css'; export const FunnelBar = ({ height, dataHook }) => { return ( <div className={st(classes.root)} data-hook={dataHook}> <div style={{ height: `${height}%` }} className={classes.filledBar} /> </div> ); };
frontend/app_v2/src/common/icons/Copy.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' function Copy({ styling }) { return ( <svg className={styling} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <title>Copy</title> <path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2...
src/server.js
cbellino/roster
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-polyfill'; import path from 'path'; import e...
src/Components/BadgeComponent.js
Xeroeta/nkcgo-webapp
import React, { Component } from 'react'; import { ShareButtons, ShareCounts, generateShareIcon, } from 'react-share'; const { FacebookShareButton, GooglePlusShareButton, LinkedinShareButton, TwitterShareButton, PinterestShareButton, VKShareButton, OKShareButton, TelegramShareButton, WhatsappS...
app/components/App/SideBar/index.js
basask/react-router-material-ui-seed
import React from 'react'; import { Drawer, MenuItem, AppBar, IconButton } from 'material-ui'; import { Link } from 'react-router'; import NavigationClose from 'material-ui/svg-icons/navigation/close'; import constants from '../constants'; class SideBar extends React.Component { constructor(props){ super(props)...
src/svg-icons/image/filter-tilt-shift.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62...
boilerplates/project/pcNative/app/components/Main/Main.js
FuluUE/vd-generator
import React from 'react'; import styles from './less/main.less'; class Main extends React.Component { render() { return ( <div className={styles.main}> aa </div> ); } } export default Main;
src/components/Dot.js
wu0792/gallery-by-react
import React from 'react' class Dot extends React.Component{ constructor(props){ super(props); this.state = {}; this.state.reverse = props.reverse || false; this.state.active = props.active || false; } render(){ return (<li className={'nav_dot' + (this.state.active?' active':'')} onClick={t...
node_modules/react-bootstrap/es/Tab.js
superKaigon/TheCave
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import PropTypes from 'pr...
src/containers/Router.js
scenario-generator/frontend
import React, { Component } from 'react'; import { StyleRoot } from 'radium'; import { Router } from 'react-router'; import ReactGA from 'react-ga'; // Constants import Strings from '../constants/strings'; // Components import routes from '../routes'; import Head from '../components/He...
src/dumb/editor/custom_field/preview_templates/AssetSelectionPreviewTemplate.js
jeckhummer/wf-constructor
import React from 'react'; import {Form} from "semantic-ui-react"; export const AssetSelectionPreviewTemplate = ({label}) => { const options = [ {text: 'asset 1', value: 'asset 1'}, {text: 'asset 2', value: 'asset 2'}, {text: 'asset 3', value: 'asset 3'}, {text: '...', value: '...'}...
test/integration/basic/pages/stateless.js
nikvm/next.js
import React from 'react' export default () => <h1>My component!</h1>
information/blendle-frontend-react-source/app/modules/premiumSignup/components/ResetPassword/index.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import ResetPasswordView from 'components/login/ResetPassword'; import CSS from './styles.scss'; const ResetPassword = (props) => { const { route, onClickLogin } = props; return ( <div className={CSS.resetPassword}> <ResetPasswordView showBa...
amp-stories/src/component/view/LinkComponentsStoryView/pages/StoryPage3.js
ampproject/samples
import React from 'react'; import styled, {keyframes} from 'styled-components'; import {TextHighlightBanner, Button as SharedButton} from '../shared'; import {BannerWrapper} from '/component/base/TextHighlight'; import AmpStoryPage from '/component/amp/AmpStoryPage'; import AmpImage from '/component/amp/AmpImage'; co...
src/Home.js
camposa03/FormDemo
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Home extends Component { render() { return ( <div> <h2><Link to="/form">Apply</Link></h2> </div> ); } } export default Home;
app/app.js
commanderking/alliancechemistry
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/FlexBox.js
RafalFilipek/just-box
// @flow import React from 'react'; import omit from 'lodash/omit'; import Box, { type BoxProps } from './Box'; import isReactNative from './isReactNative'; type FlexProps = { f1?: boolean, f2?: boolean, f3?: boolean, f4?: boolean, row?: boolean, column?: boolean, wrap?: boolean, alignStart?: boolean...
linksa/CalendarInfo.js
liuhui219/linksa
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, ToastAndroid, ActivityIndicator, TextInput, ScrollView, Dimensions, BackAndroid, Image } from 'react-native'; import Communications from 'react-native-communications'; import Icon from 'react...
example/src/index.js
topcatcreatives/react-date-scroll
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('date-scroll-app') );
client/src/components/Main.js
nickbreaton/spare-page
import React from 'react' import styled from 'styled-components' const MainStyles = styled.main` display: flex; flex: 1 0 auto; flex-direction: column; min-height: 100vh; flex-basis: 100%; align-items: flex-start; margin: auto; max-width: calc(${props => props.theme.breakpoint} - 4em); width: 100%; ...
js/components/Header.js
SKrishnan602/funnas1.0
import React from 'react'; import Relay from 'react-relay'; var ReactBootstrap = require('react-bootstrap'); class Header extends React.Component { onReload() { this.props.relay.forceFetch(); } componentWillMount() { document.body.style.backgroundColor = "#e9ebee"; } compo...
src/parser/warrior/arms/modules/core/Execute/Rend.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import ExecuteRange from './ExecuteRange'; class RendAna...
website/modules/components/Guide.js
asaf/react-router
import React from 'react' import PropTypes from 'prop-types' import { Redirect, Route } from 'react-router-dom' import { Block } from 'jsxstyle' import ScrollToDoc from './ScrollToDoc' import MarkdownViewer from './MarkdownViewer' // almost identical to `API`, but I'm lazy rn const Guide = ({ match, data }) => { con...
src/svg-icons/communication/invert-colors-off.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationInvertColorsOff = (props) => ( <SvgIcon {...props}> <path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5...
src/components/GuestModal/GuestModal.js
joyvuu-dave/comeals-ui-react
// rendered by MealView import React from 'react' import Modal from 'react-modal' type Props = { data: { open: boolean, host: string, resident_id: number, multiplier: number, vegetarian: boolean }, actions: { close: Function, toggleVeg: Function, toggleMultiplier: Function, ad...
src/client/react/components/presentational/Result.js
nloomans/rooster.hetmml.nl
/** * Copyright (C) 2018 Noah Loomans * * This file is part of rooster.hetmml.nl. * * rooster.hetmml.nl is free software: 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 * (at your op...
test/deprecate-Link-location-props-test.js
rackt/rackt-codemod
import React from 'react'; const ACTIVE = { color: 'red' }; class App extends React.Component { render() { return ( <div> <h1>APP!</h1> <ul> <li><Link to="/" activeStyle={ACTIVE}>/</Link></li> <li><IndexLink to="/" activeStyle={ACTIVE}>/ IndexLink</IndexLink></li> ...
src/server.js
HasanSa/hackathon
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...
examples/js/selection/multi-select-table.js
dana2208/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, ...
wrappers/md.js
ahonn/gatsby-blog
/* eslint-disable */ import React from 'react' import Helmet from 'react-helmet' import { config } from 'config' import Article from '../src/layouts/Article' import Page from '../src/layouts/Page' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, ren...
src/containers/SalesChance/Information/Information.js
UncleYee/crm-ui
import React from 'react'; import ChanceInfo from './ChanceInfo'; export default class Information extends React.Component { static propTypes = { dataInfo: React.PropTypes.object, editFlag: React.PropTypes.string, updateChanceData: React.PropTypes.func, updateLogInfo: React.PropTypes.func, }; co...
react/react-svg/src/index.js
yuanzhaokang/myAwesomeSimpleDemo
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/features/movie-detail-tv/index.js
rldona/react-native-tab-view-seed
import React, { Component } from 'react'; import { Text, Image, View, TouchableOpacity, ScrollView, StyleSheet, Dimensions, Share, InteractionManager } from 'react-native'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as historialActions from '../../redux/a...
src/Containers/NotificationsContainer.js
sashasushko/moira-front
// @flow import React from 'react'; import type { ContextRouter } from 'react-router-dom'; import type { IMoiraApi } from '../Api/MoiraAPI'; import type { Notification } from '../Domain/Notification'; import { withMoiraApi } from '../Api/MoiraApiInjection'; import Layout from '../Components/Layout/Layout'; type Props ...
src/components/ui/FeatureList.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { defineMessages, intlShape } from 'react-intl'; import { FeatureItem } from './FeatureItem'; import { PLANS } from '../../config'; const messages = defineMessages({ availableRecipes: { id: 'pricing.features.recipes', defau...
src/interface/icons/Intellect.js
fyruna/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 17 32 32" className="icon" {...props}> <path d="M28.832,44.802h6.559v-1.101h-6.559V44.802z M29.91,47.004h4.402v-1.101H29.91V47.004z M32.156,18.379c-0.012,0-0.031,0-0.045,0c-0.014,0-0.033,0-0.045,0...
storybook/container.js
Byndyusoft/ui.molecules
import React from 'react'; export default story => <div style={{ padding: 16 }}>{ story() }</div>;
src/components/Icons.js
stefcot/react-design-easier
import React from 'react'; import * as ActionTypes from './../actions/ActionTypes'; const Icons = {}; /** * * @type {React.Component} */ Icons[ActionTypes.SELECT] = class extends React.Component { render() { let iconId = `${this.props.name}_Icon`; let fillId = `${this.props.name}_FILL`; ...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
website/pages/404.js
rofrischmann/fela
import React from 'react' import { Box } from 'kilvin' import Head from 'next/head' import { useFela } from 'react-fela' import Layout from '../components/Layout' import Button from '../components/Button' export default function Page() { const { theme } = useFela() return ( <> <Layout> <Box spa...
examples/3-complex/src/index/home/App.js
chikara-chan/react-power
import React from 'react' import styles from './App.scss' function App() { return ( <div> <h1 className={styles.title}>Home</h1> </div> ) } export default App
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
JeeLiu/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
src/components/CountyMap/CountyMap.js
Swizec/h1b-software-salaries
import React, { Component } from 'react'; import * as d3 from 'd3'; import * as topojson from 'topojson'; import _ from 'lodash'; import County from './County'; class CountyMap extends Component { // Setup default D3 objects // projection - defines our geo projection, how the map looks // geoPath - cal...
src/svg-icons/action/settings-applications.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsApplications = (props) => ( <SvgIcon {...props}> <path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c...
examples/demos/dndOutsideSource.js
TeaBough/react-big-calendar
import React from 'react' import events from '../events' import { Calendar, Views } from 'react-big-calendar' import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop' import Layout from 'react-tackle-box/Layout' import Card from '../Card' import 'react-big-calendar/lib/addons/dragAndDrop/styles.scss' c...
client/extensions/woocommerce/app/dashboard/setup/notices.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { get } from 'lodash'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import { getCurrentUser, isCurrentUserEmailVerif...
submissions/pasieronen/client.js
gterzian/flux-challenge
import React from 'react'; import Dispatcher from './Dispatcher'; import * as JediConstants from './JediConstants'; import JediApp from './JediApp'; import * as JediStore from './JediStore'; window.onload = () => Dispatcher.dispatch(JediConstants.START, { firstJediId: 3616, firstJediUrl: "http://localhost:...
src/client/time.js
dvorakjan/noderunner-gui
import React from 'react'; export default class Time extends React.Component { constructor(props) { super(props); this.state = this.update(); setInterval(() => self.update(), 1000); } update() { var state = {delta: this.props.started > 0 ? Math.round((Date.now()/1000 - this.props.started)) : 0...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ...
src/routes/blog/BlogContent.js
yvanwangl/UniversalBlog
import React from 'react'; import PropTypes from 'prop-types'; import ReadEditor from '../../components/ReadEditor/ReadEditor'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './index.css'; class BlogContent extends React.Component { constructor(props) { super(props); } render() {...
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js
disparu86/react-native
'use strict'; import React, { Component } from 'react'; import { Image, Platform, StyleSheet, } from 'react-native'; import ListItem from '../../components/ListItem'; import WelcomeText from './WelcomeText'; export default class WelcomeScreen extends Component { static navigationOptions = { title: 'Welc...
src/components/Tabs/Tabs-story.js
jzhang300/carbon-components-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import Tabs from '../Tabs'; import Tab from '../Tab'; const props = { tabs: { className: 'some-class', triggerHref: '#anotherAnchor', }, tab: { className: 'another-class', o...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
darioajr/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
client/src/components/employer/whyHireGrads.js
Siyanda-Mzam/hire-grad
import React from 'react'; const WhyHireGrads = () => { return ( <div className="section"> <div className="container"> <div className="columns"> <div className="column is-7 is-half content"> <h1>Access a curated list of graduates</h1> <br /> <h4><strong>Only the best</strong></h4...
src/pages/chocris.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Chocris' /> )
app/components/DataRangeForm.js
seungha-kim/grade-sms
// @flow import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import type { Map as IMap } from 'immutable'; import { Card, CardTitle, CardText, CardActions } from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import { basename } from 'path'; import s fro...
react-router-tutorial/lessons/07-more-nesting/index.js
zerotung/practices-and-notes
import React from 'react' import { render } from 'react-dom' import { Router, Route, hashHistory } from 'react-router' import App from './modules/App' import About from './modules/About' import Repos from './modules/Repos' import Repo from './modules/Repo' render(( <Router history={hashHistory}> <Route path="/" ...
client/src/components/systems/Container.js
DjLeChuck/recalbox-manager
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import { grep, translatableConf, save } from '../../api'; import { promisifyData, cancelPromises } from '../../utils'; import Systems from './Systems'; class SystemContainer extends Component { st...
assets/javascripts/archon/pages/AppDetailPage.js
panli889/archon
import React from 'react'; import {History} from 'react-router'; import * as AppActions from '../models/actions/Apps'; import MDL from '../components/MdlComponents'; import AppSummaryCard from '../components/AppSummaryCard'; import CreateAppCard from '../components/CreateAppCard'; import AppProcDetailCard from '../com...
src/components/Header/index.js
jahammo2/portfolio-web_client
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './index.scss'; import MenuBar from '../../components/MenuBar'; import { Link } from 'react-router'; const propTypes = { children: PropTypes.node, handleOpenSideBar: PropTypes.func, sideBarShown: PropTypes.func, sideBarShowing...
src/svg-icons/content/text-format.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentTextFormat = (props) => ( <SvgIcon {...props}> <path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/> </SvgIcon> ); ContentTextFormat = pure(C...
react/src/components/dashboard/tools/toolsTxPush.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import addCoinOptionsCrypto from '../../addcoin/addcoinOptionsCrypto'; import addCoinOptionsAC from '../../addcoin/addcoinOptionsAC'; import Select from 'react-select'; import { triggerToaster, copyString, apiToolsBalance, apiTools...
src/svg-icons/content/send.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSend = (props) => ( <SvgIcon {...props}> <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/> </SvgIcon> ); ContentSend = pure(ContentSend); ContentSend.displayName = 'ContentSend'; ContentSend.muiName = ...
app/scripts/TilesetFinder.js
hms-dbmi/higlass
import React from 'react'; import PropTypes from 'prop-types'; import slugid from 'slugid'; import CheckboxTree from 'react-checkbox-tree'; import { tileProxy } from './services'; import '../styles/TilesetFinder.css'; import withPubSub from './hocs/with-pub-sub'; // Configs import { TRACKS_INFO } from './configs'; ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInferred.js
mroch/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps = {}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaultProps = {}; ...
sms_sponsorship/webapp/src/components/Message.js
maxime-beck/compassion-modules
import React from 'react'; export default class extends React.Component { render() { let styles = { loadingContainer: { verticalAlign: 'middle', marginTop: '120px', textAlign: 'center' }, loadingTextContainer: { ...
src/layouts/index.js
H3yfinn/finbarmaunsell.com
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' import './index.css' const Header = () => ( <div style={{ background: '#2452c2', marginBottom: '1.45rem', }} > <div style={{ display: '-ms-flexbox', ...
src/components/EditCheckInItem/messages.links.js
transitlinks/web-app
import React from 'react'; import { defineMessages } from 'react-intl'; export default defineMessages({ 'links-title': { id: 'account.links.linksTitle', defaultMessage: 'User links', description: 'User links' } });
src/svg-icons/action/track-changes.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrackChanges = (props) => ( <SvgIcon {...props}> <path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s...
frontend/src/components/controls/SidebarUI/index.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { dispatchEvent, inStorage, getStorage, setStorage } from 'helpers/utils'; import Resizable from 'components/Resizable'; import './style.scss'; class SidebarUI extends Component { static prop...
packages/ringcentral-widgets-docs/src/app/pages/Components/AlertDisplay/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import AlertDisplay from 'ringcentral-widgets/components/AlertDisplay'; import styles from './styles.scss'; const props = {}; props.dismiss = () => null; props.currentLocale = 'en-US'; props.messages = [ { id: '111', level: 'success', message: 'succe...
js/components/deckswiper/index.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Image, View } from 'react-native'; import { Container, Header, Title, Button, IconNB, DeckSwiper, Card, CardItem, Icon, Thumbnail, Text, Left, Right, Body, Content } from 'native-base'; import { openDrawer } from '../../actions/...
examples/3-complex/src/login/index.js
chikara-chan/react-power
import React from 'react' import { render } from 'react-dom' import { AppContainer } from 'react-hot-loader' import App from './components/App' function renderHTML() { render( <AppContainer> <App /> </AppContainer>, document.getElementById('root') ) } renderHTML() if (module.hot) { module.hot...
app/components/IssueIcon/index.js
Zurico/t7
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/Main/PlayerSelecter.js
enragednuke/WoWAnalyzer
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import ReactTooltip from 'react-tooltip'; import { getReport } from 'selectors/report'; import { getCombatants } from 'selectors/combatants'; import PlayerSelec...
app/App.js
albybarber/blackpanda
import React from 'react' import Hello from './components/hello/hello' import Grid from './components/grid/grid' // import IconPage from './atoms/icons/docs/IconPage' export default class App extends React.Component { render () { return ( <div> <Hello /> <grid /> </div> ) } }...
node_modules/react-bootstrap/es/DropdownToggle.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/server/html.js
matystl/shopping_list
import React from 'react'; export default class Html extends React.Component { render() { // Only for production. For dev, it's handled by webpack with livereload. const linkStyles = this.props.isProduction && <link href={`/build/app.css?v=${this.props.version}`} rel="stylesheet" ...
app/routes.js
ayqy/ready-to-work
import React from 'react'; import { Switch, Route } from 'react-router'; import MainPage from './containers/MainPage'; import LoginPage from './containers/LoginPage'; import HistoryPage from './containers/HistoryPage'; import SettingPage from './containers/SettingPage'; export default ( <Switch> <Route exact pa...
src/components/RestaurantList.js
rgdelato/instantly-lunch
import React, { Component } from 'react'; import { TransitionMotion, spring } from 'react-motion'; import RestaurantItem from '../containers/RestaurantItem'; import RestaurantAdd from '../containers/RestaurantAdd'; export default class RestaurantList extends Component { constructor (props) { super(props); this...
src/App.js
michael-lowe-nz/trigMeOnce
import React, { Component } from 'react'; import Main from './components/Main' import Nav from './components/Nav' class App extends Component { render() { return ( <div className="App"> <Nav /> <Main state={this.props.state} dispatch={this.props.dispatch}/> </div> ) } } export...
src/containers/DevTools.js
oldsaratov/postcards-spa
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 /> </...
examples/03 Nesting/Drag Sources/Container.js
longlho/react-dnd
import React, { Component } from 'react'; import SourceBox from './SourceBox'; import TargetBox from './TargetBox'; import Colors from './Colors'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; @DragDropContext(HTML5Backend) export default class Container extends Compo...
src/js/Root.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Router, Route, applyRouterMiddleware } from 'react-router'; import { useScroll } from 'react-router-scroll'; import App from './App'; import HomePage from './pages/HomePage'; import AnswerUsernamePage from './pages/AnswerUsernamePag...
src/page/Contacts.js
munyrasirio/mss-chat
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TouchableOpacity, FlatList } from 'react-native'; import { Menu, Name, MenuItem, Contact } from '../component'; import logo from '../img/icon.png'; import avatar2 from '../img/avatar2.jpg'; import avatar1 from '../img/avatar1.jpg'; exp...
react-router/components/Routes.js
JonnyCheng/flux-examples
import React from 'react'; import { DefaultRoute, Route } from 'react-router'; import Application from './Application'; import Home from './Home'; import About from './About'; const routes = ( <Route name="app" path="/" handler={Application}> <Route name="about" handler={About}/> <DefaultRoute name...
src/Parser/DeathKnight/Blood/Modules/Features/WastedDeathAndDecay.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Combatants from 'Parser/Core/Mo...
src/cms/preview-templates/post-preview.js
bapti/blog
// @flow strict import React from 'react'; import type { Entry, WidgetFor } from '../../types'; type Props = { entry: Entry, widgetFor: WidgetFor }; const PostPreview = ({ entry, widgetFor }: Props) => { const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return ( <div classNa...
src/parser/priest/shadow/modules/spells/Dispersion.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import calculateMaxCasts from 'parser/core/calculateMaxCasts'; import Voidform from './Voidform'; const DISPERSION_...
step7-unittest/node_modules/react-router/es6/Lifecycle.js
jintoppy/react-training
'use strict'; import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation...
app/pages/resource/resource-header/ResourceHeader.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React from 'react'; import Button from 'react-bootstrap/lib/Button'; import Grid from 'react-bootstrap/lib/Grid'; import { FormattedNumber } from 'react-intl'; import round from 'lodash/round'; import injectT from '../../../i18n/injectT'; import FavoriteButton from '../../../...
src/components/articles.js
mazairaj/thejulianmaz
import React from 'react'; const Articles = function () { return ( <div style={{ backgroundColor: 'orange', flex: 1 }}> <h1>My Articles</h1> </div> ); }; export default Articles;