path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/components/LoadingIndicator/index.js
seanng/web-server
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
react-native-scripts/src/bin/crna-entry.js
chochihim/create-react-native-app
import Expo from 'expo'; import App from '../../../../../App'; import React, { Component } from 'react'; import { View } from 'react-native'; // we don't want this to require transformation class AwakeInDevApp extends Component { render() { return React.createElement( View, { style: { ...
docs/app/Examples/modules/Dropdown/Content/DropdownExampleMessage.js
mohammed88/Semantic-UI-React
import React from 'react' import { Dropdown, Message } from 'semantic-ui-react' const DropdownExampleMessage = () => ( <Dropdown text='Login' floating labeled button className='icon'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Message error header='Error' content='You must log-in to see all c...
app/assets/javascripts/src/components/iceCreams/NewIceCreamForm.js
talum/creamery
import React from 'react' import { connect } from 'react-redux' import Form from '../sharedComponents/Form' import InputField from '../sharedComponents/InputField' import SubmitButton from '../sharedComponents/SubmitButton' import { addIceCream } from '../../actions/iceCreams' import { debounce } from 'lodash' class I...
docs/client/components/pages/Linkify/CustomComponentLinkifyEditor/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved import createLinkifyPlugin from 'draft-js-linkify-plugin'; // eslint-disable-line import/no-unresolved import editorStyles from './editorStyles.css'...
test/ReduxibleConfig.spec.js
xissy/reduxible
import expect from 'expect'; import React from 'react'; import ReduxibleConfig from '../src/ReduxibleConfig'; describe('ReduxibleConfig', () => { it('returns false if devTools is undefined', () => { const config = new ReduxibleConfig(); expect(config.useDevTools()).toBe(false); }); it('returns false if ...
frontend/app_v2/src/components/Footer/FooterPresentation.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import { Link, useParams } from 'react-router-dom' // FPCC / FPCF import fpccLogo from 'images/fpccLogoWhite.png' import fpcfLogo from 'images/fpcfLogoWhite.svg' function FooterPresentation() { const { sitename } = useParams() const linkClass = 'block m...
src/Form.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { horizontal: React.PropTypes.bool, inline: React.PropTypes.bool, componentClass: elementType, }; ...
test/common/components/App-test.js
nubstick27/idea-muscle
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import App from '../../../src/common/components/App'; test('render with container div', t => { const wrapper = shallow(React.createElement(App)); t.is(wrapper.find('#container').length, 1); });
packages/canvas-rce/src/rce/plugins/instructure_image/ImageList/index.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
packages/material-ui-icons/src/BatteryCharging30.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BatteryCharging30 = props => <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M11 20v-5.5H7v6....
src/svg-icons/action/receipt.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReceipt = (props) => ( <SvgIcon {...props}> <path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-...
app/javascript/mastodon/components/__tests__/avatar-test.js
masarakki/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import Avatar from '../avatar'; describe('<Avatar />', () => { const account = fromJS({ username: 'alice', acct: 'alice', display_name: 'Alice', avatar: '/animated/alice.gif', avatar_static:...
src/Thumbnail.js
dozoisch/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import SafeAnchor from './SafeAnchor'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { src: React.PropTypes.string, alt: React.PropTypes.string, href: React.PropTypes.string, }; class Thumbnail exte...
app/viewControllers/admin/SideNav.js
Evyy/cffs-ui
'use strict'; import React from 'react'; import {Link} from 'react-router'; import classnames from "classnames"; class SideNav extends React.Component { constructor (props) { super(props); } static propTypes = { links: React.PropTypes.array.isRequired, onLinkClick: React.PropType...
src/components/selectList/SelectList.js
DaveOrDead/react-dnd-character-generator
import React from 'react'; import FormItem from '../formItem'; import InputLabel from '../inputLabel'; import generateSvgLink from '../../utils/generateSvgLink'; /** * SelectList component. Is used when you need to insert 1 `<select>` element and an * accompanying label—the label is always required, there is an opt...
docs/src/app/components/pages/components/IconMenu/Page.js
frnk94/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconMenuReadmeText from './README'; import IconMenuExampleSimple from './...
src/__tests__/components/ChatApp/MessageListItem/Feedback.js
RMCoder198/chat.susi.ai
import React from 'react'; import Feedback from '../../../../components/ChatApp/MessageListItem/Feedback.react'; import { shallow } from 'enzyme'; describe('<Feedback />', () => { it('render Feedback without crashing', () => { shallow(<Feedback />); }); });
src/svg-icons/image/vignette.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageVignette = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/> </SvgIcon>...
test/BadgeSpec.js
deerawan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Badge from '../src/Badge'; describe('Badge', function () { it('Should output a badge with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Badge> <strong>Content</strong> </Badge...
app/javascript/mastodon/components/loading_indicator.js
unarist/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
examples/app-composition/views/PasswordComponent.js
hallettj/sunshine
/* @flow */ import React from 'react' import ReactDOM from 'react-dom' import * as Sunshine from '../../../react' import * as Password from '../password' type State = { visible: boolean, } export default class PasswordComponent extends Sunshine.Component<{},{},State> { getState({ requestPassword }: Password.AppS...
src/app/plugins/SlideFrame.js
lili668668/lili668668.github.io
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { withStyles } from '@material-ui/core/styles' import Fab from '@material-ui/core/Fab' import LeftIcon from '@material-ui/icons/ChevronLeft' import RightIcon from '@material-ui/icons/ChevronRight' import compose fro...
src/svg-icons/social/notifications-none.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsNone = (props) => ( <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l...
packages/canvas-rce/src/rce/plugins/instructure_image/ImageOptionsTray/TrayController.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
examples/huge-apps/app.js
rkaneriya/react-router
/*eslint-disable no-unused-vars */ import React from 'react' import { createHistory, useBasename } from 'history' import { Router } from 'react-router' import stubbedCourses from './stubs/COURSES' const history = useBasename(createHistory)({ basename: '/huge-apps' }) const rootRoute = { component: 'div', childR...
src/svg-icons/content/forward.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentForward = (props) => ( <SvgIcon {...props}> <path d="M12 8V4l8 8-8 8v-4H4V8z"/> </SvgIcon> ); ContentForward = pure(ContentForward); ContentForward.displayName = 'ContentForward'; ContentForward.muiNam...
js/react-native/the_auth_app/src/components/common/Button.js
petarov/sandbox
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; const Button = ({ onPress, children }) => { const { buttonStyle, textStyle } = styles; return ( <TouchableOpacity onPress={onPress} style={buttonStyle}> <Text style={textStyle}> {children} </Text> </Toucha...
src/client/components/ImageView.js
dtekcth/dfotose
import _ from 'lodash'; import React from 'react'; import {observer} from 'mobx-react'; import {Link} from 'react-router-dom'; import keydown, {Keys} from 'react-keydown'; import LoadingSpinner from './LoadingSpinner'; import GalleryStore from '../GalleryStore'; import ImageStore from '../ImageStore'; import Preloa...
src/svg-icons/notification/airline-seat-legroom-extra.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomExtra = (props) => ( <SvgIcon {...props}> <path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1....
src/settings/__tests__/settingsUserInformation-test.js
binary-com/binary-next-gen
import React from 'react'; import { mountWithIntl } from 'enzyme-react-intl'; import SettingsUserInformation from '../SettingsUserInformation'; describe('<SettingsUserInformation />', () => { const PROPS = { residenceList: [{ phone_idd: '260', text: 'Zambia', value: 'zm' }, { ...
client/src/components/UpdateJob/UpdateJob.js
jenovs/bears-team-14
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import { withScrollToTop } from '../hocs/withScrollToTop'; import { Fieldset, Form, Wrapper } from './styled'; const findItem = (id, data = []) => data.filter(item => item._id === id)[0]; class UpdateJob extends Component { con...
src/components/common/base/Wrapper.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import styles from './Wrapper.module.css'; const sizeOptions = ['l', 'm', 's']; const Wrapper = ({ Tag, size, children, className, onClick }) => ( <Tag onClick={onClick} className={cn(styles[size], className)}> {children...
src/GridList/GridTile.spec.js
w01fgang/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import GridTile from './GridTile'; import getMuiTheme from '../styles/getMuiTheme'; describe('<GridTile />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {co...
client/pages/CounterPage.js
marcocom/portfolio-react-webpack2
import React from 'react'; import Counter from '../components/Counter'; export default function CounterPage() { return ( <div className="counter-page"> <div className="container"> <Counter /> </div> </div> ); }
src/pages/graph-amounts.1.js
Hurtak/finances
// @flow import React from 'react' import * as graph from '../utils/graph.js' import * as data from '../data/data.js' import './graph.css' class Graph extends React.Component { charts = [] data = data.transactionsGroupedAndAggregated render () { return ( <section className='Graphs'> <div ...
frontend/src/style-guide/sections/Radios.js
spruce-bruce/daves.pics
import React, { Component } from 'react'; import { Radio } from 'synfrastructure'; import ToggleScaffold from '../../common/forms/ToggleScaffold'; class Radios extends Component { constructor(props) { super(props); this.state = { checkedRadio: null, }; } toggleRadio(e) { this.setState({ c...
src/components/Arrow/index.js
andywillis/uws
// Dependencies import React from 'react'; import PropTypes from 'prop-types'; // Style import './style.css'; /** * @function Arrow * @param {object} props Component properties * @return {jsx} Component */ const Arrow = (props) => { const { disabled, type, location } = props; return ( <div classN...
src/components/Notifications/Notification.js
mmrath/react-app
'use strict'; import React from 'react'; export default React.createClass({ render() { return ( <div className="row"> This is Notification </div> ); } });
src/screens/ChatScreen.js
jjimenezlopez/ReactNativePOC
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View, Text, ActivityIndicator, Platform, Clipboard } from 'react-native'; import { Icon } from 'react-native-elements'; import { GiftedChat, Actions, Bubble } from 'react-native-gifted-chat'; import CustomV...
app/components/Braumeister.js
chrigu/braukontrol-react
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import { Chart } from './Chart'; import styles from './Braumeister.css'; import Header from '../common/Header'; export default class Braumeister extends Component { constructor(props) { super(props); this.toggleReco...
jekyll-admin/src/containers/tests/metafields.spec.js
mparlak/mparlak.github.io
import React from 'react'; import { mount } from 'enzyme'; import { MetaFields } from '../MetaFields'; import MetaField from '../../components/metadata/MetaField'; import { content } from './fixtures'; const defaultProps = { fields: content, metadata: content, key_prefix: '' }; function setup(props=defaultProp...
src/svg-icons/av/remove-from-queue.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRemoveFromQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"/> </SvgIcon> );...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
seifdr/Patellinis-Bootstrap-V4
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/fieldset_nested_form.js
frig-js/frig
import React from 'react' import AbstractForm from './abstract_form.js' // Nested forms (forms inside nested fieldsets) export default class FieldsetNestedForm extends AbstractForm { displayName = 'Frig.FieldsetNestedForm' static propTypes = AbstractForm.propTypes static defaultProps = AbstractForm.defaultProps...
test/pages/PreferencePage.spec.js
360ls/desktop
import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import { expect } from 'chai'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import PreferencePage from '../../app/pages/PreferencePage'; import configureStore from '../../app/store/configureStore'; ...
src/img/imgs/icon_keyboard.js
mikah1337/null-terminator
import React from 'react'; export default class Icon_Keyboard extends React.Component { constructor(props) { super(props); this.state = { height: this.props.height || "70%", color: this.props.color || "#d2d4d8" } } render() { return ( <sv...
src/svg-icons/action/toll.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToll = (props) => ( <SvgIcon {...props}> <path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.5...
src/@ui/Header/index.js
NewSpring/Apollos
import React from 'react'; import { View, StatusBar, Platform } from 'react-native'; import SafeAreaView from '@ui/SafeAreaView'; import PropTypes from 'prop-types'; import { compose, setPropTypes, pure, branch, renderNothing, defaultProps } from 'recompose'; import { withTheme, withThemeMixin } from '@ui/theme'; impor...
modules/RoutingContext.js
CivBase/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
server/sonar-web/src/main/js/apps/permission-templates/main.js
vamsirajendra/sonarqube
import _ from 'underscore'; import React from 'react'; import Header from './header'; import PermissionTemplates from './permission-templates'; import { getPermissionTemplates } from '../../api/permissions'; const PERMISSIONS_ORDER = ['user', 'codeviewer', 'issueadmin', 'admin']; export default React.createClass({ ...
src/components/auth.js
stefuhnee/moments
'use strict'; import React, { Component } from 'react'; import firebase from 'firebase'; import firebaseui from 'firebaseui'; import { Alert, Form, FormGroup, FormControl, Col, ControlLabel, Button } from 'react-bootstrap'; class Auth extends Component { constructor(props) { super(props); this.state = { ...
client/analytics/components/pages/overview/groupReport/GroupReportDetails.js
Haaarp/geo
import React from 'react'; import {connect} from 'react-redux'; import moment from 'moment'; import FormWrap from 'konux/common/components/FormWrap'; import StatusHistoryContainer from './StatusHistoryContainer'; import HealthStatusChart from './HealthStatusChart'; import GroupReportSummary from './GroupReportSummary...
cerberus-dashboard/src/components/Loader/Loader.js
Nike-Inc/cerberus
/* * Copyright (c) 2020 Nike, 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 or agreed to ...
frontend/src/components/frame/components/LoginModal/components/SignupContentPres.js
jf248/scrape-the-plate
import React from 'react'; import { Button, DialogContent, DialogActions, withStyles, } from '@material-ui/core'; import { Field } from 'components/common'; const styles = () => ({ field: { display: 'block', }, }); function SignupContentPres(props) { const { classes, getInputProps, getSubmitProps, ...
src/js/components/modules/LayerToolBoxItem.js
at-ishikawa/paintlive
import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as LayerToolBoxActions from 'actions/layer'; import { DragSource, DropTarget } from 'react-dnd'; import TextField from 'components/modules/ui/TextField'; import Check...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
alihalabyah/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
src/svg-icons/action/delete.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDelete = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/> </SvgIcon> ); ActionDelete = pure(ActionDelete); ActionDelete.display...
app/assets/javascripts/react/views/_layouts/LoginMenu.js
Madek/madek-webapp
import React from 'react' import cx from 'classnames' import f from 'lodash' import t from '../../../lib/i18n-translate.js' import Tab from 'react-bootstrap/lib/Tab' import Nav from 'react-bootstrap/lib/Nav' import NavItem from 'react-bootstrap/lib/NavItem' import RailsForm from '../../lib/forms/rails-form.cjsx' class...
src/Parser/Warlock/Demonology/Modules/Talents/Demonbolt.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellIcon from ...
react/features/base/react/components/native/HeaderWithNavigation.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../../i18n'; import BackButton from './BackButton'; import ForwardButton from './ForwardButton'; import Header from './Header'; import HeaderLabel from './HeaderLabel'; type Props = { /** * Boolean to set the forward button ...
app/components/Window2.js
Fresh-maker/razor-client
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import _ from 'underscore'; import showdown from 'showdown'; import styles from './Window2.css'; import DetailMetadata from './DetailMetadata.js'; import ALL_DATA from '../fixtures/alldata.js'; import DetailActionDropdown from './De...
fields/types/color/ColorField.js
michaelerobertsjr/keystone
import { SketchPicker } from 'react-color'; import Field from '../Field'; import React from 'react'; import { FormInput, InputGroup } from 'elemental'; import swatch from './transparent-swatch'; module.exports = Field.create({ displayName: 'ColorField', statics: { type: 'Color', }, propTypes: { onChange: React...
src/scenes/App/components/Footer/index.js
jsza/tempus-website
import React from 'react' import './styles.styl' const Footer = ({ className, ...props }) => <footer className={'App-footer ' + (className || '')} {...props} > <ul className="links"> <li> <a href="http://steampowered.com/"> <i className="fab fa-steam-symbol" /> Powered by Stea...
src/components/dashboard/widget.js
vinej/react-portal
import React, { Component } from 'react'; class Widget extends Component { render() { return ( <div> <div className="rp-widget-header">{ this.props.title } <i className="fa fa-refresh rp-widget-icon" onClick={this.props.onRefreshWidget} /> <i className="fa fa-folder-open rp-widg...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Radio.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/svg-icons/toggle/check-box-outline-blank.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBoxOutlineBlank = (props) => ( <SvgIcon {...props}> <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ToggleCheckBoxOutlineBlank =...
public/js/app/index.js
fendy3002/QzQueryTools
import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import QzReactReduxHashState from '@fendy3002/react-redux-hash-state'; import sa from 'superagent'; import lo from 'lodash'; impo...
src/components/forecast.js
shootermantes/rome-weather
import React, { Component } from 'react'; // Components import Current from './current'; import FiveDay from './fiveday'; import Alerts from './alerts'; export default class Forecast extends Component { constructor (){ super() } render() { return ( <div className="Precip-container"> <Current /> <F...
modules/Redirect.js
CivBase/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should b...
app/components/H3/index.js
ParkarDev/react-resume
import React from 'react'; class H3 extends React.Component { render() { return ( <h3>{ this.props.children }</h3> ); } } export default H3;
src/components/WidgetSettings/WidgetSettings.js
rocket-internet-berlin/RocketDashboard
/* eslint-disable jsx-a11y/no-static-element-interactions */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ReactModal from 'react-modal'; import WidgetListItems from './WidgetListItems'; import { closeWidgetModal } from '../../actions'; import './WidgetSet...
node_modules/react-router/es6/RouterContext.js
ajkhatibi/wheevy
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < argum...
src/components/jupyterlab-integration/menu-item.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import { MenuItem } from '@material-ui/core'; import BookIcon from '@material-ui/icons/Book'; class JupyterMenuComponent extends Component { render() { const { onClick } = this.props; return ( <MenuItem onClick={onClick}> <BookIcon/> JupyterLab Integra...
src/svg-icons/editor/border-color.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderColor = (props) => ( <SvgIcon {...props}> <path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp...
definitions/npm/react-css-modules_v3.x.x/flow_v0.53.x-/test_react-css-modules-v3.js
hansonw/flow-typed
// @flow import React, { Component } from 'react'; import CSSModules from 'react-css-modules'; const styles = { test: '123' }; class ExampleModule extends Component<{ foo: string, styles: typeof styles, }> { render() { return <div className={this.props.styles}>{this.props.foo}</div>; } } const ExampleCS...
src/components/Post/PostActions.js
thinq4yourself/simply-social-in
import { Link } from 'react-router-dom'; import React from 'react'; import api from '../../services/api'; import { connect } from 'react-redux'; import { DELETE_ARTICLE } from '../../constants/actionTypes'; import { Dropdown, Icon, Menu, Button } from 'semantic-ui-react' const mapDispatchToProps = dispatch => ({ o...
src/svg-icons/av/volume-off.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeOff = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86...
client/pages/SettingsPage.js
freakimkaefig/melodicsimilarity
import React from 'react'; import AuthenticatedComponent from '../components/AuthenticatedComponent'; import DocumentTitle from 'react-document-title'; import LoadingOverlay from '../components/LoadingOverlay'; import { APP_NAME, APP_URL, SOLR_URL, MONGO_URL } from '../constants/AppConstants'; import { settin...
readable/src/App.js
custertian/readable
import React, { Component } from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom' import Layout from './containers/Layout' import PostDetail from './containers/PostDetail' class App extends Component { render() { return ( <Router> <div> <Route exact path='/' com...
examples/shopping-cart/src/main.js
HansDP/redux-saga
import "babel-polyfill" import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './components/App' import { createStore, applyMiddleware } from 'redux' import createSagaMiddleware from 'redux-saga' import rootReducer from './reducers' import rootSaga from '....
client/src/components/TextField/TextField.js
Stanley288/buddy-finder-app
import React from 'react' import TextField from 'material-ui/TextField' import PropTypes from 'prop-types' import Radium from 'radium' import theme from 'theme' const styles = { root: { height: 50, borderRadius: 25, backgroundColor: 'rgba(255, 255, 255, 0.1)', padding: '0 25px', display: 'flex',...
public/js/components/TodoList.js
JasonShin/HELP-yo
import React from 'react'; import { observer } from 'mobx-react'; @observer export default class TodoList extends React.Component { filter(e) { this.props.store.filter = e.target.value; } createNew(e) { //Push to todos only if enter is pressed if(e.which === 13) { this...
app/jsx/move_item/MoveItemTray.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
client/components/ui/modal/index.js
bnjbvr/kresus
import React from 'react'; import Modal from 'react-modal'; import { connect } from 'react-redux'; import { actions, get } from '../../../store'; import { assert } from '../../../helpers'; import ModalContent from './content'; const modalsMap = new Map(); export function registerModal(slug, modalMaker) { assert...
app/javascript/mastodon/features/compose/components/upload.js
mstdn-jp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injec...
app/config/routes.js
itsashis4u/github-battle
import React from 'react'; import { Router, Route, IndexRoute, hashHistory as history } from 'react-router'; import Main from '../components/Main'; import Home from '../components/Home'; import PromptContainer from '../containers/PromptContainer'; import ConfirmBattleContainer from '../containers/ConfirmBattleContainer...
src/svg-icons/action/hourglass-full.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHourglassFull = (props) => ( <SvgIcon {...props}> <path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/> </SvgIcon> ); ActionHourglassFull = pure(ActionHour...
tests/lib/ResizeSpin.spec.js
LucasBassetti/react-css-loaders
import React from 'react'; import { describe, it } from 'mocha'; import { expect } from 'chai'; import { mount } from 'enzyme'; import { ResizeSpinLoader } from '../../lib/index'; describe('ResizeSpinLoader', () => { describe('default', () => { const wrapper = mount(<ResizeSpinLoader />); const props = wrapp...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
romaindso/create-react-app
/** * Copyright (c) 2015-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. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; const styled = ([style]) => style .trim() .spli...
examples-native/crna-kitchen-sink/storybook/stories/CenterView/index.js
storybooks/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import style from './style'; export default function CenterView({ children }) { return <View style={style.main}>{children}</View>; } CenterView.defaultProps = { children: null, }; CenterView.propTypes = { childr...
src/components/common/LogoutLink.js
hugofrely/chat-react-redux
import React from 'react'; const LogoutLink = ({signOut}) => { return <a href="#" onClick={signOut}>Logout</a>; }; LogoutLink.propTypes = { signOut: React.PropTypes.func.isRequired }; export default LogoutLink;
examples/src/components/Contributors.js
mmpro/react-select
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
fixtures/nesting/src/modern/AboutPage.js
facebook/react
import React from 'react'; import {useContext} from 'react'; import {connect} from 'react-redux'; import ThemeContext from './shared/ThemeContext'; import lazyLegacyRoot from './lazyLegacyRoot'; // Lazy-load a component from the bundle using legacy React. const Greeting = lazyLegacyRoot(() => import('../legacy/Greeti...
src/Components/Button.js
jefferydutra/TestableModularReactTalk
import React from 'react'; import classNames from 'classnames'; require('./Button.css'); function Button({ children, onClick, isDisabled }) { const className = classNames('button', { 'button--isDisabled ': isDisabled }); return ( <button className={className} onClick={onClick}> ...
src/components/controls.js
SergeRNR/music-player
import React from 'react'; import PlaybackStore from 'stores/playback-store'; import playbackActions from 'actions/playback-actions'; class ProgressBar extends React.Component { constructor (props) { super (props); this.onChange = this.onChange.bind(this); } componentDidMount () { PlaybackStore.addL...
src/tk/approutes.js
JohnCrash/react-tiku
import React from 'react'; import { Route, Redirect, IndexRoute, } from 'react-router'; import Master from './Master'; export default AppRoutes;
src/svg-icons/action/bug-report.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBugReport = (props) => ( <SvgIcon {...props}> <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7...
src/containers/DevTools.js
Korkemoms/amodahl.no
// @flow 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 DockMonitor from 'redux-devtools-dock-monitor' import LogMonitor from 'redux-devtools-log-monitor' const DevTools = createDevTools...
examples/websdk-samples/LayerReactNativeSample/index.ios.js
layerhq/layer-js-sampleapps
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, Modal, StatusBar } from 'react-native'; import { Client, Query } from 'layer-websdk/index-react-native.js'; import LayerHelper from './sr...