path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/reports/report-margin.js
Xabadu/VendOS
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import Moment from 'moment'; import Calendar from 'react-input-calendar'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import Select from 'react-select'; import { getMargin...
src/components/header.js
paulckennedy/KennedyChemistryRocks
import React from 'react'; export default (props) => { return ( <div> <header className="hg_header"> <img src = {require('../img/1_Primary_logo_on_transparent_422x59.png')} /> </header> </div> ); }
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Navbar.js
JamieMason/npm-cache-benchmark
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 ...
client/src/Layout.js
MattMcFarland/reactathon
import React from 'react'; import { Link } from 'react-router'; import { Navbar, Nav, MenuItem, Modal, Button, NavDropdown } from 'react-bootstrap'; import { SignupForm, LoginForm } from './components'; import { Logo } from './components/partials/Elements'; import { AppActions } from './actions/AppActions';...
app/comps/people/Person.js
efvincent/flux-pack-reflux
import React from 'react'; import Reflux from 'reflux'; import PersonStore from '../../stores/PersonStore'; import {PersonActions} from '../../actions'; import Glyph from '../Glyph'; export default React.createClass({ displayName: 'Person', mixins: [Reflux.connect(PersonStore, 'person')], contextType...
actor-apps/app-web/src/app/components/common/Image.react.js
luoxiaoshenghustedu/actor-platform
import React from 'react'; import classnames from 'classnames'; import Lightbox from 'jsonlylightbox'; // lightbox init const lightbox = new Lightbox(); const lightboxOptions = { animation: false, controlClose: '<i class="material-icons">close</i>' }; lightbox.load(lightboxOptions); let cache = {}; class Image ...
src/containers/Login/Login.js
bertho-zero/react-redux-universal-hot-example
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import LoginForm from 'components/LoginForm/LoginForm'; import FacebookLogin from 'components/FacebookLogin/FacebookLogin'; i...
docs/app/Examples/elements/Label/Types/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LabelTypes = () => ( <ExampleSection title='Types'> <ComponentExample title='Label' description='A label' ...
client/modules/core/components/followlist.js
Entropy03/jianwei
import React from 'react'; import Paper from 'material-ui/Paper'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar'; import {grey400, darkBlack, lightBlack} from 'material-ui/styles/colors'; ...
src/svg-icons/hardware/security.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSecurity = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/> </SvgIcon> ); Hardwa...
src/svg-icons/file/attachment.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileAttachment = (props) => ( <SvgIcon {...props}> <path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-....
examples/1-multi/src/signup/index.js
chikara-chan/react-power
import React from 'react' import { render } from 'react-dom' import { AppContainer } from 'react-hot-loader' import App from './components/App' function renderHTML() { render( <AppContainer> <App /> </AppContainer>, document.getElementById('root') ) } renderHTML() if (module.hot) { module.hot...
app/js/components/Items/ItemListContainer.js
JeffRisberg/RE03
import React, { Component } from 'react'; import { connect } from 'react-redux'; import log from 'logger'; import { queryItems, toggleItem } from '../../actions/items'; import { AddItemComponent, ItemListComponent } from '../Items'; import './Items.scss'; class ItemListContainer extends Component { componentDidMoun...
client/components/users/email-enrollment-form.js
wuyang910217/meteor-react-redux-base
import React from 'react'; export default class extends React.Component { constructor(props) { super(props); this.state = {uiState: 'INIT'}; this.onSubmit = this.onSubmit.bind(this); } onSubmit(e) { e.preventDefault(); this.setState({uiState: 'SENDING'}); this.props.enrollWithEmail(this....
app/templates/env/_web.js
Skookum/generator-genreact
require('isomorphic-fetch'); require('es6-promise').polyfill(); import React from 'react'; import { render } from 'react-dom'; import { Router } from 'react-router'; import { createHistory } from 'history'; import routes from '../routes'; const history = createHistory(); render( <Router children={routes} history={...
frontend/component/Signup.js
wangmuming/node-forum
import React from 'react'; import jQuery from 'jquery'; import {signup} from '../lib/client'; import {redirectURL} from '../lib/utils'; export default class Signup extends React.Component{ constructor(pros){ super(pros); this.state = {}; } // 输入‘用户名’‘密码’检测 handleChange(name, e){ // console.log(na...
src/components/CampViewItem/AboutCell/index.js
JamesJin038801/CampID
import React, { Component } from 'react'; import I18n from 'react-native-i18n'; import { connect } from 'react-redux'; import { View, Text, TouchableOpacity, Image, ScrollView, Alert } from 'react-native'; import { Styles, Metrics, Images, Colors, Fonts } from '@theme/'; import styles from './styles'; import CommonWid...
ui/js/pages/page/PagesItemEdit.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FormField from '../../components/FormField'; // import ImageField from '../../components/ImageField'; import SelectSearch from '../../components/SelectSearch'; import TextHelp from '../../components/TextHelp'; import FormState from '....
client2/src/components/Video/components/video_detail.js
frolicking-ampersand/Board
import React, { Component } from 'react'; import Youtube from 'react-youtube'; export default class VideoDetail extends Component { constructor(props){ super(props) this.state={ player: null } this.setPlayer = this.setPlayer.bind(this); this.sendPlayData = this.sendPlayData.bind(this); this.playVideo =...
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js
josephfinlayson/create-react-app
/** * 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. */ import Rea...
egghead.io/create-react-app/src/Updates.js
andrisazens/learning_react
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; class App extends Component { constructor() { super(); this.state = { increasing: false }; } update(e) { ReactDOM.render(<App val={this.props.val + 1} />, document.getElementById("root")) } component...
client/src/pages/year-end-gift.js
BhaveshSGupta/FreeCodeCamp
import React from 'react'; import Helmet from 'react-helmet'; import { Grid } from '@freecodecamp/react-bootstrap'; import { Spacer, FullWidthRow } from '../components/helpers'; import YearEndDonationForm from '../components/YearEndGift/YearEndDonationForm'; function YearEndGiftPage() { return ( <> <Helme...
ui/src/app.js
untoldwind/eightyish
import React from 'react' import { Route, DefaultRoute, RouteHandler, run } from 'react-router' import MenuBar from './components/MenuBar' import MachineView from './components/MachineView' import InstructionSetView from './components/InstructionSetView' export default class App extends React.Component { render()...
app/components/Spacer.js
ixje/neon-wallet-react-native
import React from 'react' import { View } from 'react-native' class Spacer extends React.Component { render() { return ( <View style={{ height: 2, backgroundColor: '#EFEFEF', marginHorizontal: 30, ma...
src/svg-icons/av/airplay.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAirplay = (props) => ( <SvgIcon {...props}> <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); AvAirplay = pure(AvAirplay...
src/app/Sidebar/Navigation.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getAuthenticatedUser, getIsTrendingTopicsLoading, getTrendingTopics } from '../../reducers'; import Topics from '../../components/Sidebar/Topics'; import Sidenav from '../../components/Navigation/Sidenav'; c...
react/gameday2/components/embeds/EmbedLivestream.js
jaredhasenklein/the-blue-alliance
import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' const EmbedLivestream = (props) => { const channel = props.webcast.channel const file = props.webcast.file const iframeSrc = `https://new.livestream.com/accounts/${channel}/events/${file}/player?width=640&height=360&autoPlay=tru...
src/common/FaButton.js
FredBoat/fredboat.com
import React, { Component } from 'react'; import {Link} from 'react-router-dom'; import FontAwesome from 'react-fontawesome'; import "./css/FaButton.css"; class FaButton extends Component { //noinspection JSMethodCanBeStatic render() { const linkInner = ( <div className="fabutton-shade"> ...
src/svg-icons/alert/error.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertError = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/> </SvgIcon> ); AlertError = pure(AlertError); AlertEr...
client/modules/users/components/.stories/dashboard.js
StorytellerCZ/Socialize-starter
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import Dashboard from '../dashboard.jsx'; storiesOf('users.Dashboard', module) .add('default view', () => { return ( <Dashboard /> ); })
packages/ndla-icons/src/common/Time.js
netliferesearch/frontend-packages
/** * Copyright (c) 2017-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT import React from 'react'; import Icon from '../Icon'; const Time = props => ( <Icon viewBox=...
src/svg-icons/image/colorize.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorize = (props) => ( <SvgIcon {...props}> <path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3...
index.android.js
GTXPRO/Reactnative
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; //import App from './Components/App'; import Nav from './Components/Nav'; export default class Realtime extends Component { render() { return ( <Nav /> ); } } AppRegistry.registerComponent('Realtime', () => Realtim...
test/generate/build-component-test-test.js
jeffbuttars/rj
import test from 'ava' import buildComponentTest from '../../src/generate/build-component-test' const expected = `import test from 'ava' import React from 'react' import sinon from 'sinon' import { render } from 'react-dom' import { renderToStaticMarkup } from 'react-dom/server' import { Simulate } from 'react-addons...
examples/flux-utils-todomvc/js/app.js
RomanTsopin/flux
/** * Copyright (c) 2014, 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. * * @flow */ 'use s...
src/layouts/Contact.js
akhatri/portfolio-website
import React, { Component } from 'react'; import ContactImage from '../images/get-in-touch.jpg'; // Libraries import Fade from 'react-reveal/Fade'; class Contact extends Component { constructor() { super(); } render() { return ( <Fade> <section id="contact" className="bg-grey"> ...
src/svg-icons/image/dehaze.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageDehaze = (props) => ( <SvgIcon {...props}> <path d="M2 15.5v2h20v-2H2zm0-5v2h20v-2H2zm0-5v2h20v-2H2z"/> </SvgIcon> ); ImageDehaze = pure(ImageDehaze); ImageDehaze.displayName = 'ImageDehaze'; ImageDehaze...
stories/Combobox/AsyncDemo.js
propertybase/react-lds
import React, { Component } from 'react'; import { debounce, without } from 'lodash-es'; import { BASE_ITEMS } from './constants'; import { EntityCombobox } from '../../src'; const mockSearchResults = BASE_ITEMS.map((item, i) => ({ ...item, isDisabled: i === 2, icon: { sprite: 'standard', icon: 'groups' }, met...
src/components/ButtonWarning.js
mikebarkmin/gestyled
import React from 'react'; import { withTheme } from 'styled-components'; import Button from './Button'; /** * See Button for possible props. */ const ButtonWarning = props => { const { theme } = props; const bg = theme.colors.warning; const color = theme.colors.warningText; return <Button bg={bg} color={col...
assets/registration/components/DynamicFieldsSkills.js
janta-devs/nyumbani
import React, { Component } from 'react'; import AddButton from './AddButton'; import Fieldskill from './Fieldskill'; var y = [[1],]; class DynamicFieldsSkills extends Component{ constructor( context, props ){ super( context, props ); this.state = { count: 1, fields: [] } } _getAction( event ){ eve...
src/svg-icons/av/explicit.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvExplicit = (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 6h-4v2h4v2h-4v2h4v2H9V7h6v2z"/> </SvgIcon> ); AvExplicit = pure(AvExplic...
example_component.js
roscoe054/react-markdown-gen
import React, { Component } from 'react'; /** * General component description. */ export default class MyComponent extends Component { render() { // ... } } MyComponent.defaultProps = { showPagination: true, paginationColor: '#09c', paginationSpace: 20 } MyComponent.propTypes = { /** Descript...
src/js/views/lists.js
electronspin/touchstonejs-starter
import Container from 'react-container'; import React from 'react'; import { Link, UI } from 'touchstonejs'; module.exports = React.createClass({ statics: { navigationBar: 'main', getNavigation () { return { title: 'Lists' } } }, render: function () { return ( <Container scrollable> <UI.Gr...
example/src/components/SliderEntry.js
houseofstylist/react-native-snap-carousel
import React, { Component } from 'react'; import { View, Text, Image, TouchableOpacity } from 'react-native'; import PropTypes from 'prop-types'; import { ParallaxImage } from 'react-native-snap-carousel'; import styles from 'example/src/styles/SliderEntry.style'; export default class SliderEntry extends Component { ...
src/examples/ExampleComponent.js
alickzhang/react-responsive-music-player
import React from 'react'; import BasicPlayer from './BasicPlayer'; import VerticalPlayer from './VerticalPlayer'; export default () => ( <div> <BasicPlayer /> <VerticalPlayer /> </div> );
src/svg-icons/editor/format-align-right.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignRight = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignRight = pure(EditorFormatAlign...
lib-es/components/media/media.js
bokuweb/re-bulma
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; }; import React, { Component } from 'react'; import PropTypes fr...
docs/src/app/components/pages/components/Card/Page.js
pradel/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import cardReadmeText from './README'; import cardExampleWithAvatarCode from '!r...
src/js/index.js
slavapavlutin/pavlutin-node
import 'whatwg-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import logger from 'redux-logger'; import { Provider } from 'react-redux'; import { AppContainer } from 'react-hot-loader'; import App from './compon...
modules/Route.js
cojennin/react-router
import React from 'react' import warning from 'warning' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './PropTypes' const { string, bool, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to t...
js/components/pages/Guide.js
juhojo/corejumper
import React from 'react'; import SubPage from '../reusable/SubPage.js'; import SubPageContent from '../reusable/SubPageContent.js'; import KeyboardKey from '../reusable/KeyboardKey'; export default class Guide extends SubPage{ render (){ return ( <SubPageContent {...this.props}> <h1>Guide</h1> ...
Youtuber-JS/src/components/video_list_item.js
victorditadi/IQApp
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.high.url; const titleVideo = video.snippet.title; const channelTitle = video.snippet.channelTitle; // const dataPublish = video.snippet.publishedAt; return( <div style={{cu...
node_modules/@material-ui/core/es/Stepper/Stepper.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import Paper from '../Paper'; imp...
app/components/Main.js
BenGoldstein88/hitch-frontend
import React from 'react'; export default class Main extends React.Component { render() { return ( <div>{this.props.children}</div> ); } }
src/components/Footer/Footer.js
cuitianze/demo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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, { Component } from 'react'; import s from '....
packages/material-ui-icons/src/Dehaze.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M2 15.5v2h20v-2H2zm0-5v2h20v-2H2zm0-5v2h20v-2H2z" /></g> , 'Dehaze');
src/components/common/svg-icons/maps/local-pizza.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPizza = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2...
src/svg-icons/image/camera-alt.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraAlt = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5...
docs/src/app/pages/components/Buttons/ExampleButtonAnchor.js
GetAmbassador/react-ions
import React from 'react' import ButtonAnchor from 'react-ions/lib/components/Button/ButtonAnchor' const ExampleButtonAnchor = () => ( <div> <ButtonAnchor path='http://www.google.com' optClass='success'>External</ButtonAnchor> <ButtonAnchor path='http://www.google.com' target='_blank' collapse={true}>Externa...
test/helpers/shallowRenderHelper.js
RUTH2013/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/data-loader/view/DataContainer.js
sozemego/StatHelper
import React from 'react'; import {connect} from 'react-redux'; import operations from '../operations'; import FileUploadComponent from './FileUploadComponent'; import DataDisplayComponent from './DataDisplayComponent'; import selectors from '../selectors'; export class DataContainer extends React.Component { const...
anubis/frontend/src/components/footer.js
cmspsgp31/anubis
// Copyright © 2016, Ugo Pozo // 2016, Câmara Municipal de São Paulo // footer.js - footer component of the search interface. // This file is part of Anubis. // Anubis is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Fr...
demo/examples/themes/morty-theme.js
rcaferati/react-awesome-button
import React from 'react'; import { ThemeTest } from '../../components'; import Modules from '../../helpers/modules'; import { features, properties, examples } from '../common'; const THEME = 'theme-c137'; const items = examples(THEME); const component = ( <ThemeTest theme={THEME} /> ); const module = Modules.Mod...
src/pages/home.js
ChrisMichaelPerezSantiago/CodetrotterFinalProject
// npm packages import _ from 'lodash'; import React from 'react'; import {Observable} from 'rxjs'; // my packages import db from '../db'; import {Crunchyroll} from '../api'; // my components import Navbar from '../components/navbar'; import Series from '../components/series'; export default class Home extends React.C...
src/App.js
chesterhow/js-stack
// @flow import React from 'react'; import { HashRouter as Router, Route } from 'react-router-dom'; import Dev from './containers/Dev'; import Test from './containers/Test'; import './stylesheets/styles.scss'; const App = () => ( <Router basename="/"> <div> <Route exact path="/" render={(props) => <Dev {...
src/app/components/panels/Error.js
jimmed/spankhbot
import React from 'react'; import cx from 'suitcx'; export default function Error({ message, severity }) { return ( <div className={cx('Panel')}> <div className="top-bar"> <div className="top-bar-left"> <div className="menu-text">Error</div> </div> </div> <div classNam...
demos/forms-demo/src/components/PrettyPrint/index.js
idream3/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state, props} from 'cerebral/tags' import {isValidForm, getInvalidFormFields, formToJSON} from 'cerebral-forms' import {css} from 'aphrodite' import syntaxHighlight from '../../helpers/syntaxHighlight' import styles from './styles' export default...
src/components/auth/signin.js
ahmadabugosh/client-react
import React, { Component } from 'react'; import { reduxForm, Field } from 'redux-form'; import { connect } from 'react-redux'; import * as actions from '../../actions'; import { RingLoader } from 'react-spinners'; const renderInput = field => { const { input, type } = field; return ( <div> <input {...in...
Frontend/src/containers/socialauth.js
vinitraj10/Django-React-Blog
import React, { Component } from 'react'; import {withRouter} from 'react-router-dom'; import {connect} from 'react-redux'; //import {loginUsingFb} from '../actions/Authentication/social-auth'; class SocialAuth extends Component{ loadFbLoginApi() { window.fbAsyncInit = function() { FB.init({ ...
src/client/components/centered/Centered.js
flute-io/flagshipped-io-app
import React from 'react' import Component from '../component/Component' import './Centered.scss' export default class Centered extends React.Component { render () { return ( <Component class="Centered" {...this}> {this.props.children} </Component> ) } }
packages/interval/src/Component.js
nkbt/react-works
import React from 'react'; import PropTypes from 'prop-types'; export class ReactInterval extends React.Component { static defaultProps = { enabled: false, timeout: 1000 }; static propTypes = { callback: PropTypes.func.isRequired, enabled: PropTypes.bool, timeout: PropTypes.number }; c...
react-log/src/index.js
rod-stuchi/JS-inspect
import React from 'react'; import ReactDOM from 'react-dom'; import { injectGlobal } from 'styled-components'; import App from './App'; injectGlobal` body { font-family: sans-serif; margin: 0; padding: 0; background-color: #d8d8d8; min-width: 700px; overflow-x: hidden; } ::-webkit-scrollbar...
definitions/npm/react-select_v1.x.x/test_react-select_v1.x.x.js
echenley/flow-typed
import React from 'react'; import { default as SelectComponent } from 'react-select'; import type Select from 'react-select'; const ArrowRenderer = (props: { onMouseDown: Event }): React$Element<*> => <span>Arrow</span>; const ClearRenderer = (): React$Element<*> => <span />; const filterOption = (option: Object, filt...
packages/material-ui-icons/src/CastConnected.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CastConnected = props => <SvgIcon {...props}> <path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 9 9h2c...
stories/Tooltip/ExampleTheme.js
nirhart/wix-style-react
import React from 'react'; import {Tooltip} from 'wix-style-react'; import styles from './Example.scss'; export default () => <div> <Tooltip active placement="right" alignment="center" content="Dark Theme" showTrigger="custom" hideTrigger="custom" theme="dark"> <div className={styles.box}>Dark Theme</div>...
src/components/common/EditableInput.js
Scratch-it/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' export class EditableInput extends ReactCSS.Component { shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1]); constructor(props: any) { s...
webpack/components/TemplateSyncResult/components/SyncedTemplate/StringInfoItem.js
theforeman/foreman_templates
import React from 'react'; import EllipsisWithTooltip from 'react-ellipsis-with-tooltip'; import PropTypes from 'prop-types'; import InfoItem from './InfoItem'; import { itemIteratorId } from './helpers'; const StringInfoItem = ({ template, attr, tooltipText, translate, mapAttr, elipsed, }) => { const i...
client/src/app/routes/settings/containers/Students/RelativesForm.js
zraees/sms-project
import React from 'react' import { reset } from 'redux-form' import axios from 'axios' import classNames from 'classnames' import { Field, reduxForm } from 'redux-form' import WidgetGrid from '../../../../components/widgets/WidgetGrid' import Datatable from '../../../../components/tables/Datatable' import {RFField,...
src/components/Card.js
drakang4/creative-project-manager
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const Wrapper = styled.div` background-color: #ffffff; border-radius: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); display: flex; flex-direction: ${props => props.direction}; justify-content: center; ...
app/javascript/mastodon/components/status_content.js
tootsuite/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; import PollContainer from 'mastodon/containers/poll_container'; import Icon ...
client/node_modules/uu5g03/doc/main/client/src/common/no-script-and-unsupported-browser.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import UU5 from 'uu5'; import Data from '../data/app-config-data.js'; import Breadcrumbs from '../bricks/breadcrumbs.js'; export default React.createClass({ mixins: [UU5.Common.BaseMixin, UU5.Common.ElementaryMixin, UU5.Common.VucMixin], statics: { tagName: 'UU5.Doc.NoScriptAndUnsu...
src/components/auction/teams/WonPlayer.js
akeely/twoguysandadream-js
import React from 'react'; export default class WonPlayer extends React.Component { render() { var player = this.props.rosterEntry.player; var cost = this.props.rosterEntry.cost; var positions = player.positions .map(function(pos) { return pos.name; }) .join(', ')...
src/components/common/books/BookShelf.js
zainxyz/react-reads
import PropTypes from 'prop-types'; import React from 'react'; import SectionHeader from 'components/common/typography/SectionHeader'; import BookGrid from './BookGrid'; /** * Render a single bookshelf containing a collection of books * @param {Array} options.booksList The list of books * @param {Functio...
src/media/js/addon/containers/dashboardDetail.js
diox/marketplace-content-tools
/* Dashboard page for a single add-on. */ import React from 'react'; import {connect} from 'react-redux'; import {ReverseLink} from 'react-router-reverse'; import {bindActionCreators} from 'redux'; import AddonVersionListingContainer from './versionListing'; import {changeSlug, fetch as fetchAddon} from '../actions/...
src/docs/examples/TextInputBEM/TextExample.js
choudlet/ps-react-choudlet
import React from 'react'; import TextInputBEM from 'ps-react/TextInputBEM'; /** Required TextBox with error */ export default class ExampleError extends React.Component { render() { return ( <TextInputBEM htmlId="example-optional" label="First Name" name="firstname" onChang...
app/packs/src/components/AnalysisEditor.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import { OverlayTrigger, Popover } from 'react-bootstrap'; import Delta from 'quill-delta'; import { formatAnalysisContent } from './utils/ElementUtils'; import TextTemplateStore from './stores/TextTemplateStore'; import TextTemplateActions from './acti...
admin/client/Signin/components/Brand.js
alobodig/keystone
/** * Renders a logo, defaulting to the Keystone logo if no brand is specified in * the configuration */ import React from 'react'; const Brand = function (props) { // Default to the KeystoneJS logo let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 }; if (props.logo) { // If th...
components/ImageList/ImageItem/ImageActionBar/index.js
samuelngs/px
import React, { Component } from 'react'; import { View, Image, Text, StyleSheet } from 'react-native'; import Touchable from 'px/components/Touchable'; import ListItemLike from 'px/assets/icons/list_item_like.png'; import ListItemCollection from 'px/assets/icons/list_item_collection.png'; import ListItemShare from ...
src/svg-icons/action/toll.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToll = (props) => ( <SvgIcon {...props}> <path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.5...
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleTriggerImage.js
shengnian/shengnian-ui-react
import faker from 'faker' import React from 'react' import { Dropdown, Image } from 'shengnian-ui-react' const trigger = ( <span> <Image avatar src={faker.internet.avatar()} /> {faker.name.findName()} </span> ) const options = [ { key: 'user', text: 'Account', icon: 'user' }, { key: 'settings', text: 'Set...
src/svg-icons/navigation/fullscreen-exit.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreenExit = (props) => ( <SvgIcon {...props}> <path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/> </SvgIcon> ); NavigationFullscreenExit = pure(NavigationF...
system/src/routes/PurchaseOrder/containers/PurchaseOrderListViewContainer/index.js
axmatthew/react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import purchaseOrderModule from '../../../../modules/purchase-orders'; import PurchaseOrderListView from '../../components/PurchaseOrderListView'; import { baseMapStateToProps } from '../../../../...
docs/app/Examples/elements/Step/Content/StepExampleDescriptions.js
mohammed88/Semantic-UI-React
import React from 'react' import { Step } from 'semantic-ui-react' const StepExampleDescriptions = () => ( <div> <Step.Group> <Step> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> </Step> </Step.Group> <br /> <Step.Gro...
src/components/framework/head.js
nextstrain/auspice
import React from 'react'; import { connect } from "react-redux"; import { Helmet } from "react-helmet"; import { hasExtension, getExtension } from "../../util/extensions"; const Head = ({metadata}) => { let pageTitle = "auspice"; if (hasExtension("browserTitle")) { pageTitle = getExtension("browserTitle"); ...
src-example/components/organisms/Hero/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react' import styled from 'styled-components' import { palette } from 'styled-theme' import { Block, Paragraph, IconLink, IconButton, LogoImage, Tooltip } from 'components' const Wrapper = styled(Block)` display: flex; flex-direction: column; align-items: center; height: calc(100vh - 3.75re...
examples/basic/components/array.js
jas-chen/react-render-loader
import React from 'react'; import Hello from './class.js'; const array = [ <Hello name="Array1" />, <Hello name="Array2" />, <Hello name="Array3" />, [ <Hello name="Sub array1" />, <Hello name="Sub array2" />, <Hello name="Sub array3" /> ] ]; export default array;
src/decorators/withViewport.js
panli-com/MyApp
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/Type/AbstractType.js
reactmob/dos-filter
import React from 'react'; import PropTypes from 'prop-types'; export default class AbstractType extends React.Component { static propTypes = { onOperatorChange: PropTypes.func, onValueChange: PropTypes.func, operator: PropTypes.string, doRenderValueInput: PropTypes.func, do...
src/main/MainTabs.js
kunall17/zulip-mobile
/* @TODO flow */ import React from 'react'; import { TabNavigator, TabBarBottom } from 'react-navigation'; import tabsOptions from '../styles/tabs'; import StreamTabsCard from '../nav/StreamTabsCard'; import ConversationsContainer from '../conversations/ConversationsContainer'; import SettingsCard from '../settings/Se...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
johncorderox/Socialize
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'));