path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
lib/components/TabView/index.js
gmtcreators/atom-solidity
'use babel' // Copyright 2018 Etheratom Authors // This file is part of Etheratom. // Etheratom is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
imports/components/OceanBillEditor/OceanBillEditorDisplay.t-jest.js
jamesmillerburgess/freight-for-all
import React from 'react'; import ReactDOM from 'react-dom'; import Enzyme, { shallow } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({ adapter: new Adapter() }); import OceanBillEditorDisplay, * as OBED from './OceanBillEditorDisplay.js'; describe('OceanBillEditorDisplay.js', () => ...
app/components/BlockModal/index.js
blockfs/frontend-react
import React from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import MdHelpOutline from 'react-icons/lib/md/help-outline'; import Wrapper from './Wrapper' const modalStyles = { overlay : { position : 'fixed', top : 0, left : 0, right...
node_modules/react-error-overlay/lib/containers/StackFrame.js
oiricaud/horizon-education
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
src/components/Footer/Footer.js
mauphes/own-git-project
/** * 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 from 'react'; import withStyles from 'isomorp...
src/containers/auth/SetupAssistantScreen.js
meetfranz/franz
/* eslint-disable no-await-in-loop */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import { sleep } from '../../helpers/async-helpers'; import SetupAssistant from '../../components/auth/SetupAssistant'; import ServicesStore from '../../sto...
src/app/component/image/image.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import Image from '.' storiesOf('Image', module) .add('default', () => <Image src="http://placehold.it/200x200" alt="placeholder image" />) .add('inline', () => <Image src="http://placehold.it/200x200" inline alt="placeholder image" />) .add('...
src/client.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 'whatwg-fetch'; import React from 'react'; impor...
src/SearchUrl.js
bbokorney/hold-my-beer
import React from 'react'; import './SearchUrl.css'; function SearchUrl(props) { const searchUrl = decodeURI(props.searchUrl.substring(59)); return ( <div className="SearchUrl"> <code>{searchUrl}</code> </div> ); } export default SearchUrl;
src/containers/weather_list.js
wongjenn/redux-weather-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; class WeatherList extends Component { renderWeather(cityData) { const name = cityData.city.name; const temps = _.map(cityData.list.map( ...
src/components/Footer/index.js
AnhHT/my-first-reactjs
import React from 'react' const Footer = (props) => { return ( <footer> <p> AnhHT © 2015 </p> </footer> ) } export default Footer
examples/with-styled-components/pages/_app.js
BlancheXu/test
import App from 'next/app' import React from 'react' import { ThemeProvider } from 'styled-components' const theme = { colors: { primary: '#0070f3' } } export default class MyApp extends App { render () { const { Component, pageProps } = this.props return ( <ThemeProvider theme={theme}> ...
packages/demos/todomvc/src/components/Footer/index.js
fopsdev/cerebral
import React from 'react' import { connect } from '@cerebral/react' import { state, signal } from 'cerebral/tags' import counts from '../../computed/counts' import classnames from 'classnames' const filters = ['All', 'Active', 'Completed'] export default connect( { filter: state`filter`, counts, filterC...
tests/acceptance/src/springs.js
andrewkshim/react-animatronics
import React from 'react' import PropTypes from 'prop-types' import Circle from './internal/components/Circle' import Example from './internal/components/Example' import { COLOR_A, COLOR_B, COLOR_C } from './internal/styles' import { withAnimatronics, withControl } from '../../../src' const START_SCALE = 'scale(0.8)'...
src/packages/@ncigdc/modern_components/SsmsTable/SsmsTable.relay.js
NCI-GDC/portal-ui
/* @flow */ /* eslint fp/no-class:0 */ import React from 'react'; import { graphql } from 'react-relay'; import { compose, withPropsOnChange } from 'recompose'; import { withRouter } from 'react-router-dom'; import { parse } from 'query-string'; import { parseIntParam, parseFilterParam, parseJSONParam, } from '@...
frontend/src/Settings/ImportLists/ImportLists/AddImportListPresetMenuItem.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import MenuItem from 'Components/Menu/MenuItem'; class AddImportListPresetMenuItem extends Component { // // Listeners onPress = () => { const { name, implementation } = this.props; this.props.onPress({ ...
app/javascript/mastodon/features/standalone/public_timeline/index.js
hugogameiro/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandPublicTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader from ...
src/components/switch.js
ymkz/syncedTabs
import React from 'react' import store from 'store' import compose from 'recompose/compose' import withState from 'recompose/withState' import withHandlers from 'recompose/withHandlers' import '../styles/switch.css' const enhance = compose( withState('checked', 'switchToggle', props => store.get(props.identifier)), ...
examples/00 Chessboard/Tutorial App/index.js
zetkin/react-dnd
import React, { Component } from 'react'; import Board from './Board'; import { observe } from './Game'; /** * Unlike the tutorial, export a component so it can be used on the website. */ export default class ChessboardTutorialApp extends Component { constructor(props) { super(props); this.unobserve = obse...
src/containers/Login/index.js
yuwanlin/react-bookstore
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { login } from '../../actions'; import { connect } from 'react-redux'; class Login extends Component { back = (e) => { e.preventDefault(); const { history } = this.props; history.goBack(); } submit = (e) => { e.prevent...
app/components/ListItem/index.js
rajeshbhatt/shopping-cart-redux
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
bMyProject/__tests__/index.ios.js
yueenen/React-Native
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 /> ); });
src/containers/views/tests/documentnew.spec.js
codegaze/jekyll-admin
import React from 'react'; import { Link } from 'react-router'; import { shallow } from 'enzyme'; import expect from 'expect'; import { DocumentNew } from '../DocumentNew'; import { doc } from './fixtures'; const defaultProps = { errors: [], fieldChanged: false, updated: false, params: { collection_name: doc...
src/components/gallery.js
yvanbister/MurielvanCaster
import React, { Component } from 'react'; import Lightbox from 'react-image-lightbox'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; class Gallery extends Component { constructor(props) { super(props); this.state = { photoIndex: 0, isOp...
app/routes.js
straku/toggl-balance
import React from 'react' import { Route, IndexRoute } from 'react-router' import redirect from './utils/redirect' import { getBasePath } from './utils/router' import App from './components/App/App' import Setup from './components/Setup/Setup' import Token from './components/Setup/Token/Token' import SinceDate from ...
node_modules/react-bootstrap/es/Accordion.js
CallumRocks/ReduxSimpleStarter
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PanelGroup from '...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
hukezhu/React-Native-demo
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/svg-icons/navigation/arrow-upward.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowUpward = (props) => ( <SvgIcon {...props}> <path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/> </SvgIcon> ); NavigationArrowUpward = pure(NavigationArrowUpward); NavigationA...
src/svg-icons/action/turned-in.js
w01fgang/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...
modules/__tests__/History-test.js
littlefoot32/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' describe('History Mixin', function () { var node beforeEach(function () { node = d...
src/compose.spec.js
benmvp/react-composite-events
// @flow /* eslint-disable no-console */ import React from 'react' import {shallow, mount} from 'enzyme' import compose from './compose' import {getDisplayName} from './utils' const Dummy = () => <div /> const withMouseRest = compose({ eventPropName: 'onMouseRest', triggerEvent: ['onMouseOver', 'onMouseMove'], ...
static/src/containers/HomeContainer/index.js
dternyak/React-Redux-Flask
import React from 'react'; /* components */ import { Home } from '../../components/Home'; export const HomeContainer = () => <section> <Home /> </section>;
lib/Loading/LoadingView.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import Paneset from '../Paneset'; import LoadingPane from './LoadingPane'; const LoadingView = ({ panesetProps, ...props }) => ( <Paneset {...panesetProps}> <LoadingPane {...props} /> </Paneset> ); LoadingView.propTypes = { panesetProps: PropTyp...
src/components/header.js
ateixeira/andreteixeira.info
import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; module.exports = React.createClass({ render: function() { return ( <div className="cabecalho"> <Navbar collapseOnSelect fixedTop> <Navbar...
app/src/client/app/framework/IFramePresentation.js
syrel/Open-Data
/** * Created by syrel on 23.05.17. */ import React from 'react'; import PresentationComponent from './PresentationComponent'; import Presentation from './Presentation'; class IFrameComponent extends PresentationComponent { defaultDisplayedValue() { return 'about:blank'; } iframe() { re...
frontend/src/Movie/Index/Menus/MovieIndexSortMenu.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import MenuContent from 'Components/Menu/MenuContent'; import SortMenu from 'Components/Menu/SortMenu'; import SortMenuItem from 'Components/Menu/SortMenuItem'; import { align, sortDirections } from 'Helpers/Props'; import translate from 'Utilities/String/t...
src/FootprintCategoryEdit/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import IconAvaWrapper from '../IconAvaWrapper'; import Spacer from '../Spacer'; import LabelNumberDisplay from '../LabelNumberDisplay'; import styles from './styles.css'; function FootprintCategoryEdit(props) { return...
client/common/components/SortButton.js
Haaarp/geo
import React from 'react'; const SortButton = (props) => { return( <button className={props.className + " sort"}> <span className="arrow-sort-top"> <svg width="7px" height="5px" viewBox="0 0 7 5" version="1.1"> <g id="Page-1" stroke="none" strokeWidth="1" fi...
src/app.js
jenca-cloud/jenca-gui
import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' import { applyMiddleware, compose, createStore, combineReducers } from 'redux' import { Provider } from 'react-redux' import { Router, Route, IndexRoute } from 'react-router' import createHistory from 'history/lib/createHashHistory' impo...
packages/idyll-components/src/svg.js
idyll-lang/idyll
import React from 'react'; import InlineSVG from 'react-inlinesvg'; class SVG extends React.PureComponent { render() { const { hasError, updateProps, idyll, ...props } = this.props; if (!this.props.src) { return <svg {...props} />; } return <InlineSVG {...props} />; } } SVG.defaultProps = { ...
src/containers/Asians/_components/PublishedBreakRound/Ballots/LargeBallots/Instance/BallotInstance/MotionDisplay.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import ListSubheader from 'material-ui/List/ListSubheader' import List, { ListItem, ListItemText } from 'material-ui/List' export default connect(mapStateToProps)(({ breakRoom, motionsById }) => <List> <ListSubheader disableSticky > ...
packages/material-ui-icons/src/LaptopWindows.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 18v-1c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2v1H0v2h24v-2h-4zM4 5h16v10H4V5z" /></g> , 'LaptopWindows');
src/components/__tests__/ui/form-input-test.js
visa-innovation-sf/ldn-retail-demo
/** * Test to check if the component renders correctly */ /* global it expect */ import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import FormInput from '@ui/FormInput'; it('FormInput renders correctly', () => { const tree = renderer.create( <FormInput value={'John ...
src/components/Auth/ForgotPassword/ForgotPassword.react.js
uday96/chat.susi.ai
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import './ForgotPassword.css'; import $ from 'jquery'; import UserPreferencesStore from '../../../...
www/frontend/src/components/Product.js
lokiiart/upali-mobile
import React from 'react'; import { Link } from 'react-router'; const Product = () => { return( <div className="product section"> <img src="dist/images/pr_1.jpg" /> <Link to="/order"> <img src="dist/images/pr_2.jpg" /> </Link> <img src="dist/imag...
src/components/locator/components/Hours.js
mgoodenough/estimator
'use strict'; /* * Module Definition * */ import React from 'react'; import { getClassNames } from '../utils/index'; import DefinitionList from './presentational/DefinitionList'; /* * Class Definition * */ class Hours extends React.Component { constructor(props) { super(props); this.state = { ...
src/Fade.js
zerkms/react-bootstrap
import React from 'react'; import Transition from './Transition'; class Fade extends React.Component { render() { return ( <Transition {...this.props} className='fade' enteredClassName='in' enteringClassName='in' > {this.props.children} </Transition> ...
src/js/components/soon/index.js
afk-mcz/web_client.ellu
import React from 'react'; import PropTypes from 'prop-types'; const Soon = () => ( <div> <article className="glitch"> <span>ALWAYS Ɐ WIP</span> </article> </div> ); export default Soon;
src/common/notificator/create/CreateNotifications.js
fastmonkeys/respa-ui
import React, { Component } from 'react'; import { Grid } from 'react-bootstrap'; import firebase from 'firebase/app'; import 'firebase/auth'; import 'firebase/firestore'; import Loader from 'react-loader'; import moment from 'moment'; import { formatValuesForUse, formatValuesForDatabase } from '../utils'; import Crea...
brakeless-react/src/index.js
pallabganai/brakeless
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/components/Contact.js
xiaofan2406/react-starter-kit
import React from 'react'; import { Loader } from '../widgets'; const Contact = () => { return ( <div className="text-center"> <Loader /> </div> ); }; export default Contact;
app/javascript/mastodon/features/ui/components/bundle_column_error.js
esetomo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
blueocean-material-icons/src/js/components/svg-icons/content/block.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentBlock = (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 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 ...
src/components/share-form.js
marcusdarmstrong/cloth-io
import React from 'react'; import { validate, TITLE_REX, URL_REX } from '../validator'; import fetch from 'isomorphic-fetch'; import ContentEditable from './content-editable'; export default class ShareForm extends React.Component { state = { title: '', link: '', body: '', titleError: false, titl...
src/svg-icons/image/timer-3.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer3 = (props) => ( <SvgIcon {...props}> <path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49.11-.73 0-.55-.09-1....
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/ButtonGroup.js
jmanday/Master
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/components/ContactDetails/ContactDetails.spec.js
Jarrydcrawford/react-contact-manager
import React from 'react' import ReactDOM from 'react-dom' import { shallow } from 'enzyme' import ContactDetails from './ContactDetails' const props = { active: 1, contact: { firstName: 'Bob', lastName: 'Smith', email: 'bob.smith@email.com', }, } describe('ContactDetails component', () => { it('...
src/svg-icons/image/movie-creation.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMovieCreation = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/> </SvgIcon> ); ImageMovieCreati...
packages/lore-hook-dialogs-bootstrap/src/blueprints/create/Wizard/index.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Wizard from './Wizard'; export default createReactClass({ render: function() { const { modelName } = this.props; const { schema, fieldMap, actionMap, steps, data, validators, fields,...
js/ReactCommon.js
wingspan/wingspan-forms
import React from 'react' import ReactDOM from 'react-dom' import $ from 'jquery' const PropTypes = React.PropTypes; export function noop() { } export function isEmpty(thing) { return thing == null || thing === ''; } export function isObject(thing) { return typeof thing === "object" && !!thing; } export fu...
client/src/components/master-layout/index.js
fmoliveira/scalable-stack
import React from 'react' import NavBar, { NavBarLink as Link } from 'components/navbar' import './styles.scss' const MasterLayoutComponent = ({ children }) => { return ( <div> <NavBar> <Link label='Home' to='/'/> <Link label='Profile' to='/account/profile'/> <Link label='Logout' ...
src/svg-icons/content/content-cut.js
xmityaz/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-...
ide/static/js/tooltipData.js
Cloud-CV/IDE
import React from 'react'; class tooltipData extends React.Component { constructor(props) { super(props); this.change = this.change.bind(this); } change(e) { if (this.props.data.type === 'checkbox') { this.props.changeField(this.props.id, e.target.checked); } else { this.props.changeF...
src/layouts/index.js
KnightHawk3/BARBlog
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' import './index.css' import logo from './logo.svg' const ListLink = props => <li style={{ display: `inline-block`, marginRight: `1rem` }}> <Link to={props.to} style={{ textDecoration: 'n...
src/components/footer.js
RadLikeWhoa/radlikewhoa.github.io
import React from 'react' export const scrollToTop = e => { let position = window.pageYOffset let time = 0 let percentage if (e) { e.preventDefault() } // The easing function is an easeInOutQuad function. const easing = function (time) { return time < 0.5 ? 2 * time * time : -1 + (4 - 2 * time...
src/svg-icons/action/bookmark-border.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBookmarkBorder = (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-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionBookmarkBorder = pure(ActionBook...
src/Hero/HeroVideo.js
boldr/boldr-ui
// @flow import React from 'react'; import classNames from 'classnames'; import { createWrappedComponent } from '../util/boldrui'; export type Props = { tag?: string, className?: string, isTransparent?: boolean, }; export function HeroVideo({ tag = 'div', ...props }: Props) { const className = classNames( ...
src/client/bookcreator.js
CodeShareRepeat/ReactBookStore
import React from 'react'; export default class BookCreator extends React.Component{ constructor(props) { super(props); this.state = { titel: "emptystring", autor: "emptystring" }; this.handleTitelChange = this.handleTitelChange.bind(this); this.handleAutorChange = this.ha...
src/utils/stylePropable.js
pradel/material-ui
import React from 'react'; import warning from 'warning'; let hasWarned; const warn = () => { warning(hasWarned, 'The \'material-ui/lib/mixins/style-propable.js\' mixin has been deprecated.' + ' Please do not use this mixin as it will be removed in an upcoming release.'); hasWarned = true; }; export const mer...
client/node_modules/uu5g03/dist-node/forms-v3/basic-form.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, SectionMixin} from './../common/common.js'; import {Button} from './../bricks/bricks.js'; import FormMixin from './mixins/form-mixin.js'; import './basic-form.less'; export const BasicForm = React.createClass({ mixins: [ BaseMixin, ElementaryMi...
examples/todomvc-universal/src/components/TodoListFooter.js
4Catalyzer/found-relay
import Link from 'found/Link'; import PropTypes from 'prop-types'; import React from 'react'; import { createFragmentContainer, graphql } from 'react-relay'; import RemoveCompletedTodosMutation from '../mutations/RemoveCompletedTodosMutation'; const propTypes = { viewer: PropTypes.object.isRequired, relay: PropTy...
app/node_modules/react-router/es6/Router.js
BZhawaii/ArtStorm
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 = {...
app/javascript/mastodon/features/hashtag_timeline/index.js
8796n/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../ui/components/column'; import { refreshTimeline, updateTimeline, deleteFromTimelines } from '../../actions/timeline...
packages/react-devtools-shell/src/app/InspectableElements/CustomObject.js
TheBlasfem/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; class Custom { _number = 42; get number() { return this._number; } } export def...
packages/material-ui-icons/src/ControlPoint.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ControlPoint = props => <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.5...
src/NavItem.js
mxc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-file.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin} from './../common/common.js'; import TextInputMixin from './text-input-mixin.js'; import {Glyphicon} from './../bricks/bricks.js'; import './file.less'; export default React.createClass({ mixins: [ BaseMixin, ElementaryMixin, TextInputMixi...
src/components/contemporary/MassageForm.js
bharney/YogaMarieMills
import React from 'react'; import TextInput from '../common/TextInput'; import TextAreaInput from '../common/TextAreaInput'; import RemoveRowButton from '../common/RemoveRowButton'; const MassageForm = ({updateDescriptionState, updateTitleState, updateMassageState, removeRow, massage }) => { let displayIcon = funct...
ee/app/engagement-dashboard/client/components/data/Histogram.stories.js
iiet/iiet-chat
import { Box, Flex, Margins } from '@rocket.chat/fuselage'; import React from 'react'; import { Histogram } from './Histogram'; export default { title: 'admin/enterprise/engagement/data/Histogram', component: Histogram, decorators: [(fn) => <Margins all='x16'> <Flex.Container> <Box children={fn()} style={{ he...
201601react/李兰兰/3/app/components/Button/Button.js
zhufengreact/homework
import React, { Component } from 'react'; class Button extends Component { handleClick(){ alert('戳我干嘛!'); } render(){ const style = require('./Button.less'); return ( <button className="my-button" onClick={this.handleClick.bind(this)}> 快戳我 </button> ); } } export default B...
client/modules/App/components/DevTools.js
acguanacaste/liomysSalvini
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-w" > <LogMonitor /> ...
src/parser/warrior/arms/modules/talents/ImpendingVictory.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from ...
src/routes/Dashboard/components/DeckRunner.js
TheTorProject/ooni-wui
import React from 'react' import { connect } from 'react-redux' import { FormattedMessage } from 'react-intl' import Modal from 'react-modal' import { Field, reduxForm } from 'redux-form' import { runNettest } from '../../../actions/nettest' import { closedRunDeck } from '../../../actions/dashboard' import { ge...
web/components/shared/SquareBlock.js
skidding/flatris
import React from 'react'; import PropTypes from 'prop-types'; /** * Building block for Tetrominoes and the grid of the Well, occupying a 1x1 * square block. The only configurable property square blocks have is their * color. */ const SquareBlock = ({ color }) => ( <div className="square-block" style={{ backgrou...
src/components/CreateRoomMenu.js
jtak93/phaser-practice
import React, { Component } from 'react'; import { Grid, Button, Container, Divider, Input } from 'semantic-ui-react' const CreateRoomMenu = (props) => { return ( <div> <Container fluid> <Button onClick={props.onBackToMainMenu} icon='reply' labelPosition='left' ...
DaiJiale-Front-End/FE_Plugins/React.js/react_demos_collected_by_Dave/demo13/src/app.js
daijiale/DaiJiale-ProfessionalNotes
import React from 'react'; export default class App extends React.Component{ constructor(props) { super(props); this.render = this.render.bind(this); this.state = { items: this.props.items, disabled: true }; } componentDidMount() { this.setState({ disabled: false }) ...
app/containers/LanguageProvider/index.js
iPhaeton/todo-list
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
app/javascript/mastodon/components/hashtag.js
yukimochi/mastodon
// @ts-check import React from 'react'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from './permalink'; import ShortNumber from 'mastodon/co...
src/svg-icons/action/face.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFace = (props) => ( <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-...
src/components/graphql.js
MoosemanStudios/app.moosecraft.us
// Now, let's create a GraphQL-enabled component... // ... then, let's create the component and decorate it with the `graphql` // HOC that will automatically populate `this.props` with the query data // once the GraphQL API request has been completed // ---------------------- // IMPORTS /* NPM */ import React from ...
docs/app/Examples/elements/Image/index.js
ben174/Semantic-UI-React
import React from 'react' import Types from './Types' import States from './States' import Variations from './Variations' import Groups from './Groups' const ImageExamples = () => ( <div> <Types /> <States /> <Variations /> <Groups /> </div> ) export default ImageExamples
src/components/Table/TableColumn.js
wundery/wundery-ui-react
import React from 'react'; const TableColumn = () => {}; TableColumn.propTypes = { attribute: React.PropTypes.string, bold: React.PropTypes.bool, builder: React.PropTypes.func, center: React.PropTypes.bool, copyable: React.PropTypes.bool, formatter: React.PropTypes.shape({ format: React.PropTypes.func.isR...
src/components/app.js
alexnsl/ipmaps
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div className="container"> {this.props.children} </div> ); } }
admin/client/App/screens/Item/components/RelatedItemsList/RelatedItemsList.js
ONode/keystone
import React from 'react'; import { Link } from 'react-router'; import { Alert, BlankState, Center, Spinner } from '../../../../elemental'; import DragDrop from './RelatedItemsListDragDrop'; import ListRow from './RelatedItemsListRow'; import { loadRelationshipItemData } from '../../actions'; import { TABLE_CONTROL_C...
src/Game/UI/Panel/Talent.js
digijin/space-station-sim
// @flow import React from 'react'; import { connect } from 'react-redux'; import {keys} from 'lodash' import Draggable from 'react-draggable' import Header from './Component/Header' import Button from 'Game/UI/Button' import TalentData from 'Game/Data/Talent' import type {TalentType} from 'Game/Data/Talent' clas...
js/jqwidgets/demos/react/app/datatable/editing/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let ordersSource = { dataFields: [ { name: 'OrderID', type: 'int' }, { name: 'Freight', type:...
react-components/src/library/components/standards/standards-table.js
concord-consortium/rigse
import React from 'react' import StandardsRow from './standards-row' export const PAGE_SIZE = 10 export default class StandardsTable extends React.Component { constructor (props) { super(props) this.search = this.props.search || window.searchASN this.paginateUp = this.paginateUp.bind(this) this.pagi...
client/Contests/components/ProblemView.js
rystecher/senior-design
import React from 'react'; import { fetchProblem } from '../ContestActions'; import spdf from './simplepdf'; import './problemview.css'; export default class ProblemViewer extends React.Component { constructor(props) { super(props); this.contestId = props.contestId; this.problemNum = props...
src/blueprints/route/files/src/routes/__name__/components/__name__.js
alexberriman/local-deals
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h4><%= pascalEntityName %></h4> </div> ) export default <%= pascalEntityName %>
docs/app/Examples/modules/Popup/Variations/PopupExampleInverted.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button, Icon, Popup } from 'semantic-ui-react' const PopupExampleInverted = () => ( <div> <Popup trigger={<Button icon='add' />} content='Hello. This is an inverted popup' inverted /> <Popup trigger={<Icon circular name='heart' />} content=...