path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes/contact/index.js
yurikrupnik/meaner
/** * 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 Contact from './Contact'...
node_modules/react-router/es6/Link.js
jwhite4870/moreReactRedux
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
packages/interval/example/index.js
nkbt/react-works
import React from 'react'; import ReactDOM from 'react-dom'; import {App} from './App'; import './app.css'; const appRoot = document.createElement('div'); appRoot.id = 'app'; document.body.appendChild(appRoot); ReactDOM.render(<React.StrictMode><App /></React.StrictMode>, appRoot);
website/core/WebPlayer.js
tsjing/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...
iOS/views/NotFound.js
MOTOMUR/plz_donation
import React, { Component } from 'react'; import { AppRegistry, Alert, StyleSheet, Text, View } from 'react-native'; import { Container, Header, Left, Body, Right, Button, Icon, Title } from 'native-base'; // import LocalizedStrings from 'react-native-localization' export default class NotFound extends Component{ ...
admin/client/Signin/components/Alert.js
jacargentina/keystone
/** * Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set * the signedOut prop to true to show the standard signed out message */ import React from 'react'; import { Alert } from 'elemental'; const AlertView = function (props) { if (props.isInvalid) { return <Alert key="error" type="dange...
src/scripts/components/main.js
gabrielseco/drogas
'use strict'; import React from 'react'; import Router from 'react-router'; import Immutable from 'immutable'; import { AppFlux } from '../flux/AppFlux'; import App from './App'; import InterfaceLogin from './Interfaces/Login'; import InterfaceHome from './Interfaces/Home'; import InterfacePacientes from './Interfac...
www/src/pages/404.js
avinashbot/redd
import React from 'react' import Link from 'gatsby-link' import SimplePage from '../components/SimplePage' const NotFound = () => ( <SimplePage> <h1>Four Zero Four</h1> <p>Looks like you hit a non-existent or removed page. Sorry about that.</p> <p><Link to='/'>Go Back?</Link></p> </SimplePage> ) expor...
test/fixtures/export-default-ignore-existing-displayname/App.js
wyze/babel-plugin-transform-react-stateless-component-name
import React from 'react' export default () => ( <h1>Hello!</h1> ) // We know this will become App from the filename App.displayName = 'App'
src/components/DataTable/TableHeader.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { settings } from 'carbon-components'; imp...
src/svg-icons/action/dns.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDns = (props) => ( <SvgIcon {...props}> <path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v...
assets/javascripts/kitten/karl/pages/pre-deposit/components/tips/tip.js
KissKissBankBank/kitten
import React from 'react' import { TitleWithStroke, Paragraph } from 'kitten' export const Tip = ({ title, paragraph }) => ( <div className="k-u-margin-top-triple k-u-margin-top-none@s-up k-u-margin-top-decuple@l-up"> <TitleWithStroke modifier="quinary" margin={false}> {title} </TitleWithStroke> <...
src/components/map/UserMarker.js
ReactPoland/react-community
import React from 'react'; import PropTypes from 'prop-types'; import { Marker, Popup } from 'react-leaflet-universal'; import styles from './Map.scss'; const UserMarker = ({ marker, removeMarker, removingMarker, loggedIn }) => { const onRemoveMarker = () => { removeMarker(marker.id); }; return ( <Marke...
src/svg-icons/action/room.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRoom = (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.5z...
src/svg-icons/editor/border-style.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderStyle = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/> </SvgIcon> ); E...
src/challenges/react/React_22.js
bonham000/fcc-react-tests-module
/* eslint-disable */ import React from 'react' import assert from 'assert' import { transform } from 'babel-standalone' import Enzyme from '../Enzyme'; const shallow = Enzyme.shallow; const mount = Enzyme.mount; const render = Enzyme.render; export const QA = true; // ---------------------------- define challenge t...
react-flux-mui/js/material-ui/src/svg-icons/av/library-books.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryBooks = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1...
src/svg-icons/image/collections-bookmark.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollectionsBookmark = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z"/>...
src/containers/App.js
jansuchomel/tosine
import React, { Component } from 'react'; import { render } from 'react-dom'; import { connect } from 'react-redux'; import { MopidyPlayer } from '../api/mopidy'; import Player from '../components/Player'; import Tracklist from '../components/Tracklist'; import Library from '../components/Library'; import { songChan...
src/docs/examples/PasswordInput/ExampleAllFeatures.js
choudlet/ps-react-choudlet
import React from 'react'; import PasswordInput from 'ps-react/PasswordInput'; /** All features enabled */ class ExampleAllFeatures extends React.Component { constructor(props) { super(props); this.state = { password: '' }; } getQuality() { const length = this.state.password.length; r...
src/svg-icons/image/burst-mode.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBurstMode = (props) => ( <SvgIcon {...props}> <path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/...
modules/gui/src/app/home/map/imageLayerSource/imageLayerSource.js
openforis/sepal
import {AssetImageLayer} from './assetImageLayer' import {GoogleSatelliteImageLayer} from './googleSatelliteImageLayer' import {PlanetImageLayer} from './planetImageLayer' import {RecipeImageLayer} from 'app/home/body/process/recipe/recipeImageLayer' import {RecipeImageLayerSource} from 'app/home/body/process/recipe/re...
examples/src/index.js
jcperez-ch/flaxs
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-table/es/ExpandIcon.js
bhathiya/test
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PropTypes ...
template/src/components/If/If.js
likun7981/react-template-router
import React from 'react' import PropTypes from 'prop-types' const Fragment = React.Fragment /** 用来使用if语句 */ function If ({ condition, children }) { if (condition) return <Fragment>{children}</Fragment> return null } If.propTypes = { /** if condition */ condition: PropTypes.bool.isRequired, } export default...
packages/react-router-website/modules/components/Home/index.js
goblortikus/react-router
import React from 'react' import { Block } from 'jsxstyle' import Header from './Header' import Video from './Video' import Footer from '../Footer' export default () => ( <Block> <Header/> <Video/> <Footer/> </Block> )
src/payout-picker/PayoutPickerMobile.js
binary-com/binary-next-gen
import React from 'react'; import MobilePage from '../containers/MobilePage'; import PayoutPickerContainer from './PayoutPickerContainer'; export default (props) => ( <MobilePage toolbarShown={false} backBtnBarTitle="Payout"> <PayoutPickerContainer {...props} /> </MobilePage> );
src/Image/ImageCropper.js
ClarityMovement/clarity-components
import React from 'react'; import T from 'prop-types'; import { compose, withHandlers } from 'recompose'; import AvatarEditor from 'react-avatar-editor'; import Slider from 'material-ui/Slider'; import IconButton from 'material-ui/IconButton'; import ImageRotateLeft from 'material-ui/svg-icons/image/rotate-left'; impo...
src/components/artist_list_item.js
n1ckp/spotmybands
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchArtistEvents, hideArtistEvents, showArtistEvents } from '../actions/index'; import AjaxLoader from '../../assets/images/ajaxloader.svg'; class ArtistListItem extends Component { constructor(props) {...
app/javascript/mastodon/features/home_timeline/index.js
pixiv/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '.....
src/parser/shaman/elemental/modules/talents/LiquidMagmaTotem.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; class LiquidMagmaTotem ...
src/svg-icons/action/code.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCode = (props) => ( <SvgIcon {...props}> <path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/> </SvgIcon> ); ActionCode = pure(ActionCode); ActionCode.di...
jekyll-strapi-tutorial/api/plugins/content-type-builder/admin/src/components/PluginLeftMenuLink/index.js
strapi/strapi-examples
/** * * PluginLeftMenuLink * - Required props: * - {object} Link * * - Optionnal props: * - {function} renderCustomLink : overrides the behavior of the link * */ import React from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; import styles from './styles.scss'; c...
stories/InputArea/index.js
skyiea/wix-style-react
import React from 'react'; import {storiesOf} from '@storybook/react'; import Markdown from '../utils/Components/Markdown'; import AutoDocs from '../utils/Components/AutoDocs'; import CodeExample from '../utils/Components/CodeExample'; import Readme from '../../src/InputArea/README.md'; import ReadmeTestkit from '../.....
src/svg-icons/indeterminate-check-box.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; let IndeterminateCheckBox = 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-2zm-2 10H7v-2h10v2z" /> </SvgIcon>; IndeterminateCheckBox =...
src/routes/contact/index.js
ChrisWC/MaterL
import React from 'react'; import Contact from './Contact'; export default { path: '/contact', action() { return <Contact />; }, };
camper-leaderboard/src/index.js
florinpop17/chingu-speedrun-may
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
client2/src/components/whiteboard/bgcolorbox.js
frolicking-ampersand/CodeOut
import React, { Component } from 'react'; import InputColor from 'react-input-color' export default class BGColorbox extends Component { constructor(){ super(...arguments); this.state = { color: this.props.color } } render() { const texty = { 'color': 'white', 'marginRight': '5px...
docs/app/Examples/elements/Button/Variations/ButtonExampleFluid.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleFluid = () => ( <Button fluid>Fits to Container</Button> ) export default ButtonExampleFluid
u-tang/client/modules/templates/containers/navbar_right_content.js
kurapikats/uhackp2p
/** * Material-UI Theme NavBar Right Content Component * * @author Jesus B. Nana <09178816360> */ import React from 'react'; import { IconButton, IconMenu, MenuItem } from 'material-ui'; import { NavigationExpandMore, SocialPerson, ActionInput } from 'material-ui/svg-icons'; import ActionPower from 'material-ui/s...
draft-js-plugins-editor/src/Editor/index.js
draft-js-plugins/draft-js-plugins-v1
import React, { Component } from 'react'; import { Editor, EditorState, } from 'draft-js'; import createCompositeDecorator from './createCompositeDecorator'; import moveSelectionToEnd from './moveSelectionToEnd'; import proxies from './proxies'; import * as defaultKeyBindingPlugin from './defaultKeyBindingPlugin';...
src/main/resources/public/js/pages/notifications.js
SICTIAM/ozwillo-portal
'use strict'; import React from 'react'; import PropTypes from "prop-types"; import {connect} from 'react-redux'; import createClass from 'create-react-class'; import config from '../config/config'; const notificationInterval = config.notificationsInterval; import UpdateTitle from '../components/update-title'; impor...
static/order-form.js
joequant/sptrader
import React from 'react'; import {Modal, Button, FormControl, FormGroup, ControlLabel, HelpBlock, Col, Row, Grid} from 'react-bootstrap'; function FieldGroup({ id, label, help, ...props }) { return ( <div> <label>{label}</label> <FormControl {...props} /> {help && <HelpBlock>{help}</HelpBlock...
src/svg-icons/maps/local-mall.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
force_dir/node_modules/react-bootstrap/es/Media.js
wolfiex/VisACC
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 ...
packages/icons/src/md/navigation/MoreVert.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdMoreVert(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 16c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 4c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 12c-2.21 0-4 1.79-4 4s1.79 4 ...
example/examples/CameraControl.js
wannyk/react-native-maps
import React from 'react'; import { StyleSheet, View, TouchableOpacity, Text, Alert } from 'react-native'; import MapView, { ProviderPropType } from 'react-native-maps'; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; class CameraControl extends React.Component { async getCamera() { const camera = awai...
app/javascript/mastodon/features/video/index.js
5thfloor/ichiji-social
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { fromJS, is } from 'immutable'; import { throttle } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui...
docs/src/components/Demo/EditorToolbarWhenFocused/index.js
michalko/draft-wyswig
/* @flow */ import React from 'react'; import { Editor } from 'react-draft-wysiwyg'; import Codemirror from 'react-codemirror'; import sampleEditorContent from '../../../util/sampleEditorContent'; const EditorToolbarWhenFocused = () => ( <div className="demo-section"> <h3>6. Editor toolbar with limited options ...
app/src/index.js
alpcanaydin/github-stats-for-turkey
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import createHistory from 'history/createHashHistory'; import createStore from './redux/create'; import App from './App'; import './index.css'; const history = cre...
src/parser/paladin/holy/modules/talents/AuraOfMercy.js
fyruna/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import Statistic from 'interface/statistics/Statistic'; import BoringSpellValue from 'interface/statistics/components/BoringSpell...
src/client/flux/stores/user-store.js
martinLE/base
'use strict'; import React from 'react'; import assign from 'react/lib/Object.assign'; import _ from 'lodash'; import Events from 'events'; import Dispatcher from '../core/dispatcher'; import ActionTypes from '../constants/action-types'; import User from '../models/user'; var EventEmitter = Events.EventEmitter; var ...
app/app.js
dazorni/9tac
import React from 'react'; class App extends React.Component { render() { return ( <div> <nav className="navbar navbar-fixed-top navbar-light bg-faded"> <a className="navbar-brand navbar-brand-center" href="#">9tac</a> </nav> {this.props.children} </div> ) } } export default App
app/containers/LandingPageContainer.js
tenshiemi/DoDidDone
import React from 'react'; import { List } from 'immutable'; import Header from '../components/LandingPage/LandingPageHeader'; import HorizontalContainer from '../components/LandingPage/HorizontalContainer'; import VerticalContainer from '../components/LandingPage/VerticalContainer'; const verticalContent = List([ {...
node_modules/react-icons/md/local-post-office.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdLocalPostOffice = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m33.4 13.4v-3.4l-13.4 8.4-13.4-8.4v3.4l13.4 8.2z m0-6.8q1.3 0 2.3 1.1t0.9 2.3v20q0 1.3-0.9 2.3t-2.3 1.1h-26.8q-1.3 0-2.3-1.1t-0.9-2.3v-20q0-1.3 0.9-2.3t2.3-1....
packages/wix-style-react/src/InputArea/InputArea.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import deprecationLog from '../utils/deprecationLog'; import StatusIndicator from '../StatusIndicator'; import debounce from 'lodash/debounce'; import isNaN from 'lodash/isNaN'; import { st, classes } from './InputArea.st.css'; import { dataAttr, dataHooks ...
web/src/index.js
lboss75/vds
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import { createBrowserHistory } from 'history'; import configureStore from './store/configureStore'; import App from './App'; import * as serviceWorker from './servi...
app/containers/LocaleToggle/index.js
simon-johansson/PB-labz
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { selectLocale } from '../LanguageProvider/selectors'; import { changeLocale } from '../LanguageProvider/actions'; import { appLocales } from '../../i18n'; import { createSelector } from 'reselect'; import styles fr...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
react-tutorial/src/App.js
alexisbellido/node-tests
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1>Test</h1> <p> ...
src/Badge.js
justinanastos/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
plugins/Files/js/components/filecontrols.js
NebulousLabs/Sia-UI
import PropTypes from 'prop-types' import React from 'react' import { Set } from 'immutable' import Path from 'path' const FileControls = ({ files, actions }) => { const onDownloadClick = () => { const downloadpath = SiaAPI.openFile({ title: 'Where should we download?', properties: ['openDirectory', ...
examples/pinterest/app.js
nhunzaker/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, IndexRoute, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/pinterest' }) const PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' ...
src/index.js
himawan-r/react-essentials
import React from 'react'; import { render } from 'react-dom'; import { AppComponent } from './app.component'; import { Provider } from 'react-redux'; import AppStore from './store/app.store'; import './css/app.component.scss'; window.React = React; render( <Provider store={AppStore}> <AppComponent> </AppCompo...
src/app/components/commentable.js
webcoding/reactui-starter
import _ from 'lodash'; import React from 'react'; import AddComment from 'components/addComment'; import Comment from 'components/comment'; export default React.createClass( { componentDidMount: function () { this.unsubscribe = this.props.store.listen( this.onComments ); }, componentWillUnmount...
13. ReactJS Fundamentals - Feb 2019/03. Events and Forms/Fog-App/src/App/AppFooter.js
zrusev/SoftwareUniversity2016
import React from 'react'; import SimpleSnackbar from "./SnackBar"; const AppFooter = (props) => (<SimpleSnackbar showSnack={props.showSnack} message={props.message} />); export default AppFooter;
lib/Stage.js
hhhonzik/react-createjs
import React from 'react'; import EaselJsRenderer from './EaselJsRenderer'; const {PropTypes, Component} = React; export class Stage extends Component{ static propTypes = { scale: PropTypes.number }; static defaultProps = { scale: window.devicePixelRatio || 1 }; constructor (props, context) { s...
src/index.js
gajus/react-outside-event
import React from 'react'; import ReactDOM from 'react-dom'; /** * @param {ReactClass} Target The component that defines `onOutsideEvent` handler. * @param {String[]} supportedEvents A list of valid DOM event names. Default: ['mousedown']. * @return {ReactClass} */ export default (Target, supportedEvents = ['mouse...
examples/js/custom/search/default-custom-search-field.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, SearchField } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i...
web/owlspa/src/index.js
pingdynasty/OwlServer
import React from 'react'; import ReactDOM from 'react-dom'; import thunk from 'redux-thunk'; import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import customHistory from '....
geonode/monitoring/frontend/src/pages/alerts/index.js
ppasq/geonode
import React, { Component } from 'react'; import Header from '../../components/organisms/header'; import AlertList from '../../components/organisms/alert-list'; import styles from './styles'; class Alerts extends Component { render() { return ( <div style={styles.root}> <Header back="/" /> ...
source/client/components/visitor/layout/nav-link.js
lawshe/boda
import React from 'react'; import Link from 'react-router/lib/Link'; export default () => { const isActive = this.context.router.isActive(this.props.to, true); let className = isActive ? 'active' : ''; return ( <li className={className}> <Link {...this.props}> {this.props.children} </Lin...
definitions/npm/react-addons-test-utils_v15.x.x/flow_v0.15.x-/react-addons-test-utils_v15.x.x.js
davidohayon669/flow-typed
import React from 'react'; declare module 'react-addons-test-utils' { declare var Simulate: { [eventName: string]: (element: Element, eventData?: Object) => void; }; declare function renderIntoDocument(instance: React.Element<any>): React.Component; declare function mockComponent(componentClass: React.Elem...
src/svg-icons/places/fitness-center.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFitnessCenter = (props) => ( <SvgIcon {...props}> <path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 ...
src/js/components/dialog.js
mdibaiee/Hawk
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { template } from 'utils'; import Hammer from 'react-hammerjs'; export default class Dialog extends Component { render() { let { input, title, description, active } = this.props; let conditionalInput = input ? <input ref='inpu...
app/components/screens/dashboard-screen.js
joeyschroeder/speedometer-app
import { Constants, KeepAwake } from 'expo'; import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; import { resetSpeeds, resetTopSpeed } from '../../ducks/speed'; import { Compass } from '../compass'; import { LineChart } from '../line-chart'; import PropTypes from 'prop-types'; im...
src/components/TagSidebar.js
dggriffin/noteworthy
import React from 'react'; import Drawer from 'material-ui/Drawer'; import AppBar from 'material-ui/AppBar'; import {Chip} from 'material-ui'; export default class TagSidebar extends React.Component { constructor(props) { super(props); this.state = {sidebarOpen: this.props.sidebarOpen}; } c...
packages/material-ui-icons/legacy/SignalWifi0BarSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /> , 'SignalWifi0BarSharp');
src/svg-icons/communication/chat.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChat = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/> </SvgIcon> ); Communicatio...
src/routes/Competition/components/competitionHeader.js
JThanat/student-management-system
import React from 'react' import { requestAndResponse, convertObjectToQueryParams } from '../../../utils/query' import { competitionTeamOptionList } from '../../../utils/tableSelectList' const competitionHeader = [ { title: 'Edit', prop: 'edit', isEdit: true, onEdit: (resolve, reject, data) => { ...
indico/web/client/js/jquery/widgets/jinja/occurrences_widget.js
indico/indico
// This file is part of Indico. // Copyright (C) 2002 - 2022 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import ReactDOM from 'react-dom'; import React from 'react'; import {WTFOccurrencesField} from 'indi...
app/static/src/diagnostic/EquipmentReport.js
SnowBeaver/Vision
import React from 'react'; import ReactDOM from 'react-dom'; import * as d3 from "d3"; import EquipmentForm from './EquipmentForm'; function clone(obj) { if (null == obj || "object" != typeof obj) return obj; var copy = obj.constructor(); for (var attr in obj) { if (obj.hasOwnProperty(attr)) copy[a...
src/docs/CodeExample.js
chenchenalex/react-reusable-chenchenalex
import React from 'react'; import PropTypes from 'prop-types'; import hljs from 'highlight.js/lib/highlight' import javascript from 'highlight.js/lib/languages/javascript' // This way is easy, but adds 170K gzipped to bundle since all langs are included. // import Highlight from 'react-highlight'; class CodeExample e...
examples/plugins/index.js
AlbertHilb/slate
import Plain from 'slate-plain-serializer' import { Editor } from 'slate-react' import React from 'react' import CollapseOnEscape from 'slate-collapse-on-escape' import SoftBreak from 'slate-soft-break' /** * A simple word count plugin. * * @param {Object} options * @return {Object} */ function WordCount(optio...
src/web/client/scripts/containers/ProxyStart.js
MiddleBack/anymock
/** * Created by tanxiangyuan on 16/8/26. */ import React from 'react'; import Button from 'antd/lib/button'; import Message from 'antd/lib/message'; import fetch from '../../../commons/fetch'; import merge from 'lodash/merge'; import './less/ProxyStart.less'; const PROXY_SERVER_STATE = { STOPED: 0, STARTING: 1, ...
src/DetailsSection/Table/Empty.js
conferenceradar/list
import React from 'react'; const Empty = (props) => <span />; export default Empty;
src/svg-icons/device/signal-wifi-off.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifiOff = (props) => ( <SvgIcon {...props}> <path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.4...
src/svg-icons/action/note-add.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionNoteAdd = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </SvgIcon> );...
docs/src/examples/views/Feed/Types/FeedExampleShorthand.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const events = [ { date: '1 Hour Ago', image: '/images/avatar/small/elliot.jpg', meta: '4 Likes', summary: 'Elliot Fu added you as a friend', }, { date: '4 days ago', image: '/images/avatar/small/helen.jpg', meta: '1 L...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
horizon-z40/RN-homework
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
fields/types/email/EmailColumn.js
dryna/keystone-twoje-urodziny
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
Shapes/Arc.js
oblador/react-native-progress
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Path } from 'react-native-svg'; const CIRCLE = Math.PI * 2; function makeArcPath(x, y, startAngleArg, endAngleArg, radius, direction) { let startAngle = startAngleArg; let endAngle = endAngleArg; if (endAngle - startAngle >= ...
index.ios.js
naveedaheer/react-native-doctor-app
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class AheerDoctorApp extends Component { render() { return ( <View style={styles.cont...
src/commands/ls.js
lpan/rebash
import React from 'react'; import { map, filter, compose, addIndex, equals, last, concat, sortBy, init, identity, complement, head, pick, } from 'ramda'; import {output, highlightedOutput} from '../styles'; import handleOptions from '../utils/handleOptions'; import {filterEmpty} from '../utils/pathUtils'; const no...
example/src/App.js
xuezhma/react-bpg
import React, { Component } from 'react'; import lena512color from './lena512color.bpg'; import './App.css'; import ReactBPG from 'react-bpg' class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <ReactBPG src={lena512color} BPGDecoder="BPGDe...
assets/javascripts/kitten/components/graphics/icons-next/eye-icon-next/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' export const EyeIconNext = ({ color, title, ...props }) => ( <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" {...props} > {title && <title>{title}</title>} <path d="M12 4C3.75 4 1 12 1 ...
src/components/Header/Header.js
syarul/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() { ...
Faw.Web.Client/src/main.js
Demenovich-A-J/Family-s-adventure-world
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' import axiosUtil from 'infrastructure/utils/axiosUtils' // import 'react-mdl/extra/material.css' import 'react-mdl/extra/material.js' import 'components/GetMdlSel...
packages/docs/pages/plugin/undo/index.js
nikgraf/draft-js-plugin-editor
/* eslint-disable react/no-unknown-property */ import React, { Component } from 'react'; // eslint-disable-next-line import/no-unresolved // eslint-disable-next-line import/no-duplicates import simpleExampleCode from '!!raw-loader!../../../components/Examples/undo/SimpleUndoEditor'; // eslint-disable-next-line import/...
server/sonar-web/src/main/js/apps/settings/components/inputs/InputForString.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...