path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
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;
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...
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/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/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=...
src/components/jan-thank-you-header.js
ScottDowne/donate.mozilla.org
import React from 'react'; module.exports = React.createClass({ contextTypes: { intl: React.PropTypes.object }, renderMessage: function() { return ( <span> <h1> <div>{ this.context.intl.formatMessage({id: this.props.thankYouSentenceId}) }</div> </h1> </span> ); ...
lib/shared/screens/admin/screens/schemas/shared/components/template/index.js
relax/relax
import Component from 'components/component'; import bind from 'decorators/bind'; import React from 'react'; import PropTypes from 'prop-types'; import {bindActionCreators} from 'redux'; import {changeSchemaTemplate} from 'actions/schema'; import {connect} from 'react-redux'; import SchemaTemplatePicker from './schema...
app/javascript/mastodon/features/ui/components/video_modal.js
alarky/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; impor...
src/modules/Components/User/Views/Mail.js
rtellez700/MESA_Connect_2.0
import React, { Component } from 'react'; import Inbox from '../../Mail/Inbox'; class Mail extends Component { render() { return ( <Inbox /> ); } } module.exports = Mail;
components/index.js
mookey/consi
import React from 'react'; export default class IndexComponent extends React.Component { componentDidMount() { console.log('index'); } render() { return ( <div> <p>This is the ooondex page</p> </div> ); } }
src/components/applayout/ContentSection.js
kryptnostic/gallery
import React from 'react'; import styled from 'styled-components'; import StyledFlexContainerStacked from '../flex/StyledFlexContainerStacked'; import StyledFlexContainerStackedCentered from '../flex/StyledFlexContainerStackedCentered'; const OuterSectionContainer = styled(StyledFlexContainerStackedCentered)` back...
app/addons/permissions/routes.js
popojargo/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/parts/menu-more.js
fabiosantoscode/component-navigation
import Balloon from '@economist/component-balloon'; import React from 'react'; import SectionsCard from '@economist/component-sections-card'; export default function MenuMore({ href, title, moreBalloonData }) { return ( <Balloon dynamicPositioning={false} className="navigation__more navigation__main-...
www/src/html.js
avinashbot/redd
import React from 'react' import 'semantic-ui-css/semantic.min.css' const html = ({ headComponents, css, body, postBodyComponents }) => ( <html lang='en'> <head> <meta charset='utf-8' /> <meta http-equiv='x-ua-compatible' content='ie=edge' /> <meta name='viewport' content='width=device-width, i...
public/js/components/PrimaryNav.js
JasonShin/HELP-yo
import React from 'react'; import {ReactRouter, Router, Link, withRouter} from 'react-router'; import FirebaseAPI from '../api/firebase.api'; import {logoutFirebase} from '../api/student.api'; import WorkshopsStore from '../stores/WorkshopsStore'; import { DateField, Calendar } from 'react-date-picker'; const classNam...
src/pages/navigation/Navigation.js
Perspicere/PerspicereMagazine
/** * 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' i...
app/javascript/mastodon/features/status/components/detailed_status.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...
web/src/components/ErrorPage.js
fmiglianico/HaveYouMet
import React, { Component } from 'react'; class ErrorPage extends Component { render() { return ( <section id="error" className="first-section col-md-12 text-center"> <h1><strong>Error {this.props.code}</strong></h1> <p className="lead">{this.props.message}</p> </section> ); } } ...
blueocean-material-icons/src/js/components/svg-icons/content/inbox.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> </SvgIcon> ); ContentInbox.display...
example/src/screens/types/Notification.js
pqkluan/react-native-navigation
import React from 'react'; import {StyleSheet, View, Text, Dimensions, Button} from 'react-native'; class Notification extends React.Component { render() { return ( <View style={styles.container}> <Text style={styles.title}>In-App Notification</Text> <Text style={styles.content}>You have 1...
ajax/libs/recompose/0.20.2/Recompose.js
emmy41124/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
examples/js/keyboard-nav/enter-to-edit-with-nav-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/components/event/Header.js
tervay/AutoScout
import React from 'react'; import { linkAlliance } from '@/js/links'; import { eventTypeShortenerMap } from '../../js/util'; export default class EventHeader extends React.Component { render() { return ( <div className={'box'} style={{ marginTop: '10px' }}> <nav className={'level'}> <div ...
src/js/components/AuthenticationFailed.js
mmagr/gui
import React, { Component } from 'react'; export default function AuthenticationFailed(props) { return ( <div className="full-height relative background-info"> <div className="valign-wrapper center-align full-height todo-div"> <div className="full-width"> <i className="material-icons">loc...
index.js
HashDot/react-playground
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App.jsx' ReactDOM.render( <App />, document.getElementById('root') )
index.android.js
Ch3D/ReactNativePlayground
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class ReactNativePlayground extends Component { render() { return ( <View style={styl...
docs/components/docs/DocsFeature.js
casesandberg/reactcss
'use strict' import React from 'react' import reactCSS from 'reactcss' const { Container } = require('../layout') const { Animate } = require('../common') import { Grid } from '../../../modules/react-basic-layout' import { Raised } from '../../../modules/react-material-design' export class DocsFeature extends React...
src/components/pagination/index.js
bobinette/papernet-front
import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import classNames from 'classnames'; import './pagination.scss'; const PaginationItem = ({ active, page, offset, onChange }) => ( <li className={classNames('page-item', { active })}> <butt...