path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/AssessmentEntry/CreateEntryRow.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import Select from 'react-select'; import { getDateWithDateAndTime, dateFormat, between } from '../../utils'; const CreateEntryRowView = (props) => { const { id, name, answers, questions, assessmentId, ...
src/svg-icons/av/closed-caption.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvClosedCaption = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5...
src/routes/Zen/components/Zen.js
jaronoff97/listmkr
/* @flow */ import React from 'react' import classes from './Zen.scss' import type { ZenObject } from '../interfaces/zen' type Props = { zen: ?ZenObject, saved: Array<ZenObject>, fetchZen: Function, saveCurrentZen: Function } export const Zen = (props: Props) => ( <div> <div> <h2 className={class...
presentation/index.js
ryyppy/csp-talk
// @flow // Import React import React from 'react'; // Import Spectacle Core tags import { Code, CodePane, List, ListItem, Image, Text, Deck, Heading, Slide, Spectacle, } from 'spectacle'; import CodeSlide from 'spectacle-code-slide'; import DemoBox from './DemoBox'; import ex1 from '../examples...
docs/app/Examples/collections/Grid/Content/GridExampleColumns.js
vageeshb/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleColumns = () => ( <Grid> <Grid.Row> <Grid.Column width={8}> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column width={8}> <Image src='http://...
blueocean-material-icons/src/js/components/svg-icons/device/battery-50.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBattery50 = (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.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13H7z"/> </Sv...
packages/cf-component-icon/src/reactsvgs/Door.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; const Door = ({ className, label }) => ( <svg className={className} aria-label={label} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > <path d="M13.39,1.339H2.58v12.14l8.346,1.951V13.479H13.42V1.339ZM7.675,8.926A1.166,1.166...
components/react-semantify/src/elements/label.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; import ColorSelector from '../mixins/colorSelector'; import TypeSelector from '../mixins/typeSelector'; import {Unit} from '../commons/unit'; let defaultClassName = 'ui label'; const Label = React.createClass({ mixins: [ClassGenerato...
dpxdt/server/static/release-config/src/ConfigBrowserStack.js
bslatkin/dpxdt
/* @flow */ import React, { Component } from 'react'; import { ControlLabel, } from 'react-bootstrap'; import FormGroupControl from './FormGroupControl.js'; type ConfigBrowserStackProps = { buildID: string, fields: Object, }; const ConfigBrowserStack = (props: ConfigBrowserStackProps) => { const { fields...
packages/react-router-redux/examples/BasicExample.js
OpenGov/react-router
import React from 'react' import { render } from 'react-dom' import { connect, Provider } from 'react-redux' import { ConnectedRouter, routerReducer, routerMiddleware } from 'react-router-redux' import { createStore, applyMiddleware } from 'redux' import createHistory from 'history/createBrowserHistory' import { Link...
pages/react.js
frontendyteam/www.frontendy.com
import React from 'react' import DocumentTitle from 'react-document-title' import { config } from 'config' export default class ReactComponent extends React.Component { constructor () { super() this.state = { count: 0 } } handlePlusClick () { this.setState({ count: this.state.count + 1 }) } han...
packages/react-error-overlay/src/components/ErrorOverlay.js
gutenye/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. */ /* @flow */ import React, { Component } from 'react'; import { black } from '../styles'; import type { Node as ReactNode } from 'react'...
src/parser/rogue/subtlety/modules/features/checklist/Component.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist2'; import Rule from 'parser/shared/modules/features/Checklist2/Rule'; import Requirement from 'parser/shared/modul...
client/src/components/TreeDropdownField/TreeDropdownField.js
silverstripe/silverstripe-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import fieldHolder from 'components/FieldHolder/FieldHolder'; import fetch from 'isomorphic-fetch'; import Select from 'react-select'; import * as treeDropdown...
Libraries/Text/Text.js
esauter5/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/Player/Player.js
tosFa/react-cross-platform-boardgame-example
'use strict'; import React from 'react'; import appConstants from '../../constants/appConstants'; import Base from './PlayerBase' import {connect} from 'react-redux'; import {mapStateToProps} from './connectToStore'; class PlayerPresentation extends Base { render() { return ( <div className={'play...
src/demos/kepler.gl/2-load-data/src/button.js
uber-common/vis-academy
import React from 'react'; const buttonStyle = { position: 'absolute', zIndex: 100, bottom: 0, right: 0, width: '120px', height: '40px', backgroundColor: '#1f7cf4', color: '#FFFFFF', cursor: 'pointer', border: 0, borderRadius: '3px', fontSize: '12px', margin:'30px', }; const Button = ({onCli...
src/router/routes.js
nkprince007/muZic-electron
import { IndexRedirect, Route } from 'react-router'; import AlbumDetailed from '../components/Library/AlbumDetailed.react'; import Albums from '../components/Library/Albums.react'; import App from '../components/App.react'; import AppActions from '../actions/AppActions'; import Library from '../components/Library/Li...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
scyankai/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
app/components/List/index.js
koolkt/react-coloc
import React from 'react'; import styles from './styles.css'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items && props.items.length) { content = props.items.map((item, index) => ( <ComponentToRender key=...
client/src/App.js
ddrscott/sql_probe
import React, { Component } from 'react'; import './App.css'; import EventDetails from './components/EventDetails'; import EventsSummary from './components/EventsSummary/EventsSummary'; import EventTimeline from './components/EventTimeline'; import PanelSplit from './components/PanelSplit'; export default class extend...
docs/src/sections/GlyphiconSection.js
Sipree/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function GlyphiconSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
node_modules/react-bootstrap/es/Popover.js
premcool/getmydeal
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/forms/SearchField.js
emfmesquita/beyondhelp
import { ControlLabel, FormGroup } from 'react-bootstrap'; import React, { Component } from 'react'; import AsyncSelect from 'react-select/async'; import SelectUtils from './SelectUtils'; import { createFilter } from 'react-select'; class SearchField extends Component { constructor(props) { super(props); ...
ajax/libs/react-instantsearch/3.3.2/Dom.js
sashberd/cdnjs
/*! ReactInstantSearch 3.3.2 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
StarterRNP/src/screens/common/Input.js
khanhqd/ProjectOT1
import React, { Component } from 'react'; import { View, Text, TextInput } from 'react-native'; import CardSection from './CardSection'; const Input = ({ title, value, onChangeText, placeholder}) => { return( <View style={styles.box}> <View style={styles.titleContainer}> <Text style={styles.textTit...
admin/client/App/screens/List/index.js
matthewstyers/keystone
/** * The list view is a paginated table of all items in the list. It can show a * variety of information about the individual items in columns. */ import React from 'react'; // import { findDOMNode } from 'react-dom'; // TODO re-implement focus when ready import numeral from 'numeral'; import { connect } from 'rea...
examples/02 Dynamic Menus/Stress Test/index.js
jchristman/react-context-menus
import React, { Component } from 'react'; import Body from './body'; export default class SingleTargetApp extends Component { constructor(props) { super(props); } render() { return ( <div> <p> <b><a href='https://github.com/jchristman/react-...
Inspector/js/inspector.js
mtxs007/WebDriverAgent
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
src/svg-icons/notification/disc-full.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDiscFull = (props) => ( <SvgIcon {...props}> <path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/> ...
src/views/components/multimedia/StreamFileList.js
Domiii/project-empire
import map from 'lodash/map'; import size from 'lodash/size'; import isEqual from 'lodash/isEqual'; import fs from 'bro-fs'; import moment from 'moment'; import filesize from 'filesize'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { dataBind } from 'dbdi/react'; import FAIco...
src/withGettext.js
eugene-manuilov/react-gettext
import React from 'react'; import hoistNonReactStatic from 'hoist-non-react-statics'; import Textdomain from './Textdomain'; const withGettext = (translations = {}, pluralForm = 'n != 1', options = {}) => (WrappedComponent) => { const args = Object.assign({ withRef: false }, options); class WithGettext extends Text...
src/routes/privacy/index.js
globalART19/OrderedOptions
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/components/testA.js
yeying0827/gallery-by-react
import React from 'react'; class TestComponent extends React.Component { render(){ return ( <div style={{color:'red'}}>test component</div> ); } } TestComponent.defaultProps = { }; export default TestComponent;
example/components/things/Card.js
rpominov/react-demo-library
import React from 'react' export default React.createClass({ render() { return <pre> {JSON.stringify(this.props, null, 2)} </pre> }, })
app/src/components/common/ModalWebView.js
kort/kort-native
import React from 'react'; import { Modal } from 'react-native'; import { CustomWebView } from '../common'; const ModalWebView = ({ uri, error, onRequestClose, visible }) => { console.log(uri); return ( <Modal visible={visible} transparent ...
demo/src/ContactsDemo.js
clumsyme/cc
import React, { Component } from 'react'; import { Contacts } from 'cc' class ContactsDemo extends Component { constructor(props) { super(props) this.state = { contactsList: [ { avatar: 'https://img3.doubanio.com/icon/u40946569-12.jpg', ...
src/svg-icons/editor/border-horizontal.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderHorizontal = (props) => ( <SvgIcon {...props}> <path d="M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zm4 4h2v-2H7v2zM5 3H3v2h2V3zm4 0H7v2h2V3zm8 0h-2v2h2V3zm-4 4h-2v2h2V7zm0-4h-2v2h2V3zm6 14h2v-2h-2v2z...
packages/veritone-widgets/src/widgets/EnginePicker/story.js
veritone/veritone-sdk
import React from 'react'; import { noop } from 'lodash'; import { storiesOf } from '@storybook/react'; import BaseStory from '../../shared/BaseStory'; import EnginePicker, { EnginePickerWidget } from '.'; import MultipleEnginePicker, { MultipleEnginePickerWidget } from './MultiplePicker'; storiesOf('EnginePicker'...
app/javascript/mastodon/features/compose/components/upload.js
imas/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } fr...
src/svg-icons/device/location-disabled.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationDisabled = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5...
src/svg-icons/action/done-all.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDoneAll = (props) => ( <SvgIcon {...props}> <path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4...
assets/javascripts/kitten/components/graphics/icons/checked-circle-icon/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import COLORS from '../../../../constants/colors-config' import { computeFromRatio } from '../../../../helpers/utils/ratio' import deprecated from 'prop-types-extra/lib/deprecated' import classNames from 'classnames' const DEFAULT_WIDTH = 20 const DEFAULT_HE...
web/assets/js/homepage/CarFilter.js
xuqiantong/NY_Auto
/** * Created by jeanliu on 3/16/17. */ import React from 'react'; class FilterMake extends React.Component { constructor(props) { super(props); this.state = { value: 'make' }; this.handleChange = this.handleChange.bind(this); } handleChange(event) { ...
src/components/admin/admin.js
scottbrassfield/Assess.js
import React from 'react' import Navbar from '../main/navbar' const Admin = (props) => { const styles = { heading: { position: 'absolute', left: 20, top: '50%', transform: 'translateY(-50%)' }, } return ( <div> <Navbar> <h1 style={styles.heading}>Administrator D...
client/src/components/settings/Email.js
jonathanihm/freeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Link } from 'gatsby'; import { HelpBlock, Alert, FormGroup, ControlLabel, FormControl, Button } from '@freecodecamp/react-bootstrap'; impo...
assets/components/Header.js
simongfxu/react-starter-project
import React from 'react' import PropTypes from 'prop-types' import {inject, observer} from 'mobx-react' import {H1, A} from 'components/styled' @inject('commonStore') @observer export default class Header extends React.Component { static propTypes = { commonStore: PropTypes.object.isRequired } render () { ...
src/components/dialog/dialog.js
n7best/react-weui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; import Mask from '../mask/index'; /** * Modals provide feedback to user * */ class Dialog extends Component { static propTypes = { /** * Object Arrays of buttons, `labe...
src/svg-icons/device/signal-cellular-0-bar.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar); DeviceSignalCellular0Bar.displayN...
src/app.js
SergeRNR/music-player
import React from 'react'; import {render} from 'react-dom'; // components import ProgressBar from 'components/progress-bar'; import Controls from 'components/controls'; // stores import PlaybackStore from 'stores/playback-store'; // actions import playbackActions from 'actions/playback-actions'; class App extends Re...
src/js/components/icons/base/Basket.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...
app/javascript/mastodon/features/ui/components/embed_modal.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import api from 'mastodon/api'; import IconButton from 'mastodon/components/icon_button'; const messages = defin...
src/templates/reference-template.js
inkdropapp/docs
import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'gatsby' import ReferenceLayout from '../components/reference-layout' export default function Template({ data // this prop will be injected by the GraphQL query below. }) { const { markdownRemark } = data // data.markdownRemark ho...
src/packages/@ncigdc/components/Modals/UploadSet/TextArea.js
NCI-GDC/portal-ui
import React from 'react'; import Row from '@ncigdc/uikit/Flex/Row'; import { QuestionIcon } from '@ncigdc/theme/icons'; import { Tooltip } from '@ncigdc/uikit/Tooltip'; export default ({ input, setInput, helpText, displayType, placeholder }) => { return ( <label style={{ display: 'block' }}> <Row style={...
test/test_helper.js
lamjwe/book-list-redux
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/components/Loader/Circle.js
strues/react-universal-boiler
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const circleFadeDelay = keyframes` 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } `; const Circle = props => { const CirclePrimitive = styled.div` width: 100%; height:...
app/components/AddTask/TaskAddress/index.js
prudhvisays/newsb
import React from 'react'; import Input from '../Input'; import Flatpickr from 'react-flatpickr'; import GMaps from '../GMaps'; import './taskAddress.css'; import moment from 'moment'; export default class TaskAddress extends React.Component { //eslint-disable-line constructor(props) { super(props); this.nam...
index.ios.js
leechuanjun/TLRNProjectTemplate
/** * Created by TridonLee on Mon July 22 2016 11:28:33 GMT+0800 (CST). */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StatusBar, Navigator, } from 'react-native'; import NWDLandingGuide from './views/App/nwdLandingGuide'; import NWDTabBar from './views/App/nwdTabBar'; import...
public/js/components/profile/BlockList.react.js
TRomesh/Coupley
import React from 'react'; import BlockItem from './BlockItem.react'; import List from 'material-ui/lib/lists/list'; import ActivityFeedStore from '../../stores/ActivityFeedStore'; import ActivityFeedActions from '../../actions/profile/ActivityFeedActions'; const BlockList = React.createClass({ getInitialState: fu...
src/js/components/profile/edit/LocationEdit.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import SelectedEdit from './SelectedEdit'; import LocationInput from '../../ui/LocationInput'; import translate from '../../../i18n/Translate'; @translate('LocationEdit') export default class LocationEdit extends Component { static prop...
app/javascript/containers/StaticPage.js
Vizzuality/forest-atlas-landscape-cms
import React from 'react'; import PublicContainer from 'containers/shared/PublicContainer'; import StaticPages from 'pages/static'; const StaticPageContainer = props => ( <PublicContainer {...props}> <StaticPages /> </PublicContainer> ); export default StaticPageContainer;
src/svg-icons/image/filter-b-and-w.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterBAndW = (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 16l-7-8v8H5l7-8V5h7v14z"/> </SvgIcon> ); ImageFilterBAndW = pure(Im...
src/components/HomeScreen/VideoListItem.js
bhalla-shiraz/react-video-app
import React from 'react' const VideoListItem = ({video, onVideoSelect}) => { const imageURL = video.snippet.thumbnails.default.url return ( <li key={video.etag} className="list-group-item" onClick={() => onVideoSelect(video)} > <div className="video-list media"...
test/integration/css/fixtures/single-global/pages/_app.js
BlancheXu/test
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render () { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/components/common/svg-icons/content/text-format.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentTextFormat = (props) => ( <SvgIcon {...props}> <path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/> </SvgIcon> ); ContentTextFormat = pure(C...
packages/vx-demo/components/codeblocks/MultiSeriesLineCode.js
Flaque/vx
import React from 'react'; import Codeblock from './Codeblock'; export default ({}) => { return ( <Codeblock> {`// MultiSeriesLine.js import React from 'react'; import Axis from '@vx/axis'; import Curve from '@vx/curve'; import { Group } from '@vx/group'; import { LinePath } from '@vx/shape'; import { city...
components/freeze-page-scroll.js
cnvs/docs
import React from 'react' export default class FreezePageScroll extends React.Component { // Make sure to unfreeze when unmounting the component componentWillUnmount() { this.freezeScrolling(false) } // Make sure to freeze if unmounted and re-mounted again while mouse is // still over the component re...
frontend/component/TopicDetail.js
akin520/pratice-node-project
import React from 'react'; import {Link} from 'react-router'; import 'highlight.js/styles/github-gist.css'; import {getTopicDetail, addComment, deleteComment, deleteTopic} from '../lib/client'; import {renderMarkdown, redirectURL} from '../lib/utils'; import CommentEditor from './CommentEditor'; export default class T...
src/components/header/nav/nav.js
growcss/docs
import React from 'react'; import { Container } from './nav.css'; const Nav = () => ( <Container> <ul> <li> <a href="https://github.com/growcss/growcss">GitHub</a> </li> </ul> </Container> ); export default Nav;
src/containers/Search/Search.js
TarikHuber/react-redux-material-starter-kit
import React from 'react'; import { connect } from 'react-redux'; import Search from '../../components/Search/Search'; function mapStateToProps(state) { const { appStyle } = state; return { appStyle: appStyle, }; } export default connect(mapStateToProps)(Search);
src/components/SelectionPills/SelectionPills.js
instacart/Snacks
import React from 'react' import Radium from '@instacart/radium' import PropTypes from 'prop-types' import ScrollTrack from '../ScrollTrack/ScrollTrack' import SelectionPill from './SelectionPill' import { getStyles } from './styles' const NoOp = () => {} // eslint-disable-line no-empty-function class SelectionPills e...
src/components/IngestionWizard/WizardFormThirdPage.js
giux78/daf-dataportal
import React from 'react'; import { Field,FieldArray ,reduxForm, formValueSelector } from 'redux-form'; import validate from './validate'; import TestSelect from './TestSelect'; import { connect } from 'react-redux'; import { serviceurl } from '../../config/serviceurl.js' import 'react-select/dist/react-select.css'...
src/demo/context.js
dadiaoguai/blog-react-demo-front
const PropTypes = require('prop-types'); import React from 'react'; class Button extends React.Component { render () { return ( <button style={{background: this.context.color}}> {this.props.children} </button> ); } } Button.contextTypes = {color: PropTypes.string}; class Message exte...
examples/huge-apps/routes/Grades/components/Grades.js
trotzig/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
app/Resources/js/startup/home.js
ryota-murakami/daily-tweet
import React from 'react' import { Provider } from 'react-redux' import App from '../containers/home' import ReactOnRails from 'react-on-rails' const mainNode = () => { const store = ReactOnRails.getStore('homeStore') const reactComponent = ( <Provider store={store}> <App/> </Provi...
src/components/BackComponent.js
chimo/se-dir-frontend-react
'use strict'; import React from 'react'; import { translate } from 'react-i18next'; import { browserHistory } from 'react-router'; class BackComponent extends React.Component { render() { const { t } = this.props; return ( <div className="back-component"> <a className="back" onClick={browser...
modules/State.js
wmyers/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that need to know the path, routes, URL * params and query that are currently active. * * Example: * * import { State } from 'react-router'; * * var AboutLink = React.createClass({ * mixins: [ State ], * re...
html-test/n-icon/test.js
bradwoo8621/parrot2
import $ from 'jquery' import React from 'react' import ReactDOM from 'react-dom' import {Model} from '../../src/js/model/model' import {Layout} from '../../src/js/layout/layout' import {NIcon, NStackIcon} from '../../src/js/components/n-icon' $(function() { let model = new Model({ name: 'test' }); model.addPostC...
packages/react-static/src/static/__mocks__/pages/404.js
nozzle/react-static
import React from 'react' // export default () => ( <div> <h1>404 - Oh no's! We couldn't find that page :(</h1> </div> )
client/extensions/woocommerce/store-sidebar/store-ground-control.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import Button from 'components/button'; import Gridicon from 'gridicons'; import Site from 'blocks/site'; const StoreGroundControl ...
src/containers/views/TemplateDirectory.js
ashmaroli/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import _ from 'underscore'; import DocumentTitle from 'react-document-title'; import Breadcrumbs from '../../components/B...
src/components/Breadcrumb/Breadcrumb.js
GetAmbassador/react-ions
import React from 'react' import PropTypes from 'prop-types' import Immutable from 'immutable' import { Link } from 'react-router' import InlineStylePrefixer from '../internal/InlineStylePrefixer' import optclass from '../internal/OptClass' import Icon from '../Icon' import style from './style.scss' class Breadcrumb e...
tools/template/list/root/Root.prod.js
SteamerTeam/steamer-react
import React, { Component } from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from '../stores/configureStore'; import IndexWrapper from '../container/index'; let store = configureStore(); export default class Root extends Component { render() { ...
packages/react-vis/src/plot/series/arc-series.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/Parser/Druid/Balance/CHANGELOG.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { Iskalla, Gebuz } from 'CONTRIBUTORS'; import Wrapper from 'common/Wrapper'; import ItemLink from 'common/ItemLink'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; export default [ { date: new Date('2018-3-15'),...
resources/assets/javascript/components/calendarList.js
colinjeanne/garden
import CalendarItem from './calendarItem'; import React from 'react'; const calendarList = props => { const calendarItems = props.calendarEvents.map( item => { const plant = props.plants.find( plant => plant.name === item.plantName); return ( <Calenda...
client/src/components/helpers/Loader.js
pahosler/freecodecamp
import React from 'react'; import Spinner from 'react-spinkit'; function Loader() { return <Spinner name='ball-clip-rotate-multiple' />; } Loader.displayName = 'Loader'; export default Loader;
src/app-server.js
nerdlabs/harmony-bp
import React from 'react'; import Router from 'react-router'; import routes from './routes'; export function run (request, callback) { Router.run(routes, request.url, (Handler) => { callback(null, React.renderToString(<Handler/>)); }); }
js/App/Components/Dashboard/SubViews/SelectForecastTimeDD.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
src/components/services/content/ServiceDisabled.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import Button from '../../ui/Button'; const messages = defineMessages({ headline: { id: 'service.disabledHandler.headline', defaultMess...
examples/InputCheckbox.js
jhernandezme/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; export default <Row> <Input name='group1' type='checkbox' value='red' label='Red' /> <Input name='group1' type='checkbox' value='yellow' label='Yellow' defaultValue='checked' /> <Input name='group1' type='checkbox' v...
curator-web/src/js/components/youtube/playlistFormContainer.js
rajeshnaroth/curator
import React from 'react' import { connect } from 'react-redux' import PlaylistForm from './playlistForm' import { fetchPlaylistsFromYouTube } from '../../actions' const mapStateToProps = function(state, ownProps) { return {shelf: state.shelf} } const mapDispatchToProps = function(dispatch, ownProps) { return { ...
src/Parser/Paladin/Protection/Modules/Features/AlwaysBeCasting.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import { formatPercentage } from 'common/format'; import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; c...
src/date-time-picker/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; ...
src/components/start.js
suckak/vox
import React, { Component } from 'react'; export default class Start extends Component { render() { return ( <div className="welcome__holder"> <p className="welcome__text">FRONT END TEST</p> </div> ); } }
app/components/CategoryButtons/index.js
pacog/recoreco
import React from 'react'; import Paper from 'material-ui/Paper'; import Categories from '../../core/constants/categories'; import { blue300 } from 'material-ui/styles/colors'; const styles = { card: { margin: 8, padding: '2px 6px', display: 'flex', alignItems: 'center', ju...
src/svg-icons/av/music-video.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
index.android.js
swashcap/LookieHere
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './src/App'; export default class LookieHere extends Component { render() { return <App />; } } AppRegistry.registerCom...
src/svg-icons/av/surround-sound.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSurroundSound = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.76 16.24l-1.41 1.41C4.78 16.1 4 14.05 4 12c0-2.05.78-4.1 2.34-5.66l1.4...
app/app.js
bsr203/react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Load the favicon, the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./favicon.ico'; import 'file?name=[name].[ex...