path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
components/chip/__test__/index.spec.js
rubenmoya/react-toolbox
import React from 'react'; import { mount } from 'enzyme'; import { themr } from 'react-css-themr'; import { CHIP } from '../../identifiers'; import { tooltipFactory } from '../../tooltip'; import { chipFactory } from '../Chip'; const Avatar = ({ title }) => <span>{title}</span>; // eslint-disable-line react/prop-type...
src/components/Sidebar/Copyright/Copyright.js
Chogyuwon/chogyuwon.github.io
import React from 'react'; import styles from './Copyright.module.scss'; const Copyright = ({ copyright }) => ( <div className={styles['copyright']}> {copyright} </div> ); export default Copyright;
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
horizon-z40/RN-homework
import React, { Component } from 'react'; class Foo extends Component { render() {} }
docs/src/app/components/pages/get-started/ServerRendering.js
skarnecki/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import serverRenderingText from './serverRendering.md'; const ServerRendering = () => ( <div> <Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} /> <MarkdownElemen...
client/test/components/SubHeader.spec.js
marlonbernardes/coding-stickers
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import SubHeader from '../../src/components/SubHeader'; describe('<SubHeader />', () => { it(`renders the background`, () => { const component = shallow(<SubHeader image="foo.png"/>); expect(component.prop('style').b...
src/svg-icons/navigation/subdirectory-arrow-right.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowRight = (props) => ( <SvgIcon {...props}> <path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/> </SvgIcon> ); NavigationSubdirectoryArrowRight = pure(Navigat...
clients/libs/slate-editor-alignment-plugin/src/AlignmentCenterButton.js
nossas/bonde-client
/* eslint-disable react/prop-types */ import React from 'react' import classnames from 'classnames' import FontAwesome from 'react-fontawesome' import { Button } from '@slate-editor/components' import { alignmentMarkStrategy, hasMark, getMark } from './AlignmentUtils' const AlignmentCenterButton = ({ value, onChange,...
test/PageHeaderSpec.js
tonylinyy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageHeader from '../src/PageHeader'; describe('PageHeader', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <PageHeader> <strong>Content</str...
test/FactoriesSpec.js
lo1tuma/react-bootstrap
import React from 'react'; import components from '../tools/public-components'; let props = { ButtonInput: {value: 'button'}, Glyphicon: {glyph: 'star'}, Modal: {onRequestHide() {}}, ModalTrigger: {modal: React.DOM.div(null)}, OverlayTrigger: {overlay: React.DOM.div(null)} }; function createTest(component) ...
src/routes/contact/Contact.js
MxMcG/tourlookup-react
/** * 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 React from 'react'; import PropTypes from 'prop-...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
KamilSzot/react-router
import React from 'react'; class Grades extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignments: COURSES[params.courseId].assignments //}); //} render () { //var { assignments } = this.props; var assignments = COURSES[this.props.params.courseId].assignments...
mlflow/server/js/src/experiment-tracking/components/artifact-view-components/ShowArtifactPdfView.js
mlflow/mlflow
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getSrc } from './ShowArtifactPage'; import { Document, Page, pdfjs } from 'react-pdf'; import { Pagination, Spin } from 'antd'; import { getArtifactBytesContent } from '../../../common/utils/ArtifactUtils'; import './ShowArtifactPdfV...
packages/icons/src/dv/GithubAlt.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvGithubAlt(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M7.25 16.633c-.563-2.05.198-6.693 1.375-9.524 2.664.284 5.942 1.787 9.868 4.5 3.516-.726 7.162-.68 10.914 0 3.572-2.35 6.914-4.014 9.861-4.5 1.129 ...
src/components/ShareExperience/TimeSalaryForm/BasicInfo.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import subscribeValidation from 'common/subscribeValidation'; import Select from 'common/form/Select'; import TextInput from 'common/form/TextInput'; import CompanyQuery from '../common/CompanyQuery'; import IsEmployed from '../WorkExperiencesForm/WorkInfo...
tests/routes/Home/components/HomeView.spec.js
sebastiyan/todolist
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') ...
fields/types/relationship/RelationshipField.js
andreufirefly/keystone
import async from 'async'; import Lists from '../../../admin/client/stores/Lists'; import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import xhr from 'xhr'; import { Button, InputGroup } from 'elemental'; function compareValues (current, next) { const currentLength = current ?...
react/features/overlay/components/web/ReloadButton.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { reloadNow } from '../../../app/actions'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; /** * The type of the React {@code Component} props of {@link ReloadButton}. */ type Props = { /** * Reloads ...
app/react-icons/fa/text-height.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaTextHeight extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m38.9 31.4q0.8 0 1 0.4t-0.3 1l-2.8 3.7q-0.4 0.5-1.1 0.5t-1.1-0.5l-2.8-3.7...
docs/app/Examples/collections/Breadcrumb/Types/BreadcrumbExampleProps.js
koenvg/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const sections = [ { key: 'Home', content: 'Home', link: true }, { key: 'Store', content: 'Store', link: true }, { key: 'Shirt', content: 'T-Shirt', active: true }, ] const BreadcrumbExampleProps = () => ( <Breadcrumb icon='right angle' ...
examples/globalsaga-pair-of-random-gif-viewers/src/boilerplate.js
HansDP/redux-container-state
import React from 'react' import { render } from 'react-dom' import { createStore, compose, combineReducers } from 'redux' import { Provider, connect } from 'react-redux' import { sagaStoreEnhancer } from 'redux-container-state-globalsaga' export default (containerDomId, View, updater) => { const storeFactory = com...
src/components/Login.js
ValentinAlexandrovGeorgiev/iStore
import React, { Component } from 'react'; import auth from './Auth'; import ajax from 'superagent'; import SERVER_URL from '../config'; class Login extends Component { constructor(){ super(); this.state = { }; this.authenticate = this.authenticate.bind(this); } authenticate(e...
blueocean-core-js/test/js/User-spec.js
jenkinsci/blueocean-plugin
/** * Created by cmeyers on 9/16/16. */ import React from 'react'; import { assert } from 'chai'; import { Utils } from '../../src/js/utils'; import { User } from '../../src/js/User'; describe('User', () => { describe('permissions', () => { it('User has pipeline permissions', () => { const ...
src/svg-icons/content/archive.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentArchive = (props) => ( <SvgIcon {...props}> <path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-....
src/scenes/Auth/components/AuthPage.js
ntxcode/react-base
import React from 'react'; import './AuthPage.css'; const AuthPage = props => <div className="AuthPage"> <header> <h1 className="AuthPageTitle">{props.title}</h1> </header> {props.children} </div>; export default AuthPage;
src/server.js
avantcontra/react-redux-custom-starter
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/store/configureStore...
src/components/Footer/Footer.js
L2D22/RPS
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
src/router/Landing.js
change-soft8/cs-project
import React from 'react' const Landing = React.createClass({ render() { return ( <div> <h1>Landing Page</h1> <p>This page is only shown to unauthenticated users.</p> <p>Partial / Lazy loading. Open the network tab while you navigate. Notice that only the required components are do...
src/svg-icons/image/brightness-2.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness2 = (props) => ( <SvgIcon {...props}> <path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/> </SvgIcon> ); I...
client/src/javascript/components/modals/torrent-details-modal/NavigationList.js
jfurrow/flood
import classnames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; class NavigationList extends React.Component { static propTypes = { itemClassName: PropTypes.string, items: PropTypes.array, listClassName: PropTypes.string, onChange: PropTypes.func, selectedClass...
src/modules/search-form/components/form.js
kksevta/flight-search
import React, { Component } from 'react'; import { Cities } from 'app/config/data' import DynamicSlider from './dynamic-slider' import * as Errors from 'app/config/errors' class Form extends Component { constructor(props) { super(props); this.state = { formDirty: true, //boole...
test/components/Checkbox.js
gcanti/tcomb-form
import tape from 'tape' import t from 'tcomb-validation' import bootstrap from 'tcomb-form-templates-bootstrap' import React from 'react' import { Checkbox } from '../../src/components' import { ctx, ctxPlaceholders, getRenderComponent } from './util' const renderComponent = getRenderComponent(Checkbox) const transfor...
app/javascript/mastodon/features/direct_timeline/index.js
rekif/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations'; impo...
tests_temp/layouts/CoreLayout.spec.js
wv-aut/experience-plus-react-coupled
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
fengshao0907/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
src/svg-icons/communication/textsms.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationTextsms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); Communica...
src/icons/font/NoteIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * Note button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const NoteIcon = (props, context) => { let theme = c...
ReduxBasedNavigation/js/routes/Route2.js
agenthunt/react-native-scratchpad
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center' } }); export default class Route2 extends Component { render(){ return ( ...
docs/app/Examples/elements/Header/Types/HeaderExamplePage.js
ben174/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExamplePage = () => ( <div> <Header as='h1'>First Header</Header> <Header as='h2'>Second Header</Header> <Header as='h3'>Third Header</Header> <Header as='h4'>Fourth Header</Header> <Header as='h5'>Fifth Header</Head...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
MitarashiDango/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { changeUploadCompose, uploadThumbnail, onCha...
node_modules/react-bootstrap/es/Thumbnail.js
vitorgomateus/NotifyMe
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/p5/P5.js
aitorfernandez/trackicon-invaders
import React, { Component } from 'react'; import { getIdenticonCode } from './../../utils'; import { GenreSelect } from './../genre'; import P5Wrapper from './P5Wrapper'; import sketch from './sketch'; import './p5.css'; function getInitialState() { return { identicons: { invaders: { }, defender: {...
src/components/GithubButton/GithubButton.js
askd/animakit
import React from 'react'; import PropTypes from 'prop-types'; import styles from './GithubButton.css'; const GithubButton = (props) => { const name = props.component ? `animakit-${props.component}` : 'animakit'; return ( <a className={ styles.button } href={ `https://github.com/animakit/${name}` ...
examples/universal/server/server.js
pedrottimark/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import webpackConfig from '../webpack....
src/svg-icons/action/restore.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestore = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
examples/fiber/debugger/src/Fibers.js
shergin/react
import React from 'react'; import { Motion, spring } from 'react-motion'; import dagre from 'dagre'; import prettyFormat from 'pretty-format'; import reactElement from 'pretty-format/plugins/ReactElement'; function getFiberColor(fibers, id) { if (fibers.currentIDs.indexOf(id) > -1) { return 'lightgreen'; } i...
docs/src/app/components/pages/components/LinearProgress/ExampleDeterminate.js
ArcanisCz/material-ui
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; export default class LinearProgressExampleDeterminate extends React.Component { constructor(props) { super(props); this.state = { completed: 0, }; } componentDidMount() { this.timer = setTimeout(() => thi...
app/javascript/mastodon/features/compose/components/navigation_bar.js
sylph-sin-tyaku/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...
client/app.js
dralletje/Tonlist
import React from 'react' import 'whatwg-fetch' import io from 'socket.io-client' import {compose} from 'recompose' import {observeProps, createEventHandler} from 'rx-recompose' import {Observable} from 'rx' import 'bootstrap/dist/css/bootstrap.css' import header from './assets/tonlist-monochrome1.png' import backgrou...
src/components/timer/index.js
jiriKuba/Calculatic
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, StyleSheet } from 'react-native'; import { stringPadLeft} from '../../utils/stringHelper'; class Timer extends Component { getTimerCountDown() { return setInterval(() => { this.decrementTime(); ...
src/index.js
arunchaganty/briefly
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './{appName}'; // Set up parameters for the interface using _input/_output. function tryGetValue(id) { try { return JSON.parse(document.getElementById(id).value); } catch(err) { console.info("Ignorning input ...
src/PageHeader.js
chrishoage/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
stories/Dropdown.stories.js
ProteinsWebTeam/interpro7-client
import React from 'react'; import { action } from '@storybook/addon-actions'; import DropDownButton from 'components/SimpleCommonComponents/DropDownButton'; import { foundationPartial } from '../src/styles/foundation'; import fonts from 'EBI-Icon-fonts/fonts.css'; const f = foundationPartial(fonts); export default ...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Badge.js
Akkuma/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/appReact/components/Map/RightNav.js
devmessias/brasillivre
import React from 'react'; import Envelope from 'react-icons/lib/fa/envelope'; import {Action} from './../../actions/Action.js'; const _openAbout=()=>Action('OpenModal','About'); class RightNav extends React.Component { render(){ return ( <section className='rightNav'> <div ...
app/javascript/mastodon/features/generic_not_found/index.js
masto-donte-com-br/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator fullPage /> </Column> ); export default GenericNotFound;
src/example/components/card.js
pierr/behaviour-test
import React from 'react'; import {Link} from 'react-router'; const cardStyle= { flex: 1, minWidth: '300px', maxWidth: '300px', marginTop: '7px', marginRight: '20px', marginBottom: '20px' }; const Card = ({title,description, route, destination }) => { return ( <div style={cardStyle} className="demo-...
src/components/services/tabs/TabBarSortableList.js
GustavoKatel/franz
import React, { Component } from 'react'; import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; import PropTypes from 'prop-types'; import { SortableContainer } from 'react-sortable-hoc'; import TabItem from './TabItem'; @observer class TabBarSortableList extends Component { static propTypes = { se...
app/js/dev/redux-dev-tools-exports.js
dothanhlam/mflenses
import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a monitor an...
packages/react/src/components/StructuredList/next/StructuredList-test.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { StructuredListWrapper, StructuredListHead, StructuredListInput, StructuredListBody, StructuredL...
src/components/app.js
omarchacinortega13/react-redux-weather-map
import React, { Component } from 'react'; import SearchBar from '../containers/SearchBar'; import WeatherList from '../containers/WeatherList'; export default class App extends Component { render() { return ( <div> <SearchBar/> <WeatherList/> </div> ); } }
blueocean-material-icons/src/js/components/svg-icons/action/card-giftcard.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionCardGiftcard = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1...
src/components/ListingLink.js
ZachGawlik/print-to-resist
import PropTypes from 'prop-types'; import React from 'react'; import { Link } from 'react-router-dom'; const ListingLink = ({ children, listingId }) => <Link className="ListingLink" to={`/poster/${listingId}`}> {children} </Link>; ListingLink.propTypes = { children: PropTypes.node.isRequired, listingId: ...
src/js/pages/Proposals/Leisure/BasicPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../../i18n/Translate'; import TopNavBar from '../../../components/TopNavBar/TopNavBar.js'; import '../../../../scss/pages/proposals/leisure/basic.scss'; import StepsBar from "../../../components/ui/StepsBar/StepsBar"...
src/components/CreateVmWizard/steps/_TableInlineEditRow.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import TableConfirmButtonsRow from 'patternfly-react/dist/js/components/Table/TableConfirmButtonsRow' const TableInlineEditRow = props => { const buttonsPosition = (window, rowDimensions) => { const position = {} if (props.last) { position.b...
src/components/space-stations.js
cosmowiki/cosmowiki
import React from 'react'; import Notes from './notes'; import {Summary} from './chunks/summary'; const SpaceStationsComponent = ({spaceStations:stations}) => { return ( <main role="main" className="pure-u-1"> <div id="siteTitle" className="spacestations pure-u-1 center"> <div id="siteTitleContaine...
src/svg-icons/av/web.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWeb = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/> </SvgIcon> ); AvWeb = pur...
src/components/fieldset_text.js
frig-js/frig
import React from 'react' const FieldsetText = (props, context) => { const spanProps = Object.assign({}, props) delete spanProps.text return ( <span {...spanProps}> {props.text(context.frigFieldset.index)} </span> ) } FieldsetText.propTypes = { text: React.PropTypes.func.isRequired, } FieldsetT...
src/routes/dashboard/Dashboard.js
medevelopment/updatemeadmin
import React from 'react'; import axios from 'axios'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; class Dashboard extends React.Component { static propTypes = { news: PropTypes.arrayOf(PropTypes.shape({ title: PropTypes.string.isRequired, lin...
client/src/views/Resources/components/tip-of-the-month/components/tip-overview/index.js
DillGromble/TNABT-org
import React from 'react' import './tip-overview.css' import placeholder from './tip-placeholder.png' const TipOverview = () => ( <div className="tip-overview-container"> <h3 className="tip-header-placeholder">First tip of the month coming soon!</h3> <img className="tip-img-placeholder" src={placeholder} a...
src/components/Navbar/navbar.js
mpazevic/CrowdBoard
import React from 'react'; import "./navbar-style.scss"; const Navbar = () => { return ( <div className="navbar col-12"> <h1 className="navbar-head">CrowdBoard</h1> </div> ) } export default Navbar;
_inc/client/components/navigation-settings/test/component.js
igmoweb/jetpack
/** * External dependencies */ import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; /** * Internal dependencies */ import { NavigationSettings } from '../index'; describe( 'NavigationSettings', () => { // Mock the required context type NavigationSettings.contextTypes = { ...
app/components/examples/Button/index.js
GuiaLa/guiala-web-app
/** * * Button.react.js * * A common button, if you pass it a prop "route" it'll render a link to a react-router route * otherwise it'll render a link with an onclick */ import React from 'react'; import styles from './styles.css'; function Button(props) { const className = props.className ? props.className ...
packages/veritone-react-common/src/components/FormBuilder/FormConfiguration/FormConfiguration.story.js
veritone/veritone-sdk
import React from 'react'; import { storiesOf } from '@storybook/react'; import { DndProvider } from "react-dnd"; import { action } from '@storybook/addon-actions'; import HTML5Backend from "react-dnd-html5-backend"; import FormConfiguration from './'; storiesOf('FormBuilder/FormConfiguration', module) .add('textInp...
src/App.js
kevinfrei/rollercoaster
//@flow import React from 'react'; import FunctionList from './FuncList'; import FunctionState from './FuncState'; import FunctionGraph from './FuncGraph'; import FunctionEditor from './FuncEditor'; import FileDialog from './FileDialog'; import GraphSettings from './GraphSettings'; import {MathJaxFixer} from './MathJ...
pages/404.js
jubearsun/cmyk
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { config } from 'config'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; export default class NotFound extends Component { render () { return ( <div className="page page--not-found"> ...
packages/mineral-ui-icons/src/IconFormatShapes.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFormatShapes(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
src/svg-icons/notification/disc-full.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDiscFull = (props) => ( <SvgIcon {...props}> <path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/> ...
test/asg-attendance.js
jmlane/asg-attendance
import assert from 'assert'; import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import AsgAttendance from '../src/components/asg-attendance.js'; const renderer = ReactTestUtils.createRenderer(); describe('ASG Attendance components', () => { it('should return a rendered ReactElement', (...
src/js/containers/app/main-header.js
frontendbr/eventos
'use strict' import React from 'react' const MainHeader = () => ( <header className='header' role='banner'> <a className='logo' href='./' role='logo'> <img src='svg/logo.svg' /> </a> <a className='btn-link' href='https://github.com/frontendbr/eventos' title='Anuncie seu evento'> ...
src/index.js
andrei-cacio/redux-github-explorer
import './style.less'; import Immutable from 'immutable'; import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import thunkMiddleware from 'redux-thunk'; import createLogger from 'redux-logger'; import { Provider } from 'react-redux'; import App from './co...
src/results/Result.react.js
DhammaLuke/citybook
import React, { Component } from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import Button from 'react-bootstrap/lib/Button'; import ButtonGroup from 'react-bootstrap/lib/ButtonGroup'; import Glyphicon from 'react-bootstr...
OleksiiOnSoftware.Apps.Blog/client/containers/App/index.js
boades/PpmSystem
// Framework import React from 'react' import { Route, Switch } from 'react-router' // Custom UI import { ScrollToTop, GoogleAnalyticsTrackPageView } from 'components' /** * Root element of the application. * It renders a set of static top-level routes and makes sure that only one top-level route can be selected at...
ajax/libs/react-instantsearch/4.1.3/Connectors.js
BenjaminVanRyseghem/cdnjs
/*! ReactInstantSearch 4.1.3 | © 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....
node_modules/react-router/es6/RouteUtils.js
jeffshen18/React-Course
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function isValidChild(object) { ...
src/svg-icons/hardware/tv.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTv = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); HardwareTv = pure(Hardwar...
src/containers/ButtonContainer.js
opiskelija-dashboard/dashboard
import React, { Component } from 'react'; import '../App.css'; import { connect } from 'react-redux'; import { toggleVisibility } from '../actions/index'; import { Button } from 'semantic-ui-react'; export class ButtonContainer extends Component { render() { const text = this.props.text; const actived = (th...
components/LinksList.js
vinaypuppal/linklet-app
import React from 'react' import Router from 'next/router' import NProgress from 'nprogress' import Pagination from 'rc-pagination' import MLinkCard from './MLinkCard' // import LinkCard from './LinkCard' import PageInfo from './PageInfo' import SearchBar from '../components/Search' import db from '../lib/db' import Sn...
dnim-client/src/components/SearchBar.js
zhangmingkai4315/DNIS-Project
import React from 'react'; import ShortCutButton from './ShortCutButton'; export default class SearchBar extends React.Component { constructor(props) { super(props); this. _handleChange = this. _handleChange.bind(this); this. _handleKeyPress = this. _handleKeyPress.bind(this); this.onClickShortCutButt...
components/button.js
volodalexey/spachat
import React from 'react' import {Link} from 'react-router' import {element} from './element' import localization from '../js/localization' const Button = React.createClass({ renderExtraAttributes(){ let options = {}, config = this.props.config; if (config.data && config.data.mode_to && config.data.mo...
src/components/Profile/ProfileDetails.js
unihackhq/skilled-acolyte-frontend
import React from 'react'; import { Link } from 'react-router-dom'; import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'; import { Title, Button } from 'bloomer'; import Loader from '../Loader'; import Page from '../Page'; import './ProfileDetails.scss'; const ProfileDetails = ({ user: userStore }...
tests/layouts/PageLayout.spec.js
edu-affiliates/promo_calculators
// import React from 'react' // import PageLayout from 'layouts/PageLayout/PageLayout' // import { shallow } from 'enzyme' // // describe('(Layout) PageLayout', () => { // it('renders as a <div>', () => { // shallow(<PageLayout />).should.have.tagName('div') // }) // // it('renders a project title', () => { /...
src/component/Buy.js
RobotDisco/snack-tracker-to
import React, { Component } from 'react'; class Buy extends Component { render() { return ( <button disabled={!this.props.enabled} onClick={(e) => this.props.cb(this.props.employeeId, this.props.snackId)}>Buy</button> ); }; } export default Buy;
client/app/scripts/main.js
kinvolk/scope
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../styles/main.scss'; import '../images/favicon.ico'; import configureStore from './stores/configureStore'; const store = configureStore(); function renderApp() { const App = requir...
app/node_modules/redux-devtools-log-monitor/src/LogMonitorEntryAction.js
BZhawaii/ArtStorm
import React, { Component } from 'react'; import JSONTree from 'react-json-tree'; const styles = { actionBar: { paddingTop: 8, paddingBottom: 7, paddingLeft: 16 }, payload: { margin: 0, paddingLeft: 16, overflow: 'auto' } }; export default class LogMonitorAction extends Component { c...
src/components/Form/RadioGroup.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import FormElement from './FormElement'; import FormElementControl from './FormElementControl'; import FormElementError from './FormElementError'; import FormElementLabel from './FormElementLabel'; import { getUniqueHash } from '../../utils'; const Radio...
packages/icons/src/md/action/Home.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdHome(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <polygon points="20 41 20 29 28 29 28 41 38 41 38 25 44 25 24 7 4 25 10 25 10 41" /> </IconBase> ); } export default MdHome;
app/javascript/mastodon/features/report/components/status_check_box.js
TheInventrix/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
addons/actions/.storybook/stories.js
enjoylife/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action, decorateAction } from '../src'; const pickFirst = decorateAction([ args => args.slice(0, 1) ]); storiesOf('Button', module) .add('Hello World', () => ( <button onClick={action('hello-world')}>Hello World</button> )) ...
src/parser/paladin/retribution/modules/core/Judgment.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import EnemyInstances from 'parser/shared/modules/EnemyInstances'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink...
src/application.js
popcodeorg/popcode
import 'core-js'; import 'regenerator-runtime/runtime'; import 'whatwg-fetch'; import 'raf/polyfill'; import './init/DOMParserShim'; import React from 'react'; import ReactDOM from 'react-dom'; import Application from './components/Application'; import init from './init'; const {store} = init(); ReactDOM.render( ...