path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/EyeIcon/EyeIcon.js | kenfly51/ps-react | import React from 'react';
/** Eye Icon */
const EyeIcon = () => {
return (
<div>
+
</div>
);
};
export default EyeIcon; |
examples/todos/containers/AddTodo.js | naoishii/ohk2016C | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<input ref={node => {
input = node
}} />
<button onClick={() => {
dispatch(addTodo(input.value))
input.value... |
src/svg-icons/maps/pin-drop.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPinDrop = (props) => (
<SvgIcon {...props}>
<path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/>
</SvgIcon>
);
... |
client/extensions/woocommerce/app/product-categories/update.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { localize } from 'i18n-calypso';
import { isEmpty, omit, debounce, isNull } from 'lodash';
import page from 'page';
... |
jqwidgets/jqwidgets-react/react_jqxresponsivepanel.js | UCF/IKM-APIM | /*
jQWidgets v5.6.0 (2018-Feb)
Copyright (c) 2011-2017 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxResponsivePanel extends React.Component {
componentDidMount() {
let options = thi... |
packages/react/components/list-group.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7ListGroup extends React.Component {
con... |
src/svg-icons/maps/local-phone.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-... |
app/components/ContentBar.js | aaroncox/vessel | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
export default class ContentBar extends Component {
props: {
children: Children
};
render() {
return (
<div
style={{
marginLeft: '92px'
}}
>
{this.props.children}
... |
web/static/js/components/svg/surveys.js | tobyprivett/cavemapper | import React from 'react'
import Survey from './survey'
export default class Surveys extends React.Component {
renderSurveys(surveys) {
return surveys.map((survey) => {
return(
<Survey key={survey.id} survey={survey}/>
)
})
}
render() {
const surveys = this.props.surveys
ret... |
docs/client.js | RichardLitt/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
javascript/components/shipment-link.js | kdoran/moriana-react | import React from 'react'
export const buildHref = (id, dbName, details = '') => {
return `#d/${dbName}/shipment/${details}${id}`
}
export default class ShipmentLink extends React.Component {
render () {
const { linkType, id, shipmentType, dbName, children, className } = this.props
const classes = classNa... |
src/svg-icons/action/account-box.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBox = (props) => (
<SvgIcon {...props}>
<path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3... |
examples/counter-retax-components/components/Counter.js | retaxJS/retax | import React from 'react';
import { bindActionCreators } from 'redux';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { annotator } from 'retax-components';
import CounterActionsCreator from '../actionsCreators/counter';
@annotator.RetaxComponent({
actionsCreators: {
counterA... |
src/components/atoms/Block/index.stories.js | DimensionLab/narc | import React from 'react'
import { storiesOf } from '@storybook/react'
import Block from '.'
storiesOf('Block', module)
.add('default', () => (
<Block>Officia aliqua reprehenderit fugiat occaecat quis non eiusmod.</Block>
))
.add('reverse', () => (
<Block reverse>Officia aliqua reprehenderit fugiat occae... |
node_modules/react-bootstrap/es/NavbarCollapse.js | firdiansyah/crud-req | 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 ... |
app/jsx/context_cards/LastActivity.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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/src/components/Explorer/index.js | timorieber/wagtail | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';
// import { perfMiddleware } from '../../utils/performance';
import Explorer from './Explorer';... |
node_modules/react-bootstrap/es/PageHeader.js | mohammed52/door-quote-automator | 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/containers/Asians/BreaksCalculator/Controls/ParameterSwitch/index.js | westoncolemanl/tabbr-web | import React from 'react'
import List, {
ListItem,
ListItemText,
ListItemSecondaryAction
} from 'material-ui/List'
import Switch from 'material-ui/Switch'
export default ({
title,
subtitle,
onChange,
selectedValue
}) =>
<List>
<ListItem>
<ListItemText
primary={title}
secondar... |
server/sonar-web/src/main/js/components/shared/radio-toggle.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
examples/forms-bootstrap/src/components/forms-create-overlay/Hook.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
export default createReactClass({
displayName: 'Hook',
render: function() {
return lore.forms.tweet.create({
blueprint: 'overlay'
});
}
});
|
src/app/components/player/shuffle-button.js | feedm3/unhypem-frontend | /**
* @author Fabian Dietenberger
*/
'use strict';
import React from 'react';
import SimpleTooltip from '../common/simple-tooltip';
import ACTION from '../../constants/action';
import PLAYLIST_STATE from '../../constants/playlist-state';
import songDispatcher from '../../dispatcher/song-dispatcher';
import SvgIcon ... |
Realization/frontend/czechidm-acc/src/components/RemoteServerSelect/RemoteServerSelect.js | bcvsolutions/CzechIdMng | import React from 'react';
//
import { Advanced } from 'czechidm-core';
import RemoteServerOptionDecorator from './RemoteServerOptionDecorator';
import RemoteServerValueDecorator from './RemoteServerValueDecorator';
/**
* Component for select remote server.
*
* @author Radek Tomiška
* @since 10.8.0
*/
export default ... |
app/javascript/mastodon/components/autosuggest_textarea.js | 8796n/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import ImmutablePureComponent from 'react-immutable-pure-comp... |
app/components/App.js | wxmaudio/react-voting | import React from 'react';
import {RouteHandler} from 'react-router';
import Footer from'./Footer';
import Navbar from './Navbar'
class App extends React.Component{
render(){
return (
<div>
<Navbar history={this.props.history}/>
{this.props.children}
<Footer/>
</div>
);
}
}
export def... |
src/containers/Index.js | nabigraphics/NCMS | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Header from '../components/Header';
import { Container, Card, CardImg, CardText, CardBlock,
CardTitle, CardSubtitle, CardGroup, CardDeck, CardColumns, CardHeader, Progress, Label, Row, Col, Badge, Button } from 'reactstrap';
class... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/publish.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorPublish = (props) => (
<SvgIcon {...props}>
<path d="M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z"/>
</SvgIcon>
);
EditorPublish.displayName = 'EditorPublish';
EditorPublish.muiName = 'SvgIcon';
export default EditorPublish;
|
test/fixtures/webpack-message-formatting/src/AppNoDefault.js | mangomint/create-react-app | import React, { Component } from 'react';
import myImport from './ExportNoDefault';
class App extends Component {
render() {
return <div className="App">{myImport}</div>;
}
}
export default App;
|
src/containers/account_total.js | khayyamj/thunderbirds_troop51 | // import as <AccountTotal allTransactions={transaction object} />
import React, { Component } from 'react';
class AccountTotal extends Component {
constructor(props) {
super(props);
this.state = { };
this.calculateTotal = this.calculateTotal.bind(this);
}
calculateTotal(allTransactions) {
let... |
src/rsg-components/SectionHeading/SectionHeadingRenderer.js | bluetidepro/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Heading from 'rsg-components/Heading';
import Styled from 'rsg-components/Styled';
function SectionHeadingRenderer({ classes, children, toolbar, id, href, depth, deprecated }) {
const headingLevel = Math.min(6, depth);
... |
website/sections/JsLibrary.js | sahat/boilerplate | import React from 'react';
import cx from 'classnames';
import { VelocityComponent, VelocityTransitionGroup } from 'velocity-react';
const JS_LIBRARY_SVG = (
<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 50 50">
<path d="M 29.125 7.34375 L 17.125 41.34375 L 20.875 42.65625 L 32... |
src/components/wallet/WalletSeedDump.js | whphhg/vcash-ui | import React from 'react'
import { translate } from 'react-i18next'
import { action, computed, extendObservable } from 'mobx'
import { inject, observer } from 'mobx-react'
/** Ant Design */
import Button from 'antd/lib/button'
import Input from 'antd/lib/input'
@translate(['common'])
@inject('rpc', 'wallet')
@observe... |
app/javascript/mastodon/features/ui/components/video_modal.js | honpya/taketodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from '../../video';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class VideoModal extends ImmutablePureComponent {
static propTypes = {
m... |
src/web/client/src/components/audit/wizard-steps/asset-based-access-rules-form.js | devmynd/cloud-access-manager | import React from 'react'
import lodash from 'lodash'
import graphqlApi from '../../../graphql-api'
export default class AssetBasedAccessRulesForm extends React.Component {
state = {
selectedAssets: []
}
assetToggled = (event, asset) => {
const selectedAssets = this.state.selectedAssets
if (event.t... |
stories/demos/timeslots.stories.js | jquense/react-big-calendar | import React from 'react'
import moment from 'moment'
import { Calendar, momentLocalizer } from '../../src'
import Timeslots from './exampleCode/timeslots'
export default {
title: 'Examples',
component: Calendar,
parameters: {
docs: {
page: null,
},
},
}
const localizer = momentLocalizer(moment)... |
test/validator.js | deepsweet/valya | import React from 'react';
import Valya from '../lib/';
class Validator extends React.Component {
render() {
return <div>{this.props.children}</div>;
}
}
export default Valya(Validator);
|
src/modules/Dropdown/utils/getMenuOptions.js | Semantic-Org/Semantic-UI-React | import _ from 'lodash'
import React from 'react'
// There are times when we need to calculate the options based on a value
// that hasn't yet been persisted to state.
export default function getMenuOptions(config) {
const {
additionLabel,
additionPosition,
allowAdditions,
deburr,
multiple,
op... |
client-portal/src/index.js | choiboi/web-scraper-architecture | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
// import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// registerServiceWorker();
|
node_modules/react-bootstrap/es/CarouselItem.js | saltypaul/SnipTodo | 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/js/components/Footer/stories/Simple.js | grommet/grommet | import React from 'react';
import { Box, Footer, Main, Text } from 'grommet';
export const Simple = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Box>
<Main background="light-2" elevation="large" pad="large" gap="large">
<Text margin="small" size="xsmal... |
lib/components/Quote.js | kern/puddin | import QuotesActions from '../actions/QuotesActions'
import React from 'react'
import Voter from './Voter'
export default class Quote extends React.Component {
onVote(vote) {
QuotesActions.vote({ id: this.props.id, vote: vote })
}
render() {
return <div className="quote card">
<Voter count={this.... |
src/components/button.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
app/components/atoms/Block/Block.js | altiore/webpack_config_example | import React from 'react'
import PropTypes from 'prop-types'
import { Divider } from 'components/atoms'
const Block = ({ title, children, styles }) => (
<div className={styles.block}>
{!!title && <h4 className={styles.title}>{title}</h4>}
<div className={styles.content}>{children}</div>
<Divider />
</... |
react-flux-mui/js/material-ui/src/svg-icons/hardware/speaker-group.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeakerGroup = (props) => (
<SvgIcon {...props}>
<path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2... |
docs/components/Badges/index.js | WEACOMRU/react-plain-calendar | import React from 'react'
import styles from './styles.css'
const Badges = () => (
<div className={styles.badges}>
<a
className={styles.badge}
href='https://badge.fury.io/js/react-plain-calendar'
target='_blank'
rel='nofollow noopener'
>
<img
src='https://badge.fury.io/j... |
es/containers/About.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import _extends from "@babel/runtime/helpers/builtin/extends";
import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose";
import React from 'react';
import PropTypes from 'prop-types';
import Overlay from '../components/Overlay';
import About from '... |
test/test_helper.js | esroyo/ahp-react-app | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/Menu/Contact.js | shierby/storehome | import React from 'react';
class Contact extends React.Component {
render() {
return (
<div className="container-fluid catalog_page">
<div className="container">
<h1>Contact Page</h1>
</div>
</div>
)
}
}
export default Contact; |
src/svg-icons/hardware/cast.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCast = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4... |
src/svg-icons/image/looks-two.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksTwo = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-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 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 ... |
src/components/signup-form/footer.js | mozilla/advocacy.mozilla.org | import React from 'react';
import { FormattedHTMLMessage } from 'react-intl';
var Footer = React.createClass({
contextTypes: {
intl: React.PropTypes.object
},
render: function() {
var shareLink = this.props.shareLink || "";
return (
<footer className="net-neutrality-footer">
<div classN... |
src/Parser/Hunter/Marksmanship/Modules/Talents/TrickShot/TrickShotCleave.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 SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import ItemDamageDone from 'Main/ItemDamageDone';
/**
* Aimed Shot ... |
Card.js | jasonlarue/react-native-flashcards | import React from 'react';
import {
StyleSheet,
Button,
Text,
View,
TouchableWithoutFeedback
} from 'react-native';
import FlipCard from 'react-native-flip-card';
export default class Card extends React.Component {
state = {
showTerm: false
}
/*
Flips the showTerm flag in our state
*/
rend... |
docs/pages/system/flexbox.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'system/flexbox';
const requireDemo = require.context('docs/src/pages/system/flexbox', false, /\.(js|tsx)$/);
const requireRaw = r... |
app/packs/src/admin/converter/create/TableColumn.js | ComPlat/chemotion_ELN | /* eslint-disable react/prop-types */
import React from 'react';
import { Button, Row, Col } from 'react-bootstrap';
import ColumnSelect from '../common/ColumnSelect';
import OperatorSelect from '../common/OperatorSelect';
import { ButtonTooltip } from '../../../admin/generic/Utils';
const TableColumn = (props) => {
... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | rekif/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func.isRequired,
ariaControls: PropTypes.s... |
src/containers/visibaleAddForm.js | jonishaso/nice-tdl | import React, { Component } from 'react';
// import PropTypes from 'prop-types';
import { addTodo_action } from '../actions';
import { connect } from 'react-redux';
class AddForm extends Component {
constructor(props) {
super(props);
this.state = {
value: ''
};
this.handleChange = this.handleCh... |
node_modules/react-router/es/RouterContext.js | rafser01/installer_electron | 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; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
src/chartwrapper/blobs/yaxis-blobs.js | dhounam/component-silver-bullet | import React from 'react';
import Dthree from 'd3';
export default class SilverYaxisBlobs extends React.Component {
// PROP TYPES
static get propTypes() {
return {
// Incoming config
config: React.PropTypes.object,
// Callback after tests
onReturnRevisedInnerBox: React.PropTypes.func,
... |
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbIconDividerExample.js | jamiehill/stardust | import React from 'react'
import { Breadcrumb } from 'stardust'
const BreadcrumbIconDividerExample = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadcrumb.Divider icon=... |
geonode/monitoring/frontend/src/components/organisms/stats/index.js | mcldev/geonode | import React from 'react';
import HealthCheck from '../../cels/health-check';
import Uptime from '../../cels/uptime';
import Alerts from '../../cels/alerts';
import Errors from '../../cels/errors';
import styles from './styles';
class Stats extends React.Component {
render() {
return (
<div style={styles.... |
src/Button/Button.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
children: PropTypes.node,
className: PropTypes.string,
compact: PropTypes.bool,
dense: PropTypes.bool,
raised: PropTypes.bool,
};
const Button = ({
children,
className,
compact,
de... |
app/components/TabsNav/TabsNav.js | Tetraib/player.rauks.org | import React from 'react'
import { Tabs, Tab } from 'material-ui/Tabs'
import Brushicon from 'material-ui/svg-icons/image/brush'
import AssignmentIcon from 'material-ui/svg-icons/action/assignment'
import AccountBoxIcon from 'material-ui/svg-icons/action/account-box'
import SubjectIcon from 'material-ui/svg-icons/act... |
app/react-icons/fa/tripadvisor.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaTripadvisor extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m11.4 21.8q0 0.7-0.5 1.1t-1.1 0.5q-0.7 0-1.2-0.5t-0.5-1.1q0-0.7 0.5-1.2t... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | murthag94/126 | 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/svg-icons/social/sentiment-neutral.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentNeutral = (props) => (
<SvgIcon {...props}>
<path d="M9 14h6v1.5H9z"/><circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C1... |
client/components/common/showToast.js | wuyang910217/meteor-react-redux-base | import React, { Component } from 'react';
import { Toast, WingBlank } from 'antd-mobile/dist/antd-mobile';
export default class ShowToast extends Component {
constructor(props) {
super(props);
}
render() {
return (
<WingBlank>
{this.renderToast(this.props)}
</WingBlank>
);
}
... |
react/features/welcome/components/WelcomePage.web.js | jitsi/jitsi-meet | /* global interfaceConfig */
import React from 'react';
import { isMobileBrowser } from '../../base/environment/utils';
import { translate, translateToHTML } from '../../base/i18n';
import { Icon, IconWarning } from '../../base/icons';
import { Watermarks } from '../../base/react';
import { connect } from '../../base... |
src/svg-icons/image/burst-mode.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBurstMode = (props) => (
<SvgIcon {...props}>
<path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/... |
docs/pages/api-docs/card-content.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/card-content';
const requireRaw = require.context('!raw-loader!./', false, /\/card-content\.md$/);
export default function P... |
src/components/withViewport.js | maadcodr/carshow | /**
* 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'; // eslint-disabl... |
docs/src/Root.js | jareth/react-materialize | import React from 'react';
import MainNav from './MainNav';
import PageFooter from './PageFooter';
const Root = React.createClass({
statics: {
getPages() {
return [
'index.html',
'getting-started.html',
'badges.html',
'buttons.html',
'breadcrumbs.html',
'card... |
client/src/components/test_modal.js | TeamDreamStream/GigRTC | import React from 'react';
import Dialog from 'material-ui/lib/dialog';
import FlatButton from 'material-ui/lib/flat-button';
import RaisedButton from 'material-ui/lib/raised-button';
import DatePicker from 'material-ui/lib/date-picker/date-picker';
export default class DialogExampleDialogDatePicker extends React.Comp... |
src/svg-icons/av/volume-mute.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeMute = (props) => (
<SvgIcon {...props}>
<path d="M7 9v6h4l5 5V4l-5 5H7z"/>
</SvgIcon>
);
AvVolumeMute = pure(AvVolumeMute);
AvVolumeMute.displayName = 'AvVolumeMute';
AvVolumeMute.muiName = 'SvgIcon'... |
dev/test-studio/schema/debug/components/CustomStringInput.js | sanity-io/sanity | import React from 'react'
import PropTypes from 'prop-types'
import {PatchEvent, set} from 'part:@sanity/form-builder/patch-event'
export default class CustomStringInput extends React.Component {
static propTypes = {
value: PropTypes.string,
type: PropTypes.object,
onChange: PropTypes.func,
}
handle... |
examples/huge-apps/routes/Calendar/components/Calendar.js | rkaneriya/react-router | import React from 'react'
class Calendar extends React.Component {
render() {
const events = [
{ id: 0, title: 'essay due' }
]
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
src/components/Torrent/StatusDetails/Error.js | fcsonline/react-transmission | import React from 'react';
import { FormattedMessage } from 'react-intl';
import Torrent from 'stores/torrent';
const {
ERR_TRACKER_WARNING,
ERR_TRACKER_ERROR,
ERR_LOCAL_ERROR,
} = Torrent;
function TrackerWarning({ torrent }) {
const { errorDescription } = torrent;
return (
<FormattedMessage
id... |
pages/index.js | akiran/nextjs-demo | import React from 'react'
import Link from 'next/link'
import Layout from '../components/Layout'
const POST_IDS = [1, 2, 3, 4]
const PostLink = ({postId}) => (
<div>
<Link as={`/post/${postId}`} href={`/post?id=${postId}`}>
<button className='btn btn-default'>{`Post ${postId}`}</button>
</Link>
</di... |
src/views/Notes/Note.js | aplee29/online-notebook-app-client | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, DropdownButton, MenuItem } from 'react-bootstrap';
import { connect } from 'react-redux';
import { editNote } from '../../redux/modules/Notes/actions';
import { deleteNote } from '../../redux/modules/Notes/actions';
class N... |
components/shared/utils/icons.js | ecmadao/light-ui | import React from 'react'
const DOWN = (
<svg width="12px" height="9px" viewBox="174 217 12 9" version="1.1">
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd" transform="translate(174.000000, 217.500000)">
<polygon fill="" points="10.6 0.6 6 5.2 1.4 0.6 0 2 6 8 12 2"></polygon>
</g>
</... |
javascript/components/load-or-show.js | kdoran/moriana-react | import React from 'react'
const LoadOrShow = ({ rows, loading, error, children, whenZero }) => {
if (rows.length) {
return children
} else if (loading) {
return (<div className='loader' />)
} else if (error) {
return (<div className='error' />)
} else {
return whenZero
}
}
export default Loa... |
frontend/js/components/ecosystems/LocationForm.js | wbprice/okcandidate-platform | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Hr from './../atoms/Hr';
import Alert from './../organisms/Alert';
import TextField from './../organisms/TextField';
import {
getLocationByGPS,
getLocationByAddress,
fetchNonRegionLimitedSurveys
} from './.... |
src/js/components/icons/base/Filter.js | odedre/grommet-final | /**
* @description Filter SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pro... |
stories/Live.js | philpl/react-live | import React from 'react';
import styled from 'styled-components';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean } from '@storybook/addon-knobs/react';
import { theme } from '../src/constants/theme';
import {
LiveProvider,
LiveEditor,
LiveError,
LivePreview,
withLive
} from '../sr... |
app/js/components/Footer.js | bn22/final-ecocar | 'use strict';
import React from 'react';
import { Link } from 'react-router';
class Footer extends React.Component{
constructor(props) {
super(props);
}
render() {
return (
<footer>
<div className="left-content">
<p><b>UW EcoCar </b><br></br>
Mechancial Engineering ... |
src/svg-icons/editor/attach-file.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachFile = (props) => (
<SvgIcon {...props}>
<path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2... |
client/src/components/ModuleDetails/ModuleHealthIndicator.js | FriendsOfSilverStripe/silverstripe-maintenance | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
class ModuleHealthIndicator extends Component {
/**
* Based on health rating score, determine health indicator colour and styling
*
* @returns {String}
*/
getSymbolClasses() {
const { ... |
docs/src/app/components/pages/components/Drawer/ExampleUndocked.js | IsenrichO/mui-with-arrows | import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerUndockedExample extends React.Component {
constructor(props) {
super(props);
this.state = {open: false};
}
han... |
classic/src/scenes/mailboxes/src/Scenes/SpinnerScene/SpinnerSceneContent.js | wavebox/waveboxapp | import React from 'react'
import { DialogContent } from '@material-ui/core'
import Spinner from 'wbui/Activity/Spinner'
import { withStyles } from '@material-ui/core/styles'
import lightBlue from '@material-ui/core/colors/lightBlue'
const styles = {
dialogContent: {
width: 180,
textAlign: 'center'
},
tex... |
src/Parser/Warlock/Shared/Modules/Items/SindoreiSpite.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import calculateEffectiveDamage from 'Parser/Core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemDamageDone from 'Main/ItemDama... |
src/components/Profile/MentorDashboard.js | peachy19/senpie | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Header from '../Header.js'
const mapStateToProps = ({userLogIn}) => {
const currentUser = userLogIn.id
return {
currentUser
}
}
@connect(mapStateToProps)
class MentorDashboard extends Component {
constructor(props) {
... |
docs/app/Examples/elements/List/Content/ListExampleLinkComplex.js | mohammed88/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleLinkComplex = () => (
<List>
<List.Item>
<List.Header as='a'>Header</List.Header>
<List.Description>
Click a link in our <a>description</a>.
</List.Description>
</List.Item>
<List.Item>
<Li... |
app/compilers/react-compiler/index.js | mukeshsoni/frolic | import React from 'react'
import _ from 'lodash'
import Promise from 'bluebird'
import path from 'path'
var Rx = require('rxjs/Rx');
var flowRemoveTypes = require('flow-remove-types');
var beautify = require('js-beautify').js_beautify
// acorn jsx parse
var acorn = require('acorn-jsx')
// var escodegen = require('esco... |
components/admin/partners/table/actions/EditAction.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
// Utils
import { substitution } from 'utils/utils';
class EditAction extends React.Component {
getParsedParams() {
const { data, action } = this.props;
return JSON.parse(substitution(JSON.stringify(action.params),... |
frontend/src/components/localStorage/LocalStorageProgressForItem.js | OwenRay/Remote-MediaServer | /* global window */
import 'react-circular-progressbar/dist/styles.css';
import { ProgressBar } from 'react-materialize';
import React, { Component } from 'react';
import { throttle } from 'throttle-debounce';
import LocalStorage from '../../helpers/LocalStorage';
class LocalStorageProgressForItem extends Component {
... |
server/sonar-web/src/main/js/apps/account/notifications/ProjectNotifications.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
packages/reactor-kitchensink/src/examples/Wizard/Wizard.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Toolbar, Container, Panel, Button, Indicator, SegmentedButton, ToolTip } from '@extjs/ext-react';
export default class WizardExample extends Component {
state = {
step: 0,
tapMode: 'direction'
}
render() {
const { step, tapMode } ... |
packages/material-ui-icons/src/NoSim.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let NoSim = props =>
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.27L3.65 3.8... |
app/javascript/mastodon/features/list_adder/index.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListAdder, resetListAdder } from '... |
client/components/dashboard/article.js | CommonActionForum/liqen-face | import React from 'react'
function getColorFromId (id) {
const hue = (id * 97) % 360
return `hsl(${hue}, 32%, 68%)`
}
const Article = ({ link, title, id }) => (
<div className='card'>
<div className='card-img-top'
style={{height: '5em', background: getColorFromId(id)}}
alt='Card image cap' />
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.