path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/containers/BootStrap/BSNavCollapse/index.js
perry-ugroop/ugroop-react-dup2
/* *********************************************************** */ /* Created by Vince on 2016-11-22 */ /* *********************************************************** */ import React from 'react'; const BSNavCollapse = (props) => <button type="button" className={'navbar-toggle col...
app/pages/Splash.js
attentiveness/reading
/** * * Copyright 2016-present reading * * 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...
addon/tools/control-panel/main.js
mathjazz/testpilot
/* * This Source Code is subject to the terms of the Mozilla Public License * version 2.0 (the 'License'). You can obtain a copy of the License at * http://mozilla.org/MPL/2.0/. */ /* global CustomEvent */ import React, { Component } from 'react'; import { render } from 'react-dom'; import * as actions from '../....
Libraries/Components/MapView/MapView.js
browniefed/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...
app/javascript/mastodon/components/load_gap.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap exte...
src/svg-icons/image/filter-1.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter1 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> ...
app/javascript/mastodon/features/list_editor/components/account.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
examples/official-storybook/stories/addon-graphql.stories.js
storybooks/react-storybook
import React from 'react'; export default { title: 'Addons/GraphQL', }; export const GetPikachu = () => <div>hello</div>; GetPikachu.story = { name: 'get Pikachu', parameters: { graphiql: { query: `{ pokemon(name: "Pikachu") { id number name a...
examples/react-native-vanilla/index.android.js
rhalff/storybook
import Storybook from './storybook'; export default Storybook; // /** // * Sample React Native App // * https://github.com/facebook/react-native // * @flow // */ // // /* eslint-disable */ // // import React, { Component } from 'react'; // import { AppRegistry, StyleSheet, Text, View } from 'react-native'; // // e...
src/components/LocationInfo.js
kjwatke/weather_app_updated_July-2017
/* @flow*/ import React from 'react'; const LocationInfo = ({ city, country, lat, lon, }: { city: string, country: string, lat: string, lon: string, }) => <div className="card weather-location-info-card z-depth-5"> <div className="card-title center"> <h4>Location Info</h4> </div> <d...
classic/src/scenes/traypopout/src/Scenes/AppScene/AppSceneToolbar.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { ipcRenderer } from 'electron' import { emblinkActions } from 'stores/emblink' import { settingsStore, settingsActions } from 'stores/settings' import Timeago from 'react-timeago' import { with...
09-react-lab-a/src/app/todo-list.js
iproduct/course-node-express-react
import React from 'react'; import TodoItem from './todo-item'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; export default ({ todos, filter, ...props }) => ( <ul className="todo-list"> <TransitionGroup> {todos .filter(todo => filter === 'all' || todo.status === filter) ...
src/routes/home/Home.js
AntonyKwok/react-starter-kit
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Home.css'; class Home extends React.Component { render() { return ( <h1>React Starter Kit</h1> ); } } export default withStyles(s)(Home);
docs/app/Examples/elements/List/Variations/ListExampleRelaxedHorizontal.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleRelaxedHorizontal = () => ( <List horizontal relaxed> <List.Item> <Image avatar src='http://semantic-ui.com/images/avatar/small/daniel.jpg' /> <List.Content> <List.Header as='a'>Daniel Louise</List.Head...
src/components/projects/show/CopySplitRight.js
tehfailsafe/portfolioReact
import React from 'react'; const temp = React.createClass({ render(){ return( <div className="col-sm-3"> <h4>{this.props.title}</h4> {this.props.children} </div> ) } }) export default temp;
app/components/ding/DingContent/index.js
vkurzweg/aloha
/** * * DingContent * */ import React from 'react'; // import styled from 'styled-components'; import { Image } from 'cloudinary-react'; import Button from './Button'; import { Link } from 'react-router'; function DingContent() { const ding = 'http://res.cloudinary.com/kurzweg/image/upload/v1497827985/ding.jpg'; ...
src/scenes/User/components/Overview/components/TimelineItem/index.js
antoinechalifour/Reddix
import React from 'react' import { Link } from 'react-router-dom' import styled from 'styled-components' import Markdown from 'react-markdown' import { thingIdFromFullname, thingTypefromFullname, isSelf } from 'Util/things' import { Card, CardContent } from 'Components/Card' const Container = styled(Card)` & + & { ...
src/client/lib/validation.js
jaegerpicker/GLDice
/* Simple serial "one by one" sync/async promises based validation. */ import Promise from 'bluebird'; import React from 'react'; import validator from 'validator'; export class ValidationError extends Error { constructor(message: string, prop: string) { super(); this.message = message; this.prop = pro...
actor-apps/app-web/src/app/components/Login.react.js
mitchellporter/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import LoginActionCreators from 'actions/LoginActionCreators'; import LoginStore from 'stores/LoginStore'; i...
components/list/ListDivider.js
rubenmoya/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import { LIST } from '../identifiers'; const ListDivider = ({ inset, theme }) => ( <hr className={inset ? `${theme.divider} ${theme.inset}` : theme.divider} /> ); ListDivider.propTypes = { inset: PropTypes.bool...
src/containers/admin-restaurants/admin-restaurant-list.js
batusai513/client-side-restaurant-app
import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {getRestaurants} from 'actions/restaurants'; import {openCreateRestaurantModal} from 'actions/create-restaurant-modal'; import AdminRestaurantList from 'components/admin-restaurants/admin-restaurant-list'; ...
public/js/components/visits/visitcontainer.react.js
MadushikaPerera/Coupley
import React from 'react'; import Paper from 'material-ui/lib/paper'; import Card from 'material-ui/lib/card/card'; import CardActions from 'material-ui/lib/card/card-actions'; import CardHeader from 'material-ui/lib/card/card-header'; import CardMedia from 'material-ui/lib/card/card-media'; import CardTitle from 'mate...
docs/app/Examples/collections/Menu/States/Active.js
ben174/Semantic-UI-React
import React from 'react' import { Menu } from 'semantic-ui-react' const Active = () => { return ( <Menu compact> <Menu.Item active> Link </Menu.Item> </Menu> ) } export default Active
src/components/ErrorMessage.js
zednis/parsnip
import React from 'react'; // import Snackbar from 'material-ui/Snackbar'; export default class ErrorMessage extends React.Component { // state = { // open: false, // }; // handleRequestClose = () => { // this.setState({ // open: false, // }); // }; render() {...
examples/official-storybook/components/addon-a11y/Form/Label.js
kadirahq/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; const styles = { label: { padding: '0 6px', }, }; function Label({ id, content }) { return ( <label style={styles.label} htmlFor={id}> {content} </label> ); } Label.propTypes = { content: PropTypes.string.isRequired, id: Pro...
docs/src/ComponentsPage.js
erictherobot/react-bootstrap
/* eslint react/no-did-mount-set-state: 0 */ import React from 'react'; import getOffset from 'dom-helpers/query/offset'; import css from 'dom-helpers/style'; import Affix from '../../src/Affix'; import Nav from '../../src/Nav'; import SubNav from '../../src/SubNav'; import NavItem from '../../src/NavItem'; import N...
src/svg-icons/editor/vertical-align-center.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
components/Navigation/Navigation.js
Code4Newark/newark-viz
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; import './Navigation.scss'; import Link from '../Link'; function Navigation() { return ( <ul className="Navigation" role="menu"> ...
src/app/components/Tile.js
IziOzi/iziozi-core
import React, { Component } from 'react'; import '../platform-dependent/speechSynthesis.js'; import './Tile.css'; // import '../platform-dependent/config.js' var imagesRoot = require('../platform-dependent/config.js').imagesRoot; class Tile extends Component { constructor(props) { super(props); console.lo...
src/Collapse.js
omerts/react-bootstrap
import React from 'react'; import Transition from './Transition'; import domUtils from './utils/domUtils'; import createChainedFunction from './utils/createChainedFunction'; let capitalize = str => str[0].toUpperCase() + str.substr(1); // reading a dimension prop will cause the browser to recalculate, // which will l...
docs/src/app/components/pages/components/RefreshIndicator/Page.js
spiermar/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import refreshIndicatorReadmeText from './README'; import RefreshIndicatorExampl...
src/app.js
dartelvis/zf3
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, Link, IndexRoute, useRouterHistory} from 'react-router'; import { createHistory } from 'history'; import { Provider } from 'react-redux'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Main from './app/Main'; impo...
src/svg-icons/hardware/developer-board.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDeveloperBoard = (props) => ( <SvgIcon {...props}> <path d="M22 9V7h-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2v-2h-2V9h2zm-4 10H4V5h14v14zM6 13h5v4H6zm6-6h4...
client/modules/App/components/__tests__/Header.spec.js
bjoberg/social-pulse
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Header } from '../Header/Header'; import { Link } from 'react-router'; test('renders header properly', t => { const wrapper = shallow( <Header /> ); // TODO: This test will change when conditional Header is impleme...
app/javascript/mastodon/components/column.js
WitchesTown/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import detectPassiveEvents from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, }; scrollTop () { const scrollable = th...
app/Pages/SettlementViewNew/CouponInfo/CouponItem.js
jd-daojia/DaojiaRN
/* @flow */ import React, { Component } from 'react'; import { View, Text, StyleSheet, } from 'react-native'; export default class CouponItem extends Component { render() { let {item} = this.props return ( <View style={styles.container}> <Text style={styles.amount}> {item.amoun...
app/index.js
nesfe/electron-LAN-chat
import React from 'react'; import { render } from 'react-dom'; import './app.global.scss'; import Header from './components/Header'; import Contacts from './components/Contacts'; import Home from './components/Home'; import utils from './utils/utils'; import jquery from 'jquery'; import './assets/js/jquery.nicescroll.m...
src/views/Main.js
bfollington/react-redux-isomorphic-boilerplate
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as CounterActions from 'actions/CounterActions'; import Counter from 'components/Counter'; import { addTodo } from "actions/TodoActions"; import Todo from "models/Todo"; import {Link} from "react-rou...
StripeCheckout.js
azmenak/react-stripe-checkout
import React from 'react'; import PropTypes from 'prop-types'; let scriptLoading = false; let scriptLoaded = false; let scriptDidError = false; export default class ReactStripeCheckout extends React.Component { static defaultProps = { className: 'StripeCheckout', label: 'Pay With Card', locale: 'auto', ...
assets/javascripts/index.js
walshyb/DoTab
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { compose, createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import ListManager from './components/list_manager/ListManager'; import reducers from './redux/rootReducer'; import { util...
packages/bonde-admin-canary/src/graphql/query.js
ourcities/rebu-client
import React from 'react' import { Query } from 'react-apollo' const QueryHOC = ({ loading: Loading, query, props, variables }) => (Component) => (ownProps) => ( <Query query={query} variables={variables}> {({ loading, data }) => { if (loading && Loading) return <Loading /> return typeof props === '...
src/components/referrals/referral-info.js
dylanlott/bridge-gui
import React, { Component } from 'react'; export default class ReferralInfo extends Component { render() { return ( <div className="row text-center"> <div className= "col-xs-12 col-sm-8 col-sm-push-2 col-md-6 col-md-push-3" > <div className="spacer20"></div> <h...
src/components/chart.js
thbgh/antdPro
/** * @Author: THB * @Date: 2017-08-03 16:54:39 PM Thursday * @Email: thbwork2016@gmail.com * @Project: SDB * @Filename: chart.js * @Last modified by: THB * @Last modified time: 2017-08-03 16:55:12 PM Thursday */ import createG2 from 'g2-react'; import { Stat } from 'g2'; import React, { Component } ...
src/svg-icons/content/inbox.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> <...
src/containers/home/home.js
psenger/ReactJS-Rapid-Prototype-Template
import React, { Component } from 'react'; import I18NInjector from '../../decorator/i18nInjector'; import PropTypes from 'prop-types'; @I18NInjector() export class Home extends Component { constructor (props) { super(props); this.displayName = 'containers/home'; } render () { let {translate} = this...
src/svg-icons/image/filter-8.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter8 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-1...
src/Affix.js
lo1tuma/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import AffixMixin from './AffixMixin'; import domUtils from './utils/domUtils'; const Affix = React.createClass({ statics: { domUtils }, mixins: [AffixMixin], render() { let holderStyle = {top: this.state.affixPositionTop}; return (...
src/browser/app/components/Input.js
robinpokorny/este
// @flow import type { Styled } from '../themes/types'; import type { TextProps } from './Text'; import Box from './Box'; import React from 'react'; import Text from './Text'; import styled from './styled'; // Only HTML5 text inputs. Checkbox and radio must be SVG to size scale. type InputTypes = 'color' | 'date...
renderer/components/Directory.js
reactide/reactide
import React from 'react'; import File from './File'; import CreateMenu from './CreateMenu'; import CreateForm from './CreateForm'; import RenameForm from './RenameForm'; import PropTypes from 'prop-types'; const Directory = ({ directory, dblClickHandler, clickHandler, selectedItem, openCreateMenu, openMen...
client/src/javascript/components/layout/ApplicationPanel.js
stephdewit/flood
import classnames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; class ApplicationContent extends React.Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, modifier: PropTypes.string, }; static defaultProps = { baseClassName:...
src/modules/texts/components/ReadingRelatedPassage/ReadingRelatedPassage.js
cltk/cltk_frontend
import React from 'react'; import PropTypes from 'prop-types'; import './ReadingRelatedPassage.css'; class ReadingRelatedPassage extends React.Component { getDefaultProps() { return { relatedPassage: { workId: 'foobar', authorName: 'Theocritus', englishTitle: 'Idylls', edition: '1920, A. S. F. ...
src/cms/preview-templates/page-preview.js
Amine-H/Amine-H.github.io
// @flow strict import React from 'react'; import type { Entry, WidgetFor } from '../../types'; type Props = { entry: Entry, widgetFor: WidgetFor }; const PagePreview = ({ entry, widgetFor }: Props) => { const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return ( <div classNa...
src/svg-icons/action/thumbs-up-down.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbsUpDown = (props) => ( <SvgIcon {...props}> <path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1...
core/router.js
knoxjeffrey/blog
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; ...
react-js/you-tube-search/src/components/video_detail.js
vanyaland/react-demos
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive embed-respons...
src/components/pages/Status.js
AlanVerbner/lightweight-eth-explorer
import React, { Component } from 'react'; import Loading from '../layout/Loading'; import promisify from 'es6-promisify'; import { Link } from 'react-router-dom'; const StatusTable = ({latestBlockNumber, node, network, host, isConnected}) => { return ( <table className="pure-table pure-table-horizontal"> <...
src/components/Feedback/Feedback.js
axs221/look-fit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
src/React/Properties/MapProperty/KeyValuePair.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactProperties/MapProperty.mcss'; export default class KeyValuePair extends React.Component { constructor(props) { super(props); // Bind callback this.removeItem = this.removeItem.bind(this); this.valueChange...
examples/todomvc/containers/Root.js
gaulucky92/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ( <Provider...
docs/app/Examples/elements/Button/Types/ButtonExampleLabeledBasic.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleLabeledBasic = () => ( <div> <Button color='red' content='Like' icon='heart' label={{ basic: true, color: 'red', pointing: 'left', content: '2,048' }} /> <Button basic color='blue...
techCurriculum/ui/solutions/3.3/src/components/Title.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * 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...
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
mitchellporter/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
src/components/SearchRecordsBox.js
wrleskovec/thoughtcrime
import React from 'react'; export default class SearchRecordsBox extends React.Component { constructor(props) { super(props); this.searchSites = this.searchSites.bind(this); this.handleKeyDown = this.handleKeyDown.bind(this); } searchSites() { const { searchSites } = this.props; searchSites(t...
resources/js/components/artifacts/CheckIcon/CheckIcon.js
DoSomething/northstar
import React from 'react'; import PropTypes from 'prop-types'; const CheckIcon = ({ className, color, size }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 20" className={className} style={{ height: `${size}`, pointerEvents: 'none', width: `${size}`, }} > <p...
src/components/Header.js
jerednel/jerednel.github.io
import React, { Component } from 'react'; import ParticlesBg from "particles-bg"; /** * * If you want to remove the animation from header, you just need to remove de ParticlesBg component. * If you want to change the type of animation, check this documentation alll types availables: https://github.com/lindelof/pa...
zoho-experiments/app/components/H3/index.js
glandre/prototypes
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
packages/mineral-ui-icons/src/IconWbAuto.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconWbAuto(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}>...
src/components/Graph.js
jtraviesor/graph-editor
import React, { Component } from 'react'; import _ from 'lodash'; import d3Graph from '../plugins/d3Graph'; import { connect } from 'react-redux'; import { fetchNetwork, selectNode as onNodeSelected } from '../actions/index'; class Graph extends Component { componentDidMount() { const { network } = this.p...
src/svg-icons/maps/streetview.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStreetview = (props) => ( <SvgIcon {...props}> <path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d...
js/jqwidgets/demos/react/app/datatable/rowdetails/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { componentDidMount() { this.refs.myDataTable.showDetails(0); } render() { let data = new Array(); let firstName...
test/type.js
dmitriiabramov/react-prop-types-check
import React from 'react'; export default React.PropTypes.shape({ id: React.PropTypes.string.isRequired, subject: React.PropTypes.string }).isRequired;
django/webcode/webcode/frontend/node_modules/react-router/es/Redirect.js
OpenKGB/webcode
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/svg-icons/action/motorcycle.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionMotorcycle = (props) => ( <SvgIcon {...props}> <path d="M19.44 9.03L15.41 5H11v2h3.59l2 2H5c-2.8 0-5 2.2-5 5s2.2 5 5 5c2.46 0 4.45-1.69 4.9-4h1.65l2.77-2.77c-.21.54-.32 1.14-.32 1.77 0 2.8 2.2 5 5 5s5-2.2...
src/components/input_bar.js
quebez/react_todolist
import React, { Component } from 'react'; class InputBar extends Component { state = { term: '' }; HandleSubmitEvent = (event) => { event.preventDefault(); const currentDate = new Date(); this.props.onAddItemClick({ text: this.state.term, timeCreated: th...
src/components/Header/Header.js
nagyistoce/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...
src/AppBundle/Resources/static/jsx/app/Location.js
viszerale-therapie/simple-courses
import React from 'react'; import ReactDOM from 'react-dom'; import tl from '../util/translator'; import DataTable from '../util/DataTable'; import actions from '../util/actions'; import dataDefinition from '../data/Location'; export default { init : function(data, meta) { ReactDOM.render(( <div> <h1>{tl...
src/components/Users/UserItem/index.js
saitodisse/scrap-cerebral-2
import React from 'react'; import { connect } from 'cerebral/react'; require('../../shared_styles/table.css'); require('./index.css'); export default connect((props) => ({ user: `users.list.${props.itemKey}`, }), function Item(props) { return ( <div className="item-row user-item-row"> <div cl...
app/containers/companies/components/company-list/index.js
kimurakenshi/caravanas
import { connect } from 'react-redux'; import { deleteCompany, fetchCompanies, setListMode } from 'app/actions/company-actions'; import { getCompanies, getSettings } from 'app/reducers'; import { saveSettings } from 'app/actions/settings-actions'; import React, { Component } from 'react'; import PageSubtitle from 'app/...
src/FormControls/Static.js
xiaoking/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
lib/video_list/index.js
tlhjc/alpha
import React, { Component } from 'react'; import VideoListItem from './video_list_item.js'; import './style.css'; export default class VideoList extends Component { constructor () { super(); } render() { const { videos } = this.props; const videoList = videos.map((video, i) => { return <Video...
es/components/UserCard/UserRoles.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; import UserRole from '../UserRole'; /** * A list of roles. */ var UserRoles = function UserRoles(_ref) { var roles = _ref.roles; return _jsx("div", { className: "UserRoles" }, void 0, roles...
node_modules/react-bootstrap/es/ControlLabel.js
saltypaul/SnipTodo
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 ...
app/javascript/mastodon/features/status/components/card.js
TootCat/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.') .map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part) ...
frontend/src/components/select-editor/user-status-editor.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; import SelectEditor from './select-editor'; const propTypes = { isTextMode: PropTypes.bool.isRequired, isEditIconShow: PropTypes.bool.isRequired, statusArray: PropTypes.array.isRequired, currentStatu...
ajax/libs/react-redux/7.1.0-alpha.4/react-redux.js
joeyparrish/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('redux'), require('react-dom')) : typeof define === 'function' && define.amd ? define(['exports', 'react', 'redux', 'react-dom'], factory) : (global = global || self, factory(glo...
packages/material-ui-icons/src/LabelOutline.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z" /></g> , 'LabelOutline');
src/packages/@ncigdc/uikit/Notification.js
NCI-GDC/portal-ui
// @flow // Vendor import React from 'react'; import PropTypes from 'prop-types'; import { compose, withState, shouldUpdate, mapProps } from 'recompose'; import CloseIcon from 'react-icons/lib/md/close'; // Custom import { center, zDepth1 } from '@ncigdc/theme/mixins'; /*---------------------------------------------...
frontend/src/Settings/Notifications/Notifications/EditNotificationModalContentConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { saveNotification, setNotificationFieldValue, setNotificationValue, testNotification } from 'Store/Actions/settingsActions'; import createProviderSettin...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
brysgo/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id, ...rest } = { id: 0, user: { id: 42, ...
src/components/ProposalsManager/ProposalsManager.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import Button from '../Button'; import FetchError from '../FetchError'; import Box from '../Box'; import ProposalActions from '../ProposalActions'; import AssetsTable from '../AssetsTable'; import ProposalRow from './ProposalRow'; import Layer from '../Lay...
app/components/Permissions/BoundaryList.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import includes from 'lodash.includes'; import capitalize from 'lodash.capitalize'; import isEmpty from 'lodash.isempty'; import { Loading } from '../common'; const BoundaryListView = (props) => { const { loading, boundaries, selectedBoundaries } = prop...
src/js/components/icons/base/Task.js
odedre/grommet-final
/** * @description Task SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prope...
src/esm/components/graphics/icons/instrument-tag-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var InstrumentTagIcon = function InstrumentTagIcon(_ref) { v...
src/pages/download/index.js
getinsomnia/insomnia.rest
import React from 'react'; import { graphql } from 'gatsby'; import Img from 'gatsby-image'; import SocialCards from '../../components/social-cards'; import Contributors from '../../partials/contributors'; import Title from '../../partials/title'; import DirectDownloadButton from '../../components/direct-download-butto...
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/receivebutton.js
patel344/Mr.Miner
import React from 'react' const ReceiveButton = ({actions}) => { const handleReceiveButtonClick = () => actions.getNewReceiveAddress() return ( <div className="receive-button" onClick={handleReceiveButtonClick}> <i className="fa fa-download fa-2x" /> <span>Receive Siacoin</span> </div> ) } export default...
Libraries/CustomComponents/Navigator/Navigator.js
DannyvanderJagt/react-native
/** * Copyright (c) 2013-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. * * Facebook,...
node_modules/enzyme/src/version.js
Shwrndasink/btholt-react-tutorial
import React from 'react'; export const VERSION = React.version; export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = VERSION.slice(0, 3) === '15.';
src/main.js
mrinalkrishnanm/kyogre
/** * App entry point */ // Polyfill import 'babel-polyfill'; // Libraries import React from 'react'; import ReactDOM from 'react-dom'; import { Router,Route , browserHistory } from 'react-router'; import { Provider } from 'react-redux'; // Routes import Homepage from './Homepage'; import Login from './Login'; imp...
packages/idyll-components/src/youtube.js
idyll-lang/idyll
import React from 'react'; let YouTube; const YT_PLAYING = 1; const YT_PAUSED = 2; class YoutubeComponent extends React.Component { constructor(props) { super(props); this.state = { mounted: false }; } componentDidMount() { this.setState({ mounted: true }); YouTube = require('react-yo...
client/views/setupWizard/steps/RegisterServerStep.stories.js
iiet/iiet-chat
import { boolean, select, text } from '@storybook/addon-knobs'; import React from 'react'; import RegisterServerStep from './RegisterServerStep'; export default { title: 'views/setupWizard/steps/RegisterServerStep', component: RegisterServerStep, }; export const _default = () => <RegisterServerStep step={select...