path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
Dockerfiles/node/nodeapp/src/Components/Machine.js
4lexBaum/projekt-5s-dhbw
import React from 'react'; import { LightBarrier } from '../Components/LightBarrier.js'; export class Machine extends React.Component { constructor(props) { super(props); } render() { return ( <div id="machineBox"> <div id="areasBox"> <div id="area1" className="area"> ...
src/components/Layout/Footer.js
muidea/magicSite
import React from 'react' import { config } from 'utils' import styles from './Footer.less' const Footer = () => ( <div className={styles.footer}> {config.footerText} </div>) export default Footer
app/javascript/mastodon/features/ui/index.js
masto-donte-com-br/mastodon
import classNames from 'classnames'; import React from 'react'; import { HotKeys } from 'react-hotkeys'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Redirect, withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import NotificationsContai...
assets/jqwidgets/demos/react/app/grid/toolbar/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; class App extends React.Component { render() { let source = { datatype: 'jsonp', ...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
zomeelee/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import AvatarItem from...
src/js/components/ProofLine.js
jackdeadman/Natural-Deduction-React
import React from 'react'; class ProofLine extends React.Component { constructor(props) { super(props); var { lineNumber, equation, rule } = props; this.state = { lineNumber, equation, rule }; } handleClick() { console.log(this.props); this.props.onSelect(this); } ...
test/index.js
mapbox/mdast-react
/** * @typedef {import('mdast').Image} Image * @typedef {import('react').ReactNode} ReactNode * @typedef {import('react').ReactElement<unknown>} ReactElement */ import fs from 'node:fs' import path from 'node:path' import process from 'node:process' import test from 'tape' import {remark} from 'remark' import {VFi...
app/components/ViewListing.js
mestern/farmers_market
import React from 'react' import { connect } from 'react-redux' import { browserHistory, Link } from 'react-router' import {putOrder} from '../reducers/order' import store from '../store' //import {putProduce} from '../reducers/produce' // import { putPayment } from '../reducers/payment' /// correct this const mapSta...
src/pages/number/Eratosthenes/Eratosthenes.js
hyy1115/react-redux-webpack2
import React from 'react' class Eratosthenes extends React.Component { render() { return ( <div>Eratosthenes</div> ) } } export default Eratosthenes
src/routes/Signup/components/SignupForm/SignupForm.js
Ryana513/ccproject
import React from 'react' import PropTypes from 'prop-types' import { Field, reduxForm } from 'redux-form' import { TextField, RadioButtonGroup, RadioButton } from 'redux-form-material-ui' import RaisedButton from 'material-ui/RaisedButton' import { SIGNUP_FORM_NAME } from '../../../../constants' import { require...
src/Parser/Mage/Frost/Modules/Items/IceTime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import { formatNumber } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemDamageDone from 'Main/ItemDamageDone'; /** * Ice Time: * You...
docs/pages/components/transitions.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'components/transitions'; const requireDemo = require.context('docs/src/pages/components/transitions', false, /\.(js|tsx)$/); cons...
ajax/libs/react-instantsearch/5.2.1/Connectors.js
jonobr1/cdnjs
/*! React InstantSearch 5.2.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports',...
app/addons/permissions/__tests__/permissionsScreen-test.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/native/components/Baseline.js
skallet/este
// @flow import type { State } from '../../common/types'; import React from 'react'; import { StyleSheet, View } from 'react-native'; import { compose, range } from 'ramda'; import { connect } from 'react-redux'; // Test vertical rhythm visually. Inspired by basehold.it type BaselineProps = {| baselineShown: boolea...
Sources/Screens/URExampleMainView.js
jegumhon/React-Native-MovingTransition
"use strict"; import React from 'react'; import { StyleSheet, View, Text, Button, ListView, Image, Animated, Dimensions, Easing } from 'react-native'; import { BlurView } from 'react-native-blur'; import URExampleSampleCell from '../URExampleCell'; import ImageAssets from './../../ImageAssets'...
src/server/express.js
tosFa/react-cross-platform-boardgame-example
var express = require('express'); var expressServer = express(); import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import webpackConfig from '../../webpack.config'; import React from 'react'; import { renderToString } fr...
app/imports/ui/pages/NotFound.js
ericvrp/GameCollie
import React from 'react'; import { Alert } from 'react-bootstrap'; const NotFound = () => ( <div className="NotFound"> <Alert bsStyle="danger"> <p><strong>Error [404]</strong>: { window.location.pathname } does not exist.</p> </Alert> </div> ); export default NotFound;
mxcube3/ui/components/SampleView/UserLog.js
bolmsten/mxcube3
import React from 'react'; import './userlog.css'; export default class UserLog extends React.Component { render() { return ( <div className="logger-window"> {this.props.messages.reverse().map((data, i) => (<p key={i}>{data.message}</p>))} </div> ); } }
src/components/App.js
luketlancaster/react-temps
import React from 'react' import axios from 'axios' import Day from './Day' class App extends React.Component { constructor() { super(); this.getPosition = this.getPosition.bind(this); this.getForecast = this.getForecast.bind(this); // getInitialState this.state = { coords: {}, for...
packages/node_modules/@webex/widget-meet/src/enhancers/withWebRtcSupport.js
ciscospark/react-ciscospark
import React from 'react'; import classNames from 'classnames'; import {shape, func} from 'prop-types'; import { branch, renderComponent } from 'recompose'; import messages from '../messages'; import styles from '../styles.css'; function NoWebRTCSupport({intl}) { return ( <div className={classNames(styles.m...
src/pages/linth.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Linth' /> )
src/svg-icons/image/style.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStyle = (props) => ( <SvgIcon {...props}> <path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1....
src/components/molecules/Post/index.stories.js
DimensionLab/narc
import React from 'react' import { storiesOf } from '@storybook/react' import { Post } from 'components' storiesOf('Post', module) .add('default', () => ( <Post title="Hello" body="Ullamco et reprehenderit magna cillum ullamco consectetur et enim aliqua." /> ))
src/svg-icons/device/signal-cellular-3-bar.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceSignalCellular3Bar = pure(DeviceSignalCellular3Bar); DeviceS...
js/components/blankPage/index.js
leehyoumin/asuraCham
'use strict'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { openDrawer, closeDrawer } from '../../actions/drawer'; import { popRoute } from '../../actions/route'; import { setIndex } from '../../actions/list'; import { replaceRoute, replaceOrPushRoute } from '../../actio...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Modal.js
JamieMason/npm-cache-benchmark
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/components/bar/index.js
jollopre/beverage_planning
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import BarHeader from './barHeader'; import NewRound from './newRound'; import ListProducts from './listProducts'; import { BarShape } from '../../shapes/barShape'; export default class Bar extends Component { render() { const { bar, prod...
src/index.js
zhbhun/react-antd-window
/** * Created by zhbhun on 2015/9/22. */ /** * Created by zhbhun on 2015/9/22. */ import React from 'react'; import assign from 'object-assign'; import Antd from 'antd'; import {Window, Modal, Confirm, Tip} from 'react-window-kit'; class AntdWindow extends Window { static defaultProps = assign({}, Window.defa...
src/App.js
ibujs/decaffeinater
// @flow // eslint-disable-next-line import/no-extraneous-dependencies import { ipcRenderer } from 'electron' // ipc communication to main process. import React from 'react' // Following imports for material-ui, React components based on material-ui import Paper from 'material-ui/Paper' import TextField fro...
src/index.js
shierby/shierby.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter as Router, Route} from 'react-router-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import './index.css'; import routes from './routes' import App from './App'; import registerServiceWorker from './registerServiceWorker...
src/Parser/Paladin/Retribution/Modules/Talents/DivinePurpose.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Combatants from ...
src/components/form/field/get.js
kairatz/resource-frontend-server
import React from 'react' import DatePickerComponent from '../datepicker' import DatePickerComponent2 from '../datepicker/index2' import DatePickerComponent3 from '../datepicker/index3' import StatusField, { FieldComponent } from './' import { required, requiredInt } from '../validation' import moment from 'moment' co...
client/src/demo/Options.js
ziel5122/autograde
import Slider from 'material-ui/Slider'; import Subheader from 'material-ui/Subheader'; import Toggle from 'material-ui/Toggle'; import React from 'react'; const optionsStyle = { alignItems: 'center', display: 'flex', width: '100%', }; const sliderStyle = { height: '24px', margin: 0, marginLeft: '12px', ...
src/components/atoms/MediaLayout/index.js
ygoto3/artwork-manager
// @flow import React from 'react'; import styles from './styles.css'; export const MediaLayout = ({ children }) => ( <div className={styles.container}> {children[0]} <div> {children[1]} </div> </div> ); Object.assign(MediaLayout, { displayName: 'MediaLayout', });
webpack/scenes/Subscriptions/Manifest/SimpleContentAccess.js
snagoor/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Level, LevelItem } from '@patternfly/react-core'; import { OverlayTrigger, Tooltip, Icon } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import { Col, ControlLabel } from 'react-bootstrap'; const Simp...
example/src/app.js
rsamec/react-pathjs-chart
import React from 'react'; import ReactDOM from 'react-dom'; import Binder from 'react-binding'; import _ from 'lodash'; import PropertyEditor from 'react-property-editor'; import genie from 'genie' import {Tabs as TabbedArea,Tab as TabPane,Button} from 'react-bootstrap'; import SmoothLineChartDemo from './SmoothLine...
examples/async/index.js
darrrk/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
server/soman/frontend/app/components/sensors/Smoke.js
bilgorajskim/soman
import React from 'react'; import SensorIcon from 'react-icons/lib/fa/fire'; import { sensorConfig } from '../../sensorConfig' export default function smokeSensor({data, color}) { const active = data ? data.value > sensorConfig.smoke.triggerThreshold : false return <div className={active?'sensor--active':''}> ...
plugins/Terminal/js/index.js
NebulousLabs/Sia-UI
// index.js: main entrypoint for the Sia-UI wallet plugin. import React from 'react' import ReactDOM from 'react-dom' import CommandLine from './components/app.js' import { createStore } from 'redux' import { Provider } from 'react-redux' import rootReducer from './reducers/index.js' import { initPlugin } from './utils...
src/components/articles.js
rikmms/rikmms.github.io
import React from 'react' import { Header, List } from 'semantic-ui-react' const Articles = ({ articles }) => { return ( <div> <Header as='h3'>Publications</Header> <List> { articles.map(article => <List.Item key={ article.title }> <List.Icon name='calendar' /> ...
src/Parser/DeathKnight/Blood/Modules/Traits/Veinrender.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import calculateEff...
e2e-tests/gatsby-image/src/components/header.js
0x80/gatsby
import React from 'react' import { Link } from 'gatsby' import PropTypes from 'prop-types' const Header = ({ siteTitle }) => ( <div style={{ background: `rebeccapurple`, marginBottom: `1.45rem`, }} > <div style={{ margin: `0 auto`, maxWidth: 960, padding: `1.45...
client/main.js
alexfriesen/assetbase
import React from 'react'; import { Meteor } from 'meteor/meteor'; import { render } from 'react-dom'; import '../imports/startup/client/index.js'; import { renderRoutes } from '../imports/startup/client/routes'; Meteor.startup(() => { render(renderRoutes(), document.getElementById('app')); });
src/pages/client/Template.js
gramulos/EpsilonGroups
'use strict'; import { fetchClientMenu } from '../../actions/index'; import { bindActionCreators } from 'redux'; import React, { Component } from 'react'; import {connect} from 'react-redux'; import NavigationBar from '../../components/NavigationBar'; import Header from '../../components/Header'; import Footer from '...
src/containers/search_bar.js
D7Torres/react-forecastsparks
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; this.onInputChang...
test/FormGroupSpec.js
aabenoja/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import FormGroup from '../src/FormGroup'; describe('FormGroup', function() { it('renders children', function() { let instance = ReactTestUtils.renderIntoDocument( <FormGroup> <span className='child1' /> <span ...
tests/views/HomeView.spec.js
pawelniewie/presento
import React from 'react' import TestUtils from 'react-addons-test-utils' import { bindActionCreators } from 'redux' import { HomeView } from 'views/HomeView/HomeView' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } ...
src/svg-icons/hardware/headset-mic.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadsetMic = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/> ...
src/components/Photo/Photo.js
MarynaHapon/Data-root-react
import React from 'react'; import PropTypes from 'prop-types'; class Photo extends React.Component { static propTypes = { source: PropTypes.string.isRequired, altText: PropTypes.string.isRequired, }; render() { const { source, altText } = this.props; return <img src={source} alt={altText} />; }...
app/javascript/mastodon/components/loading_indicator.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export const CircularProgress = ({ size, strokeWidth }) => { const viewBox = `0 0 ${size} ${size}`; const radius = (size - strokeWidth) / 2; return ( <svg width={size} height={size} viewBox={viewBox} className='circular-progress' role='progress...
src/iframe.js
breath103/watchmen
import React, { Component } from 'react'; class IFrame extends Component { componentDidMount() { this.refs.iframe.addEventListener('load', this.props.onLoad); } componentWillReceiveProps(nextProps) { if (this.props.src !== nextProps.src) { this.props.onChange(); } } render() { return ...
src/svg-icons/av/repeat-one.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeatOne = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/> </SvgIcon> ); AvRepeatOne = pure(AvRepeatOne); AvRepeatOn...
docs/src/app/components/pages/components/Dialog/ExampleScrollable.js
pradel/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; const styles = { radioButton: { marginTop: 16, }, }; /** * Dialog co...
local-cli/templates/HelloWorld/__tests__/index.android.js
brentvatne/react-native
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/AppBundle/Resources/static/jsx/util/form/InputLabel.js
viszerale-therapie/simple-courses
import React from 'react'; import app from '../../app/app'; import tl from '../translator'; export default class InputLabel extends React.Component { constructor(props) { super(props); } render() { let requiredAdd = this.props.fieldDef.required ? <span className="required">*</span> : ''...
doc/src/js/components/Code.js
mapillary/mapillary-js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import React from 'react'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './code.module.css';...
ui/js/dfv/src/components/help-tooltip.js
pods-framework/pods
import React from 'react'; import sanitizeHtml from 'sanitize-html'; import Tippy from '@tippyjs/react'; import PropTypes from 'prop-types'; import { Dashicon } from '@wordpress/components'; import { richTextInlineOnly } from '../../../blocks/src/config/html'; import 'tippy.js/dist/tippy.css'; import './help-tooltip....
src/interface/RootErrorBoundary.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Trans, t } from '@lingui/macro'; import FullscreenError from 'interface/FullscreenError'; import ErrorBoundary from 'interface/ErrorBoundary'; import ApiDownBackground from 'interface/images/api-down-background.gif'; import { EventsParseError } fr...
src/pages/contact.js
nvasquez97/CataVasken
import React from 'react'; class Contact extends React.Component{ render(){ return( <div> <div className="panelH container"> <img src="/imgs/ArabianHorses.jpg" style={{width:'100%'}} className="img-responsive" title="Arabian Horses" alt="Arabian Horses"/> <p cl...
src/components/Help/HelpContainer.js
MinisterioPublicoRJ/inLoco-2.0
import React from 'react' import Help from './Help' import { connect } from 'react-redux' import { hideHelp } from '../../actions/actions.js' const mapStateToProps = (state, ownProps) => { return { showHelp: state.showHelp, } } const mapDispatchToProps = (dispatch) => { return { onIntrojsE...
__tests__/components/LoginForm-test.js
codeswan/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react/lib/ReactTestRenderer'; import LoginForm from '../../src/js/components/LoginForm'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Log...
src/svg-icons/alert/error.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertError = (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 15h-2v-2h2v2zm0-4h-2V7h2v6z"/> </SvgIcon> ); AlertError = pure(AlertError); AlertEr...
packages/react-static/templates/stress-test/src/pages/blog.js
nozzle/react-static
import React from 'react' import { useRouteData, Head } from 'react-static' import { Link } from '@reach/router' // let styled if (process.env.STYLE_SYSTEM === 'emotion') { styled = require('react-emotion').default } else if (process.env.STYLE_SYSTEM === 'styled') { styled = require('styled-components').default ...
app/javascript/mastodon/features/follow_recommendations/components/account.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import { makeGetAccount } from 'mastodon/selectors'; import Avatar from 'mastodon/compone...
test/PanelGroupSpec.js
tonylinyy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PanelGroup from '../src/PanelGroup'; import Panel from '../src/Panel'; describe('PanelGroup', function () { it('Should pass bsStyle to Panels', function () { let instance = ReactTestUtils.renderIntoDocument( <PanelGrou...
jekyll-strapi-tutorial/api/admin/admin/src/containers/ListPluginsPage/index.js
strapi/strapi-examples
/** * * ListPluginsPage * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import { bindActionCreators, compose } from 'redux'; import { FormattedMessage } from 'react...
app/components/Repositories.js
yneves/atom-orbital-command
'use babel'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autoBind from 'class-autobind'; import Button from './Button'; export default class Repository extends Component { static propTypes = { collapsedSections: PropTypes.array.isRequired, pinnedRepositories: PropTyp...
js/src/ui/Form/TypedInput/typedInput.spec.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
2017/Cati/React/apresentacao2/projeto1/react-notes/src/components/Button.js
LorhanSohaky/UFSCar
import React from 'react'; const Button=({type,text,onClick})=>( <button className={`btn ${type}`} onClick={onClick}> {text} </button> ) export default Button;
src/svg-icons/action/label-outline.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabelOutline = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l...
src/server.js
antklim/tanya_klimenko
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; import assets from './a...
src/client/components/App.js
playnogames/stacks
import React from 'react'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import utils from '../utils'; import Login from './Login'; import Dashboard from './Dashboard'; import Profile from './Profile'; class App extends React.Component { constructor() { super(); utils.setToken(); this.sta...
app/javascript/mastodon/features/explore/statuses.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusList from 'mastodon/components/status_list'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { fetchTrendingStatuses } from 'mastodon/actio...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-7/App.js
Brandon-J-Campbell/codemash
import React, { Component } from 'react'; import './App.css'; import Exercise from './Exercise'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <h1 className="App-title">Exercise 7</h1> <h2 className="sub-title">Convert a ...
antd-mobile-custom/antd-mobile/lib/checkbox/PropsType.js
forwk1990/wechart-checkin
// import React from 'react'; "use strict";
admin/client/views/home.js
andreufirefly/keystone
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import { Container } from 'elemental'; import xhr from 'xhr'; import { plural } from '../utils'; import Footer from '../components/Footer'; import MobileNavigation from '../components/Navigation/MobileNavigation'; import PrimaryNavigation from ...
fields/types/location/LocationField.js
dvdcastro/keystone
import _ from 'lodash'; import React from 'react'; import Field from '../Field'; import { Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental'; import CollapsedFieldLabel from '../../components/CollapsedFieldLabel'; import NestedFormField from '../../components/NestedFormField'; /** * TODO: * - Remov...
src/svg-icons/image/timer-10.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer10 = (props) => ( <SvgIcon {...props}> <path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-...
src/components/bio.js
rikmms/rikmms.github.io
import React from 'react' import { Image, Header, Icon } from 'semantic-ui-react' const Bio = ({ info }) => { return ( <div> <Image src={ info.photoSrc } size='small' verticalAlign='middle' shape='circular'/> <Header as='h2'>{ info.name }</Header> <div> {info.social.map(s => ...
client/common/components/AppBarProfile.js
Haaarp/geo
import React from 'react'; import { Link } from 'react-router'; import {Nav} from 'react-bootstrap'; import { DropdownButton, MenuItem } from 'react-bootstrap'; import Image from './Image'; import Badge from './Badge'; import Button from './Button'; import FormWrap from './FormWrap'; class AppBarProfile extends React...
packages/icons/src/md/image/NavigateBefore.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdNavigateBefore(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <polygon points="29.83 14.83 27 12 15 24 27 36 29.83 33.17 20.66 24" /> </IconBase> ); } export default MdNavigateBefore;
src/components/FilterLink.js
jhegedus42/egghead-redux-playaround
// @flow import React from 'react'; import {Link} from 'react-router'; import type {State_Filter} from '../reducers/idsByFilterMap_Reducer.js' const FilterLink = ({filter,children}:{filter:State_Filter,children:React$Element<any>})=>( <Link to = {filter === 'all' ? '' :filter} activeStyle = {{ textDecoratio...
node_modules/react-bootstrap/es/Popover.js
ASIX-ALS/asix-final-project-frontend
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/views/components/projects/ProjectContributorIcon.js
Domiii/project-empire
import { contributorStatusStyles, constributorStatusIcons } from './projectRenderSettings'; import React from 'react'; import PropTypes from 'prop-types'; // import { // Panel, Button, Alert, Well // } from 'react-bootstrap'; import { dataBind } from 'dbdi/react'; import FAIcon from 'src/views/components/util...
tests/lib/rules/indent.js
whitneyit/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------...
src/widgets/material/input-number.js
surikaterna/formr
import React from 'react'; import BaseInput from './base-input'; export default function InputNumber(props) { return <BaseInput {...props} type="number" onChange={(e) => props.onChange(Number(e))} />; }
packages/wix-style-react/src/StackedBarChart/StackedBarChart.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Tooltip from '../Tooltip'; import { st, classes } from './StackedBarChart.st.css'; import { stVars as colors } from '../Foundation/stylable/colors.st.css'; import { scalePoint, scaleLinear } from 'd3-scale'; import { select } from 'd3-selection'; imp...
app/pages/RegisterPage/RegisterPage.js
danielzy95/oaa-chat
import React from 'react' import { Link } from 'react-router' import { RegisterForm } from '../../components' import { LANDING } from '../../components/Routes' import IconButton from 'material-ui/IconButton' const RegisterPage = () => ( <div> <Link to={LANDING}> <IconButton iconClassName="material-icons" iconSty...
app/javascript/mastodon/features/ui/components/modal_root.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { getScrollbarWidth } from 'mastodon/utils/scrollbar'; import Base from 'mastodon/components/modal_root'; import BundleContainer from '../containers/bundle_container'; import BundleModalError from './bundle_modal_error'; import ModalLoading from './m...
frontend/src/components/profile/follow-button.js
1905410/Misago
import React from 'react'; import Button from 'misago/components/button'; // jshint ignore:line import { patch } from 'misago/reducers/profile'; // jshint ignore:line import ajax from 'misago/services/ajax'; // jshint ignore:line import snackbar from 'misago/services/snackbar'; // jshint ignore:line import store from '...
app/assets/javascripts/src/components/reviews/NewReviewForm.js
talum/creamery
import React from 'react' import { connect } from 'react-redux' import Form from '../sharedComponents/Form' import { addReview } from '../../actions/reviews' import InputField from '../sharedComponents/InputField' import SubmitButton from '../sharedComponents/SubmitButton' import { debounce } from 'lodash' class Revie...
packages/react-scripts/fixtures/kitchensink/src/index.js
sigmacomputing/create-react-app
/** * 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...
src/components/form/InputTitle.js
jekyll/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TextareaAutosize from 'react-textarea-autosize'; export default class InputTitle extends Component { shouldComponentUpdate(nextProps) { return nextProps.title !== this.props.title; } handleChange = e => { const { onChan...
src/React/Widgets/EqualizerWidget/index.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import equals from 'mout/src/array/equals'; import style from 'PVWStyle/ReactWidgets/EqualizerWidget.mcss'; import MouseHandler from '../../../Interaction/Core/MouseHandler'; import SizeHelper from '../../../Common/Misc/SizeHelper'; export default class...
src/Parser/MarksmanshipHunter/CombatLogParser.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SuggestionsTab from 'Main/SuggestionsTab'; import Tab from 'Main/Tab'; import Talents from 'Main/Talents'; import CoreCombatLogParser from 'Parser/Core/CombatLogParser'; import DamageDone from 'Parser/Core/Modules/DamageDone'; import CastEfficiency from './Modules/Features/CastEffic...
src/NavDropdown.js
herojobs/react-bootstrap
import React from 'react'; import Dropdown from './Dropdown'; class NavDropdown extends React.Component { render() { let { children, title, noCaret, ...props } = this.props; return ( <Dropdown {...props} componentClass='li'> <Dropdown.Toggle useAnchor disabled={props.disab...
src/docs/examples/ProgressBar/Example100Percent.js
MallikarjunaMG/react-components
import React from 'react'; import ProgressBar from 'comps-root/ProgressBar' /** * 100% progress */ export default function Example100Percent() { return <ProgressBar percent={100} width={150} /> }
src/svg-icons/action/toc.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToc = (props) => ( <SvgIcon {...props}> <path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/> </SvgIcon> ); ActionToc = pure(ActionToc); ActionToc.displa...
src/svg-icons/device/battery-charging-80.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11...