path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/client/components/pages/Hashtag/index.js | draft-js-plugins/draft-js-plugins-v1 | import React, { Component } from 'react';
import Container from '../../shared/Container';
import AlternateContainer from '../../shared/AlternateContainer';
import Heading from '../../shared/Heading';
import styles from './styles.css';
import Code from '../../shared/Code';
import InlineCode from '../../shared/InlineCode... |
examples/counter/index.js | JoeStanton/redux | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
)
|
demo/main.js | michaellyons/react-amazon-gallery | import React from 'react';
import ReactDOM from 'react-dom';
import Gallery from '../src';
import moment from 'moment';
import marked from 'marked';
import ParallaxWrap from './Parallax';
import LazyImage from './LazyImage';
import './main.css';
import '../styles/main.css';
import './mui-github-markdown.css';
import '... |
app/javascript/mastodon/components/display_name.js | cobodo/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { autoPlayGif } from 'mastodon/initial_state';
export default class DisplayName extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
oth... |
src/components/D3StocksLineChart.js | guzmonne/gux-d3-react | import React from 'react'
import T from 'prop-types'
import Chart from './Chart.js'
import D3Line from './D3Line.js'
import D3Background from './D3Background.js'
import D3XAxis from './D3XAxis.js'
import D3YAxis from './D3YAxis.js'
const d3 = Object.assign({},
require('d3-array')
)
const D3StocksLineChart = ({data... |
demo/sections/Textfields.js | joshq00/react-mdl | import React from 'react';
import Example from './Example';
import TextField from '../../src/TextField';
export default ( props ) => (
<section { ...props }>
<h3>Text Fields</h3>
<Example>
<TextField
label="Text..."
/>
<TextField
... |
examples/react-router/src/components/WelcomeComponent.js | stylesuxx/generator-react-webpack-redux | 'use strict';
import React from 'react';
require('styles//Welcome.css');
class WelcomeComponent extends React.Component {
render() {
let welcome = 'Sorry, not logge in.';
if(this.props.login) {
welcome = 'You are logged in';
}
return (
<div className="welcome-component">
{welcom... |
packages/lore-hook-forms-material-ui/src/blueprints/create/Wizard/formMap.js | lore/lore-forms | import React from 'react';
import Step from './forms/Step';
import Confirmation from './forms/Confirmation';
export default {
step: {
render: (props, config) => {
return (
<Step
{...props}
{...config}
/>
);
}
},
confirmation: {
render: (props, config) =... |
src/entypo/XingWithCircle.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--XingWithCircle';
let EntypoXingWithCircle = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10,0.4c-5.302,0-9.6,4.298-9.6,9.6s4.298,9.6,9.6,9.6s9.6-4.298,9.6-9.6S15.302,0.4,10,... |
src/rich-media/picture.js | joxoo/react-material | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { getClasses, MaterialPropTypes } from '../addons';
const findMediaIndex = (sources, width) => {
const index = sources.reverse().findIndex((source) => {
const matches = source.media.match(/^\(([a-z-]+):... |
docs/lib/examples/PlayerControl.js | video-react/video-react | import React, { Component } from 'react';
import { PrismCode } from 'react-prism';
import { Player, ControlBar } from 'video-react';
import { Button } from 'reactstrap';
const sources = {
sintelTrailer: 'http://media.w3.org/2010/05/sintel/trailer.mp4',
bunnyTrailer: 'http://media.w3.org/2010/05/bunny/trailer.mp4',... |
blueocean-material-icons/src/js/components/svg-icons/editor/format-quote.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorFormatQuote = (props) => (
<SvgIcon {...props}>
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>
</SvgIcon>
);
EditorFormatQuote.displayName = 'EditorFormatQuote';
EditorFormatQuote.muiName = 'SvgIcon';
export default EditorFormat... |
src/svg-icons/image/blur-linear.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurLinear = (props) => (
<SvgIcon {...props}>
<path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-... |
docs/src/examples/views/Advertisement/Types/AdvertisementExampleSquareButton.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Advertisement } from 'semantic-ui-react'
const AdvertisementExampleSquareButton = () => (
<Advertisement unit='square button' test='Square Button' />
)
export default AdvertisementExampleSquareButton
|
content/gocms/src/base/components/gForm/GHidden.js | gocms-io/gocms | import React from 'react';
import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'
import {HOC} from 'formsy-react';
class GHidden extends React.Component {
constructor(props) {
super(props);
}
render() {
return(
<input type="hidden"
... |
packages/bonde-styleguide/src/content/IconColorful/svg/Bonde.js | ourcities/rebu-client | import React from 'react'
const Bonde = ({ size, inverted }) => (
<svg
id='Layer_1'
xmlns='http://www.w3.org/2000/svg'
width={size || '200'}
viewBox='0 0 200 100'
>
<path fill={inverted ? '#FFF' : '#000'} d='M44.948,52.505c0-11.641,9.21-20.568,20.568-20.568c11.357,0,20.567,8.927,20.567,20.568 ... |
modules/core/client/components/NotFoundPage.component.js | Trustroots/trustroots | import { useTranslation } from 'react-i18next';
import React from 'react';
export default function NotFoundPage() {
const { t } = useTranslation('core');
return (
<section className="container container-fullscreen container-error board board-error">
<div className="middle-wrapper middle-wrapper-horizont... |
frontend/src/screens/configuration/widgets/display/display.js | linea-it/qlf | import React from 'react';
import QLFApi from '../../../../containers/offline/connection/qlf-api';
import CircularProgress from '@material-ui/core/CircularProgress';
import PropTypes from 'prop-types';
const styles = {
config: {
margin: '1em',
},
};
export default class Display extends React.Component {
sta... |
src/parser/monk/mistweaver/modules/spells/SoothingMist.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import CoreChanneling from 'parser/shared/modules/Channeling';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SUGGESTION_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE';
import StatTracker from 'parser/shared/modules/StatTracker';
import { formatPercentag... |
react-flux-mui/js/material-ui/src/svg-icons/av/video-label.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoLabel = (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 13H3V5h18v11z"/>
</SvgIcon>
);
AvVideoLabel = pure(AvVideoLabel);
AvVid... |
src/components/tooltip.js | LINKIWI/react-elemental | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { colors } from 'styles/color';
import { transitionStyle } from 'styles/transition';
import omit from 'util/omit';
export const GRACE_TIMEOUT_INTERVAL = 150;
/**
* Wrap an arbitrary element with a tooltip next to the element on hove... |
app/jsx/shared/components/TruncateWithTooltip.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/svg-icons/device/battery-60.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z"/><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
app/components/H3/index.js | iPhaeton/Selectors-study | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
src/rsg-components/Sections/Sections.js | bluetidepro/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import Section from 'rsg-components/Section';
import SectionsRenderer from 'rsg-components/Sections/SectionsRenderer';
export default function Sections({ sections, depth }) {
return (
<SectionsRenderer>
{sections
.filter(section => !section.href)... |
src/client/components/Button.js | ampext/graphql-notes | import React from 'react';
import PropTypes from 'prop-types';
export default class Button extends React.PureComponent {
render() {
const { faName, onClick } = this.props;
return (
<div className='note__button' onClick={onClick}>
<i className={`fa ${faName} fa-lg`} />
</div>
);
}
}... |
src/svg-icons/navigation/fullscreen.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFullscreen = (props) => (
<SvgIcon {...props}>
<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/>
</SvgIcon>
);
NavigationFullscreen = pure(NavigationFullscre... |
src/js/views/Modals/ImageZoom.js | jaedb/Iris | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Modal from './Modal';
import * as uiActions from '../../services/ui/actions';
class ImageZoom extends React.Component {
componentDidMount() {
this.props.uiActions.setWindowTitle('Zoomed im... |
src/svg-icons/image/grid-on.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOn = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6... |
node_modules/react-bootstrap/es/Checkbox.js | skinsshark/skinsshark.github.io | 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/common/components/reduxed/Buy.js | ThinkingInReact/ThinkingInReact.xyz | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import {reduxForm} from 'redux-form';
import { connect } from 'react-redux';
import Packages from 'content//Packages';
import { buy, closeBuyForm, markBuyFormAsFinished, markBuyFormAsFailed } from 'actions//buyForm';
import validate f... |
src/icons/Toggle.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Toggle extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M352,160c52.934,0,96,43.065,96,96s-43.066,96-96,96H160c-52.935,0-96-43.065-96-96s43.065-96,96-96H352 M352,128H160
c... |
client/pages/Portfolio.js | drewhan90/andrewyhan | import React from 'react';
class Portfolio extends React.Component {
render(){
return (
<div id="about">
<article className="prj-container col-6">
<header className="prj-tag">
<h1>project title</h1>
</header>
<img src="src/images/web_design.jpg" a... |
app/components/examples/H1/index.js | GuiaLa/guiala-web-app | import React from 'react';
import styles from './styles.css';
function H1(props) {
return (
<h1 className={ styles.heading1 } { ...props } />
);
}
export default H1;
|
client/app/scripts/components/network-selector-item.js | kinvolk/scope | import React from 'react';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { selectNetwork, pinNetwork, unpinNetwork } from '../actions/app-actions';
import { getNetworkColor } from '../utils/color-utils';
class NetworkSelectorItem extends React.Component {
constructor(props, cont... |
src/index.js | vieiralucas/reakedex | import './styles/main.less';
import React from 'react';
import { render } from 'react-dom';
import Root from './containers/Root';
const rootEl = document.getElementById('root');
render(<Root />, rootEl);
|
react-focus-within/components/InputWithoutFocus.js | okonet/slides | import React from 'react';
import styled from 'styled-components'
const InputWithoutFocus = styled('input')`
padding: 1rem;
font-size: 150%;
border-radius: 1rem;
border: 3px solid #CCC;
&:focus {
outline: none;
}
`
export default InputWithoutFocus; |
react/front/src/views/About.js | kopringo/GenealogyViewer | import React from 'react';
import Navigation from '../components/navigation';
//import RaisedButton from 'material-ui/RaisedButton';
//import { RadioButton } from 'material-ui/RadioButton';
const About = () => {
return (
<div className="About">
<Navigation/>
To jest about...
/... |
information/blendle-frontend-react-source/app/components/PostsTooltipDropdown.js | BramscoChill/BlendleParser | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { translate } from 'instances/i18n';
import classNames from 'classnames';
import PortalTooltip from 'components/PortalTooltip';
import dropdownMixin from 'components... |
votrfront/js/LogViewer.js | fmfi-svt/votr |
import React from 'react';
import _ from 'lodash';
import { LocalSettings } from './LocalSettings';
import { logs } from './ajax';
export class LogViewerContent extends React.Component {
state = {
benchmark: true,
http: true,
table: true
}
scrollRef = React.createRef()
handleChange = (e) => {
... |
modules/header/index.js | hakonhk/vaerhona | import React from 'react';
import Link from 'next/link';
import { IconApp } from 'ui';
import { Wrapper, MainLink, Title } from './ui';
const Header = ({ title, children }) => (
<Wrapper>
<Link href="/" passHref>
<MainLink>
<IconApp size={30} />
<Title>{title}</Title>
</MainLink>
... |
src/components/pages/projects/ProjectForm.js | juandjara/open-crono | import React from 'react'
import { Field, reduxForm } from 'redux-form'
import Button from 'react-toolbox/lib/button/Button'
import Icon from 'react-toolbox/lib/font_icon/FontIcon'
import FormFields from 'components/shared/FormFields'
import { connect } from 'react-redux'
import validators from 'services/formValidato... |
src/svg-icons/editor/pie-chart.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChart = (props) => (
<SvgIcon {...props}>
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
</SvgIco... |
tests/flow/react_modules/es6class-proptypes-module.js | arijs/prettier-miscellaneous | /* @flow */
import React from 'react';
class Hello extends React.Component<void, {name: string}, void> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): React.Element<*> {
return <div>{this.props.name}</div>;
}
}
module.exports = Hello;
|
packages/material-ui-icons/src/Kitchen.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Kitchen = props =>
<SvgIcon {...props}>
<path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z" />
<... |
src/index.js | TonyHYK/tonyhyk.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App />,
document.getElementById('root'),
);
|
app/components/buttons/AllDistricts/index.js | ryanau/doc_now_client | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Button, Glyphicon } from 'react-bootstrap';
import messages from './messages';
class AllDistricts extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
handleButtonCl... |
src/components/layouts/list.js | philholden/omysoul | import React from 'react'
import { Row, Col } from './flex'
import { Body } from './card'
import Radium from 'radium'
import * as COLOR from '../../app/color-consts'
import * as NUMBER from '../../app/number-consts'
export const List = Radium(({
children,
style,
...rest
}) => {
const _styles = [
{
... |
app/components/AddRoomModal/index.js | projectcashmere/admin | import React from 'react';
import Modal from 'react-modal';
import { FormattedMessage } from 'react-intl';
import modalStyle from './modalStyle';
import Header from './Header';
import InputWrapper from './InputWrapper';
import Input from './Input';
import Button from './Button';
import messages from './messages';
clas... |
src/components/Home/CloudDivider.js | deluxe-pig/cloud-farmer | import React, { Component } from 'react';
import styles from './Home.css';
import cloudfarmerBg from './../../assets/cloudfarmer-bg-1.svg';
/* Cloud divider on the bottom of the HomeSplash component */
export default class CloudDivider extends Component {
render() {
return (
<div className={styles.clouds}>... |
src/Slider/components/__tests__/Slider-test.js | ambitioninc/react-ui | import Mingus from 'mingus';
import React from 'react';
import Slider from '../Slider';
Mingus.createTestCase('SliderTest', {
testRender() {
const rendered = this.renderComponent(<Slider />);
const track = this.getChildren(rendered)[0];
const controls = this.getChildren(track);
t... |
app/addons/replication/components/common-table.js | popojargo/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/svg-icons/image/vignette.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
src/components/RenewCallback/RenewCallback.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import Loader from '../Loader';
export class RenewCallback extends React.Component {
componentDidMount() {
this.props.handleRenewCallback()
}
render () {
const {isInitialized} = this.props
return (
<div>
<h3>{!isIni... |
app/containers/HomePage/TextEditor.js | Third9/mark-one | import React from 'react';
export default class Editor extends React.Component {
render () {
return (
<textarea></textarea>
)
}
} |
app/pages/browserwarning/browserwarning.js | tidepool-org/blip | /**
* Copyright (c) 2016, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in the... |
frontend/src/Settings/Notifications/Notifications/EditNotificationModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import { sizes } from 'Helpers/Props';
import EditNotificationModalContentConnector from './EditNotificationModalContentConnector';
function EditNotificationModal({ isOpen, onModalClose, ...otherProps }) {
retu... |
app/containers/ProductImportPage/ImportSuccess.js | aaronlangford31/ruah-web | import React from 'react';
import HappyFaceIcon from 'material-ui/svg-icons/social/sentiment-very-satisfied';
import H2 from '../../components/styled/H2';
function ImportSuccess() {
return (
<div style={{ margin: 'auto', textAlign: 'center' }}>
<HappyFaceIcon style={{ height: '50px', width: '50px', color: ... |
src/components/Room.js | ara4n/vector-threading | /*
Copyright 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
lab4/src/js/contact-form.react.js | BJCheng/cs554-assignments | import React from 'react';
export default class ContactForm extends React.Component {
constructor() {
super();
this.handleInputChange = this.handleInputChange.bind(this);
let first_name = '',
last_name = '',
language = '',
email = '',
car = ''... |
src/components/TextInput.js | jp7internet/react-apz | import React from 'react';
const TextInput = ({ input, label, type, placeholder, meta: { touched, error, warning } }) => (
<div
className={`form-group ${
touched && (
error ? 'has-error' : warning ? 'has-warning' : 'has-success'
)
}`}
>
<label htmlFor={input.name} classNam... |
admin/client/App/elemental/DropdownButton/index.js | Adam14Four/keystone | /* eslint quote-props: ["error", "as-needed"] */
import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import Button from '../Button';
function DropdownButton ({ children, ...props }) {
return (
<Button {...props}>
{children}
<span className={css(classes.arrow)} />
</Button>... |
packages/website/storybook/areaseries-story.js | uber/react-vis | /* eslint-env node */
import React from 'react';
import {storiesOf} from '@storybook/react';
import {
withKnobs,
color,
number,
object,
select
} from '@storybook/addon-knobs/react';
import {AreaSeries, LineSeries} from 'react-vis';
import {generateLinearData, nonUniformX} from './storybook-data.js';
impor... |
src/Image.js | apkiernan/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils';
const propTypes = {
/**
* Sets image as responsive image
*/
responsive: React.PropTypes.bool,
/**
* Sets image shape as rounded
*/
rounded: React.PropTypes.bool,... |
app/react-icons/fa/sun-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaSunO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m32.9 20q0-2.6-1.1-5t-2.7-4.1-4.1-2.7-5-1.1-5 1.1-4.1 2.7-2.7 4.1-1.1 5 1.1 5 2... |
stories/GridWithCardLayout/ExampleGridActionHeaders.js | skyiea/wix-style-react | import React from 'react';
import {Container, Row, Col, Card} from '../../src/Grid';
import styles from './ExampleGrid.scss';
import TextField from '../../src/TextField';
import Input from '../../src/Input';
import Label from '../../src/Label';
import {Plus, ArrowDownThin} from 'wix-style-react/Icons';
import Tooltip ... |
src/routes.js | bbonny/movie-matching | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import NotFoundPage from './components/NotFoundPage';
import ErrorPage from './components/ErrorPag... |
src/icons/CommentIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class CommentIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M43.98 8c0-2.21-1.77-4-3.98-4H8C5.79 4 4 5.79 4 8v24c0 2.21 1.79 4 4 4h28l8 8-.02-36zM36 28H12v-4h24v4zm0-... |
assets/javascript/components/profile/dataList.js | colinjeanne/learning-site | import React from 'react';
const dataList = props => {
const listItems = props.items.map(item =>
<li key={item.key}>
{item.text}
</li>
);
const listNode = (
<ul>
{listItems}
</ul>
);
const emptyMessageNode = (
<div>{props.emp... |
src/components/Slider/Slider-story.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKno... |
src/components/Pagination/Pagination.js | wfp/ui | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classnames from 'classnames';
import { iconChevronLeft, iconChevronRight } from '@wfp/icons';
import Icon from '../Icon';
import Select from '../Select';
import SelectItem from '../SelectItem';
import { equals } from '../../tools/array... |
node_modules/eslint-config-airbnb/test/test-react-order.js | RickFrom1987/rickfrom1987.com | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: { indent: ... |
src/app/components/media/MediaSearchRedirect.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { browserHistory } from 'react-router';
import { QueryRenderer, graphql } from 'react-relay/compat';
import Relay from 'react-relay/classic';
import CircularProgress from '@material-ui/core/CircularProgr... |
geonode/monitoring/frontend/src/components/cels/response-time/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
import styles from './styles';
class ResponseTime extends React.Component {
static propTypes = {
average: PropTypes.number.isRequired,
data: PropTypes.arra... |
src/components/hero/ThingSlot.js | DragonLegend/game | import React, { Component } from 'react';
import capitalize from 'capitalize';
export default class extends Component {
static propTypes = {
type: React.PropTypes.string,
position: React.PropTypes.object,
heroThing: React.PropTypes.object,
onClick: React.PropTypes.func,
};
getStyles() {
cons... |
icon-builder/tpl/SvgIcon.js | chrismcv/material-ui | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import SvgIcon from '{{{ muiRequireStmt }}}';
const {{className}} = React.createClass({
mixins: [PureRenderMixin],
render() {
return (
<SvgIcon {...this.props}>
{{{paths}}}
</SvgIcon>
);
}
});
... |
examples/async/index.js | actano/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
src/native.js | wangzuo/react-progress-label | import React from 'react';
import Svg, { Path, Circle, Text } from 'react-native-svg';
import ProgressLabel from './progress-label';
const RNProgressLabel = props => {
return <ProgressLabel components={{ Svg, Path, Circle, Text }} {...props} />;
};
export default RNProgressLabel;
|
client/src/app/components/FullWidthSection.js | JohnKim/xpush-webrtc | import React from 'react';
import ClearFix from 'material-ui/lib/ClearFix';
import spacing from 'material-ui/lib/styles/spacing';
import styleResizable from 'material-ui/lib/mixins/style-resizable';
const desktopGutter = spacing.desktopGutter;
const FullWidthSection = React.createClass({
propTypes: {
children:... |
js/utils/SVG.js | magalhini/firstaidgit | import React from 'react';
let SVGIcon = React.createClass({
componentWillMount() {
this.icons = {
cross: '<svg viewBox="0 0 1024 1024"><path class="path1" d="M1014.662 822.66c-0.004-0.004-0.008-0.008-0.012-0.010l-310.644-310.65 310.644-310.65c0.004-0.004 0.008-0.006 0.012-0.010 3.344-3.346 5.7... |
src/TextareaAutosize.js | tomatau/react-textarea-autosize | /**
* <TextareaAutosize />
*/
import React from 'react';
import emptyFunction from 'react/lib/emptyFunction';
import calculateNodeHeight from './calculateNodeHeight';
export default class TextareaAutosize extends React.Component {
static propTypes = {
/**
* Current textarea value.
*/
value: Rea... |
src/svg-icons/content/weekend.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentWeekend = (props) => (
<SvgIcon {...props}>
<path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51... |
src/store/provider.js | growcss/growcss-site | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Provider } from './createContext';
// The provider, which holds the page-wide store and its actions.
// Feel free to abstract actions and state away from this file.
class AppProvider extends Component {
state = {
open: false,
... |
src/components/RoundStage.js | georgezee/cabango | import React from 'react';
import { Provider } from 'react-redux';
const RoundStage = (props) => {
return (
<div id='round-stage'>
{props.stage}
</div>
);
}
export default RoundStage;
|
examples/official-storybook/stories/addon-options.stories.js | storybooks/storybook | import React from 'react';
export default {
title: 'Addons/Options',
};
export const SettingName = () => (
<div>This story should have changed the name of the storybook</div>
);
SettingName.storyName = 'setting name';
SettingName.parameters = {
options: {
name: 'Custom Storybook',
},
};
export const Hi... |
src/js/components/Section.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import classnames from 'classnames';
import Box from './Box';
import CSSClassnames from '../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.SECTION;
export default class Section extends Component {
... |
es/components/style/form-block.js | vovance/3d-demo | 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 = {... |
src/createBaseRouter.js | 4Catalyzer/found | import { dequal } from 'dequal';
import React from 'react';
import warning from 'tiny-warning';
import ActionTypes from './ActionTypes';
import RouterContext from './RouterContext';
import StaticContainer from './StaticContainer';
import createRender from './createRender';
import createStoreRouterObject from './create... |
packages/material-ui-icons/src/ControlPointDuplicate.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M16 8h-2v3h-3v2h3v3h2v-3h3v-2h-3zM2 12c0-2.79 1.64-5.2 4.01-6.32V3.52C2.52 4.76 0 8.09 0 12s2.52 7.24 6.01 8.48v-2.16C3.64 17.2 2 14.79 2 12zm13-9c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-... |
dva/wd2/src/components/CocktailGrid.js | imuntil/React | import React from 'react'
import PropTypes from 'prop-types'
import { Icon } from 'antd-mobile'
import ImgHolder from '@/components/Common/ImgHolder'
import './CocktailGrid.scss'
const CocktailGrid = ({ className, src, cn, en, to = 'javascript:;', more = false }) => {
return (
<a href={to} className={`cocktail-g... |
node_modules/@material-ui/core/es/TablePagination/TablePagination.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import { chainPropTypes } from '@material-ui/utils';
import withStyles from '../styles/withStyles';
impor... |
docs/src/Routes.js | justinanastos/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import SupportPage from './SupportPage';
import NotFoundPage from './NotFound... |
sbApp/Android_views/base/AppIndictor.js | clearLoveKang/react_native_demo | /**
* Created by DELL on 2017/5/25.
* Base 基类组件,所有的都继承此组件,代替继承Component
* 页面 都放到pages文件夹下,若是不同模块可以在pages文件夹下创建模块文件夹
*/
import React from 'react';
import {
View,
Modal,
ActivityIndicator,
} from 'react-native';
import BaseComponent, {base} from './Base';
|
src/routes/ActivateTicket/components/Welcome.js | Terrapin-Ticketing/althea | import React, { Component } from 'react';
class SignIn extends Component {
constructor(props) {
super(props);
this.state = {
email: '',
password: ''
};
this.updateInput = this.updateInput.bind(this);
}
updateInput(value) {
this.setState({ email: value });
this.props.inputChan... |
squealy/squealy-web/src/Utils.js | swapnil95/squealy | import React, { Component } from 'react';
import {
GOOGLE_CHART_TYPE_OPTIONS
} from './Constant'
/*!*************************************************************************
[Utils.js]
*****************************************************************************/
/* global define */
/**
* Defines all the types nec... |
interface/app/app.js | dockerization/workshop-02072016 | import React from 'react';
import ReactDom from 'react-dom';
import VendingMachine from './components/VendingMachine.jsx';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore.js';
const store = configureStore();
ReactDom.render(
<Provider store={store}>
<VendingMachine />
... |
app/containers/App.js | adamsome/electron-nav | import React from 'react'
import type { Children } from 'react'
import Layout from '../components/Layout'
import Sidebar from '../components/Sidebar'
type AppType = {
children: Children
}
const App = ({ children }: AppType) => (
<Layout sidebar={<Sidebar />}>
{children}
</Layout>
)
export default App
|
actor-apps/app-web/src/app/components/Login.react.js | Just-D/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
src/components/ContainerProgress.react.js | virajkanwade/kitematic | import React from 'react';
/*
Usage: <ContainerProgress pBar1={20} pBar2={70} pBar3={100} pBar4={20} />
*/
var ContainerProgress = React.createClass({
render: function () {
var pBar1Style = {
height: this.props.pBar1 + '%'
};
var pBar2Style = {
height: this.props.pBar2 + '%'
};
va... |
public/js/components/Reset.react.js | MadushikaPerera/Coupley | import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.