path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/Downlinks.js
connectordb/connectordb-android
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as Actions from './actions'; import styles from './styles'; import { ScrollView, View, Text, RefreshControl } from 'react-native'; import mapInputs from './components/inputs'; const ...
node_modules/react-router/es6/IndexLink.js
cylcharles/webpack
'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; }; function _classCallCheck(instance, Constructor...
src/svg-icons/action/autorenew.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAutorenew = (props) => ( <SvgIcon {...props}> <path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ...
src/shared/components/Alert/index.js
CharlesMangwa/Chloe
/* @flow */ import React from 'react' import { Image, Text, TouchableWithoutFeedback, View } from 'react-native' import Icon from '@components/Icon' import styles from './styles' type Props = { color: string, onPress: Function, type: 'lamp' | 'server' | null, } const Alert = (props: Props): React$Element<any> ...
src/js/pages/words/WordAdd.js
mikka22pl/glossa
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from "react-redux"; import { Field, reduxForm } from 'redux-form'; //import AutosuggestWord from '../../components/forms/AutosuggestWord'; import * as wordActions from '../../actions/word'; import WordAddForm from '../../componen...
public/js/materialize-css/CollectionItem.js
Morton/pixelDailiesGallery
/** * Created by morton on 26/11/15. */ import React from 'react'; var CollectionItem = React.createClass({ render: function() { return <li className={['collection-item', (this.props.active?'active':'')].join(' ')} {...this.props}> {this.props.children} </li>; } }); export defaul...
app/react/components/create-app.js
NikaBuligini/git-auto-deploy
import React from 'react' export default React.createClass({ render () { return ( <div className="card"> <form action="/create" method="post" className="create-form"> <div className="form-group"> <label htmlFor="name">Project name</label> <input id="name" type="tex...
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ConversationContainer from '../containers/conversation_container'; import ScrollableList from '../../../components/scroll...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/TabContext.js
GoogleCloudPlatform/prometheus-engine
import React from 'react'; /** * TabContext * { * activeTabId: PropTypes.any * } */ export const TabContext = React.createContext({});
src/icons/Icon.js
ericyd/surfplotjs
/** * A base class for icons. * The outer svg is set to 1em x 1em. * The inner svg is 75% of that for proper visual weight. */ import React from 'react'; import './icon.scss'; const Icon = props => ( <svg viewBox='0 0 100 100' className={['icon', props.className].join(' ')}> <svg x='12.5' ...
vendor/laravel/framework/src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js
akhilerm/Castle
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class Example extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-8 col-md-offset-2"> ...
src/routes/Help/Components/Help.js
PetrosGit/poker-experiment
import React from 'react'; const Help = () => ( <div style={ Style.container }> <h3 style={ Style.header }>Game Rules:</h3> <ul style={ Style.list }> <li>You can select cards from your hand in order to change them with new ones from the deck.</li> <li>The winner of the round is determined ...
client/main.js
TobyEalden/komposer-weirdness
import React from 'react'; import { Meteor } from 'meteor/meteor'; import { render } from 'react-dom'; import App from '../imports/ui/App'; Meteor.startup(() => { render(<App />, document.getElementById('render-target')); });
openex-front/src/private/components/settings/users/Users.js
Luatix/OpenEx
import React from 'react'; import { useDispatch } from 'react-redux'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemIcon from '@mui/material/ListItemIcon'; import ListItemText from '@mui/material/ListItemText'; import ListItemSecondaryAction from '@mui/material/Lis...
src/svg-icons/notification/airline-seat-legroom-reduced.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomReduced = (props) => ( <SvgIcon {...props}> <path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 1...
UI/src/components/common/Card.js
ssvictorlin/PI
import React from 'react'; import { View } from 'react-native'; const Card = (props) => { return ( <View style={ styles.containerStyle }> { props.children } </View> ); }; const styles = { containerStyle: { shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.1, shadowRadius: ...
src/modules/mapping/components/CwpDialog/Loader.js
devteamreims/4me.react
import React, { Component } from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const styles = { container: { textAlign: 'center', }, refresh: { display: 'inline-block', position: 'relative', }, }; class Loader extends Component { render() { const { hidden, ...
ui/src/containers/NewExperiment/NewExperiment.js
vlad-doru/experimento
import React from 'react' import {connect} from 'react-redux'; import { Step, Stepper, StepLabel, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import ExperimentInfo from '../../components/ExperimentIn...
actor-apps/app-web/src/app/components/common/ConnectionState.react.js
liruqi/actor-platform
import React from 'react'; import classnames from 'classnames'; import ConnectionStateStore from 'stores/ConnectionStateStore'; const getStateFromStore = () => { return { connectionState: ConnectionStateStore.getState() }; }; class ConnectionState extends React.Component { constructor(props) { super(pro...
src/routes/PlayingView/Containers/EndButton.js
PetrosGit/poker-experiment
import { connect } from 'react-redux'; import React from 'react'; let EndGame = ({ onEndGame }) => ( <button onClick={onEndGame}>END GAME</button> ); EndGame = connect( null, (dispatch) => ({ onEndGame: () => dispatch({ type: 'END_GAME' }), }), )(EndGame); export { EndGame };
app/javascript/mastodon/features/following/index.js
Ryanaka/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
packages/mineral-ui-icons/src/IconDeveloperBoard.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 IconDeveloperBoard(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ico...
lib/components/Voter.js
kern/puddin
import React from 'react' export default class Voter extends React.Component { onUpvote(e) { this.props.onVote(1) } onDownvote(e) { this.props.onVote(-1) } render() { return <div className="voter"> {this.props.vote > 0 ? <div className="up-vote" /> : null} {this.props.vote === 0 ? ...
src/app/components/pages/MainView/MainView.js
tvarner/PortfolioApp
import React from 'react'; import _ from 'lodash'; import Sidebar from './../../utilComponents/react-sidebar/src/index'; import MaterialTitlePanel from './MaterialTitlePanel'; import SidebarContentContainer from './SidebarContentContainer'; import HomePageContainer from '../HomePage/HomePageContainer'; import AboutPa...
src/InputArea/Exclamation.js
nirhart/wix-style-react
import React from 'react'; import SvgExclamation from '../svg/Exclamation.js'; import styles from './InputArea.scss'; const exclamation = () => <div className={styles.suffix + ' ' + styles.exclamation}> <SvgExclamation width={2} height={11}/> </div>; export default exclamation;
Web-Platform/1.0/react入门操作/index-fb.js
ShareTeam/Platform
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; // Render the main component into the dom ReactDOM.render(<Router />, document.getElementById('app'));
app/javascript/mastodon/components/status_list.js
imomix/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ScrollContainer } from 'react-router-scroll'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import LoadMore from './load_more'; import ImmutablePureComponent from 'react-im...
src/svg-icons/communication/dialer-sip.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationDialerSip = (props) => ( <SvgIcon {...props}> <path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ...
misc/webgui/src/containers/ServicesList.js
ChainsAutomation/chains
import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import { loadServicesData } from '../actions/index'; import ServiceDetail from '../components/ServiceDetail'; class ServicesList extends React.Component { componentDidMount() { /* console.log("ServiceL...
client/src/lib/castStringToElement.js
silverstripe/silverstripe-admin
import React from 'react'; /** * Searches the given string and highlights/marks instances of needle found * with the given tag * * @param {string} haystack * @param {string} needle * @param {React|string} Tag * @return {Array} */ export function mapHighlight(haystack, needle, Tag) { let index = 0; let sear...
src/app/Components/UploadImage.js
isaacjoh/foreseehome-test
import React from 'react'; import ReactDOM from 'react-dom'; import RaisedButton from 'material-ui/RaisedButton'; import newId from '../utils/NewId'; import Webcam from 'react-webcam'; class UploadImage extends React.Component { constructor(props) { super(props); this.state = { file: '', imagePre...
src/routes/contact/index.js
jimmykobe1171/chatbotta
/** * 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 directory of this source tree. */ import React from 'react'; import Layout from '../../co...
Rosa_Madeira/Cliente/src/components/screens/CompraScreen.js
victorditadi/IQApp
import React, { Component } from 'react'; import { Text, View, AsyncStorage } from 'react-native'; import CompraLista from '../compra/CompraLista'; class CompraScreen extends Component { render() { return( <View style={{flex: 1, backgroundColor: '#f6f2ef'}}> <View style={{marginTop: 20, marginBott...
src/entry.js
lixiaoyang1992/react-native-starter-kit
import React from 'react'; import { Provider } from 'react-redux'; import codePush from 'react-native-code-push'; import Storage from 'react-native-storage'; import { AsyncStorage } from 'react-native'; import { default as configureStore } from './store/createStore'; import Index from './router/App'; const store = co...
src/js/components/Scroll/InfiniteScroll.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { ScrollContainer } from 'react-router-scroll'; import ReactInfinite from 'react-infinite'; export default class InfiniteScroll extends Component { static propTypes = { containerId : PropTypes.string.isRequired, ...
src/js/admin/articles/table-nav-link/table-nav-link.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import { handlePageChange } from '$actions/articles' import TableNavLink from '$components/table-foot-nav' const ArticleTableNavLink = ({ page, total, pageChange }) => ( <TableNavLink page={page} total={total} pagechange={pageChange} /> ) const mapSt...
app/javascript/mastodon/features/public_timeline/index.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { refreshPublicTimeline, exp...
demos/buttons/demos/flat-default.js
isogon/styled-mdl-website
import React from 'react' import { Button } from 'styled-mdl' const demo = () => <Button>Default</Button> const caption = 'Default Button' const code = '<Button>Default</Button>' export default { demo, caption, code }
src/components/CommonComponent/FeedCard/feedCard.js
sourabh-garg/react-starter-kit
import React from 'react'; import './feedCard_mobile.scss'; import FeedImages from './feedImages'; class FeedCard extends React.Component{ constructor(props) { super(props); } componentDidMount() { } render () { let data = this.props.data; let photoCollection = data.photoUrls; if(da...
app/components/elements/Pagination.js
tidepool-org/blip
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import map from 'lodash/map'; import remove from 'lodash/remove'; import includes from 'lodash/includes'; import capitalize from 'lodash/capitalize'; import { Box, Text, BoxProps } from 'rebass/styled-components'; import FirstPa...
app/components/ContainerContent.js
pbillerot/reacteur
'use strict'; import React from 'react'; import { Link } from 'react-router'; // W3 const {Button, Card, Content, Footer, Header, IconButton , Menubar, Nav, Navbar, NavGroup, Sidebar, Table, Window} = require('./w3.jsx') export default class ContainerContent extends React.Component { constructor(props) { ...
src/containers/common/NoMatch.js
vivaxy/react-scaffold
/** * @since 2016-09-01 08:18 * @author vivaxy */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; class NoMatch extends Component { static propTypes = { params: PropTypes.object.isRequired, location: PropTypes.object.isRequir...
packages/material-ui-icons/src/SignalWifi0Bar.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SignalWifi0Bar = props => <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /> </SvgIcon>; SignalWifi0Bar = pur...
src/components/home.js
cynthiacd/capstone-factoring-app
import React from 'react'; import { Link } from 'react-router'; const Home = () => { return ( <div className="instruction-info-patterns"> <h1>Welcome</h1> <p>You have found yourself at an <a href="https://adadevelopersacademy.org/" target="_blank">ADA </a> developer’s capstone project.</p...
actor-apps/app-web/src/app/components/DialogSection.react.js
shaunstanislaus/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/components/Footer.js
toannhu/React-Pokedex
import React, { Component } from 'react'; import { Icon, Segment } from 'semantic-ui-react'; export default class Footer extends Component { render() { return ( <Segment.Group> <Segment padded='very' textAlign='center'> <div style={{fontSize: '14px'}...
src/components/feed/filters.js
Hommasoft/wappuapp-adminpanel
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { DropdownButton, MenuItem, Row, Modal, Button, FormControl, FormGroup, ControlLabel } from 'react-bootstrap'; import * as Filt from '../../actions/filters'; class Filters extends Component { constructor(props) {...
src/svg-icons/editor/attach-file.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorAttachFile = (props) => ( <SvgIcon {...props}> <path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2...
src/components/Header/Header.js
piu130/react-redux-gpa-app
import React from 'react' import { browserHistory } from 'react-router' import { Navbar, Nav, NavItem } from 'react-bootstrap' import FontAwesome from 'react-fontawesome' import './Header.scss' export const Header = (props) => ( <Navbar fluid> <Navbar.Header> <Navbar.Brand> <Navbar.Link onClick={(...
src/containers/app-shell.js
twreporter/twreporter-react
import { connect } from 'react-redux' import ErrorBoundary from '../components/ErrorBoundary' import Footer from '@twreporter/react-components/lib/footer' import Header from '@twreporter/universal-header/lib/containers/header' import PropTypes from 'prop-types' import React from 'react' // comment out WebPush for live ...
Libraries/Image/ImageBackground.js
mironiasty/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
webapp/src/app/App.js
cpollet/itinerants
import React from 'react'; import MenuContainer from './menu/containers/MenuContainer'; import InfoStaleState from './availability/containers/InfoStaleState'; import AlertSyncFail from './availability/containers/AlertSyncFail'; import styles from './App.less'; import Alert from '../widgets/Alert'; class App extends Re...
src/Link/Link.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const PROPERTY_TYPES = { value: PropTypes.any, testId: PropTypes.any }; class Link extends React.Component { render() { const className = classNames('ros-link', this.props.className); const...
example/examples/PanController.js
zigbang/react-native-maps
/* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import { View, Animated, PanResponder, } from 'react-native'; const ModePropType = PropTypes.oneOf(['decay', 'snap', 'spring-origin']); const OvershootPropType = PropTypes.oneOf(['spring', 'clamp']); const AnimatedPropType = Pr...
admin/client/components/PopoutPane.js
kumo/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, onLayout: React.PropTypes.func }, componentDidMount () ...
src/components/Dashboard/Dashboard.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; function Dashboard({ children }) { return ( <div className={classnames('ui-dashboard')}> <div className={classnames('ui-dashboard-items')}> {children} </div> </div> ); } Dashboard.propTypes = { children: React.PropTypes....
src/components/Radial.react.js
agup006/kitematic
import React from 'react'; import classNames from 'classnames'; var Radial = React.createClass({ render: function () { var percentage; if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) { percentage = ( <div className="percentage"><...
react-flux-mui/js/material-ui/src/svg-icons/maps/local-grocery-store.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGroceryStore = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-...
docs/app/Examples/modules/Rating/Types/RatingExampleClearable.js
shengnian/shengnian-ui-react
import React from 'react' import { Rating } from 'shengnian-ui-react' const RatingExampleClearable = () => ( <Rating maxRating={5} clearable /> ) export default RatingExampleClearable
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
ConnorFieldUser/ConnorFieldUser.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'));
classic/src/scenes/wbfa/generated/FARServer.free.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faServer } from '@fortawesome/free-solid-svg-icons/faServer' export default class FARServer extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faServer} />) } }
src/components/navlink.js
netlify/staticgen
import React from 'react' import { Link } from 'gatsby' import styled from '@emotion/styled' const NavLink = styled(Link)` color: #fff; text-decoration: none; padding: 10px; display: block; text-align: center; &:active, &:focus, &:hover { color: #00c7b7; } ` const NavAnchor = NavLink.withCompon...
src/components/Header/Header.js
deboraduarte/starter
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; // eslint-disable-line no-unused-vars import styles from './Header.less'; // eslint-disable-line no-unused-vars import withStyles from '../../decorators/withStyles'; // eslint-disable-line no-unused-vars import Link fro...
src/app.js
fima23/car-rent-react-flux-graphql
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import Cars from './components/cars'; ReactDOM.render( <Cars></Cars>, document.getElementById('app') );
server/sonar-web/src/main/js/apps/projects/components/AllProjects.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
server/priv/js/components/BenchSummary.react.js
bks7/mzbench
import React from 'react'; import MZBenchRouter from '../utils/MZBenchRouter'; import moment from 'moment'; import 'moment-duration-format'; class BenchSummary extends React.Component { _labelCssClass(status) { switch (status) { case "complete": return "label-success"; ...
client/src/app/components/employer/Contact.js
lefnire/jobs
import React from 'react'; import { FlatButton, } from 'material-ui'; import _ from 'lodash'; import {_fetch, _ga, IS_SMALL} from '../../helpers'; import Formsy from 'formsy-react' import { FormsyText } from 'formsy-material-ui/lib'; import { Modal } from 'react-bootstrap'; export default class Contact extends R...
frontend/components/loading.js
yograterol/viperid
import React from 'react'; export default () => <div> <h3>Loading...</h3> <style jsx>{` div { align-items: center; display: flex; height: 50vh; justify-content: center; } `}</style> </div>;
src/components/content-editable.js
marcusdarmstrong/cloth-io
// @flow import React from 'react'; import ReactDOM from 'react-dom'; type Props = { html?: string, onChange?: (event: { target: { value: string } }) => void, autoFocus?: boolean, }; export default class ContentEditable extends React.Component { componentDidMount() { if (this.props.autoFocus && (typeof w...
src/parser/druid/feral/modules/azeritetraits/UntamedFerocity.js
sMteX/WoWAnalyzer
import React from 'react'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; import HIT_TYPES from 'game/HIT_TYPES'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import StatTrack...
js/components/button/disabled.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View } from 'react-native'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, H3 } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-na...
projeto/fatec/src/Eventos.js
frbaroni/curso_react
import React, { Component } from 'react'; class Eventos extends Component { state = { em_cima: false } quandoMouseEntrar = (evento) => { this.setState({ em_cima: true }) } quandoMouseSair = (evento) => { this.setState({ em_cima: false }) } render() { const quadradoEstilo = { back...
client/src/components/auth/Signin.js
victorlcm/full-stack-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { reduxForm, Field } from 'redux-form'; import * as actions from '../../actions'; class Signin extends Component { constructor () { super(); this.handleFormSubmit = this.handleFormSubmit.bind(this) } handleFormSubmi...
src/svg-icons/device/bluetooth-connected.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothConnected = (props) => ( <SvgIcon {...props}> <path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1....
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js
rhaedes/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; // From https://github.com/oliviertassinari/react-swipeable-views import SwipeableViews from 'react-swipeable-views'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, slide: { ...
src/svg-icons/notification/phone-bluetooth-speaker.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneBluetoothSpeaker = (props) => ( <SvgIcon {...props}> <path d="M14.71 9.5L17 7.21V11h.5l2.85-2.85L18.21 6l2.15-2.15L17.5 1H17v3.79L14.71 2.5l-.71.71L16.79 6 14 8.79l.71.71zM18 2.91l.94.94-.94.94...
app/javascript/mastodon/features/mutes/index.js
rainyday/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
js-old/src/playground/playground.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
src/app/utils/SlateEditor/Align.js
TimCliff/steemit.com
import React from 'react'; export default class Align extends React.Component { getAlignClass = () => { const { node } = this.props; switch (node.data.get('align')) { case 'text-right': return 'text-right'; case 'text-left': return 'text-left'...
src/server.js
pvijeh/sull-isom2
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
test/fixtures/webpack-message-formatting/src/AppNoDefault.js
GreenGremlin/create-react-app
import React, { Component } from 'react'; import myImport from './ExportNoDefault'; class App extends Component { render() { return <div className="App">{myImport}</div>; } } export default App;
js/src/views/RpcCalls/components/RpcDocs/RpcDocs.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
client/src/pages/payment/payments/transactions/index.js
csleary/nemp3
import { faBomb, faListOl } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import PropTypes from 'prop-types'; import React from 'react'; import Transaction from './transaction'; import nem from 'nem-sdk'; import styles from './transactions.module.css'; cons...
modules/plugins/link/LinkButton.js
devrieda/arc-reactor
import React from 'react'; import MenuButton from '../../components/MenuButton'; import ToggleMarkup from '../../helpers/Manipulation/ToggleMarkup'; import EditorStore from '../../stores/EditorStore'; const LinkButton = React.createClass({ statics: { getName: () => "link", isVisible: () => true, }, prop...
src/index.js
hellofresh/janus-dashboard
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { store } from './store/configuration' import Root from './modules/Root/Root' import './index.css' ReactDOM.render( <Provider store={store}> <Root /> </Provider>, document.getElementById('root'))
src/svg-icons/notification/live-tv.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationLiveTv = (props) => ( <SvgIcon {...props}> <path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8...
client/verification-portal/components/services-group.js
HelpAssistHer/help-assist-her
import React from 'react' import injectSheet from 'react-jss' import Spacer from '../../components/spacer' import ServiceFields from './service-fields' const ServicesGroup = ({ classes, heading, listOfServices }) => { return ( <div className={classes.group}> <div className={classes.heading}>{heading}</div> <...
client/src/components/dashboard/messaging/reply-message.js
WebTalentTop/newsfere-mern
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { sendReply } from '../../../actions/messaging'; const form = reduxForm({ form: 'replyMessage', }); const renderField = field => ( <div> <input className="form-control" autoCo...
src/containers/Departure.js
osoken/project-train-2016
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' let Departure = ( {dispatch, departure} ) => ( <div> <div> <input type="text" placeholder="どこから出発しますか?"/> </div> <div> map </div> <div> <button type="button"><Li...
docs/src/app/components/pages/components/Badge/ExampleContent.js
kasra-co/material-ui
import React from 'react'; import Badge from 'material-ui/Badge'; import IconButton from 'material-ui/IconButton'; import UploadIcon from 'material-ui/svg-icons/file/cloud-upload'; import FolderIcon from 'material-ui/svg-icons/file/folder-open'; const BadgeExampleContent = () => ( <div> <Badge badgeContent...
packages/storyboard-extension-chrome/src/components/030-coloredText.js
guigrpa/storyboard
import { merge } from 'timm'; import React from 'react'; import { ansiColors } from 'storyboard-core'; class ColoredText extends React.PureComponent { static propTypes = { text: React.PropTypes.string.isRequired, onClick: React.PropTypes.func, style: React.PropTypes.object, }; // -------------------...
.storybook/mocks/providers.js
Sing-Li/Rocket.Chat
import i18next from 'i18next'; import React from 'react'; import { TranslationContext } from '../../client/contexts/TranslationContext'; let contextValue; const getContextValue = () => { if (contextValue) { return contextValue; } i18next.init({ fallbackLng: 'en', defaultNS: 'project', resources: { en:...
public/client/routes/shell/components/header.js
nearform/concorda-dashboard
'use strict' import React from 'react' import {Link} from 'react-router' import Menu from './menu' export default React.createClass({ render () { const {showProfile, handleEditUserProfile} = this.props return ( <header className="header" role="banner"> <div className="container-fluid"> ...
carbon-page/src/index.js
ShotaOd/Carbon
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/About.js
rsproule/rsproule.github.io
import React, { Component } from 'react'; import './about.css'; import './animations.css'; class About extends Component{ /* Needs to contain: -quick info about me -interests hobbies(soccer/sports) -basically the info from the previous site */ render(){ return( <div className="pullDown"> <d...
docs/app/Examples/views/Card/Types/CardExampleGroupProps.js
aabustamante/Semantic-UI-React
import React from 'react' import { Card } from 'semantic-ui-react' const items = [ { header: 'Project Report - April', description: 'Leverage agile frameworks to provide a robust synopsis for high level overviews.', meta: 'ROI: 30%', }, { header: 'Project Report - May', description: 'Bring to...
index.js
BowenTH/helloreact
import React from 'react'; import ReactDOM from 'react-dom'; import './style/index.css'; import {Hello,App} from './App'; // import imgJson from 'data/img.json'; // import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( <div> <Hello/><App/> </div>, document.getElemen...
src/svg-icons/device/battery-50.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery50 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
src/alloyeditor.js
ipeychev/alloyeditor-react-component
import React from 'react'; import AlloyEditor from 'alloyeditor'; class AlloyEditorComponent extends React.Component { componentDidMount() { const {container, alloyEditorConfig} = this.props; this._editor = AlloyEditor.editable(container, alloyEditorConfig); } componentWillUnmount() { this._editor.d...
app/javascript/mastodon/features/status/components/detailed_status.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...