path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
index.ios.js
szhigunov/react-native-npm-version
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; const version = require('./version.json').version; export default class npmversion extends Component { render...
gulp/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Taylor-S/german-declinator-wordpress
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/views/components/Form.js
physiii/open-automation
import React from 'react'; import PropTypes from 'prop-types'; import FormField from './FormField.js'; import FormValidator from '../form-validation.js'; import {noOp, isEmpty, areValuesTheSame} from '../../utilities.js'; import {debounce} from 'debounce'; import './Form.css'; const SAVEABLE_DEBOUNCE_DELAY = 500; exp...
app/javascript/mastodon/features/pinned_statuses/index.js
Ryanaka/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
packages/mineral-ui-icons/src/IconSimCard.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconSimCard(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
node_modules/react-slick/src/slider.js
DaveSpivey/muttwhat
'use strict'; import React from 'react'; import {InnerSlider} from './inner-slider'; import assign from 'object-assign'; import json2mq from 'json2mq'; import ResponsiveMixin from 'react-responsive-mixin'; import defaultProps from './default-props'; var Slider = React.createClass({ mixins: [ResponsiveMixin], inne...
jqwidgets/jqwidgets-react/react_jqxbargauge.js
UCF/IKM-APIM
/* jQWidgets v5.6.0 (2018-Feb) Copyright (c) 2011-2017 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxBarGauge extends React.Component { componentDidMount() { let options = this.manag...
src/app/helpers/connect/connect.js
arikanmstf/mylibrary
// @flow import React from 'react'; import type { ComponentType } from 'react'; const connect = (mapUiToProps: Function) => ( (WrappedComponent: ComponentType<*>) => { const uiComponents = mapUiToProps(); return ({ location, navigation, match, ...other }: Object) => ( <WrappedComponent ...
src/svg-icons/maps/local-parking.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalParking = (props) => ( <SvgIcon {...props}> <path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/> </SvgIcon> ); MapsLocalParking = pure(MapsLocalParking...
app/components/landing/Hero/index.js
vkurzweg/aloha
/** * * HeroText * */ import React from 'react'; // import styled from 'styled-components'; import { Link } from 'react-router'; import Button from './Button'; function Hero() { return ( <div style={{ width: '100%', backgroundColor: 'black', top: '0' }}> <div style={{ zIndex: '10', dispay: 'block', margi...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
luoxiaoshenghustedu/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { className: React.PropTypes.string, image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.st...
front/src/components/CreateArticleForm.js
muhammad-awan/financial-news
import React from 'react' import Field from './Field' function handleSubmit(event, onCreate){ event.preventDefault() const form = event.target const title = form.elements['title'].value const url = form.elements['url'].value onCreate({ title, url }) } export default function CreateArticleForm({ onCreate }...
examples/todo/src/components/TodoList.js
denvned/isomorphic-relay-router
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
react/src/components/dashboard/settings/settings.nativeWalletDatKeysPanel.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import { connect } from 'react-redux'; import { getWalletDatKeys } from '../../../actions/actionCreators'; import { coindList } from '../../../util/coinHelper'; import Store from '../../../store'; class NativeWalletDatKeysPanel extends Re...
src/svg-icons/device/location-searching.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationSearching = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-...
dispatch/static/manager/src/js/pages/Podcasts/PodcastEpisodeIndexPage.js
ubyssey/dispatch
import React from 'react' import R from 'ramda' import { connect } from 'react-redux' import { Link } from 'react-router' import { replace } from 'react-router-redux' import DocumentTitle from 'react-document-title' import { Intent } from '@blueprintjs/core' import { humanizeDatetime } from '../../util/helpers' impor...
examples/autocomplete/src/App-Mentions.js
algolia/react-instantsearch
import React from 'react'; import PropTypes from 'prop-types'; import Mention from 'antd/lib/mention'; import algoliasearch from 'algoliasearch/lite'; import { InstantSearch, connectAutoComplete } from 'react-instantsearch-dom'; import 'antd/lib/mention/style/css'; const AsyncMention = ({ hits, refine }) => ( <Menti...
src/containers/SideBarContainer.js
wind85/waterandboards
import React from 'react' import ReactDOM from 'react-dom' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import SideBar from '../components/SideBar' import * as Actions from '../actions' const SideBarContainer = ({ actions }) => { const handleClose = (e) => { e.preventDefault...
src/client/js/main.js
neffka/ssi
require('babel/polyfill'); import React from 'react'; import ReactDOM from 'react-dom'; import Game from './components/Game'; import domready from 'domready'; export default class Main extends React.Component { constructor(props) { super(props); } render() { return ( <div> <Game /> </div> ); } }; ...
src/layouts/layout-2-1.js
nazaninreihani/binary-next-gen
import React from 'react'; export default (components, className, onClick) => ( <div className={className + ' vertical'} onClick={onClick}> {components[0]} {components[1]} </div> );
src/components/forging/forgingTitle.js
slaweet/lisk-nano
import React from 'react'; import { Card, CardText } from 'react-toolbox/lib/card'; import moment from 'moment'; import { translate } from 'react-i18next'; import grid from 'flexboxgrid/dist/flexboxgrid.css'; import LiskAmount from '../liskAmount'; import style from './forging.css'; class ForgingTitle extends React.C...
example/src/Desc.js
gre/react-native-view-shot
//@flow import React from 'react'; import { StyleSheet, Text } from 'react-native'; const styles = StyleSheet.create({ desc: { marginHorizontal: 10, marginVertical: 20, fontSize: 14, fontStyle: 'italic', color: '#888', }, }); const Desc = ({ desc }: { desc: string }) => { return <Text style=...
src/Materijal/components/MainView.js
zeljkoX/e-learning
import React from 'react'; import ReactDOM from'react-dom'; import {Paper, Tabs, Tab, Card, CardHeader, CardText} from 'material-ui'; import SplitPane from 'react-split-pane'; import Posts from './Posts'; import Search from './Search'; import Programi from './Programi'; import Termini from './Termini'; import ChatView ...
src/App.js
surabhig412/digital-clock
import React, { Component } from 'react'; import DigitalClock from './DigitalClock'; export default class App extends Component { render() { return ( <div> <h1>Digital clock</h1> <DigitalClock /> </div> ); } }
client/common/UserLanguage/index.js
JohannesAnd/SKWebsite
import React from 'react'; import PropTypes from 'prop-types'; import { state } from 'cerebral/tags'; import { connect } from '@cerebral/react'; function UserLanguage({ children }, { t }) { return children(t); } UserLanguage.contextTypes = { t: PropTypes.func, }; export default connect( { language: state`l...
js/components/LocationList.js
a-omsk/Vegreact
import React from 'react'; import LocationOverview from './LocationOverview'; import MarkerStore from '../stores/MarkerStore'; const LocationList = ({ list, coordinates }) => ( <ul className="locations-list list-group">{list.map(location => { const { id, marker_id, name, rating, type, business_time } =...
node_modules/react-bootstrap/es/Button.js
skinsshark/skinsshark.github.io
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-...
src/Pages/Gym.js
yoasia/Akademik
import React from 'react'; import { Grid, Image } from 'semantic-ui-react'; //My components import BookingComponent from '../components/BookingComponent'; import Header from 'semantic-ui-react/dist/commonjs/elements/Header/Header'; class Gym extends React.Component { constructor(props) { super(props); this...
src/components/WaypointListContainer/WaypointListContainer.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import Waypoint from 'react-waypoint' import Loading from 'components/Loading' class WaypointListContainer extends React.Component { shouldComponentUpdate (nextProps, nextState) { return shallo...
src/utils.js
mixcloud/relay-helpers
/* @flow */ import React from 'react'; import Relay from 'react-relay/classic'; import hoistNonReactStatics from 'hoist-non-react-statics'; export type WrappedComponent<P> = ReactClass<P> | (props: P) => ?React.Element<*>; export function wraps<P>(Component: ReactClass<P>, Wrapper: WrappedComponent<P>, displayName: ?...
src/config/routes.js
nadavspi/react-bookshelf
import React from 'react'; import { Route } from 'react-router'; import Root from '../screens'; import Bookshelf from '../screens/Bookshelf'; import Book from '../screens/Bookshelf/screens/Book'; import About from '../screens/About'; import Admin from '../screens/Admin'; import AdminBookshelf from '../screens/Admin/scr...
app/javascript/mastodon/features/list_editor/components/account.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
client/src/routes/NotFound.js
BDiuguid/fantasy-fifa
import React from 'react'; const NotFound = () => ( <div className="NotFound"> <h1>This page can not be found</h1> </div> ); export default NotFound;
src/pages/Projects.js
dmed256/website
import React from 'react'; import { Divider, Typography, withStyles, } from 'material-ui'; const Project_ = ({ title, divider, children, classes, }) => ( <div> <Typography type="title" gutterBottom className={classes.title} > {title} </Typography> <Typography> {c...
src/svg-icons/notification/tap-and-play.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationTapAndPlay = (props) => ( <SvgIcon {...props}> <path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-2...
node_modules/react-icons/go/arrow-left.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const GoArrowLeft = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m22.5 15v-7.5l-15 12.5 15 12.5v-7.5h10v-10h-10z"/></g> </Icon> ) export default GoArrowLeft
src/components/Slider/Slider.Skeleton.js
carbon-design-system/carbon-components-react
/** * 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 { settings } from 'carbon-components'; const { prefix } = settings; c...
src/components/Footer/index.js
kimshako/portfolio.shako.net
import React from 'react' import moment from 'moment' import './styles.css' const Footer = () => ( <div className="Footer"> Copyright © {moment().year()} Dohyeon Kim. All rights reserved. </div> ) export default Footer
src/svg-icons/maps/place.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPlace = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
react-webpack-news-example/src/index.js
josedab/react-examples
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
client/reduxstagram.js
nomardavid/nigganstagram
// let's go! import React from 'react'; import { render } from 'react-dom'; //import the css import css from './styles/style.styl'; //import Components import App from './components/App'; import Single from './components/Single'; import PhotoGrid from './components/PhotoGrid'; // import react router deps import { R...
src/forms/widgets/TextWidget.js
austinsc/react-gooey
import React from 'react'; import PropTypes from 'prop-types'; import BaseInput from './BaseInput'; function TextWidget(props) { return <BaseInput {...props} />; } if (process.env.NODE_ENV !== 'production') { TextWidget.propTypes = { value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; } ex...
src/components/buttons/demos/FlatDisabled.js
isogon/material-components
import React from 'react' import { Button } from '../../../' export default () => <Button disabled>Disabled</Button>
src/svg-icons/maps/streetview.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStreetview = (props) => ( <SvgIcon {...props}> <path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d...
src/js/pages/children/ResultsOne.js
MichaelFKogan/project3
import React from 'react'; const ResultsOne = React.createClass({ getInitialState: function () { return { term: "" }; }, render: function () { return ( <div>{/* <-- DO NOT DELETE THIS DIV */} {/* ========== YOUTUBE SECTION ============= */} <div className=...
static/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
juanpflores94/Hodor
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/index.js
Git-WillWang/big7chat
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App />, document.getElementById('root') );
client/src/renderChat.js
charlesbuhler/QUAL-E
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; var chat = document.createElement("div"); console.log('whhhattt uppp'); document.body.appendChild(chat); ReactDOM.render(<App />, chat);
src/components/buttons/staff_button.js
frigg/frigg-hq-frontend
import React from 'react'; export default class StaffButton extends React.Component { render() { if (!this.props.isStaff) return false; return ( <a href={this.props.href} className='button'>{this.props.text}</a> ); } } StaffButton.propTypes = { isStaff: React.PropTypes.bool, href: React.Prop...
src/components/Dropdown/DropdownItem.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; import { isString } from 'lodash'; import { Icon } from '../Icon'; function DropdownItem(props) { const { title, focussed, onClick, icon, image, description, body, children } = props; const className = classnames('ui-dropdown-item', { 'ui-dropdow...
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
damoguyan8844/actor-platform
import _ from 'lodash'; import React from 'react'; import mixpanel from 'utils/Mixpanel'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import MyProfileActions from '../../actions/MyProfileActionCreators'; import LoginActionCreators...
src/components/Chat/Message.js
welovekpop/uwave-web-welovekpop.club
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import pure from 'recompose/pure'; import withHandlers from 'recompose/withHandlers'; import CircularProgress from '@material-ui/core/CircularProgress'; import userCardable from '../../ut...
tools/render.js
odoruinu/odoruinu.net-pug
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import glob from 'glob' import { join, dirname } from 'path' import React from 'react' import ReactDOM from 'react-dom/server' import Html from '../components/Html' imp...
client/src/plants/edit.js
AlTavares/babos.ios-server
import React from 'react' import service from '../services/plants' import { Link } from 'react-router' import Modal from '../components/modal' import $ from 'jquery' import Textarea from 'react-textarea-autosize' import Loader from '../components/loader' import remumeService from '../services/remume' import env from '....
src/components/Collection/Entries/Entries.js
Aloomaio/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { Loader } from 'UI'; import EntryListing from './EntryListing'; const Entries = ({ collections, entries, publicFolder, page, onPaginate, isFetching, viewStyle }) => { const...
frontend/src/app/containers/LoadingPage.js
clouserw/testpilot
import React from 'react'; import Loading from '../components/Loading'; export default function LoadingPage() { return ( <div className="full-page-wrapper centered overflow-hidden"> <Loading /> </div> ); }
client/modules/MyApp/components/AppHeader.js
XuHaoJun/tiamat
import React from 'react'; import { shouldComponentUpdate } from 'react-immutable-render-mixin'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import { connect } from 'react-redux'; import { goBack, replace, push } from 'react-router-redux'; import { Link } from 'react-router-dom'; import...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/skip-previous.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvSkipPrevious = (props) => ( <SvgIcon {...props}> <path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/> </SvgIcon> ); AvSkipPrevious.displayName = 'AvSkipPrevious'; AvSkipPrevious.muiName = 'SvgIcon'; export default AvSkipPrevious;
demo/components/TodosList.js
saulshanabrook/cerebral
import React from 'react'; import Todo from './Todo.js'; import {Decorator as Cerebral} from './../CustomController.js'; @Cerebral({ todos: ['visibleTodos'], isAllChecked: ['isAllChecked'], tod: ['todos'] }) class TodosList extends React.Component { renderTodo(todo, index) { return <Todo key={index} index=...
src/src/Components/CustomCheckbox.js
ioBroker/ioBroker.web
import React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import { Checkbox, FormControlLabel, withStyles } from '@material-ui/core'; import I18n from '@iobroker/adapter-react/i18n'; const styles = theme => ({ input: { minWidth: 300 } }); const CustomCheckbox = ({ title...
react/d3ia/src/Brush.js
saramic/learning
import React, { Component } from 'react'; import './App.css'; import { select, event } from 'd3-selection'; import { scaleLinear } from 'd3-scale'; import { brushX } from 'd3-brush'; import { axisBottom } from 'd3-axis'; class Brush extends Component { constructor(props) { super(props); this.createBrush = th...
2021/src/components/Layout/Navbar/Menu/index.js
sjamcsclub/jamhacks.ca
import React from 'react'; import { Button } from 'antd'; import { motion } from 'framer-motion'; import styled from 'styled-components'; import { LinkedinIcon, InstagramIcon, TwitterIcon, FacebookIcon, MediumIcon, YoutubeIcon, } from '../../../Icons/Socials'; import Socials from '../../../../data/socials'...
src/components/Profile.js
gsans/handsup-react
import React from 'react' import PropTypes from 'prop-types' class Profile extends React.Component { render() { if (!this.props.isLogged) { return null } return ( <div className='profile mt8'> <img src={this.props.profile.picture} /> </div> ) } } Profile.propTypes = { ...
src/widgets/WattWidget.js
domoticz/Reacticz
import React, { Component } from 'react'; import GenericWidget from './helpers/GenericWidget'; import './WattWidget.css'; class WattWidget extends Component { render() { let prod = this.props.prodValue !== undefined; return ( <GenericWidget class={'WattWidget' + (prod ? ' withProd' : '')} ic...
docs/client/components/pages/Alignment/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; // eslint-disable-next-line import/no-unresolved import simpleExampleCode from '!!../../../loaders/prism-loader?language=javascript!./SimpleAlignmentEditor'; // eslint-disable-next-line import/no-unresolved import simpleExampleEditorStylesCode from '!!../../../loaders/prism-lo...
src/components/PageHeader/PageHeader.js
Ollo/gerfs
import React from 'react' import PropTypes from 'prop-types' import './PageHeader.scss' const PageHeader = ({ title, className, children, ...otherProps }) => ( <header className={ className ? `${className} Page-Header` : 'Page-Header'} { ...otherProps}> <h2 className='Page-Header--title'>{ title }</h2> <asid...
app/components/Buttons/HeaderButton.js
heptaman/Voluncheering
import React from 'react' import PropTypes from 'prop-types' import { TouchableOpacity, StyleSheet, Text, Platform } from 'react-native' import { colors } from '~/styles' HeaderButton.propTypes = { title: PropTypes.string.isRequired, onPress: PropTypes.func.isRequired, } export default function HeaderButton(props...
web/src/js/components/Search/Settings/SearchSettingsPageComponent.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import { Redirect, Route, Switch } from 'react-router-dom' import { withStyles } from '@material-ui/core/styles' import Divider from '@material-ui/core/Divider' import List from '@material-ui/core/List' import ListSubheader from '@material-ui/core/ListSubhead...
lib/preview/containers/EnqueteDetailApp.js
jirokun/survey-designer-js
/* eslint-env browser */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import S from 'string'; import classNames from 'classnames'; import Page from '../../runtime/components/Page'; import Finisher from '../../runtime/components/Finisher'; import BranchEditor from '../../editor/compon...
src/components/util/FileUpload.js
mailvelope/mailvelope
/** * Copyright (C) 2019 Mailvelope GmbH * Licensed under the GNU Affero General Public License version 3 */ import React from 'react'; import PropTypes from 'prop-types'; import {FileUploadPanel} from './FilePanel'; import * as l10n from '../../lib/l10n'; import './FileUpload.scss'; l10n.register([ 'upload_hel...
node_modules/react-icons/io/ios-telephone-outline.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosTelephoneOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.3 26.3c1.2 1.2 2 2.7 0 5.1-2 2.4-3.3 2.4-5 2.4-1.9 0-4.6-1.1-7.3-3.2-2.5-1.8-3.6-2.6-6.1-5.2-2.7-2.7-4.3-5-6.2-8.4-2.1-3.9-1.9-5.7-1.4-7.2 0.3-0.9 1.1...
src/components/AttrCalcModal/AttrCalcModal.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import numeral from 'numeral' import { attrs } from 'constants/data' import { ATTR_MATCH, ATTR_IDX } from 'constants/rules' import { colors } from 'constants/colors' import CustomModal from '../CustomModal' import Selectbox from '../Selectbox' import Button...
node_modules/react-icons/io/closed-captioning.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoClosedCaptioning = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m0 5h40v30h-40v-30z m36.3 15c0-2.1 0-3.4-0.4-6.2s-1.8-4.4-4.6-4.7-7.1-0.4-10.8-0.4h-1c-3.7 0-8 0-10.8 0.4s-4.3 1.8-4.6 4.6-0.3 4.2-0.3 6.3 0.1 3.7 0.3 6.3 1....
src/svg-icons/av/featured-play-list.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedPlayList = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/> </SvgIcon> ); AvFeaturedPlayList = pu...
react_docs/src/components/rounded_toggle.js
GobHash/GobHash-Backend
import React from 'react'; import PropTypes from 'prop-types'; var roundedToggleOptionType = PropTypes.shape({ title: PropTypes.string, value: PropTypes.string }); export default class RoundedToggle extends React.PureComponent { static propTypes = { options: PropTypes.arrayOf(roundedToggleOptionType).isRequ...
src/neuralNetwork/networkToolbar/NetworkChooserModal.js
csenn/nn-visualizer
import _ from 'lodash'; import React from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; import { connect } from 'react-redux'; import { getNetwork } from '../data/neuralNetworkActions'; import Dialog from 'material-ui/lib/dialog'; import { Table, TableBody, TableHeader, TableHeaderColumn, ...
app/scripts/pages/notFound.js
kroupaTomass/Rondo-kuchyne
import React from 'react'; class NotFound extends React.Component { render() { return ( <div className='div-home-panel'> <h1><img src='images/kuchyne_rondo_big.png' alt='Kuchyně Rondo' /></h1> <h2>Stráka nebyla nalezena :(</h2> <h3>Kuchyně Rondo</h3> </div> ); } } ...
src/svg-icons/communication/import-export.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportExport = (props) => ( <SvgIcon {...props}> <path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/> </SvgIcon> ); CommunicationImportExport = pure(CommunicationImpo...
src/Label.js
dongtong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
packages/mineral-ui-icons/src/IconThumbDown.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconThumbDown(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
src/components/errors-component.js
davidkpiano/react-redux-form
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import _get from '../utils/get'; import map from '../utils/map'; import iteratee from '../utils/iteratee'; import isPlainObject from '../utils/is-plain-object'; import omit from '../utils/omit'; import ...
docs/src/Root.js
yuche/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
src/svg-icons/hardware/keyboard-backspace.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardBackspace = (props) => ( <SvgIcon {...props}> <path d="M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"/> </SvgIcon> ); HardwareKeyboardBackspace = pure(HardwareKeyboardBackspace); Ha...
src/shared/components/schoolCard/schoolCard.js
OperationCode/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import OutboundLink from 'shared/components/outboundLink/outboundLink'; import styles from './schoolCard.css'; const SchoolCard = ({ alt, GI, fullTime, hardware, link, logo, schoolAddress, schoolCity, schoolName, schoolState, }) => ( ...
packages/babel-plugin-transform-react-pure-annotations/test/fixtures/react/isValidElement/input.js
hzoo/babel
import React from 'react'; const isElement = React.isValidElement(React.createElement('div'));
app/javascript/mastodon/features/home_timeline/index.js
kirakiratter/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
src/index.js
sebassdc/device-simulator
import React from 'react'; import ReactDOM from 'react-dom'; import {Route, BrowserRouter as Router} from 'react-router-dom'; import {Style} from 'radium'; import Main from './components/Main'; import DeviceCreator from './components/DeviceCreator'; import DeviceConector from './components/DeviceConector'; ReactDOM.r...
docs/src/app/components/pages/components/DropDownMenu/ExampleSimple.js
ruifortes/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; const styles = { customWidth: { width: 200, }, }; export default class DropDownMenuSimpleExample extends React.Component { constructor(props) { super(props); this.state = {va...
docs/src/app/components/pages/components/Menu/ExampleDisable.js
IsenrichO/mui-with-arrows
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; const style = { display: 'inline-block', margin: '16px 32px 16px 0', }; const MenuExampleDisable = () => ( <div> <Pap...
src/components/HeroComponent.js
richardhomewood/tom-watson
'use strict'; import React from 'react'; import PortfolioStore from 'stores/PortfolioStore'; import PortfolioActions from 'actions/PortfolioActions'; class HeroComponent extends React.Component { constructor(props) { super(props); this.state = PortfolioStore.getState(); } componentDidMount() { Po...
webdash/src/NodeInfo.js
ohsu-comp-bio/funnel
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableRow from '@material-ui/core/TableRow'; ...
docs/app/index.js
sylvesteraswin/react-zvui-framework
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, useRouterHistory } from 'react-router'; import createHashHistory from 'history/lib/createHashHistory'; import Home from './components/layout/home'; ReactDOM.render(( <Router history={useRouterHistory(createHashHistory)({ queryKey: ...
src/ModalFooter.js
BespokeInsights/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalFooter extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalFooter....
examples/auth-with-shared-root/components/Login.js
malte-wessel/react-router
import React from 'react' import auth from '../utils/auth.js' const Login = React.createClass({ contextTypes: { router: React.PropTypes.object }, getInitialState() { return { error: false } }, handleSubmit(event) { event.preventDefault() const email = this.refs.email.value c...
blueocean-material-icons/src/js/components/svg-icons/toggle/check-box.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ToggleCheckBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/> </SvgIcon> ); ToggleCheckBox.displayName = 'To...
docs/src/app/components/pages/discover-more/Community.js
matthewoates/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} /> ...
src/svg-icons/file/file-upload.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFileUpload = (props) => ( <SvgIcon {...props}> <path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/> </SvgIcon> ); FileFileUpload = pure(FileFileUpload); FileFileUpload.displayName = 'FileFileUpload'; FileFil...
examples/todos-with-undo/components/Footer.js
edge/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">...
lib/shared/screens/admin/screens/templates/screens/template/index.js
relax/relax
import Component from 'components/component'; import ContentPageBuilder from 'components/content-page-builder'; import React from 'react'; import PropTypes from 'prop-types'; import {dataConnect} from 'relate-js'; import {bindActionCreators} from 'redux'; import * as templateActions from 'actions/template'; import Rev...
app/components/chart/LineChart.js
sheldhur/Vector
// @flow import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { sprintf } from 'sprintf-js'; import * as d3 from 'd3'; import Chart from './lineChart/Chart'; import Line from './lineChart/Line'; import Axis from './lineChart/Axis'; import Grid from './li...