path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/src/app/components/pages/customization/InlineStyles.js
ruifortes/material-ui
import React from 'react'; import Title from 'react-title-component'; import Checkbox from 'material-ui/Checkbox'; import CodeExample from '../../CodeExample'; import typography from 'material-ui/styles/typography'; class InlineStyles extends React.Component { getStyles() { return { headline: { fon...
examples/CarouselFullWidth.js
chris-gooley/react-materialize
import React from 'react'; import Carousel from '../src/Carousel'; export default <Carousel options={{ fullWidth: true }} images={[ 'https://lorempixel.com/800/400/food/1', 'https://lorempixel.com/800/400/food/2', 'https://lorempixel.com/800/400/food/3', 'https://lorempixel.com/800/400/food/4', 'https://lor...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
WangCrystal/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...
examples/official-storybook/components/ImportedPropsButton.js
kadirahq/react-storybook
import React from 'react'; import { DocgenButton } from './DocgenButton'; /** Button component description */ const ImportedPropsButton = ({ disabled, label, onClick }) => ( <button type="button" disabled={disabled} onClick={onClick}> {label} </button> ); ImportedPropsButton.defaultProps = DocgenButton.defaul...
apps/dashboard/components/Board.js
chengethem/fangxia_WIT
import React, { Component } from 'react'; class Board extends Component { render() { return (<div></div>); } } export default Board;
src/scripts/VideoImage.js
williamthing/yoda
'use strict'; import React from 'react'; import Join from 'react/lib/joinClasses'; import VideoDuration from './VideoDuration'; export default React.createClass({ componentDidMount() { var imgTag = React.findDOMNode(this.refs.image); var imgSrc = imgTag.getAttribute('src'); var img = new window.Image()...
app/javascript/flavours/glitch/features/composer/upload_form/item/index.js
vahnj/mastodon
// Package imports. import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, defineMessages, } from 'react-intl'; import spring from 'react-motion/lib/spring'; // Components. import IconButton from 'flavours/glitch/components/icon_button'; //...
src/components/Navigation/NavItem.js
n3ssi3/liveaboard-express
import React from 'react' import PropTypes from 'prop-types' import { Route, Link } from 'react-router-dom' const NavItem = (props) => { const { to, exact, strict, activeClassName, className, activeStyle, style, isActive: getIsActive, ...rest } = props return ( <Route ...
src/router.js
fishmankkk/mircowater2.0
import React from 'react' import PropTypes from 'prop-types' import { Router } from 'dva/router' import App from 'view/app' const registerModel = (app, model) => { if (!(app._models.filter(m => m.namespace === model.namespace).length === 1)) { app.model(model) } } const Routers = function ({ history, app }) {...
src/app/components/footer.js
nazar/soapee-ui
import React from 'react'; import ShareThis from 'components/shareThis'; export default React.createClass( { shouldComponentUpdate() { return false; }, render() { return ( <footer className="footer hidden-print"> <div className="container"> ...
collect-webapp/frontend/src/datamanagement/components/recordeditor/NodeDefLabel.js
openforis/collect
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { Label } from 'reactstrap' import InfoIcon from 'common/components/InfoIcon' import { NodeDefinition } from 'model/Survey' const NodeDefLabel = (props) => { const { nodeDefinition, limitWidth } = props const {...
src/components/TrackerPad.js
KE-NIA/CircularitySolver
import React from 'react'; import FaroIonButtons from './FaroIonButtons'; import LeicaAt40xButtons from './LeicaButtons'; import FaroVantageButtons from './FaroVantageButtons'; export default class TrackerPad extends React.Component { constructor(props) { super(props); } render() { if (this.props.acti...
fields/types/embedly/EmbedlyField.js
kumo/keystone
import React from 'react'; import Field from '../Field'; import { FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'EmbedlyField', // always defers to renderValue; there is no form UI for this field renderField () { return this.renderValue(); }, renderValue (path, label, ...
app/javascript/mastodon/components/media_gallery.js
amazedkoumei/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
src/svg-icons/social/person-add.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPersonAdd = (props) => ( <SvgIcon {...props}> <path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/> </...
stack/src/routes.js
isabellewei/deephealth
'use strict'; import React from 'react' import { Route, IndexRoute } from 'react-router' import Layout from './components/Layout'; import IndexPage from './components/IndexPage'; import NotFoundPage from './components/NotFoundPage'; const routes = ( <Route path="/" component={Layout}> <IndexRoute component={Ind...
packages/arwes/src/Project/sandbox.js
romelperez/ui
import React from 'react'; import Arwes from '../Arwes'; import Words from '../Words'; import Project from './index'; export default () => ( <Arwes background="/images/background.jpg" pattern="/images/glow.png"> <div style={{ padding: 20 }}> <Project animate header="PROJECT, OFFICIA DESERUNT ANIM ID EST LA...
src/App.js
roytang121/phaser-game-demo
import React, { Component } from 'react'; import leftpad from 'left-pad'; import Beat from './Beat'; import getUserMedia from 'getusermedia'; import Parser from './Parser'; let game = null; let player = null; let groundHeight = 25; let totalPointText = null; let totalPoint = 0; let fullPoint = 0; let comboCount = 0; ...
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js
reedsa/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-public-url">{process.env.PUBLIC_URL}.</span> );
src/components/Links.js
hwclass/fe-as-microservices
import React from 'react' export default () => ( <div> <span>Links</span> </div> )
codes/chapter05/react-router-v4/advanced/demo01/app/components/NoMatch.js
atlantis1024/react-step-by-step
import React from 'react'; class NoMatch extends React.PureComponent { render() { return ( <div> <h2>无法匹配 <code>{this.props.location.pathname}</code></h2> </div> ) } } export default NoMatch;
src/components/Header.js
whirish/website
import React from 'react' import PropTypes from 'prop-types' const Header = props => ( <header id="header" style={props.timeout ? { display: 'none' } : {}}> <div className="logo"> <span className="icon fa-code" /> </div> <div className="content"> <div className="inner"> <h1>Liam O'Fly...
docs/client.js
pieter-lazzaro/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
client/src/components/Dialog/index.js
dotkom/super-duper-fiesta
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Card from '../Card'; import css from './Dialog.css'; const Dialog = ({ visible, title, subtitle, onClose, children, hideCloseSymbol }) => { const dialogClass = classNames(css.component, { [css.visible]: vis...
components/Spinner/Spinner.js
rpowis/pusscat.lol
import React, { Component } from 'react'; import './Spinner.scss'; export default class extends Component { render() { return ( <div className="spinner"> <div className="double-bounce1"></div> <div className="double-bounce2"></div> </div> ); } }
site/WorkHard_File/src/SideBar.js
harrydrippin/Workhard
import React, { Component } from 'react'; import {List, ListItem} from 'material-ui/List'; import AssignmentIcon from 'material-ui/svg-icons/action/assignment'; import NoteIcon from 'material-ui/svg-icons/av/note'; import AddIcon from 'material-ui/svg-icons/av/playlist-add'; class SideBar extends Component { const...
src/rsg-components/Methods/MethodsRenderer.js
bluetidepro/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import Markdown from 'rsg-components/Markdown'; import Argument from 'rsg-components/Argument'; import Arguments from 'rsg-components/Arguments'; import Name from 'rsg-components/Name'; import JsDoc from 'rsg-components/JsDoc'; import Table from 'rsg-compon...
src/shared/components/form/formEmail/formEmail.js
alexspence/operationcode_frontend
import React, { Component } from 'react'; import FormInput from '../formInput/formInput'; class FormEmail extends Component { render() { return ( <FormInput {...this.props} validationRegex={/\S+@\S+\.\S+/} validationErrorMessage="Must be a valid email" /> ); } } export...
src/Parser/Core/Modules/NetherlightCrucibleTraits/SecureInTheLight.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import HealingDone ...
src/pages/404.js
growcss/docs
import React from 'react'; import Box from 'components/box'; import Layout from 'components/layout'; const NotFound = () => ( <Layout> <Box>Not found.</Box> </Layout> ); export default NotFound;
node_modules/expo/src/BlurView.android.js
RahulDesai92/PHR
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, ViewPropTypes } from 'react-native'; import deprecatedPropType from 'react-native/Libraries/Utilities/deprecatedPropType'; export default class BlurView extends Component { static propTypes = { tintEffect: deprecatedProp...
app/scripts/components/view-mode-selector.js
hustbill/autorender-js
import React from 'react'; import { connect } from 'react-redux'; import classNames from 'classnames'; import MetricSelector from './metric-selector'; import { setGraphView, setTableView, setResourceView, setControlView} from '../actions/app-actions'; import { layersTopologyIdsSelector } from '../selectors/resource-vi...
web/main.js
jgraichen/mnemosyne
import React from 'react' import { Toolbar } from './components/toolbar' import './main.sass' export class Main extends React.Component { render() { return ( <div> <Toolbar /> {this.props.children} </div> ) } }
js/components/home/placeDetails.js
crod93/googlePlacesEx-react-native
'use strict'; import React, { Component } from 'react'; import {Modal} from 'react-native'; import { connect } from 'react-redux'; import { openDrawer } from '../../actions/drawer'; import { replaceRoute } from '../../actions/route'; import { Container, Header, Title, Content, View, Text, Button, Icon} from 'native-ba...
js/components/reminder/index.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { StatusBar } from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles fro...
src/svg-icons/image/loupe.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLoupe = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3....
packages/material-ui-icons/src/SimCard.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SimCard = props => <SvgIcon {...props}> <path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0-6h-2v...
src/components/Menu/Sale.js
shierby/storehome
import React from 'react'; class Sale extends React.Component { render() { return ( <div className="container-fluid catalog_page"> <div className="container"> <h1>Sale Page</h1> </div> </div> ) } } export default Sale;
src/svg-icons/av/slow-motion-video.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSlowMotionVideo = (props) => ( <SvgIcon {...props}> <path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1....
frontend/src/components/NavigationBar/index.js
andres81/auth-service
import React from 'react' import {connect} from 'react-redux' import {logout} from '../../actions/authActions' import UserDropDown from './UserDropDown' class NavigationBar extends React.Component { render() { const {user, logout} = this.props; return ( <header className="main-heade...
client/web/views/About/About.js
bigwisu/josspoll
import React, { Component } from 'react'; class About extends Component { render() { return ( <div> <h1>About</h1> <p className="App-intro"> To get started, edit <code>src/App.js</code> and save to reload. </p> </div> ) } } export defaul...
src/components/jobFilter/index.js
nickfranciosi/terminal-frontend
import React, { Component } from 'react'; import Select from 'react-select'; import axios from 'axios'; import 'react-select/dist/react-select.css'; import JobList from '../jobList'; import styles from './style.module.css'; export default class JobFilter extends Component { constructor(props) { super(props); ...
docs/src/app/components/pages/components/IconMenu/Page.js
pancho111203/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconMenuReadmeText from './README'; import IconMenuExampleSimple from './...
styleguide/Wrapper.js
mikebarkmin/gestyled
import React from 'react'; import ThemeProvider from '../src/components/ThemeProvider'; const Wrapper = props => <ThemeProvider> {props.children} </ThemeProvider>; export default Wrapper;
src/encoded/static/components/collection.js
T2DREAM/t2dream-portal
import React from 'react'; import PropTypes from 'prop-types'; import { Panel, PanelHeading, PanelBody } from '../libs/bootstrap/panel'; import * as globals from './globals'; import DataColors from './datacolors'; // Maximum number of facet charts to display. const MAX_FACET_CHARTS = 3; // Initialize a list of color...
app/components/channel/channelController.js
ongmin/cylinder-app
'use strict' import React from 'react' import Playlist from './playlist' import SearchBar from './searchBar' var ChannelController = React.createClass({ onChange: function () { }, render: function () { return ( <div> <div className='channelsContainer'> <h1>Channel</h1> <di...
src/svg-icons/action/polymer.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPolymer = (props) => ( <SvgIcon {...props}> <path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/> </SvgIcon> ); ActionPolymer = pure(ActionPolymer); ActionPolymer.d...
admin/client/App/index.js
ratecity/keystone
/** * This is the main entry file, which we compile the main JS bundle from. It * only contains the client side routing setup. */ // Needed for ES6 generators (redux-saga) to work import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory, IndexRoute...
src/packages/@ncigdc/components/Legacy/Nav.js
NCI-GDC/portal-ui
// @flow // Vendor import React from 'react'; import { Link } from 'react-router'; import AnnotationIcon from 'react-icons/lib/fa/align-left'; import FileIcon from 'react-icons/lib/fa/file-text'; import Color from 'color'; import { css } from 'glamor'; import ShoppingCartIcon from '@ncigdc/theme/icons/ShoppingCart'; ...
app/packs/src/components/ElementsTableSettings.js
ComPlat/chemotion_ELN
import React from 'react'; import Immutable from 'immutable'; import {Popover, Button, FormGroup, Checkbox, OverlayTrigger} from 'react-bootstrap'; import _ from 'lodash'; import TabLayoutContainer from './TabLayoutContainer'; import UserActions from './actions/UserActions'; import UIActions from './actions/UIActions...
node_modules/react-router/modules/Lifecycle.js
ibjohansen/acando-react-boilerplate-extended
import React from 'react' import invariant from 'invariant' const { object } = React.PropTypes /** * 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. * * On standard transitions, routerWillLeave receives ...
index.ios.js
rldona/taskfire
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class taskfire extends Component { render() { return ( <View style={styles.container}...
app/client/src/scenes/ManageCampaignProfileEdit/ManageCampaignProfileEdit.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { compose, graphql } from 'react-apollo'; import { connect } from 'react-redux'; import camelCase from 'camelcase'; import FontIcon from 'material-ui/FontIcon'; import CampaignProfileForm from 'components/CampaignProfileForm'; import ...
fields/types/url/UrlField.js
stosorio/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'URLField', openValue () { var href = this.props.value; if (!href) return; if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) { href = 'http://' + href; } window...
src/app/modals/trackStats.js
nazar/sound-charts-react-spa
import React from 'react'; import TrackStatsAndCharts from 'components/trackStatsAndCharts'; export default React.createClass({ componentDidMount() { $( this.getDOMNode() ).modal( { keyboard: false, backdrop: false } ); }, componentDidUpdate() { console.lo...
app/javascript/mastodon/features/ui/components/modal_loading.js
Kirishima21/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; // Keep the markup in sync with <BundleModalError /> // (make sure they have the same dimensions) const ModalLoading = () => ( <div className='modal-root__modal error-modal'> <div className='error-modal__body'> ...
src/svg-icons/action/https.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
app/javascript/mastodon/features/ui/components/columns_area.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import TabsBa...
src/views/SideNav.js
Huanzhang89/rss-feed-example
import React, { Component } from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom' import { fetchFeed, removeFeed, getSelectedFeed } from '../redux/actions'; const Nav = styled.div` flex: 1 1 0; border-right: 1px solid black; `; const...
docs/app/Examples/elements/Image/Variations/ImageExampleSpaced.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment, Image } from 'semantic-ui-react' const src = '/assets/images/wireframe/image.png' const ImageExampleSpaced = () => ( <div> <Segment> <p> Te eum doming eirmod, nominati pertinacia <Image src={src} size='mini' spaced /> argumentum ad his. Ex eam alia ...
views/containers/ServicesForm.js
gvaldambrini/madam
import React from 'react'; import { connect } from 'react-redux'; import { fetchServicesIfNeeded, saveServices } from '../redux/modules/services'; import { ServicesFormUi } from '../components'; // The services form container. const ServicesForm = React.createClass({ propTypes: { serviceList: React.PropTy...
src/client/js/components/NotFound.js
larbreapages/bookbuilder
import React from 'react'; export default NotFound = () => <div>Not found</div>;
src/routes/dashboard/components/quote.js
cuijiaxu/react-front
import React from 'react' import PropTypes from 'prop-types' import styles from './quote.less' function Quote ({ name, content, title, avatar }) { return ( <div className={styles.quote}> <div className={styles.inner}> {content} </div> <div className={styles.footer}> <div classNa...
components/OfficerCard.js
uclaacm/website
import Image from 'next/image'; import React from 'react'; import styles from '../styles/components/OfficerCard.module.scss'; function Officer({ name, pronouns, position, /* eslint-disable-next-line no-unused-vars */ committee, // no officer card formats use committee yet major, year, img, alt, bi...
src/common/components/Main.js
adamarthurryan/dubdiff
import React from 'react' import {connect} from 'react-redux' import {Segment, Grid, Form} from 'semantic-ui-react' import * as Actions from '../actions' import * as Selectors from '../selectors' import Header from './Header' import Footer from './Footer' import MainControls from './MainControls' const mapStateToP...
fields/types/date/DateField.js
nickhsine/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, InputGroup, FormInput } from 'elemental'; /* TODO: Implement yearRange Prop, or deprecate for max / min values (better) */ const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD...
src/containers/TermsOfService/container/TermsOfService.js
MeetDay/dreampark-web
import React from 'react' import PropTypes from 'prop-types' import { asyncConnect } from 'redux-async-connect' import { connect } from 'react-redux' import { isEmptyObject } from '../../Login/module/login' import { PageNotExist, CoverImage, TitleElement, TextElement, ImageElement, BigImageElement } from '../../../comp...
tests/lib/rules/vars-on-top.js
jrvidal/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
Component/Home/Home.js
outman1992/Taoertao
/** * Created by 58484 on 2016/9/9. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, ScrollView, ListView, TouchableHighlight, Image,...
src/svg-icons/action/list.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionList = (props) => ( <SvgIcon {...props}> <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/> </SvgIcon> ); ActionList = pure(ActionList); ActionList.displa...
src/node_modules/react-router/es6/RouteUtils.js
oferkafry/gps-tracker-ui
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; export { isReactChildren }; export { createRou...
src/components/TabManager.js
RamonGebben/react-perf-tool
import React, { Component } from 'react'; import TabHeader from './TabHeader'; class TabManager extends Component { constructor(props) { super(props); this.children = [].concat(props.children); this.state = { activeTab: this.children[0].key, }; } componentDidMount() { } componentWill...
trsearch/src/App.js
balaSpyrus/code
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import request from 'request'; import cheerio from 'cheerio'; const URL ='http://tamilrockers.gs/index.php?' class App extends Component { state={ count:0, links:[] } getData=()=>{ let self=this; ...
src/parser/druid/restoration/modules/items/azeritetraits/AutumnLeaves.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { formatPercentage, formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import Combatants from 'parser/shared/modules/Combatants'; import HealingDone from 'parser/shared/modules/throughput/HealingDone'; import TraitStati...
src/DropdownButton.js
nickuraltsev/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Dropdown from './Dropdown'; import NavDropdown from './NavDropdown'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import omit from 'lodash-compat/object/omit'; class D...
src/js/index.js
Jeowulf/hackathon
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { configureStore } from './store'; import Root from './containers/root'; const store = configureStore(); const history...
src/index.js
danchampion6/protozoa
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; ReactDOM.render(<App />, document.getElementById('root'));...
src/components/views/dialogs/SetMxIdDialog.js
aperezdc/matrix-react-sdk
/* Copyright 2016 OpenMarket Ltd Copyright 2017 Vector Creations Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
addons/ondevice-knobs/src/panel.js
storybooks/react-storybook
import React from 'react'; import { View, Text } from 'react-native'; import PropTypes from 'prop-types'; import { SELECT_STORY, FORCE_RE_RENDER } from '@storybook/core-events'; import { SET, SET_OPTIONS, RESET, CHANGE, CLICK } from '@storybook/addon-knobs'; import styled from '@emotion/native'; import GroupTabs from '...
test/helpers/shallowRenderHelper.js
suda077/zzy-galery
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
app/components/Header/index.js
likesalmon/likesalmon-react-boilerplate
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
react_native_frontend/src/pages/accountsettings.js
CUNYTech/BudgetApp
import React, { Component } from 'react'; import { View, StyleSheet, TouchableOpacity, ScrollView } from 'react-native'; import { Container, Text, Left, Right, ListItem, Spinner } from 'native-base'; import Icon from 'react-native-vector-icons/FontAwesome'; import { getPlatformValue } from '../utils'; export default ...
src/docs/Navigation.js
zeegeek/ps-react-reusable-comp
import React from 'react'; import PropTypes from 'prop-types'; const Navigation = ({components}) => { return ( <ul className="navigation"> { components.map( name => { return ( <li key={name}> <a href={`#${name}`}>{name}</a> </li> ) }...
src/svg-icons/places/fitness-center.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFitnessCenter = (props) => ( <SvgIcon {...props}> <path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 ...
components/layout/Panel.js
react-toolbox/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { themr } from 'react-css-themr'; import { LAYOUT } from '../identifiers'; const Panel = ({ bodyScroll, children, className, theme, ...other }) => { const _className = cn(theme.panel, { [theme.bodyScroll]: bodyScroll...
src/components/HeaderStrip/index.js
bhargav175/resume
import React from 'react'; import styles from './style.scss'; class HeaderStrip extends React.Component{ render(){ return <div className={styles.root}>Hi There! I am Bhargav</div>; } } export default HeaderStrip;
dva/porsche-e3/src/routes/RulePage.js
imuntil/React
import React from 'react' import { connect } from 'dva' import QueueAnim from 'rc-queue-anim' import TopBanner from '../components/TopBanner' import BottomBar from '../components/BottomBar' import './RulePage.scss' const Honor = () => { console.log('function') return ( <QueueAnim className="rule-box" type={['r...
src/html.js
lmammino/loige.co
import React from 'react' import PropTypes from 'prop-types' import { Global, css, jsx } from '@emotion/react' const colors = { char: '#D8DEE9', comment: '#999999', keyword: '#c5a5c5', lineHighlight: '#14161a', primitive: '#5a9bcf', string: '#8dc891', variable: '#d7deea', boolean: '#ff8b50', punctuat...
src/components/ui/quote.js
xavier-besson/react-playground
import React from 'react'; import Default from 'components/ui/default'; /** * @class Quote * @extends Default */ class Quote extends Default { /** * React method. * Return a single React element. * This element can be either a representation of a native DOM component, * such as <div />, or another compos...
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallPad/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ActiveCallPad from 'ringcentral-widgets/components/ActiveCallPad'; import callCtrlLayouts from 'ringcentral-widgets/enums/callCtrlLayouts'; const props = {}; props.onMute = () => null; props.onUnmute = () => null; props.onHold = () => null; props.onUnhold =...
pages/blog/test-article-one.js
el-besto/examples
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 1</h1> <p>Co...
packages/react/src/components/FluidForm/FluidForm.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import { settings } from 'carbon-componen...
docs/app/Examples/elements/Label/Types/LabelExamplePointingColored.js
ben174/Semantic-UI-React
import React from 'react' import { Divider, Form, Label } from 'semantic-ui-react' const LabelExamplePointing = () => ( <Form> <Form.Field> <input type='text' placeholder='First name' /> <Label basic color='red' pointing>Please enter a value</Label> </Form.Field> <Divider /> <Form.Field>...
node_modules/react-bootstrap/es/Tabs.js
GregSantulli/react-drum-sequencer
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/public/js/repository.js
TooAngel/democratic-collaboration
import React from 'react'; import PropTypes from 'prop-types'; import styles from '../../../static/css/repository.module.css'; /** * Repository class **/ export class Repository extends React.Component { // eslint-disable-line no-unused-vars /** * contructor - The constructor * * @param {object} props - T...
client/src/app/main/dashboard/dashboard-edit-profile/dashboard-edit-profile-page.js
opensupports/opensupports
import React from 'react'; import {connect} from 'react-redux'; import _ from 'lodash'; import API from 'lib-app/api-call'; import i18n from 'lib-app/i18n'; import { getCustomFieldParamName } from 'lib-core/APIUtils'; import SessionActions from 'actions/session-actions'; import AreYouSure from 'app-components/are-you...
definitions/npm/radium_v0.19.x/test_radium-v0.19.x.js
davidohayon669/flow-typed
// @flow import React from 'react'; import Radium from 'radium'; import type { FunctionComponent } from 'radium' type Props1 = { a: number, b: string }; const C1: FunctionComponent<Props1, void> = (props: Props1) => <div>{props.a} {props.b}</div> type Props2 = { a: number, b: string, }; class C2 ext...
templates/rubix/demo/src/routes/Maps.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Grid, Form, Panel, Button, FormGroup, PanelBody, InputGroup, FormControl, PanelHeader, PanelContainer, } from '@sketchpixy/rubix'; class MapContainer extends React.Component { render() { return ( <PanelContainer> <Panel> ...
src/components/general/Input.js
katima-g33k/blu-react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Col, ControlLabel, FormControl, FormGroup, } from 'react-bootstrap'; const styles = { label: { marginTop: '7px', textAlign: 'right', }, }; const types = { EMAIL: 'email', PHONE: 'phone', NUMBER: 'number', ...
imports/components/Toaster.js
naustudio/nau-jukebox
/* © 2017 NauStud.io * @author Eric */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Toaster extends Component { static propTypes = { open: PropTypes.bool, text: PropTypes.string, time: PropTypes.number, type: PropTypes.oneOf(['success', 'error']), onClose: PropTypes....