path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/RootCloseWrapper.js
AlexKVal/react-overlays
import React from 'react'; import addEventListener from './utils/addEventListener'; import createChainedFunction from './utils/createChainedFunction'; import ownerDocument from './utils/ownerDocument'; // TODO: Consider using an ES6 symbol here, once we use babel-runtime. const CLICK_WAS_INSIDE = '__click_was_inside';...
src/pages/conference/people/userProfile/changeAvatar/userAvatar.js
sunway-official/acm-admin
import React from 'react'; import { images } from '../../../../../theme'; import './style.css'; const UserAvatar = () => ( <div className="user-profile-img other-user-avatar"> <img src={images.defaultAvatar} alt="avatar" id="avatar" /> </div> ); export default UserAvatar;
app/components/app-layout.js
KleeGroup/focus-starter-kit
import React from 'react'; import Layout from 'focus-components/components/layout'; import MenuLeft from '../views/menu/menu-left'; import Footer from '../views/footer'; import DevTools from './dev-tools'; const CustomLayout = (props) => ( <div> <Layout Footer={Footer} MenuLeft={Me...
src/Jumbotron.js
egauci/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import elementType from 'react-prop-types/lib/elementType'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: elementType }, getDefaultProps() { return ...
src/RadioButton/RadioButtonGroup.spec.js
mtsandeep/material-ui
/* eslint-env mocha */ import React from 'react'; import {assert} from 'chai'; import {shallow} from 'enzyme'; import RadioButtonGroup from './RadioButtonGroup'; import getMuiTheme from '../styles/getMuiTheme'; describe('<RadioButtonGroup />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (no...
frontend/src/Components/Table/TableOptions/TableOptionsColumnDragPreview.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { DragLayer } from 'react-dnd'; import DragPreviewLayer from 'Components/DragPreviewLayer'; import { TABLE_COLUMN } from 'Helpers/dragTypes'; import dimensions from 'Styles/Variables/dimensions.js'; import TableOptionsColumn from './Ta...
src/components/AppBox.js
leanix/leanix-app-launchpad
import React from 'react' // eslint-disable-next-line no-unused-vars import { Avatar, Card, CardActions, CardExpandable, CardHeader, CardMedia, CardText, CardTitle } from 'material-ui' // eslint-disable-next-line no-unused-vars import Tag from './Tag' import store from '../services/Store' export default class AppBox e...
js/common/VideoComponent.js
FurtherMyFuture/FutureMobile
/** * @flow * @providesModule VideoComponent */ import React from 'react' import { AppState, StyleSheet, View } from 'react-native' import Video from 'react-native-video' type Props = { source: { uri: string } | number, children?: React.Element<any>, muted: boolean } type State = { paused: boolean, mut...
docs/app/Examples/elements/Button/Types/ButtonExampleLabeledBasic.js
koenvg/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleLabeledBasic = () => ( <div> <Button color='red' content='Like' icon='heart' label={{ basic: true, color: 'red', pointing: 'left', content: '2,048' }} /> <Button basic color='blue'...
packages/wix-style-react/src/SidePanel/SidePanelAPI.js
wix/wix-style-react
import React from 'react'; export const SidePanelContext = React.createContext();
src/svg-icons/device/signal-wifi-3-bar.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0...
app/components/SelectWbtStatement.js
rick-maclean/wbt-canada-stmts-electron-react-simmering
// @flow import React, { Component } from 'react'; import electron from 'electron'; import jquery from 'jquery'; // import PropTypes from 'prop-types'; // import { Link } from 'react-router-dom'; // import styles from './LoginForm.css'; const app = electron.remote; const dialog = app.dialog; const fs = require('fs')...
src/components/App/App.js
ihenvyr/react-app
import React from 'react'; import { Router } from 'react-router'; import routes from '../../routes'; import { browserHistory } from 'react-router'; import './App.scss'; const store = window.store = {}; const createElement = (Component, props) => { return <Component {...props} store={store} /> }; const App = () => {...
src/containers/pages/create-deck/after-class-selection/left-container/sidebar/details/deck-mechanics.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import Loader from "../../../../../../../components/loaders/diamond/loader"; const DeckMechanics = ({deck, cards}) => { const {loading} = cards; let deckMechanics = [].concat.apply([], _.map(deck, (value)=>value.hasOwnProperty('...
tests/routes/Counter/components/Counter.spec.js
danielriley06/react-redux-chat-example
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
frontend/src/containers/CollectionManagement/CollectionManagement.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { asyncConnect } from 'redux-connect'; import { load as loadColl } from 'store/modules/collection'; import { getOrderedRecordings } from 'store/selectors'; import { AccessContext } from 'store/contexts'; import CollectionManagementUI...
__tests__/components/LinkInput.spec.js
ZachGawlik/print-to-resist
import React from 'react'; import ShallowRenderer from 'react-test-renderer/shallow'; import LinkInput from '../../src/components/LinkInput'; describe('LinkInput', () => { it('renders as expected', () => { const renderer = new ShallowRenderer(); renderer.render( <LinkInput index={1} onU...
frontend/node_modules/react-router/es/Prompt.js
justdotJS/rowboat
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
fixtures/fiber-debugger/src/Fibers.js
prometheansacrifice/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'; }...
src/svg-icons/notification/sync.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSync = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25...
node_modules/react-router/modules/Router.js
SlateRobotics/slate-website
import createHashHistory from 'history/lib/createHashHistory' import useQueries from 'history/lib/useQueries' import React from 'react' import createTransitionManager from './createTransitionManager' import { routes } from './PropTypes' import RouterContext from './RouterContext' import { createRoutes } from './RouteU...
src/TabPane.js
xiaoking/react-bootstrap
import React from 'react'; import deprecationWarning from './utils/deprecationWarning'; import Tab from './Tab'; const TabPane = React.createClass({ componentWillMount() { deprecationWarning( 'TabPane', 'Tab', 'https://github.com/react-bootstrap/react-bootstrap/pull/1091' ); }, render() { ...
src/components/calculationmonitor.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Avatar from '@material-ui/core/Avatar'; import Chip from '@material-ui/core/Chip'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; ...
ui/src/js/statistics/TreesPerOrgType.js
Dica-Developer/weplantaforest
import axios from 'axios'; import counterpart from 'counterpart'; import React, { Component } from 'react'; import { Pie } from 'react-chartjs'; export default class TreesPerOrgType extends Component { constructor() { super(); this.state = { chartData: [], amountOfTrees: [1, 1, 1, 1], label...
webclient/src/components/Navbar.js
jadiego/bloom
import React, { Component } from 'react'; import { Menu, Container, Image } from 'semantic-ui-react' import { Link, withRouter } from 'react-router-dom'; import image from '../img/lotus.svg'; import { isEmpty } from 'lodash'; import './navbar.css' import { bindActionCreators } from 'redux'; import { connect } from 're...
examples/suggest.js
eternalsky/select
/* eslint no-console: 0 */ import React from 'react'; import Select, { Option } from 'rc-select'; import 'rc-select/assets/index.less'; import { fetch } from './common/tbFetchSuggest'; import ReactDOM from 'react-dom'; const Input = (props) => <input {...props} />; class Search extends React.Component { state = { ...
src/svg-icons/image/looks-3.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks3 = (props) => ( <SvgIcon {...props}> <path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v...
src/svg-icons/editor/vertical-align-top.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignTop = (props) => ( <SvgIcon {...props}> <path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/> </SvgIcon> ); EditorVerticalAlignTop = pure(EditorVerticalAlignTop); EditorVerticalAlignTop.dis...
src/js/components/icons/base/Integration.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/components/thunderbird/footer.js
mozilla/donate.mozilla.org
import React from 'react'; import Footer from '../footer.js'; import { FormattedHTMLMessage } from 'react-intl'; var ThunderbirdFooter = React.createClass({ contextTypes: { intl: React.PropTypes.object }, render: function() { // We can customize the thunderbird message here if we want. return ( ...
src/containers/NotFound/NotFound.js
huangc28/palestine-2
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
app/javascript/mastodon/features/account_timeline/components/moved_note.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import AvatarOverlay from '../../../components/avatar_overlay'; import DisplayNam...
client/components/shared/SearchBar.js
AnatolyBelobrovik/itechartlabs
import React from 'react'; import PropTypes from 'prop-types'; const SearchBar = ({ term, data, update, userSearch }) => { const dataSearch = (e) => { const value = e.target.value.toLowerCase(); let filter = []; if (userSearch) { filter = data.filter(data => { return data.name.toLowerCase(...
src/svg-icons/action/zoom-in.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
ui-lib/ModuleExport/Hint.js
nikgraf/future-react-ui
import React from 'react'; export const defaultTheme = { base: undefined, questionMark: undefined, visibleContent: undefined, hiddenContent: undefined, }; const Hint = ({ children, isOpen = false, theme = defaultTheme }) => { // eslint-disable-line no-shadow return ( <div className={theme.base}> <...
src/components/CheckBoxes/Component.js
nickorsk2020/agave-react-UI
/* * This file is part of the "Agave react UI" package * * Copyright (c) 2016 Stepanov Nickolay <nickorsk2020@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ import React from 'react'; import ReactDOM from 'react-dom'...
src/svg-icons/image/filter-7.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter7 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2l4-8V5h-6v2h4l-4 8h2z...
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/export-names.input.js
kadirahq/react-storybook
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { storiesOf } from '@storybook/react'; import FlexCenter from './FlexCenter'; import { specs, urls } from './LiveView.stories'; import { ignoredRegions } from './IgnoredRegions.stories'; export { specs, urls, ignoredRegions }; st...
src/contexts/PlayContext.js
Xvakin/quiz
import React from 'react' const PlayContext = React.createContext( { play: {}, playKey: '', }, ) export default PlayContext
src/client.js
nobleach/react-redux-example
import React from 'react'; import Router from 'react-router'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import routes from './views/routes'; import createRedux from './redux/create'; import { Provider } from 'redux/react'; import ApiClient from './ApiClient'; const history = new BrowserHistory(); co...
generators/component/templates/_main-hooks.js
prescottprue/generator-react-firebase
import React from 'react'<% if (addStyle) { %> import { makeStyles } from '@material-ui/core/styles'<% } %> // import use<%= startCaseName %> from './use<%= startCaseName %>'<% if (addStyle) { %> import styles from './<%= name %>.styles' const useStyles = makeStyles(styles)<% } %> function <%= name %>() { <% if (ad...
client/node_modules/uu5g03/dist-node/bricks/table-col.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ColorSchemaMixin} from './../common/common.js'; import './table-col.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ColorSchemaMixin ], //@@viewOff:mixins //@@viewOn:statics stati...
src/svg-icons/device/signal-cellular-null.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNull = (props) => ( <SvgIcon {...props}> <path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellularNull = pure(DeviceSignalCellularNull); DeviceSignalCellularN...
src/pages/data/CBA/playerdata/PlayerData.js
HeliumLau/Hoop-react
import React from 'react'; import PropTypes from 'prop-types'; import './PlayerData.less'; import DataAside from 'components/DataAside.js'; import EastRank from 'pages/data/NBA/NBADraft/EastRank.js'; import WestRank from 'pages/data/NBA/NBADraft/WestRank.js'; export default class PlayerData extends React.Component {...
templates/src/routes/index.js
chenym1992/create-react-frame
/** * react routes模块 * @description:定义路由跳转组件 */ import React from 'react' import { BrowserRouter as Router, Switch, Route } from 'react-router-dom' /** * App:base component * @description:Entry component, first entered the rendering page */ import App from '../containers/AppContainer' /** * NotFound:404 compo...
ui/src/components/domain/ManageDomains.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * 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 t...
src/views/Comment/CommentAvatar.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { createHTMLImage, getElementType, getUnhandledProps, htmlImageProps, partitionHTMLProps, } from '../../lib' /** * A comment can contain an image or avatar. */ function CommentAvatar(props) { const { className, src...
src/routes/error/index.js
langpavel/react-starter-kit
/** * 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 ErrorPage from './Err...
app/javascript/mastodon/features/ui/components/upload_area.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.boo...
docs/src/app/components/pages/components/Stepper/CustomIcon.js
w01fgang/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import WarningIcon from 'material-ui/svg-icons/alert/warning'; import {red500} from 'material-ui/styles/colors'; /** * Custom icons can be used to create different visual states. */ class CustomIcon extends React.Compon...
js/controls/KendoDatePicker.js
wingspan/wingspan-forms
import React from 'react' import DateWidgetMixin from '../mixins/DateWidgetMixin' const KendoDatePicker = React.createClass({ mixins: [DateWidgetMixin('kendoDatePicker')], statics: { fieldClass: function () { return 'formFieldDatepicker'; } }, getDefaultProps: function () { return { ...
src/svg-icons/image/movie-creation.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMovieCreation = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/> </SvgIcon> ); ImageMovieCreati...
src/svg-icons/image/crop-square.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropSquare = (props) => ( <SvgIcon {...props}> <path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/> </SvgIcon> ); ImageCropSquare = pure(ImageCropSquar...
src/svg-icons/action/gavel.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGavel = (props) => ( <SvgIcon {...props}> <path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z...
components/plugins/js-features-table.js
ccheever/expo-docs
import React from 'react' // TODO: Make this not look terrible // We probably need some CSS stuff to be done here function createMarkup() { return { __html: ` <!-- Generated with gatsby/src/data/javascript-features.js --> <table> <thead> <tr> <th>Feature</th> <th>Works with Expo</th> <th>Links</th> <th>Spec</th...
examples/dest/src/index.js
pure-ui/styleguide
import React from 'react'; import ReactDOM from 'react-dom'; import Button from './components/Button'; import Card from './components/Card'; ReactDOM.render( <div> Hello World <Button /> <Card /> </div>, document.getElementById('root') );
app/components/shared/Chooser/option.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; class Option extends React.Component { static displayName = "Chooser.Option"; static propTypes = { tag: PropTypes.string.isRequired, children: PropTypes.node.isRequired, className: PropTypes.string, ...
client/containers/messages.js
nearform/vidi-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router' import {Panel, PageHeader, HealthPanel, InfoCell} from '../components/index' import ChartistGraph from 'react-chartist' import {subscribe, unsubscribe} from '../actions/vidi' import _ from 'lodash' export cons...
components/svg/Settings.js
jkling38/carbon
import React from 'react' export default () => ( <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 18 18"> <path fill="#fff" fillRule="evenodd" d="M206.532032,366.702224 L208.523318,368.142728 C208.69279,368.3122 208.721035,368.509915 208.608053,368.735877 L206.786238,...
src/containers/DevToolsWindow.js
dfalling/todo
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; export default createDevTools( <LogMonitor /> );
fixtures/nesting/src/modern/HomePage.js
ArunTesco/react
import React from 'react'; import {useContext} from 'react'; import {Link} from 'react-router-dom'; import ThemeContext from './shared/ThemeContext'; import Clock from './shared/Clock'; export default function HomePage({counter, dispatch}) { const theme = useContext(ThemeContext); return ( <> <h2>src/mo...
src/components/videoDetail.js
TheeSweeney/ReactReview
import React from 'react'; const VideoDetail = ({video}) => { if(!video){ return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://youtube.com/embed/${videoId}` return ( <div className='video-detail col-md-8'> <div className='embed-responsive embed-responsive-16...
tests/react_instance/class.js
ylu1317/flow
// @flow import React from 'react'; declare var any: any; class Foo extends React.Component<{}, void> {yep1: boolean} class Bar extends React.Component<{}, void> {yep2: boolean} (any: React$ElementRef<Class<Foo>>).yep1; // OK (any: React$ElementRef<Class<Foo>>).yep2; // Error (any: React$ElementRef<Class<Foo>>).nop...
src/svg-icons/editor/border-outer.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderOuter = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/> </SvgIcon> ); EditorBorderOuter =...
packages/@lyra/components/src/lists/grid/GridItem.js
VegaPublish/vega-studio
import React from 'react' import cx from 'classnames' import styles from './styles/GridItem.css' export default function GridItem(props: {className: string}) { const {className, ...rest} = props return <li {...rest} className={cx(styles.root, className)} /> }
src/parser/mage/frost/modules/features/ThermalVoid.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatDuration, formatNumber } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import SpellIcon from 'common/SpellIcon'; const BASE_DUR = 20; // The standard ...
src/Quickstart/Quickstart.js
halhenke/example-with-react-router
import React from 'react'; import {ComponentRouter} from 'component-router'; import styles from './Quickstart.css'; import Filter from './Filter'; import Content from './Content'; const FilterWrapper = React.createClass({ propTypes: { componentRouter: React.PropTypes.object }, shouldComponentUpdate({comp...
app/javascript/mastodon/features/picture_in_picture/index.js
imas/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import Audio from 'mastodon/features/audio'; import { removePictureInPicture } from 'mastodon/actions/picture_in_picture'; import Header from './components/header'; import F...
app/static/src/performer/TestTypeResultForm_modules/VisualTestForm.js
vsilent/Vision
import React from 'react'; import Form from 'react-bootstrap/lib/Form'; import Panel from 'react-bootstrap/lib/Panel'; import Button from 'react-bootstrap/lib/Button'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootst...
packages/bootstrap-shell/src/providers/Modal/Context.js
TarikHuber/react-most-wanted
import React from 'react' export const Context = React.createContext(null) export default Context
src/svg-icons/av/call-to-action.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvCallToAction = (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-2zm0 16H3v-3h18v3z"/> </SvgIcon> ); AvCallToAction = pure(AvCallToAction);...
lib/components/IndexPage.js
kern/puddin
import DraftActions from '../actions/DraftActions' import DraftStore from '../stores/DraftStore' import OrderSelect from './OrderSelect' import Quote from './Quote' import QuoteEditor from './QuoteEditor' import QuotesActions from '../actions/QuotesActions' import QuotesStore from '../stores/QuotesStore' import React f...
packages/material-ui-icons/src/FilterNone.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" /></g> , 'FilterNone');
bai/src/components/PartnershipBody/index.js
blackinai/blackinai.github.io
import { Button, Container, ListItem } from '@material-ui/core/'; import Grid from '@material-ui/core/Grid'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import React from 'react'; import Typography from '../Typography'; const styles = (theme) => ({ root: { dis...
src/client/views/compass/compass.js
ghemingway/cad.js
/* Copyright G. Hemingway, 2015 - All rights reserved */ 'use strict'; import React from 'react'; require('./compass.scss'); /*************************************************************************/ function setStyleTransform (element, value) { let style = element.style, styleNames = setStyleTransform...
src/main/resources/public/js/components/autosuggests/tax-reg-activity-autosuggest.js
SICTIAM/ozwillo-portal
import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'debounce'; import Autosuggest from 'react-autosuggest'; import Config from '../../config/config'; const sizeQueryBeforeFetch = Config.sizeQueryBeforeFetch; class TaxRegActivityAutosuggest extends React.Component { static propTyp...
frontend/app/components/SearchDialect/SearchDialectMessage.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import { SEARCH_PART_OF_SPEECH_ANY, SEARCH_DATA_TYPE_PHRASE, SEARCH_DATA_TYPE_WORD, SEARCH_TYPE_DEFAULT_SEARCH, SEARCH_TYPE_APPROXIMATE_SEARCH, SEARCH_TYPE_EXACT_SEARCH, SEARCH_TYPE_CONTAINS_SEARCH, SEARCH_TYPE_STARTS_WITH_SEARCH, SEARCH_TY...
src/svg-icons/action/open-in-browser.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
src/docs/Navigation.js
StudentOfJS/ps-react-rod
import React from 'react'; import PropTypes from 'prop-types'; const Navigation = ({components}) => { return ( <ul className="navigation"> { components.map( name => { return ( <li key={name}> <a href={`#${name}`}>{name}</a> </li> ) }...
ajax/libs/react-instantsearch/4.0.0-beta.3/Dom.js
him2him2/cdnjs
/*! ReactInstantSearch 4.0.0-beta.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"), require("react-dom")); else if(typeof def...
src/components/Footer/Footer.js
djfm/ps-translations-interface-mockup
/** * 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 s from '....
modules/core/examples/mars-tencent/__tests__/index.ios.js
Caijiacheng/react-native-mars
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
app/javascript/flavours/glitch/features/ui/components/boost_modal.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from 'flavours/glitch/components/button'; import StatusContent from '...
web/src/routes/Contacts/components/ContactForm.js
darioml/farley-files
import React from 'react' export class ContactAdd extends React.Component { constructor(props) { super(props); if (this.props.contact) { this.state = Object.assign({ id: undefined, first_name: '', last_name: '', birthday: ...
src/client/components/NewPollPage.js
dgrcode/FCC-Voting-App
'use strict'; import React from 'react'; import NewChoiceInput from './NewChoiceInput'; import { communicateNewPoll } from '../actions/pollActions'; export default class NewPollPage extends React.Component { constructor (props) { super(props); this.state = { name: '', choices: [''] }; } ...
react-flux-mui/js/material-ui/src/svg-icons/content/low-priority.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLowPriority = (props) => ( <SvgIcon {...props}> <path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7....
src/icons/Wifi.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Wifi extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256.1,96L256.1,96c-79.9,0-155.7,29.9-213.9,84.1L32,189.6l9.9,9.8l32.3,32l9.3,9.2l9.6-8.8 c44.5-40.9,102.3-63.5,162.8...
src/js/pages/Featured.js
fjferrer/todoReactFlux
import React from 'react'; export default class Featured extends React.Component { render() { return ( <h1>Featured</h1> ); } }
src/entypo/SelectArrows.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--SelectArrows'; let EntypoSelectArrows = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,1L5,8h10L10,1z M10,19l5-7H5L10,19z"/> </EntypoIcon> ); export default EntypoSele...
components/Layout.js
akiran/nextjs-demo
import React from 'react' import Header from './Header' import Head from 'next/head' export default function Layout(props) { return ( <div> <Head> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> </Head> <...
ui/js/components/ShellTerminal/ShellTerminal.js
NitorCreations/willow-ui
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import Terminal from 'term.js'; import ReduxWebSocketService from 'websocket/ReduxWebSocketService'; import createUuid from 'util/uuid'; const TerminalStates = { CONNECTING: 0, OPEN: 1, CLOSED: 3, ...
src/FormGroup.js
insionng/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class FormGroup extends React.Component { render() { let classes = { 'form-group': !this.props.standalone, 'form-group-lg': !this.props.standalone && this.props.bsSize === 'large', 'form-group-sm': !this.props.standalone && this.pr...
src/components/player-bar.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; import { connect } from 'react-redux'; import type { Dispatch } from 'redux'; import { updateModalType } from '../redux/actions'; import type { Action } from '../redux/actions'; import type { Position } from '../types/domain'; import type { PlayerPageState } from '../types/state';...
classic/src/scenes/wbfa/generated/FASCookie.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCookie } from '@fortawesome/pro-solid-svg-icons/faCookie' export default class FASCookie extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faCookie} />) } }
scripts/apps/translations/directives/TranslationReactDropdown.js
mugurrus/superdesk-client-core
/* eslint-disable react/no-multi-comp */ import React from 'react'; import PropTypes from 'prop-types'; /** * @ngdoc directive * @module superdesk.apps.translations * @name TranslationReactDropdown * * @requires React * @requires item * @requires className * @requires TranslationService * @requires noLanguage...
assets/js/src/components/_myApps.js
stechDevSP/stechDev
import React from 'react'; import ReactDOM from 'react-dom'; import { StMultiList } from '../webparts/st-multilist.jsx'; import { StCheckUp } from '../webparts/st-checkup.jsx'; import { StProjectGantter } from '../webparts/st-projectgantter.jsx'; import { StPdfMaker } from '../webparts/st-pdfmaker.jsx'; import { StNew...
src/containers/Login/index.js
dadongfang/react_redux_webpack_es6_qiniu
import React from 'react' import { connect } from 'react-redux' import { Form, Input, Button, Icon } from 'antd' import { login } from 'src/actions/account' import global from 'src/js/global' import './index.less' const FormItem = Form.Item class Login extends React.Component { constructor(props, context) { supe...
internals/templates/homePage/homePage.js
pashakbit/react-gallery
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/containers/Chats/ChatMessages.js
petorious/dmprov-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ReactDOM from 'react-dom'; import firebase from 'firebase'; import PropTypes from 'prop-types'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { injectIntl, intlShape } from 'react-intl'; import { setSimpleValue...
webpack/scenes/RedHatRepositories/index.js
adamruzicka/katello
/* eslint-disable import/no-extraneous-dependencies */ /* eslint import/no-unresolved: [2, { ignore: [foremanReact/*] }] */ /* eslint-disable import/no-unresolved */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Grid, Row, Col } from 'reac...