path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
docs/app/src/components/NavMain.js
tercenya/compendium
import React from 'react'; import { Link } from 'react-router'; import { Navbar, Nav } from 'react-bootstrap'; import FontAwesomeIcon from './FontAwesomeIcon'; import Root from '../Root'; const baseUrl = Root.assetBaseUrl || ''; const NAV_LINKS = { 'introduction': { link: `${baseUrl}/introduction.html`, ti...
src/svg-icons/image/center-focus-weak.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCenterFocusWeak = (props) => ( <SvgIcon {...props}> <path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-...
test/PaginationTest.js
gusreiber/OSS-plugin-site
import React from 'react'; import {createRenderer} from 'react-addons-test-utils'; import expect from 'expect'; import Pagination from '../app/components/Widget/Pagination'; const testElement = (<Pagination router={{ replace: (location) => { expect(location.query.q).toBe('extrem'); }} } location={...
packages/material-ui-icons/src/Cloud.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Cloud = props => <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z" /> ...
src/app/components/search/SearchResultsTable/StatusCell.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import TableCell from '@material-ui/core/TableCell'; import { makeStyles } from '@material-ui/core/styles'; function findStatusObjectOrNull(statuses, statusId) { if (!statuses) { return null; } const index = statuses.findIndex(({ id }) => id === ...
src/components/SaveButton/SaveButton.js
pedrojimenezp/nested-forms
import React from 'react'; import { connect } from 'react-redux'; import { selectors as attributesSelectors } from '../../reducers/attributes'; import './styles.css'; const SaveButton = ({ attributes }) => { const isDisabled = attributes.some(a => !a.valid); return ( <div className="buttons"> <button ty...
client/src/app/routes/settings/containers/FeeCollections/Details.js
zraees/sms-project
import React from 'react' import {reset} from 'redux-form'; import axios from 'axios'; import classNames from 'classnames'; import isEmpty from 'lodash/isEmpty'; import {connect} from 'react-redux' import { Field, FieldArray, reduxForm, formValueSelector, getFormValues } from 'redux-form' import {required, email, numb...
newclient/scripts/components/user/radio-control/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js
it33/actor-platform
import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, Snackbar } from 'material-ui'; import ReactZeroClipboard from 'react-zeroclipboard'; import { KeyCo...
app/javascript/mastodon/features/compose/components/character_counter.js
kazh98/social.arnip.org
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
src/components/icons/InsideSalesLogoIcon.js
austinknight/ui-components
import React from 'react'; const InsideSalesLogoIcon = props => ( <svg {...props.size || { width: '180px', height: '180px' }} {...props} viewBox="0 0 180 180"> {props.title && <title>{props.title}</title>} <g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd"> <g id="InsideSales-l...
tests/routes/Home/components/HomeView.spec.js
willthefirst/book-buddy
// import React from 'react' // import { HomeView } from 'routes/Home/components/HomeView' // import { render } from 'enzyme' // // describe('(View) Home', () => { // let _component // // beforeEach(() => { // _component = render(<HomeView />) // }) // // // it('Renders a welcome message', () => { // // ...
src/components/general/modals/employeeFormModal/EmployeeFormModal.js
katima-g33k/blu-react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, ButtonToolbar, Col, FormGroup, Modal, Row, } from 'react-bootstrap'; import { Checkbox, Input } from '../../formInputs'; import { Employee } from '../../../../lib/models'; import i18n from '../../../../lib/i18n';...
src/lib/components/bottomSheet/BottomSheet.js
lighter-cd/ezui_react_one
import React from 'react'; import PropTypes from 'prop-types'; import injectSheet from 'react-jss'; import classNames from 'classnames'; const styles = { button: { '-webkit-tap-highlight-color': 'rgba(0, 0, 0, 0)', // eslint-disable-next-line '-webkit-tap-highlight-color': 'transparent', '&:focus...
src/utils/defaultClearRenderer.js
submittable/react-select
import React from 'react'; export default function clearRenderer () { return ( <span className="Select-clear" dangerouslySetInnerHTML={{ __html: '&times;' }} /> ); };
packages/react-scripts/fixtures/kitchensink/src/index.js
shrynx/react-super-scripts
/** * 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...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
Jeremy-Meng/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
src/server.js
DaveyEdwards/myiworlds
/** * 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 path from 'path'; import express from 'express';...
src/svg-icons/action/view-list.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList = pure(ActionViewList); Actio...
client/app/components/Header/index.js
Kielan/onDemanager
import React from 'react'; import autobind from 'react-autobind'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import loggedInSelector from 'loggedInSelector'; import showModalComposeSelector from 'showModalComposeSelector'; import { showModalCompose } from 'App/actions'; imp...
packages/react-interactions/events/src/dom/Tap.js
flarnie/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 type { ReactDOMResponderContext, ReactDOMResponderEvent, PointerType, } from 'shared/ReactDOMTypes'; impo...
src/components/metadata/tests/metabuttons.spec.js
bunto/bunto-admin
import React from 'react'; import { mount } from 'enzyme'; import MetaButtons from '../MetaButtons'; const defaultProps = { currentType: 'simple', parentType: 'array' }; function setup(props = defaultProps) { const actions = { onConvertClick: jest.fn(), onRemoveClick: jest.fn(), onDropdownFocus: jes...
src/default-render-factory.js
travi/hapi-react-router
import React from 'react'; import {renderToString} from 'react-dom/server'; import {RouterContext} from 'react-router'; export default function (request, store, renderProps, Root) { return otherProps => renderToString( <Root request={request} store={store} {...otherProps}> <RouterContext {...renderProps} /...
client/modules/core/components/edit_view/edit_chapter_view_form.js
bompi88/grand-view
import React from 'react'; import PropTypes from 'prop-types'; import { Field, reduxForm } from 'redux-form'; import { renderTextInput } from '../prototypes/form_prototypes'; const EditRootViewForm = (props) => { const { setDescription, setName, change, nodeId, text } = props; return ( <form> <Field ...
app/javascript/mastodon/features/mutes/index.js
h3zjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
docs/src/sections/ButtonSection.js
pombredanne/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ButtonSection() { return ( <div className="bs-docs-section"> <h1 className="page-header"> <An...
src/svg-icons/editor/monetization-on.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMonetizationOn = (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.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2...
app/components/ListItem/index.js
mydearxym/coder_club_frontend
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;
app/javascript/mastodon/features/ui/index.js
tateisu/mastodon
import classNames from 'classnames'; import React from 'react'; import { HotKeys } from 'react-hotkeys'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Redirect, withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import NotificationsContai...
lib/index.js
mtuck063/remontant
import React from 'react' import { render } from 'react-dom' import Autocomplete from './Autocomplete' require('../assets/stylesheets/index.scss'); require('../assets/stylesheets/custom.scss'); const App = React.createClass({ getInitialState() { return { theme: 'custom' } }, autocompleteCallback(v, autocomp...
src/components/LineGraphComponents/LineGraphTabs/index.js
badT/twitchBot
import React from 'react'; import { styles } from './styles.scss'; export default function LineGraphTabs(props) { return ( <div className={`${styles}`}> <section className="row"> <div className="col-xs-12 graph-tab-holder"> <h2 className={`graph-tab ${props.activeGraph === 'em...
src/pages/NotFound/NotFound.js
romellogood/react-stylus-reactrouter-boilerplate
import React from 'react'; import styles from './NotFound.styl'; export default class NotFound extends React.Component { render() { return ( <div className={styles.NotFound}> <p>NotFound</p> </div> ) } }
src/paper_view.js
offenesdresden/annotieren
import React from 'react' import Route from 'react-route' import { Card, CardTitle, CardActions, CardText } from 'react-md/lib/Cards' import { RaisedButton } from 'react-md/lib/Buttons' import { CircularProgress } from 'react-md/lib/Progress' import { Map, Marker, Popup, TileLayer } from 'react-leaflet' import Naviga...
demo/textfield/textfield.js
Graf009/react-mdl
import React from 'react'; import ReactDOM from 'react-dom'; import Textfield from '../../src/Textfield'; function linkToState(target, property) { return event => { target.setState({ [property]: event.target.value }); }; } class Demo extends React.Component { constructor(props)...
src/spa/components/main-container.react.js
NYCSwan/whats-up
import React from 'react'; import SetupProfile from './profile/setup-profile.react'; import Chats from './chat/chats.react'; import Modal from './modal.react'; import AddContact from './chat/add-contact.react'; import Chat from './chat/chat.react'; import {defaultStore} from '../flux/default/default-store'; import {m...
client/router.js
AlaMurkan-FIFA-Boyz-2017-Dremz2Lyf/Game-Manager-V2
import { Router, browserHistory } from 'react-router'; import React from 'react'; import Home from './components/home'; import App from './components/app'; const routeConfigs = { component: App, path: '/', indexRoute: { component: Home }, childRoutes: [ { path: 'play/:id', getComponent(locati...
client/my-sites/invites/controller.js
allendav/wp-calypso
/** * External Dependencies */ import ReactDom from 'react-dom'; import React from 'react'; import store from 'store'; import page from 'page'; /** * Internal Dependencies */ import i18n from 'lib/mixins/i18n'; import titleActions from 'lib/screen-title/actions'; import InviteAccept from 'my-sites/invites/invite-a...
src/svg-icons/image/looks-6.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks6 = (props) => ( <SvgIcon {...props}> <path d="M11 15h2v-2h-2v2zm8-12H5c-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-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2h-2c-1.1 0-2-....
docs/src/pages/style/icons/Icons.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import green from 'material-ui/colors/green'; import Icon from 'material-ui/Icon'; const styles = theme => ({ root: { display: 'flex', justifyContent: 'center', alignItems: 'flex-end', }, i...
node_modules/react-bootstrap/es/InputGroup.js
GregSantulli/react-drum-sequencer
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/components/document/Documents.js
FlevianK/cp2-document-management-system
/* eslint no-use-before-define: 0 */ // --> OFF import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import Pagination from 'react-js-pagination'; import DashboardHeader from '../common/Das...
src/components/__tests__/TabList-test.js
rackt/react-tabs
/* eslint-env jest */ import React from 'react'; import renderer from 'react-test-renderer'; import Tab from '../Tab'; import TabList from '../TabList'; import TabPanel from '../TabPanel'; import Tabs from '../Tabs'; import { TabListWrapper, TabWrapper } from './helpers/higherOrder'; function expectToMatchSnapshot(com...
src/components/Sidebar/Sidebar.js
giux78/daf-dataportal
import React, { Component } from 'react'; import { NavLink, Link } from 'react-router-dom' import { connect } from 'react-redux' import { reset } from 'redux-form' import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from 'react-modal-bootstrap' import { toastr } from 'react-redux-t...
src/svg-icons/editor/border-vertical.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderVertical = (props) => ( <SvgIcon {...props}> <path d="M3 9h2V7H3v2zm0-4h2V3H3v2zm4 16h2v-2H7v2zm0-8h2v-2H7v2zm-4 0h2v-2H3v2zm0 8h2v-2H3v2zm0-4h2v-2H3v2zM7 5h2V3H7v2zm12 12h2v-2h-2v2zm-8 4h2V3h-2v18z...
src/panes/components/Wizards/SetProviderName.js
trezy/eidetica
// Module imports import PropTypes from 'prop-types' import React from 'react' class SetProviderName extends React.Component { /***************************************************************************\ Local Properties \***************************************************************************/ stat...
frontend/modules/recipe_form/components/SubRecipeBox.js
rustymyers/OpenEats
import React from 'react' import { injectIntl, defineMessages, } from 'react-intl'; import ReactTextareaAutocomplete from "@webscopeio/react-textarea-autocomplete"; import SubRecipes from '../../recipe/components/SubRecipes' import TabbedView from './TabbedView' require('../css/smart-text-box.scss'); class SubRe...
test/NavSpec.js
Azerothian/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; import Button from '../src/Button'; describe('Nav', function () { it('Should set the correct item active', function () { let instance = ReactTestUtils.renderIntoDo...
docs/src/new-components/basics/tooltip/Tooltip.stories.js
storybooks/react-storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import styled from 'styled-components'; import Tooltip from './Tooltip'; // Popper would position the tooltip absolutely. We need to make sure we are pos:rel const mockPopperProps = { style: { position: 'relative', top: '20px', left: '20px' } }; ...
pages/research/index.js
pcm-ca/pcm-ca.github.io
import React from 'react' import { Link } from 'react-router' import Helmet from 'react-helmet' import { config } from 'config' import get from 'lodash/get' import _ from 'lodash' import Topic from '../../components/Topic' import { prefixLink } from 'gatsby-helpers' export default class Index extends React.Component ...
src/interface/common/thirdpartybuttons/Patreon.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import PatreonIcon from 'interface/icons/PatreonTiny'; const PatreonButton = ({ text, ...others }) => ( <a className="btn patreon" role="button" href="https://www.patreon.com/wowanalyzer" {...others} > <PatreonIcon /> {text} </a>...
example/src/example/Todo.js
inuscript/redux-candy
import React, { Component } from 'react'; import { createStore } from 'redux' import { Provider, connect } from 'react-redux' import { createReducer, createAction } from 'redux-candy' const initialState = { todos: [], visibilityFilter: 'SHOW_ALL' } // God reducer const reducer = createReducer(initialState) let n...
browser/app/js/components/UploadModal.js
dutchcoders/minio
/* * Minio Cloud Storage (C) 2016 Minio, Inc. * * 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...
src/PopperContent.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import { Popper as ReactPopper } from 'react-popper'; import { getTarget, targetPropType, mapToCssModules, DOMElement, tagPropType } from './utils'; import Fade from './Fade'; function ...
src/components/FirstComponent.js
raiss/componentized
import React, { Component } from 'react'; export class FirstComponent extends Component { blur(e) { console.log("blur from: ", e.target.value); } focus(e) { console.log("focus on: ", e.target.value); } render() { return ( <input type="text" onBlur={this.blur.bind(this)} ...
frontend/app/components/Form/FormPhraseBook.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import FormMoveButtons from 'components/Form/FormMoveButtons' import FormRemoveButton from 'components/Form/FormRemoveButton' // import ProviderHelpers from 'common/ProviderHelpers' import Preview from 'components/Preview' // REDUX import { connect } from '...
client/containers/Index.js
ClemDelp/bomber-pacman
// // IMPORTS // import React from 'react' import { connect } from 'react-redux' import GameCanvas from './GameCanvas' import Chat from '../components/Chat' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import injectTapEventPlugin from 'react-tap-event-plugin' import Loading from '../components/Lo...
src/parser/druid/feral/modules/combopoints/FinisherUse.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import BoringResourceValue from 'interface/statistics/com...
client/src/app/routes/widgets/components/SwitchWidgetDemo.js
zraees/sms-project
import React from 'react' import {ButtonGroup, Button} from 'react-bootstrap' import classnames from 'classnames' import JarvisWidget from '../../../components/widgets/JarvisWidget' export default class SwitchWidgetDemo extends React.Component { constructor(props) { super(props); this.state = { sty...
src/Parser/Core/Modules/CancelledCasts.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Icon from 'common/Icon'; import { formatMilliseconds, formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; const ...
src/Card.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, inverse: PropTypes.bool, color: PropTypes.string, body: PropTypes.bool, outline: PropTypes.bool, className: PropT...
packages/ringcentral-widgets-docs/src/app/pages/Components/ConferenceAlert/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
react-native-demo/Zebreto/src/components/Header/index.js
zhangjunhd/react-examples
import React, { Component } from 'react'; import { View, Image } from 'react-native'; import styles from './styles'; import HeadingText from './../HeadingText'; class Header extends Component { static displayName = 'Header'; render() { return ( <View style={styles.header}> <Image source={...
app/modules/Notes/components/AddNote.js
phosphene/react-fullstack-d3-demo
import React, { Component } from 'react'; import { observer } from 'mobx-react'; @observer export default class AddNote extends Component { handleSubmit = (e) => { e.preventDefault(); const title = e.target.title.value; const body = e.target.body.value; if (title && body) { this.props.store.ad...
modules/__tests__/Router-test.js
schnerd/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Router from '../Router' import Route from '../Route' describe('Router', function () { let node beforeEach(function () { node = document....
client/src/react/_controls/FlexContainer.js
charlesj/Apollo
import React from 'react' import ClassNames from 'classnames' import PropTypes from 'prop-types' function FlexContainer(props) { return ( <div className={ClassNames({ [props.className]: props.className, 'flexContainer-grow': props.grow, })} > {props.children} </div> ) ...
src/svg-icons/content/add-circle.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircle = (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 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/> </SvgIcon> ); ContentAddCircle = pure(Cont...
src/svg-icons/communication/phonelink-setup.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkSetup = (props) => ( <SvgIcon {...props}> <path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1...
src/components/ObjectivePanel.js
samkarp/murmuration
import React from 'react'; import ObjectiveListItem from './ObjectiveListItem' import SearchObject from './SearchObject' class ObjectiveListPanel extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); this.state = { objectives: [] } } ...
node_modules/react-router/es6/Route.js
ddigioia/react_router_practice_1
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
examples/auth-with-shared-root/components/PageTwo.js
nvartolomei/react-router
import React from 'react' const PageTwo = React.createClass({ render() { return <h2>Page Two! Wooo!</h2> } }) export default PageTwo
src/Questions/ui/QuestionsList.js
techmsi/mental-health-app
// Component: Questions import React, { Component } from 'react'; import { API_ENDPOINT } from 'Api/api-config'; import { ErrorMessage } from 'styles/Layout'; import { Spinner } from 'App/ui/dynamicRoutes'; import { QuestionsPage } from 'Questions/ui/dynamicRoutes'; class QuestionsList extends Component { state = ...
app/javascript/mastodon/features/notifications/components/filter_bar.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; const tooltips = defineMessages({ mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, favourites: { id: '...
app/javascript/mastodon/features/compose/components/navigation_bar.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
src/containers/DevTools/DevTools.js
hirzanalhakim/testKumparan
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /> </D...
src/components/framework/moderate-button.js
pol-is/polisClientAdmin
/* * Copyright 2012-present, Polis Technology 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 for non-commercial use can be found in the PATENTS file * in the sam...
app/containers/User/UserNewForm.js
danielmoraes/invoices-web-client
import React from 'react' import { Form } from 'components' import { User } from 'api/entity-schema' const formLayout = [ [ 'name' ], [ 'email' ], [ 'password', 'confirmPassword' ] ] const formOptions = { focus: 'name', fieldOptions: { name: { size: 8 }, email: { size: 8, inpu...
test/PanelGroupSpec.js
coderstudy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PanelGroup from '../src/PanelGroup'; import Panel from '../src/Panel'; describe('PanelGroup', function () { it('Should pass bsStyle to Panels', function () { let instance = ReactTestUtils.renderIntoDocument( <PanelGrou...
client/src/app/components/tooltipQuestion.js
FrontSmith/FSFramework
import React from 'react'; import { Tooltip, OverlayTrigger } from 'react-bootstrap'; export default React.createClass( { getDefaultProps() { return { placement: 'left' }; }, render() { const tooltip = ( <Tooltip>{ this.props.children }</Tooltip> );...
test/CollapsibleNavSpec.js
blue68/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Navbar from '../src/Navbar'; import CollapsibleNav from '../src/CollapsibleNav'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; describe('CollapsibleNav', () => { it('Should create div and add collapse class...
src/components/SpeakerProfile/index.js
r1cebank/EventCore
import React from 'react'; import { Image, View } from 'react-native'; import { Components } from '../../global/globalIncludes'; const { Text } = Components.Text; import Styles from './resources/styles'; class SpeakerProfile extends React.Component { static propTypes = { speaker: React.PropTypes.object ...
src/server.js
KevinRamsunder/cunysearch-node
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/scenes/home/signup/signup.js
alexspence/operationcode_frontend
import React, { Component } from 'react'; import axios from 'axios'; import { Redirect } from 'react-router-dom'; import _ from 'lodash'; import { MENTOR_ANSWERS } from 'shared/constants/status'; import Form from 'shared/components/form/form'; import FormEmail from 'shared/components/form/formEmail/formEmail'; import F...
app/server.js
hirofumii/fluxible-koa-example
/** * This leverages Koa to create and run the http server. * A Fluxible context is created and executes the navigateAction * based on the URL. Once completed, the store state is dehydrated * and the application is rendered via React. */ import Koa from 'koa'; import bodyParser from 'koa-bodyparser'; import serve...
src/layouts/CoreLayout/CoreLayout.js
aTseniklidou/Randix-Game
import React from 'react' import Header from 'Header' import classes from './CoreLayout.scss' import '../../styles/core.scss' import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); export const CoreLayout = ({ store, children }) => ( <div className='container text-center'> <Header /> ...
examples/todomvc/containers/App.js
romseguy/redux-devtools
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import { Provider } from 'react-redux'; import *...
src/components/layout/Navtabs.js
availabs/avail_app_bootstrap
import React from 'react'; import { Link } from 'react-router-dom'; export default props => ( <div className="os-tabs-w mx-4"> <div className="os-tabs-controls"> <ul className="nav nav-tabs upper"> {props.items.map((item, i) => { return ( <li className="nav-item"> ...
react-flux-mui/js/material-ui/src/svg-icons/action/schedule.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSchedule = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H...
src/containers/post/Posts.js
ScorpionJay/ONE
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, Platform, Alert, Image, Styles, ToastAndroid, Dimensions } from 'react-native'; var GiftedListView = require('react-native-gifted-listview'); var GiftedSpinner = require('react-native-gifted-spinner'); v...
app/Components/Chat/Header/ChangeChild/ChangeChild.js
martinvarelaaaa/tintina
import React from 'react'; import { View, TouchableOpacity } from 'react-native'; import PropTypes from 'prop-types'; import { TextInfo } from '../../../Atoms/Text'; import Child from './Child'; import styles from './styles'; import theme from '../../../../theme'; const { color } = theme; const ChangeChild = ({ use...
src/components/Common/InputField.js
oraclesorg/ico-wizard
import React from 'react'; import '../../assets/stylesheets/application.css'; import {VALIDATION_TYPES} from '../../utils/constants'; const {INVALID} = VALIDATION_TYPES; export const InputField = props => { const errorStyle = { color: 'red', fontWeight: 'bold', fontSize: '12px', width: '100%', he...
src/PartialTable.js
codyc4321/react-data-components-updated
import React, { Component } from 'react'; import Table from './Table'; import Pagination from './Pagination'; export default class PartialTable extends Component { render() { const { onFilter, onPageSizeChange, onPageNumberChange, onSort, pageLengthOptions, columns, keys...
test/TabSpec.js
Lucifier129/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Tab from '../src/Tab'; describe('Tab', () => { it('Should have class', () => { let instance = ReactTestUtils.renderIntoDocument( <Tab>Item content</Tab> ); assert.ok(ReactTest...
src/components/EyeIcon/EyeIcon.js
choudlet/ps-react-choudlet
import React from 'react'; /** SVG Eye Icon */ function EyeIcon() { // Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg return ( <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> <g transform="matrix(.02146 0 0 .02146 1 1)" fill...
examples/universal/client/index.js
bigardone/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
src/components/EntryList/index.js
jackp/finance-tracker
/** * <EntryList /> */ import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; const EntryList = ({ entries }) => ( <div className="ui list"> { entries.map((entry, i) => { const iconClass = classNames( 'thumbs outline icon', { 'up green': pa...
ajax/libs/react-instantsearch/4.1.1/Dom.js
him2him2/cdnjs
/*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
theme/template/Comps/Header.js
picidaejs/picidaejs
import React from 'react' import {Link} from 'react-router' export default ({}) => <nav className="nav"> <div className="nav-container"> <Link to={'/'}> <h2 className="nav-title">Picidae</h2> </Link> <ul> <li><Link activeClassName={"active...
src/components/grid_news/flex_box_news.js
AvaKathrynShaw/My-React-Material-Dashboard
import React from 'react'; require('./flexbox.css'); class FlexBoxNews extends React.Component { render() { return ( <div> <section className="component__section compactflex"> <div className="holy-grail compactflex"> <div className="holy-grail__body compactflex"> ...
app/imports/ui/components/dashboard/DashboardContainer.js
superlumen/mdb
import React from 'react' import { Meteor } from 'meteor/meteor' import { createContainer } from "meteor/react-meteor-data" import { Documents } from '/imports/api/documents/documents.collection.js' import { DocumentList } from '/imports/ui/components/documents/DocumentList.jsx' import DocumentForm from '/imports/ui/...
example/superchatExample/__tests__/App.js
super-chat/react-native-superchat
import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <App /> ); });