path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
pollard/index.js
spencerliechty/pollard
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; ReactDOM.render( <App />, document.getElementById('root') );
soon/react-boilerplate/app/containers/NotFoundPage/index.js
rmevans9/reactotron
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; export default function NotFound() { return ( <article> ...
src/decorators/withViewport.js
juliocanares/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
pootle/static/js/admin/components/ProjectForm.js
Jobava/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import { FormEl...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
henripal/henripal.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/pages/Settings/News/News.js
aggiedefenders/aggiedefenders.github.io
import React, { Component } from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { Link } from 'react-router-dom'; import _backButton from '../../../assets/img/back_btn_white.png'; import firebase from 'firebase'; var database = firebase.database(); const containerStyle = {...
client/views/setupWizard/StepHeader.js
iiet/iiet-chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../contexts/TranslationContext'; export function StepHeader({ number, title }) { const t = useTranslation(); return <Box is='header' marginBlockEnd='x32'> <Box is='p' fontScale='c1' color='hint'>{t('Step')}...
tests/baselines/reference/jsxDeclarationsWithEsModuleInteropNoCrash.js
alexeagle/TypeScript
//// [jsxDeclarationsWithEsModuleInteropNoCrash.jsx] /// <reference path="/.lib/react16.d.ts" /> import PropTypes from 'prop-types'; import React from 'react'; const propTypes = { bar: PropTypes.bool, }; const defaultProps = { bar: false, }; function Foo({ bar }) { return <div>{bar}</div>; } Foo.propTypes = ...
docs/src/components/Playground/Atoms/Tab/Tab.js
seek-oss/seek-style-guide
import styles from './Tab.less'; import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export default function Tab({ children, selected }) { return ( <h5 className={classnames({ [styles.root]: true, [styles.selected]: selected })} > ...
docs/src/pages/premium-themes/onepirate/modules/views/ProductSmokingHero.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import Container from '@material-ui/core/Container'; import { withStyles } from '@material-ui/core/styles'; import Typography from '../components/Typography'; const styles = (theme) => ({ root: { display...
app/javascript/mastodon/components/relative_timestamp.js
foozmeat/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' }, minutes: { id: 'relat...
examples/counter/index.js
tweinfeld/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
ui/src/pages/blog/index.js
danielbh/danielhollcraft.com-gatsbyjs
import React from 'react' import Link from 'gatsby-link' import './index.scss' export default ({ data }) => { return ( <section> <div className="container"> <header className="major"> <h2>Blog</h2> </header> {data.allMarkdownRemark.edges.map(({ node }) => ( <sect...
server/sonar-web/src/main/js/apps/overview/meta/MetaSize.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/decorators/withViewport.js
vishwanatharondekar/resume
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
studio/src/previews/IframeMobilePreview.js
ajmalafif/ajmalafif.com
/* eslint-disable react/no-multi-comp, react/no-did-mount-set-state */ import React from 'react' import PropTypes from 'prop-types' import { format } from 'date-fns' import styles from './IframePreview.module.css' import SanityMobilePreview from 'sanity-mobile-preview' import 'sanity-mobile-preview/dist/index.css?raw' ...
src/routes/Charts/ReCharts/components/ChartsGallery.js
taikongfeizhu/webpack-develop-startkit
/** * Created by huangjian on 2017/4/21. */ import React from 'react' import { Row, Col } from 'antd' import { SimpleLineChart, BarChart, RadialBarChart, RadarChart } from 'components/Recharts' import CustomCard from 'components/CustomCard' class ChartsGallery extends React.Component { render () { retu...
src/views/components/AudioStream.js
physiii/home-gateway
import React from 'react'; import PropTypes from 'prop-types'; import JSMpeg from '../../lib/jsmpeg/jsmpeg.min.js'; import {connect} from 'react-redux'; import {audioStartStream, audioStopStream, cameraStartAudioRecordingStream, cameraStopAudioRecordingStream} from '../../state/ducks/services-list/operations.js'; impor...
envkey-react/src/components/env_manager/env_cell/editable_entry_cell.js
envkey/envkey-app
import React from 'react' import EntryCell from './entry_cell' import Editable from './traits/editable' // Make editable entry cell class const EditableEntryCellBase = Editable(EntryCell) export default class EditableEntryCell extends EditableEntryCellBase { _transformInputVal(val){ const res = val.trim() ...
public/src/js/components/workspace/workspace.js
Robertmw/imagistral
/** * * Workspace Component * @parent none * @author Robert P. * */ import React from 'react'; import BaseComponent from '../base-component/base-component'; import {branch} from 'baobab-react/higher-order'; import Classnames from 'classnames'; import * as actions from './actions'; import {engineInit, deleteEngi...
app/components/App.js
wee911/polling_app_demo
/** * Created by apple on 5/22/16. */ import React from 'react'; import Footer from './Footer'; import Navbar from './Navbar'; class App extends React.Component { render() { return ( <div> <Navbar history={this.props.history} /> {this.props.children} ...
src/js/components/ItemArticle/index.js
waagsociety/ams.datahub.client
import React from 'react' import { fields } from '../../config' function targetBlank(event) { event.preventDefault() const { target } = event } export default function(metadata) { let { title, description, reference, dspace } = metadata title = title.join('') reference = reference.map((link, i) => { ...
src/svg-icons/social/poll.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPoll = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); SocialPoll = ...
src/js/components/Table/stories/CustomThemed/Custom.js
HewlettPackard/grommet
import React from 'react'; import { Box, Grommet, Table, TableBody, TableCell, TableFooter, TableHeader, TableRow, Text, } from 'grommet'; import { data, columns } from '../data'; const customTheme = { global: { font: { family: 'Helvetica', }, }, table: { body: { align:...
Realization/frontend/czechidm-core/src/components/basic/PasswordStrength/PasswordStrength.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import zxcvbn from 'zxcvbn'; // import AbstractFormComponent from '../AbstractFormComponent/AbstractFormComponent'; import Tooltip from '../Tooltip/Tooltip'; import Icon from '../Icon/Icon'; const INFO_WEAK = 'weak'; const INFO_OKAY = 'okay'; const INFO_ST...
examples/huge-apps/components/Dashboard.js
arusakov/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { let { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of ...
app/components/Toggle/index.js
7ruth/PadStats2
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
src/svg-icons/editor/format-align-justify.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignJustify = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignJustify = pure(EditorFormatAl...
test/demo/ssr/pages/Index.js
picidaejs/picidaejs
import React from 'react' import {Link} from 'react-router' export default () => <div> <h1>Index Pages</h1> <Link to="/other">Link to Other</Link> </div>
app/templates/component_templates/ButtonsExample/index.js
tblazina/analytics_project
/** * * Buttons * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import styles from './styles.css'; class Buttons extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <div className={styles.bu...
src/routes/main/users/create/Create.js
labzero/lunch
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Grid from 'react-bootstrap/lib/Grid'; import s from './Create.scss'; const Create = () => ( <div className={s.root}> <Grid> <h2>Success</h2> <p>User created.</p> </Grid> </div> ); export default ...
src/form/FormLabel.js
kosiakMD/react-native-elements
import PropTypes from 'prop-types'; import React from 'react'; import { StyleSheet, View, Platform, Text as NativeText } from 'react-native'; import colors from '../config/colors'; import fonts from '../config/fonts'; import Text from '../text/Text'; import normalize from '../helpers/normalizeText'; import ViewPropType...
docs/Documentation/BadgePage.js
reactivers/react-mcw
/** * Created by muratguney on 29/03/2017. */ import React from 'react'; import {Card, CardHeader,Badge,Table, TableRow, TableHeaderColumn, TableHeader, TableRowColumn, TableBody} from '../../lib'; import HighLight from 'react-highlight.js' export default class BadgePage extends React.Component { state = {dial...
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UpdateDialog.js
adamruzicka/katello
import React from 'react'; import PropTypes from 'prop-types'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import { MessageDialog } from 'patternfly-react'; import { buildPools } from '../../SubscriptionsTableHelpers'; import { renderTaskStartedToast } from '../../../../../Tasks/helpers'; impor...
src/ShallowTraversal.js
toddw/enzyme
import React from 'react'; import isEmpty from 'lodash/isEmpty'; import isSubset from 'is-subset'; import { coercePropValue, propsOfNode, isSimpleSelector, splitSelector, selectorError, isCompoundSelector, selectorType, AND, SELECTOR, nodeHasType, } from './Utils'; export function childrenOfNode(n...
client/pages/_app.js
RobinClowers/photo-album
import React from 'react' import App from 'next/app' import Head from 'next/head' import { MuiThemeProvider } from '@material-ui/core/styles' import CssBaseline from '@material-ui/core/CssBaseline' import JssProvider from 'react-jss/lib/JssProvider' import getPageContext from 'client/src/getPageContext' import { setRet...
app/javascript/mastodon/features/standalone/public_timeline/index.js
hyuki0000/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { refreshPublicTimeline, expandPublicTimeline, } from '../../../actions/timelines'; import Column from '../../../components/column...
src/containers/About.js
roybailey/research-react
import React, { Component } from 'react'; class About extends Component { render() { return ( <h1>{this.props.route.title}</h1> ); } } export default About;
geonode/contrib/monitoring/frontend/src/components/cels/geoserver-status/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import AverageCPU from '../../molecules/average-cpu'; import AverageMemory from '../../molecules/average-memory'; import s...
resources/js/app.js
moeen-basra/laravel-react
/** * First we will load all of this project's JavaScript dependencies which * includes React and other helpers. It's a great starting point while * building robust, powerful web applications using React + Laravel. */ require('./bootstrap'); /** * Next, we will create a fresh React component instance and attach ...
src/containers/BooksPage.js
great-design-and-systems/cataloguing-app
import * as actions from '../actions/BookActions'; import * as alertActions from '../actions/NotificationActions'; import * as dialogActions from '../actions/DialogActions'; import * as googleActions from '../actions/GoogleBookActions'; import * as headerActions from '../actions/HeaderActions'; import { BookPreviewFoo...
packages/material-ui-icons/src/Lens.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Lens = props => <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" /> </SvgIcon>; Lens = pure(Lens); Lens.muiName = 'SvgIcon'; export default Lens;
app/imports/client/Pages/Article/Components/Summaries.js
FractalFlows/Emergence
import React from 'react' import { compose, pure } from 'recompose' import { get, find } from 'lodash/fp' import { RaisedButton, } from 'material-ui' // Components import { Panel, PanelHeader, PanelBody, PanelHeaderButton, } from '/imports/client/Components/Panel' import ArticleSummary from './SummaryBar' /...
src/Main/MonkSpreadsheet.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; class MonkSpreadsheet extends React.Component { static propTypes = { parser: PropTypes.object.isRequired, }; activeNLCTraits = []; render() { const { parser } = this.props; const abilityTracker = ...
app/scripts/Mobilization/components/MobilizationList/MobilizationListItemHeader/MobilizationListItemHeaderName.js
igr-santos/bonde-client
import React from 'react' const MobilizationListItemHeaderName = () => ( <div className="list-item-header-name px3 col col-5"> Nome <i className="fa fa-long-arrow-down ml1" /> </div> ) export default MobilizationListItemHeaderName
components/Carousel/ControlledCarousel.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import BtnContainer from '../BtnContainer/BtnContainer'; import Carousel from './Carousel'; import Icon from '../Icon/Icon'; import IndicatorGroup from '../Indicators/IndicatorGroup'; import ScreenReadable from '...
src/routes/appointment/components/CancelSection.js
chunkiat82/rarebeauty-ui
/* eslint-disable css-modules/no-unused-class */ /* eslint-disable react/prop-types */ /** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root dire...
src/components/header.js
dennyjuw/rice-and-noddle
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class Header extends Component { render() { return ( <header className="header row no-gutter"> <div className="col-xs-12"> <h1 className="margin-b-0"><Link to="/">IdBg</Link></h1> <div ...
src/shared/components/DemoApp/renderConfig.js
LorbusChris/react-universally
/* flow */ import React from 'react'; import { createRender } from 'found'; import App from './DemoApp'; import Error404 from './Error404'; // This function allows us to // createRender({ renderPending, readyReady, renderError }) export default createRender({ renderError: ({ error }) => ( // eslint-disable-line rea...
src/Components/Loading/index.js
gabriel-lopez-lopez/gll-billin-code-challenge
/** * Componente Loading de la aplicación * */ import React, { Component } from 'react'; import { connect } from 'react-redux'; // Estilos personalizados import './loading.less'; // Exportar y utilizar el nombre de la clase no conectada para los tests export class Loading extends Component { constructor(props...
app/components/CheckOutLogInContainer.js
abdelshok/graceShopper
import React from 'react' import {browserHistory} from 'react-router' export const CheckOutLogin = ({ login }) => ( <div className="log-in-form"> <form onSubmit={evt => { evt.preventDefault() login(evt.target.username.value, evt.target.password.value) browserHistory.goBack() } } > <h1 className="lo...
src/routes/Events/containers/EventsContainer.js
cvetanov/EventsClient
import React from 'react'; import EventsList from '../components/EventsList'; export default function EventsContainer(props) { return ( <EventsList /> ) }
src/components/BookTable/BookTable.js
k2data/books-ui
import React from 'react' import { Link } from 'react-router' import R from 'ramda' import { Table } from 'antd' export class BookTable extends React.Component { constructor (props) { super(props) this.columns = [{ title: '序号', key: 'order', width: 50, render: (text, record) => { ...
src/appbar.js
jyasskin/cxxpoll.bak
// Copyright 2015 Google Inc. // // 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 law or agreed to in...
examples/huge-apps/components/App.js
arusakov/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
app/components/IssueIcon/index.js
samanshahmohamadi/react-boilerplate-ballyhoo
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/utils/CustomPropTypes.js
roderickwang/react-bootstrap
import React from 'react'; import warning from 'react/lib/warning'; import childrenToArray from './childrenToArray'; const ANONYMOUS = '<<anonymous>>'; /** * Create chain-able isRequired validator * * Largely copied directly from: * https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9...
frontend/node_modules/react-router-dom/es/Link.js
justdotJS/rowboat
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
front-end/src/component/projects/index.js
axelmichael11/website
import './_projects.scss' import React from 'react' import {connect} from 'react-redux' import {Redirect} from 'react-router-dom' // import Unsplash from 'Unsplash-js' import ProjectForm from './project-form.js' class Projects extends React.Component{ constructor(props){ super(props) } render(){ return...
src/components/person/PersonalInfo.js
landrysoules/mmdb_front_react
import React from 'react'; const PersonalInfo = ({ data }) => { return ( <div> <div> <h3>Personal Info</h3> </div> <h4>Known for</h4> <div>{data.known_for_department}</div> <h4>Gender</h4> <div>{data.gender === 1 ? 'Female' : 'Male'}</div> <h4>Birthday</h4> <div>{data.birthday}</div> ...
src/client/app/createactions.js
Tzitzian/Oppex
import Component from '../components/component.react'; import React from 'react'; import fetch from 'isomorphic-fetch'; import {createValidate} from '../validate'; import * as authActions from '../auth/actions'; import * as todosActions from '../todos/actions'; const actions = [authActions, todosActions]; export def...
client/modules/users/components/.stories/list.js
kaibagoh/PitchSpot
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import List from '../list.jsx'; storiesOf('users.List', module) .add('default view', () => { return ( <List /> ); })
app/js/account/components/DeleteAccountModal.js
blockstack/blockstack-browser
import PropTypes from 'prop-types' import React from 'react' import Modal from 'react-modal' const DeleteAccountModal = props => ( <Modal className="container-fluid" contentLabel={props.contentLabel} isOpen={props.isOpen} onRequestClose={props.closeModal} portalClassName="delete-account-modal" ...
src/components/Content.js
occiware/OCCInterface
import React from 'react'; import { connect } from 'react-redux'; import CodeView from './CodeView.js'; import MessageError from './MessageError.js'; import MessageOk from './MessageOk.js'; import InputCurrentPath from './InputCurrentPath.js'; import Reading from './Reading.js'; import GetButton from './buttons/GetBu...
src/svg-icons/image/photo-size-select-small.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectSmall = (props) => ( <SvgIcon {...props}> <path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H...
src/pages/hosana.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Hosana' /> )
src/components/hero/info/Abilities.js
DragonLegend/game
import React from 'react'; import capitalize from 'capitalize'; import { connect } from 'react-redux'; import { increaseAbility } from '../../../actions/heroActions'; function select(state) { return { hero: state.hero }; } export default connect(select)(({ hero, dispatch }) => ( <div className="uk-panel uk-panel-...
node_modules/rebass/src/Space.js
HasanSa/hackathon
import React from 'react' import Base from './Base' import config from './config' /** * Inline-block element for adding space between elements */ const Space = ({ x, auto, children, ...props }, { rebass }) => { const { scale } = { ...config, ...rebass } return ( <Base {...props} className='Spa...
src/svg-icons/action/input.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInput = (props) => ( <SvgIcon {...props}> <path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"/> </...
packages/material-ui-icons/src/MarkunreadMailbox.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let MarkunreadMailbox = props => <SvgIcon {...props}> <path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z" /> </SvgIcon>; MarkunreadMailbox = pure(Markunr...
src/browser/me/MePage.js
reedlaw/read-it
// @flow import type { State, User } from '../../common/types'; import React from 'react'; import SignOut from '../auth/SignOut'; import getUserPhotoUrl from '../../common/users/getUserPhotoUrl'; import linksMessages from '../../common/app/linksMessages'; import { Box, Image, Text } from '../../common/components'; impo...
react/js/form-validation.js
quiaro/js-playground
import React from 'react'; import ReactDOM from 'react-dom'; import Form from './form/Form'; ReactDOM.render(<Form />, document.getElementById('app'));
app/src/components/Header/index.js
civa86/electrophone
import React from 'react'; import { ActionHandler } from '../../components/ActionHandler'; import icon from '../../../img/icon.png'; const Header = (props) => { const { height, repoUrl, libVersion, actions, linkMode, visiblePanel, numSelectedNodes, ...
src/components/Bookmark/Bookmark.js
filipsuk/eventigoApp
/* @flow */ import React from 'react'; import { StyleSheet, TouchableOpacity } from 'react-native'; import { Icon } from 'react-native-elements'; import { colors } from '../../styles'; type Props = { active: boolean, onPress?: Function, size?: number, containerStyle?: any }; const Bookmark = ({ active, onPres...
test/test_helper.js
AnushaBalusu/ReactReduxStarterApp
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...
plum/src/components/invoices/show.js
jbkaplan/plum-app
import React, { Component } from 'react'; import { Text, View, Dimensions, StatusBar, Linking, ScrollView, StyleSheet, TouchableHighlight } from 'react-native'; import Icon from 'react-native-vector-icons/Entypo'; import NavigationBar from 'react-native-navbar'; var InvoiceItem = require('../common/invoiceItem'); var ...
index.ios.js
thomaswright/bayst
import React from 'react'; import { AppRegistry } from 'react-native'; import { Examples } from './source' AppRegistry.registerComponent('bayst', () => Examples);
react-app/src/index.js
tanykim/swimmers-history
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './configureStore'; import App from './containers/App'; import './index.css'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, document.getE...
src/svg-icons/image/filter-7.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter7 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2l4-8V5h-6v2h4l-4 8h2z...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
ONode/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; imp...
src/components/Header/Header.js
chentaixu/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...
src/components/Statistic/StatisticIndex.js
DOIS/ecampus.kpi.ua
import React from 'react'; // import { Link } from 'react-router-dom'; const StatisticIndex = () => ( <div className="row"> <div className="col-md-12"> <h1>Статистика</h1> <div className="row"> <div className="col-md-12"> <a className="btn btn-primary btn-lg btn-statist...
prototypes/cra-boilerplate/src/404.js
yldio/joyent-portal
import React from 'react'; import styled, { keyframes } from 'styled-components'; import { theme, H1, H2, H3 } from 'joyent-ui-toolkit'; const neon = keyframes` from { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #f17, 0 0 70px #f17, 0 0 80px #f17, 0 0 100px #f17, 0 0 150px #f17; } to ...
src/components/ResizeCircle.js
OssamaZ/canvas-play
import React from 'react'; import { Circle } from 'react-konva'; const ResizeCircle = ({x, y, name, resizeCb}) => <Circle x={x} y={y} radius={4} name={name} fill="#fff" stroke='#2790c3' strokeWidth={1} draggable={true} dragOnTop={false} onDragMove={e => resizeCb(e)} onDragEnd=...
src/svg-icons/content/remove.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemove = (props) => ( <SvgIcon {...props}> <path d="M19 13H5v-2h14v2z"/> </SvgIcon> ); ContentRemove = pure(ContentRemove); ContentRemove.displayName = 'ContentRemove'; export default ContentRemove;
src/svg-icons/editor/border-color.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderColor = (props) => ( <SvgIcon {...props}> <path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp...
src/client.js
paschcua/erikras
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
src/svg-icons/file/folder-open.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderOpen = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/> </SvgIcon> ); FileFolderOpen = pure(F...
src/client/xmls/components/xml-list/list-item.js
jordond/xmlr
import React from 'react' import { observer, PropTypes } from 'mobx-react' import styles from './list-item.css' /** * Renders the individual xml instance * * @param {Object} props - Component props * @param {Object<XMLModel>} props.item - Instance of XMLModel * @returns */ function ListItem({ item }) { return...
docs/pages/api-docs/card-media.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/card-media'; const requireRaw = require.context('!raw-loader!./', false, /\/card-media\.md$/); export default function Page(...
webapp/js/components/utils/IconButtonElement.js
Stevenah/INF5750
import React, { Component } from 'react'; import Theme from 'utils/theme'; import IconButton from 'material-ui/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; class IconButtonElement extends Component { render() { const { ...props } = this.props; return ( ...
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/module.input.js
storybooks/react-storybook
/* eslint-disable */ import React from 'react'; import Button from './Button'; import { storiesOf } from '@storybook/react'; export default { title: 'foo', }; const bar = 1; storiesOf('foo', module).add('bar', () => <Button />);
app/components/material/Material_1.js
tw00089923/kcr_bom
import React from 'react'; import _ from 'lodash'; import dialog from 'electron'; import color from '../../data/color'; import style from './Material.css'; import cx from 'classname'; import Select from 'react-select'; import 'react-select/dist/react-select.css' export default class Matreial_1 extends React.Component...
app/scenes/CounterScene/CounterScene.js
djizco/boilerplate-react-native
import React, { Component } from 'react'; import { View } from 'react-native'; import Counter from '../../components/Counter'; import Increment from '../../components/Increment'; import Decrement from '../../components/Decrement'; import styles from './styles'; export default class CounterScene extends Component { ...
src/component/UserDataComponent.js
NHAAHNA/hms
import React from 'react'; import {TableRow} from './TableRowComponent'; class UserDataComponent extends React.Component{ removeThisModal() { this.props.removeModal(); } render(){ return( <div className="container"> <div className="row"> ...
example/examples/MarkerTypes.js
parkling/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } 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('window'); const ASPECT_RATIO = w...
www/src/components/DailySummary.js
savannidgerinel/health
import React from 'react' import math from 'mathjs' import moment from 'moment' import { nub, renderDistance, renderDuration } from '../common' import { TimeDistanceSummary } from './TimeDistanceRow' export class DailySummary extends React.Component { render () { const activities = nub(this.props.tdEntri...
jenkins-design-language/src/js/components/material-ui/svg-icons/device/signal-cellular-off.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceSignalCellularOff = (props) => ( <SvgIcon {...props}> <path d="M21 1l-8.59 8.59L21 18.18V1zM4.77 4.5L3.5 5.77l6.36 6.36L1 21h17.73l2 2L22 21.73 4.77 4.5z"/> </SvgIcon> ); DeviceSignalCellularOff.displayName = 'DeviceSignalCellularOff';...
src/svg-icons/social/group.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialGroup = (props) => ( <SvgIcon {...props}> <path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.3...
app/javascript/mastodon/components/missing_indicator.js
Chronister/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='regeneration-indicator missing-indicator'> <div> <div className='regeneration-indicator__figure' /> <div className='regeneration-indicator__label'> <FormattedMessage id=...