path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/react-icons/fa/moon-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaMoonO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.7 29.1q-1.2 0.2-2.5 0.2-4 0-7.5-2t-5.5-5.5-2-7.5q0-4.3 2.3-8-4.5 1.4-7.3 5...
docs/src/app/components/pages/components/SvgIcon/Page.js
hwo411/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconReadmeText from './README'; import IconExampleSimple from './ExampleS...
src/app/Components/Editor/Entities/Image.js
reauv/persgroep-app
import React from 'react'; import { Entity } from 'draft-js'; export default ({ block }) => { const source = Entity.get(block.getEntityAt(0)).data.src; return ( <img src={source} /> ); };
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
narabo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import emojify from '../../../emo...
components/Layout/Drawer.js
jhlav/MPNLeaderboards
import React from 'react'; import Navigation from './Navigation'; class Drawer extends React.Component { render() { return ( <div className="mdl-layout__drawer"> <span className="mdl-layout-title">{this.props.title}</span> <Navigation /> </div> ); } } export default Drawer;
frontend/app/components/Footer.js
orels1/Red-Portal
/** * Created by orel- on 20/Jan/17. */ import React from 'react'; class Footer extends React.Component { constructor(props) { super(props); this.onChange = this.onChange.bind(this); } onChange(state) { this.setState(state); } render() { return ( <div...
src/svg-icons/image/crop-16-9.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop169 = (props) => ( <SvgIcon {...props}> <path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/> </SvgIcon> ); ImageCrop169 = pure(ImageCrop169); ImageCr...
config/flow/definitions/react.js
Sevas727/ReactTest3
/* @flow */ // Note: we already have the definitions from // https://github.com/facebook/flow/blob/master/lib/react.js // so the below are merely helpful extensions import React from 'react'; declare type $React$Element = React.Element<*>; declare type $React$Node = string | number | $React$Element | Array<$React$E...
src/index.js
kjan95129/kjan95129.github.io
import React from 'react' import ReactDOM from 'react-dom' import App from 'containers/App' import * as serviceWorker from 'serviceWorker' import 'font-awesome/css/font-awesome.min.css' import 'bootstrap/dist/css/bootstrap.min.css' import 'index.css' import 'portfolio.css' ReactDOM.render(<App />, document.getElement...
src/ModalTitle.js
pivotal-cf/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
src/components/Post/Comments/Comments.js
bapti/blog
// @flow strict import React from 'react'; import ReactDisqusComments from 'react-disqus-comments'; import { useSiteMetadata } from '../../../hooks'; type Props = { postTitle: string, postSlug: string }; const Comments = ({ postTitle, postSlug }: Props) => { const { url, disqusShortname } = useSiteMetadata(); ...
src/js/components/table/table_selection_indicator.js
rafaelfbs/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; import Realize from '../../realize'; import { mixin } from '../../utils/decorators'; import { CssClassMixin } from '../../mixins'; @mixin(CssClassMixin) export default class TableSelectionIndicator extends Component { static propTyp...
src/scene/Home/HomeScene.js
Cowboy1995/JZWXZ
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, ScrollView, TouchableOpacity, ListView, Image, StatusBar } from 'react-native'; import { Heading1, ...
src/LikertGroup.js
arunchaganty/briefly
import React, { Component } from 'react'; import {Radio, Table} from 'react-bootstrap'; import './LikertGroup.css' class LikertGroup extends Component { shouldComponentUpdate(nextProps) { return nextProps.value !== this.props.value; } renderLikert(key, min, max) { let entries = []; entries.push(<td ...
src/components/NewCheckIn/AddressAutocomplete.js
transitlinks/web-app
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './AddressAutocomplete.css'; import cx from 'classnames'; import { connect } from 'react-redux'; import { setProperty } from '../../actions/properties'; import { searchAddresses } from '../../actions/autocomplete';...
ajax/libs/react-select/1.0.0-rc.10/react-select.es.js
BenjaminVanRyseghem/cdnjs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElement('span', { className: ...
react-twitter-save-data-loading(client-hint)/src/index.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 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 ...
examples/js/selection/single-select-table.js
opensourcegeek/react-bootstrap-table
'use strict'; import React from 'react'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; var products = []; function addProducts(quantity) { var startId = products.length; for (var i = 0; i < quantity; i++) { var id = startId + i; products.push({ id: id, name: "Item n...
components/time_picker/ClockFace.js
KerenChandran/react-toolbox
import React from 'react'; import style from './style.clock'; class Face extends React.Component { static propTypes = { active: React.PropTypes.number, numbers: React.PropTypes.array, radius: React.PropTypes.number, spacing: React.PropTypes.number, twoDigits: React.PropTypes.bool }; static d...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
chieryw/actor-platform
import React from 'react'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import GroupStore from 'stores/GroupStore'; import InviteUserActions from 'actions/InviteUserA...
app/components/children/closedMale.js
pnavo/group-project-3
import React from 'react'; import ReactDOM from 'react-dom'; import rd3 from 'rd3'; import axios from 'axios'; const LineChart = rd3.LineChart; var lineData = [ { name: 'series1', values: [ { x: 17, y: 0 }], strokeWidth: 3, strokeDashArray: "5,5" } ]; class ClosedMale...
client/routes/index.js
toomastahves/csv-parser
import React from 'react'; import { Router, Route, IndexRoute, useRouterHistory } from 'react-router'; import { createHashHistory } from 'history'; import App from '../components/App'; import HomePage from '../components/Pages/HomePage'; import SearchPage from '../components/Pages/SearchPage'; import UploadPage from '....
packages/wix-style-react/src/SegmentedToggle/test/SegmentedToggle.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import LockLocked from 'wix-ui-icons-common/LockLocked'; import SegmentedToggle from '../SegmentedToggle'; import { Layout, Cell } from 'wix-style-react'; const options = [ { value: 'option1', text: 'Option1' }, { value: 'option2', text: 'Op...
node_modules/react-router/es6/withRouter.js
CallumRocks/ReduxSimpleStarter
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; }; import invariant from 'invariant'; import React from 'react';...
src/app/films/NewFilm/Uploader/Uploader.js
JoeKarlsson1/bechdel-test
import '@uppy/core/dist/style.css'; import '@uppy/dashboard/dist/style.css'; import React, { Component } from 'react'; import { Uppy } from '@uppy/core'; import { Dashboard, DragDrop, ProgressBar } from '@uppy/react'; import XHRUpload from '@uppy/xhr-upload'; import ErrorBoundary from '../../../shared/ErrorBoundary/Err...
src/index.js
dennisbaskin/lab-results
import 'babel-polyfill' import React from 'react' import {Provider} from 'react-redux' import {render} from 'react-dom' import {Router, browserHistory} from 'react-router' import routes from './routes' import configureStore from './store/configureStore' import '../node_modules/bootstrap/dist/css/bootstrap.min.css' c...
index.js
Sipree/react-chartist
'use strict'; import React from 'react'; class ChartistGraph extends React.Component { displayName: 'ChartistGraph' componentWillReceiveProps(newProps) { this.updateChart(newProps); } componentWillUnmount() { if (this.chartist) { try { this.chartist.detach(); } catch (err) { ...
app/containers/App/index.js
VeloCloud/website-ui
/** * * App * * 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) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'containers/Header'; import F...
app/stem/components/BuddyWrapper.js
Jawnkuin/electron-618-im
import React from 'react'; import SearchBoxContainer from '../containers/SearchBoxContainer'; import './BuddyWrapper.less'; import BuddyPanelContainer from '../containers/BuddyPanelContainer'; export default () => ( <div id="BuddyWrapper"> <SearchBoxContainer /> <BuddyPanelContainer /> </div> );
app/javascript/components/collection_index.js
nulib/avalon
/* * Copyright 2011-2020, The Trustees of Indiana University and Northwestern * University. 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/LICENS...
node_modules/react-native-mock/src/components/TouchableWithoutFeedback.js
niukui/gitpro
/** * https://github.com/facebook/react-native/blob/master/Libraries/Components/Touchable/TouchableWithoutFeedback.js */ import React from 'react'; import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType'; import View from './View'; const TouchableWithoutFeedback = React.createClass({ propTypes: { acce...
src/components/ChatApp/HardwareComponent.js
DeveloperAlfa/chat.susi.ai
import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; import Paper from 'material-ui/Paper'; import * as Actions from '../../actions/'; import Translate from '../Translate/Translate.react'; class...
src/client/components/Layout.js
alexandrebodin/graphql-heroes-app
import React from 'react' import Link from 'next/link' import HomePicto from './svg/HomePicto' const Layout = ({ children }) => { return ( <div> <div style={{ transform: 'rotate(90deg)', width: 30, margin: 10, position: 'absolute', top: 0, ...
docs/app/Examples/views/Item/Variations/ItemExampleDivided.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button, Icon, Image as ImageComponent, Item, Label } from 'semantic-ui-react' const paragraph = <ImageComponent src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> const ItemExampleDivided = () => ( <Item.Group divided> <Item> <Item.Image src='http://sem...
app/javascript/mastodon/features/ui/components/bundle.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const emptyComponent = () => null; const noop = () => { }; class Bundle extends React.PureComponent { static propTypes = { fetchComponent: PropTypes.func.isRequired, loading: PropTypes.func, error: PropTypes.func, children: PropTypes.fu...
examples/js/column/column-width-table.js
prajapati-parth/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; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/svg-icons/action/settings-applications.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsApplications = (props) => ( <SvgIcon {...props}> <path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c...
client/modules/Authentication/Authentication.js
bjoberg/social-pulse
// React import React from 'react'; import { connect } from 'react-redux'; // Local import SignupForm from './components/SignupForm'; import LoginForm from './components/LoginForm'; import { userSignupRequest, loginRequest } from '../../actions/authenticationActions'; // Styles import styles from '../../main.css'; c...
src/icons/Image.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Image extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M368,224c26.5,0,48-21.5,48-48c0-26.5-21.5-48-48-48c-26.5,0-48,21.5-48,48C320,202.5,341.5,224,368,224z"></path> <path ...
src/components/Footer.js
HeeBooo/react-gallery
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Footer extends Component { renderFilter (filter, name) { if (filter === this.props.filter) { return name; } return ( <button onClick={e => { e.preventDefault(); ...
src/components/articles/coq10.js
gelo592/IntegrativeMed-Site
import React from 'react' import { Typography } from '@material-ui/core' import { withStyles } from '@material-ui/core/styles'; import { colors } from '../../constants/constants'; const styles = theme => ({ para: { lineHeight: 2.2, fontSize: 17, paddingBottom: 20, color: colors.text, } }); const C...
src/svg-icons/maps/local-atm.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalAtm = (props) => ( <SvgIcon {...props}> <path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1...
src/svg-icons/notification/airline-seat-flat-angled.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatFlatAngled = (props) => ( <SvgIcon {...props}> <path d="M22.25 14.29l-.69 1.89L9.2 11.71l2.08-5.66 8.56 3.09c2.1.76 3.18 3.06 2.41 5.15zM1.5 12.14L8 14.48V19h8v-1.63L20.52 19l.69-1.89-19....
src/page/ToastPage.js
jerryshew/react-uikits
import React, { Component } from 'react'; import {CN, TitleBlock} from '../util/tools'; import {NS} from '../constant'; import {Toast} from '../component'; import CodeView from './CodeView'; const onClick = () => { Toast.success('消息点击') } const onClose = () => { Toast.success('消息关闭') } export class ToastPage...
src/index.js
richardstrutt/middleware-builds
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; import Async from './middlewares/async'; const createStoreWithMiddleware = applyMiddleware(A...
src/containers/Asians/TabControls/_components/AdjudicatorChips/AdjudicatorChip.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import withStyles from 'material-ui/styles/withStyles' import Avatar from 'material-ui/Avatar' import Chip from 'material-ui/Chip' import * as utils from 'utils' const styles = theme => ({ root: { marginBottom: theme.spacing.unit }, conflicted...
src/components/withViewport.js
dreambo8563/RSK
/** * 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, { Component } from 'react'; // eslint-disabl...
docs/app/Examples/modules/Sidebar/ScaleDown/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const SidebarVariationsExamples = () => ( <ExampleSection title='Scale Down'> <ComponentExample title='Left Scale Down' ...
src/containers/info/index.js
MHanslo/swapi-ui
/* * * Info Page * * */ import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { searchPerson } from './actions'; class info extends React.Component { componentDidMount() { const id = this.props.params.id; ...
app/packs/src/components/ReactionDetailsProperties.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Row, Col, FormGroup, ControlLabel, FormControl, MenuItem, ListGroupItem, ListGroup, InputGroup, DropdownButton } from 'react-bootstrap'; import Select from 'react-select'; import 'moment-precise-range-plugin'; import Clipboard fr...
packages/icons/src/sp/SnapChat.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function SpSnapChat(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24.394 5.016h-.101l-.7.007c-1.668 0-7.324.465-9.993 6.448-.897 2.012-.682 5.43-.51 8.178.02.324.042.66.06.985-.137.076-.39.171-.786.171-.53 0-1.156...
node_modules/react-bootstrap/es/FormControlStatic.js
premcool/getmydeal
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/components/FixedActionButton/index.js
nathanhood/mmdb
import React from 'react'; import styled from 'styled-components'; import feather from 'feather-icons'; import PropTypes from 'prop-types'; import theme from 'theme'; import Icon from 'components/Icon'; import themeVars from 'variables'; const StyledButton = styled.button` background-color: ${theme.fixedButtonCol...
example/PageOne.js
orzechowskid/eleanor
import React from 'react'; export default (props) => { return ( <div style={{ background: 'pink' }}> This is the &lt;PageOne /&gt; component </div> ); };
src/components/input/Input.js
zalmoxisus/react-chat
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TextareaAutosize from 'react-textarea-autosize'; import styles from '../../chat.scss'; export default class Input extends Component { getRef = (node) => { this.input = node; this.props.inputRef(node); }; send = (e) => {...
lib/Paneset/Paneset.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { pickBy, uniqueId, cloneDeep, debounce, isEqual } from 'lodash'; import parseCSSUnit from '../../util/parseCSSUnit'; import insertByClientRect from './insertByClientRect'; import css from './Paneset.css'; import ...
app/components/Notes/NotesList.js
joshuar500/repository-notes
import React from 'react' const NotesList = ({notes}) => { return ( <ul className="list-group"> {notes.map((note, index) => ( <li className="list-group-item" key={index}>{note}</li> ))} </ul> ) } NotesList.propTypes = { notes: React.PropTypes.array.isRequired } export default NotesL...
mm-react/src/components/data/DownloadControl.js
Ameobea/tickgrinder
//! Controls for managing a single data download. import React from 'react'; import { connect } from 'dva'; import { Button, Popconfirm } from 'antd'; /** * Returns a function that sends a command to a data downloader instance to cancel a running data download */ const handleClick = (dispatch, downloaderId, downloa...
src/landing/HomeSponsors.js
kriasoft/react-static-boilerplate
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; const sponsors = [ { name: 'Rollbar', link: 'https://rollbar.com/?utm_source=reactstartkit(github)&utm_medium=link&utm_campaign=reactstartkit(github)', image: { src: 'https://files.tarkus.me/rollbar-384x64.png',...
node_modules/react-router/es/Route.js
amosdesigns/fmintroreact
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 _classCallCheck(instance, Constructor) { if (!(insta...
components/Forms/Forms.js
SergeyGuns/test-site
import React from 'react'; import TextField from 'material-ui/TextField'; import RusDatePicker from '../../components/RusDatePicker'; import RaisedButton from 'material-ui/RaisedButton'; import s from './Forms.css'; const MONTH = ['Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноя...
app/routes.js
lukehamilton/eth-wallet
/* eslint flowtype-errors/show-errors: 0 */ import React from 'react'; import { Switch, Route } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; export default () => ( <App> <Switch> <Route path="/coun...
app/components/navBar.js
BZhawaii/ArtStorm
import React from 'react'; class NavBar extends React.Component { render() { return ( <div className="navbar-fixed stormNav"> <nav id="nav_f" className="default_color" role="navigation"> <div className="container"> <div className="nav-wrapper"> ...
blueocean-material-icons/src/js/components/svg-icons/navigation/arrow-downward.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationArrowDownward = (props) => ( <SvgIcon {...props}> <path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/> </SvgIcon> ); NavigationArrowDownward.displayName = 'NavigationArrowDownward'; NavigationArrowDownward.mui...
src/common/components/App.js
vgarcia692/wutmi_frontend
import React from 'react'; export default ({children}) => { return ( <div id="container"> {children} </div> ); }
app/containers/FeaturePage/index.js
Dmitry-N-Medvedev/motor-collection
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
fields/types/html/HtmlField.js
helloworld3q3q/keystone
import _ from 'lodash'; import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId () { return 'keystone-html-' + lastId++; } // Workaround for #2834 found here h...
src/app.js
xiwc/kitematic
require.main.paths.splice(0, 0, process.env.NODE_PATH); import remote from 'remote'; var Menu = remote.require('menu'); import React from 'react'; import SetupStore from './stores/SetupStore'; import ipc from 'ipc'; import machine from './utils/DockerMachineUtil'; import metrics from './utils/MetricsUtil'; import templ...
src/components/Feedback/Feedback.js
ChrisMaher/reactjs-project
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
react-ui/src/index.js
globalART19/racecalc
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/app/components/Home.js
KLC215/react-practice
import React, { Component } from 'react'; class Home extends Component { render() { return ( <div> <h3>Home</h3> </div> ); } } export default Home;
src/layouts/PageLayout/PageLayout.js
nivas8292/myapp
import React from 'react' import { IndexLink, Link } from 'react-router' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({ children }) => ( <div className='container text-center'> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='page-layout__nav-ite...
src/Parser/Warlock/Affliction/Modules/Items/Legendaries/SoulOfTheNetherlord.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ITEMS from 'common/ITEMS'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Wrapper from 'common/Wrapper'; class SoulOfTheNetherlord extends Anal...
src/components/GenerateGifForm.js
ctlusto/gifsmos
import React, { Component } from 'react'; import './GenerateGifForm.css'; import ColorPicker from './ColorPicker'; class GenerateGifForm extends Component { constructor(props) { super(props); this.state = { showColorPicker: this.props.showColorPicker }; this.handleSubmit = this.handleSubmit.bin...
packages/reactor-conference-app/src/Search.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Toolbar, Sheet, SearchField, List, Button } from '@extjs/ext-react'; import { connect } from 'react-redux'; import { toggleSearch, search } from './actions'; import { Template } from '@extjs/reactor'; import ScheduleList from './schedule/ScheduleList'; class Search ex...
components/Layout/Navigation.js
harvard-tabula/frontend
import React from 'react'; import Link from '../Link/Link'; class Navigation extends React.Component { render() { return ( <div className="nav-right nav-menu"> <Link className="nav-item" to="/">Home</Link> <Link className="nav-item" to="/user">User Profile</Link> <Link className="n...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/FormGroup.js
OpenKGB/webcode
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/utils/createEagerElementUtil.js
neoziro/recompact
import React from 'react' const createEagerElementUtil = ( hasKey, isReferentiallyTransparent, type, props, children, ) => { if (!hasKey && isReferentiallyTransparent) { if (children) { return type({ ...props, children }) } return type(props) } const Component = type if (children)...
src/svg-icons/device/signal-cellular-0-bar.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar); DeviceSignalCellular0Bar.displayN...
webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js
johnpmitsch/katello
import React, { Component } from 'react'; import BreadcrumbsBar from 'foremanReact/components/BreadcrumbBar'; import { translate as __ } from 'foremanReact/common/I18n'; import { PropTypes } from 'prop-types'; import api from '../../../services/api'; import ContentDetails from '../../../components/Content/Details/Conte...
src/modules/comments/components/CommentEditor/WorkInput/WorkInput.js
CtrHellenicStudies/Commentary
import React from 'react'; import { compose } from 'react-apollo'; import Select from 'react-select'; import autoBind from 'react-autobind'; import textSelectorQuery from '../../../../settings/graphql/queries/textSelector'; class _WorkInput extends React.Component { constructor(props) { super(props); autoBind(...
node_modules/react-router/es6/IndexLink.js
rageboom/React_Study
'use strict'; 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 _classCallCheck(instance, Constructor...
src/components/basic/Em.js
casesandberg/react-mark
'use strict'; import React from 'react'; export class EM extends React.Component { render() { return <em>{ this.props.children }</em>; } } export default EM;
source/server.js
johnsi15/ExampleReactJs
import http from 'http'; import React from 'react'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import Pages from './pages/containers/Page.jsx'; import Layout from './pages/components/Layout.jsx'; function requestHandler(request, response){...
example/examples/CachedMap.js
jrichardlai/react-native-maps
import React from 'react'; import { Text, View, Dimensions, StyleSheet, ListView, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import flagImg from './assets/flag-blue.png'; const HORIZONTAL_PADDING = 12; const VERTICAL_PADDING = 6; class CachedMap extends React.Compon...
client/App/Shell/components/AppBar/AppBar.js
noamokman/project-starter-sample
import React from 'react'; import {AppBar} from 'material-ui'; import styled from 'styled-components'; import AppBarActions from '../AppBarActions'; const ClickableTitle = styled.span` cursor: pointer; `; export default ({home}) => ( <AppBar title={<ClickableTitle>{'Starter'}</ClickableTitle>} onTitleClick={home}...
src/svg-icons/communication/clear-all.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationClearAll = (props) => ( <SvgIcon {...props}> <path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/> </SvgIcon> ); CommunicationClearAll = pure(CommunicationClearAll); CommunicationClearAll.di...
fields/types/geopoint/GeoPointFilter.js
naustudio/keystone
import React from 'react'; import { FormField, FormInput, Grid, SegmentedControl, } from '../../../admin/client/App/elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, l...
node_modules/babel-preset-react-hmre/test/Test.js
Maxwelloff/react-football
import React from 'react' export default class Test extends React.Component { render() { return ( <div>Winning?</div> ) } }
app/components/Card.js
wenwuwu/redux-restful-example
import React from 'react' import { Link } from 'react-router' const Card = ({id, name}) => ( <div className="row"> <div className="card"> <Link to={`/cards/${id}`} > <div className="inner"> {name} </div> </Link> </div> ...
client/App/Shell/routes.js
noamokman/project-starter-sample
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import {connectedRouterRedirect} from 'redux-auth-wrapper/history3/redirect'; import {routerActions} from 'react-router-redux'; import loadable from 'loadable-components'; import AuthenticatingUser from './components/AuthenticatingUser'; import ...
app/components/common/Crumb.react.js
maty21/statistisc
import React from 'react'; import icons from './../../stylesheets/ionicons.scss'; export default ({layer, value, handleClick}) => <span className="Crumbs"> {value} <span onClick={() => handleClick(layer, value)} className="Crumb-X"><i className="icon ion-close-round"></i></span> </span>
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionTypeFormatter.js
pmoravec/katello
import React from 'react'; import { Link } from 'react-router-dom'; import { translate as __ } from 'foremanReact/common/I18n'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; export const subscriptionTypeFormatter = (value, { rowData }) => { let cellContent; if (rowData.virt_only === false) { ce...
src/svg-icons/content/redo.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
src/rsg-components/Playground/Playground.js
bluetidepro/react-styleguidist
import React, { Component } from 'react'; import { polyfill } from 'react-lifecycles-compat'; import PropTypes from 'prop-types'; import debounce from 'lodash/debounce'; import Preview from 'rsg-components/Preview'; import Para from 'rsg-components/Para'; import Slot from 'rsg-components/Slot'; import PlaygroundRendere...
client/components/footer.js
nizarayari/PersonalWebsite
import React, { Component } from 'react'; export default class Footer extends Component { render(){ return ( <div className='footer'> <div className="lockup"> <div className='logo'></div> <div className='content-wraper'> <nav> <a href='#...
library/src/pivotal-ui-react/modals/modals.js
sjolicoeur/pivotal-ui
import Animation from 'pui-react-mixins/mixins/animation_mixin'; import classnames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import {default as mixin} from 'pui-react-mixins'; import {mergeProps} from 'pui-react-helpers'; import 'pui-css-modals'; import {Icon} from 'pui-react-ico...
lib/components/effects.js
enjoylife/react-input-toggle
import React from 'react' import cs from 'classnames'; const Template = (props) => { const { effect, htmlFor, onBlur, onFocus, onChange, checked, setRef, children, disabled, ...otherProps } = props; const spanCss = cs([ 'rt-toggle__container', 'rt-toggle__contain...
docs/app/Examples/collections/Menu/Content/MenuExampleButtons.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button, Menu } from 'semantic-ui-react' const MenuExampleButtons = () => { return ( <Menu> <Menu.Item> <Button primary>Sign up</Button> </Menu.Item> <Menu.Item> <Button>Log-in</Button> </Menu.Item> </Menu> ) } export default MenuE...
client/src/js/components/loginForm/SignUp.js
abitlog/retube
import React from 'react'; import ErrorNotifier from './ErrorNotifier'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { fadeAnimation } from '../../utils/animationSettings'; class SignUp extends React.Component { static propTypes = { formOnSubmit: React.PropTypes.func.isRequire...