path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/image/linked-camera.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLinkedCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3...
src/app.js
lyuehh/webpack-example
// Bootstrapping module import React from 'react'; require('assets/styles/antd-0.7.3-beta6.css'); require('assets/styles/base.scss'); import { Router, Route, Link, Redirect } from 'react-router'; import { history } from 'react-router/lib/HashHistory'; import About from 'routers/About'; import Inbox from 'routers/Inb...
src/neff_birkley/components/Intro.js
neffbirkley/everything
import React from 'react'; import styles from './Intro.css'; const Intro = (props) => ( <div className={styles.container}> <h1 className={styles.title}>Neff Birkley</h1> <h2 className={styles.tag}>Time travelling tech company from the future</h2> <span className={styles.spoiler}>{'(We don\'t exist yet)'}...
app/client/lag/lagacy/components/Text.js
Exper1ence/qinxiaoguyi
/** * Created by Exper1ence on 2016/12/31. */ import React from 'react'; import Component from './Component'; import View from './View'; export default class Text extends Component { _run({children, style,}) { return ( <View style={{ ...style, }}> {...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-upload/es/IframeUploader.js
bhathiya/test
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
demo/layout/layout.js
Graf009/react-mdl
import React from 'react'; import ReactDOM from 'react-dom'; import { Layout, Header, Navigation, HeaderRow, HeaderTabs, Drawer, Content } from '../../src/Layout'; import { Tab } from '../../src/Tabs'; import Textfield from '../../src/Textfield'; class Demo extends React.Component { constructor(props) { su...
src/components/aboutMe.js
AnkilRNaik/AnkilRNaik.github.io
import React from 'react'; import { aboutMeText } from '../content/aboutMe.json'; function AboutMe() { return ( <div> <p>{aboutMeText}</p> </div> ); } export default AboutMe;
js/components/blocks/LoginForm.js
Sacret/githubify
'use strict'; import React from 'react'; import Reflux from 'reflux'; // import { Button, Alert } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; // import ShareBlock from './ShareBlock'; // import UserActions from '../../actions/UserActions'; // import UserStore from '../../stores/UserStore'; /*...
src/svg-icons/toggle/radio-button-unchecked.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleRadioButtonUnchecked = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/> </SvgIco...
ajax/libs/react-instantsearch/5.2.1/Connectors.js
joeyparrish/cdnjs
/*! React InstantSearch 5.2.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports',...
src/components/DigitalReadout.js
blaqbern/report-generator
import React from 'react' function DigitalReadout({ reading }) { return ( <div>{JSON.stringify(reading) || 'Error'}</div> ) } const { number } = React.PropTypes DigitalReadout.propTypes = { reading: number } export default DigitalReadout
modules/dreamview/frontend/src/components/PlaybackControls/ControlIcons.js
xiaoxq/apollo
import React from 'react'; import classNames from 'classnames'; class PlayIcons extends React.Component { render() { const { onClick } = this.props; return ( <svg className="icon" viewBox="0 0 10 10" onClick={onClick}> <polygon className="play" points="0 0, 10 5, 0 10" /> ...
src/js/jobs/components/skills/SkillScatter.js
tpucci/jobads-webapp
import React from 'react'; import ReactDOM from 'react-dom'; import * as d3 from 'd3'; // Helpers import post from '../../../helpers/post'; // App import Dots from './graph/Dots'; import Grid from './graph/Grid'; const unpreparedData={ "query": [], "similar_skills": [] }; export default class SkillScatter ...
scripts/apps/search/components/fields/slugline.js
Aca-jov/superdesk-client-core
import React from 'react'; import PropTypes from 'prop-types'; import {createMarkUp} from 'apps/search/helpers'; export function slugline(props) { if (props.item.slugline) { return React.createElement( 'span', {className: 'keyword', key: 'slugline', dangerouslySetInn...
src/svg-icons/action/https.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
src/components/Layout/Footer.js
102010cncger/antd-admin
import React from 'react' import { config } from 'utils' import styles from './Footer.less' const Footer = () => (<div className={styles.footer}> {config.footerText} </div>) export default Footer
src/svg-icons/communication/stay-primary-portrait.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryPortrait = (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/react-router-website/modules/components/Home/index.js
justjavac/react-router-CN
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/components/recipeSuggestionListItem.js
ColdForge/icebox
import React from 'react'; import { GridTile } from 'material-ui/GridList'; import { Card, CardActions, CardTitle, CardText, CardMedia } from 'material-ui/Card'; import RaisedButton from 'material-ui/RaisedButton'; const styles = { imageContainer: { backgroundSize: 'cover', backgroundRepeat: 'no-repeat', backgr...
rn-14-tabsWithTabNavigator/App.js
KyoungRan/react-native-ex-NDH
import React from 'react'; import { View, Text } from 'react-native'; import { TabNavigator } from 'react-navigation'; import FirstScreen from './tabs/FirstScreen'; import SecondScreen from './tabs/SecondScreen'; const MainScreenNavigator = TabNavigator( { Tab1: { screen: FirstScreen }, Tab2: { screen: Seco...
src/media/js/addon/containers/reviewDetail.js
mozilla/marketplace-submission
/* Single review page for an add-on. Lists the add-on's versions, each with their own approve and reject buttons. */ import React from 'react'; import {connect} from 'react-redux'; import {reverse, ReverseLink} from 'react-router-reverse'; import {bindActionCreators} from 'redux'; import AddonVersionListingContai...
gatsby-strapi-tutorial/cms/admin/admin/src/components/NotificationsContainer/index.js
strapi/strapi-examples
/** * * NotificationsContainer * */ import React from 'react'; import PropTypes from 'prop-types'; import { CSSTransition, TransitionGroup } from 'react-transition-group'; import Notification from '../Notification'; import styles from './styles.scss'; class NotificationsContainer extends React.Component { // eslint...
tools/render.js
trungtin/mymy
import glob from 'glob'; import { join, dirname } from 'path'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from '../containers/Html'; import task from './lib/task'; import fs from './lib/fs'; const DEBUG = !process.argv.includes('release'); function getPages() { return new Promis...
App/ui/components/ShareBox.js
nthbr/mamasound.fr
/* * Copyright (c) 2017. Caipi Labs. All rights reserved. * * This File is part of Caipi. You can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. ...
react/features/polls/components/web/PollAnswer.js
jitsi/jitsi-meet
// @flow import { Checkbox } from '@atlaskit/checkbox'; import React from 'react'; import { isSubmitAnswerDisabled } from '../../functions'; import AbstractPollAnswer from '../AbstractPollAnswer'; import type { AbstractProps } from '../AbstractPollAnswer'; const PollAnswer = (props: AbstractProps) => { const { ...
app/routes.js
immutablelist/React-redux-starter
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/HomePage'; import AboutPage from './components/about/AboutPage'; import NotFound from './components/common/NotFound'; import ManageSamplePage from './components/about/...
test/integration/basic/pages/hmr/error-in-gip.js
flybayer/next.js
import React from 'react' export default class extends React.Component { static getInitialProps() { const error = new Error('an-expected-error-in-gip') throw error } render() { return <div>Hello</div> } }
src/grid.js
google/easy-grid
/** * Copyright 2017 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
client/src/research/LoginPage.story.js
mit-teaching-systems-lab/swipe-right-for-cs
import React from 'react'; import { storiesOf } from '@storybook/react'; import LoginPage from './LoginPage.js'; storiesOf('Research/LoginPage', module) //eslint-disable-line no-undef .add('normal', () => { return <LoginPage />; });
src/svg-icons/image/camera-roll.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraRoll = (props) => ( <SvgIcon {...props}> <path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h...
index.android.js
thesabbir/oconnect
/** * 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 oconnect extends Component { render() { return ( <View style={styles.container}...
web/components/screens/GameOver/__fixtures__/multi-win.js
skidding/flatris
// @flow import React from 'react'; import { getSampleUser, getSampleUser2 } from '../../../../utils/test-helpers'; import { getBlankGame, addUserToGame, updatePlayer, } from 'shared/reducers/game'; import GameOver from '..'; const user1 = getSampleUser(); const user2 = getSampleUser2(); let game = getBlankGame...
src/components/Link/Link.js
tinwaisi/take-home
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/entypo/Tripadvisor.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Tripadvisor'; let EntypoTripadvisor = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M20,6.0090332h-2.8286133C15.2119141,4.6748047,12.8125,4,10,4S4.7880859,4.6748047,2.8286133,...
src/main/resources/public/js/config/i18n-config.js
ozwillo/ozwillo-portal
import {I18nProvider} from '@lingui/react'; import React from 'react'; import PropTypes from 'prop-types'; import {setupI18n} from '@lingui/core'; export const i18n = setupI18n(); export default class I18nConfig extends React.Component { state = { env: this.props.env, language: this.props.langua...
src/components/tweet/tweet_content.js
camboio/ibis
import React from 'react'; import { Link } from 'react-router-dom'; import Timeago from 'react-timeago'; import { parseText } from './tweet_functions'; import FavoriteIcon from '../../icons/favorite_icon'; export default class TweetContent extends React.Component { ifReplying(){ if(this.props.status.in_reply_...
src/components/SearchFormComponent.js
cised-ca/se-dir-frontend-react
'use strict'; import React from 'react'; import { Link } from 'react-router'; import LocationDisambiguation from './LocationDisambiguationComponent'; import Loading from './LoadingComponent'; import { translate } from 'react-i18next'; const POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z]/; class SearchFormComponent exten...
bank-app-client/src/components/Home.js
esteban24/bank-app
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Home extends Component { perPage = 10; constructor(props) { super(props); this.state = { charges: [], offset: 0, err: false }; } componentDidMount() { this.loadCharges(); } loadCha...
ajax/libs/react-instantsearch/3.2.0/Dom.js
sufuf3/cdnjs
/*! ReactInstantSearch 3.2.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
app/components/build/AnnotationsList.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import PusherStore from '../../stores/PusherStore'; class AnnnotationsList extends React.Component { static propTypes = { build: PropTypes.shape({ id: PropTypes.string.isRequired, annotations: Pro...
admin/client/App/shared/Popout/PopoutPane.js
andrewlinfoot/keystone
/** * Render a popout pane, calls props.onLayout when the component mounts */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: Re...
webpack/components/AnsibleHostDetail/AnsibleHostDetail.js
theforeman/foreman_ansible
import React from 'react'; import PropTypes from 'prop-types'; import { Tabs, Tab, TabTitleText } from '@patternfly/react-core'; import { useHistory } from 'react-router-dom'; import SkeletonLoader from 'foremanReact/components/common/SkeletonLoader'; import SecondaryTabRoutes from './components/SecondaryTabRoutes'; i...
app/index.js
karthik-ir/TotallyNotArbore
// @flow import React from 'react' import { render } from 'react-dom' import { AppContainer } from 'react-hot-loader' import Root from './containers/Root' import { getLoginStore, addfullStoreChangeCallback } from './store' import './app.global.css' let loginStore = null let fullStore = null addfullStoreChangeCallback...
examples/js/manipulation/debounce-search-table.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries', 'cherries' ]; for (let i =...
frontend/src/components/MyFooter.js
beelzebielsk/hoopla
import React, { Component } from 'react'; import '../styles/footer.css'; class MyFooter extends Component { render() { return ( <footer>&copy; 2017 Hoopla</footer> ); } } export default MyFooter;
src/Suggestions.js
captainill/react-tag-select
import React, { Component } from 'react'; class Suggestions extends Component { static propTypes = { query: React.PropTypes.string.isRequired, selectedIndex: React.PropTypes.number.isRequired, suggestions: React.PropTypes.array.isRequired, handleClick: React.PropTypes.func.isRequired, handleHover...
src/entry-points/client.js
szhclaye/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'));
app/Components/Resume/Detail/Detail.js
martinvarelaaaa/tintina
import React from 'react'; import { View } from 'react-native'; import PropTypes from 'prop-types'; import Activities from '../Activities'; import styles from './styles'; const Detail = ({ activities }) => ( <View style={styles.container}> <View style={styles.activities}> <Activities list={activities} />...
src/fixtures/stories.js
ChluNetwork/chlu-demo
import React from 'react' import { StarHalf, Web, AccessTime, Lock, Business, EuroSymbol, VerifiedUser } from '@material-ui/icons' export const stories = [ { // First story inverted: true, badgeColor: "info", badgeIcon: StarHalf, title: "The Commercial Importance of Online Ratings &...
app/components/SuperCenter.js
Toreant/monster_admin
/** * Created by apache on 16-4-5. */ import React from 'react'; import {Link} from 'react-router'; import SuperCenterActions from '../actions/SuperUserControlActions'; import SuperCenterStore from '../stores/SuperCenterStore'; class SuperCenter extends React.Component { constructor(props) { super(props)...
third_party/prometheus_ui/base/web/ui/node_modules/@wojtekmaj/enzyme-adapter-react-17/src/ReactSeventeenAdapter.js
GoogleCloudPlatform/prometheus-engine
/* eslint-disable no-use-before-define */ import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMServer from 'react-dom/server'; import ShallowRenderer from 'react-test-renderer/shallow'; import TestUtils from 'react-dom/test-utils'; import checkPropTypes from 'prop-types/checkPropTypes'; import ha...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
qvoiriot/qvoiriot.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
web/react/src/client/components/locs/GridContainer/ItemContainer/ItemContainer.js
JamesMillercus/Portfolio-Website
/*eslint max-len: ["error", { "code": 200 }]*/ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Redirect } from 'react-router'; import ItemImage from './ItemImage/ItemImage'; import ItemText from './ItemText/ItemText'; import Video from './Video/Video'; import itemContainerConfi...
src/decorators/withViewport.js
albperezbermejo/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/routes/register/index.js
binyuace/vote
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
assets/src/components/App.js
arshmakker/ReduxBase
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default App
YouTube.ios.js
movn-dev/react-native-youtube
/** * @providesModule YouTube */ import React from 'react'; import ReactNative, { View, requireNativeComponent, NativeModules } from 'react-native'; const RCTYouTube = requireNativeComponent('RCTYouTube', null); export default class YouTube extends React.Component { static propTypes = { videoId: React.PropTy...
src/Home/List/components/VirtualList/components/Survey/index.js
NERC-CEH/irecord-app
import React from 'react'; import PropTypes from 'prop-types'; import alert from 'common/helpers/alert'; import { observer } from 'mobx-react'; import { IonItem, IonItemSliding, IonItemOptions, IonItemOption, } from '@ionic/react'; import { open } from 'ionicons/icons'; import OnlineStatus from './components/On...
src/components/questionList.js
AuggieH/cuddly-disco
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../actions'; import { Link } from 'react-router'; class QuestionList extends Component{ componentDidMount(){ this.props.filterQuestions(this.props.options) } render(){ return renderQuestionList.call(t...
src/client/view/newDocument.js
yoo2001818/IoTLogic-server
import React, { Component } from 'react'; import AppContainer from '../container/appContainer'; import DocumentEntryForm from '../container/form/documentEntryForm'; import __ from '../lang'; export default class NewDocument extends Component { render() { return ( <AppContainer title={__('NewDocumentTitle'...
app/javascript/mastodon/features/account_gallery/components/media_item.js
Craftodon/Craftodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; export default class MediaItem extends ImmutablePureComponent { static propTypes = { media: Immutable...
actor-apps/app-web/src/app/index.js
Johnnywang1221/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import injectTapEventPlugin from 'react-tap-event-plugin'; import Deactivated from 'components/Deactivated.react'; import Login from 'components/Login.react'; import ...
addons/info/example/story.js
bigassdragon/storybook
import React from 'react'; import Button from './Button'; import { storiesOf, action } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import backgrounds from 'react-storybook-addon-backgrounds'; storiesOf( 'Button', ).addWithInfo( 'simple usage', 'This is the basic usage with the bu...
envkey-react/src/components/forms/shared/basic_rename_form.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" import SmallLoader from 'components/shared/small_loader' export default class BasicRenameForm extends React.Component { constructor(props) { super(props) this.state = { name: props.name } } componentWillReceiveProps(nex...
src/svg-icons/editor/pie-chart.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorPieChart = (props) => ( <SvgIcon {...props}> <path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/> </SvgIco...
internals/templates/containers/App/index.js
fenderface66/spotify-smart-playlists
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
react/src/js/containers/ExerciseRename.js
ftzm/muscleup
import React from 'react' import { connect } from 'react-redux' import { renameExercise } from '../actions/exercises' let ExerciseRename = ({ dispatch, id }) => { let name return ( <div> <form onSubmit={e => { e.preventDefault() if (!name.value.trim()) { return } dispatch(...
examples/users/src/components/CallButton/index.js
pure-ui/styleguide
import React, { Component } from 'react'; import styles from './styles.css'; import Button from '../Button'; /* eslint-disable max-len */ const initialState = { timestamp: undefined, duration: undefined, editing: false, }; class CallButton extends Component { // eslint-disable-line react/prefer-stateless-func...
assets/jsx/views/base/components/footer.js
Tjorriemorrie/besetfree
import React from 'react' import FacebookPage from './../../facebook/containers/page' const Footer = () => { return <footer> <div className="wrapper"> <div className="boxes"> <FacebookPage /> <div> <p> Tel: 0421 854...
packages/mineral-ui-icons/src/IconAddCircleOutline.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 IconAddCircleOutline(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
src/svg-icons/editor/border-right.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderRight = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h...
src/parser/shared/modules/features/LowHealthHealing/index.js
anom0ly/WoWAnalyzer
import { Trans } from '@lingui/macro'; import { Panel } from 'interface'; import Analyzer from 'parser/core/Analyzer'; import { EventType } from 'parser/core/Events'; import Combatants from 'parser/shared/modules/Combatants'; import React from 'react'; import LowHealthHealingComponent from './Component'; class LowHea...
tmeister/static/src/common/error-boundary.component.js
CanopyTax/toggle-meister
import React from 'react' export default class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false }; } static getDerivedStateFromError(error) { // Update state so the next render will show the fallback UI. return { hasError: true }; } c...
src/Parser/Paladin/Retribution/CONFIG.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { Hewhosmites } from 'CONTRIBUTORS'; import SPECS from 'common/SPECS'; import Wrapper from 'common/Wrapper'; import CombatLogParser from './CombatLogParser'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don...
packages/react-devtools-shell/src/app/InspectableElements/CustomObject.js
Simek/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; class Custom { _number = 42; get number() { return this._number; } } export def...
src/js/components/Lessons/TableRow.js
appdev-academy/appdev.academy-react
import PropTypes from 'prop-types' import React from 'react' import { findDOMNode } from 'react-dom' import { Link } from 'react-router' import { DragSource, DropTarget } from 'react-dnd' import GreenButton from '../Buttons/Green' import OrangeButton from '../Buttons/Orange' const style = { border: '1px dashed gray...
src/Preloader.js
jareth/react-materialize
import React from 'react'; import cx from 'classnames'; const Spinner = () => { let {color, only} = this.props; let spinnerClasses = { 'spinner-layer': true }; if (only) { spinnerClasses['spinner-' + color + '-only'] = true; } else { spinnerClasses['spinner-' + color] = true; } return ( <...
src/components/icon/index.js
KleeGroup/focus-components
import PropTypes from 'prop-types'; import React from 'react'; import filterProps from '../../utils/filter-html-attributes'; function Icon({ name, library, onClick, style }) { switch (library) { case 'material': return ( <i className='material-icons' onClick={onClick} {...filter...
src/containers/followers.js
carlosfh87/KN_REACT_API
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { showLoader } from '../actions/index'; import CustomModal from './custom_modal'; import Loader from '../components/Loader'; import FollowersList from '../components/followers/followers_list'; class Followers extends Component { ...
examples/with-custom-devserver-options/src/server.js
jaredpalmer/razzle
import App from './App'; import React from 'react'; import express from 'express'; import { renderToString } from 'react-dom/server'; const assets = require(process.env.RAZZLE_ASSETS_MANIFEST); const cssLinksFromAssets = (assets, entrypoint) => { return assets[entrypoint] ? assets[entrypoint].css ? assets[entrypo...
docs/app/Examples/elements/Input/States/InputExampleLeftLoading.js
ben174/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleLeftLoading = () => ( <Input loading icon='user' iconPosition='left' placeholder='Search...' /> ) export default InputExampleLeftLoading
packages/p2p-chat/src/components/Settings/MyInfo/index.js
dgeibi/p2p-chat
import React from 'react' import PropTypes from 'prop-types' import { formatTag } from '../../../utils/format' import styles from './MyInfo.scss' const MyInfo = ({ logined, tag, address, port, username }) => logined ? ( <p className={styles['my-info']}> {username} {formatTag(tag)} <br /> ...
src/example.js
umbobabo/react-i13n-tealium
import React from 'react'; import ReactInstrumentationTealium from './index.js'; import TealiumConfig from './example-config.js'; /* eslint-disable id-match */ import { setupI13n } from 'react-i13n'; // Simulation of a basic App. class DemoApp extends React.Component { static get propTypes() { return { /* ...
src/decorators/withViewport.js
jifeon/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
components/DocumentList.js
sunday-school/sundayschool.rocks
import R from 'ramda' import React from 'react' import Link from 'next/link' import ReversibleList from './ReversibleList' const DocumentLink = ({slug, title}) => <Link href={`documents?doc=${slug}`}> <a>{title}</a> </Link> const DocumentList = ({documents}) => R.pipe( R.keys, R.invoker(0, 'sort'), R.m...
examples/src/app.js
VanCoding/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import Creatable from './components/Creatable'; import Contributors from './components/Contributors'; import GithubUsers from './components/GithubUsers'; import CustomComponents from './com...
src/pages/lolly-polly.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Lolly Polly' /> )
src/main/common/container/App.js
FrederikS/react-isomorphic-example
import React from 'react'; import Forum from './Forum'; class App extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return <Forum topicStore={this.context.store} />; } } App.contextTypes = { store: React.PropTypes.object.isRequired }; export default App;
app.js
koistya/react-static.tarkus.me
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import Location from '....
src/docs/components/FilterControlDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import FilterControl from 'grommet-addons/components/FilterControl'; import DocsArticle from '../../components/DocsArticle'; import Code from '../../components/Code'; export default class FilterControlDoc ex...
src/svg-icons/navigation/fullscreen.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreen = (props) => ( <SvgIcon {...props}> <path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/> </SvgIcon> ); NavigationFullscreen = pure(NavigationFullscre...
client/src/Components/oldMasterForm/SubstanceUse.js
teamcrux/EmploymentOptions
import React from 'react'; import { Field } from 'redux-form'; const SubstanceUse = () => { return ( <div> <div> <label htmlFor="drug_screen">Can you pass a drug screen?</label> <label><Field name="drug_screen" id="drug_screen" component="input" value="true" type="radio"/> Yes</label> ...
app/components/Header.js
mfrohberg/fil
import React from 'react'; export default class Header extends React.Component { render() { var block = "header", imagePath = "../images/logo.png"; return ( <header className={block}> <div className={block + "__logo"}> <a target="_blank" href="//github.com/fatih...
node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import clsx fr...
app/components/Pages/Settings.js
alexpell00/FRCUltimateManager
/* * @Author: alexpelletier * @Date: 2016-03-20 16:27:49 * @Last Modified by: alexpelletier * @Last Modified time: 2016-03-22 10:56:17 */ import React from 'react'; import request from 'superagent'; import SettingsDataManager from '../Elements/SettingsDataManager' var Settings = React.createClass({ getInitialSt...
src/interface/icons/Strength.js
yajinni/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" className="icon" {...props}> <path d="M49.771,31.52H47.57v-6.691c0-0.821-0.672-1.492-1.492-1.492c-0.821,0-1.492,0.672-1.492,1.492 c0-0.821-0.672-1.492-1.492-1.492S41.6,24.008,41.6,24.828...
src/react-immutable-cursor.js
redbadger/react-immutable-cursor
import React from 'react'; import {fromJS as buildImmutableFrom} from 'immutable'; import {from as buildRootCursorFrom} from 'immutable-cursor'; export default class extends React.Component { updateAndRenderTree(newData) { this.setState({ cursor: buildRootCursorFrom( newData, ::this.update...
public/index.js
datpham23/tinder-wingman
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import {createStore, combineReducers, applyMiddleware, compose} from 'redux'; import {Provider} from 'react-redux'; import thunk from 'redux-thunk'; import {Rou...
src/components/redis/original/RedisOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './RedisOriginal.svg' /** RedisOriginal */ function RedisOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'RedisOriginal' + ' ' + class...
client/src/WidgetBuilder.js
wilsoncusack/metrics-board
import React, { Component } from 'react'; import $ from 'jquery'; class WidgetBuilder extends Component { constructor(props){ super(props); this.state = { properties: [], // kind of a misnomer, this is indeed an array of properties, but we refer to this by "name" when // sending to the mixpanel API ...