path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
newclient/scripts/components/config/general/auto-approve-disclosure/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: 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 ...
packages/showcase/axes/dynamic-crosshair.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/articles/2018-01-31-1st-Anniversary/TimelineItemImage.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const TimelineItemImage = ({ source, description, wide }) => ( <figure style={wide ? { maxWidth: 800 } : undefined}> <a href={source} target="_blank" rel="noopener noreferrer"><img src={source} alt={description} /></a> <figcaption> {descrip...
src/client/react/user/stages/Registration/RegisterForm/Form2.js
bwyap/ptc-amazing-g-race
import React from 'react'; import autobind from 'core-decorators/es/autobind'; import { withApollo, gql } from 'react-apollo'; import { Button, Intent } from '@blueprintjs/core'; import FormInput from '../../../../../../../lib/react/components/forms/FormInput'; import Validator from '../../../../../../../lib/react/comp...
src/svg-icons/hardware/tv.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTv = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); HardwareTv = pure(Hardwar...
src/server/router.js
wmkcc/uiams-r0
import React from 'react'; import Router from 'react-routing/lib/Router'; import HtmlContext from './HtmlContext'; // import router from 'koa-router'; import HomePage from '../layout/HomePage'; import ContactPage from '../layout/ContactPage'; import NotFoundPage from '../layout/NotFoundPage'; import ErrorPage from '.....
app/javascript/mastodon/features/ui/components/column.js
hyuki0000/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
ide/static/js/LayerComment.js
Cloud-CV/IDE
import React from 'react'; class LayerComment extends React.Component { constructor(props) { super(props); } render() { <div className="url-import-modal" style={{ paddingTop:'10px'}}> Comment Modal </div> } }
src/utils/childUtils.js
barakmitz/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export function createChildFragment(fragments) { const newFragments = {}; let validChildrenCount = 0; let firstKey; // Only create non-empty key fragments for (const key in fragments) { const currentChild = fragments[k...
client/index.js
Exceltior/freecodecamp
import Rx from 'rx'; import React from 'react'; import Fetchr from 'fetchr'; import debugFactory from 'debug'; import { Router } from 'react-router'; import { history } from 'react-router/lib/BrowserHistory'; import { hydrate } from 'thundercats'; import { Render } from 'thundercats-react'; import { app$ } from '../co...
src/containers/ResetPasswdContainer.js
wind85/waterandboards
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import ResetPasswd from '../components/ResetPasswd.js' import * as Actions from '../actions' const ResetPasswdContainer = ({ actions }) => { ...
src/svg-icons/image/filter-center-focus.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterCenterFocus = (props) => ( <SvgIcon {...props}> <path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9...
components/pagination.js
volodalexey/spachat
import React from 'react' import extend_core from '../js/extend_core.js' import switcher_core from '../js/switcher_core.js' import chats_bus from '../js/chats_bus.js' import users_bus from '../js/users_bus.js' import messages from '../js/messages.js' import dom_core from '../js/dom_core.js' import Location_Wrapper fr...
lib/Card.js
danalvarez5280/Weatherly
import React from 'react'; export default function Card (props) { const propsIcon = props.icon const image = `./assets/${propsIcon}.svg` return ( <div className="card"> { props.time && <p className="card-info">{props.time}</p> } { props.day && <p className="...
src/svg-icons/image/gradient.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGradient = (props) => ( <SvgIcon {...props}> <path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2z...
investninja-web-ui-admin/src/vendor/recharts/demo/component/CartesianGrid.js
InvestNinja/InvestNinja-web-ui
import React from 'react'; import { Surface, CartesianGrid } from 'recharts'; export default React.createClass({ render () { let horizontalPoints = [10, 20, 30, 100, 400]; let verticalPoints = [100, 200, 300, 400]; return ( <Surface width={500} height={500}> <CartesianGrid width=...
resources/src/js/components/Sidebar/components/NavListItems.js
aberon10/thermomusic.com
'use strict'; // Dependencies import React from 'react'; import { NavLink, Link } from 'react-router-dom'; function closeSidebar() { document.getElementById('nav-bar-container').classList.remove('nav-bar-visible'); } class NavListItems extends React.Component { constructor(props) { super(props); } render() { ...
blueocean-material-icons/src/js/components/svg-icons/action/accessibility.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility.displayName = 'ActionAccessibility'; ActionAccessibili...
docs/app/Examples/collections/Form/Variations/FormExampleUnstackable.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Form } from 'shengnian-ui-react' const FormExampleUnstackable = () => ( <Form unstackable> <Form.Group widths={2}> <Form.Input label='First name' placeholder='First name' /> <Form.Input label='Last name' placeholder='Last name' /> </Form.Group> <Form...
src/components/Login.js
kimochg/react-native-githubnote-app
/* * @Author: LIU CHENG * @Date: 2017-02-28 09:27:56 * @Last Modified by: LIU CHENG * @Last Modified time: 2017-02-28 19:24:21 */ import React from 'react'; import { View, Text, TextInput, TouchableHighlight, ActivityIndicator, StyleSheet } from 'react-native'; /** * Login form * props: * isLoa...
src/svg-icons/av/stop.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvStop = (props) => ( <SvgIcon {...props}> <path d="M6 6h12v12H6z"/> </SvgIcon> ); AvStop = pure(AvStop); AvStop.displayName = 'AvStop'; AvStop.muiName = 'SvgIcon'; export default AvStop;
examples/src/components/SelectedValuesField.js
jaakerisalu/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
app/components/SignupCard/index.js
kevinnorris/bookTrading
import React from 'react'; import ActionButton from 'components/ActionButton'; import * as val from 'utils/fieldValidation'; import TextField from 'components/TextField'; import Title from 'components/Title'; import CenterCard from 'components/CenterCard'; import ServerError from 'components/ServerError'; import { res...
packages/mineral-ui-icons/src/IconSentimentNeutral.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 IconSentimentNeutral(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
src/components/google_map.js
benjaminboruff/CityWeather
import React, { Component } from 'react'; class GoogleMap extends Component { componentDidMount() { new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.lon } }); } render() { return <div ref="map"></div>; } }...
src/SwitchNext.js
Edorka/steam2graph
import React, { Component } from 'react'; import './SwitchNext.css'; // Include its styles in you build process as well class SwitchNext extends Component { constructor(props){ super(props); this.choices = []; this.state = { choice: {'label':''}, position: null }; } ...
src/components/search_bar.js
AihaitiAbudureheman/learn-react
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: ''}; } render (){ return ( <div> <input onChange={ event => this.setState({ term: event.target.value})} /> </div> ) } } export default Searc...
src/parser/priest/holy/modules/talents/90/Halo.js
sMteX/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import ItemDamageDone from 'interface/others/ItemDamageDo...
ui/src/components/DeviceProfileForm.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import Select from "react-select"; import NetworkServerStore from "../stores/NetworkServerStore"; import SessionStore from "../stores/SessionStore"; class DeviceProfileForm extends Component { static contextTypes = { router: React.PropTypes.object.isRequired }; c...
app/components/common/Modal.js
mswiszcz/pagebuilder
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Modal.css'; export default class Modal extends Component { render() { return ( <div className={styles.overlay} onClick={this.props.onClose}> <div className={styles.content} onClick={(e) => ...
src/hoister.js
ulisesbocchio/react-redux-boilerout
import React from 'react'; export function hoistClassBehavior(clazz, behaviour) { const instanceKeys = Reflect.ownKeys(behaviour); for (let property of instanceKeys) { const hoistedDescriptor = Reflect.getOwnPropertyDescriptor(behaviour, property); const originalDescriptor = Reflect.getOwnPrope...
src/svg-icons/content/archive.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentArchive = (props) => ( <SvgIcon {...props}> <path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-....
src/components/rb-icon.js
Pier1/rocketbelt
import PropTypes from 'prop-types'; import React from 'react'; const RbIcon = ({ icon, className }) => { return ( <svg className={`icon ${className}`} dangerouslySetInnerHTML={{ __html: `<use xlink:href="/icons/rocketbelt.icons.svg#rb-icon-${icon}"></use>`, }} /> ); }; RbIcon.pro...
reactviews/src/ChartDoghnut.js
yvesago/dioc
import React from 'react'; import {Doughnut, Chart} from 'react-chartjs-2'; // some of this code is a variation on https://jsfiddle.net/cmyker/u6rr5moq/ var originalDoughnutDraw = Chart.controllers.doughnut.prototype.draw; Chart.helpers.extend(Chart.controllers.doughnut.prototype, { draw: function() { orig...
client/routes/Items/index.js
patzj/ims
import React from 'react'; import ItemsPanel from './components/ItemsPanel'; export const Items = () => { return <ItemsPanel /> }; export default Items;
pages/api/dialog-actions.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './dialog-actions.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
components/Welcome.ios.js
xfredlix/snacktime
'use strict'; import React, { Component } from 'react'; import { Alert, Animated, Dimensions, Easing, Image, LayoutAnimation, Navigator, Platform, ScrollView, StyleSheet, Switch, Text, TouchableHighlight, TouchableOpacity, TouchableWithoutFeedback, View, UIManager, } from 'react-native...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
Technaesthetic/ua-tools
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
src/components/TextInputCSSModules/TextInputCSSModules.js
ebirito/ps-react-ebirito
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styles from './textInput.css'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text",...
app/client/src/scenes/LoggedOutHome/LoggedOutHome.js
uprisecampaigns/uprise-app
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import Link from 'components/Link'; import s from 'styles/Page.scss'; function LoggedOutHome(props) { return ( <div className={s.root}> <div className={s.homeContentSection1}> <div className={s.fullContainer}> <...
frontend/src/AddMovie/ImportMovie/Import/ImportMovie.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/Page/PageContentBody'; import translate from 'Utilities/String/translate'; impo...
client/app/components/ContentEditor/customPlugins/latex-plugin/components/InsertTeXButton.js
bryanph/Geist
import React from 'react'; import {insertTeXBlock} from '../modifiers/insertTeXBlock'; export class InsertTeXButton extends React.Component { constructor(props) { super(props) this.insertTeX = this.insertTeX.bind(this) } insertTeX() { this.props.setEditorState(insertTeXBlock(this...
app/containers/CardView.js
wenwuwu/redux-restful-example
import React from 'react' import { connect } from 'react-redux' import Card from '../components/Card' import BackToCardList from '../components/BackToCardList' import _ from 'underscore' import { bindActionCreators } from 'redux' import * as ActionCreators from '../actions' import { Link, withRouter } from 'react-rout...
src/svg-icons/social/sentiment-dissatisfied.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentDissatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 1...
src/components/ListPage.js
GatesmanAgency/GraphQL-Relay-Modern-QuickStart
import React from 'react' import Post from './Post' import WeatherWidget from './WeatherWidget' import { Link } from 'react-router-dom' import { createFragmentContainer, graphql } from 'react-relay' class ListPage extends React.Component { render () { console.log('ListPage - render - environment', this.pro...
app/components/template/Loading.js
jendela/jendela
import React from 'react' class Loading extends React.Component { render() { const style = { display: "block", marginTop: "2em", marginBottom: "2em", marginLeft: "auto", marginRight: "auto", textAlign: "center" } retur...
src/bootstrap/AdminPanelWrapper.js
EehMauro/dyscalculia-web
import React from 'react'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import { withStyles } from 'material-ui/styles'; import { CircularProgress } from 'material-ui/Progress'; import { fetchSession, doLogout } from '../actions'; import { colors } from '../conventions'; import App...
examples/shared/wrapInTestContext.js
jowcy/react-dnd
import React, { Component } from 'react'; import TestBackend from 'react-dnd/modules/backends/Test'; import { DragDropContext } from 'react-dnd'; export default function wrapInTestContext(DecoratedComponent) { @DragDropContext(TestBackend) class TestStub extends Component { render() { return <DecoratedCo...
packages/react-scripts/template/src/index.js
lolaent/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
jqwidgets/jqwidgets-react/react_jqxtagcloud.js
UCF/IKM-APIM
/* jQWidgets v5.6.0 (2018-Feb) Copyright (c) 2011-2017 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxTagCloud extends React.Component { componentDidMount() { let options = this.manag...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/lens.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageLens = (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 2z"/> </SvgIcon> ); ImageLens.displayName = 'ImageLens'; ImageLens.muiName = 'SvgIcon'; export default ImageLens;
packages/generator-emakinacee-react/generators/app/templates/static/src/containers/App/App.js
emakina-cee-oss/react-cli
import React from 'react'; import Home from '../Home/Home'; import logo from './logo.svg'; import styles from './App.module.scss'; const App = () => { return ( <div className={styles.app}> <div className={styles.header}> <img src={logo} className={styles.logo} alt="logo" /> ...
src/components/StatementHeader/StatementHeader.js
nambawan/g-old
/* eslint-disable */ import React from 'react'; import Proptypes from 'prop-types'; const renderLikeButton = (likeFn, liked) => ( <button onClick={likeFn} className={cn(s.like, liked ? 'fa fa-thumbs-up' : 'fa fa-thumbs-o-up')} /> ); const renderFollowButton = (ownStatement, isFollowee, followFn) => (own...
src/collections/Form/FormDropdown.js
Semantic-Org/Semantic-UI-React
import PropTypes from 'prop-types' import React from 'react' import { getElementType, getUnhandledProps } from '../../lib' import Dropdown from '../../modules/Dropdown' import FormField from './FormField' /** * Sugar for <Form.Field control={Dropdown} />. * @see Dropdown * @see Form */ function FormDropdown(props...
src/components/tos.js
colinmegill/polis-admin-console
/* * Copyright 2012-present, Polis Technology 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 for non-commercial use can be found in the PATENTS file * in the sam...
website-prototyping-tools/RelayPlayground.js
lucasterra/relay
import './RelayPlayground.css'; import 'codemirror/mode/javascript/javascript'; import Codemirror from 'react-codemirror'; import React from 'react'; import ReactDOM from 'react/lib/ReactDOM'; import Relay from 'react-relay'; window.Relay = Relay; import babel from 'babel-core/browser'; import babelRelayPlaygroundPlu...
packages/showcase/misc/animation-example.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/containers/NewCampaign/Amount/BuyItem.js
kingpowerclick/kpc-web-backend
import React, { Component } from 'react'; import classNames from 'classnames'; import { Breadcrumb, NewCampaginMenu } from 'components'; import { SplitButton, MenuItem } from 'react-bootstrap'; export default class ByItem extends Component { render() { const styles = require('./newCampaign.scss'); retu...
src/svg-icons/communication/portable-wifi-off.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPortableWifiOff = (props) => ( <SvgIcon {...props}> <path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02....
app/views/Player/LifeBar.js
thomasboyt/bipp
import React from 'react'; import RenderedCanvas from '../lib/RenderedCanvas'; const LifeBar = React.createClass({ propTypes: { width: React.PropTypes.number.isRequired, height: React.PropTypes.number.isRequired, hp: React.PropTypes.number.isRequired, }, renderCanvas(ctx) { const percentFilled...
src/svg-icons/communication/import-export.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportExport = (props) => ( <SvgIcon {...props}> <path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/> </SvgIcon> ); CommunicationImportExport = pure(CommunicationImpo...
src/components/mysql/plain-wordmark/MysqlPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './MysqlPlainWordmark.svg' /** MysqlPlainWordmark */ function MysqlPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'MysqlPlainWor...
actor-apps/app-web/src/app/components/DialogSection.react.js
Rogerlin2013/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/main.js
nitrog7/nl-fluid
import React from 'react'; import ReactDOM from 'react-dom'; import AppView from 'views/AppView'; const target = document.getElementById('main'); // Render initial ReactJS code ReactDOM.render(<AppView />, target);
src/svg-icons/action/accessible.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessible = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19...
dynamic/swagger-to-api-doc.js
JeremyCraigMartinez/developer-dot
import path from 'path'; import React from 'react'; import {createStore} from 'redux'; import {Provider} from 'react-redux'; import reducer from './react/api-app/reducers/reducer'; import SwaggerParser from 'swagger-parser'; import App from './react/api-app/app'; import {renderToString} from 'react-dom/server'; import ...
src/components/round/takeRound.js
jollopre/beverage_planning
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { RoundShape } from '../../shapes/roundShape'; class TakeRound extends Component { constructor() { super(); this.onSubmit = this.onSubmit.bind(this...
app/scripts/components/Routes.react.js
darbio/auth0-roles-permissions-dashboard-sample
import React from 'react'; import Router from 'react-router'; import Config from '../core/Config'; import RouterService from '../core/RouterService'; // Initialize logger. import { LogFactory } from '../core/Logger'; let logger = LogFactory('router'); // Root handler. var Shell = React.createClass({ render: funct...
src/svg-icons/image/assistant-photo.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistantPhoto = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ImageAssistantPhoto = pure(ImageAssistantPhoto); ImageAssistantPhoto.displayName = 'Image...
src/icons/RoomServiceIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class RoomServiceIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M4 34h40v4H4zm23.67-18.42c.21-.48.33-1.02.33-1.58 0-2.21-1.79-4-4-4s-4 1.79-4 4c0 .56.12 1.1.33 1.58C1...
client/routes.js
vaibhavmule/lead_crud
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './components/App' import LeadsIndex from './pages/LeadsIndex' import LeadDetail from './pages/LeadDetail' import CreateLead from './pages/CreateLead' export default ( <Route path="/" component={App}> <IndexRoute componen...
apps/marketplace/index.js
AusDTO/dto-digitalmarketplace-frontend
/* eslint-disable*/ import React from 'react' import ReactDOM from 'react-dom' import { BrowserRouter } from 'react-router-dom' import { Provider } from 'react-redux' import Header from './components/Header/Header' import AUFooter from './components/Footer/AUFooter' import SkipToLinks from './components/SkipToLinks/Sk...
ui/src/components/Modal/ConfirmDeleteModal.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { compose, withProps, setPropTypes } from 'recompose'; import ConfirmModal from 'ui/components/Modal/ConfirmModal'; const enhanceConfirmModal = compose( setPropTypes({ target: PropTypes.string.isRequired, }), withProps(({ target }) => ({ ...
examples/focus/app.js
mdamien/react-tabs
import React from 'react'; import { Tab, Tabs, TabList, TabPanel } from '../../lib/main'; const App = React.createClass({ handleInputChange() { this.forceUpdate(); }, render() { return ( <div style={{padding: 50}}> <Tabs> <TabList> <Tab>First</Tab> <Tab>Second</Tab> </Ta...
src/routes/Devices/components/nodes/Region.js
KozlovDmitriy/Pos.Hierarchy.Net
import React from 'react' import PropTypes from 'prop-types' import { Group } from '@vx/group' import Plus from './Plus' import NodeLabel from './NodeLabel' import CollapsedNode from './CollapsedNode' class Region extends CollapsedNode { static propTypes = { node: PropTypes.object.isRequired, errors: PropTyp...
components/Welcome.js
RomainInnocent/tpdevops
/** * Created by Adrien on 30/06/2017. */ import React from 'react'; const style = { textAlign: 'center' } const Welcome = (props) => ( <div style={style}> <h1>{props.title}</h1> <p>{props.msg}</p> </div> ); export default Welcome;
src/components/BookList.js
pixel-glyph/better-reads
import React from 'react'; import PropTypes from 'prop-types'; import Remove from './svg/Remove'; class BookList extends React.Component { switchListSelect = (list) => { if(this.props.onMobile) { this.props.toggleSideList(); } this.props.switchList(list); }; removeList = (e) => { e.st...
examples/with-algolia-react-instantsearch/components/app.js
BlancheXu/test
import React from 'react' import PropTypes from 'prop-types' import { RefinementList, SearchBox, Hits, Configure, Highlight, Pagination } from 'react-instantsearch/dom' import { InstantSearch } from './instantsearch' const HitComponent = ({ hit }) => ( <div className='hit'> <div> <div className...
examples/simple/index.js
macropodhq/react-custom-scrollbars
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render(<App />, document.getElementById('root'));
components/Animation.js
sturquier/hyne
import React, { Component } from 'react'; import { Animated } from 'react-native'; class Animation extends Component { constructor(props) { super(props); this.state = { animation: new Animated.ValueXY({x: 200, y:0}) } } componentDidMount() { Animated.timing( this.state.animation, { /* delay defi...
src/svg-icons/notification/airline-seat-flat-angled.js
owencm/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....
docs/app/Examples/elements/Label/Groups/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LabelGroups = () => ( <ExampleSection title='Groups'> <ComponentExample title='Group Size' description='Labels...
src/settings/PatronGroupsSettings.js
folio-org/ui-users
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, injectIntl, } from 'react-intl'; import { ControlledVocab } from '@folio/stripes/smart-components'; import { withStripes } from '@folio/stripes/core'; class PatronGroupsSettings extends React.Component { static propTypes = ...
src/React/Widgets/LayoutsWidget/TwoBottom.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactWidgets/LayoutsWidget.mcss'; export default function render(props) { return ( <table className={props.active === '3xB' ? style.activeTable : style.table} name="3xB" onClick={props.onClick} > ...
packages/@unimodules/react-native-adapter/build/NativeViewManagerAdapter.native.js
exponent/exponent
import omit from 'lodash/omit'; import pick from 'lodash/pick'; import React from 'react'; import { NativeModules, UIManager, ViewPropTypes, requireNativeComponent } from 'react-native'; // To make the transition from React Native's `requireNativeComponent` to Expo's // `requireNativeViewManager` as easy as possible, `...
src/react/JSONTree/JSONArrayNode.js
threepointone/redux-devtools
import React from 'react'; import reactMixin from 'react-mixin'; import { ExpandedStateHandlerMixin } from './mixins'; import JSONArrow from './JSONArrow'; import grabNode from './grab-node'; const styles = { base: { position: 'relative', paddingTop: 3, paddingBottom: 3, paddingRight: 0, marginLe...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
WitchesTown/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { refreshHashtagTimeline, expandHashtagTimeline, } from '../../../actions/timelines'; import Column from '../../../components/colu...
src/server.js
RomanovRoman/react-starter-kit
/** * 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 'babel-polyfill'; import path from 'path'; import e...
fields/types/boolean/BooleanField.js
creynders/keystone
import React from 'react'; import Field from '../Field'; import Checkbox from '../../components/Checkbox'; import { FormField } from 'elemental'; const NOOP = () => {}; module.exports = Field.create({ displayName: 'BooleanField', statics: { type: 'Boolean', }, propTypes: { indent: React.PropTypes.bool, labe...
temp.js
SerenityTn/knowledge_map
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { constructor(){ super(); this.state = { user: {firstName: "Serenity", lastName: "Amamou"} } } hello(user){ return "Good morning " + user.firstName + " " + user.lastName;...
node_modules/case-sensitive-paths-webpack-plugin/demo/src/AppRoot.component.js
myapos/ClientManagerSpringBoot
import React, { Component } from 'react'; export default class AppRoot extends Component { // we can't use `connect` in this component, so must do naiively: constructor(props) { super(props); this.state = { }; } render() { return ( <div> <h1>This is just an empty demo</h1> ...
subjects/HigherOrderComponents/exercise.js
integral-llc/react-interview
//////////////////////////////////////////////////////////////////////////////// // Exercise: // // Make `withMousePosition`a a "higher-order component" that sends the mouse // position to the component as props. // // hint: use `event.clientX` and `event.clientY` import React from 'react' import { render } f...
app/javascript/mastodon/components/timeline_hint.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const TimelineHint = ({ resource, url }) => ( <div className='timeline-hint'> <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ...
src/common/components/static/TOC.js
ThinkingInReact/ThinkingInReact.xyz
import React, { Component } from 'react'; import TOCMD from 'content//TOC.md'; class TOC extends Component { render() { return ( <section className="TOC"> <h1 className="TOC__Title"> Table of Contents </h1> <TOCMD /> </section> ); } } export default TOC;
js/KindAnalysisPanel.react.js
Sable/McLab-Web
import AT from './constants/AT'; import classnames from 'classnames'; import Dispatcher from './Dispatcher'; import DropdownSelect from './DropdownSelect.react'; import FortranCompileActions from './actions/FortranCompileActions'; import FortranCompileArgumentSelector from './FortranCompileArgumentSelector.react'; impo...
ui/src/components/StockChart.js
Ion-Petcu/StockTrainer
import React from 'react' import {Line} from 'react-chartjs-2' export class StockChart extends React.Component { render() { let chartData = { labels: [], datasets: [ { fill: true, cubicInterpolationMode: 'monotone', ...
src/components/icons/CollapseIcon.js
austinknight/ui-components
import React from 'react'; const CollapseIcon = props => ( <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" fill="white" width="18px" height="18px" x="0px" y="0px" viewBox="0 0 18 18"> {props.title && <title>{props.title}</title>} <g id="collapse" transform="translate(-872...
src/withStyles.js
kriasoft/isomorphic-style-loader
/** * Isomorphic CSS style loader for Webpack * * Copyright © 2015-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-types' import ...
examples/progressive-render/components/Loading.js
sedubois/next.js
import React from 'react' export default () => ( <div> <h3>Loading...</h3> <style jsx>{` div { align-items: center; display: flex; height: 50vh; justify-content: center; } `}</style> </div> )
src/client/pages/tocheck.react.js
sljuka/bucka-portfolio
import Component from '../components/component.react'; import React from 'react'; import {Link} from 'react-router'; import ToCheckItem from './tocheckitem.react'; import {msg, msgs} from '../intl/store'; class ToCheck extends Component { render() { return ( <div className="tocheck"> <h3> ...