path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/components/Listing/AddListing/AddListingComponents/ListingImage.js | Velocies/raptor-ads | import React from 'react';
import { Form, Input, Icon } from 'semantic-ui-react';
const ListingImage = ({ onClick, onChange, image, getFormClass }) =>
<Form.Field className={getFormClass('image')}>
<Input
icon={<Icon onClick={() => onClick(image)} name="plus" inverted circular link />}
placeholder="A... |
example/app.js | etshi/react-image-gallery | import React from 'react'
import ReactDOM from 'react-dom'
import ImageGallery from '../src/ImageGallery'
class App extends React.Component {
constructor() {
super()
this.state = {
isPlaying: false,
showIndex: false,
slideOnThumbnailHover: false,
showBullets: true,
infinite: t... |
samples/all/src/argon.js | abouthiroppy/sweetpack | // @flow
import React from 'react';
import { AppContainer } from 'react-hot-loader';
import ReactDOM from 'react-dom';
import Label from './Label';
import styles from './style.css';
const rootEl: HTMLElement | null = document.getElementById('argon');
const render = () => {
if (rootEl) {
ReactDOM.render(
... |
src/Page.js | sean-adams/dataslayer | import React, { Component } from 'react';
import PropTypes from 'prop-types'
import Datalayers from './Datalayers';
import Tags from './Tags';
const PageHeader = props =>
(<ul>
<li className={`newpage ${props.className}`}>
<a
className={`newpage ${props.isCurrent ? 'currentpage' : ''}`}
onC... |
Js/Ui/Components/Dropdown/Dropdown.js | Webiny/Webiny | import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import $ from 'jquery';
import Webiny from 'webiny';
import styles from './styles.css';
class Dropdown extends Webiny.Ui.Component {
constructor(props) {
super(props);
this.id = _.uniqueId('dropdown-');
th... |
src/main.js | JakePartusch/cafe-todo-app | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { initAuth } from './core/auth';
import configureStore from './core/store';
import Root from './... |
src/fulltrade/FullTradeContainer.js | qingweibinary/binary-next-gen | import React, { Component } from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
import { connect } from 'react-redux';
import immutableChildrenToJS from 'binary-utils/lib/immutableChildrenToJS';
import FullTradeCard from './FullTradeCard';
import singleTradeSelectors from '../trades/singl... |
examples/complete/material/src/routes/NotFound/components/NotFoundPage/NotFoundPage.js | prescottprue/react-redux-firebase | import React from 'react'
import Typography from '@material-ui/core/Typography'
import { makeStyles } from '@material-ui/core/styles'
import styles from './NotFoundPage.styles'
const useStyles = makeStyles(styles)
function NotFoundPage() {
const classes = useStyles()
return (
<div className={classes.root}>
... |
6.webpack/react/components/PanelHead.js | zhufengnodejs/201608node | //从react模块中引入React对象
import React from 'react';
//声明一个组件的子类并继承React.Component父类
export default class PanelHead extends React.Component{
render(){
return (
<div className="panel-heading">
{this.props.content}
</div>
)
}
}
|
src/pages/solicitar-grade.js | vitorbarbosa19/ziro-online | import React from 'react'
import Link from 'gatsby-link'
import { Image } from 'cloudinary-react'
import WhatsappIcon from '../components/WhatsappIcon'
import { buttonStyleDark } from '../styles/styles'
export default () => (
<div style={{
display: 'flex',
flexDirection: 'column',
fontFamily: 'karla',
... |
src/parser/monk/windwalker/modules/spells/TouchOfDeath.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import StatTracker from 'parser/shared/modules/StatTracker';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'interfa... |
src/routes/index.js | Shenseye/fisrt-react-redux-todolist | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import CoreLayout from 'layouts/CoreLayout';
import HomeView from 'views/HomeView';
import AboutView from 'views/AboutView';
export default (
<Route path='/' component={CoreLayout}>
<IndexRoute component={HomeView} />
<Route path='/... |
src/common/ImageAvatar.js | Sam1301/zulip-mobile | /* @flow */
import React from 'react';
import { Image } from 'react-native';
import { Touchable } from './';
type Props = {
avatarUrl: string,
size: number,
status?: string,
shape: string,
onPress?: () => void,
};
export default ({ avatarUrl, size, status, shape, onPress = () => {} }: Props) => {
const t... |
stories/TimeInput/index.js | nirhart/wix-style-react | import React from 'react';
import {storiesOf} from '@kadira/storybook';
import Markdown from '../utils/Components/Markdown';
import CodeExample from '../utils/Components/CodeExample';
import Readme from '../../src/TimeInput/README.md';
import ExampleUncontrolled from './ExampleUncontrolled';
import ExampleUncontrolled... |
client/src/app/components/animatedModal.js | FrontSmith/FSFramework | import React from 'react';
export default React.createClass( {
componentDidMount() {
let $this = $( this.getDOMNode() );
let $hook = $this.find( '.hook' );
$hook.animatedModal( {
afterClose: triggerClose.bind( this )
} )
.open();
function triggerCl... |
src/app/encrypt/Encrypt.js | mailvelope/mailvelope | /**
* Copyright (C) 2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import * as l10n from '../../lib/l10n';
import {port} from '../app';
import {RecipientInput} from '../../components/editor/components/RecipientInput';
import Spinner from '../../co... |
src/js/components/icons/base/Upgrade.js | odedre/grommet-final | /**
* @description Upgrade 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.
* @pr... |
wegas-app/src/main/node/wegas-react-form/src/Views/wegas-url.js | Heigvd/Wegas | import PropTypes from 'prop-types';
import React from 'react';
import IconButton from '../Components/IconButton';
import StringView from './string';
import { getY } from '..';
function openPanel(onChange, filter) {
return function onClick() {
const Y = getY();
const filepanel = new Y.Wegas.FileSele... |
src/components/HamburgerButton.js | tnewman16/CirdlesWebUI | // @flow
import React, { Component } from 'react';
import Radium from 'radium';
import { colors, MENU_TRANSITION_TIME_SEC } from 'constants';
type Props = {
onClick: Function,
size: number,
active: boolean,
color?: string,
activeColor?: string,
style?: any
};
class Hamburger extends Component<Props> {
c... |
packages/wix-style-react/src/Themes/editorX/icons/Close.js | wix/wix-style-react | import React from 'react';
export default ({ className }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="currentcolor"
viewBox="0 0 15 15"
width="12"
height="12"
className={className}
>
<polygon points="13.5 2.914 12.086 1.5 7.5 6.086 2.914 1.5 1.5 2.914 6.086 7.5 1.5 12.086 2.914 1... |
src/component/NotFound.js | MijaelWatts/calzaweb | import React, { Component } from 'react';
import HeaderLogin from './login/HeaderLogin';
import FooterLogin from './login/FooterLogin';
import '../css/App.css';
import image from '../img/error-img.png';
function OnlyChrome () {
return(
<div className="App content">
<img src={ image } alt="chrome" />
<br... |
src/svg-icons/action/toc.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToc = (props) => (
<SvgIcon {...props}>
<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>
</SvgIcon>
);
ActionToc = pure(ActionToc);
ActionToc.displa... |
src/svg-icons/toggle/radio-button-unchecked.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleRadioButtonUnchecked = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>
</SvgIco... |
src/index.js | akeely/twoguysandadream-js | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'bootstrap/dist/css/bootstrap.min.css';
import $ from 'jquery';
import 'font-awesome/css/font-awesome.css';
import './index.css';
import { Provider } from 'react-redux';
import { Route } from 'react-router'
import { Connec... |
www/src/InstanceInfo.js | ctnitchie/ec2-dashboard | import React from 'react';
import {ec2Service, eventBus} from './services';
import autobind from 'react-autobind';
import moment from 'moment';
export default class InstanceInfo extends React.Component {
constructor(props) {
super(props);
this.state = {
state: props.record.state,
launched: props.... |
src/svg-icons/hardware/speaker-group.js | ngbrown/material-ui | 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... |
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxscrollview.js | dhawal9035/WebPLP | /*
jQWidgets v4.5.0 (2017-Jan)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
let jqxScrollView = React.createClass ({
getInitialState: function () {
return { value: '' };
},
componentDidMount: function () {
let options = this.manageAttributes();... |
app/jsx/gradezilla/SISGradePassback/AssignmentCorrectionRow.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - 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... |
stories/ConvertToMarkdown/index.js | michalko/draft-wyswig | /* @flow */
import React, { Component } from 'react';
import { EditorState, convertToRaw } from 'draft-js';
import draftToMarkdown from 'draftjs-to-markdown';
import { Editor } from '../../src';
class ConvertToRawDraftContentEditor extends Component {
state = {
editorState: EditorState.createEmpty(),
}
onE... |
frontend/src/components/modal-loader.js | 1905410/Misago | import React from 'react';
import Loader from 'misago/components/loader'; // jshint ignore:line
export default class extends React.Component {
render() {
/* jshint ignore:start */
return <div className="modal-body modal-loader">
<Loader />
</div>;
/* jshint ignore:end */
}
}
|
examples/todomvc/containers/App.js | hartzis/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider redux={... |
src/components/topic/summary/FociStoryCountComparisonContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import * as d3 from 'd3';
import { connect } from 'react-redux';
import Highcharts from 'highcharts';
import HighchartsReact from 'highcharts-react-official';
import DataCard from '../../common/Data... |
src/js/pages/AvailabilityPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import connectToStores from '../utils/connectToStores';
import translate from '../i18n/Translate';
import LocaleStore from '../stores/LocaleStore';
import RegisterStore from '../stores/RegisterStore';
import Button from '../components/ui/Butt... |
pages/about/index.js | elzup/fi-page-preview | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
docs/app/Examples/collections/Message/Variations/MessageFloatingPropsExample.js | jcarbo/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageFloatingPropsExample = () => (
<Message
floating
content='Way to go!'
/>
)
export default MessageFloatingPropsExample
|
src/premade/ScatterplotChart.js | ornl-sava/vis-react-components | import React from 'react'
import PropTypes from 'prop-types'
import { extent } from 'd3'
import { setScale, isOrdinalScale } from '../util/d3'
import { spreadRelated } from '../util/react'
import Chart from '../Chart'
import Axis from '../Axis'
import Tooltip from '../Tooltip'
import Scatterplot from '../Scatterplot'
... |
src/svg-icons/image/details.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDetails = (props) => (
<SvgIcon {...props}>
<path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/>
</SvgIcon>
);
ImageDetails = pure(ImageDetails);
ImageDetails.displayName = 'ImageDetails';
ImageDetai... |
ui/app/components/Content/Content.js | StamusNetworks/scirius | import React from 'react';
import PropTypes from 'prop-types';
import StyledContent from './StyledContent';
const Content = ({children}) => <StyledContent>{children}</StyledContent>
Content.propTypes = {
children: PropTypes.any,
}
export default Content;
|
app/app.js | raganw/react-lunch-and-learn | 'use strict';
import './favicon.ico';
import './index.html';
import 'normalize.css/normalize.css';
import './scss/app.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import HelloWorld from './components/HelloWorld/HelloWorld';
ReactDOM.render(
<HelloWorld />,
document.getElementById('app')
)... |
src/TabBar.js | Qwikly/react-native-router-redux | import React, { Component } from 'react';
import Tabs from 'react-native-tabs';
import { Image, StyleSheet, Text, View } from 'react-native';
const onSelect = props => el => {
props.actions.changeTab({
from: props.activeTab,
name: el.props.name,
navigator: props.navigator,
});
return {
selection... |
src/App.js | jjbohn/graphql-blog-schema | import React, { Component } from 'react';
import GraphiQL from 'graphiql';
import fetch from 'isomorphic-fetch';
import Schema from './schema.js';
import { graphql } from 'graphql';
GraphiQL.Logo = class Logo extends Component {
render() {
let style = {
fontWeight: 800,
fontSize: 16,
color: "#2... |
src/svg-icons/hardware/sim-card.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
src/icons/Wineglass.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Wineglass extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M294.9,295.4c11-4.1,18-6.9,26.2-11.7c12-6.9,22.8-15.8,31.9-26.1c20.4-22.9,31-51.1,31-86.1c0-49.9-3.7-101.1-8.1-114... |
react-redux-tutorial/06-params/modules/About.js | react-scott/react-learn | import React from 'react'
export default React.createClass({
render() {
return <div>About</div>
}
})
|
node_modules/antd/es/tag/CheckableTag.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
src/parser/rogue/shared/resources/ComboPointDetails.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Panel from 'interface/others/Panel';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import ResourceBreakdown from 'parser/shar... |
src/components/ui/nav/index.js | GeekyAubergine/chrisaubert.me | // @flow
import React from 'react'
import { Link } from 'react-router-dom'
import { WidthControlled } from '../index'
import style from './style.scss'
const nav = () => (
<WidthControlled noPadding>
<nav className={style.container}>
<div className={style.nav} >
<Link to="/">Chris Aubert</Link>
<Link to... |
src/svg-icons/toggle/radio-button-checked.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleRadioButtonChecked = (props) => (
<SvgIcon {...props}>
<path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3... |
test/test_helper.js | victor335882/ReduxSimpleStarter-4 | 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/js/components/Operator.js | notfier/touristique-client | import React, { Component } from 'react';
import {
CreateNewTouristCardContainer
} from '../containers/CreateNewTouristCardContainer';
import { TouristCardDataContainer } from '../containers/TouristCardDataContainer';
export class Operator extends Component {
constructor( props ) {
super( props );
this.... |
client/app/scripts/components/footer.js | alban/scope | import React from 'react';
import { connect } from 'react-redux';
import Plugins from './plugins';
import { trackAnalyticsEvent } from '../utils/tracking-utils';
import {
clickDownloadGraph,
clickForceRelayout,
toggleHelp,
toggleTroubleshootingMenu,
setContrastMode
} from '../actions/app-actions';
class Fo... |
imports/ui/components/OAuthLoginButtons/OAuthLoginButtons.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import { Meteor } from 'meteor/meteor';
import { withTracker } from 'meteor/react-meteor-data';
import { ReactiveVar } from 'meteor/reactive-var';
import OAuthLoginButton from '../OAuthLoginButton/OAuthLoginButton';
import './OAuthLoginButtons.scss';
cons... |
src/parser/hunter/survival/modules/spells/WildfireBomb.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import StatisticBox from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import Enemies from 'parser/shared/modules/Enemies';
import ... |
docs/tutorial/DO_NOT_TOUCH/04/src/components/Toast/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state} from 'cerebral/tags'
export default connect({
message: state`toast`
},
function Toast (props) {
if (!props.message) {
return null
}
return (
<div className='c-alerts c-alerts--bottomright'>
<div classNa... |
chrome/extension/inject.js | Bitaru/PartyRooms | import React, { Component } from 'react';
import { render } from 'react-dom';
import Dock from 'react-dock';
class InjectApp extends Component {
constructor(props) {
super(props);
this.state = { isVisible: false };
}
buttonOnClick = () => {
this.setState({ isVisible: !this.state.isVisible });
};
... |
app/components/Settings.js | shionwahch/neon-wallet | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { setBlockExplorer } from '../modules/metadata';
import { setKeys } from '../modules/account';
import Delete from 'react-icons/lib/md/delete';
import _ from 'lodash';
import fs from 'fs';
const ... |
src/components/common/form/dropZone.js | fusionalliance/autorenter-react | import React from 'react';
import PropTypes from 'prop-types';
import Dropzone from 'react-dropzone';
import styles from './fieldStyles.css';
import encodeDropzoneImages from '../utils/encodeDropzoneImages';
const dropZone = ({ input, name, meta }) => {
let file = input.value;
return (
<div>
{file && (... |
app/components/NavMobile/index.js | MameeV/suzette | /**
*
* NavMobile
*
*/
import React from 'react';
import Burger from 'material-ui/svg-icons/Navigation/menu';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import {Link} from "react-router";
class NavMobile extends React.PureComp... |
fixtures/dom/src/components/fixtures/input-change-events/RadioGroupFixture.js | silvestrijonathan/react | import React from 'react';
import Fixture from '../../Fixture';
class RadioGroupFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
changeCount: 0,
};
}
handleChange = () => {
this.setState(({changeCount}) => {
return {
chan... |
src/svg-icons/action/book.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBook = (props) => (
<SvgIcon {...props}>
<path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/>
</SvgIcon>
);
ActionBook = pure(ActionBook);
Ac... |
frontend/src/Components/Form/MovieMonitoredSelectInput.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import translate from 'Utilities/String/translate';
import SelectInput from './SelectInput';
const monitorTypesOptions = [
{ key: 'true', value: translate('Yes') },
{ key: 'false', value: translate('No') }
];
function MovieMonitoredSelectInput(props) ... |
support/ReactSample/www/js/components/Spinner.js | generatron/GeneratronPublic | import React from 'react';
export default React.createClass({
getInitialState() {
document.addEventListener('startWaiting', () => {
this.setState({spinning:true})
});
document.addEventListener('stopWaiting', () => {
this.setState({spinning:false})
});
... |
packages/material-ui-icons/src/ZoomIn.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><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 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 ... |
src/demo/src/components/GithubIcon/index.js | HofmannZ/global-ai-hackathon-coin-truth | import React from 'react';
import PropTypes from 'prop-types';
// Material UI
import {
SvgIcon,
} from 'material-ui';
import { white } from 'material-ui/styles/colors';
// Type checking & defaults
const propTypes = {
color: PropTypes.string.isRequired,
};
const defaultProps = {
color: white,
};
const contextTyp... |
presentation/index.js | letsgojuno/rxjs-tech-talk | // Import React
import React from 'react';
import Rx, { Observable } from 'rxjs';
import * as Recompose from 'recompose';
import Counter from '-!babel-loader!raw-loader!../assets/counter.js';
import Autocomplete from '../assets/autocomplete.js';
import DragDrop from '../assets/drag-drop.js';
import Console from '-!bab... |
examples/src/switchRoute.js | HBM/md-components |
import React from 'react'
import {Switch} from 'md-components'
export default class SwitchRoute extends React.Component {
state = {
switch: false
}
onChange = (event) => {
const {name, checked} = event.target
this.setState({
[name]: checked
})
}
render () {
return (
<div>
... |
app/javascript/src/components/charts/charts.js | michelson/chaskiq | import React from 'react'
import { ResponsivePie } from '@nivo/pie'
// import { useTheme } from '@material-ui/core/styles';
// make sure parent container have a defined height when using responsive component,
// otherwise height will be 0 and no chart will be rendered.
// website examples showcase many properties, you... |
src/svg-icons/image/grid-off.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOff = (props) => (
<SvgIcon {...props}>
<path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h... |
src/svg-icons/communication/swap-calls.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSwapCalls = (props) => (
<SvgIcon {...props}>
<path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8... |
app/javascript/flavours/glitch/components/logo.js | glitch-soc/mastodon | import React from 'react';
const Logo = () => (
<svg viewBox='0 0 216.4144 232.00976' className='logo'>
<use xlinkHref='#mastodon-svg-logo' />
</svg>
);
export default Logo;
|
client/src/components/SingleGraphBar.js | codefordenver/Circular | import React from 'react';
import PropTypes from 'prop-types';
import { Transition, animated } from 'react-spring';
import { TimingAnimation, Easing } from 'react-spring/dist/addons';
const SingleGraphBar = ({ num, denom, barColor, bgColor, thickness }) => {
if (barColor && barColor.length > 0) {
return (
... |
examples/Portal.js | sthawali/react-overlays | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Portal from 'react-overlays/Portal';
class PortalExample extends React.Component {
constructor(...args){
super(...args);
this.state = { show: false };
this.show = ()=> this.setState({ show: true });
}
render() {
... |
packages/xo-web/src/index.js | vatesfr/xo-web | import './patch-react'
import hashHistory from 'react-router/lib/hashHistory'
import React from 'react'
import Router from 'react-router/lib/Router'
import store from 'store'
import { Provider } from 'react-redux'
import { render } from 'react-dom'
import XoApp from './xo-app'
render(
<Provider store={store}>
... |
docs/app/Examples/views/Card/Variations/CardExampleFluid.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Card } from 'semantic-ui-react'
const CardExampleFluid = () => (
<Card.Group>
<Card fluid color='red' header='Option 1' />
<Card fluid color='orange' header='Option 2' />
<Card fluid color='yellow' header='Option 3' />
</Card.Group>
)
export default CardExampleFluid
|
PanGesture/index.android.js | HarrisLee/React-Native-Express | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class PanGesture extends Component {
render() {
return (
<View style={styles.containe... |
src/components/StreetList.js | nickooms/racing-webgl2 | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { Card, CardTitle, CardText } from 'material-ui/Card';
import muiThemeable from 'material-ui/styles/muiThemeable';
import { List, ListItem } from 'material-ui/List';
import Divider from 'material-ui/Divider';
impo... |
src/layouts/Nav.js | JoJoChilly/joexp-react | import React, { Component } from 'react';
export default class Nav extends Component {
render() {
return <div>Nav</div>;
}
}
|
src/class/tmdb/TmdbImageContainer.js | tegon/traktflix | import PropTypes from 'prop-types';
import React from 'react';
import Settings from '../../settings';
import ErrorBoundary from '../ErrorBoundary';
class TmdbImageContainer extends React.Component {
constructor(props) {
super(props);
this.state = this.getInitialState();
}
getInitialState() {
return ... |
packages/wix-style-react/src/Box/test/Box.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import Box from '..';
const simpleChild = <span>Here is a simple text</span>;
const multipleBoxes = [
<Box
align="center"
verticalAlign="middle"
margin={'1px'}
width={'80px'}
height={'80px'}
color="D70"
backgroundC... |
views/prompt.js | rakesh-mohanta/black-screen | import _ from 'lodash';
import React from 'react';
import Autocomplete from './autocomplete';
import DecorationToggle from './decoration_toggle';
// TODO: Make sure we only update the view when the model changes.
export default React.createClass({
getInitialState() {
return {
suggestions: [],
... |
src/components/pages/Admin/Orders/AdminOrdersEdit.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
// Flux
import OrderDetailsStore from '../../../../stores/Orders/OrderDetailsStore';
import OrderEmailStore from '../../../.... |
web/src/routes.js | robonyong/owl-rates | import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { UserAuthWrapper } from 'redux-auth-wrapper';
import App from './containers/app';
import OwlsList from './containers/owlsList';
import OwlView from './containers/owlView';
import Account from './containers/acco... |
src/Parser/Paladin/Retribution/Modules/PaladinCore/BlessingOfTheAshbringer.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
const debug = false;
class BlessingOfTheAshbringer extends A... |
src/views/ContractBusiness/NePayment/ExaminePayment.js | bruceli1986/contract-react | import React from 'react'
import PageHeader from 'components/PageHeader'
import TaskHandleForm from 'components/TaskHandleForm'
import ContractToolbar from 'components/ContractToolbar'
import TaskHistory from 'components/TaskHistory'
import PaymentReadOnlyForm from 'components/PaymentReadOnlyForm'
import FilePreview fr... |
src/components/CommentPanel/ExpandingCommentPanel.js | Charlie9830/pounder | import React, { Component } from 'react';
import CommentPanel from './CommentPanel';
import Expander from '../Expander';
class ExpandingCommentPanel extends Component {
constructor(props) {
super(props);
// State
this.state = {
isOpen: false,
}
// Method Binding... |
test/integration/image-optimization/pages/static-head.js | flybayer/next.js | import React from 'react'
import Head from 'next/head'
const Page = () => {
return (
<>
<Head>
<link
href="https://fonts.googleapis.com/css2?family=Modak"
rel="stylesheet"
/>
</Head>
<div>Hi!</div>
</>
)
}
export default Page
|
Libraries/Text/Text.js | kesha-antonov/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/Router.js | barretts/react-starter-kit | /*! 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 ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/app.js | sk222sw/odin-react | import ChartMonitor from 'redux-devtools-chart-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import Immutable from 'immutable'
import LogMonitor from 'redux-devtools-log-monitor'
import React from 'react'
import ReactDOM from 'react-dom'
import SliderMonitor from 'redux-slider-monitor'
import createLog... |
android/source/view/search.js | cloudfavorites/favorites | import React, { Component } from 'react';
import {
View,
Text,
Image,
ScrollView,
TouchableOpacity,
TouchableHighlight
} from 'react-native';
import _ from 'lodash';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Icon from 'react-native-vector-icons/Ionicons';
imp... |
src/svg-icons/editor/format-bold.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatBold = (props) => (
<SvgIcon {...props}>
<path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1... |
6.0.0-rc.4/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(278),e.exports=n(277)},function(e,t,n){var r=n(5),o=n(36),i=n(20),a=n(21),u=n(37),s="prototype",... |
packages/material-ui-icons/src/NoEncryption.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let NoEncryption = props =>
<SvgIcon {...props}>
<path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1... |
app/jsx/files/FilePreview.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - 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/dashboard/AccountView.react.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import { buildAccountSidebar } from './SidebarBuilder';
import SidebarToggle from 'components/S... |
app/scenes/Schedule/index.js | Thinkmill/react-conf-app | // @flow
import React, { Component } from 'react';
import {
Animated,
AppState,
Dimensions,
LayoutAnimation,
ListView,
Platform,
StatusBar,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import moment from 'moment-timezone';
import type { ScheduleTalk } from '../../types';
impo... |
src/components/IndexPage.js | harrislabel/personal_website | "use strict";
import React from 'react';
import AthletePreview from './AthletePreview';
import athletes from '../data/athletes';
export default class IndexPage extends React.Component {
render() {
return (
<div className="home">
<div className="athletes-selector">
{athletes.map(athlete... |
sample/components/alert.js | LINKIWI/react-elemental | import React from 'react';
import { Alert, Spacing, Text } from 'react-elemental';
const SampleAlert = () => (
<div>
<Spacing size="huge" bottom>
<Text size="gamma" color="primary" uppercase>
Alerts
</Text>
<Text>
Alerts are used to educate the user about the current state of th... |
src/views/HomeView.js | chasm/tic-tac-routes | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { actions as gameActions } from '../redux/modules/game'
import PlayerForm from '../components/PlayerForm'
// We define mapStateToProps where we'd normally use
// the @connect decorator so the data requirements a... |
src/components/question/Answer.js | thinow/genau | import React from 'react';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import { palette } from '../theme/theme';
import * as actions from '../../redux/actions/all';
const labelStyle = {
textTransform: 'none',
color: palette.alternateTextColor
};
const mapProps = (st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.