path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
thinking-in-react/6-identify-where-state-should-live.js
golgistudio/node-school-exercises
import React from 'react'; export const ProductCategoryRow = React.createClass({ render() { return ( <tr> <th colSpan={2}>{this.props.category}</th> </tr> ); }, }); export const ProductRow = React.createClass({ render() { const product = this...
app/containers/AdminRelaisCommandes/components/DetailsParUtilisateur.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { push } from 'react-router-redux'; import { createStructuredSelector } from 'reselect'; import Helmet from 'react-helmet'; import round from 'lodash/ro...
app/scripts/header.js
winsan-zhang/website-test
import React from 'react'; import ReactDom from 'react-dom'; import '../styles/header.css'; import '../styles/common.css'; import $ from 'jquery'; /*下拉菜单数据1*/ let dropDownDatas1 = [ { "title": "JQuery", "url": "#" },{ "title": "React.js", "url": "#" },{ "title": "Angular.js", "url": "#" },{ "title"...
docs/src/components/Home/index.js
andresin87/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import { Editor } from 'react-draft-wysiwyg'; import uploadImageCallBack from '../../util/uploadImageCallBack'; import styles from './styles.css'; // eslint-disable-line no-unused-vars export default class Home extends Component { state: any = { status: fal...
src/components/Home/Home.js
IanChuckYin/IanChuckYin.github.io
import React, { Component } from 'react'; import Toolbar from '../SpaToolbar/Toolbar/Toolbar'; import SplashPage from '../SplashPage/SplashPage'; import { AboutMe, Projects, Resume, SkillSet } from '../../util/PageContainerUtil'; import Footer from '../Footer/Footer'; import Aux from '../../hoc/Aux/Aux'; import Page f...
yycomponent/progress/Progress.js
77ircloud/yycomponent
import React from 'react'; import { Progress as _Progress } from 'antd'; class Progress extends React.Component{ constructor(props){ super(props); } render(){ return (<_Progress {...this.props}/>); } } export default Progress
src/svg-icons/action/card-travel.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardTravel = (props) => ( <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H...
app/components/Card/index.js
jgornick/swlcg
/** * * Card * */ import React from 'react'; import styles from './styles.css'; function Card({ title, isUnique, abilityTraits, normalUnitDamage, normalBlastDamage, normalTactics, edgeEnabledUnitDamage, edgeEnabledBlastDamage, edgeEnabledTactics, text, type, affiliation, side, cost, dam...
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleMiniSize.js
ben174/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleMiniSize = () => ( <Breadcrumb size='mini'> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right chevron' /> <Breadcrumb.Section link>Registration</Breadcrumb.Section> <Breadc...
app/javascript/mastodon/features/follow_requests/index.js
pso2club/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
frontend/root.js
BernalHillbillies/waffles
import React from 'react'; import ReactDOM from 'react-dom'; import Dashboard from './components/Dashboard'; document.addEventListener('DOMContentLoaded', () => { const root = document.getElementById('root'); ReactDOM.render(<Dashboard />, root); });
react-fundamentals-es6/lessons/06-refs/App.js
wandarkaf/React-Bible
// https://jsbin.com/qiwoxax/edit?js,output import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { constructor(){ super(); this.state = { red: 0, green: 0, blue: 0 } this.update = this.update.bind(this) } update(e){ this.setState({ ...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
lstNull/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
geonode/contrib/monitoring/frontend/src/components/organisms/header/index.js
simod/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import RaisedButton from 'material-ui/RaisedButton'; import CircularProgress from 'material-ui/CircularProgress'; import AutorefreshIcon from 'material-ui/svg-icons/action/autorenew'; import Back from 'material-ui/svg-...
Lumino/js/components/ControllerForm/TempControllerForm.js
evonove/lumino
import React from 'react'; import PropTypes from 'prop-types'; import { Field } from 'redux-form'; import { Text, View } from 'react-native'; import styles from './style'; import TextInput from '../WrappedComponents/TextInput'; import Picker from '../WrappedComponents/Picker'; /** * Input form component for configur...
src/svg-icons/notification/wifi.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWifi = (props) => ( <SvgIcon {...props}> <path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9...
frontend/app_v2/src/common/icons/ChevronUp.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary ChevronUp * @component * * @param {object} props * * @returns {node} jsx markup */ function ChevronUp({ styling }) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}> <path d="M0 0h24v2...
examples/todomvc/index.js
oliverturner/redux-devtools
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
lib/ui/src/modules/ui/components/layout/dimensions.js
rhalff/storybook
import PropTypes from 'prop-types'; import React from 'react'; import { polyfill } from 'react-lifecycles-compat'; import { baseFonts } from '@storybook/components'; const container = { position: 'absolute', padding: 5, bottom: 10, right: 10, backgroundColor: 'rgba(255, 255, 255, 0.5)', }; const dimensionS...
src/svg-icons/device/battery-30.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery30 = (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.33V15h10V5.33z"/><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
views/blocks/SearchBar/SearchBarInput/SearchBarInput.js
FairTex/team5
import React from 'react'; import './SearchBarInput.css'; import b from 'b_'; import {SearchBarInputString} from './../../../constants/strings'; export default class SearchBarInput extends React.Component { render() { const {searchString, onShowParams} = this.props; return ( <div classN...
public/js/14D.js
ritchieanesco/frontendmastersreact
/* Adding a header component */ import React from 'react' import { Link } from 'react-router' // type annotataions for data const {string} = React.PropTypes const ShowCard = React.createClass({ propTypes: { poster: string, title: string, year: string, description: string, imdbID: string }, r...
js/Terminal.react.js
Sable/McLab-Web
import classnames from 'classnames'; import React from 'react'; const {PropTypes, Component} = React; class TerminalLine extends Component { render() { return ( <div className="terminal-line"> {this.props.children} </div> ); } } class Terminal extends Component { render() { le...
frontend/src/components/dialog/confirm-disconnect-dingtalk.js
miurahr/seahub
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap'; import { gettext } from '../../utils/constants'; const propTypes = { formActionURL: PropTypes.string.isRequired, csrfToken: PropTypes.string.isRequired, t...
examples/todomvc/index.js
soidid/note-redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
websocket/websocket/index.android.js
hystolytc/tryout-01
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TextInput, TouchableHighlight } from 'react-native'; import './UserAgent' import io from 'socket.io-client' export default class websocket extends Component { constructor(props){ super(props) this.state = { ...
src/icons/CreditIcon.js
resmio/mantecao
import React from 'react' import Icon from '../Icon' const CreditIcon = props => <Icon {...props}> <g strokeWidth="0.65" fill="none" transform="translate(2.000000, 8.000000)"> <path d="M0 2C0 0.9 0.9 0 2 0L26 0C27.1 0 28 0.9 28 2L28 15.6C28 16.7 27.1 17.6 26 17.6L2 17.6C0.9 17.6 0 16.7 0 15.6L0 2ZM22.3 12....
node_modules/react-router-dom/node_modules/react-router/es/withRouter.js
pornvutp/tact
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/IsomorphicRelayRouterContext.js
denvned/isomorphic-relay-router
import IsomorphicRelay from 'isomorphic-relay'; import React from 'react'; import RelayRouterContext from 'react-router-relay/lib/RelayRouterContext'; export default class IsomorphicRelayRouterContext extends RelayRouterContext { constructor(props, context) { super(props, context); if (props.queryAggregator)...
src/parser/warrior/protection/modules/talents/AngerManagement.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import RESOURCE_TYPES from 'game/RESOURCE_T...
src/common/lib/redux-fields/fields.js
redcom/doctori-romani-in-berlin
// @flow weak import React from 'react'; import invariant from 'invariant'; import { path as ramdaPath } from 'ramda'; import { resetFields, setField } from './actions'; import isReactNative from '../../app/isReactNative'; type Path = string | Array<string> | (props: Object) => Array<string>; type Options = { path:...
lib/components/clear-input.js
gness1804/shoot-the-breeze
import React, { Component } from 'react'; import firebase, { reference, signIn } from '../firebase'; import { pick, map, extend } from 'lodash'; // import SubmitMessage from './submit-message.js'; class ClearInput extends React.Component { constructor(props) { super(props); } render () { return ( ...
nap/components/UserProfile.js
rabbotio/nap-react-native
import { gql, graphql } from 'react-apollo' import React from 'react' import Login from './Login' import Logout from './Logout' import { View, Text, } from 'react-native' const UserProfile = ({ loading, user, errors, accessToken }) => { if (errors && errors.length > 0) { console.log(JSON.stringify(errors))...
renderer/components/Onboarding/Steps/ConnectionDetailsTabs.js
LN-Zap/zap-desktop
import React from 'react' import { FormattedMessage } from 'react-intl' import { Tabs } from 'components/UI' import ConnectionDetailsContext from './ConnectionDetailsContext' import { FORM_TYPE_CONNECTION_STRING, FORM_TYPE_MANUAL } from './constants' import messages from './messages' class ConnectionDetailsTabs extend...
src/lib/SwitchComponent.js
MichaelCereda/react-native-form-generator
'use strict'; import React from 'react'; let { View, StyleSheet, Text, Switch} = require('react-native'); import {Field} from './Field'; export class SwitchComponent extends React.Component{ constructor(props){ super(props); this.state = { value: props.value, } } handleLayoutChange(e){ le...
fixtures/kitchensink/src/features/webpack/CssInclusion.js
altiore/webpack-react
/** * 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 from 'react'; import './assets/style.css'; export default () => <p id="feature-css-inclusion">We love useless text.</p>;
admin/client/App/screens/Item/components/EditFormHeader.js
creynders/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import { FormIconField, FormInput, ResponsiveText } from 'elemental'; import { Link } from 'react-router'; import Drilldown from './Drilldown'; import { GlyphButto...
frontend/src/components/repository-container/index.js
loganabsher/portfolio
'use strict'; import React from 'react'; import propTypes from 'prop-types'; import {connect} from 'react-redux'; import {allRepositoriesRequest} from '../../../actions/repo-actions.js'; import RepoTable from '../tables/repo-table'; class RepositoryContainer extends React.Component { constructor(props) { supe...
ajax/libs/react-instantsearch/4.0.0-beta.3/Dom.js
sashberd/cdnjs
/*! ReactInstantSearch 4.0.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
src/svg-icons/notification/bluetooth-audio.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationBluetoothAudio = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-...
views/invocation.js
rocky-jaiswal/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})...
examples/query-params/app.js
ksivam/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/query-params' }) class User extends React.Component { render() { let { userID } = this.props.params let { query } = thi...
codegen-web/view/src/components/ListItem.js
networknt/light-codegen
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class ListItem extends Component { render() { const { primaryText, style } = this.props; const { onTouchTap, leftIcon } = this.props; const styles = { root: { cursor: 'pointer', transition: 'all 0.25s eas...
app/javascript/mastodon/features/follow_requests/index.js
primenumber/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/MessageContent/Sticker/Sticker.js
nolawi/champs-dialog-sg
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import React from 'react'; import Image from '../../Image/Image'; export type Props = { className?: string, emoji: ?string, image: ?string, width: number, height: number, onClick?: (event: SyntheticMouseEvent) => any }; function Sticker(props: P...
src/svg-icons/alert/error-outline.js
xmityaz/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 ...
src/components/Table/table.js
hungtruongquoc/shipper_front
import React, { Component } from 'react'; import Pagination from '../Pagination/pagination'; class Table extends Component { render() { let tableClasses = ['table']; this.row = 0; if(this.props.striped) { tableClasses.push('table-striped'); } if(this.props.condensed) { tableClasses.pu...
node_modules/react-icons/fa/bookmark.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaBookmark = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.5 2.9q0.5 0 1 0.2 0.7 0.2 1.1 0.9t0.5 1.4v28.7q0 0.8-0.5 1.4t-1.1 0.9q-0.5 0.2-1 0.2-1.1 0-1.9-0.7l-9.8-9.5-9.9 9.5q-0.8 0.7-1.8 0.7-0.5 0-1-0.2-0.7-0.3-1.2-0.9t...
src/svg-icons/hardware/phone-android.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneAndroid = (props) => ( <SvgIcon {...props}> <path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/> </SvgIcon> ...
src/svg-icons/device/brightness-auto.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessAuto = (props) => ( <SvgIcon {...props}> <path d="M10.85 12.65h2.3L12 9l-1.15 3.65zM20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM14.3 ...
client/components/main.js
VaRt-io/V-aRt
import React, { Component } from 'react'; import { Route, Switch } from 'react-router-dom'; import {LandingPage, OurNavbar, AllArtists, SingleArtist, AllGalleries, SingleGallery, CanvasWrapper, GalleryCreate, SinglePainting, GalleryEdit, Signup, Signin, ArtistDashboard, VRNightScene, VRDesert, VRStarry, VRVanGo...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Divider/Page.js
pbogdan/react-flux-mui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dividerReadmeText from './README'; import DividerExampleForm from './Exam...
docs/src/app/components/pages/components/Stepper/Page.js
ruifortes/material-ui
import React from 'react'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import stepperReadmeText from './README.md'; import advancedReadmeText from './Advanced.md'; import HorizontalLinearStepper...
src/components/Registration/Registration.js
hack-duke/hackduke-ideate-website
import React from 'react' import regclasses from '../Registration/Registration.scss' export const Registration = () => ( <div> <div className={regclasses.ready}> Ready to go? </div> <a className={regclasses.button} href={'https://hackduke.typeform.com/to/nhQDIn?route_receive_participant=xxxxx'}> ...
frontend/src/components/posts-list/waypoint.js
1905410/Misago
/* jshint ignore:start */ import React from 'react'; import * as post from 'misago/reducers/post'; import ajax from 'misago/services/ajax'; import store from 'misago/services/store'; export default class extends React.Component { /* Super naive and de-facto placeholder implementation for reading posts on scroll ...
src/index.js
softage0/solid-online-services
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux' import {HashRouter as Router} from 'react-router-dom'; import store from './redux'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<Provider store={store}...
client/reactComponents/TankBody.js
elliotaplant/tanks
import React from 'react'; import { TANK_RADIUS } from '../../simulation/constants'; class TankBody extends React.Component { constructor(props) { super(props); this.radius = props.radius || TANK_RADIUS; this.material = props.material || 'color: red;' this.socketControlsDisabled = props.socketContro...
src/svg-icons/action/thumb-up.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbUp = (props) => ( <SvgIcon {...props}> <path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-...
src/views/ClimbView/ClimbView-test.js
Climb-social/react-climb-wall
import test from 'tape'; import React from 'react'; import { shallow } from 'enzyme'; import ClimbView from './ClimbView'; import ListView from '../ListView/ListView'; import ColumnView from '../ColumnView/ColumnView'; test('ClimbView output classes', assert => { const props = { collectionId: 'aaa' }; const...
app/components/biobasic.js
techfolios/electron-edmund
import React from 'react'; import ReactDOM from 'react-dom'; import { Form, Divider, Button, Accordion, Icon } from 'semantic-ui-react'; const path = require('path'); const io = require('../io.js'); const values = require('../values.js'); const parser = new io(values.folder); const _ = require("underscore"); class Bi...
src/DataTable/Table.js
tleunen/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import clamp from 'clamp'; import shadows from '../utils/shadows'; import TableHeader from './TableHeader'; import makeSelectable from './Selectable'; import makeSortable from './Sortable'; const propTypes = { class...
website/src/pages/404.js
honnibal/spaCy
import React from 'react' import { window } from 'browser-monads' import { graphql } from 'gatsby' import Template from '../templates/index' import { LandingHeader, LandingTitle } from '../components/landing' import Button from '../components/button' export default ({ data, location }) => { const { nightly, legac...
src/component/Card.js
Valtena/valt-code
import React from 'react'; import MDLComponent from '../utils/MDLComponent.js'; import LinkButton from './LinkButton.js'; class Card extends MDLComponent { render() { return ( <div className="mdl-card"> <section className="mdl-card__primary"> <h3 className="mdl-card__title">{this.prop...
src/Breadcrumb/Breadcrumb.js
yurizhang/ishow
/* @flow */ import React from 'react'; import PropTypes from 'prop-types'; import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法 import '../Common/css/Breadcrumb.css'; export default class Breadcrumb extends Component { getChildContext() { return { separator: this.props.sepa...
fields/types/url/UrlField.js
efernandesng/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'URLField', openValue () { var href = this.props.value; if (!href) return; if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) { href = 'http://' + href; } window...
benchmarks/dom-comparison/src/cases/SierpinskiTriangle.js
risetechnologies/fela
import { BenchmarkType } from '../app/Benchmark'; import { number, object } from 'prop-types'; import React from 'react'; import { interpolatePurples, interpolateBuPu, interpolateRdPu } from 'd3-scale-chromatic'; const targetSize = 10; class SierpinskiTriangle extends React.Component { static displayName = 'Sierpin...
src/todo/TodoCard.js
carlodicelico/reify
import React from 'react'; const TodoCard = (props) => { return ( <p className='notification is-warning'>todolist content</p> ); }; export default TodoCard;
src/components/lib/content.js
nswright11/Scarif
import React, { Component } from 'react'; import Footer from './footer.js'; import styles from './css/content.css'; export default class Content extends Component { render() { return( <div className="content"> <div className="parallax"></div> <div className...
src/svg-icons/image/tag-faces.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTagFaces = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.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 3.58 8 8-3.58 8-8 8zm3.5-9c....
src/components/App.js
mknudsen01/today
import React, { Component } from 'react'; import moment from 'moment'; // import CSSTransitionGroup from 'react-addons-css-transition-group'; import hash from 'object-hash'; import '../css/styles.css'; // import Activity from './Activity'; // import AddActivityForm from './AddActivityForm'; // import EditActivityForm...
src/components/back/Back.js
jahuk/bet-platform-react
import React from 'react'; import {Link} from 'react-router'; const Back = () => ( <div className="btn btn-default back-to-dashboard"> <Link to={'/'}>Back to dashboard</Link> </div> ); export default Back;
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
shenhzou654321/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
examples/fiddler/src/index.js
josepot/react-redux-scroll
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './App'; import configureStore from './store'; import reducer from './reducer'; const store = configureStore(reducer); ReactDOM.render( <Provider store={store} > <App /> </Provider>, documen...
src/index.js
oigami/mpj_converter_web
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './components/App'; import registerServiceWorker from './registerServiceWorker'; import injectTapEventPlugin from 'react-tap-event-plugin'; // import Mpj from './lib/mpj-converter'; // import file from './backup01.mpj'; ...
src/index.js
Botono/cloth_maps_ui
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import injectTapEventPlugin from 'react-tap-event-plugin'; import routes from './routes'; import configureStore from './store/c...
client/app/components/SigninForm/SigninForm.js
krouw/T.SIA-electron-blueprint
import React, { Component } from 'react'; import { hashHistory } from 'react-router'; import { Intent } from '@blueprintjs/core' export default class SigninForm extends Component { constructor(){ super(); this.state = { email: '', password: '', errors: {}, isValid:true } } o...
src/CommonComponent.js
BiyuHuang/web-app-demo
import React from 'react'; import './index.css'; const CommonComponent = () => (<div className="exampleApp">Hello, World! <b>It has succeed!</b></div>); export default CommonComponent;
.storybook/_Media_.stories.js
constelation/monorepo
// @flow import React from 'react' import { storiesOf, action } from '@kadira/storybook' // import View from '../packages/View' import _Media_ from '../packages/_Media_/dist' storiesOf('_Media_', module) .add('logs to console', () => ( <div style={{height: '200vh'}}> <_Media_ matches='(min-width: 500px)' ...
src/RoomplanSelector.js
domoticz/Reacticz
import React, { Component } from 'react'; import JSONClientSingleton from './util/JSONClientSingleton' class RoomplanSelector extends Component { constructor(props) { super(props); this.state = { names: [], idx: [], sceneIds: [] }; this.json = new JSONClientSingleton(); } comp...
app/components/H3/index.js
PokerGuy/react-boilerplate
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
src/svg-icons/maps/local-hotel.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHotel = (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> ); MapsLocalHotel = pu...
src/parser/shared/modules/spells/bfa/azeritetraits/CrystallineCarapace.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import { formatNumber, formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBo...
_gatsby/src/components/Bio/Bio.js
YannickDot/yannickdot.github.io
import React from 'react' import config from '../../../data/SiteConfig' import { rhythm } from '../../utils/typography' import avatar from './avatar.png' import SocialIcons from '../Contact/SocialIcons' class Bio extends React.Component { render() { return ( <div style={{ marginTop: rhyt...
admin/src/route/Home.js
zentrope/webl
// // Copyright (c) 2017 Keith Irwin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // // This program is distri...
ui/src/components/QuotesList.js
lucifurtun/myquotes
import React from 'react' import { connect } from 'react-redux' import { has, orderBy, toArray } from 'lodash' import Quote from './Quote' import { getQuotes } from '../redux/quotes' import { withRouter } from 'react-router-dom' import QuotesOverlay from "./QuotesOverlay"; import { RoutingParamsContext } from "../redux...
components/Tree.js
IsaacDurand/git-started
import React, { Component } from 'react'; import treeVisualization from './../visualizations/tree-visualization'; const d3 = require('d3'); const ReactDOM = require('react-dom'); export default class Tree extends Component { componentDidMount() { // This function runs when a new file/folder is added to the DOM....
src/components/MenuPanel/MenuPanel.js
aos2006/tesDeploy
import React from 'react'; import Transition from 'react-transition-group/Transition'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Burger from 'components/Burger/Burger'; import { Accordeon, AccordeonItem } from 'components/Accordeon'; import Link from 'components/Link/Link'; import cx from ...
src/components/common/LoadingSpinner.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import CircularProgress from '@material-ui/core/CircularProgress'; const LoadingSpinner = (props) => { const { size, padding } = props; const sizeToUse = ((size !== undefined) && (size !== null)) ? (size) : 30; const customStyle = (padding !== undefi...
src/routes/Home/components/TitleScreen/TitleScreen.js
RomelioTavas/may-i-go-out
import React from 'react' import Button from 'components/Button' import PropTypes from 'prop-types' import './TitleScreen.css' const propTypes = { onTimeIn: PropTypes.func.isRequired } const TitleScreen = (props) => ( <div className='title-screen-container'> <div className='title-screen-text'>May I go out?</d...
src/parser/demonhunter/havoc/modules/spells/DemonBite.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Events from 'parser/core/Events'; import Analyzer, { SELECTED_PLAYER } from 'pars...
components/Shared/UserTile.js
itssumitrai/git-issue-viewer
/** * Copyright 2016, Sumit Rai * Copyrights licensed under the New MIT License. See the accompanying LICENSE file for terms. */ 'use strict'; import React from 'react'; class UserTile extends React.Component { render() { const { user } = this.props; return ( <div className="user-...
curator-web/src/js/components/show/filmCover.js
rajeshnaroth/curator
import React from 'react' import { curry } from 'ramda' import Title from '../common/title' import Ratings from '../common/ratings' import Views from '../common/views' import Description from '../common/description' import { Link } from 'react-router' // <figure><img src={'https://i.ytimg.com/vi/' + props.id + '/hqdef...
src/components/svg/icon/Event.js
ryanabragg/VanguardLARP
import React from 'react'; import PropTypes from 'prop-types'; const Event = (props) => { const color = props.color == 'inherit' ? undefined : props.color; const aria = props.title ? 'svg-event-title' : '' + props.title && props.description ? ' ' : '' + props.description ? 'svg-event-desc' : ''; return (...
node_modules/react-native/local-cli/generator/templates/index.ios.js
crod93/googlePlacesEx-react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class <%= name %> extends Component { render() { return ( <View style={styles.container}> <T...
examples/with-eslint/src/App.js
jaredpalmer/razzle
import './App.css'; import React from 'react'; const App = () => <div>Welcome to Razzle.</div>; export default App;
fields/types/markdown/MarkdownColumn.js
kumo/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var MarkdownColumn = React.createClass({ displayName: 'MarkdownColumn', propTypes: { col: React.PropTypes.object, data: React.Pr...
src/entypo/GameController.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--GameController'; let EntypoGameController = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path fillRule="evenodd" clipRule="evenodd" d="M19.444,9.361c-0.882-4.926-2.854-6.379-3.903-6....
src/components/SelectLanguage.js
angeloocana/tic-tac-toe-ai
import React from 'react'; import PropTypes from 'prop-types'; import Br from './flags/Br'; import Ca from './flags/Ca'; import Fr from './flags/Fr'; import Es from './flags/Es'; import { InvisibleSpan } from '../components/Invisible'; import styled from 'styled-components'; import Link from 'gatsby-link'; import {Form...
src/common/components/spinner/index.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import spinnerDark from './spinner-dark.svg'; import spinnerLight from './spinner-light.svg'; import styles from './spinner.css'; export default class Spinner extends Component { render() { let size = this.props.size || '100%'; ...
ajax/libs/react-instantsearch/4.1.0-beta.2/Dom.js
joeyparrish/cdnjs
/*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...