path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModalConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { clearPendingChanges } from 'Store/Actions/baseActions'; import EditRemotePathMappingModal from './EditRemotePathMappingModal'; function mapStateToProps() { return {}; } const mapDispatchToPr...
static/js/components/App.js
spencercarnage/jstest
'use strict'; import React from 'react'; import io from 'socket.io-client'; import { routeActions } from 'react-router-redux'; import { connect } from 'react-redux'; const socket = io('http://localhost:4040'); socket.on('oh hi!', function () { console.log('hello'); }); class App extends React.Component { constr...
examples/huge-apps/components/App.js
gdi2290/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { //static loadProps (params, cb) { //console.log('App'); //cb(null, { courses: COURSES }); //} render () { //var { courses } = this.props; var courses = COURSE...
packages/xo-web/src/xo-app/dashboard/stats/index.js
vatesfr/xo-web
import _ from 'intl' import ActionButton from 'action-button' import cloneDeep from 'lodash/cloneDeep' import Component from 'base-component' import forEach from 'lodash/forEach' import Icon from 'icon' import map from 'lodash/map' import PropTypes from 'prop-types' import React from 'react' import renderXoItem from 'r...
app/javascript/flavours/glitch/features/standalone/compose/index.js
Kirishima21/mastodon
import React from 'react'; import ComposeFormContainer from 'flavours/glitch/features/compose/containers/compose_form_container'; import NotificationsContainer from 'flavours/glitch/features/ui/containers/notifications_container'; import LoadingBarContainer from 'flavours/glitch/features/ui/containers/loading_bar_conta...
packages/s-i18n-react-native/Translator.js
s-i18n/s-i18n
import React from 'react'; import { Text } from 'react-native'; import { Translator as BaseTranslator } from 's-i18n'; /** * Translator class */ export class Translator extends BaseTranslator { getWrappedElement = message => <Text>{message}</Text>; formatResult = retval => <Text>{retval}</Text>; /** * Sub...
src/optionspage/extramaprefs/ExtraMapRefsFormArrayTemplate.js
emfmesquita/beyondhelp
import React, { Component } from 'react'; import { Button, Tab, Row, Col, Nav, NavItem, Panel } from 'react-bootstrap'; import { StringField } from "react-jsonschema-form"; import OptionButton from "../OptionButton"; const addTitle = (props) => { if (!props.schema || !props.schema.add) return "New"; return `...
client/components/static/LandingWidgets.js
MusicConnectionMachine/VisualizationG6
import React from 'react' import timelinePhoto from '../../../style/img/timeline.png' import relationPhoto1 from '../../../style/img/relation-widget-1.png' import relationPhoto2 from '../../../style/img/relation-widget-2.png' import mapPhoto from '../../../style/img/map-widget.png' const LandingWidgets = React.createC...
webpack/components/SelectOrg/SetOrganization.js
snagoor/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { Form, Button } from 'patternfly-react'; import { withRouter } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; imp...
examples/js/App.js
react-ex/react-ex-icon
import React, { Component } from 'react'; import Icon from '../../src'; export default class App extends Component { constructor(props) { super(props); } render() { return ( <div className="demo"> <section className="demo__first"> <div className="demo__first__title">{ '<Icon clas...
docs/src/app/components/pages/components/RadioButton/ExampleSimple.js
ruifortes/material-ui
import React from 'react'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import ActionFavorite from 'material-ui/svg-icons/action/favorite'; import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; const styles = { block: { maxWidth: 250, }, radioButton: { ...
test/4.example.js
amilajack/eslint-plugin-flowtype-errors
/* eslint-disable */ /** * @flow */ import React, { Component } from 'react'; type Props = { firstName: number, lastName: string }; class Foo extends Component<Props, {}> { props: Props render() { return ( <div> <h1> Hello {this.props.firstName} {this.props.lastName} </h...
web/render.js
AndreaMelle/mmirror
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app.jsx'; window.onload = function() { ReactDOM.render( <App />, document.getElementById('app') ); }
modules/tribes/client/components/TribesJoinTrustroots.js
Trustroots/trustroots
import React from 'react'; import { useTranslation } from 'react-i18next'; export default function TribesJoinTrustroots() { const { t } = useTranslation('circles'); return ( <div className="row"> <div className="col-xs-12 text-center"> <hr /> <p className="lead"> {t('Join Trust...
src/svg-icons/action/input.js
matthewoates/material-ui
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"/> </...
src/svg-icons/av/skip-next.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipNext = (props) => ( <SvgIcon {...props}> <path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/> </SvgIcon> ); AvSkipNext = pure(AvSkipNext); AvSkipNext.displayName = 'AvSkipNext'; AvSkipNext.muiName = 'SvgIcon...
examples/todo/src/controllers/welcome_controller.js
lancecarlson/React-MVC
import React from 'react'; import ApplicationController from './application_controller'; import { Welcome } from '../components/welcome'; /* Example of es6 controller */ export default class WelcomeController extends ApplicationController { welcome(ctx) { return (req, res) => { let name = 'Lance'; th...
src/components/App.js
mikeharty/react-redux-webpack
import React from 'react'; import Footer from './Footer'; import AddTodo from '../containers/AddTodo'; import VisibleTodoList from '../containers/VisibleTodoList'; const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ); export default App;
docs/app/Examples/elements/Segment/Groups/SegmentExampleNestedSegments.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleNestedSegments = () => ( <Segment.Group> <Segment>Top</Segment> <Segment.Group> <Segment>Nested Top</Segment> <Segment>Nested Middle</Segment> <Segment>Nested Bottom</Segment> </Segment.Group> ...
app/containers/NotFoundPage/index.js
Ennovar/clock_it
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
examples/todomvc/index.js
asaf/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
examples/preact/src/App.js
gaearon/react-hot-loader
import React from 'react'; import { hot } from 'react-hot-loader'; import Counter from './Counter'; import { Internal } from './Internal'; const App = () => ( <h1> Hello, world<br /> <Internal /> <br /> <Counter /> </h1> ); export default hot(module)(App);
src/index.js
bugra9/adminjs
import React from 'react'; import { render } from 'react-dom'; import { Router, hashHistory } from 'react-router'; import { Provider } from 'react-redux'; import { syncHistoryWithStore } from 'react-router-redux'; import configureStore from './store'; import routes from './routes'; const store = configureStore(); con...
app/javascript/mastodon/features/ui/components/column_subheading.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
app/javascript/mastodon/components/column_header.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' }, hide: { id: 'column_header.h...
src/index.js
pavlin-policar/SocialNetwork-Client
import React from 'react'; import ReactDOM from 'react-dom'; //import a11y from 'react-a11y'; import routes from './routes'; import App from './App.react'; // Uncomment this to get information about accessiblity on devices. Toggle at // your own risk. //a11y(React, { includeSrcNode: true }); ReactDOM.render(routes, d...
src/server/frontend/render.js
XeeD/este
import Helmet from 'react-helmet'; import Html from './Html.react'; import Promise from 'bluebird'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import config from '../config'; import configureStore from '../../common/configureStore'; import createRoutes from '../../browser/createRoutes'; i...
web/static/js/components/mainform.js
toxu/txportal
import React from 'react'; import {connect} from 'react-redux'; import {mainformTabSelected} from '../actions/mainform'; // UI import Navbar from 'react-bootstrap/lib/Navbar'; import NavItem from 'react-bootstrap/lib/NavItem'; import NavDropdown from 'react-bootstrap/lib/NavDropdown'; import Nav from 'react-bootstrap/...
src/components/stuff-i-do/index.js
evanfrawley/evanfrawley.github.io
import React from 'react'; import {Box, Heading, Text} from "rebass"; const MarginBox = ({children}) => ( <Box mt={3} mb={3}> {children} </Box> ); export const FreeTime = () => ( <MarginBox> <Heading f={4} is="h2">Free Time</Heading> <Text>Here is the cool shit that I do in my free time</Text> </M...
src/routes.js
lnhrdt/auth0-react-sample
import React from 'react' import {browserHistory, Router, Route, Redirect} from 'react-router' import makeMainRoutes from './views/Main/routes' export const makeRoutes = () => { const main = makeMainRoutes(); return ( <Route path=''> {main} </Route> ) } export default makeRoutes
frontend/src/components/dialog/sysadmin-dialog/sysadmin-logs-export-excel-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, FormGroup, Label, Input, Alert } from 'reactstrap'; import { gettext, siteRoot } from '../../../utils/constants'; import moment from 'moment'; class LogsExportExcelDialog extends React.Component ...
src/main/resources/assets/javascripts/app.js
gcnonato/airpal
/** * App Bootstrap */ import 'es6-shim'; import 'whatwg-fetch'; import AirpalApp from './components/AirpalApp.jsx'; import React from 'react'; // Start the main app React.render( <AirpalApp />, document.querySelector('.js-react-app') );
webapp/app/components/EditGroup/Form/GroupRights/SoftwareMode/index.js
EIP-SAM/SAM-Solution-Server
// // Component software mode group rights form edit group // import React from 'react'; import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap'; import styles from 'components/EditGroup/styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class EditGroupFormGroupRightsSoftw...
packages/material-ui-icons/src/Tram.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 20h-.08c1.69 0 2.58-1.37 2.58-...
src/components/Navigation.js
theCoolKidsJavaScriptMeetup/cuddlyGuacamole
import React, { Component } from 'react'; import { Link } from 'react-router-dom' import logo from '../assets/logo.png'; import '../Navigation.css?ver=1.1'; export default class Navigation extends Component { render() { return ( <div className="Navigation"> <div className="Nav_logo"> <Li...
client/views/setupWizard/Pager.js
VoiSmart/Rocket.Chat
import { Button, ButtonGroup } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../contexts/TranslationContext'; export function Pager({ disabled, onBackClick, isContinueEnabled = true }) { const t = useTranslation(); return ( <ButtonGroup align='end'> {onBackClick ?...
information/blendle-frontend-react-source/app/modules/sectionsPage/components/PageSection/index.js
BramscoChill/BlendleParser
/* eslint-disable react/prop-types */ // Disable prop type linting because we use setPropTypes import React from 'react'; import { compose, setPropTypes, onlyUpdateForPropTypes, setDisplayName } from 'recompose'; import { string, arrayOf, oneOf, bool, number } from 'prop-types'; import { memoize } from 'lodash'; import...
src/react/JSONTree/JSONArrow.js
blackxored/redux-devtools
import React from 'react'; const styles = { base: { display: 'inline-block', marginLeft: 0, marginTop: 8, marginRight: 5, 'float': 'left', transition: '150ms', WebkitTransition: '150ms', MozTransition: '150ms', borderLeft: '5px solid transparent', borderRight: '5px solid trans...
node_modules/react-icons/fa/battery-2.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaBattery2 = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m4.5 26.7v-13.4h15.7v13.4h-15.7z m33.6-12.3q0.9 0 1.6 0.7t0.6 1.5v6.8q0 0.9-0.6 1.5t-1.6 0.7v2.8q0 1.2-0.8 2t-2 0.8h-32.5q-1.2 0-2-0.8t-0.8-2v-16.8q0-1.2 0.8-2t2-0.8...
examples/demo/src/components/Expandable.js
ryym/react-expander
import React from 'react'; import { beExpandable } from 'react-expander'; function Expandable(props) { const { width, height, className } = props; return ( <div className={className} style={{ width, height }} > {props.children} </div> ); } export default beExpandable(Expandable);
src/index.js
DmitriWolf/atm-challenge
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import configureStore from './store/configure-store'; import { Router, Route, IndexRoute, browserHistory } from 'react-router' import './styles.css'; import App from './App'; import Login from './containers/Login'; import...
src/components/AboutAndrew/AboutAndrew.js
afreix/personal-site
import React from 'react'; import '../../styles/about-page.css'; // Since this component is simple and static, there's no parent container for it. const AboutAndrew = () => { return ( <div> <h2 className="alt-header">Header</h2> <p> My name is Andrew Freix </p> </div> ); }; expor...
frontend/src/Album/Search/AlbumInteractiveSearchModalContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Button from 'Components/Link/Button'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter from 'Components/Modal/ModalFooter'; import ModalHeader from 'Components/Modal/Moda...
src/routes/contact/Contact.js
bmatthews/haze-lea
/** * 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 PropTypes from 'prop-...
src/Modal/Modal.stories.js
ctco/rosemary-ui
import React from 'react'; import { storiesOf } from '@storybook/react/dist/client/preview/index'; import Modal from './Modal'; class ManagedModal extends React.Component { state = { isOpen: true }; timeout = null; componentWillUnmount() { if (this.timeout) { clearTimeou...
client/src/components/dashboard/GitterEmbed.js
no-stack-dub-sack/alumni-network
import React from 'react'; import styled from 'styled-components'; const MyFrame = styled.iframe` height: calc(100% - 60px); position: fixed; top: 60px; `; /* use the same component for both private and global chat routes. If there is a username param, we know its a private chat and we load a gitter embed with ...
docs/src/_bilprospekt_snackbar_component.js
Bilprospekt/bilprospekt-ui
import React from 'react'; import {Snackbar, ActionButton} from 'bilprospekt-ui'; import Portal from 'react-portal'; const SnackbarDoc = React.createClass({ render() { const snackbarButton = <ActionButton label='Show Snackbar' primary /> return ( <div id='SnackbarDoc'> ...
src/components/templates/PageTemplate/index.js
DimensionLab/narc
// https://github.com/diegohaz/arc/wiki/Atomic-Design#templates import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { size } from 'styled-theme' const Wrapper = styled.div` display: flex; flex-direction: column; padding-top: 3.75rem; min-height: 100vh; b...
components/animals/tamarinZlutoruky.child.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/tamarinZlutoruky/0...
site/pages/ExamplePage.js
zetkin/react-dnd
import React from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import SideBar from '../components/SideBar'; import { ExamplePages } from '../Constants'; export default class ExamplesPage { render() { return ( <div> <Header/> <PageBody ha...
packages/material-ui-icons/src/TrendingUp.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let TrendingUp = props => <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z" /> </SvgIcon>; TrendingUp = pure(TrendingUp); TrendingUp.muiName = 'SvgIcon'...
client/components/Status/Status.js
bjoberg/social-pulse
import React from 'react'; import Paper from 'material-ui/Paper'; // Styles import styles from './Status.css'; import mainStyles from '../../main.css'; export function Status() { return ( <div className={mainStyles.container}> <h1>System Status</h1> <hr /> <h2>Check the status of Social Pulse....
public/js/components/profile/blocklist/BlockListContainer.react.js
IsuruDilhan/Coupley
import React from 'react'; import Activity from './BlockList.react'; import List from 'material-ui/lib/lists/list'; import ProfileStore from '../../../stores/ProfileStore'; import ProfileActions from '../../../actions/profile/ProfileActions'; const ActivityFeedContainer = React.createClass({ getInitialState: funct...
react/gameday2/components/NoWebcasts.js
verycumbersome/the-blue-alliance
import React from 'react' import RaisedButton from 'material-ui/RaisedButton' export default () => ( <div className="no-webcasts-container"> <h1>No webcasts found</h1> <p>Looks like there aren&apos;t any events with webcasts this week. Check on The Blue Alliance for upcoming events!</p> <RaisedButton ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsInferred.js
TiddoLangerak/flow
// @flow import React from 'react'; class MyComponent extends React.Component<*, Props> { static defaultProps = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<*, Props> { static defaultProps = {...
fluent-react/examples/change-language/src/index.js
zbraniecki/fluent.js
import React from 'react'; import ReactDOM from 'react-dom'; import { AppLocalizationProvider } from './l10n'; import App from './App'; ReactDOM.render( <AppLocalizationProvider userLocales={navigator.languages}> <App /> </AppLocalizationProvider>, document.getElementById('root') );
server/sonar-web/src/main/js/apps/background-tasks/app.js
KoushikdMS/sonarqube
import React from 'react'; import Main from './main'; export default { start (options) { var el = document.querySelector(options.el); React.render(<Main/>, el); } };
Libraries/Components/TextInput/TextInput.js
Swaagie/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...
src/Parser/Core/Modules/AlwaysBeCastingHealing.js
enragednuke/WoWAnalyzer
import React from 'react'; import Icon from 'common/Icon'; import { formatPercentage } from 'common/format'; import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; class AlwaysBeCastingHealing extends CoreAlwaysBeCasting { static HEA...
app/javascript/mastodon/features/favourited_statuses/index.js
primenumber/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
src/components/commons/navbar.js
jesus-chacon/cookBook
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import { Logout } from '../../actions/session'; class Navbar extends Component { renderCreateRecipeLink (){ if (this.props.auth.isLogged){ ...
client/src/routes.js
DjLeChuck/recalbox-manager
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import AnonymousLayout from './components/AnonymousLayout'; import Layout from './components/Layout'; import Login from './components/login/Container'; import Home from './components/home/Container'; import Audio from './components/audio/Conta...
src/containers/AppContainer.js
City-of-Helsinki/helerm-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Provider, connect } from 'react-redux'; import { Router } from 'react-router-dom'; import ReduxToastr from 'react-redux-toastr'; import Loader from '../components/Loader'; import { retrieveUserFromSession } from '../components/Login...
src/components/Spinner/index.js
TF2PickupNET/components
// @flow strict-local import React from 'react'; import PropTypes from 'prop-types'; import getNotDeclaredProps from 'react-get-not-declared-props'; import Sheet, { type Data } from './Sheet'; type Props = { active: boolean, className: string, color: 'primary' | 'accent', }; type State = { animationName: strin...
app/components/race/RacerStats.js
opensprints/opensprints-electron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import moment from 'moment'; import { getRace, getBike, getRacer, getRaceDuration, getSpeed, getDistanceSelector } from '../../selectors'; import racerStyles from '../race-preview/RacerSelect.css'; cons...
src/components/Header.js
nahkar/react_cms
import React, { Component } from 'react'; export default class Header extends Component { _openLoginPopup = (event) => { event.preventDefault(); this.props.openLogin() }; _openRegPopup = (event) => { event.preventDefault(); this.props.openAuthorization(); }; renderRegistarationFrom(){ if...
client/app/src/pages/CreateEventPage/index.js
RyanCCollins/meetup-event-planner
import React from 'react'; import cssModules from 'react-css-modules'; import styles from './index.module.scss'; import { CreateEventContainer } from 'containers'; const CreateEventPage = () => ( <div className={styles.container}> <CreateEventContainer /> </div> ); export default cssModules(CreateEventPage, s...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
erikthiem/erikthiem.com
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'));
nodes/stampzilla-server/web/src/routes/automation/index.js
stampzilla/stampzilla-go
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Card from '../../components/Card'; const toStatusBadge = (n, state) => { if (n.get('enabled')) { if (!state) { return <div className="badge badge-info">Unknown</div>; } if (state.get('error')) { return <...
src/svg-icons/content/add.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAdd = (props) => ( <SvgIcon {...props}> <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/> </SvgIcon> ); ContentAdd = pure(ContentAdd); ContentAdd.displayName = 'ContentAdd'; ContentAdd.muiName = 'SvgIcon...
test/js/AR/quadEmitterTest.js
viromedia/viro
/** * Copyright (c) 2017-present, Viro Media, 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. */ import Re...
src/index.js
ianroberts131/visual-algorithms
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app/App'; import Home from './pages/Home'; import SearchAlgorithms from './pages/SearchAlgorithms'; import SortAlgorithms from './pages/SortAlgorithms'; import { Router, Route, IndexRoute } from 'react-router'; import { Provider...
tests/Rules-isFloat-spec.js
RMSAuto/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
test/test_helper.js
Sashkan/ft_youtube
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...
admin/client/App/shared/Popout/PopoutBody.js
xyzteam2016/keystone
/** * Render the body of a popout */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, scrollable: React...
app/scripts/components/PaymentForm.js
DDDas/reactjs-datagrid-widgets
import React from 'react'; import InputField from './InputField'; import OrderFluxStore from '../stores/flux/OrderFluxStore'; class OrderForm extends React.Component { constructor(props) { super(props); } render() { return ( <div> <div> <label>Billing Amount</label> ...
docs/client/components/shared/TwitterButton/index.js
draft-js-plugins/draft-js-plugins-v1
import React, { Component } from 'react'; export default class TwitterButton extends Component { componentDidMount() { const twitterbutton = this.refs.twitterbutton; const twitterscript = document.createElement('script'); twitterscript.src = '//platform.twitter.com/widgets.js'; twitterscript.id = 't...
node_modules/react-bootstrap/es/MediaListItem.js
acalabano/get-committed
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/px-drawer/px-nav-drawer.js
jonniespratley/px-components-react
import React from 'react'; import BaseComponent from '../base-component'; import style from './px-nav-drawer.scss'; import classnames from 'classnames'; class NavDrawer extends React.Component { constructor(props){ super(props); this.state = { opened: props.opened || false, persistent: props.per...
examples/shared/wrapInTestContext.js
colbyr/react-dnd
import React, { Component } from 'react'; import TestBackend from 'react-dnd/modules/backends/Test'; import { DragDropContext } from 'react-dnd'; export default function wrapInTestContext(DecoratedComponent) { @DragDropContext(TestBackend) class TestStub extends Component { render() { return <DecoratedCo...
client/pages/adminpage/home.js
mickael-kerjean/nuage
import React from 'react'; import { Redirect } from 'react-router-dom'; export class HomePage extends React.Component { constructor(props){ super(props); this.state = { stage: "loading" } } render(){ return ( <Redirect to="/admin/dashboard" /> ); } }
packages/material-ui-icons/src/NetworkWifi.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let NetworkWifi = props => <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path d="M3.53 10.95l8.46 10.54.01.01.0...
src/svg-icons/action/assignment-return.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentReturn = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45...
tests/site5/source/code/page.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import React from 'react'; /** * The page layout component */ const Page = ({ title, stylesheet, header, main, footer, script }) => ( <html> <head> <title>Cuttlebelle - { title }</title> <meta charSet="utf-8" /> <meta httpEquiv="x-ua-compatible" content="ie=edge" /> <me...
src/pages/teams.js
getinsomnia/website
import React from 'react'; import Helmet from 'react-helmet'; import mainSrc from '../assets/screens/sharing.png'; import Link from '../components/link'; import Companies from '../partials/companies'; export default () => ( <React.Fragment> <Helmet> <body data-template="skinny" data-navbar="floating" /> ...
src/scripts/VideoMeta.js
whoisandie/yoda
'use strict'; import React from 'react'; import {MetaMixin} from './Mixins'; export default React.createClass({ mixins: [MetaMixin], propTypes: { channel: React.PropTypes.string.isRequired, views: React.PropTypes.string.isRequired, published: React.PropTypes.string.isRequired }, render() { r...
app/StudioApp.js
BoldIdeaInc/appmaker
/* global location, screen */ import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import Blockly from './blockly'; import * as aceMode from './acemode/mode-javascript_codeorg'; import color from './color'; import {parseElement as parseXmlElement} from './xml'; import * as utils from './...
components/App/Terms.js
intrepion/sign-up-client-jsonapi-reactjs-foundation
import React, { Component } from 'react'; export default class Terms extends Component { render() { return ( <div className="content row medium-8 large-7 columns"> <h3>Terms</h3> <p> By using this site, you agree that we own all your data and can do whatever we want with it. ...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
Jaeandroid/actor-platform
import _ from 'lodash'; import React from 'react'; import ActorClient from 'utils/ActorClient'; import { KeyCodes } from 'constants/ActorAppConstants'; import InviteUserActions from 'actions/InviteUserActions'; import ContactStore from 'stores/ContactStore'; import InviteUserStore from 'stores/InviteUserStore'; im...
src/svg-icons/communication/stop-screen-share.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
docs/src/pages/demos/tabs/ScrollableTabsButtonForce.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ /* eslint-disable react/no-multi-comp */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Tabs, { Tab } from 'material-ui/Tabs'; import PhoneIcon fr...
components/About.js
mariosandoz/mariosandoz.github.io
import React from 'react'; class About extends React.Component{ render(){ return ( <section className="success" id="about"> <div className="container"> <div className="row"> <div className="col-lg-12 text-center"> <h2>About</h2> <hr className="star-light" /> <...
src/React/Widgets/ColorByWidget/index.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactWidgets/ColorByWidget.mcss'; import AdvancedView from './AdvancedView'; const SEP = ':|:'; function doubleToHex(number) { let str = Math.floor(number * 255).toString(16); while (str.length < 2) { str = `0${str}`;...
src/components/Forms/StaffProfileForm.js
TheModevShop/craft-app
import React from 'react'; import {Link} from 'react-router'; import forms from 'newforms'; import formIsComplete from 'utility/formIsComplete'; import _ from 'lodash'; const StaffProfileForm = forms.Form.extend({ first_name: forms.CharField({required: true}), last_name: forms.CharField({required: true}), phone:...
admin/client/App/shared/FlashMessages.js
webteckie/keystone
/** * Render a few flash messages, e.g. errors, success messages, warnings,... * * Use like this: * <FlashMessages * messages={{ * error: [{ * title: 'There is a network problem', * detail: 'Please try again later...', * }], * }} * /> * * Instead of error, it can also be hilight, info, ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
jderiz/WebApp
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'));
test/components/Title.js
loggur/provide-page
import React from 'react'; import PropTypes from 'prop-types'; const Title = ({ documentTitle }) => ( <div className="title"> {documentTitle} </div> ); Title.propTypes = { setDocumentTitle: PropTypes.func.isRequired, documentTitle: PropTypes.string.isRequired }; export default Title;
src/shared/components/schoolCard/schoolCard.js
alexspence/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './schoolCard.css'; class SchoolCard extends Component { render() { return ( <div className={styles.schoolCard}> <div className={styles.schoolCardImage}> <img src={this.props.logo} alt={this.p...
src/layouts/CoreLayout/CoreLayout.js
easingthemes/easingthemes.github.io
import React from 'react'; import Navbar from 'components/Navbar/Navbar'; import GoToTop from 'components/GoToTop'; import Footer from '../../components/Footer'; import '../../styles/vendor.scss'; import '../../styles/core.scss'; import helperScroll from '../../utils/animateScroll'; export class CoreLayout extends Rea...
src/svg-icons/image/camera-front.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....