path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
lzpfmh/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
app/javascript/mastodon/features/compose/components/search.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
client/src/Components/oldMasterForm/Education.js
teamcrux/EmploymentOptions
import React from 'react'; import { Field } from 'redux-form'; import selectState from '../SelectState'; const Education = () => { return ( <div className="section"> <div className="section"> <h3>School</h3> <div> <label htmlFor="school_name">School name</label> <Field n...
src/components/SelectableList.js
nickooms/racing-webgl2
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { List, makeSelectable } from 'material-ui/List'; const TempSelectableList = makeSelectable(List); function wrapState(ComposedComponent) { return class SelectableList extends Component { static propTypes = { children: Pro...
src/components/Main.js
vinhnglx/Dzone-news
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import Stream from './Stream'; import CategoryList from './CategoryList'; class App extends React.Component { render() { return ( <section className="row"> <article className="col-md-8"> <div c...
pages/error/index.js
zendesk/copenhelp
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
examples/with-flow/pages/index.js
BlancheXu/test
// @flow import React from 'react' import Page from '../components/Page' export default () => ( <Page> <div>Hello World</div> </Page> )
client/components/events/EventList.js
yanigisawa/voting-tornado
import React from 'react'; import {PropTypes} from 'prop-types'; import EventItemRow from './EventItemRow'; const EventList = ({events, allowEventEdit, allowEventVoting}) => { return ( <div> <table className="table"> <thead> <tr> <th>Title</th> {allowEventVoting &...
src/stories/index.js
Silvakilla/React-Component-Library
import '../index.css'; import React from 'react'; import {storiesOf} from '@storybook/react'; import Text from '../Components/Text/Text'; import Input from '../Components/Input/Input'; import { Panel } from '../Components/Panel/Panel'; const documentation = storiesOf('Documentation', module); documentation...
src/client/components/status-bar/index.js
adamgruber/mochawesome-report-generator
/* eslint-disable max-len */ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames/bind'; import styles from './status-bar.css'; const cx = classNames.bind(styles); const StatusBar = ({ stats }) => { const { hasOther, hasSkipped, other, skipped, pendin...
src/icons/Mouse.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Mouse extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256,32c-0.46,0-0.917,0.011-1.376,0.015l5.747,0.057C258.92,32.029,257.464,32,256,32z"></path> <path d="M378.553,193.2...
docs/app/Examples/views/Item/Content/ItemExampleDescriptions.js
koenvg/Semantic-UI-React
import React from 'react' import { Item } from 'semantic-ui-react' const description = [ 'Cute dogs come in a variety of shapes and sizes. Some cute dogs are cute for their adorable faces, others for their', 'tiny stature, and even others for their massive size.', ].join(' ') const ItemExampleDescriptions = () =>...
client/src/PlayPause.js
jghibiki/Doc
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; import Button from '@material-ui/core/Button'; import SkipPreviousIcon from ...
static/src/js/index.js
enginyoyen/blackcrystal
import React from 'react'; import { createHistory, createHashHistory } from 'history'; import Root from './Root'; import ReactDOM from 'react-dom'; import '../lib/jquery-2.2.0.min.js'; import '../css/style.css'; import '../css/AdminLTE.min.css'; import '../css/skins/_all-skins.min.css'; import '../css/ionicons.min.css'...
src/main.js
lunachi/react-webpack2-staging
import React from 'react'; import ReactDOM from 'react-dom'; import Demo from './views/demo/index'; ReactDOM.render( <Demo/>, document.getElementById('app') );
src/components/Options/Option/OptionString.js
chrisxclash/play-midnight
import React from 'react'; import StyledOption from './Option.styled'; const Option = ({ title, children }) => ( <StyledOption> <div className="Option__header"> <div className="Option__content"> <div className="Option__title">{title}</div> <div className="Option__description">{children}</d...
packages/@lyra/components/src/labels/story.js
VegaPublish/vega-studio
import React from 'react' import {storiesOf} from 'part:@lyra/storybook' import DefaultLabel from 'part:@lyra/components/labels/default' import {withKnobs, number, text} from 'part:@lyra/storybook/addons/knobs' import Lyra from 'part:@lyra/storybook/addons/lyra' storiesOf('Labels') .addDecorator(withKnobs) .add('D...
next-express/node_modules/enzyme/src/ShallowWrapper.js
thoughtbit/node-web-starter
import React from 'react'; import flatten from 'lodash/flatten'; import unique from 'lodash/uniq'; import compact from 'lodash/compact'; import cheerio from 'cheerio'; import ComplexSelector from './ComplexSelector'; import { nodeEqual, containsChildrenSubArray, propFromEvent, withSetStateAllowed, propsOfNod...
js/index.js
alrighty/recoub
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; ReactDOM.render(<App />, document.getElementById('main'));
FirebaseTest/App.js
michelmarcondes/ReactNativeStudies
import React, { Component } from 'react'; import { View, Text, StyleSheet, Button } from 'react-native'; import firebase from 'firebase'; export default class App extends Component { constructor(props) { super(props); this.state = { log: null }; this.getData = this.getData.bind(this); ...
docs/0.61b5b6aaf2662b893229.js
heifade/quark-ui
webpackJsonp([0],{"0P4F":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return r});var a=n("Jmof"),l=(n.n(a),n("lkey")),s=n("UJDU"),i=n("Pp2j"),o=n("WB2H"),r=class extends a.Component{constructor(e){super(e),this.state={}}render(){var e=()=>{s.a.config({placemen...
test/test_helper.js
tomdzi5/redux4
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...
docs/src/app/components/pages/components/Checkbox/ExampleSimple.js
ngbrown/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; import ActionFavorite from 'material-ui/svg-icons/action/favorite'; import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; const styles = { block: { maxWidth: 250, }, checkbox: { marginBottom: 16, }, }; c...
test/OverlayDeprecationSpec.js
brynjagr/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Position from '../src/Position'; import Transition from '../src/Transition'; import Portal from '../src/Portal'; import { shouldWarn } from './helpers'; describe('Components moved to react-overlays', () => { it('should warn ab...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
Johnnywang1221/actor-platform
import React from 'react'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import InviteUserActions from 'actions/InviteUserActions'; import AvatarItem from 'components...
stories/Welcome.js
JSBros/react-tinyletter
import React from 'react'; const styles = { main: { margin: 15, maxWidth: 600, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', }, logo: { width: 200, }, link: { color: '#1474f3', textDecoration: 'none', borderBottom: '1px ...
src/data-fields/toggle-data-field.js
apconic/aos-forms
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Toggle from 'material-ui/Toggle'; export default class ToggleDataField extends Component { static propTypes = { value: PropTypes.bool, labelText: PropTypes.string, name: PropTypes.string, onChange: PropTypes.func, ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
0xaio/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id, ...rest } = { id: 0, user: { id: 42, ...
client/components/Menu.js
rodrigok/GradeFaccat
import { Accounts } from 'meteor/accounts-base'; import { Meteor } from 'meteor/meteor'; import { withRouter } from 'react-router-dom'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FacebookLogin from 'react-facebook-login'; import { loginWithFacebook } from 'meteor-apollo-account...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
liuzwei/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classnames from 'classnames'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; im...
frontend/src/Components/Tooltip/Tooltip.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Manager, Popper, Reference } from 'react-popper'; import Portal from 'Components/Portal'; import { kinds, tooltipPositions } from 'Helpers/Props'; import dimensions from 'Styles/Variables/dimensio...
nCoda-win32-x64/resources/app/js/react/ncoda.js
nCoda/Windows
// -*- coding: utf-8 -*- // ------------------------------------------------------------------------------------------------ // Program Name: Julius // Program Description: User interface for the nCoda music notation editor. // // Filename: js/react/ncoda.js // Purpose: React c...
customView/node_modules/react-native/Libraries/Utilities/throwOnWrongReactAPI.js
TheKingOfNorway/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/svg-icons/action/speaker-notes.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpeakerNotes = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-...
src/components/logo.js
roman01la/ihub-events
import React from 'react'; import { LOGO } from '../config/config'; const Logo = () => <img className='ihub-logo' src={LOGO} width={180} />; export default Logo;
5.2.3/src/routes.js
erikras/redux-form-docs
import React from 'react' import { Router, Route, hashHistory } from 'react-router' import markdownPage from 'components/markdownPage' import App from 'pages/App' import Home from 'pages/Home' import Simple from 'pages/examples/Simple' import ComplexValues from 'pages/examples/ComplexValues' import File from 'pages/exa...
components/Application.js
Crazy50/FluxBug
/*globals document*/ import React from 'react'; import Nav from './Nav'; import SessionNav from './SessionNav'; import Home from './Home'; import About from './About'; import NotificationList from './NotificationList'; import ApplicationStore from '../stores/ApplicationStore'; import provideContext from 'fluxible/a...
packages/material-ui-icons/src/Looks4.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Looks4 = props => <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 14h-2v-4H9V7h2v4h2V7h2v10z" /> </SvgIcon>; Looks4 = pure(Looks4); Looks4....
app/javascript/mastodon/components/__tests__/avatar-test.js
NS-Kazuki/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import Avatar from '../avatar'; describe('<Avatar />', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif', avatar_static:...
server.js
roby-rodriguez/react-tweets
/* eslint no-console: 0 */ import path from 'path' import express from 'express' import expressSession from 'express-session' import ejs from 'ejs' import morgan from 'morgan' import redis from 'redis' import passport from 'passport' import passportSocketIo from 'passport.socketio' import mongoose from 'mongoose' impo...
src/components/common/modals/Modal.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; // Required components import Heading from '../typography/Heading'; /** * Component */ class Modal extends React.Component { //*** Component Lifecycle ***// componentDidMount() { // Component styles require('./Modal.scss'); } //*** Te...
src/components/app_heading.js
Daviepark/m
import React from 'react'; import styles from '../../style/components/app_heading.css'; const Header = () => { return ( <div> <h1 className={styles.heading}>MYOB Coding Test</h1> </div> ); }; export default Header;
examples/04 Sortable/Simple/index.js
numso/react-dnd
import React from 'react'; import Container from './Container'; export default class SortableSimple { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b> </p> <p> It i...
ui/src/transcoding/TranscodingNote.js
cloudsonic/sonic-server
import React from 'react' import { Card, CardContent, Typography, Box } from '@material-ui/core' import { useTranslate } from 'react-admin' export const Interpolate = ({ message, field, children }) => { const split = message.split(`%{${field}}`) return ( <span> {split[0]} {children} {split[1]...
packages/@vega/layout/src/components/AcceptInvite/AcceptUserInvite.js
VegaPublish/vega-studio
import React from 'react' import Button from 'part:@lyra/components/buttons/default' import client from 'part:@lyra/base/client' import LoginWrapper from 'part:@lyra/base/login-wrapper' import styles from './styles/AcceptUserInvite.css' type Props = { invite: any, identity: any, user: any, venue: any } export...
react/features/base/react/components/native/Image.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { Image } from 'react-native'; /** * The type of the React {@code Component} props of {@link Image}. */ type Props = { /** * The ImageSource to be rendered as image. */ src: Object, /** * The component's external style. */ ...
examples/huge-apps/components/Dashboard.js
nickaugust/react-router
import React from 'react' import { Link } from 'react-router' class Dashboard extends React.Component { render() { const { courses } = this.props return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of you...
places/index.android.js
DaveWJ/LearningReact
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import WelcomeScreen from './WelcomeScreen'; AppRegistry.registerComponent('places', () => WelcomeScreen...
src/js/components/icons/base/DocumentWindows.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/containers/HistoryTable.js
KENJU/LeanCanvasOnline
import React from 'react'; import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; class HistoryTable extends React.Component { static dateFromTimestamp(unix_timestamp) { const date = new Date(unix_timestamp); const year = date.getFullYear(); ...
app/routes.js
SiDevesh/Bootleg
// @flow import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> </Route> );
client/src/components/GalleryToolbar/GalleryToolbar.js
open-sausages/silverstripe-assets-gallery
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import BackButtonDefault from './Buttons/BackButton'; import UploadButtonDefault from './Buttons/UploadButton'; import AddFolderButtonDefault from './Buttons/AddFolderButton'; class GalleryToolbar exten...
src/routes/Routes.js
alexpalombaro/react-starter-kit
import React from 'react'; import { Route } from 'react-router'; import { App, HomePage, NotFoundPage } from '../components'; const routes = ( <Route handler={App}> <Route path="home" handler={HomePage}/> <Route path="/*" handler={NotFoundPage}/> </Route> ); export default routes;
src/app/Index.js
cgrossde/Pullover
'use strict' // Setup logging for fatal exits import './services/Logging' // Get window and setup tray import Window, { quitApp, showWindow } from './nw/Window' import './nw/Tray' // Include package.json for NW.js, also add global styles import '!!file-loader?name=package.json!../package.json' import './styles/styles.s...
admin/client/components/Checkbox.js
stunjiturner/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import Color from 'color'; import E from '../constants'; var Checkbox = React.createClass({ displayName: 'Checkbox', propTypes: { checked: React.PropTypes.bool, onChange: React.PropTypes.func, readonly: React.Pro...
test/RowSpec.js
jontewks/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Row from '../src/Row'; describe('Row', function () { it('uses "div" by default', function () { let instance = ReactTestUtils.renderIntoDocument( <Row /> ); assert.equal(React.findDOMNode(instance).nodeName, 'D...
docs/src/app/components/pages/components/Popover/ExampleSimple.js
spiermar/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Popover from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; export default class PopoverExampleSimple extends React.Component { constructor(props) { super(props); ...
dashboard/client/src/js/components/modules/VariationsList.js
agaralabs/sieve
import React from 'react'; function getVariationViewMode(experimentId, variation, index, onVariationAddEdit, onDelete) { let deleteOption = ( <div className="control"> <button type="button" data-variationid={variation.id} className="button is-sma...
src/containers/home/HomePage.js
josephlaotzu/repo-profile
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import SearchForm from '../../components/SearchForm'; import Profile from '../../components/Profile'; import * as searchActions from '../../actions/searchActions'; export cla...
tests/layouts/CoreLayout.spec.js
vallihe/wizarddemo
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
app/components/APIError.js
mapbox/osm-comments-frontend
import React from 'react'; var APIError = React.createClass({ render: function() { return ( <div className="pad2y"> <h5 className="center fancy">An unexpected error occurred.</h5> </div> ); } }); export default APIError;
admin/client/App/screens/Item/components/FooterBar.js
concoursbyappointment/keystoneRedux
import React from 'react'; import blacklist from 'blacklist'; import assign from 'object-assign'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object, }, getDefaultProps () { return { style: {}, }; }, getInitialState () { return { position: 'relative', width: 'auto', ...
src/packages/@ncigdc/components/Layouts/FullWidthLayout.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { Row, Column } from '@ncigdc/uikit/Flex'; import { withTheme } from '@ncigdc/theme'; const styles = { title: theme => ({ background: 'rgba(255, 255, 255, 0.9)', color: theme.primary, padding: '14px 0 8px 100px', width: '100%', height: 53, position...
src/svg-icons/content/content-cut.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentCut = (props) => ( <SvgIcon {...props}> <path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-...
packages/react/src/components/UIShell/SideNavItem.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { usePrefix } from '../../internal/usePref...
wordpuzzle/src/layout/letters-panel.js
prabakaranrvp/CodeGame
/* eslint-disable no-loop-func */ import React from 'react'; import Modal from './modal.js' import '../style/app.scss'; import { LETTERS } from '../constants.js' // TODO: Styles for Panel Switch button and responsive layout export default class LettersPanel extends React.Component { constructor(props) { super(...
src/svg-icons/action/turned-in.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionTurnedIn = pure(ActionTurnedIn); ActionTurnedIn.displayName = 'Ac...
packages/reactor-kitchensink/src/examples/D3/Hierarchy/D3TreeHierarchy/D3TreeHierarchy.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Panel } from '@extjs/ext-react'; import { D3_Tree } from '@extjs/ext-react-d3'; import treeDataReader from './Salary'; Ext.require([ 'Ext.d3.interaction.PanZoom', 'Ext.tip.ToolTip' ]); export default class D3TreeHierarchy extends Component { store = Ext....
src/index.js
mrGGoodbye/react-redux-API-unsplash
// Подключаем библиотеку unsplash-js // (при настроенной webpack-сборке) import Unsplash from 'unsplash-js'; // подключаем react и redux import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {Router, Route, hashHistory, Link} from 'react-router'; import {route...
server/web/helpers/appRender.js
interactivelabs/laundry-admin
import React from 'react'; import { Provider } from 'react-redux'; import { renderToString } from 'react-dom/server'; import { RouterContext, match } from 'react-router'; import createLocation from 'history/lib/createLocation'; import makeRoutes from '../../../src/app/routes/Routes'; import configureStore from '../../...
test/CarouselSpec.js
insionng/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Carousel from '../src/Carousel'; import CarouselItem from '../src/CarouselItem'; describe('Carousel', function () { it('Should show the correct item', function () { let instance = ReactTestUtils.renderIntoDocument( <C...
src/components/ui/Radio.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { Field } from 'mobx-react-form'; import classnames from 'classnames'; export default @observer class Radio extends Component { static propTypes = { field: PropTypes.instanceOf(Field).isReq...
src/components/Footer.js
finom/github-embed
import React from 'react'; export default () => (<footer className="github-embed-footer"> Embedded via <a href="https://github.com/finom/github-embed" target="_blank" rel="noopener noreferrer" > github-embed </a> </footer>);
actor-apps/app-web/src/app/components/common/MessageItem.react.js
zomeelee/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; ...
src/Components/Key/Key.js
apiaryio/attributes-kit
import isUndefined from 'lodash/isUndefined'; import merge from 'lodash/merge'; import Radium from 'radium'; import React from 'react'; import PropTypes from 'prop-types'; import { MONO_FONT_FAMILY } from '../../Constants/fonts'; import { containsStructuredElement, } from '../../Modules/ElementUtils/ElementUtils'; ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Makrau/provaAEB
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/Label/Label.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import typography, {convertFromUxLangToCss} from '../Typography'; import WixComponent from '../BaseComponents/WixComponent'; /** * a regular html `<label>` element but in wix style */ class Label extends WixComponent { render() { const {appearanc...
src/svg-icons/av/equalizer.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvEqualizer = (props) => ( <SvgIcon {...props}> <path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"/> </SvgIcon> ); AvEqualizer = pure(AvEqualizer); AvEqualizer.displayName = 'AvEqualizer'; AvEqualizer...
writeExampleThunk/src/app.js
fengnovo/webpack-react
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import store from './js/store' import App from './js/App' import './css/index.scss' ReactDOM.render(<Provider store={store}><App /></Provider>,document.getElementById('app'));
src/client/index.js
HarelDavid/AdFriendCoupon
import React from 'react' import { render } from 'react-dom' import { Provider } from 'mobx-react' import { Router, RouterContext, browserHistory } from 'react-router' import firebase from 'firebase'; import { createClientState } from './state' import createRoutes from './routes' import autorun from './autorun.js' /...
example/example/index.ios.js
JimmyDaddy/doctorstrange-updater
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Alert } from 'react-native'; import DoctorstrangeUpdater from 'doctorstrange-updater'; console.log(DoctorstrangeUpdater); export d...
fields/types/file/FileColumn.js
ratecity/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var LocalFileColumn = React.createClass({ renderValue: function () { var value = this.props.data.fields[this.props.col.path]; if (!value || !value.filename) ret...
node_modules/_react-router@3.2.0@react-router/es/Router.js
ligangwolai/blog
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/packages/@ncigdc/components/Modals/FirstTimeModal.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { ExternalLink } from '@ncigdc/uikit/Links'; import BaseModal from '@ncigdc/components/Modals/BaseModal'; const FirstTimeModal = ({ onClose }) => ( <BaseModal title="Warning" closeText="Accept" onClose={onClose}> <p> You are accessing a U.S. Government web site wh...
docker-react-web-app/src/components/mapImage.js
garrettgraber/galaxy-map
import React from 'react'; import galaxy from '../images/galaxy-image.jpg'; import { connect } from 'react-redux'; console.log("galaxy: ", galaxy); class MapImage extends React.Component { constructor() { super(); } render() { // console.log("props.map: ", this.props); return ( <svg classN...
src/SnackbarPanelTwoPointsCO2/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Icon from "../Icon"; import LabelStandard from "../LabelStandard"; import SnackBarWrapperMobile from "../SnackBarWrapperMobile"; import Typography from "../Typography"; import Wrapper from "../Wrapper"; import styles from './styles.css'; function...
frontend/src/Components/Filter/Builder/QualityFilterBuilderRowValueConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import tagShape from 'Helpers/Props/Shapes/tagShape'; import { fetchQualityProfileSchema } from 'Store/Actions/settingsActions'; import getQualities from 'Utili...
InputToText/__tests__/index.ios.js
jennselby/ReactNativeExamples
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
app/javascript/mastodon/components/picture_in_picture_placeholder.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; import { removePictureInPicture } from 'mastodon/actions/picture_in_picture'; import { connect } from 'react-redux'; import { debounce } from 'lodash'; import { FormattedMessage } from 'react-intl'; export defau...
src/App/views/UsersLogin/index.js
ryanswapp/react-starter-template
import React from 'react'; import { connect } from 'react-redux'; import axios from 'axios'; import Actions from 'App/state/actions.js'; import LoginForm from './components/LoginForm'; class UserLogin extends React.Component { constructor(props) { super(props); this.handleSubmit = this.handleSubmit.bind(this...
templates/frontOffice/modern/components/React/Title/index.js
Lucanis/thelia
import React from 'react'; export default function Title({ title, className }) { return <div className={`Title ${className}`}>{title}</div>; }
modules/Link.js
mjw56/react-router
import React from 'react' import warning from 'warning' var { bool, object, string, func } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } function isEmptyObject(objec...
src/components/VoiceRecorder/VoiceRecorder.container.js
shayc/cboard
import React from 'react'; import { connect } from 'react-redux'; import VoiceRecorder from './VoiceRecorder.component'; const VoiceRecorderContainer = props => <VoiceRecorder {...props} />; const mapStateToProps = ({ app: { userData } }, ownProps) => ({ ...ownProps, user: userData.email ? userData : null }); ex...
donate/src/components/confirm.js
Interaktivtechnology/sfdemo-node
import React from 'react'; import { Col, Button, } from 'react-bootstrap'; import sweetalert from 'sweetalert2'; import { Link } from 'react-router-dom'; import background from '../static/img/aerial-singapore.jpg'; import { API_URL, CMS_URL } from '../static/variable'; class Confirm extends React.Component { c...
src/containers/DevTools/DevTools.js
Anshul-HL/blitz-windermere
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /...
fields/types/Field.js
w01fgang/keystone
import classnames from 'classnames'; import evalDependsOn from '../utils/evalDependsOn.js'; import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormNote } from '../../admin/client/App/elemental'; import blacklist from 'blacklist'; import CollapsedFieldLabel from '../compon...
test/BootstrapMixinSpec.js
tannewt/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import BootstrapMixin from '../src/BootstrapMixin'; import styleMaps from '../src/styleMaps'; import { shouldWarn } from './helpers'; let Component; describe('BootstrapMixin', function () { beforeEach(function() { Component = Reac...
src/PhotoLayoutEditor/Container/Side/ToggleSideButton/index.js
RedgooseDev/react-photo-layout-editor
import React, { Component } from 'react'; import classNames from 'classnames'; class ToggleSideButton extends Component { render() { const { props } = this; return ( <button type="button" onClick={props.onClick} className="ple-side__toggle"> <span> <i className={classNames( 'ple-sp-ico', ...
src/components/Nav/Nav.js
vincentleandr/vincentleandr.github.io
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import './styles/css/Nav-dist.css'; class Nav extends Component { render() { return ( <div className="nav-container"> <nav> <ul> <li className="nav-home"><Link to='/'><spa...
src/components/User.js
afonsobarros/reactnd-project-readable
import React, { Component } from 'react'; import { Route, Switch } from 'react-router'; import { Link } from 'react-router-dom' import { Button, Divider, Checkbox, FormControlLabel, TextField } from 'material-ui'; import themeDefault from '../theme-default'; import { connect } from 'react-redux' import { updateUser...