path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/cards/card_wild.js
camboio/yooneau
import React from 'react'; export default class CardWild extends React.Component{ render(){ const colour = this.props.card.colour ? this.props.card.colour : 'gray'; return( <svg className="card-wild-component" onClick={this.props.onClick} xmlns="http://www.w3.org/2000/svg" viewBox="...
src/Containers/ChartContainer/Chart.js
sirjuan/harmonical-oscillation
import React from 'react'; import { Scatter } from 'react-chartjs-2'; const scatterChart = ({color = 'blue', values = [], keys = {}, title = ''}) => { const data = { datasets: [{ label: `${keys.x} / ${keys.y}`, fill: false, pointBackgroundColor: 'rgba(0, 0, 0, 0)', pointBorderCol...
es/transitions/Slide.js
uplevel-technology/material-ui-next
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
app/imports/ui/pages/auth/Signup.js
mondrus/meteor-starter
/** * @Author: philip * @Date: 2017-05-27T16:51:26+00:00 * @Filename: Signup.js * @Last modified by: philip * @Last modified time: 2017-05-27T17:41:50+00:00 */ import React from 'react'; import { Link } from 'react-router-dom'; import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bo...
src/routes/logout/Logout.js
AaronHartigan/DudeTruck
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Logout.css'; class Logout extends React.Component { componentDidMount() { setTimeout(() => { window.location.reload(); }, 1250); } render() { return <div className={s.text}>Logging out....
src/modules/connect/connectDetail/components/ConnectDetailTagBox.js
Florenz23/sangoo_04
import React, { Component } from 'react'; import { Container,List, Header, Title, Content, Button, Icon, IconNB, Card, CardItem, Text, Left, Right, Body, ListItem } from 'native-base'; import { View } from 'react-native' import styles from '../../styles/socialBox'; import contacts from '../../../../mock/contacts' i...
src/parser/mage/shared/modules/features/RuneOfPower.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SPECS from 'game/SPECS'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import AbilityTracker from '...
src/parser/shared/modules/spells/bfa/azeritetraits/BloodRite.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import StatTrack...
__tests__/setup.js
brentvatne/react-conf-app
// @flow import React from 'react'; import { View } from 'react-native'; // ------------------------ // Javascript Built-Ins // ------------------------ // Ensure Date.now and new Date() give us the same date for snapshots. import timekeeper from 'timekeeper'; timekeeper.freeze(new Date(2017, 3, 1, 8, 0, 0)); // ----...
tests/lib/rules/indent.js
gfxmonk/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requirements //-------------------------------------...
ui/app/components/layout/index.js
leapcode/bitmask-dev
import React from 'react' import './layout.less' class HorizontalLayout extends React.Component { static get defaultProps() {return{ equalWidths: false, className: '' }} constructor(props) { super(props) } render() { let className = "horizontal-layout " + this.props.className if (this....
src/svg-icons/image/camera-rear.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraRear = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm-5 6c-1.11 0-2-.9-2-2s.89-2 1.99-...
src/DataTable/Selectable.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import isEqual from 'lodash.isequal'; import TableHeader from './TableHeader'; import Checkbox from '../Checkbox'; const propTypes = { columns: (props, propName, componentName) => ( props[propName] && new Er...
dashboard/src/index.js
lsumedia/lcr-web
import React from 'react'; import ReactDOM from 'react-dom'; import { createBrowserHistory } from 'history'; import { HashRouter, Route, Switch } from 'react-router-dom'; import App from './containers/App/App.jsx'; import './assets/css/bootstrap.min.css'; import './assets/css/animate.min.css'; import './...
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleAutoHeightMinHeight.js
aabustamante/Semantic-UI-React
import React from 'react' import { Form, TextArea } from 'semantic-ui-react' const TextAreaExampleAutoHeightMinHeight = () => ( <Form> <TextArea autoHeight placeholder='Try adding multiple lines' style={{ minHeight: 100 }} /> </Form> ) export default TextAreaExampleAutoHeightMinHeight
loc8-react-redux-front-end/src/components/Home/MainView.js
uberslackin/django-redux-loc8-ARweb
import ArticleList from '../ArticleList'; import React from 'react'; import agent from '../../agent'; import { connect } from 'react-redux'; const YourFeedTab = props => { if (props.token) { const clickHandler = ev => { ev.preventDefault(); props.onTabClick('feed', agent.Articles.feed()); } ...
app/routes.js
jbarabander/game-site
import { Route, IndexRoute } from 'react-router'; import App from 'containers/App'; import Home from 'containers/HomePage'; import React from 'react'; const routes = ( <Route path="/" component={App}> <IndexRoute component={Home} /> </Route> ); export default routes;
docs/src/app/components/pages/components/List/ExampleSettings.js
ArcanisCz/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import Divider from 'material-ui/Divider'; import Checkbox from 'material-ui/Checkbox'; import Toggle from 'material-ui/Toggle'; const style...
src/browser/ui/EmptyArticle.react.js
syroegkin/mikora.eu
import Component from 'react-pure-render/component'; import React from 'react'; import { FormattedMessage, defineMessages } from 'react-intl'; import EditorFormatAlignLeft from 'material-ui/svg-icons/editor/format-align-left'; import { grey200 } from 'material-ui/styles/colors'; const _messages = defineMessages({ e...
src/svg-icons/device/bluetooth-searching.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothSearching = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
ketoo/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import AvatarItem from 'components/common/AvatarItem.react'; var ContactItem = React.createClass({ displayName: 'ContactItem', propTypes: { contact: React.PropTypes.object, onSelect: React.PropTypes.func }, mixins: [PureRende...
admin/client/App/shared/Popout/index.js
Adam14Four/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const SIZES = { arrowHeight: 12, arrowWidth: ...
admin/client/App/index.js
joerter/keystone
/** * The App component is the component that is rendered around all views, and * contains common things like navigation, footer, etc. */ import React from 'react'; import Lists from '../utils/ListsByKey'; import MobileNavigation from './components/Navigation/Mobile'; import PrimaryNavigation from './components/Na...
src/docs/Components.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Paragraph from 'grommet/components/Paragraph'; import DocsArticle from '../components/DocsArticle'; export default class Components extends Component { render () { return ( <DocsArticle t...
test/common/components/App-test.js
LandyCandy/beHeard
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); });
client/src/components/dashboard/profile/edit-info.js
mikelearning91/seeme-starter
import React, { Component } from 'react'; import Female from '../../../icons/female'; import Male from '../../../icons/male'; import FaBicycle from 'react-icons/lib/fa/bicycle'; import FaBed from 'react-icons/lib/fa/bed'; import FaNewspaperO from 'react-icons/lib/fa/newspaper-o'; import FaMotorcycle from 'react-icons/l...
src/icons/LabelIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class LabelIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M35.27 11.69C34.54 10.67 33.35 10 32 10l-22 .02c-2.21 0-4 1.77-4 3.98v20c0 2.21 1.79 3.98 4 3.98L32 38c1.35 ...
docs/app/Examples/collections/Grid/Types/GridExampleCelledInternally.js
clemensw/stardust
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleCelledInternally = () => ( <Grid celled='internally'> <Grid.Row> <Grid.Column width={3}> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> <Grid.Column width={10}> ...
client/extensions/woocommerce/app/order/order-customer/dialog.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import emailValidator from 'email-validator'; import { find, get, isEmpty, noop } from 'lodash'; import { local...
examples/embeds/video.js
ashutoshrishi/slate
import React from 'react' /** * An video embed component. * * @type {Component} */ class Video extends React.Component { /** * When the input text changes, update the `video` data on the node. * * @param {Event} e */ onChange = e => { const video = e.target.value const { node, editor } = ...
fields/types/color/ColorField.js
snowkeeper/keystone
import { SketchPicker } from 'react-color'; import { css, StyleSheet } from 'aphrodite/no-important'; import Field from '../Field'; import React from 'react'; import { Button, FormInput, InputGroup } from 'elemental'; import transparentSwatch from './transparent-swatch'; import theme from '../../../admin/client/theme';...
src/interface/icons/Haste.js
ronaldpereira/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" className="icon" {...props}> <path d="M33.446,23.135c-0.89,0-1.612,0.722-1.612,1.612v8.049l-4.079,4.078c-0.63,0.629-0.63,1.65,0,2.28 c0.315,0.314,0.728,0.472,1.14,0.472c0.413,0,0.825-0.1...
src/components/Main.js
surce2010/react-webpack-gallery
require('normalize.css/normalize.css'); require('styles/App.css'); require('styles/main.less'); import React from 'react'; import _ from 'lodash'; import classNames from 'classnames'; let CONSTANT = { centerPos: { //中间取值范围 left: 0, top: 0 }, hPosRange: { //水平方向取值范围 leftSecX: [0, 0], rightSecX: [...
src/modules/pages/Header.js
lenxeon/react
require('../../css/header.less') import React from 'react'; import SearchBox from './SearchBox'; import {Link} from 'react-router'; var {createActiveRouteComponent} = require('./NavLink'); var NavLink = createActiveRouteComponent('li'); class Header extends React.Component { constructor(props, context){ ...
src/modules/editor/components/popovers/tooltip/TooltipLIMC/TooltipLIMC.js
CtrHellenicStudies/Commentary
import React from 'react' import autoBind from 'react-autobind'; import { connect } from 'react-redux'; // redux import editorActions from '../../../../actions'; // component import TooltipItemButton from '../TooltipItemButton'; class TooltipLIMC extends React.Component { constructor(props) { super(props); au...
app/components/Store/Routes/CategoriesRoute/index.js
VineRelay/VineRelayStore
import React from 'react'; import PropTypes from 'prop-types'; import { QueryRenderer, graphql } from 'react-relay'; import relayEnvironment from 'app/config/relay'; import PageError from 'app/components/Common/PageError'; import PageLoader from 'app/components/Common/PageLoader'; import StoreLayout from 'app/component...
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 ...
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('...
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...
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...