path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
react/gameday2/components/embeds/EmbedYoutube.js
jaredhasenklein/the-blue-alliance
import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' const EmbedYoutube = (props) => { const src = `//www.youtube.com/embed/${props.webcast.channel}?autoplay=1` return ( <iframe width="100%" height="100%" src={src} frameBorder="0" allowFullScreen ...
frontend/src/Components/Form/RootFolderSelectInputConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import RootFolderSelectInput from './RootFolderSelectInput'; const ADD_NEW_KEY = 'addNew'; function createMapStateToProps() { return createSelector( (st...
src/components/Editor/EditorPreviewPane/EditorPreview.js
Aloomaio/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; function isVisible(field) { return field.get('widget') !== 'hidden'; } const style = { fontFamily: 'Roboto, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif', }; /** * Use a st...
app/components/Account/Forgot.js
leckman/chapterbot
import React from 'react'; import { connect } from 'react-redux' import { forgotPassword } from '../../actions/auth'; import Messages from '../Messages'; class Forgot extends React.Component { constructor(props) { super(props); this.state = { email: '' }; } handleChange(event) { this.setState({ [eve...
node_modules/eslint-config-airbnb/test/test-react-order.js
tomtom87/react-demo
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import baseConfig from '../base'; import reactRules from '../rules/react'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, // This rule fails when executing on text. rules: {indent: 0}, }); function...
step5-forms/node_modules/react-router/modules/Route.js
jintoppy/react-training
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './PropTypes' const { string, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to the * page when the URL matches a gi...
actor-apps/app-web/src/app/components/Main.react.js
Jaeandroid/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
js/App7.js
merodeadorNocturno/transfer
import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { constructor () { super(); this.state = { red: 128, green: 128, blue: 128 }; this.update = this.update.bind(this); } update(e) { this.se...
src/hoc/withPlayerState.js
xavi160/react-video
import React from 'react'; export default function withPlayerState(Component) { const wrapped = (props, { playerState }) => ( <Component {...props} playerState={playerState} /> ); wrapped.displayName = 'withPlayerState()'; wrapped.contextTypes = { playerState: React.PropTypes.object.isRequired }; return ...
src/svg-icons/editor/format-textdirection-r-to-l.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatTextdirectionRToL = (props) => ( <SvgIcon {...props}> <path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/> </SvgIcon> ); EditorFormatTextdirectionRTo...
postcss/css-modules/src/js/components/App.js
akabekobeko/examples-web-app
/* import React from 'react' const App = (props) => { return ( <div /> ) } */ import React, {Fragment} from 'react' import PropTypes from 'prop-types' import Header from './Header.js' import Content from './Content.js' import Footer from './Footer.js' const App = (props) => { return ( <Fragment> <...
src/svg-icons/action/feedback.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFeedback = (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-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); ActionFeedback = pure(Acti...
node_modules/semantic-ui-react/src/collections/Form/FormSelect.js
jessicaappelbaum/cljs-update
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Select from '../../addons/Select' import FormField from './FormField' /** * Sugar for <Form.Field control={Select} /> * @see Form * @see Select */ function FormSelect(props) { const { ...
src/components/gallery.js
UnforbiddenYet/react-sleek-photo-gallery
import React, { Component } from 'react'; import classNames from 'classnames'; import Presentation from './presentation'; import Thumbnails from './thumbnails'; import { getNextIndexBasedOnDirection, isInteger } from '../utils/helpers'; import styles from '../gallery.scss'; export default class Gallery extends Compo...
src/js/components/DataChart/stories/Simple.js
HewlettPackard/grommet
import React from 'react'; import { Box, DataChart } from 'grommet'; const data = []; for (let i = 1; i < 8; i += 1) { const v = Math.sin(i / 2.0); data.push({ percent: Math.abs(v * 100), }); } export const Simple = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme=...
tests/lib/rules/vars-on-top.js
sankha93/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
src/AboutDatabase.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; class AboutDatabase extends React.Component { render() { return <div className="App-page App-page-about"> <h2>{this.props.session.labels.pageAbout.pageTitle}</h2> <div className="jumbotron"> <p> {this.props.session.label...
src/utils/ValidComponentChildren.js
laran/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
src/svg-icons/communication/dialpad.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationDialpad = (props) => ( <SvgIcon {...props}> <path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
packages/mcs-lite-ui/src/DataChannelCard/DataChannelCard.js
MCS-Lite/mcs-lite
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import TextTruncate from 'react-text-truncate'; import Card from '../Card'; import Heading from '../Heading'; import Small from '../Small'; import P from '../P'; import Hr from '../Hr'; import isString from '../utils/...
actor-apps/app-web/src/app/components/JoinGroup.react.js
supertanglang/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
Console/app/node_modules/antd/es/table/FilterDropdownMenuWrapper.js
RisenEsports/RisenEsports.github.io
import React from 'react'; export default (function (props) { return React.createElement( 'div', { className: props.className, onClick: props.onClick }, props.children ); });
app/packs/src/components/generic/GenericElTableDropTarget.js
ComPlat/chemotion_ELN
/* eslint-disable react/forbid-prop-types */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import uuid from 'uuid'; import { DropTarget } from 'react-dnd'; import { Tooltip, OverlayTrigger, Popover, Button } from 'react-bootstrap'; import { previewAttachmentImage } from '../utils/imageHe...
examples/custom-server-micro/pages/index.js
BlancheXu/test
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li> <Link href='/b' as='/a'> <a>a</a> </Link> </li> <li> <Link href='/a' as='/b'> <a>b</a> </Link> </li> </ul> )
src/components/common/svg-icons/device/signal-cellular-4-bar.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular4Bar = (props) => ( <SvgIcon {...props}> <path d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar); DeviceSignalCellular4Bar.displayName = 'DeviceSign...
src/client/Info.js
SHBailey/cold-disco
import React, { Component } from 'react'; export default class Info extends Component { handleChange(event) { console.log("props: ", this.props) } render() { this.handleChange = this.handleChange.bind(this) const object = {hello: 'hello', goodbye: 'goodbye'}; return ( <div {...object} > Musel...
shared/routes.js
kizzlebot/music_dev
import { Route, IndexRoute } from 'react-router'; import React from 'react'; import App from './containers/App'; import { PostContainer, PostDetailView } from './containers/Posts'; import { LoginContainer, RegisterContainer, AuthCallbackContainer } from './containers/Auth'; import { SoundCloudContainer } from './conta...
src/components/common/svg-icons/image/color-lens.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorLens = (props) => ( <SvgIcon {...props}> <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4...
src/components/todos-list-item.js
javlc/react-todo
import React from 'react'; class TodosListItem extends React.Component { constructor(props) { super(props); this.state = { isEditing: false }; } renderTaskSection() { const { task, isCompleted } = this.props; const taskStyle = { color: isCo...
examples/gh-pages/components/Header.js
broucz/react-inline-grid
import React, { Component } from 'react'; class Header extends Component { render() { return ( <section className="pageHeader"> <h1 className="pageHeaderTitle">react-inline-grid</h1> <h2 className="pageHeaderTagline">A predictable gird layout based on flexbox for <a href="https://facebook.g...
src/routes/Home/PC_index/PC_header.js
markwang2764/react-ant
import React from 'react'; import {Row, Col} from 'antd'; import {Router, Route, Link, browserHistory} from 'react-router' import { Menu, Icon, Tabs, message, Form, Input, Button, CheckBox, Modal } from 'antd'; const FormItem = Form.Item; const SubMenu = Menu.SubMenu; const TabPane = Tabs.TabPane; const MenuIt...
src/interface/report/FightSelectionPanel.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Panel from 'interface/others/Panel'; import './FightSelection.scss'; import FightSelectionPanelList from './FightSelectionPanelList'; class FightSelectionPanel extends React.PureComponent { static propTypes = { report: PropTypes.shape({ ...
src/components/OrderCreated.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import withIntl from '../lib/withIntl'; import CollectiveCard from './CollectiveCard'; import TwitterLogo from './TwitterLogo'; import FacebookLogo from './FacebookLogo'; import { defineMessages, FormattedMessage } from 'react-intl'; import { formatCurrency...
src/svg-icons/hardware/keyboard-arrow-left.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/> </SvgIcon> ); HardwareKeyboardArrowLeft = pure(HardwareKeyboardArrowLeft); Hardware...
src/components/web/Input.js
Manuelandro/Universal-Commerce
import React from 'react' import styled from 'styled-components' const { View, Text, TextInput } = { View: styled.div` display: flex; flex: 1; flex-direction: row; align-items: center; border-width: 1px; border-color: #ccc; margin-left: 5px; margin-ri...
src/todo/components/pages/TodosPage.js
zerkalica/immutable-di-todomvc
import {Setter} from 'immutable-di/define' import AddTodo from 'todomvc/todo/actions/AddTodo' import cn from 'classnames' import React from 'react' import root from 'immutable-di-react/root' import statefull from 'immutable-di-react/statefull' import T from 'babelfish-plus/react/T' import TodoUserFacet from 'todomvc/to...
packages/node_modules/@webex/react-component-activity-item/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ActivityPost from '@webex/react-component-activity-post'; import ActivityShareFiles from '@webex/react-component-activity-share-files'; import ActivitySystemMessage, {SYSTEM_MESSAGE_VERBS} from '@webex/react-compo...
client/src/app/routes/auth/index.js
zraees/sms-project
import React from 'react'; import HtmlRender from '../../components/utils/HtmlRender' export default { childRoutes: [ { path: 'lock', getComponent(nextState, cb){ System.import('./containers/LockedScreen').then((m)=> { cb(null, m.default) }) } }, { path: ...
Quiz/React/quiz/src/signUp.js
ChrL73/Diaphnea
/* -------------------------------------------------------------------- * * Copyright (C) 2018 * * This file is part of the Diaphnea project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License * version 3 as published by the Fre...
app/components/Login/index.js
wellingtonsampaio/react-kanban-board
/** * Login stateless presentational component that renders the UI which allows the user to authorize the application to use its data. */ import React from 'react'; import styles from './styles.css'; import { Button } from 'react-bootstrap'; function Login({ onLogin }) { return ( <div className={styles.login}> ...
app/javascript/mastodon/components/logo.js
theoria24/mastodon
import React from 'react'; const Logo = () => ( <svg viewBox='0 0 216.4144 232.00976' className='logo'> <use xlinkHref='#mastodon-svg-logo' /> </svg> ); export default Logo;
src/components/Grid/Grid.js
IanChuckYin/IanChuckYin.github.io
import React, { Component } from 'react'; import styles from './Grid.module.scss'; import { appendStyles } from '../../util/StyleAppender'; const GRID_ENUMS = { spread: styles.Spread, center: styles.Center } class Grid extends Component { static defaultProps = { type: 'spread' } render() ...
src/web/components/BoardList.js
faalsh/Lama
import React from 'react'; import CreateBoard from './CreateBoard' import _ from 'lodash' import BoardListItem from './BoardListItem' import { StyleSheet, css } from 'aphrodite' class BoardList extends React.Component { constructor(props){ super(props) this.onEscape = this.onEscape.bind(this) } handle...
local_modules/phi-nomenal-webapp/app/index.js
phi-nomenal/phi-nomenal
import React from 'react' import ReactDOM from 'react-dom' import { Router, Route, Link, hashHistory, IndexRoute } from 'react-router' import Home from './home' import App from './app' import Consumer from './consumer/consumer' import God from './god/god' import Tracker from './tracker/tracker' ReactDOM.render( <Ro...
src/svg-icons/hardware/tv.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTv = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); HardwareTv = pure(Hardwar...
src/views/AboutView.js
ericsonmichaelj/fear-the-repo
import React from 'react'; import { connect } from 'react-redux'; import { styles } from 'styles/AboutViewStyles'; import { RaisedButton, Paper } from 'material-ui/lib'; const mapStateToProps = (state) => ({ showKitten: state.showKitten }); class AboutView extends React.Component { state = { showKitten: fal...
src/App/index.js
aspyrx/audiovisual
/** * Main app module. * * @module src/App */ import React from 'react'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import asyncComponent from 'src/async-component'; import Spinner from 'src/Spinner'; import Player from 'bundle-loader?lazy!src/Player'; import NotFound from 'bundle-loader?la...
node_modules/react-router/es6/RoutingContext.js
GregSantulli/react-drum-sequencer
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
src/components/settlement/SettlementAddress/SettlementCreateAddress.js
HuZai/react_settlement
/** * Created by zhengHu on 16-10-8. * 图片list处理 */ import React from 'react'; import webCommon from 'actions/common'; class SettlementCreateAddress extends React.Component { clickAction(){ if(this.props.data.onlyPickup){//自体联系人 this.props.callForm('1'); }else{ window.location.href='...
src/components/performers.js
alexcurtis/react-spotlight
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import PureRenderer from 'react-addons-pure-render-mixin'; import Radium from 'radium'; import {Spring} from 'react-motion'; import rutils from 'react-utils'; @Radium export class Performer extends React.Component { constructor(props){ ...
src/svg-icons/communication/stay-current-portrait.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> );...
packages/veritone-react-common/src/components/DiscoverySideBar/index.js
veritone/veritone-sdk
import React from 'react'; import { string, func, arrayOf, bool, number, objectOf, element, object, shape, any } from 'prop-types'; import IconButton from '@material-ui/core/IconButton'; import ClearFiltersIconFixme from '@material-ui/icons/FormatClear'; import { withStyles } from '@material-ui/styl...
src/views/syllabus/Pluralization.js
bostontrader/senmaker
// @flow import React from 'react' import LessonNavigator from './LessonNavigator' import NoundPanel from '../dictionary/nound/NoundPanel' import {NoundPanelLevel} from '../../data/dictionary/nound/NoundConstants' import QuizActions from '../../data/quiz/QuizActions' function Pluralization(props:Object...
src/components/entityset/EntitySetList.js
dataloom/gallery
import React from 'react'; import Immutable from 'immutable'; import PropTypes from 'prop-types'; import EntitySet from './EntitySet'; import styles from './entityset.module.css'; export default class EntitySetList extends React.Component { static propTypes = { entitySets: PropTypes.instanceOf(Immutable.Map)....
src/components/Layout.js
StK88/react-redux-test
import React from 'react'; import MainMenu from './MainMenu'; class Layout extends React.Component { constructor(props, context) { super(props, context); } render() { return ( <div className="main-container"> <MainMenu props={this.props.children.props.routes[0]} /> {this.props.chil...
dashboard/components/Card.js
MEDIGO/laika
import React from 'react' import { string, node } from 'prop-types' import './Card.css' const Card = ({ title, children }) => <div className='lk-card'> <h3 className='lk-card__title'>{title}</h3> <div className='lk-card__content'>{children}</div> </div> Card.propTypes = { title: string, children: nod...
src/components/exercises/ExplanationText.js
cognostics/serlo-abc
import React from 'react'; import { View, Text } from 'react-native'; import speakerImage from '../../assets/images/speaker.png'; import { GREEN } from '../../styles/colors'; import { DEFAULT } from '../../styles/text'; import { loadSound, play } from '../helpers/audio'; import { RoundButton } from '../Components'; c...
src/Parser/MistweaverMonk/Modules/Spells/SoothingMist.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Combatants from 'Parser/Core/Modules/Combatants'; import Module from 'Parser/Core/Module'; const debug = false; class SoothingMist extends Module { static dependencies = { combatants: Combatants, ...
src/Parser/Monk/Mistweaver/Modules/Traits/WhispersOfShaohao.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import SheilunsGift from '../../Modules/Spells/SheilunsGift'; const debug = false; class WhispersOfShaohao e...
index.js
kdoh/color-harmony
import React from 'react' import App from './src/app' React.render(<App />, document.querySelector('#app'))
src/parser/druid/feral/modules/core/Snapshot.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import { TooltipElement } from 'common/Tooltip'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analy...
src/svg-icons/editor/border-inner.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderInner = (props) => ( <SvgIcon {...props}> <path d="M3 21h2v-2H3v2zm4 0h2v-2H7v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zM9 3H7v2h2V3zM5 3H3v2h2V3zm12 0h-2v2h2V3zm2 6h2V7h-2v2zm0-6v2h2V3h-2zm-4 18h2v-2h-2v2zM13 ...
helene/assets/js/components/LongForecast.js
voidpp/Helene
import React from 'react'; import Highcharts from 'react-highcharts'; import equal from 'deep-equal'; import {ComponentAsFactory, bind} from '../tools'; import WeatherStore from '../stores/WeatherStore'; import Lang from '../lang'; export class LongForecast extends React.Component { constructor(props) { sup...
src/media/js/site/components/paginator.js
mozilla/marketplace-submission
import React from 'react'; import {ReverseLink} from 'react-router-reverse'; export default class Paginator extends React.Component { static propTypes = { hasNextPage: React.PropTypes.bool, hasPrevPage: React.PropTypes.bool, page: React.PropTypes.number, to: React.PropTypes.string, }; render() ...
example/normal(react)/client/static/js/index.wp.js
dnxbf321/node-project-template
import React from 'react' import ReactDom from 'react-dom' import App from './app.jsx' console.log('client = ', client, typeof client) console.log('client.publicPath = ', client.publicPath) console.log('debug = ' + debug, typeof debug) console.log('array1 = ', array1) let arr = [1, 2, 3] let copyArr = [...arr] consol...
src/parser/deathknight/blood/modules/talents/Ossuary.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; const OSSUARY_RUNICPOWER_RE...
tests/react/key.js
AgentME/flow
// @flow import React from 'react'; class Foo extends React.Component<{}, void> {} <Foo />; // OK <Foo key="42" />; // OK <Foo key={42} />; // OK <Foo key={null} />; // OK <Foo key={undefined} />; // OK <Foo key={true} />; // Error class FooExact extends React.Component<{||}, void> {} <FooExact />; // OK <FooExact...
app/containers/Principal/index.js
pauleonardo/demo-trans
/** * * Principal * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { Container, Content, } from 'bloomer'; import Header...
app/javascript/mastodon/features/ui/components/column_link.js
kazh98/social.arnip.org
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Icon from 'mastodon/components/icon'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span...
src/components/LanguageSwitcher/LanguageSwitcher.js
langpavel/react-starter-kit
/* eslint-disable no-shadow */ import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { connect } from 'react-redux'; import { setLocale } from '../../actions/intl'; import s from './LanguageSwitcher.css'; const localeDict = { /* @intl-...
node_modules/react-event-listener/src/index.js
yaolei/Samoyed
// @flow /* eslint-disable prefer-spread */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import shallowEqual from 'fbjs/lib/shallowEqual'; import warning from 'warning'; import * as supports from './supports'; type EventOptions = { capture: boolean; passive: boolean; }; const def...
tests/lib/rules/vars-on-top.js
amsardesai/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
src/Scenes/HopsInventoryScene.js
severnsc/brewing-app
import React from 'react' import EditableInventoryContainer from '../containers/EditableInventoryContainer' import ShadowBox from '../Components/ShadowBox' const HopsInventoryBox = ShadowBox.extend` width:50%; margin-top:50px; ` const HopsInventoryScene = () => { const columns = [ {name: "Hop Name", type: ...
client/app/containers/ToastList/ToastList.js
krouw/T.SIA-electron-blueprint
import React, { Component } from 'react'; import { connect } from 'react-redux' import { Position, Toaster } from "@blueprintjs/core"; import { clearToasts } from '../../actions/Toasts' class ToastList extends Component{ constructor(props){ super(props); } componentDidMount() { if (this.props.toasts.len...
src/App.js
duncanfinney/reactjs-base-project
import React, { Component } from 'react'; export class App extends Component { render() { return ( <h1>Hello world</h1> ); } }
frontend/src/AlbumStudio/AlbumStudioAlbum.js
lidarr/Lidarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import MonitorToggleButton from 'Components/MonitorToggleButton'; import styles from './AlbumStudioAlbum.css'; class AlbumStudioAlbum extends Component { // // Listeners onAlbumMonitoredPress = ()...
src/web/forms/fields/TextInput/AutosuggestInput/index.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
examples/shared-root/app.js
kenwheeler/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link } from 'react-router'; var App = React.createClass({ render() { return ( <div> <p> This illustrates how routes can share UI w/o sharing the url, when routes have no pa...
dispatch/static/manager/src/js/components/SectionEditor/SectionForm.js
ubyssey/dispatch
import React from 'react' import { TextInput } from '../inputs' import * as Form from '../Form' export default function SectionForm(props) { return ( <Form.Container> <Form.Input label='Name' error={props.errors.name}> <TextInput placeholder='Name' value={pro...
client/components/Footer.js
glenrage/another-chance
import React from 'react'; class Footer extends React.Component { render() { return ( <div className="row text-center footer"> <p> ©Colitas Sonrientes, Inc. is a 501 (c) (3) Non-Profit Public Charity </p> <a href=""> <img id="" src="" alt="" /> </a> ...
src/components/savingThrows/SavingThrows.js
DaveOrDead/react-dnd-character-generator
import React from 'react'; import StatBox from '../statBox'; import {getAbilityModifier} from '../../utils/getAbilityModifier'; const SavingThrows = ({reflexSave, willSave, fortitudeSave, abilities}) => { const reflex = reflexSave + getAbilityModifier(abilities.ability2); const will = willSave + getAbilityMod...
src/@ui/TileNav/NavItem.js
NewSpring/Apollos
import React from 'react'; import { StyleSheet, View } from 'react-native'; import PropTypes from 'prop-types'; import { pure, compose } from 'recompose'; import { Link } from '@ui/NativeWebRouter'; import { H6 } from '@ui/typography'; import styled from '@ui/styled'; import LinearGradient from '@ui/LinearGradient'; im...
src/js/components/login/LanguageInput.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/pages/404.js
svj2291/svj2291.github.io
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
src/forms/Predictions.js
codeforboston/cliff-effects
import React from 'react'; import { Divider, Header, Tab, Message, Button, Menu, } from 'semantic-ui-react'; // PROJECT COMPONENTS import { FormPartsContainer } from './FormPartsContainer'; import { IntervalColumnHeadings } from '../components/headings'; import { CashFlowInputsRow } from './cashflow'; impo...
src/components/Form/TextField/TextField.js
jmlweb/paskman
import React from 'react'; import PT from 'prop-types'; import styled from 'styled-components'; import styledMap from 'styled-map'; import colors from '../../../styles/colors'; import fonts from '../../../styles/fonts'; const StyledTextField = styled.input` border: 2px solid ${styledMap({ error: colors.error, ...
src/js/components/Renderer.js
ngokevin/aframe-sketch
import {Entity} from 'aframe-react'; import React from 'react'; export default props => ( <Entity children={props.tree} position="0 0 -5"/> );
src/entry-points/client.js
gaearon/react-redux-starter-kit
import React from 'react'; import App from 'containers/app'; import { history } from 'react-router/lib/BrowserHistory'; React.render(<App history={history} />, document.getElementById('mount'));
docs/src/app/components/pages/components/TextField/ExampleControlled.js
ruifortes/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; export default class TextFieldExampleControlled extends React.Component { constructor(props) { super(props); this.state = { value: 'Property Value', }; } handleChange = (event) => { this.setState({ value: eve...
app/containers/HomePage.js
JCombee/wallet
import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
src/createDva.js
cycgit/dva
import React from 'react'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose, combineReducers } from 'redux'; import createSagaMiddleware from 'redux-saga/lib/internal/middleware'; import * as sagaEffects from 'redux-saga/effects'; import isPlainObject from 'is-plain-object'; import...
docs/app/Examples/elements/Reveal/States/RevealExampleDisabled.js
koenvg/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleDisabled = () => ( <Reveal animated='move' disabled> <Reveal.Content visible> <Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden...
pages/login/index.js
kylecarter/bank
import React from 'react' import jQuery from 'jquery' import Head from 'next/head' import { Button } from 'react-bootstrap' const $ = jQuery; export default class Login extends React.Component { constructor() { super(); this.state = { username: 'client.tester@email.com', password: ...
pkg/interface/publish/src/js/components/lib/settings.js
ngzax/urbit
import React, { Component } from 'react'; import { writeText } from '../../lib/util'; import { Spinner } from './icons/icon-spinner'; import { InviteSearch } from '/components/lib/invite-search'; export class Settings extends Component { constructor(props){ super(props); this.state = { title: "", ...
docs/app/Examples/collections/Form/States/FormFieldDisabledExample.js
jcarbo/stardust
import React from 'react' import { Form, Input } from 'stardust' const FormFieldDisabledExample = () => ( <Form> <Form.Group widths='equal'> <Form.Input label='First name' placeholder='Disabled' disabled /> <Form.Input label='Last name' placeholder='Disabled' disabled /> </Form.Group> </Form> )...
src/components/LessonRequestActionBlock/LessonRequestActionBlock.js
eunvanz/flowerhada
import React from 'react' import ActionBlock from 'components/ActionBlock' import { connect } from 'react-redux' import { setMessageModalShow, setMessageModal } from 'store/messageModal' import { setInquiryModal } from 'store/inquiry' const mapDispatchToProps = { setMessageModal, setMessageModalShow, setInquiryM...
ajax/libs/react-instantsearch/4.1.0-beta.5/Connectors.js
sashberd/cdnjs
/*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && ...
src/components/Footer/index.js
saschajullmann/gatsby-starter-gatsbythemes
import React from 'react'; import styled, { css } from 'react-emotion'; import Link from 'gatsby-link'; import PropTypes from 'prop-types'; import colors from '../../utils/colors'; import { Box, Flex } from '../Layout'; import feather from '../../utils/feather'; import media from '../../utils/media'; const footerStyle...
docs/src/app/components/pages/components/Dialog/ExampleSimple.js
kasra-co/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * Dialog with action buttons. The actions are passed in as an array of React objects, * in this example [FlatButtons](/#/components/flat-button...
js/components/Phone.js
pt-br/relay-phones
import React, { Component } from 'react'; import Relay from 'react-relay'; import RemovePhoneMutation from '../mutations/RemovePhoneMutation'; export default class Phone extends Component { constructor(props) { super(props); } removePhone = (phoneId) => { const { viewer } = this.props; Relay.Stor...