path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
todo-app/src/App.js
iproduct/course-node-express-react
import React from 'react'; import './App.css'; class App extends React.Component { constructor(props) { super(props); this.state = { items: [], text: '' }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } render() { return ( <div> ...
src/components/RangeSlider.js
guestn/Montagram
'use strict'; import React from 'react'; import { PropTypes } from 'react' export default class RangeSlider extends React.Component { constructor(props) { super(props); //this.handler = this.handler.bind(this); } handler(e) { this.props.handleSlider(e.target.value) } render() { //let { v...
mlflow/server/js/src/experiment-tracking/components/artifact-view-components/ShowArtifactPage.js
mlflow/mlflow
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getExtension, IMAGE_EXTENSIONS, TEXT_EXTENSIONS, MAP_EXTENSIONS, HTML_EXTENSIONS, PDF_EXTENSIONS, } from '../../../common/utils/FileUtils'; import { getLoggedModelPathsFromTags } from '../../../common/utils/TagUtils'; imp...
src/components/TabHeader.js
chiefwhitecloud/running-man-frontend
import React from 'react'; export default class extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(event) { event.preventDefault(); this.props.onSelected(this.props.index); } render() { const active = this.props.isA...
src/components/html5/plain-wordmark/Html5PlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './Html5PlainWordmark.svg' /** Html5PlainWordmark */ function Html5PlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'Html5PlainWor...
docs/app/Examples/views/Statistic/Variations/EvenlyDivided.js
jcarbo/stardust
import React from 'react' import { Icon, Image, Statistic } from 'stardust' const { Group, Label, Value } = Statistic const EvenlyDivided = () => ( <Group widths='four'> <Statistic> <Value>22</Value> <Label>Saves</Label> </Statistic> <Statistic> <Value text> Three <br ...
src/pages/index.js
ScrantonHacks/website
import React, { Component } from 'react'; import Box from 'grommet/components/Box'; import HackHero from '../components/HackHero'; import BackgroundParallaxVideo from '../components/BackgroundParallaxVideo'; import SubscribeSplash from '../components/SubscribeSplash'; import SponsorCrumb from '../components/SponsorCru...
src/fields/StringField.js
de44/kb-ui
import React from 'react'; import PropTypes from 'prop-types'; import ValueField from './ValueField'; const StringField = ({ value, model, options }) => { const { render = (val) => val } = options; return ( <ValueField valueType="string" options={options}> <span className="string-value"> {render...
react-flux-mui/js/material-ui/src/svg-icons/device/battery-30.js
pbogdan/react-flux-mui
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 ...
src/index.js
qf3/card-games-vocabulary
import React from 'react' import ReactDOM from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import thunk from 'redux-thunk' import createLogger from 'redux-logger' import App from './App' import reducer from './reducers/reducer' import './css/public/normal...
app/javascript/mastodon/components/domain.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
packages/material-ui-icons/src/KeyboardHide.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let KeyboardHide = props => <SvgIcon {...props}> <path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H5V9h2v...
docs/app/Examples/elements/Label/Types/LabelExamplePointingColored.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Divider, Form, Label } from 'semantic-ui-react' const LabelExamplePointing = () => ( <Form> <Form.Field> <input type='text' placeholder='First name' /> <Label basic color='red' pointing>Please enter a value</Label> </Form.Field> <Divider /> <Form.Field>...
src/client/app/footer.react.js
grabbou/este
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; import {msg} from '../intl/store'; class Footer extends Component { render() { return ( <footer> <p> <FormattedHTMLMessage message={msg('app.madeByHtml')} />...
webui/pages/missions/index.js
stiftungswo/izivi_relaunch
import React from 'react'; import { Container } from 'semantic-ui-react'; import SubNavigationLayout from '../../components/missions/SubNavigationLayout'; import Scheduling from '../../components/missions/SchedulingContainer'; export default ({ ...rest }) => ( <SubNavigationLayout {...rest}> <Container> <S...
src/decorators/withViewport.js
soniwgithub/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
src/icons/ArchiveIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ArchiveIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M41.09 10.45l-2.77-3.36C37.76 6.43 36.93 6 36 6H12c-.93 0-1.76.43-2.31 1.09l-2.77 3.36C6.34 11.15 6 12.03 ...
src/components/Search/index.js
uppermanis/react-course
import React from 'react'; import { withRouter } from 'react-router'; import { debounce } from 'lodash'; import s from './styles'; class Search extends React.Component { constructor(props) { super(props); this.handleOnKeyDown = this.handleOnKeyDown.bind(this); } handleOnKeyDown() { if (this.search.v...
src/svg-icons/maps/local-pharmacy.js
xmityaz/material-ui
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...
actor-apps/app-web/src/app/components/common/Banner.react.js
damoguyan8844/actor-platform
import React from 'react'; import BannerActionCreators from 'actions/BannerActionCreators'; class Banner extends React.Component { constructor(props) { super(props); if (window.localStorage.getItem('banner_jump') === null) { BannerActionCreators.show(); } } onClose = () => { BannerActionC...
src/components/ChartMaker/Measure.js
BenGoldstein88/redux-chartmaker
import React from 'react'; import Beat from './Beat'; import MeasureContextMenu from './MeasureContextMenu'; export default class Measure extends React.Component { constructor(props) { super(props); this.state = { beats: [], beatsPerMeasure: 4, context: false } this.populateBeats = ...
dist/src/components/SideBar/index.js
radiovisual/radiovisual.github.io
import React, { Component } from 'react'; class SideBar extends Component { render() { return ( <div id="left-menu"> <div id="frame"> <div id="top"> <small>WELCOME TO</small> <h1>NUMETRIC<span>LABS</span></h1> </div> <...
fields/types/textarea/TextareaField.js
riyadhalnur/keystone
import Field from '../Field'; import React from 'react'; module.exports = Field.create({ displayName: 'TextareaField', renderField () { var styles = { height: this.props.height }; return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged...
demo/reactWebDemo/src/components/lockScreen/index.js
reggieroby/devpack
import React, { Component } from 'react'; import './index.css' import {History} from '../History' export class LockScreen extends Component { constructor(props) { super(props); let lockHistory = [{ "type": "lock", "state": "locked", "last_updated_at": 1508386138, "slug": "apt-143-lock...
src/icons/GlyphWindow.js
ipfs/webui
import React from 'react' const GlyphWindow = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M76.11 62.86H55.44V39.67h20.67zm-17.67-3h14.67V42.67H58.44z' /> <path d='M56.246 42.252l2.301-1.926L75.334 60.39l-2.3 1.925z' /> <path d='M75.16 22.89H25c-4.73 0-9 4.6-9 9.65V68a9.23 9.23 0 0 0 9 9.11...
demo/src/CodeExample2.js
Sharlaan/material-ui-superselectfield
import React, { Component } from 'react'; import FlatButton from 'material-ui/FlatButton/FlatButton'; import SuperSelectField from 'material-ui-superselectfield'; const containerStyle = { padding: 40, paddingBottom: 0, display: 'flex', flexDirection: 'column', alignItems: 'center', flex: 1, }; const displ...
src/components/Layout/Footer/FooterInfo/ChatModal/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import Chat from 'components/Chat' import ChatInvitation from 'components/Chat/Invitation' import ChatImage from '../../images/ask.svg' const ChatModal = (props) => { let buttonMessage = (<span><img src={ChatImage} alt='' aria-hidden='true' /> Chat with a ...
src/components/Header/Header.js
breezykermo/lachlankermode.com
import React from 'react' import Link from 'gatsby-link' import { Grid, Breakpoint, Span } from 'react-responsive-grid' import './Header.scss' const authorName = 'Lachlan Kermode' class Header extends React.Component { render () { return ( <Grid columns={12}> <Breakpoint minWidth={1200} className="...
html.js
thedgbrt/resume
import React from 'react' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes () { return { body: React.PropTypes.string, } }, render () { const head = Helmet.rewind() let css...
js/components/loaders/Spinner.android.js
bavuongco10/react-native-school-board
/* @flow */ import React from 'react'; import ProgressBarAndroid from 'react-native'; import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; import computeProps from 'native-base/Utils/computeProps'; export default class SpinnerNB extends NativeBaseComponent { prepareRootProps() { c...
examples/huge-apps/routes/Messages/components/Messages.js
jbbr/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
mobile/src/components/navbar.js
sradevski/homeAutomate
import React from 'react'; import { AppRegistry, StyleSheet, Text, View, ActivityIndicator, Platform } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import Button from 'react-native-button'; export default function NavBar({ isLoading, refreshClickHandler }) { return ( <View style={[sty...
src/components/Message/Message.js
gxoptg/Colr
import React from 'react'; import { connect } from 'react-redux'; import styles from './Message.css'; const Message = ({ children, okButtonText, onOkClicked }) => { return <div className={styles.message}> <div className={styles.text}> {children} </div> <button className={styles....
src/svg-icons/maps/local-parking.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalParking = (props) => ( <SvgIcon {...props}> <path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/> </SvgIcon> ); MapsLocalParking = pure(MapsLocalParking...
examples/with-redux-observable/pages/index.js
BlancheXu/test
import React from 'react' import Link from 'next/link' import { of, Subject } from 'rxjs' import { StateObservable } from 'redux-observable' import { connect } from 'react-redux' import CharacterInfo from '../components/CharacterInfo' import { rootEpic } from '../redux/epics' import * as actions from '../redux/actions'...
node_modules/react-bootstrap/es/Fade.js
chenjic215/search-doctor
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React fr...
src/js/admin/categories/categories/categories.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import AddCategoryDialog from '../add-category-dialog' import ConfirmDialog from '../confirm-dialog' import OperationBar from '../operation-bar' import CategoryTable from '../category-table' import { fetchCategoryData } from '$actions/categories' // impo...
information/blendle-frontend-react-source/app/modules/signup/views/kiosk/SelectableIssue.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Img from 'components/Image'; import { prefillSelector, providerById } from 'selectors/providers'; import classNames from 'classnames'; class SelectableIssue extends React.Component { static propTypes = { issue: PropTypes.object.isRequired, ...
app/javascript/mastodon/components/skeleton.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>&zwnj;</span>; Skeleton.propTypes = { width: PropTypes.number, height: PropTypes.number, }; export default Skeleton;
src/components/additional/index.js
AliaksandrMamonenka/weather-react
import React from 'react'; import './style.less'; class AditionalInfo extends React.Component { render() { return ( <div className="additional-info_wrapper"> <div className="additional-info_wind-direction"> ff </div> <ul clas...
src/svg-icons/communication/dialer-sip.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationDialerSip = (props) => ( <SvgIcon {...props}> <path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ...
js/app/signin/handler.js
monetario/web
'use strict'; import React from 'react'; import {Router, Route, Link} from 'react-router' import Reflux from 'reflux'; import Store from './store'; import SignInForm from './components'; var SignInHandler = React.createClass({ mixins: [ Reflux.listenTo(Store, 'onStoreUpdate') ], getInitialState() { ...
packages/spust-koa/src/Files.js
michalkvasnicak/spust
// @flow import koaStaticCache from 'koa-static-cache'; import React from 'react'; import { type Context as ServerContext, serverContextType } from './Server'; type DefaultProps = { dynamic: boolean, }; export type Props = { alias?: { [key: string]: string }, buffer?: boolean, cacheControl?: string, dir: ...
src/shared/components/App.js
dherault/Playlister
import React from 'react'; import ac from '../state/actionCreators'; import DevMenu from './DevMenu'; class App extends React.Component { static runPhidippides(renderProps, sessionUserId) { return [{ id: 'appUser', actionCreator: ac.readUser, getParams: () => sessionUserId ? ({ id: sessionUs...
docs/client/components/shared/Heading/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import styles from './styles.css'; export default class Heading extends Component { render() { let style; switch (this.props.level) { case 2: style = styles.level2; break; case 3: style = styles.level3; break; case 4...
src/routes/Todo/components/Footer.js
cedzz/react-redux-learn
import React from 'react'; import FilterLink from './FilterLink'; const Footer = () => { return ( <p> <FilterLink filter="SHOW_ALL" > ALL </FilterLink> {' '} <FilterLink filter="SHOW_ACTIVE" > ACTIVE </FilterLink> {' '} <Filt...
src/DropdownDemo.js
sparty02/react-toolbox-demo
import React from 'react'; import Dropdown from 'react-toolbox/lib/dropdown'; class DropdownDemo extends React.Component { state = { albumSelected: 3, countrySelected: 'ES-es' }; albums = [ { value: 1, artist: 'Radiohead', album: 'In Rainbows', img: 'http://www.clasesdeperiodismo.com/wp-content/uplo...
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js
nathanmarks/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import areIntlLocalesSupported from 'intl-locales-supported'; let DateTimeFormat; /** * Use the native Intl.DateTimeFormat if available, or a polyfill if not. */ if (areIntlLocalesSupported(['fr'])) { DateTimeFormat = global.Intl.DateTime...
src/components/ContextMenuPopupTrigger.js
dahel/react-context-menu-popup
import React from 'react'; class ContextMenuPopupTrigger extends React.Component { render() { return ( <div className={this.getClassName()} onClick={this.handleClick.bind(this)} style={this.props.style} >{this.props.children}</div> ) } getClassName() { return this.props.className || 'contex...
app/js/components/Home.js
dYb/react-boilerplate
import React from 'react'; import { Link } from 'react-router'; export default class Home extends React.Component { constructor(props) { super(props); } render(){ console.log('home') let names = ['world', 'react'] const symbol = Symbol("key") console.log(symbol) return ( <div classN...
stories/react/PopupMenu.stories.js
onap-sdc/sdc-ui
import React from 'react'; import Examples from './utils/Examples.js'; import PopupMenu from '../../src/react/PopupMenu.js'; import PopupMenuItem from '../../src/react/PopupMenuItem.js'; import HTMLPopupMenu from '../../components/menu/popup-menu.html'; import HTMLPopupMenuRelative from '../../components/menu/relative...
src/components/BookingForm/Notes.js
humancatfood/bat-fe-test
import React from 'react'; import PropTypes from 'prop-types'; import { TextField } from '@material-ui/core'; function Notes ({ booking = {}, onChange: onChangeProp /* loading, errors */ }) { const onChange = e => onChangeProp(e.target.name, e.target.value); return ( <TextField fullWidth mx="...
src/js/components/Settings.js
samogami/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; export default class Settings extends Component { componentDidMount() { console.warn("Settings is deprecated and will be removed soon." + "Please use Tiles instead."); } render() { var p...
src/svg-icons/maps/local-play.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPlay = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4....
src/svg-icons/action/g-translate.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGTranslate = (props) => ( <SvgIcon {...props}> <path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4...
examples/todo/js/components/TodoListFooter.js
almasakchabayev/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
src/components/Author.js
Khaledgarbaya/chocolate-free-website
import React from 'react' const Author = ({author})=> { return ( <div className="flex flex-wrap justify-center items-center font-paragraph mt-6 border-t p-2"> <div className="w-full sm:w-1/4 text-center"> { author.avatar && author.avatar.resolutions.src && <img ...
react/src/components/modals/Mask.js
sparkdesignsystem/spark-design-system
import React from 'react'; import PropTypes from 'prop-types'; import noop from 'lodash/noop'; function ModalMask({ clicked, analyticsString }) { return ( // eslint-disable-next-line jsx-a11y/click-events-have-key-events // key events are handled by the parent component <div data-sprk-modal-mask="t...
packages/material-ui-icons/src/LocationOn.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LocationOn = props => <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2....
demo/components/form/FormOptions.js
f0zze/rosemary-ui
import React from 'react'; import {FormField} from '../../../src'; import OptionsTable from '../../helper/OptionsTable'; export default () => { let propDescription = { }; return ( <div> FormField: <OptionsTable component={FormField} propDescription={propDescription} /> ...
webpack/components/pages/not_found_page.js
macbury/BudgetNinja
import React from 'react'; /** * Render not found page information! */ export default class NotFoundPage extends React.Component { render() { return <h1>NotFound</h1> } }
src/components/icons/InfluencerIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const InfluencerIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <circle cx="9" cy="9" r="4"/> <path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.7...
packages/react-dom/src/shared/checkReact.js
kaushik94/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import invariant from 'shared/invariant'; invariant( React, 'ReactDOM was loaded befor...
hapiApp/source/routes.js
raydecastro/example-above-the-fold-hapijs
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/HomePage'; import AboutPage from './components/about/AboutPage'; import CoursesPage from './components/course/CoursesPage'; import AboveTheFold from "./components/abov...
packages/reactor-kitchensink/src/examples/FormFields/DatePickerField/DatePickerField.js
sencha/extjs-reactor
import React from 'react'; import { FormPanel, DatePickerField } from '@extjs/ext-react'; export default function DatePickerFieldExample() { return ( <FormPanel shadow> <DatePickerField width={150} value={new Date()} destroyPickerOnHide ...
src/components/header.js
dalbinaco/dalbinaco.github.io
import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; import { space, fontSize } from 'styled-system'; import { Link } from 'gatsby'; const Wrapper = styled.header` ${space} `; const Title = styled.h1.attrs(() => ({ fontSize: 5, px: 2, py: 1, }))` ${fontSize}...
src/components/horizontal-grid-lines.js
ronlobo/building-os-charts
import React from 'react'; import getTicks from 'decorators/get-ticks'; import getTickY from 'decorators/get-tick-y'; import setStateFromProps from 'decorators/set-state-from-props'; @getTicks @getTickY @setStateFromProps export default class HorizontalGridLines extends React.Component { static propTypes = { nu...
src/package/SlateEditor/SlateContent.js
abobwhite/slate-editor
import React from 'react' import classnames from 'classnames' import { Editor } from 'slate-react' export default ({ className, wrapperStyle, style, state, outerState, plugins, onChange, changeState, children, ...rest }) => { const { readOnly } = outerState return ( <div className={classna...
website/src/components/grid.js
explosion/thinc
import React from 'react' import classNames from 'classnames' import classes from '../styles/grid.module.sass' export default ({ layout = 'auto', children }) => { const gridClassNames = classNames(classes.root, { [classes.feature]: layout === 'feature', }) return <div className={gridClassNames}>{c...
src/components/main/filterableRecipeList.js
emilmannfeldt/ettkilomjol
import React, { Component } from 'react'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import PropTypes from 'prop-types'; import Recipe from '../recipe/recipe'; import Searchbar from '../search/searchbar'; import QuickTags from '../search/quickTags'; import Sort fro...
src/routes/register/index.js
fustic/here-hackaton
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Register from './Registe...
common/components/Member.js
nikgraf/redux-universal-app
/* @flow */ import React from 'react'; const Member = ({member}: Object): Object => <div> {member.get('name')} - {member.get('age')} </div> ; export default Member;
src/pages/404.js
quatomic/www.quatomic.com
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
src/index.js
googlecreativelab/morse-speak-demo
// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
app/Home.js
cmilfont/zonaextrema
import React, { Component } from 'react'; import Title from './components/toolbar/Title'; import Menu from './components/toolbar/Menu'; import AddButton from './components/toolbar/AddButton'; export default class Home extends Component { render() { const menu = <Menu />; return ( <di...
packages/material-ui-icons/src/FormatAlignLeft.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" /></g> , 'FormatAlignLeft');
test/test_helper.js
darknight1983/React_Youtube_searchSite
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/Spring.js
royriojas/react-motion
import React from 'react'; import components from './components'; module.exports = components(React);
app/scripts/components/Footer.js
felipemrodrigues/react-starter
import React from 'react'; import FilterLink from '../containers/FilterLink'; const Footer = () => ( <section className="footer"> <div className="container"> <p> Show: {', '} <FilterLink filter="SHOW_ALL"> All </FilterLink> {', '} <FilterLink filter...
examples/simple/components/User.js
dlmr/react-router-redial
import React, { Component } from 'react'; import { provideHooks } from 'redial'; import fetch from 'isomorphic-fetch'; @provideHooks({ fetch: ({ params, setProps, getProps }) => { if (!getProps().user || getProps().user.login !== params.id) { return fetch(`https://api.github.com/users/${params.id}`) ...
src/views/SignupView.js
mjosh954/mtg-toolbox
import React from 'react'; import { connect } from 'react-redux'; import AddDraftPlayerModal from '../components/AddDraftPlayerModal'; import PlayerSignupList from '../components/PlayerSignupList'; import { actions as signupActions } from '../redux/modules/signup'; const mapStateToProps = (state) => ({ signup: state...
src/icons/Filter2Icon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class Filter2Icon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 10H2v32c0 2.21 1.79 4 4 4h32v-4H6V10zm36-8H14c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 ...
src/dots.js
BenjaminNeilDavis/react-slick
'use strict'; import React from 'react'; import classnames from 'classnames'; var getDotCount = function (spec) { var dots; dots = Math.ceil(spec.slideCount / spec.slidesToScroll); return dots; }; export var Dots = React.createClass({ clickHandler: function (options, e) { // In Autoplay the focus stays...
react/redux/client/src/components/sales/rotator-nav.js
sabertazimi/st-proj
import React, { Component } from 'react'; class RotatorNav extends Component { renderNav() { let toMap = []; for (let i = 0; i < this.props.length; i++) { toMap.push( <li key={i + "nav"} value={i} className={i == this.props.active ? "slider-nav-bullet active" : "slide...
src/modules/Videos.js
Peizhong/jsdemo
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchFunctionLocation } from '../actions'; const mapStateToProps = (state) => { }; const mapDispatchToProps = dispatch => ({ dispatch, }); class Videos extends React.Component { componentDidMount() { const { dispatch ...
app/components/Publications/publicationSystems.js
mhoffman/CatAppBrowser
import React from 'react'; import PropTypes from 'prop-types'; import Table, { TableBody, TableCell, TableHead, TableRow, TableFooter, TablePagination, TableSortLabel, } from 'material-ui/Table'; import Paper from 'material-ui/Paper'; import { withStyles } from 'material-ui/styles'; import SingleStructur...
src/App.js
veneziacarl/draggable-list
import React, { Component } from 'react'; import Container from './Container' import { colors } from './colors' export class App extends Component { render() { const styles = { width: '600', margin: '0 auto', background: colors.lightGray, padding: '20', border: '1px solid ' + colors...
client/authentication/components/partials/CheckboxWithLabel.js
Haaarp/geo
import React from 'react'; import { FormGroup } from 'react-bootstrap'; import Checkbox from 'konux/common/components/Checkbox'; class CheckboxWithLabel extends React.Component { render () { return ( <FormGroup> <Checkbox id="check1"> {this.props.label} ...
src/js/components/icons/base/PlatformSwift.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/date-time-picker3/index.js
SodhanaLibrary/react-examples
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './app'; render( <AppContainer><App/></AppContainer>, document.querySelector("#app")); if (module.hot) { module.hot.accept('./app.js', () => { const App = require('./app.js').default; ...
app/viewControllers/LandingPage/v1/Membership.js
Evyy/cffs-ui
'use strict'; import React from 'react'; import Spread from './Spread'; import {Link as ScrollLink} from "react-scroll"; import SpreadHeading from "../components/SpreadHeading"; let benefits = [ { title: 'Member-only Pricing', icon: 'ion-ios-nutrition-outline', body: 'Members receive 5% of...
app/javascript/mastodon/components/status_list.js
3846masa/mastodon
import React from 'react'; import Status from './status'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ScrollContainer } from 'react-router-scroll'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import LoadMore from './load_more'; import Immuta...
examples/huge-apps/routes/Course/components/Dashboard.js
bs1180/react-router
import React from 'react' class Dashboard extends React.Component { render() { return ( <div> <h3>Course Dashboard</h3> </div> ) } } export default Dashboard
src/modules/weather/containers/Weather.js
emadalam/mesmerized
import React, { Component } from 'react'; import WeatherComponent from '../components/Weather'; import * as Actions from '../utils/actions'; import ConnectedStoreHOC from '../utils/connect.store.hoc'; const GEO_OPTIONS = { enableHighAccuracy: true }; const cacheEnabled = true; class Weather extends Component { ha...
src/index.js
leohahn/TIM-frontend
import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { Router, browserHistory } from 'react-router' import ReduxToastr from 'react-redux-toastr' import routes from './routes' import configureStore from './store/configureStore' // eslint-disabl...
addons/themes/defaultTheme/default/includes/HomeContentWithPage.js
rendact/rendact
import React from 'react'; const HomeContentWithPage = (props) => ( <div> {props.data && <div className="blog_box"> <div className="blog_grid"> { props.data.imageFeatured && <a href="single.html"> <img src={props.data.imageFeatured.blobUrl} className="img-responsive" alt=""/> </a> ...
src/components/common/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet4Bar = (props) => ( <SvgIcon {...props}> <path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/> </SvgIcon> ); DeviceSignalCellularConnectedNoInternet4Bar = pur...
app/components/RepositoryCheckout.js
yneves/atom-orbital-command
'use babel'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autoBind from 'class-autobind'; import lodash from 'lodash'; import RepositoryBranch from './RepositoryBranch'; export default class RepositoryCheckout extends Component { static propTypes = { runningGit: PropTypes...
src/docs/apiExamples/PieChart.js
recharts/recharts.org
import React from 'react'; import { PieChart, Pie } from 'recharts'; const data01 = [ { name: 'Group A', value: 400 }, { name: 'Group B', value: 300 }, { name: 'Group C', value: 300 }, { name: 'Group D', value: 200 }, { name: 'Group E', value: 278 }, { name: 'Group F', value: 189 }, ]; const data02 = [ ...
news/routes/Featured/Featured.js
MiloATH/FreeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import { Image } from 'react-bootstrap'; import Helmet from 'react-helmet'; import { getFeaturedList } from '../../utils/ajax'; import { Loader, Spacer } from '../../../common/app/helperComponen...