path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/utils/createElement.js
td-ui/td-ui.github.io
/** * @Author: Zhengfeng.Yao <yzf> * @Date: 2017-06-12 10:32:34 * @Last modified by: yzf * @Last modified time: 2017-06-12 10:32:34 */ import React from 'react'; import NProgress from 'nprogress'; export default function createElement(Component, props) { NProgress.done(); const dynamicPropsKey = props.lo...
src/svg-icons/image/collections.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
src/components/Code/index.js
wundery/wundery-ui-react
import React from 'react'; import { spacingStyles } from '../Spacing/utils'; // eslint-disable-next-line import/prefer-default-export export function Code({ children, margin }) { const style = spacingStyles({ margin }); return <div className="ui-code" style={style}>{children}</div>; } Code.propTypes = { childre...
web/src/components/pages/NotFoundPage.js
Takaitra/RecipeRunt
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
test/test_helper.js
godfredcs/youtube-project
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...
springboot/GReact/src/main/resources/static/app/routes/forms/containers/BootstrapEditors.js
ezsimple/java
import React from 'react' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import MarkdownEditor from '../../../components/forms/editors/MarkdownEditor' import Summernote from '../../../components/forms/editors/Summernote' import AttachSummernote from '../../../components/forms/edi...
app/components/Suggestions.js
abiduzz420/learn-anything-mobile
import React, { Component } from 'react'; import { ScrollView, TouchableOpacity, Text, View } from 'react-native'; import axios from 'axios'; import _ from 'lodash'; const BASE_URL = `https://learn-anything.xyz/api`; class Suggestions extends Component { selectSubject = id => { const FETCH_MAP = `${BASE_URL}/ma...
src/svg-icons/hardware/tv.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTv = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); HardwareTv = pure(Hardwar...
examples/huge-apps/routes/Calendar/components/Calendar.js
mjw56/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
blueocean-material-icons/src/js/components/svg-icons/action/rounded-corner.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionRoundedCorner = (props) => ( <SvgIcon {...props}> <path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm-8 0h2v-2H7v2zm-4 0h2v-2H3v2zM...
imports/ui/components/map/map-nearby-box.js
irvinlim/free4all
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import { Scrollbars } from 'react-custom-scrollbars'; import NearbyGiveaways from '../../containers/giveaways/nearby-giveaways'; import * as IconsHelper from '../../../util/icons'; export default class MapNearbyBox extend...
src/components/common/TextEditor/Mark/ItalicMark.js
anztrax/simple-image-server-frontend
import React from 'react'; export default class ItalicMark extends React.Component{ constructor(props){ super(props); } render(){ return ( <em>{this.props.children}</em> ) } }
app/javascript/mastodon/features/ui/components/focal_point_modal.js
koba-lab/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { changeUploadCompose, uploadThumbnail, onCha...
react/javascript/map-iframe/src/App.js
looker-open-source/extension-examples
/* MIT License Copyright (c) 2022 Looker Data Sciences, 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, modi...
packages/storybook/examples/core/Popup.stories.js
iCHEF/gypcrete
import React from 'react'; import { action } from '@storybook/addon-actions'; import Popup, { PurePopup } from '@ichef/gypcrete/src/Popup'; import PopupButton from '@ichef/gypcrete/src/PopupButton'; import Checkbox from '@ichef/gypcrete/src/Checkbox'; const reactLogoImg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0ia...
src/containers/NotFound/NotFound.js
kennethtruong/pagrader
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/pages/sara-mari.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Sara Mari' /> )
src/svg-icons/device/signal-wifi-1-bar.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M6.67 14.86L12 21.49v.01...
src/dumb/buttons/IconButton.js
jeckhummer/ebidding-commercial
import React from 'react'; import {Icon, Popup} from "semantic-ui-react"; export class IconButton extends React.Component{ render() { const icon = ( <Icon circular inverted disabled={this.props.disabled} name={this.props.name} ...
src/Parser/EnhancementShaman/Modules/Features/ProcTracker.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import CoreCooldownTracker, { BUILT_IN_SUMMARY_TYPES } from 'Parser/Core/Modules/CooldownTracker'; import Tab from 'Main/Tab'; import CooldownOverview from 'Main/CooldownOverview'; class ProcTracker extends CoreCooldownTracker { static cooldownSpells ...
src/control/settings/settings.js
BuildFire/placesPlugin2
import buildfire from 'buildfire'; import React from 'react'; import orderBy from 'lodash/orderBy'; import debounce from './lib/debounce'; import MapOptions from './components/MapOptions'; class Settings extends React.Component { constructor(props) { super(props); this.state = { data: {}, configB...
react/src/components/ModalTitleAndUpload/index.js
sinfin/folio
import React from 'react' class ModalTitleAndUpload extends React.PureComponent { triggerUpload = () => { window.jQuery('.folio-console-react-modal.show .folio-console-dropzone-trigger').click() } render () { return ( <div className='modal-header border-bottom-0 pr-5'> <h3 className='mr-g ...
src/svg-icons/content/inbox.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> <...
tests/react/ConcurrentMode.js
gabelevi/flow
// @flow import React from 'react'; { const {ConcurrentMode} = React; <ConcurrentMode> <div /> </ConcurrentMode> } { const {Component, ConcurrentMode} = React; class ClassExample extends Component<{||}> { render() { return null; } } <ConcurrentMode> <ClassExample /> </Concurr...
src/components/common/Header.js
ashutosh-singh-rawat/react-redux-starter
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, Link, IndexLink } from 'react-router-dom'; import LoadingDots from './LoadingDots'; const Header = ({loading}) => { return( <nav> <NavLink exact to="/" activeClassName="active label-success" className="label label-primary">Hom...
src/components/theme-legacy/loading.js
MoveOnOrg/mop-frontend
import React from 'react' export const Loading = () => ( <div className='moveon-petitions container background-moveon-white bump-top-1'> <div className='container'> <div className='row'> <div className='span12' style={{ height: '300px' }}> <p style={{ textAlign: ...
client/src/components/landing/artistLand.js
AuggieH/GigRTC
import React from 'react'; import { Component } from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; let signup = { } let viewActive = { } export default class ArtistLand extends Component{ render(){ return( <div> <div className="art-land-wrap"> <div className='left'>...
src/components/gridlines.js
boonier/piano-rolla-two
import React from 'react'; import GridLine from './gridline' export default class GridLines extends React.Component { constructor(props) { super(props); }; render() { return ( <g className={this.props.className}> {this.createGridLines(this.props)} </g> ); }; createGridLines(props) { let gr...
examples/huge-apps/components/GlobalNav.js
jbbr/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
components/table/TableCell.js
rubenmoya/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { TABLE } from '../identifiers'; import InjectFontIcon from '../font_icon/FontIcon'; const ASC = 'asc'; const DESC = 'desc'; const factory = (FontIcon) => ...
example/examples/TakeSnapshot.js
adamivancza/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, Image, } from 'react-native'; import MapView from 'react-native-maps'; import flagBlueImg from './assets/flag-blue.png'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('win...
src/index.js
937aaron/reduxblog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import promise from 'redux-promise'; import PostsIndex from './components/posts_index.js'; import P...
src/pages/number/Freivalds/Freivalds.js
hyy1115/react-redux-webpack3
import React from 'react' class Freivalds extends React.Component { render() { return ( <div>Freivalds</div> ) } } export default Freivalds
ajax/libs/react-instantsearch/5.0.1/Connectors.js
jonobr1/cdnjs
/*! ReactInstantSearch 5.0.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
app/src/components/FeaturedItems.js
GetStream/Winds
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import getPlaceholderImageURL from '../util/getPlaceholderImageURL'; import { Link } from 'react-router-dom'; import { getFeatured } from '../api'; class FeaturedItems extends React.Component { constructor(props) { ...
results/react/src/components/search-box/search-box.js
jeremenichelli/movies
import React, { Component } from 'react'; import search from '../../services/search'; import Icon from '../icon/icon.js'; import styles from './search-box.less'; const searchIcon = <Icon className={ styles.icon } type="search"></Icon>; class SearchBox extends Component { constructor(props) { super(props); ...
app/javascript/mastodon/features/ui/components/zoomable_image.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const MIN_SCALE = 1; const MAX_SCALE = 4; const getMidpoint = (p1, p2) => ({ x: (p1.clientX + p2.clientX) / 2, y: (p1.clientY + p2.clientY) / 2, }); const getDistance = (p1, p2) => Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client...
src/Flags/Gabon.js
runjak/css-flags
// @flow import React from 'react'; import LinearFlag from './LinearFlag'; import gradient from '../utils/gradient'; const green = '#009F60'; const yellow = '#FCD20F'; const blue = '#3876C5'; export default function Gabon() { return ( <LinearFlag gradient={`${gradient([green, yellow, blue])}`} /> )...
src/components/content/Dev/DevNiceToKnow.js
dreamyguy/sidhree-com
import React from 'react'; import './DevNiceToKnow.scss'; const DevNiceToKnow = () => { return ( <div className="row"> <div className="small-12 columns"> <div> <div className="row"> <div className="small-12 medium-2 columns align-center"><i className="icon icon-4x icon-fa-code...
src/Components/About.js
kybetter/react-router-demo
/** * Created by ZhaoLiang on 2017/5/17. */ import React, { Component } from 'react'; class About extends Component { render () { return ( <div> <h2>About</h2> </div> ) } } export default About;
packages/@lyra/components/src/loading/story.js
VegaPublish/vega-studio
import React from 'react' import {storiesOf} from 'part:@lyra/storybook' import Spinner from 'part:@lyra/components/loading/spinner' import AppLoadingScreen from 'part:@lyra/base/app-loading-screen' import {withKnobs, boolean, text} from 'part:@lyra/storybook/addons/knobs' import Lyra from 'part:@lyra/storybook/addon...
src/components/ListItemGame.js
jonstuebe/farkle
import React from 'react'; import ListItem from './ListItem'; import { Link } from 'react-router'; const ListItemGame = React.createClass({ render(){ const players = this.props.players.join(', '); return ( <div className="list-item-game"> <Link to={ "/game/" + this.props.id + "/" }><ListItem t...
src/svg-icons/maps/directions-bus.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBus = (props) => ( <SvgIcon {...props}> <path d="M4 16c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8...
views/Business/nwdHome.js
leechuanjun/TLRNProjectTemplate
/** * Created by TridonLee on Mon July 22 2016 11:28:33 GMT+0800 (CST). */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView, TouchableOpacity, AlertIOS, } from 'react-native'; import NWDHomeDetail from './home/nwdHomeDetail'; import NWDSliderBar from '...
src/containers/pages/reddit/posts/content/body/body-item.js
vFujin/HearthLounge
import React from 'react'; import {Link} from "react-router-dom"; import PropTypes from 'prop-types'; import RedditPostUpvotes from './assets/upvotes'; import RedditPostTitle from './assets/title'; import RedditPostComments from "./assets/comments"; import RedditPostCreated from "./assets/created"; const RedditPostsBo...
src/components/Documentation/Documentation.react.js
OpusCapitaBES/js-react-showroom-client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import './Documentation.less'; import Markdown from 'react-remarkable'; export default class Documentation extends Component { static propTypes = { markdown: PropTypes.string }; render() { let { isMobileScreen, isHorizontalLay...
src/pages/_blog.js
Charca/me
import React from 'react' import { Link, graphql } from 'gatsby' import get from 'lodash/get' import Helmet from 'react-helmet' import Bio from '../components/Bio' import Layout from '../components/layout' import { rhythm } from '../utils/typography' class BlogIndex extends React.Component { render() { const si...
node_modules/react-bootstrap/es/Clearfix.js
skinsshark/skinsshark.github.io
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
examples/todos-with-undo/src/components/Footer.js
jhwgnu/redux
import React from 'react' import FilterLink from '../containers/FilterLink' const Footer = () => ( <p> Show: {" "} <FilterLink filter="SHOW_ALL"> All </FilterLink> {", "} <FilterLink filter="SHOW_ACTIVE"> Active </FilterLink> {", "} <FilterLink filter="SHOW_COMPLETED">...
components/DoneButton.android.js
FuYaoDe/react-native-app-intro
import React from 'react' import { Text, View, TouchableOpacity, } from 'react-native'; export const DoneButton = ({ styles, onDoneBtnClick, onNextBtnClick, rightTextColor, isDoneBtnShow, doneBtnLabel, nextBtnLabel, }) => { return ( <View style={[styles.btnContainer, { height: 0, paddingBottom: 5 }]}...
app/javascript/mastodon/features/ui/components/onboarding_modal.js
ambition-vietnam/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'cl...
dist/react-google-calendar-events-list.es.js
VinSpee/react-gcal-events-list
import React from 'react'; var classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; var createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { ...
examples/src/components/Contributors.js
matroid/react-select
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
src/nav.js
jaketrent/react-drift
import PropTypes from 'prop-types' import React from 'react' import styleable from 'react-styleable' import css from './nav.css' function getPrevClassName(props) { return props.hasPrevious ? props.css.prev : props.css.prevHidden } function getNextClassName(props) { return props.hasNext ? props.css.next : props.c...
src/parts/ViewNavigation.js
YouCanBookMe/react-datetime
import React from 'react'; export default function ViewNavigation( { onClickPrev, onClickSwitch, onClickNext, switchContent, switchColSpan, switchProps } ) { return ( <tr> <th className="rdtPrev" onClick={ onClickPrev }> <span>‹</span> </th> <th className="rdtSwitch" colSpan={ switchColSpan } onClick={...
src/Dialog/__tests__/Dialog_test.js
kmees/react-fabric
import React from 'react' import { render } from 'enzyme' import test from 'tape' import Dialog, { DialogAction, DialogTitle, DialogSubtext } from '../index.js' test('Dialog', t => { t.ok(Dialog, 'export') t.equal(Dialog.Action || false, DialogAction, '.Action export') t.equal(Dialog.Title || false, DialogTitle...
docs/src/app/components/pages/components/TextField/ExampleControlled.js
frnk94/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; export default class TextFieldExampleControlled extends React.Component { constructor(props) { super(props); this.state = { value: 'Property Value', }; } handleChange = (event) => { this.setState({ value: eve...
Example/main.js
shimohq/react-native-prompt-android
import React, { Component } from 'react'; import { Platform } from 'react-native'; import { AppRegistry, StyleSheet, Text, View, TouchableHighlight } from 'react-native'; import prompt from 'react-native-prompt-android'; export default class PromptAndroid extends Component { constructor() { ...
node_modules/react-native/Libraries/Components/MapView/MapView.js
nauman-ahmad-qureshi/adsManagement
/** * 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. * * @provides...
app/config/routes.js
danielfranca/xpensetrackrreact
import React from 'react'; import {Router, Route, IndexRoute, hashHistory, DefaultRoute} from 'react-router'; import MainContainer from '../containers/MainContainer'; import Home from '../components/Home'; var routes = ( <Router history={hashHistory}> <Route path='/' component={MainContainer} > <IndexR...
src/components/Tickets/Projects.js
nadavspi/UnwiseConnect
import React from 'react'; import classnames from 'classnames'; const Projects = props => { return ( <div className="projects list-group"> {props.projects.map(ticket => { const className = classnames('list-group-item', { 'active': props.selectedProject['company.name'] === ticket.company.n...
app/javascript/mastodon/features/tutorial/components/tutorial_nav.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TutorialNav extends React.Component { static propTypes = { tutorialSkip: PropTypes.func.isRequired, tutorialNextPage: PropTypes.func.isRequired, navText: PropTypes.string.isRequired, isLast: PropTypes.bool, }; t...
src/docs/examples/EyeIcon/Example.js
zeegeek/ps-react-reusable-comp
import React from 'react'; import EyeIcon from 'rc-react/EyeIcon'; export default function EyeIconExample() { return <EyeIcon /> }
node_modules/semantic-ui-react/dist/es/collections/Form/FormButton.js
SuperUncleCat/ServerMonitoring
import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; import Button from '../../elements/Button'; import FormField from './FormField'; /** * Sugar for <Form.Field control={Button} />. * @see Button * @s...
src/app/budget/BudgetSummaryDetails.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import BudgetDetailsTable from './BudgetDetailsTable'; import BudgetDetailsTreemap from './BudgetDetailsTreemap'; import PageHeader from '../../shared/PageHeader'; import ButtonGroup from '../../shared/ButtonGroup'; import LinkButton from '../../shared/Link...
source/client/components/sub-components/MovieVotePanel.js
achobanov/ReactJS-Fundamentals-lab
import React from 'react'; import FormActions from '../../actions/FormActions'; import MovieActions from '../../actions/MovieActions'; import FormStore from '../../stores/FormStore'; export default class MovieVotePanel extends React.Component { constructor(props) { super(props); this.state ...
lavalab/html/node_modules/react-bootstrap/es/Button.js
LavaLabUSC/usclavalab.org
import _Object$values from 'babel-runtime/core-js/object/values'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
docs/app/Examples/modules/Popup/Types/PopupExampleHtml.js
vageeshb/Semantic-UI-React
import React from 'react' import { Popup, Card, Rating, Image } from 'semantic-ui-react' const IndividualCard = ( <Card> <Image src='http://semantic-ui.com/images/movies/totoro-horizontal.jpg' /> <Card.Content> <Card.Header> My Neighbor Totoro </Card.Header> <Card.Description> ...
src/svg-icons/image/panorama-horizontal.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaHorizontal = (props) => ( <SvgIcon {...props}> <path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C...
src/components/Row.js
nanomish/a9
import React from 'react'; //import PropTypes from 'prop-types'; import {StyleSheet, View, Text, TouchableHighlight, Platform} from 'react-native'; function Row({title, onPress, platform, testID}) { if (platform && platform !== Platform.OS) { return <View />; } return ( <TouchableHighlight onPress...
src/plugins/local/components/PreviousButtonContainer.js
joellanciaux/Griddle
import React from 'react'; import { connect } from '../../../utils/griddleConnect'; import { textSelector, hasPreviousSelector, classNamesForComponentSelector, stylesForComponentSelector } from '../selectors/localSelectors'; import { getPrevious } from '../../../actions'; const enhance = OriginalComponent => connect(...
src/svg-icons/action/view-quilt.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
src/svg-icons/action/gif.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGif = (props) => ( <SvgIcon {...props}> <path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"/> </Svg...
examples/todomvc/containers/TodoApp.js
Spacerat/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
node_modules/react-bootstrap/es/Media.js
FoxMessenger/nyt-react
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/map/addSegment.js
ruipgil/GatherMySteps
import React from 'react' import store from 'store' import SegmentToolbox from 'components/SegmentToolbox' import { Polyline, FeatureGroup, DivIcon, Marker } from 'leaflet' import { createPointsFeatureGroup, renderToDiv, createPointIcon, createMarker } from './utils' import { Provider } from 'react-redux' import buildT...
app/javascript/mastodon/features/ui/components/tabs_bar.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; import Icon from 'mastodon/components/icon'; import No...
src/parser/paladin/retribution/modules/holypower/HolyPowerDetails.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Panel from 'interface/statistics/Panel'; import { formatNumber, formatPercentage } from 'common/format'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import BoringResourc...
source/view/home.ios.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, RefreshControl } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Drawer from 'react-native-drawer' import PureRenderMixin from 'react-addons-pure-render-mixin'; import ViewPage from '../component...
client/modules/Calendar/__tests__/components/PostListItem.spec.js
sethkaufee/TherapyApp
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
StarterRNP/src/screens/common/Button.js
khanhqd/ProjectOT1
import React, { Component } from 'react'; import { View, Text, TouchableOpacity } from 'react-native'; const Button = ({ onPress, text, color }) => { return ( <TouchableOpacity onPress={onPress} style={[styles.button, { borderColor: color }]}> <Text style={[styles.text, { color }]}>{tex...
src/components/Store.js
tony-luisi/eMazon-Me
import React from 'react' import { Link } from 'react-router' import ItemTN from './ItemTN' import { getStoreByID } from '.././data/thumbnailSampleData' class Store extends React.Component { constructor(props) { super(props) } componentWillMount() { var storeInfo = getStoreByID(parseInt(this.props.para...
src/index.js
CelesterSpencer/learn-mandarin
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/Footer/Footer.js
denichodev/personal-web
import React from 'react'; import SocialIcon from '../SocialIcon/SocialIcon'; import './Footer.css'; const Footer = () => { return ( <div className="footer-container"> <div className="line footer-line" /> <div className="footer"> <div className="socials-container-footer"> <SocialIco...
packages/lore-generate-new/templates/es5/src/components/RemoveLoadingScreen.js
lore/lore
/** * This component removes the loading screen. It does so by adding a class to hide it, * and then removes it from the DOM by setting the display property to 'none'. */ import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; export default createReactClas...
src/components/SvgIcon/EllipsisVertical.js
sk-iv/iva-app
import React from 'react'; import SvgIcon from './SvgIcon'; import classNames from 'classnames'; /** * @ignore - internal component. */ let EllipsisVertical = props => ( <SvgIcon {...props} className={classNames('icon--size24', props.className)}> <path d="M14,3c0,1.1-0.9,2-2,2s-2-0.9-2-2s0.9-2,2-2S14,1.9,14,3z...
src/Fade.js
rapilabs/react-bootstrap
import React from 'react'; import Transition from './Transition'; class Fade extends React.Component { render() { return ( <Transition {...this.props} className='fade' enteredClassName='in' enteringClassName='in' > {this.props.children} </Transition> ...
src/js/components/manage/Header.js
grommet/grommet-blog
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development Company, L.P. import React, { Component } from 'react'; import { Link } from 'react-router'; import Anchor from 'grommet/components/Anchor'; import Box from 'grommet/components/Box'; import Heading from 'grommet/components/Heading'; import Header from ...
src/control/content/components/CategoryListItem.js
BuildFire/placesPlugin2
import React from 'react'; class CategoryListItem extends React.Component { constructor(props) { super(props); this.state = { editing: false }; } toggleEditing() { if (this.state.editing) { this.handleSave(); } else { this.setState({ newValue: this.props.category.na...
src/js/basic/app.js
openwisp/netjsonconfig-editor.js
import React from 'react'; import BasicBody from './body'; import PropTypes from 'prop-types'; /** * Class to manage the UI for the basic Editor. * @class App * @extends React.Component */ class App extends React.Component { /** * Constructor to initialise the UI * @param {object} props - properties to ini...
src/containers/MatrixPage/MatrixPage.js
VumeroInstitute/Vumero-Talent-Matrix
/** * Created by wangdi on 25/9/17. */ import React from 'react'; import ReactDOM from 'react-dom'; import ColorCell from '../../components/ColorCell/ColorCell'; import './matrix-page.css'; import PropTypes from 'prop-types'; import Toggle from 'material-ui/Toggle'; import {connect} from 'react-redux'; import {store}...
src/svg-icons/editor/format-paint.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatPaint = (props) => ( <SvgIcon {...props}> <path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"/> </SvgIco...
app/javascript/mastodon/features/explore/components/story.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Blurhash from 'mastodon/components/blurhash'; import { accountsCountRenderer } from 'mastodon/components/hashtag'; import ShortNumber from 'mastodon/components/short_number'; import Skeleton from 'mastodon/components/skeleton'; import classNames from...
docs/components/InlineCode/index.js
WEACOMRU/react-plain-calendar
import React from 'react' import PropTypes from 'prop-types' import styles from './styles.css' const InlineCode = ({ children }) => ( <code className={styles.inlineCode}>{children}</code> ) InlineCode.propTypes = { children: PropTypes.string } InlineCode.defaultProps = { children: '' } export default InlineCo...
electron/app/containers/OpenSiteModal.js
zindlerb/motif
import React from 'react'; import { connect } from 'react-redux'; import { saveSiteAsDialog, loadSiteDialog, createImmutableJSSelector } from '../utils'; import CartoonButton from '../components/CartoonButton'; function SiteItem(props) { return ( <div className="site-item" onClick={props.onClick}> <...
src/svg-icons/editor/format-list-bulleted.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListBulleted = (props) => ( <SvgIcon {...props}> <path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 ...
src/svg-icons/notification/live-tv.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationLiveTv = (props) => ( <SvgIcon {...props}> <path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8...
src/index.js
rwynn/llave
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); render(<App />, document.getElementById('root'));
app/containers/btns/CommentBtnContainer.js
Caraxiong/react-demo
import React from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import { showDialogFun } from '../../actions/dialogActions' import Btn from '../../components/operator/Btn' const BtnContainer = ({ showDialogFun }) => ( <Btn onClick = { () => showDialogFun() } btnName={'12条评论'}/> )...
app/javascript/flavours/glitch/components/inline_account.js
im-in-space/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { makeGetAccount } from 'flavours/glitch/selectors'; import Avatar from 'flavours/glitch/components/avatar'; const makeMapStateToProps = () => { const getAccount = makeGetAccount(); ...