path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/notification/mms.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
source/javascripts/routes.js | senthilporunan/packman | import React from 'react'
import { Router, Route, Link } from 'react-router'
import App from './containers/App'
import About from './containers/About'
// <Route path="/Users/yhisamatsu/_/js-dev/electron-redux-boilerplate/build/renderer/index.html" component={App}>
// 一番はじめのパスは上記のようになるので、*/で待ち構えている
// それ以外は基本的に相対パス、相対パ... |
packages/material-ui-icons/src/EventNote.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v2h7v-2z" /></g>
, 'EventNote');
|
app/react-icons/fa/life-bouy.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaLifeBouy extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m20 0q4.1 0 7.8 1.6t6.4 4.2 4.2 6.4 1.6 7.8-1.6 7.8-4.2 6.4-6.4 4.2-7.8 1.6... |
examples/index.js | stackscz/re-app | import React from 'react';
import ReactDOM from 'react-dom';
import ExamplesRouter from './ExamplesRouter';
ReactDOM.render(
<ExamplesRouter />,
document.getElementById('root')
);
|
src/svg-icons/editor/border-bottom.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderBottom = (props) => (
<SvgIcon {...props}>
<path d="M9 11H7v2h2v-2zm4 4h-2v2h2v-2zM9 3H7v2h2V3zm4 8h-2v2h2v-2zM5 3H3v2h2V3zm8 4h-2v2h2V7zm4 4h-2v2h2v-2zm-4-8h-2v2h2V3zm4 0h-2v2h2V3zm2 10h2v-2h-2v2zm... |
pages/blog/test-article-one.js | koistya/react-static.tarkus.me | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Test Article 1</h1>
<p>Co... |
docs/app/Examples/views/Statistic/Variations/StatisticExampleSizeDivided.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Divider, Statistic } from 'semantic-ui-react'
const StatisticExampleSizeDivided = () => (
<div>
<Statistic size='mini' label='Views' value='2,204' />
<Divider />
<Statistic size='tiny' label='Views' value='2,204' />
<Divider />
<Statistic size='small' label='V... |
src/index.js | michael-mao/lasso | import React from 'react';
import ReactDOM from 'react-dom';
import App from './scripts/App';
import './css/index.css';
ReactDOM.render(
<App chrome={chrome}/>, // eslint-disable-line no-undef
document.getElementById('root')
);
|
lib/components/Reactable.js | Centiq/meteor-reactable | import React from 'react';
import createReactClass from 'create-react-class';
/**
* This is the root component. It handles the configuration
*/
Reactable = createReactClass({
propTypes: ReactableConfigShape,
render () {
let props = { ...this.props };
delete props.children;
// Convert "paginate" ... |
src/components/App.js | mikejablonski/newo-brew-web | import React from 'react';
import PropTypes from 'prop-types';
import { Link, IndexLink } from 'react-router';
// This is a class-based component because the current
// version of hot reloading won't hot reload a stateless
// component at the top-level.
class App extends React.Component {
render() {
return (
... |
app/components/Pagination/Page.js | 54vanya/ru-for-you-front | import React from 'react';
import styled from 'styled-components';
import Card from 'components/Card';
const Wrapper = styled.button`
padding: 0.25em 0.5em;
cursor:pointer;
`;
const Active = styled(Wrapper)`
background-color:#e00024;
color:#fff;
cursor:default;
`;
const Page = ({ n, onClick, isActive }) =... |
src/components/Header/Header.js | contor-cloud/contor-cloud.github.io | import React from 'react'
import { colors, media } from '../config'
import HeaderNav from './HeaderNav'
import HeaderLogo from './HeaderLogo'
import HeaderSocialMenu from './HeaderSocialMenu'
// const Header = () => (
// <header>
// <HeaderLogo />
// <HeaderNav />
// <HeaderSocialMenu />
// </header>
... |
app/containers/PreschoolProject/PreschoolProject.js | klpdotorg/tada-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import isEmpty from 'lodash.isempty';
import get from 'lodash.get';
import { PreschoolProjectView } from '../../components/PreschoolProject';
import { getBoundariesEntities } from '../../actions';
impor... |
app/containers/AdminFournisseurInfos/components/FournisseurRelais.js | Proxiweb/react-boilerplate | import React from 'react';
import PropTypes from 'prop-types';
import { List, ListItem } from 'material-ui/List';
import styles from './styles.css';
class FournisseurRelais extends React.Component {
static propTypes = {
fournisseur: PropTypes.object.isRequired,
relais: PropTypes.object.isRequired,
ajoute... |
src/components/StoryPage/index.js | JohnTasto/housing-frontend | /* eslint-disable import/no-extraneous-dependencies */
// This should probably be the core component, containing, nav etc
import React from 'react';
import { connect } from 'react-redux';
export function StoryPage() {
return (
<div>Placeholder</div>
);
}
StoryPage.displayName = 'StoryPage';
const mapDispatch... |
js/components/loaders/ProgressBar.ios.js | allanrabanillo/Usave | /* @flow */
import React from 'react';
import { ProgressViewIOS } from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
export default class ProgressBarNB extends NativeBaseComponent {
render() {
const getColor = () => {
if (this.props.color) {
r... |
src/components/common/ImageUpload.js | great-design-and-systems/cataloguing-app | import '../../images/upload-image.png';
import Dropzone from 'react-dropzone';
import { Img } from './';
import PropTypes from 'prop-types';
import React from 'react';
export class ImageUpload extends React.Component {
constructor(prop) {
super(prop);
this.state = {};
this.onDrop = this.onDropFiles.bind... |
app/components/Views/ViewStoryStepper.js | sceneweaver/entwine | import React from 'react';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatB... |
src/components/ui/TabIconRemix.js | npdat/Demo_React_Native | /**
* Tabbar Icon
*
<TabIcon icon={'search'} selected={false} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'react-native-elements';
import { AppColors } from '@theme/';
/* Component... |
src/client/routes.js | adeperio/base | 'use strict'
import 'babel/polyfill';
import React from 'react';
import Router from 'react-router';
import App from './components/app';
import UserHome from './components/user-home';
import SignIn from './components/sign-in';
import SignUp from './components/sign-up';
import Error from './components/error';
var Defau... |
client/component/prevent-leave/index.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
class PreventLeaveWarning extends React.Component {
static propTypes = {
message: PropTypes.string.isRequired,
prevent: PropTypes.bool,
};
static defaultProps = {
prevent: true,
};
componentDidMount() {
if (... |
src/client/admin/hometiles/homeTileForm.js | r3dDoX/geekplanet | import Button from '@material-ui/core/Button';
import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { Link, withRouter } from 'react-router-dom';
import { Field, reduxForm } from 'redux-form';
import actions from 'red... |
packages/reactor-kitchensink/src/examples/PivotGrid/RowStyling/RowStyling.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { PivotGrid } from '@extjs/reactor/modern';
import SaleModel from '../SaleModel';
import { generateData } from '../generateSaleData'; |
src/components/common/svg-icons/hardware/watch.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareWatch = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2.... |
src/layers/SymbolInstance.js | FourwingsY/react-sketch-viewer | import React from 'react'
import PropTypes from 'prop-types'
import SymbolStore from '../globals/SymbolStore'
import {getPositionStyle} from '../utils/layerUtils'
class SymbolInstance extends React.Component {
static propTypes = {
layer: PropTypes.object,
}
static contextTypes = {
renderLayer: PropTypes.fun... |
src/client/menu.js | ahmadassaf/Hacker-menu | import React from 'react'
export default class Menu extends React.Component {
handleOnClick (e) {
e.preventDefault()
this.props.onQuitClick()
}
render () {
var statusText = 'v' + this.props.version
var buttonText = 'Quit'
if (this.props.status === 'update-available') {
statusText += ' ... |
src/pages/dataTable/exemploDeDataTableComColunaOrdenavel.js | Synchro-TEC/site-apollo-11 | import React from 'react';
import { DataTable, DataTableColumn } from 'syntec-apollo-11';
import _cloneDeep from 'lodash/cloneDeep';
import _sortBy from 'lodash/sortBy';
class ExemploDeDataTableComColunaOrdenavel extends React.Component {
constructor(props) {
super(props);
this.state = {
dados: [
... |
src/views/syllabus/VerbPhrase.js | bostontrader/senmaker | // @flow
import React from 'react'
import LessonNavigator from './LessonNavigator'
import VPPanel from '../vp/VPPanel'
import {VPPanelLevel} from '../../data/vp/VPConstants'
function VerbPhrase(props:Object):Object {
const style = {
border: '1px solid black',
margin: '5px'
}
con... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | RobertRence/Mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
src/infopages/FAQs.js | VasilyShelkov/scikic-app | import React, { Component } from 'react';
const FAQs = () => (
<div>
<h1>FAQs</h1>
</div>
);
export default FAQs;
|
app/javascript/mastodon/features/compose/components/autosuggest_account.js | palon7/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount extends Immuta... |
lib/components/TodoForm/TodoFormContainer.js | dpkshrma/beaver | 'use babel';
import _ from 'lodash';
import React from 'react';
import TodoForm from './TodoForm';
import { TodoService } from '../../services';
const TODO_TEMPLATE = {
project: {},
title: 'something',
description: 'somehow',
duration: 1,
durationUnit: 'minutes',
status: 'inactive'
};
class TodoFormConta... |
website-prototyping-tools/playground.js | SBUtltmedia/relay | /**
* Copyright 2013-2015, 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.
*/
import 'babel/pol... |
imports/ui/containers/sidenav.js | jiyuu-jin/openlens | import React from 'react';
import {composeWithTracker} from 'react-komposer';
import SideNav from '../components/sidenav.js';
import {Lenses} from '/lib/collections';
const composer = (props, onData) => {
if (Meteor.subscribe('lenses').ready()) {
const lenses = Lenses.find().fetch();
onData(null, {... |
views/invocation.js | gastrodia/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
src/workshops/presentation/attendee/AttendeeBox.js | GrayTurtle/rocket-workshop | import React from 'react';
import PropTypes from 'prop-types';
import './assets/css/AttendeeBox.css';
import rocket from './assets/images/rocket.png';
const AttendeeBox = ({ status, step, username, num, onClick, masterStep, masterStatus }) => {
let statusBackground = {};
if (masterStep === step && status === ... |
es/components/style/form-number-input.js | dearkaran/react-planner | 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/index.js | richchurcher/feedbacker | import React from 'react'
import {render} from 'react-dom'
import {Router, Route, hashHistory} from 'react-router'
import App from './components/App'
import Students from './components/Students'
render((
<Router history={hashHistory}>
<Route path='/' component={App}>
<Route path='/students' component={Stu... |
blueocean-material-icons/src/js/components/svg-icons/image/crop-din.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCropDin = (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-2zm0 16H5V5h14v14z"/>
</SvgIcon>
);
ImageCropDin.displayName = 'ImageCropDin';
ImageCropDin.muiName = 'SvgIco... |
src/components/home.js | camboio/ibis | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import Timeline from './timeline';
import * as actions from '../actions';
class Home extends React.Component {
componentWillMount(){
if(this.props.authenticated){
this.props.updateTitle('Timelin... |
src/svg-icons/device/signal-cellular-null.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNull = (props) => (
<SvgIcon {...props}>
<path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellularNull = pure(DeviceSignalCellularNull);
DeviceSignalCellularN... |
src/svg-icons/action/shop-two.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionShopTwo = (props) => (
<SvgIcon {...props}>
<path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4... |
src/main/jsx/client/BuildHistoryPageActions.js | DotCi/DotCi | import ReactDOM from 'react-dom';
import React from 'react';
import BuildHistoryPage from './../pages/BuildHistoryPage.jsx';
import {job} from './../api/Api.jsx';
import {removeFilter,addFilter} from './../api/Api.jsx';
import Drawer from './../Drawer.jsx';
import {Job as AutoRefreshComponent} from './../components/... |
app/javascript/mastodon/features/ui/components/modal_loading.js | Arukas/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
src/svg-icons/maps/hotel.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsHotel = pure(MapsHot... |
src/Parser/Warrior/Arms/CONFIG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { TheBadBossy } from 'MAINTAINERS';
import SPECS from 'common/SPECS';
import SPEC_ANALYSIS_COMPLETENESS from 'common/SPEC_ANALYSIS_COMPLETENESS';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {
spec: SPECS.ARMS_WARRIOR,
main... |
src/workplace/ResizeContainer.js | rsamec/react-designer-core | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ItemTypes from '../util/ItemTypes.js';
import { DropTarget } from 'react-dnd';
import _ from 'lodash';
import ResizableHandle from './ResizableHandle.js';
const target = {
drop(props, monitor, component) {
if (monitor.di... |
components/wrapper/index.js | blockstack/blockstack-site | import React from 'react'
import { Flex } from 'blockstack-ui'
const Wrapper = ({ ...rest }) => (
<Flex
px={5}
width="100%"
maxWidth={['1064px']}
mx="auto"
{...rest}
/>
)
export { Wrapper }
|
src/Thumbnail.js | blue68/react-bootstrap | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const Thumbnail = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
alt: React.PropTypes.string,
href: React.PropTypes.string,
src: React.PropTyp... |
src/components/detailsComponents/CompanyInfo.js | markgreenburg/acquisitiontracker | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import Nav from './Nav';
import CompanyName from './CompanyName';
import CompanyBody from './CompanyBody';
const CompanyInfo = props => (
<div className="row company-info-row">
<div className="col-xs-12 company-info-content">
<div clas... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | fengchenlianlian/actor-platform | import React from 'react';
import mixpanel from 'utils/Mixpanel';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'actions/LoginActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
import MyProfileModal from 'components/modals/MyProfile.react';
import ... |
src/components/listRenderers/Item.js | jung-digital/ringa-example-react | import React from 'react';
import {dispatch} from 'ringa';
import {watch, find } from 'react-ringa';
import AppController from '../../global/AppController';
import AppModel from '../../global/AppModel';
import './Item.scss';
export default class Item extends React.Component {
//-----------------------------------
... |
src/components/Result.js | rhernandez-applaudostudios/tic-tac-toe | import React from 'react';
function Result({result}) {
const stringResult = result === 'X' ?
'The winner is player X!!' : result === '0' ?
'The winner is player O!!' : result === undefined ?
'' : result === 'DRAW' ?
'Is a tie :(' : 'Game in progress.. Good luck !';
... |
client/src/components/PublicationStatus/PublicationStatus.js | wagtail/wagtail | import PropTypes from 'prop-types';
import React from 'react';
/**
* Displays the publication status of a page in a pill.
*/
const PublicationStatus = ({ status }) => (
<span className={`o-pill c-status${status.live ? ' c-status--live' : ''}`}>
{status.status}
</span>
);
PublicationStatus.propTypes = {
st... |
src/svg-icons/communication/phonelink-lock.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkLock = (props) => (
<SvgIcon {...props}>
<path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ... |
src/index.js | testxin/QuestionCollection | /**
* Created by xinsw on 2016/1/21.
*
* 入口js
*
*/
import React from 'react'
import ReactDom,{ render } from 'react-dom'
import { Provider } from 'react-redux'
import { ReduxRouter } from 'redux-router';
import DevTools from './containers/DevTools'
import configureStore from './store/configureStore'
import routes... |
src/server.js | nagucc/jkef-web-react |
import 'babel-polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
import assets from './assets';
import { port, title, redisConfig } from './config';
import cookiePars... |
src/containers/OldHome/Home.js | simonghales/mapping | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
import Helmet from 'react-helmet';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// req... |
app/javascript/mastodon/features/compose/components/action_bar.js | ikuradon/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
edit_profile: { id: 'a... |
src/icons/IosFastforwardOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosFastforwardOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M48,155l183.5,101L48,356.9V155 M272,155.8L448,256L272,356.4v-95.6v-27.1V156 M256,128v123.2L32,128v256l224-1... |
src/svg-icons/maps/local-pharmacy.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPharmacy = (props) => (
<SvgIcon {...props}>
<path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/>
</SvgIcon>
);
MapsLocalPharmacy = pure... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | bash7012/angular-tour-of-heros | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/MainContainer.js | KSMorozov/react-fundamentals-tutorial | import React from 'react';
import { transparent } from '../styles/styles';
const MainContainer = ({ children }) =>
<div className="jumbotron col-sm-12 text-center" {...transparent}>
{children}
</div>;
export default MainContainer;
|
src/components/Experience.js | jalcantara90/cv | import React from 'react';
const Experience = (props) => {
const myExperience = (
<div>
{props.experience.map((exp) =>
<div className='item' key={exp.jobTitle}>
<h3>{exp.jobTitle} @ {exp.company} <span>{exp.startDate} - {exp.endDate}</span></h3>
<p>{exp.jobDescription}</p>
... |
docs/src/components/Playground/Atoms/IconButton/IconButton.js | seekinternational/seek-asia-style-guide | import styles from './IconButton.less';
import React from 'react';
import PropTypes from 'prop-types';
import { PlusIcon, DeleteIcon } from 'seek-asia-style-guide/react';
export default function IconButton({ children, icon }) {
return (
<button className={styles.root}>
{icon === 'plus' ? <PlusIcon /> : nu... |
app/components/EditTask/EditTask.js | Jberivera/pandoras-wall | import React from 'react';
import styles from './EditTask.scss';
import classNames from 'classnames/bind';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { findGroup, findTask } from '../../js/findUp';
import {
editTask
} from './actions';
const css = classNames.bind(styles... |
examples/js/complex/app.js | prajapati-parth/react-bootstrap-table | /* eslint no-unused-vars: 0 */
/* eslint no-console: 0 */
/* eslint space-infix-ops: 0 */
/* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < qu... |
src/lib/purecomponent.js | fabriciocolombo/este | import React from 'react';
import shallowEqual from 'react/lib/shallowEqual';
/**
* PureRenderMixin replacement for React component ES6 classes.
* https://github.com/facebook/react/blob/ed3e6ecb9b86b97c09428f40deb8c3ed695e73e8/src/addons/ReactComponentWithPureRenderMixin.js
*/
export default class PureComponent ext... |
admin/client/App/shared/Popout/index.js | dryna/keystone-twoje-urodziny | /**
* A Popout component.
* One can also add a Header (Popout/Header), a Footer
* (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane).
*/
import React from 'react';
import Portal from '../Portal';
import Transition from 'react-addons-css-transition-group';
const SIZES = {
arrowHeight: 12,
arrowWidth: ... |
src/js/utils/index.js | ClubExpressions/poc-expression.club | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
export function createConstants(...constants) {
let tab= constants.reduce((acc, constant) => {
acc[constant] = constant;
return acc;
}, {});
return tab;
}
export function createReducer(initia... |
app/components/ProductRow.js | Heatequation/react-router-redux-todo | import PropTypes from 'prop-types';
import React from 'react';
const ProductRow = ({ data }) =>
<div>
<p>{data.name} = {data.price} </p>
</div>;
ProductRow.propTypes = {
data: PropTypes.object
};
export default ProductRow;
|
src/components/topic/platforms/ManagePlatformsContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { injectIntl, FormattedMessage, FormattedHTMLMessage } from 'react-intl';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import { push } from 'react-router-redux';
import withAsyncData from '../../comm... |
src/svg-icons/alert/error-outline.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertErrorOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 ... |
chrome/extension/popup.js | altany/react-new-tab-chrome-extension | import React from 'react';
import ReactDOM from 'react-dom';
import Root from '../../app/containers/PopupRoot';
import './todoapp.css';
chrome.storage.sync.get('state', (obj) => {
const { state } = obj;
const initialState = JSON.parse(state || '{}');
const createStore = require('../../app/store/configureStore')... |
public/js/components/admin/feedback/others.react.js | IsuruDilhan/Coupley | /**
* Created by Isuru 1 on 07/02/2016.
*/
import React from 'react';
import Table from 'material-ui/lib/table/table';
import TableHeaderColumn from 'material-ui/lib/table/table-header-column';
import TableRow from 'material-ui/lib/table/table-row';
import TableHeader from 'material-ui/lib/table/table-header';
import... |
docs/app/Examples/elements/Input/States/InputExampleLoading.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLoading = () => (
<Input loading icon='user' placeholder='Search...' />
)
export default InputExampleLoading
|
src/GivingChart.js | RubenSandwich/givingChartGenerator | import React, { Component } from 'react';
const styles = {
allPadding: {
margin: '1rem 10px',
},
};
function drawTitle({ ctx, x, y, nextLineOffset, fontSize }, year, month) {
ctx.fillStyle = '#000';
const previousFont = ctx.font.replace(/"/g, '');
ctx.font = `${previousFont} Bold`;
ctx.fillText('Fina... |
app/src/routes/LoginCallback.js | quiaro/chunches | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import { gql, graphql } from 'react-apollo';
import {
getIDToken,
setUserSession,
isLoggedIn,
} from '../common/AuthService';
import ErrorHandler from '../common/ErrorHandler';
class Callback extends Component {
constructor(... |
app/components/no-match/no-match.js | dfmcphee/pinnr | import React from 'react';
export default class NoMatch extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="no-match">
<h1 className="no-match__title">Page not found</h1>
</div>
);
}
}
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js | mangomint/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(users) {
return [
{ id: 1, name: '1' ... |
src/components/Loading.js | diegocasmo/workouter | import React from 'react'
export const Loading = () => (
<div className='text-center pt-3 pb-3'>
<div className='spinner-border' role='status'/>
<p className='wkr-loading__text m-0'>Loading...</p>
</div>
)
|
src/components/Post/Post.js | oliveirafabio/wut-blog | import React from 'react'
import Paper from 'material-ui/Paper'
import Avatar from 'material-ui/Avatar'
import Divider from 'material-ui/Divider'
import DuckImage from '../../static/assets/Duck.jpg'
import classes from './Post.scss'
export const Post = (props) => {
console.log(props)
const { title, content } = pr... |
app/components/Elements/AddTeamMemberModal.js | alexpell00/FRCUltimateManager | /*
* @Author: alexpelletier
* @Date: 2016-03-21 16:04:11
* @Last Modified by: alexpelletier
* @Last Modified time: 2016-03-21 19:43:48
*/
import React from 'react';
import { Link, hashHistory } from 'react-router';
import request from 'superagent';
var AddTeamMemberModal = React.createClass({
componentDidMount()... |
common/components/Nav.js | witt86/ERE | import React from 'react'
import IndexLink from 'react-router/lib/IndexLink'
import Link from 'react-router/lib/Link'
import { StyleSheet, css } from 'aphrodite'
const Nav = () => (
<div>
<IndexLink to='/' className={css(styles.link)} activeClassName={css(styles.link, styles.activeLink)}>
Home
</IndexL... |
examples/containers/app/navMenu/NavMenu.js | alcedo-ui/alcedo-ui | /**
* @file NavMenu.js
*/
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from 'reduxes/actions';
// Components
import TextField from 'src/TextField';
import NavMenuList from './NavMenuList';
// Style... |
app/containers/RepoListItem/index.js | gtct/wallet.eine.com | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import { makeSelectCurrentUser } from 'containers/App/selectors';
import... |
src/index.js | sievins/stub | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './app'
import * as serviceWorker from './serviceWorker'
ReactDOM.render(<App />, document.getElementById('root'))
// If you want your app to work offline and load faster, you can change
// unregister() to register() below... |
app/containers/HomePage/index.js | iFatansyReact/react-boilerplate-imagine | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectRepos, mak... |
node_modules/react-router/es6/Route.js | rekyyang/ArtificalLiverCloud | 'use strict';
import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var func = _React$PropTypes.func;
/**
* A... |
src/renderer/SearchComponent.js | Maai/markn | import React from 'react'
import searchStore from './SearchStore'
import dispatcher from './Dispatcher'
import classNames from 'classnames'
export default class SearchComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
current: 0,
total: 0,
isShown: false,
... |
node_modules/antd/es/table/Table.js | ZSMingNB/react-news | import _typeof from 'babel-runtime/helpers/typeof';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possible... |
node_modules/react-router/es/Link.js | raskolnikova/infomaps | 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 = {... |
client/admin/settings/Section.stories.js | iiet/iiet-chat | import React from 'react';
import { Section } from './Section';
export default {
title: 'admin/settings/Section',
component: Section,
};
export const _default = () => <Section groupId='General' />;
export const skeleton = () => <Section.Skeleton />;
|
src/js/mixins/container_mixin.js | working-minds/realizejs | import React from 'react';
import PropTypes from '../prop_types';
import _ from 'lodash';
export default {
propTypes: {
forwardedProps: PropTypes.object,
ignoreForwarded: PropTypes.array,
},
getDefaultProps() {
return {
forwardedProps: {},
};
},
getChildren() {
return this.cloneCh... |
example/src/index.js | Tom910/react-async-loading | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/maps/local-printshop.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPrintshop = (props) => (
<SvgIcon {...props}>
<path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"... |
src/components/topic/snapshots/foci/builder/FocusForm3DescribeContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { reduxForm, formValueSelector } from 'redux-form';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import withIntlForm from '../../../../commo... |
src/Connected/inner/View.js | dht/lpm | import React from 'react';
import Base from './Base';
const View = (props) => {
const {content} = props,
containerStyle = {...styleView, backgroundImage: `url(${content})`}
return <Base {...props} containerStyle={containerStyle}>
</Base>
}
export default View;
const styleView = {
position: '... |
src/pages/App.js | HeliumLau/Hoop-react | import React from 'react'
import PropTypes from 'prop-types'
import './App.less'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import { loadingShow } from 'store/action.js'
class APP extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.