path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
pages/index.js
deagle1226/deagleio
import React from 'react' import Routes from '../src/routes' const NextRouteIndex = props => <Routes {...props} /> export default NextRouteIndex
website/src/theme/DocItem/index.js
yangshun/tech-interview-handbook
// Swizzled to make TOC column wider. import React from 'react'; import clsx from 'clsx'; import DocPaginator from '@theme/DocPaginator'; import DocVersionBanner from '@theme/DocVersionBanner'; import DocVersionBadge from '@theme/DocVersionBadge'; import DocItemFooter from '@theme/DocItemFooter'; import TOC from '@them...
docs/build.js
IveWong/react-bootstrap
import React from 'react'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import Root from './src/Root'; import fsp from 'fs-promise'; import { copy } from '../tools/fs-utils'; import { exec } from '../tools/exec'; import metadata from './generate-metadata'; const repoRo...
webapp-src/src/Admin/Users.js
babelouest/glewlwyd
import React, { Component } from 'react'; import i18next from 'i18next'; import messageDispatcher from '../lib/MessageDispatcher'; class Users extends Component { constructor(props) { super(props); this.state = { config: props.config, users: props.users, source: props.source, logged...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/help.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionHelp = (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 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41...
docs/app/Examples/collections/Grid/Variations/GridExampleColumnWidth.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleColumnWidth = () => ( <Grid> <Grid.Column width={4}> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> <Grid.Column width={9}> <Image src='http://semantic-ui.com/images/wi...
src/components/App/App.component.js
shayc/cboard
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { Route, Switch } from 'react-router-dom'; import Activate from '../Account/Activate'; import ChangePassword from '../Account/ChangePassword'; import OAuthLogin from '../Account/OAuthLogin'; import A...
src/client/components/players.js
tomasz-chojna/hex
import {gql, graphql, compose} from "react-apollo"; import React from 'react'; import {Component} from "react"; import {Redirect} from "react-router"; import Cookie from 'js-cookie'; import PropTypes from 'prop-types'; class ActivePlayersList extends Component { static propTypes = { history: PropTypes.ob...
frontend/src/components/eois/modals/callPartners/addInformedPartners.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { submit } from 'redux-form'; import Loader from '../../../common/loader'; import ControlledModal from '../../../common/modals/controlledModal'; import { updateCfei } from '../../../../reducers/ne...
src/html.js
vineandfork/public
import React from 'react' let stylesStr if (process.env.NODE_ENV === `production`) { try { stylesStr = require(`!raw-loader!../public/styles.css`) } catch (e) { console.log(e) } } module.exports = class HTML extends React.Component { render() { let css if (process.env.NODE_ENV === `production`...
client/src/scenes/RoomsPage/NewRoomDialog/index.js
RudthMael/chatx
import React from 'react'; export default class NewRoomDialog extends React.Component { constructor(props) { super(props); this.state = { name: '' }; } handleNameChange(event) { this.setState({ name: event.target.value }); } render() { return ( <form onSubmit={this.props.onSubmit.bin...
docs/src/app/components/pages/components/Card/Page.js
ngbrown/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 cardReadmeText from './README'; import cardExampleWithAvatarCode from '!r...
docs/src/PageFooter.js
zerkms/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className='bs-docs-footer' role='contentinfo'> <div c...
src/smif/app/src/components/ConfigForm/General/Buttons.js
willu47/smif
import React from 'react' import PropTypes from 'prop-types' /** * SuccessButton * * Primary button */ const SuccessButton = (props) => ( <input id={props.id} className="btn btn-success btn-margin" type="button" value={props.value} onClick={props.onClick} /> ) SuccessBu...
src/components/antd/button/button-group.js
hyd378008136/olymComponents
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ...
src/main.js
benkeen/invoice-editor
import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './store/createStore'; import AppContainer from './containers/AppContainer'; const initialState = window.__INITIAL_STATE__; const store = createStore(initialState); const MOUNT_NODE = document.getElementById('root'); let render = (...
stories/babylonjs/Behaviors/pointerDragBehavior.stories.js
brianzinn/react-babylonJS
import React from 'react' import {storiesOf} from '@storybook/react' import {Engine, Scene} from '../../../dist/react-babylonjs' import {Vector3} from '@babylonjs/core/Maths/math' import '../../style.css' export default { title: 'Behaviors' }; /** * official demo: * https://www.babylonjs-playground.com/#YEZPVT * ...
examples/huge-apps/components/Dashboard.js
dyzhu12/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { var { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of y...
app/app.js
maxxafari/draftjs-comment-text
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/utils/ownerDocument.js
glortho/react-overlays
import React from 'react'; import ownerDocument from 'dom-helpers/ownerDocument'; export default function (componentOrElement) { return ownerDocument(React.findDOMNode(componentOrElement)); }
public/pages/PhotosPage.js
datpham23/datndiana
import React from 'react' import '../sass/photos-page.scss'; export default React.createClass({ render() { let photos = []; for(var i=1; i<=33;i++){ photos.push(( <section key={`/img/DDE-${i}.jpg`}> <a href={`#/photos/${i}`}> <img className='preview' src={`/img/DDE-${i}.j...
src/main/js/main.js
o-schneider/idiomatic-react-cqrs
'use strict'; import React from 'react'; import {EventBus} from 'cqrs4js'; import {CommandBus} from 'cqrs4js'; require('../less/main.less'); const appNode = document.getElementById("app"); const ContextFactory = (propTypes) => { return class FactoriedContext { static childContextTypes() {return propTypes;}...
src/common/Billing/SwitchSection.js
Syncano/syncano-dashboard
import React from 'react'; import Radium from 'radium'; import { Toggle } from 'material-ui'; export default Radium(React.createClass({ displayName: 'SwitchSection', propTypes: { plan: React.PropTypes.string, planCanceled: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.bool]), onP...
src/common/sidebar.js
angustas/company
import React, { Component } from 'react'; import $ from 'jquery'; import { Icon,Popover,message} from 'antd'; import { hashHistory } from 'react-router'; export default class Sidebar extends Component { constructor(props) { super(props); // tag = this.props.target; this.state = {display: "no...
src/svg-icons/hardware/sim-card.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSimCard = (props) => ( <SvgIcon {...props}> <path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0...
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisInverted.js
vageeshb/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleEmphasisInverted = () => ( <div> <Segment inverted> I'm here to tell you something, and you will probably read me first. </Segment> <Segment inverted secondary> I am pretty noticeable but you might check...
src/icons/FlipToBackIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FlipToBackIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M18 14h-4v4h4v-4zm0 8h-4v4h4v-4zm0-16c-2.21 0-4 1.79-4 4h4V6zm8 24h-4v4h4v-4zM38 6v4h4c0-2.21-1.79-4-4-...
front_end/front_end_app/src/client/components/exposerouter.react.js
Horizon-Framework/horizon
import Component from './component.react'; import React from 'react'; export default function exposeRouter(BaseComponent) { return class ExposeRouter extends Component { static contextTypes = { router: React.PropTypes.func.isRequired }; static displayName = `${BaseComponent.name}ExposeRouter`; ...
src/components/Main.js
xiaoxingchao/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; //获取图片相关信息 // var imageDatas = require('../data/imageDatas.json'); let imageDatas = require('../data/imageDatas.json'); //利用自执行函数,将图片名信息转成图片URL路径信息 imageDatas = (function genImageURL(imageDatasArr) { for (var i = 0; i ...
new-lamassu-admin/src/components/typography/index.js
naconner/lamassu-server
import { makeStyles } from '@material-ui/core/styles' import classnames from 'classnames' import React from 'react' import styles from './styles' const useStyles = makeStyles(styles) function H1({ children, noMargin, className, ...props }) { const classes = useStyles() const classNames = { [classes.h1]: true...
src/svg-icons/communication/location-on.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLocationOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12...
public/a/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
ApprecieOpenSource/Apprecie
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/pages/EditAvailabilitySchedulePage.js
ChrisWhiten/react-rink
import React, { Component } from 'react'; import EditAvailabilitySchedule from '../components/availabilityschedule/EditAvailabilitySchedule'; import './styles/EditAvailabilitySchedulePage.css'; class EditAvailabilitySchedulePage extends Component { componentDidMount() { if (this.props.params.scheduleId) { ...
src/containers/Home/Home.js
jsdmc/react-redux-universal-hot-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server const logoImage = ...
assets/js/Components/Sidebar.js
symbios-zi/react-learning
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; class Sidebar extends Component { render() { return ( <div> <div className="navbar-header"> <button type="button" className="navbar-toggle"> <span cl...
actors/client.js
fzzzy/buzzies-hydromorphy
/* globals Actors */ import React from 'react'; import ReactDOM from 'react-dom'; const actions = [ {label: "browse", icon: "👆", cursor: "pointer"}, {label: "move", icon: "👈", cursor: "move"}, {label: "text", icon: "🔤", cursor: "text"}, {label: "image", icon: "🏞", cursor: "crosshair"}, {label: "button"...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
sc4599/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
server.js
HiDAl/mysql-monitor
/** * This leverages Express to create and run the http server. * A Fluxible context is created and executes the navigateAction * based on the URL. Once completed, the store state is dehydrated * and the application is rendered via React. */ import express from 'express'; import path from 'path'; import serialize...
packages/@lyra/components/src/panes/Controller.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import styles from './styles/Controller.css' import {debounce} from 'lodash' import Pane from './DefaultPane' import elementResizeDetectorMaker from 'element-resize-detector' export default class PanesController extends React.Component { static propTypes =...
src/svg-icons/editor/border-left.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderLeft = (props) => ( <SvgIcon {...props}> <path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2z...
client/src/pages/404.js
jonathanihm/freeCodeCamp
import React from 'react'; import { Router } from '@reach/router'; import NotFoundPage from '../components/FourOhFour'; /* eslint-disable max-len */ import ShowProfileOrFourOhFour from '../client-only-routes/ShowProfileOrFourOhFour'; /* eslint-enable max-len */ function FourOhFourPage() { return ( <Router> ...
examples/with-react-intl/pages/index.js
dizlexik/next.js
import React from 'react' import {FormattedMessage, FormattedNumber, defineMessages} from 'react-intl' import Head from 'next/head' import pageWithIntl from '../components/PageWithIntl' import Layout from '../components/Layout' const {description} = defineMessages({ description: { id: 'description', defaultM...
src/components/UserList/UserList.js
sbiliaiev/transport-kharkiv
import React from 'react'; import { Jumbotron } from 'react-bootstrap'; import { getUserList } from './../../api/cloudservice'; export default class UserList extends React.Component { constructor() { super(); this.state = { users: [], }; } componentDidMount() { const data = getUserList(); console.log(...
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js
rscnt/material-ui
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; const LinearProgressExampleSimple = () => ( <LinearProgress mode="indeterminate" /> ); export default LinearProgressExampleSimple;
src/renderer/components/Settings/LibraryFolder.react.js
MrBlenny/museeks
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Icon from 'react-fontawesome'; import classnames from 'classnames'; import lib from '../../lib'; class LibraryFolders extends Component { static propTypes = { index: React.PropTypes.number, folder: React.Prop...
client/src/containers/stats.js
DailyGrind/Chain-Reaction
import React from 'react'; import { connect } from 'react-redux'; import Stats from '../components/stats'; import { clearWinner } from '../state/game/actions'; export const mapDispatchToProps = { clearWinner // setBotsOnly }; export const mapStateToProps = state => { return { winner: state.game.winner, ...
fields/types/textarray/TextArrayFilter.js
linhanyang/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormSelect, } from '../../../admin/client/App/elemental'; const MODE_OPTIONS = [ { label: 'Contains', value: 'contains' }, { label: 'Exactly', value: 'exactly' }, { label: 'Begins with', value: 'beginsWith' }, { ...
src/components/Modal/Contents/LayerFilter.js
MinisterioPublicoRJ/inLoco-2.0
import React from 'react' import DataTable from '../../DataTable/DataTable.js' const LayerFilter = ({isFilterEmptyResult, isLoadingFilter, layers, modalLayerFilterName, onLayerFilterSearch}) => { const handleFilter = e => { e.preventDefault() onLayerFilterSearch(modalLayerFilterName, e.target.eleme...
assets/js/Test.js
bclynch/packonmybike
import React, { Component } from 'react'; export default class Home extends Component { render() { return ( <div> Test Page </div> ) } }
src/js/app.js
ThibWeb/webpack-play
import React from 'react'; import content from './content'; export default React.createClass({ displayName: 'App', render() { return ( <div> {`React: ${content}`} </div> ); } });
src/HstWbInstaller.Imager.GuiApp/ClientApp/src/components/SelectField.js
henrikstengaard/hstwb-installer
import {isNil } from 'lodash' import React from 'react' import FormControl from '@mui/material/FormControl' import Select from '@mui/material/Select' import InputLabel from '@mui/material/InputLabel' import MenuItem from '@mui/material/MenuItem' export default function SelectField(props) { const { id, ...
services/client/public/js/app.js
cpg1111/demo-maestro-app
'use strict'; import React from 'react' import ReactDOM from 'react-dom' import { Router, Route, Link, browserHistory } from 'react-router' import { Login, Register } from './auth/entry' import { Chat } from './chat/entry' class App extends React.Component { render(){ return ( <Router history...
ui/src/pages/service.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * 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 t...
client/src/containers/Room/Room.js
Angelmmiguel/discuzzion
import React, { Component } from 'react'; import { connect } from 'react-redux'; // Actions import { actions } from 'redux-router5'; // Components import Logo from '../../components/Logo'; import Title from '../../components/Title'; import User from '../../components/User'; import Message from '../../components/Messa...
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/js-unify/src/demo/pagination/pagination.js
js-works/js-surface
import { defineClassComponent, defineFunctionalComponent, hyperscript as h, mount } from 'js-unify'; import { Seq } from 'js-essential'; import PaginationHelper from './helper/PaginationHelper.js'; import ComponentHelper from './helper/ComponentHelper.js'; import React from 'react'; import ReactDOM...
react-client/src/components/SidePanel.js
rc-locos/rc-locos
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import {connect} from 'react-redux'; import {List} from 'immutable'; import './SidePanel.css'; import * as actions from '../actions'; export class SidePanel extends React.Component { constructor(props) { super(props); ...
src/FormGroup.js
dozoisch/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, bsSizes, getClassSet, splitBsPropsAndOmit } from './utils/bootstrapUtils'; import { Size } from './utils/StyleConfig'; import ValidComponentChildren from './utils/ValidComponentChildren'; const propTypes = { /** * Sets `id` on `<...
docs/src/app/components/pages/components/List/ExamplePhone.js
kasra-co/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import CommunicationCall from 'material-ui/svg-icons/communication/call'; import CommunicationChatBubble from 'material-ui/svg-icons/communicatio...
wrappers/toml.js
hollandmatt/rtmetals
import React from 'react' import toml from 'toml-js' import DocumentTitle from 'react-document-title' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return (...
src/containers/CurrencyDetails/DetailedCurrencyItem.js
blurbyte/money-fetch
import React from 'react'; import PropTypes from 'prop-types'; import StyledCurrencyItem from './StyledCurrencyItem'; import TextLine from './TextLine'; import CloseButton from '../../components/CloseButton'; import CurrentCurrencyCode from './CurrentCurrencyCode'; const DetailedCurrencyItem = ({code, details, handle...
src/Parser/RestorationShaman/Modules/Legendaries/T20_4Set.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; // It seems some ticks of healing rain wer...
src/components/PXTouchable.js
alphasp/pxview
import React from 'react'; import { TouchableOpacity, TouchableNativeFeedback, Platform, View, } from 'react-native'; const PXTouchable = (props) => { if (Platform.OS === 'android' && Platform.Version >= 21) { const { style, children, ...otherProps } = props; return ( <TouchableNativeFeedback ...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js
Place1/create-react-app-typescript
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
blueocean-material-icons/src/js/components/svg-icons/device/battery-20.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBattery20 = (props) => ( <SvgIcon {...props}> <path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V17h10V5.33z"/> </Sv...
app/components/ContestJoinModal/index.js
zmora-agh/zmora-ui
/** * * ContestJoinModal * */ import React from 'react'; import { withStyles, createStyleSheet } from 'material-ui/styles'; import Dialog, { DialogContent, DialogTitle, DialogActions, DialogContentText } from 'material-ui/Dialog'; import Slide from 'material-ui/transitions/Slide'; import Button from 'material-ui/Butto...
src/components/Posts/Post.js
hrasoa/react-pwa
import { Helmet } from 'react-helmet'; import PropTypes from 'prop-types'; import React from 'react'; const Post = ({ post: { id, title, body } }) => ( <div className="c-content"> <Helmet> <title>{title}</title> <link rel="canonical" href={`http://example.com/posts/${id}`} /> </Helmet> <h1>{t...
docs/components/Highlight.js
jribeiro/storybook
import hljs from 'highlight.js'; import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; class Highlight extends React.Component { componentDidMount() { this.highlightCode(); } componentDidUpdate() { this.highlightCode(); } highlightCode() { const domNod...
node_modules/react-router/es6/IndexRoute.js
ajames72/MovieDBReact
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
src/common/ProjectCard.js
serban-petrescu/serban-petrescu.github.io
import React from 'react'; import { Card, Label, Button } from 'semantic-ui-react'; import mixpanel from 'mixpanel-browser'; import './ProjectCard.scss'; import { renderHtml } from '../utils'; const typeColor = type => ({ work: 'blue', academic: 'red', personal: 'green' })[type] || 'grey'; const typeText...
src/components/footer.js
kouumou/gallery-by-react
import React from 'react'; var footerCss = require('../styles/footer.css'); export default class ComponentFooter extends React.Component { render(){ return( <footer className={footerCss.miniFooter}> <h1>这里是页脚,一般放置版权的一些信息</h1> </footer> ); } }
packages/hekla-viewer/src/ContentPane/DependencyChart/index.js
andrewjensen/hekla
import React, { Component } from 'react'; import ComponentContextMenu from './ComponentContextMenu'; import ComponentBox from './ComponentBox'; import ComponentDependencyArrow from './ComponentDependencyArrow'; const DependencyGraph = require('hekla-core').DependencyGraph; import { OFFSET_X, OFFSET_Y, GRID_X, G...
src/svg-icons/toggle/star-half.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarHalf = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15....
src/lib/gui/components/AddWsBehaviourForm/index.js
xclix/chan
import React from 'react'; import PropTypes from 'prop-types'; import { Field, reduxForm, FormSection, FieldArray } from 'redux-form'; import Select from 'react-select'; import MessageReactionSection from './MessageReactionSection'; import { submitSucceededAction } from './actions'; const EventTypeField = field => ( ...
client/src/Components/UserProfile/ClientIncomeEdit.js
teamcrux/EmploymentOptions
import React from 'react'; import { Field, FieldArray, reduxForm } from 'redux-form'; import ClientIncomeForm from './ClientEditForms/ClientIncomeForm'; class ClientIncomeEdit extends React.Component { constructor(props){ super(props); this.sendPatch = this.sendPatch.bind(this); }; sendPatch(formData) {...
src/app/components/Product.js
akzuki/BoardgameAPI
import React from 'react'; import { Carousel } from './Carousel'; import { Link } from 'react-router'; export class Product extends React.Component { render() { return ( <Link to ={"/product/"+this.props.id}> <div className="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div classN...
app/javascript/mastodon/features/standalone/community_timeline/index.js
hugogameiro/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandCommunityTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader fr...
src/components/slider/slides/slide/dialogue/Dialogue.js
yajiex/douban-Annual
import React from 'react'; import './Dialogue.css'; export default class Dialogue extends React.Component { shouldComponentUpdate() { return false; } render() { return ( <div className="dialogue"> <div className="dialogue-main"> <div className="dialogue-content"> <div...
lavalab/html/node_modules/react-bootstrap/es/Table.js
LavaLabUSC/usclavalab.org
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/getTranslateFunction.js
APSL/redux-i18n
/* * Project: redux-i18n * File: getTranslateFunction.js */ /* eslint-disable no-new-func */ import React from 'react' const interpolateParams = (text, params) => { if (!params) { return text; } const children = text.split(/({[^}]+})/g) .map((child) => { const match = /{(.+)}/g.exec(child); ...
demos/function-tree-demos/src/mobx/components/Assignments/index.js
idream3/cerebral
import React from 'react' import {observer} from 'mobx-react' import './styles.css' class Assignments extends React.Component { render () { const { isLoadingAssignments } = this.props.store.view const { assignments, users } = this.props.store.data if (isLoadingAssignments) { ...
client/src/components/Draft/DraftCurrentBid.js
BenDiuguid/fantasy-fifa
import React from 'react'; import styled from 'styled-components'; import Button from '@material-ui/core/Button'; import { compose, withHandlers } from 'recompose'; import { graphql } from 'react-apollo'; import { loader } from 'graphql.macro'; import Player from '../Player'; import UserQuery from '../UserQuery'; cons...
index.android.js
bevkoski/react-native-android-wear-demo
'use strict'; import React, { Component } from 'react'; import { AppRegistry, NativeModules, DeviceEventEmitter, View, Button, Text, StyleSheet } from 'react-native'; const INCREASE_COUNTER_EVENT = 'increaseCounter'; export default class reactNativeAndroidWearDemo extends Component { constructor(prop...
app/components/shared/PageHeader/menu.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Menu extends React.PureComponent { static displayName = 'PageHeader.Menu'; static propTypes = { children: PropTypes.node.isRequired, className: PropTypes.string }; render() { co...
src/routes/chart/barChart/index.js
china2008qyj/DVA-DEMO
import React from 'react' import PropTypes from 'prop-types' import { Row, Col, Card, Button } from 'antd' import Container from '../Container' import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts' const data = [ { name: 'Page A', uv: 4000, pv: 2400, am...
src/svg-icons/image/view-compact.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageViewCompact = (props) => ( <SvgIcon {...props}> <path d="M3 19h6v-7H3v7zm7 0h12v-7H10v7zM3 5v6h19V5H3z"/> </SvgIcon> ); ImageViewCompact = pure(ImageViewCompact); ImageViewCompact.displayName = 'ImageVie...
src/svg-icons/action/backup.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBackup = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z...
examples/src/containers/counter.js
stoeffel/redux-elm-middleware
import React from 'react' import { connect } from 'react-redux' import { Button } from '../components/button' export const Counter = connect( ({elm}) => ({ value: elm.value, count: elm.count }) ) (function({dispatch, value = 0, count = 1}) { return ( <div> <Button onClick={() => dispatch({typ...
webpack/move_to_foreman/components/common/table/formatters/EntitlementsInlineEditFormatter.js
ares/katello
import React from 'react'; import { sprintf } from 'foremanReact/common/I18n'; import { KEYCODES } from 'foremanReact/common/keyCodes'; import { Table, FormControl, FormGroup, HelpBlock, Spinner } from 'patternfly-react'; import { validateQuantity } from '../../../../../scenes/Subscriptions/SubscriptionValidations'; c...
docs/src/app/components/pages/components/CircularProgress/ExampleSimple.js
skarnecki/material-ui
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; const CircularProgressExampleSimple = () => ( <div> <CircularProgress /> <CircularProgress size={1.5} /> <CircularProgress size={2} /> </div> ); export default CircularProgressExampleSimple;
docs/app/Examples/elements/Segment/Variations/SegmentExampleVeryPadded.js
mohammed88/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleVeryPadded = () => ( <Segment padded='very'> Very padded content. </Segment> ) export default SegmentExampleVeryPadded
src/common/Icon.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import BAD_ICONS from 'common/BAD_ICONS'; const Icon = ({ icon, className, ...others }) => { if (!icon) { return null; } icon = icon.replace('.jpg', '').replace(/-/g, ''); if (icon === 'petbattle_healthdown') { // Blizzard seems to have fo...
src/components/Sidebar/Author/Author.js
amoseui/blog
// @flow strict import React from 'react'; import { withPrefix, Link } from 'gatsby'; import styles from './Author.module.scss'; type Props = { author: { name: string, bio: string, photo: string }, isIndex: ?boolean }; const Author = ({ author, isIndex }: Props) => ( <div className={styles['author...
packages/webpackrc-cfg/test/fixtures/build/splitchunks/src/index.js
Alfred-sg/plutarch
import React from 'react'; import './index.less'; import './reset.less'; console.log('index');
examples/with-mobx/components/Page.js
dizlexik/next.js
import React from 'react' import Link from 'next/link' import { inject, observer } from 'mobx-react' import Clock from './Clock' @inject('store') @observer class Page extends React.Component { componentDidMount () { this.props.store.start() } componentWillUnmount () { this.props.store.stop() } rend...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
Nedomas/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class AnnouncementsSidebar extends React.Component { render() { let { announcements } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcements....
va_dashboard/tabs/vpn_status.js
VapourApps/va_master
import React, { Component } from 'react'; var Bootstrap = require('react-bootstrap'); import {connect} from 'react-redux'; var Network = require('../network'); import {Table, Tr, Td} from 'reactable'; import { getSpinner } from './util'; class VpnStatus extends Component { constructor (props) { super(props...
app/components/Toggle/index.js
Ennovar/clock_it
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
src/svg-icons/action/get-app.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGetApp = (props) => ( <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/> </SvgIcon> ); ActionGetApp = pure(ActionGetApp); ActionGetApp.displayName = 'ActionGetApp'; ActionGetApp....
src/components/common/button/PrivateMessageButton.js
goodjoblife/GoodJobShare
import React from 'react'; import FontAwesomeIcon from '@fortawesome/react-fontawesome'; import faCommentDots from '@fortawesome/fontawesome-free-solid/faCommentDots'; import { usePrivateMessageButtonText } from 'hooks/experiments'; import Button from './Button'; import styles from './PrivateMessageButton.module.css';...
app/javascript/mastodon/features/compose/components/upload.js
kibousoft/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react...