path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/javascript/mastodon/components/__tests__/avatar_overlay-test.js
unarist/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import AvatarOverlay from '../avatar_overlay'; describe('<AvatarOverlay', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif',...
Button/Button.spec.js
mmellado/airtame-gooey-react
import React from 'react'; import { shallow } from 'enzyme'; import { spy } from 'sinon'; import Button from './Button'; describe('<Button />', () => { it('should render the button', () => { const wrapper = shallow(<Button />); expect(wrapper).toHaveTagName('button'); }); it('should create a disabled bu...
client.js
maxmert/rocket-react
import React from 'react'; import Router from 'react-router'; import app from './app/app.jsx'; Router.run(app, Router.HistoryLocation, (Root) => { React.render(React.createElement(Root), document.getElementById('app')); });
frontend/components/ListItem.js
tahosalodge/camping-guide
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const ListItem = ({ className, place, selectLocation }) => ( <div className={className} onClick={() => selectLocation(place)} role="button" tabIndex={0} > <h1>{place.name}</h1> <p>{place.l...
dashboard-ui/app/components/campaign/selectAudience.js
CloudBoost/cloudboost
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, Button } from 'react-bootstrap'; import {} from '../../actions'; import FilterIcon from 'material-ui/svg-icons/content/filter-list'; import IconButton from 'material-ui/IconButton'; import Popover from 'material-ui/Popover'; import Chip from...
src/components/Footer/Footer.js
licatajustin/preesh
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import withStyle...
pootle/static/js/admin/components/Search.js
r-o-b-b-i-e/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import cx from 'classnames'; import React from 'react'; i...
src/components/button_fillLights.js
JohnDHamm/nog-web
import React, { Component } from 'react'; import values from '../styles/values'; class ButtonFillLights extends Component { render() { const { btnSize, fillColor } = this.props; const circleDia = btnSize / 3.5; const styles = { root: { height: btnSize, width: btnSize, cursor: 'pointer', bord...
examples/async/index.js
bigardone/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
docs/app/Examples/collections/Form/States/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const FormStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Loading' description='If ...
app/javascript/mastodon/features/public_timeline/index.js
ikuradon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/components/antd/steps/index.js
hyd378008136/olymComponents
import React from 'react'; import PropTypes from 'prop-types'; import RcSteps from 'rc-steps'; export default class Steps extends React.Component { render() { return (React.createElement(RcSteps, Object.assign({}, this.props))); } } Steps.Step = RcSteps.Step; Steps.defaultProps = { prefixCls: 'ant-s...
src/icons/Document.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Document extends React.Component { render() { if(this.props.bare) { return <g> <path d="M399.3,168.9c-0.7-2.9-2-5-3.5-6.8l-83.7-91.7c-1.9-2.1-4.1-3.1-6.6-4.4c-2.9-1.5-6.1-1.6-9.4-1.6H136.2 c-12.4,0-23.7,9.6-...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxdatatable.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxDataTable = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes(); ...
src/components/d3charts/MiniPieChart.js
nbuechler/friendly-finder
import React from 'react'; import d3 from 'd3'; export default class MiniPieChart extends React.Component { static defaultProps = { width: 50, height: 50, x: 0, y: 0, } constructor (props) { super(props); this.state = { }; } render () { var {props} = this, {width, height, data} ...
react-dev/containers/about.js
InsidiousMind/code.LiquidThink
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPage } from '../actions/index'; import { Page } from '../components/page'; class About extends Component { componentWillMount() { this.props.fetchPage('About', '/about/'); } render() { if (!this.props.p...
client2/src/components/react-burger-menu/test/elastic.spec.js
frolicking-ampersand/CodeOut
'use strict'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { expect } from 'chai'; import createShallowComponent from './utils/createShallowComponent'; import BurgerMenu from '../lib/BurgerMenu'; const Menu = BurgerMenu.elastic; describe('elastic', () => { let component, menuW...
src/svg-icons/notification/airline-seat-individual-suite.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatIndividualSuite = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.65 0 3-1.35 3-3S8.65 7 7 7s-3 1.35-3 3 1.35 3 3 3zm12-6h-8v7H3V7H1v10h22v-6c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); Noti...
src/components/ProductTableRow.spec.js
nibblesnbits/slingshot-sagas
import React from 'react'; import { mount } from 'enzyme'; import chai, { expect } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import { ProductTableRow } from './ProductTableRow'; chai.use(sinonChai); describe('<ProductTableRow />', () => { before(() => { sinon.spy(ProductTableR...
client/components/static/Privacy.js
MusicConnectionMachine/VisualizationG6
import React from 'react' import '../../../style/legal.scss' class Privacy extends React.Component { render () { return ( <div className='container-fluid animated fadeIn legalpage'> <h2>MusicConnectionMachine Privacy Policy</h2> <p>This privacy policy has been compiled to better ser...
app/components/OutputLine.js
kenwilcox/fil
import React from 'react'; import {parseType} from 'helpers'; import Chunk from 'components/Chunk'; class OutputLine extends React.Component { render() { var block = "console__output"; return ( <div className={block + "__line"}> {this.props.output.map( (chunk, i) => <Chunk key={i} ...
web/src/js/components/comuns/button.js
helderfarias/ges
'use strict'; import React from 'react'; let Button = React.createClass({ getDefaultProps() { return { icon: '', name: '', target: {} } }, render() { return ( <button type="button" className="btn btn-default btn-md btn-space" onClic...
tests/routes/Home/components/HomeView.spec.js
eunvanz/flowerhada
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', () => { const welcome = _component.find('h4') ...
src/pages/news/NBA/NewsNBAFollow.js
HeliumLau/Hoop-react
import React from 'react'; import NewsList from 'components/NewsList.js'; export default class NewsNBAFollow extends React.Component { render() { const list = [ { title: '帕森斯晒自己与演员特里-克鲁斯的合照', lNum: '28', cNum: '212', bgurl: '...
src/svg-icons/social/sentiment-satisfied.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentSatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1...
src/svg-icons/action/list.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionList = (props) => ( <SvgIcon {...props}> <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/> </SvgIcon> ); ActionList = pure(ActionList); ActionList.displa...
src/views/clause/ClauseTable.js
bostontrader/senmaker
// @flow import React from 'react' import ClauseRow from './ClauseRow' function ClauseTable(props:Object):?Object { let clauseTable:?Object = null const clauseRows:Object = [...props.clause.getIn(['dict','coll']).values()].map(clause => ( <ClauseRow key={clause.get('id')} clause={clause} strings={pr...
src/entypo/CircularGraph.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--CircularGraph'; let EntypoCircularGraph = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M17.584,9.372h2c-0.065-1.049-0.293-2.053-0.668-2.984L17.16,7.402C17.384,8.025,17.531,8....
js/components/tap/index2.js
leehyoumin/asuraCham
'use strict'; //This is a Add project import React, { Component } from 'react'; import { connect } from 'react-redux'; import { popRoute } from '../../actions/route'; import { openDrawer, closeDrawer } from '../../actions/drawer'; import { setIndex } from '../../actions/list'; import { replaceRoute, replac...
modules/experiences/tests/client/components/CreateExperience.client.component.tests.js
Trustroots/trustroots
import React from 'react'; import { render, fireEvent, waitForElement, waitForElementToBeRemoved, screen, } from '@testing-library/react'; import '@testing-library/jest-dom/extend-expect'; import * as experiencesApi from '@/modules/experiences/client/api/experiences.api'; import CreateExperience from '@/mod...
docs/demos/react-hello-world/src/index.js
reTHINK-project/dev-hyperty
// modules import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; // CSS import './index.css'; import './App.css'; // React components import ReactObserver from './ReactObserver' // render React component ReactDOM.render( <ReactObserver />, document.getElementById('root') );
app/javascript/mastodon/features/compose/components/navigation_bar.js
im-in-space/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...
fields/types/password/PasswordFilter.js
lojack/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false } ]; var PasswordFilter = React.createClass({ getInitialState () { return { checked: this.props.value || true }; }, toggleChecked (checked) { ...
src/svg-icons/image/wb-sunny.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbSunny = (props) => ( <SvgIcon {...props}> <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7...
src/shared/element-react/dist/npm/es6/src/carousel/Carousel.js
thundernet8/Elune-WWW
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import throttle f...
src/routes.js
jetshoji/Asia_Trip
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/app'; import Home from './components/home'; import AboutMe from './components/about_me/about_me'; import Videos from './components/videos/videos'; export default ( <Route path="/" component={App}> <IndexR...
src/layouts/BaseLayout/BaseLayout.spec.js
maartenplieger/datascienceplatform-frontend
import React from 'react'; import { default as BaseLayout } from './BaseLayout'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; const STORE = { getState: () => { return { notifications: [] }; }, subscribe: () => null, dispatch: () => null }; describe('(Layout) BaseLayout', () => { it(...
src/index.js
henrybuilt/react-sticky-table
import React from 'react'; import styled, { css } from 'styled-components'; var getBorder = (props) => `${props.borderWidth === undefined ? '2px' : (props.borderWidth || '0px')} solid ${props.borderColor || '#e5e5e5'}` const Table = styled('div').attrs(() => ({ className: 'sticky-table-table' }))` white-space: no...
node_modules/react-router/es/Router.js
Rabbit884/reactapp
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 = {...
__tests__/editEntryTest.js
yyankowski/relay-notes
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import EntryRow from '../js/components/entryRow'; import moment from 'moment'; //import styles from '../scss/app.scss'; jest.unmock('../js/components/entryRow'); jest.unmock('moment'); //jest.unmock('../scss/a...
www/src/pages/index.js
TaitoUnited/taito-cli
import React from 'react'; import styled from '@emotion/styled'; import { css } from '@emotion/react'; import { Link } from 'gatsby'; import theme from '../theme'; import { media } from '../utils'; import SEO from '../components/SEO'; import Spacing from '../components/Spacing'; import Navigation from '../components/N...
gatsby/src/layouts/index.js
CodeFarmCamp/codefarmcamp.com
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' import './index.css' const Header = () => ( <div style={{ background: 'rebeccapurple', marginBottom: '1.45rem', }} > <div style={{ margin: '0 auto', ...
app/components/VacancyDetails/index.js
Ratholien/JobReact
import React from 'react'; import { Paper, TextField } from 'material-ui'; class VacancyDetails extends React.Component { constructor(props) { super(props); this.state = { fields: ['op1', 'op2', 'op3'], }; } render() { return ( <Paper className="vacancyDetails"> {this.state.f...
docs/src/IntroductionPage.js
adampickeral/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
examples/cra/src/index.js
styleguidist/react-styleguidist
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
modules/__tests__/Redirect-test.js
mozillo/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Redirect from '../Redirect' import Router from '../Router' import Route from '../Route' describe('A <Redirect>', function () { let node beforeEach(function () { node =...
test/regressions/tests/List/SimpleListItem.js
AndriusBil/material-ui
// @flow import React from 'react'; import { ListItem, ListItemText } from 'material-ui/List'; export default function SimpleListItem() { return ( <div style={{ background: '#fff', width: 300 }}> <ListItem> <ListItemText primary="Primary" /> </ListItem> <ListItem> <ListItemText...
src/libraries/notResolved.js
kjg531/react-bluekit
import React from 'react'; export default (data) => () => (<div>Unable to resolve: {JSON.stringify(data)}</div>)
examples/js/nextjs/lib/bugsnag.js
bugsnag/bugsnag-js
import React from 'react' import Bugsnag from '@bugsnag/js' import BugsnagPluginReact from '@bugsnag/plugin-react' import getConfig from 'next/config' const { serverRuntimeConfig, publicRuntimeConfig } = getConfig() Bugsnag.start({ apiKey: serverRuntimeConfig.BUGSNAG_API_KEY || publicRuntimeConfig.BUGSNAG_API_KEY, ...
src/views/icons/AutomationsIcon.js
physiii/home-gateway
import React from 'react'; import IconBase from './IconBase.js'; export const AutomationsIcon = (props) => ( <IconBase {...props} viewBox="0 0 20 22"> <path d="M16.54185892 18.39352399L15.76077 12.74640967l6.06217782 3.5-5.28108891 2.14711432zm1.3839746-4.39711432l1.7320508 1c2.75-4.76313972 1.10288569-10.91025404-...
client/components/User/AddUserComponent.js
jeggy/trialbee-test
import React from 'react'; import { Button } from 'react-mdl'; import UserDialog from './UserDialogComponent'; import styles from './User.scss'; export default class User extends React.Component { constructor(props) { super(props); this.state = { dialog: false }; } static propTypes = { vi...
admin/client/App/screens/List/components/UpdateForm.js
danielmahon/keystone
import React from 'react'; import Select from 'react-select'; import { findDOMNode } from 'react-dom'; import assign from 'object-assign'; import { Fields } from 'FieldTypes'; import InvalidFieldType from '../../../shared/InvalidFieldType'; import { plural } from '../../../../utils/string'; import { BlankState, Button,...
app/javascript/mastodon/features/community_timeline/index.js
MastodonCloud/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/components/flash/FlashMessagesList.js
AleksandrRogachev94/chat-vote-go-frontend
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import FlashMessage from './FlashMessage' import { deleteFlashMessage } from '../../actions/flashMessages' const FlashMessagesList = ({ messages, deleteFlashMessage }) => { const htmlMessages = messages.map(msg => ( ...
fixtures/ssr/src/index.js
maxschmeling/react
import React from 'react'; import {hydrate} from 'react-dom'; import App from './components/App'; hydrate(<App assets={window.assetManifest} />, document);
tp-3/juan-pablo-gonzalez/src/shared/components/columnsSelector/components/columnList/ColumnList.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import PropTypes from 'prop-types'; import { VisibleIcon, HiddenIcon } from '../../../svgIcons/SvgIcons'; // eslint-disable-line import/no-extraneous-dependencies import SovosTooltip from '../../../../../shared/components/sovos-tooltip/SovosTooltip'; import { violet } from '../../../../../the...
src/components/SearchResult/SearchResult.js
aos2006/tesDeploy
import React from 'react'; import { ProductItem } from 'components/Product'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './searchResult.css'; export const SearchResult = ({ quantity, list }) => ( <div className={s.root}> <h3 className={s.title}>{`${quantity} Searched result`}<...
app/components/IssueIcon/index.js
AnhHT/react-boilerplate
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
test/ButtonInputSpec.js
RichardLitt/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () =>{ it('renders an input button element with type=button', function () { const instance = ReactTestUtils.renderIntoDocum...
node_modules/react-bootstrap/es/MediaBody.js
Chen-Hailin/iTCM.github.io
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/client.js
dailymotion/react-collider
import React from 'react' import Router from 'react-router' import collider from './reactCollider' import {merge} from 'ramda' const defaultOptions = { fetch: null } // Client side rendering var renderPage = function reanderPage(Handler, data) { React.render(React.createElement(Handler, {data: data}), documen...
src/components/GridButton.js
pixelcanvasio/pixelcanvas
/** * Created by arkeros on 31/5/17. * * @flow */ import React from 'react'; import { connect } from 'react-redux'; import FaTh from 'react-icons/lib/fa/th'; import FloatingActionButton from './FloatingActionButton'; import { toggleGrid } from '../actions'; const GridButton = ({ onToggleGrid }) => ( <Floating...
src/routes/About/components/AboutView.js
zhangjianguo1500/f01
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './AboutView.scss' import '../../../styles/font.scss' export const AboutView = () => ( <div> <h4>About Web!</h4> <ul> <li> <a href = "#">添加</a> </li> <li> <a href = "#">添加1</a> </li> </...
src/js/components/icons/base/Link.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/serverRender.js
wahengchang/react-redux-boilerplate
import 'babel-polyfill' import React from 'react' import ReactDOMServer from 'react-dom/server' import { createStore, compose, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import _reducers from './reducers' import { Provider } from 'react-redux'; import matchConfig from './matchConfig' import { Sta...
src/components/icons/settings.js
ipfs-shipyard/peerpad
import React from 'react' export default ({ className, style }) => ( <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 149 146.7' className={className} style={style}> <path d='M126,73.35a14.74,14.74,0,0,0-12.17-14.5l-1.28-3.07a14.74,14.74,0,0,0-1.64-18.85,15.05,15.05,0,0,0-18.86-1.65L89,34a14.72,14.72,0,0,0-2...
anubis/ui/components/scratchpad/ScratchpadRecordsContainer.js
KawashiroNitori/Anubis
import React from 'react'; import { connect } from 'react-redux'; import Tabs, { TabPane } from 'rc-tabs'; import TabContent from 'rc-tabs/lib/TabContent'; import ScrollableInkTabBar from 'rc-tabs/lib/ScrollableInkTabBar'; import Icon from '../react/IconComponent'; import Panel from './PanelComponent'; import PanelButt...
__tests__/tests/components/RepositoryProfile.js
gitpoint/git-point
import React from 'react'; import { shallow } from 'enzyme'; import { Icon } from 'react-native-elements'; import { RepositoryProfile } from 'components'; const defaultProps = { repository: { isFork: true, parent: { nameWithOwner: 'foo/bar', }, primaryLanguage: { name: 'JavaScript', ...
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleAutoHeightRows.js
aabustamante/Semantic-UI-React
import React from 'react' import { Form, TextArea } from 'semantic-ui-react' const TextAreaExampleAutoHeightRows = () => ( <Form> <TextArea autoHeight placeholder='Try adding multiple lines' rows={1} /> </Form> ) export default TextAreaExampleAutoHeightRows
pootle/static/js/auth/components/RequestPasswordResetForm.js
evernote/zing
/* * Copyright (C) Pootle contributors. * Copyright (C) Zing contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'rea...
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js
darioajr/actor-platform
import _ from 'lodash'; import Immutable from 'immutable'; import keymirror from 'keymirror'; import React from 'react'; import { Styles, TextField, FlatButton } from 'material-ui'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import ContactStore from 'stores/ContactStore'; import Cont...
mobile/js/router/index.js
lovelypig5/wms
import React from 'react' import { AsyncStorage } from 'react-native'; // import SideMenu from 'react-native-side-menu'; // import Menu from '../features/menu'; import Nav from '../features/navigator'; import Entry from '../features'; import LoginButton from '../features/login/button'; import DICT from '../config/dict'...
node_modules/react-transition-group/esm/SwitchTransition.js
jerednel/jerednel.github.io
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; var _leaveRenders, _enterRenders; import React from 'react'; import PropTypes from 'prop-types'; import { ENTERED, ENTERING, EXITING } from './Transition'; import TransitionGroupContext from './TransitionGroupContext'; function areChildrenDiffere...
src/components/TeaserFooter/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './teaser-footer.scss'; import TeaserMetrics from 'components/TeaserMetrics'; import TeaserInfo from 'components/TeaserInfo'; const TeaserFooter = ({ city, owner, metrics }) => ( <footer className={styles.root}> <div className={styles.info}> <TeaserInfo ...
test/js/release_test/ViroVideoTest.js
viromedia/viro
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { ViroScene, ViroVideo, ViroOmniLight, ViroSceneNavigator, Materials, ViroText, ViroUtils, Viro360Photo, Viro360Video, ViroImage, ViroMaterials, } from 'reac...
app/src/client/app/framework/SvgPresentation.js
syrel/Open-Data
/** * Created by syrel on 31.05.17. */ import React from 'react'; import PresentationComponent from './PresentationComponent'; import Presentation from './Presentation'; import ElementQueries from 'css-element-queries'; import $ from 'jquery'; import _ from 'underscore'; class SvgComponent extends PresentationCompo...
src/components/common/svg-icons/editor/title.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorTitle = (props) => ( <SvgIcon {...props}> <path d="M5 4v3h5.5v12h3V7H19V4z"/> </SvgIcon> ); EditorTitle = pure(EditorTitle); EditorTitle.displayName = 'EditorTitle'; EditorTitle.muiName = 'SvgIcon'; ex...
packages/material-ui-icons/src/Adb.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Adb = props => <SvgIcon {...props}> <path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14 5.64 5 7....
examples/values/src/app.js
quandhz/resaga
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './utils/configureStore'; import App from './containers/App'; import { reducer, sagas } from '../../../build'; const store = configureStore({ normaliseStore: redu...
packages/react-dom/src/client/ReactDOMFiberOption.js
anushreesubramani/react
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import warning from 'fbjs/lib/warning'; function flattenChildren(children) { let content = '';...
src/svg-icons/editor/format-align-right.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignRight = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignRight = pure(EditorFormatAlign...
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/transactionlist.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' import { List } from 'immutable' const TransactionList = ({transactions, ntransactions, actions}) => { if (transactions.size === 0) { return ( <div className="transaction-list"> <h3> No recent transactions </h3> </div> ) } const prettyTimest...
App.js
mechanizzed/talk-support
import React, { Component } from 'react'; import { Modal, View, Text, Button, TouchableOpacity, TouchableHighlight } from 'react-native'; import styles from './src/styles/styles'; export default class App extends React.Component{ state = { modalYesVisible: false, modalNoVisible: false, } setModalYesVisible(vi...
components/Paint/PaintModal.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {connectToStores} from 'fluxible-addons-react'; import FocusTrap from 'focus-trap-react'; import { Button, Divider, Dropdown, Icon, Input, Modal, Popup, Segment } from 'semantic-ui-react'; import { Image as Img} from 'semantic-ui-react'; import uplo...
assets/jqwidgets/jqwidgets-react/react_jqxdocking.js
juannelisalde/holter
/* jQWidgets v4.5.4 (2017-June) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export default class JqxDocking extends React.Component { componentDidMount() { let options = this.manageAttributes(); this.create...
src/routes/login/index.js
donal-crotty/fuzzy-telegram
/** * 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 App from '../../compo...
src/buttons/__tests__/ButtonGroup.js
kosiakMD/react-native-elements
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import ButtonGroup from '../ButtonGroup'; const buttons = ['Button 1', 'Button 2', 'Button 3']; const buttonsElement = [{ element: 'Text' }, { element: 'View' }]; describe('ButtonGroup Component', () => { it('should re...
examples/components/Markdown.react.js
ericgio/r-d3
import cx from 'classnames'; import marked from 'marked'; import React from 'react'; class Markdown extends React.Component { componentWillMount() { marked.setOptions({ gfm: true, tables: true, breaks: true, pedantic: false, sanitize: true, smartLists: true, smartypants:...
src/svg-icons/editor/format-list-numbered.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListNumbered = (props) => ( <SvgIcon {...props}> <path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/...
src/components/Modules/withModules.js
folio-org/stripes-core
import React from 'react'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { ModulesContext } from '../../ModulesContext'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } export default function withModules(WrappedComponen...
docs/src/app/components/pages/components/IconButton/ExampleSize.js
rhaedes/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionHome from 'material-ui/svg-icons/action/home'; const styles = { smallIcon: { width: 36, height: 36, }, mediumIcon: { width: 48, height: 48, }, largeIcon: { width: 60, height: 60, }, small: { ...
src/main/app/scripts/views/Note.js
ondrejhudek/hudy-app
import React from 'react' import { connect } from 'react-redux' import { Card, CardText } from 'material-ui' import AddNote from '../containers/note/AddNote' import Notes from '../components/note/Notes' import { fetchNotes } from '../actions/notes' let fetched = false const style = { headerCard: { margin...
src/components/common/card/Card.js
seyade/loggent
import React from 'react'; import moment from 'moment'; import { truncate } from '../../../helpers/stringy'; import './Card.scss'; import '../../../assets/svg/table-lamp-simple.svg'; const Card = ({ title, agent, agency, phone, email, description, createdAt, index, id, deleteCard }) => { let momentCreatedAt = moment...
components/Notification.js
CoffeeApp/clientSide
import React from 'react' import Confirm from './Confirm' import ShowOrderStatus from './ShowOrderStatus' const Notification = ({ order, confirmOrder, cancelOrder }) => ( <div className="notification"> <div className="module"> { order.status === 'In process' ? <ShowOrderStatus order={order} /> : ...
app/App.js
halversondm/react-tutorial
import React from 'react'; import styles from './App.css'; export default class App extends React.Component { constructor(props) { super(props); this.state = {test: 'foo'}; } render() { return ( <div className={styles.app}> bar </div> ); } }
imports/client/components/Project/ProjectInfoList.js
evancorl/portfolio
import React from 'react'; class ProjectInfoList extends React.Component { shouldComponentUpdate() { return false; } render() { const { subtitle, list } = this.props; return ( <div className="project-info-list-container"> <h3 className="project-subtitle">{subtitle}:</h3> <ul c...
project-templates/reactfiber/externals/react-fiber/fixtures/ssr/src/components/App.js
ItsAsbreuk/itsa-cli
import React, { Component } from 'react'; import Chrome from './Chrome'; import Page from './Page'; export default class App extends Component { render() { return ( <Chrome title="Hello World" assets={this.props.assets}> <div> <h1>Hello World</h1> <Page /> </div> ...
packages/wix-style-react/src/SidebarSectionItem/test/SidebarSectionItem.spec.js
wix/wix-style-react
import React from 'react'; import Badge from 'wix-ui-icons-common/Badge'; import SidebarSectionItem from '../SidebarSectionItem'; import sidebarSectionItemPrivateDriverFactory from './SidebarSectionItem.private.uni.driver'; import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit'; describe('Sid...
public/src/js/main.js
Robertmw/imagistral
import React from 'react'; import { render } from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Router, Route, IndexRoute } from 'react-router'; import Editor from './pages/editor'; import Wall from './pages/wall'; import style from '../css/style.less'; render( <Router ...
test/FadeMixinSpec.js
xuorig/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import FadeMixin from '../src/FadeMixin'; let Component; describe('FadeMixin', function () { beforeEach(function() { Component = React.createClass({ mixins: [ FadeMixin ], render() { return ( <div {....