path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/interface/icons/DiscordTiny.js
fyruna/WoWAnalyzer
import React from 'react'; // From the Discord branding website. Should only use this rarely. const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="35 20 175 200" className="icon" {...other}> <path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1...
ui/src/js/main/ProjectTeaser.js
Dica-Developer/weplantaforest
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import PolygonMap from '../common/components/PolygonMap'; import { getFirstParagraph, getTextForSelectedLanguage } from '../common/language/LanguageHelper'; export default class ProjectTeaser extends Component { constructor(prop...
html-test/n-dialog/test.js
bradwoo8621/parrot2
import $ from 'jquery' import React from 'react' import ReactDOM from 'react-dom' import {Model} from '../../src/js/model/model' import {Layout} from '../../src/js/layout/layout' import {Envs} from '../../src/js/envs' import {NDialog, NDialogUtil} from '../../src/js/components/n-dialog' import {NText} from '../../src/j...
test/integration/css-fixtures/custom-configuration-legacy/pages/_app.js
flybayer/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
static/src/Results.js
sheki/parsesearch
import React, { Component } from 'react'; export default class Results extends Component { constructor(props) { super(props); } render() { const {results} = this.props; return ( <div> {results.length} results <ul> {results.map(result => <li key={result.id}>- {J...
src/views/QuotesList.js
abachuk/quotes
import React from 'react' import 'styles/core.scss' import { actions as quoteActions } from '../redux/modules/getquotes' import { connect } from 'react-redux' import _ from 'lodash' import styles from '../styles/QuotesListStyles.scss' import QuoteTile from '../components/quote-tile' const mapStateToProps = (state) => ...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
examples/huge-apps/routes/Grades/components/Grades.js
fiture/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
docs/app/Examples/elements/Input/index.js
mohammed88/Semantic-UI-React
import React from 'react' import Types from './Types' import States from './States' import Variations from './Variations' const InputExamples = () => ( <div> <Types /> <States /> <Variations /> </div> ) export default InputExamples
docs/app/Examples/elements/Icon/Groups/IconExampleLoadingGroup.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleLoadingGroup = () => ( <div> <Icon.Group size='huge'> <Icon size='big' color='red' name='dont' /> <Icon color='black' name='user' /> </Icon.Group> <Icon.Group size='huge'> <Icon loading size='big' name='...
client/src/admin/Home.js
ziel5122/autograde
import Paper from 'material-ui/Paper'; import React from 'react'; import HomeBody from './HomeBody'; import HomeTabs from './HomeTabs'; const paperStyle = { display: 'flex', flexDirection: 'column', height: '100%', width: '100%', }; const style = { flex: 1, maxWidth: '1000px', width: '100%', }; const ...
examples/todos-with-undo/containers/UndoRedo.js
splendido/redux
import React from 'react' import { ActionCreators as UndoActionCreators } from 'redux-undo' import { connect } from 'react-redux' let UndoRedo = ({ canUndo, canRedo, onUndo, onRedo }) => ( <p> <button onClick={onUndo} disabled={!canUndo}> Undo </button> <button onClick={onRedo} disabled={!canRedo}>...
src/layouts/index.js
yen223/yens-blog
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' const Header = () => <div style={{textAlign: "center", padding: 50}}> <h1>Wei Yen</h1> <span> <Link to="/">home</Link> </span> &middot; <span> <a href="https://github.com/yen223">github<...
src/svg-icons/av/replay.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/> </SvgIcon> ); AvReplay = pure(AvReplay); AvReplay...
app/js/containers/splashAnimation.js
ue/electra
import React from 'react'; const styles = { height: 650 } class SplashAnimation extends React.Component { constructor (props) { super(props); } componentWillMount() { if(!localStorage.getItem('darkTheme')){ localStorage.setItem('darkTheme', false); } } render() { return ( ...
src/example/WithHoverPropsExample.js
klarna/higher-order-components
import React from 'react' import { withHoverProps } from '../' export default withHoverProps({ hovered: true })(function Focusable({ hovered, ...props }) { return ( <article {...props}> <h1>withHoverProps</h1> <code> <pre style={{ color: 'lightgreen', backgro...
fields/types/boolean/BooleanColumn.js
tony2cssc/keystone
import React from 'react'; import Checkbox from '../../components/Checkbox'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var BooleanColumn = React.createClass({ displayName: 'Boolean...
examples/src/components/CustomKeysField.js
SenecaSystems/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 CustomKeysField = React.createClass({ displayName: 'CustomKeysField', propTypes: { label: React.PropTypes.string },...
src/svg-icons/action/assignment-late.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentLate = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0...
app/components/groups/groups.js
dfmcphee/pinnr
import React from 'react'; import { Link } from 'react-router'; import { Card } from 'semantic-ui-react'; import GroupStore from '../../stores/group-store'; export default class Groups extends React.Component { constructor(props) { super(props); this.state = { groups: GroupStore.getGroups(), load...
packages/kickoff-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
TryKickoff/create-kickoff-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [[1, '1'], [2, '2'], [3, '3'],...
admin/client/App/screens/Item/components/FormHeading.js
naustudio/keystone
import React from 'react'; import evalDependsOn from '../../../../../../fields/utils/evalDependsOn'; module.exports = React.createClass({ displayName: 'FormHeading', propTypes: { options: React.PropTypes.object, }, render () { if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) { re...
client/reactapp/components/App.js
TribeMedia/loopback-example-react
import React from 'react'; import { RouteHandler } from 'react-router'; export default class App extends React.Component { static contextTypes = { router: React.PropTypes.func } constructor ( props, context ) { super( props, context ); this.props = props; this.state = { }; this.context = context; } ...
packages/material-ui-icons/src/Subtitles.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Subtitles = props => <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z" /> </SvgIco...
lib/CurrentWeather.js
danalvarez5280/Weatherly
import React from 'react'; import WeatherColors from './WeatherColors'; export default function CurrentWeather (props){ const propsIcon = props.icon; const image = `./assets/${propsIcon}.svg`; const backgroundColor = WeatherColors[props.condition].style; return ( <div className="current-weather" style={...
src/packages/@ncigdc/utils/download/index.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import _ from 'lodash'; import Cookies from 'js-cookie'; import { setModal } from '@ncigdc/dux/modal'; import { Row, Column } from '@ncigdc/uikit/Flex'; import Button from '@ncigdc/uikit/Button'; import { notify, closeNotification } from '@ncigdc/dux/notification'; const getBody ...
information/blendle-frontend-react-source/app/modules/alerts/components/AlertManageForm.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import Input from 'components/Input'; import Button from 'components/Button'; import { translate, translateElement } from 'instances/i18n'; export default class AlertManageForm extends React.Component { static propTypes ...
app/javascript/mastodon/features/ui/components/bundle.js
WitchesTown/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const emptyComponent = () => null; const noop = () => { }; class Bundle extends React.PureComponent { static propTypes = { fetchComponent: PropTypes.func.isRequired, loading: PropTypes.func, error: PropTypes.func, children: PropTypes.fu...
src/scripts/vendors.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * This program 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 ...
extension/examples/todomvc/components/TodoItem.js
gaearon/redux-devtools
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import TodoTextInput from './TodoTextInput'; class TodoItem extends Component { constructor(props, context) { super(props, context); this.state = { editing: false, }; } handleDoub...
src/svg-icons/image/timer.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer = (props) => ( <SvgIcon {...props}> <path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0...
docs/src/routes/not-found/NotFound.js
bmatthews/haze-lea
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/components/hello/hello.js
nordsoftware/react-starter
import React from 'react'; import { connect } from 'react-redux'; import { Row, Column } from 'react-foundation'; import { Navbar } from '../navbar/navbar'; export const Hello = ({ isAuthenticated }) => ( <div className="hello"> <Navbar isAuthenticated={isAuthenticated}/> <Row> <Column> <p clas...
app/javascript/mastodon/features/compose/components/warning.js
robotstart/mastodon
import React from 'react'; import PropTypes from 'prop-types'; class Warning extends React.PureComponent { constructor (props) { super(props); } render () { const { message } = this.props; return ( <div className='compose-form__warning'> {message} </div> ); } } Warning....
packages/simple-cache-provider/src/SimpleCacheProvider.js
syranide/react
/** * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import warning from 'fbjs/lib/warning'; function noop() {} const Empty = 0; const Pending = 1; ...
docs/app/Examples/modules/Search/Variations/SearchExampleInput.js
shengnian/shengnian-ui-react
import React from 'react' import SearchExampleStandard from '../Types/SearchExampleStandard' const SearchExampleInput = () => <SearchExampleStandard input={{ icon: 'search', iconPosition: 'left' }} /> export default SearchExampleInput
docs/client/components/pages/InlineToolbar/CustomInlineToolbarEditor/index.js
koaninc/draft-js-plugins
/* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; // eslint-disable-next-line import/no-unresolved import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; // eslint-disable-next-line import/no-unresolved import createInlineToolbarPlugin, { Separator } from 'draft-js...
js/components/Header/index.android.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, ListItem, List } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; ...
docs/src/pages/404.js
isaacs/node-tap
import React from 'react'; import Navbar from '../components/navbar'; import styled from 'styled-components'; import {Flex} from 'rebass'; import exclamationMark from '../images/exclamation.gif'; import EncircledImage from '../components/EncircledImage'; import SEO from '../components/seo'; const Container = styled(Fl...
tests/react/useImperativeHandle_hook.js
facebook/flow
// @flow import React from 'react'; { React.useImperativeHandle(); // Error: function requires another argument. } type Interface = {| focus: () => void |}; { const api: Interface = { focus: () => {} }; const ref: {current: null | Interface } = React.createRef(); React.useImperativeHandle(ref, () =...
src/parser/priest/holy/modules/spells/SpiritOfRedemption.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import EventEmitter from 'parser/core/modules/EventEmitter'; import DeathDowntime from 'parser/shared/modules/downtime/DeathDowntime'; import SpellLink from 'common/SpellLink'; import { isItAprilFoolDay } from '...
src/elements/Reveal/RevealContent.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly, } from '../../lib' /** * A content sub-component for the Reveal. */ function RevealContent(props) { const { children, className, cont...
app/routes.js
billyvg/pokemon-journal
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> <Route path=...
examples/relay/src/App.js
svrcekmichal/react-scripts
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header "> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to Reactt</h2> ...
src/CarouselContext.js
peterasplund/slim-react-carousel
import React from 'react'; const CarouselContext = React.createContext({}); export const CarouselProvider = CarouselContext.Provider; export const CarouselConsumer = CarouselContext.Consumer; export default CarouselContext;
src/components/Reset/index.js
adam-beck/react-powerball
import React from 'react'; const Reset = ({reset}) => ( <button onClick={reset}>Reset</button> ); export { Reset };
src/components/textfield/demos/SingleLine.js
isogon/styled-mdl
import React from 'react' import { Textfield } from '../../../' export default () => <Textfield floatingLabel label="Text..." />
examples/sidebar/app.js
chrisirhc/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; import data from './data'; var Category = React.createClass({ render() { var category = data.lookupCategory(this.props.params.category); return ( <div> <h1>{category.name}</h1> {this.props.children || ( ...
js/components/projectlist.js
orionwei/mygit
/** * Created by orionwei on 2016/11/20. */ import React from 'react'; import Relay from 'react-relay'; import Header from './header'; class ProjectList extends React.Component { render() { return ( <div> <Header/> </div> ); } } export default Relay....
src/checkout/index.js
bhongy/react-components
import React from 'react'; import { Route } from 'react-router-dom'; import { Provider } from 'react-redux'; import configureStore from './store'; import EnterCode from './enter-code'; import Offer from './offer'; import Debugger from './debugger'; const CheckoutDemo = ({ match }) => ( <Provider store={configureStor...
app/imports/ui/client/components/Login/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import { Meteor } from 'meteor/meteor'; import LinkItem from '../misc/LinkItem'; import { createContainer } from 'meteor/react-meteor-data'; import { Session } from 'meteor/session'; import FeedbackMessage from '../misc/FeedbackMessage'; class Login extends Component { con...
src/basic/ListItem.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import { TouchableHighlight, Platform, TouchableNativeFeedback, View } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import variable from '../theme/variables/platform'; class Li...
resources/assets/js/components/profile/TimelineItem.js
jrm2k6/i-heart-reading
import React from 'react'; import moment from 'moment'; import { Link } from 'react-router'; class TimelineItem extends React.Component { getUpdateContent() { const { update } = this.props; const when = moment(update.created_at).fromNow(); if (update.assignment) { const book = update.assignment.boo...
src/routes/CollectionStatsView/CollectionStatsView.js
robertkirsz/magic-cards-manager
import React from 'react' import PropTypes from 'proptypes' import { connect } from 'react-redux' import { CollectionStats } from 'components' const mapStateToProps = ({ user }) => ({ user }) const CollectionStatsView = ({ user }) => ( <div className="collection-stats-view"> <CollectionStats /> </div> ) Coll...
src/components/NewRestaurantSignUp/NewRestaurantSignUp.js
tfrankie88/splitzi_react
import React, { Component } from 'react'; import update from 'react-addons-update'; import { browserHistory } from 'react-router'; import NavigationSplitIt from '../Navigation/NavigationSplitIt'; class NewRestaurant extends Component { constructor(props) { super(props); this.state = { restaurant: { ...
src/chapters/04-porazdelitve-verjetnosti/03-diskretne-porazdelitve/06-poissonova-porazdelitev/index.js
medja/ovs-prirocnik
import React from 'react'; import { createChapter } from 'components/chapter'; import Equation from 'components/equation'; import Formula from 'components/formula'; import Chart from 'components/chart'; const title = 'Poissonova porazdelitev'; function Title(props) { return ( <span> { props.t...
src/Parser/Druid/Restoration/Modules/Items/T21_4Set.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHealingDone'; const T21_4SET_Y...
app/components/FavoriteList/index.js
juanda99/arasaac-frontend
import React from 'react' import PropTypes from 'prop-types' import { DragDropContext } from 'react-dnd' import HTML5Backend from 'react-dnd-html5-backend' import withWidth, { SMALL, LARGE } from 'material-ui/utils/withWidth' import { DEFAULT_LIST } from 'utils' import DragPictogramSnippet from 'components/PictogramSni...
stories/Tooltip/ExamplePlacement.js
nirhart/wix-style-react
import React from 'react'; import {Tooltip} from 'wix-style-react'; import styles from './Example.scss'; export default () => <Tooltip active placement="right" alignment="center" content="Right Center" showTrigger="custom" hideTrigger="custom"> <div className={styles.box}>Right Center</div> </Tooltip>;
components/Contact/Contact.js
inthegully/reactPortfolio
import React from 'react'; import './contact.css'; import GitHub from '../../images/githublogo.png'; import LinkedIn from '../../images/linkedinlogo.png'; import Insta from '../../images/instagramlogo.png'; import Twitter from '../../images/Twitterlogo.png'; export default class Contact extends React.Component { re...
website-prototyping-tools/RelayPlayground.js
magnus-lycka/relay
/** * Copyright 2013-2015, 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 './RelayPl...
src/componentOrElement.js
react-bootstrap/react-prop-types
import React from 'react'; import createChainableTypeChecker from './utils/createChainableTypeChecker'; function validate(props, propName, componentName, location, propFullName) { const propValue = props[propName]; const propType = typeof propValue; if (React.isValidElement(propValue)) { return new Error( ...
node_modules/react-router/es6/IndexRedirect.js
amybingzhao/savings-planner-web
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
packages/ringcentral-widgets-docs/src/app/pages/Components/DropdownSelect/Demo.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; // eslint-disable-next-line import DropdownSelect from 'ringcentral-widgets/components/DropdownSelect'; /** * A example of `DropdownSelect` */ const options = [ { display: 'Option1', value: '1', }, { display: 'Option2', value: '2', }, ]; class Dropdow...
src/pages/settings.js
yamalight/bpjs-electron
// npm packages import React from 'react'; import {Link} from 'react-router-dom'; // our packages import PluginManager from '../api/index'; export default class Settings extends React.Component { constructor() { super(); this.state = {}; } componentDidMount() {} componentWillUnmount() {} render(...
client/extensions/woocommerce/app/order/order-customer/index.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import AddressView from 'woocommerce...
src/shared/views/navigation/NavigationList/NavigationList.js
in-depth/indepth-demo
import React from 'react' import { NavigationItem } from '../index' import styles from './NavigationList.css' import { navigationLinks } from '../../routes' const NavigationList = () => { return ( <ul className={styles.menu}> {navigationLinks.map((navigationLink) => ( <NavigationItem ke...
src/index.js
jonashao/palm
import React from 'react'; import ReactDOM from 'react-dom'; import AV from 'leancloud-storage'; import Root from './containers/Root'; import configureStore from './store/configureStore' import { appId, appKey } from './avconfig' import { syncHistoryWithStore } from 'react-router-redux'; import { browserHistory } from ...
examples/with-atlaskit/components/ButtonComponent.js
flybayer/next.js
import React from 'react' import Button, { ButtonGroup } from '@atlaskit/button' export default function ButtonComponent() { return ( <React.Fragment> <Button style={{ margin: 10 }}>Button</Button> <Button style={{ margin: 10 }} appearance="primary"> Primary Button </Button> <Butt...
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2018-01-11/src/main/js-surface-react.js
mcjazzyfunky/js-surface
import adaptReactLikeComponentSystem from './adaption/adaptReactLikeComponentSystem'; import React from 'react'; import ReactDOM from 'react-dom'; function reactMount(content, targetNode) { ReactDOM.render(content, targetNode); return () => ReactDOM.unmountComponentAtNode(targetNode); } const { createEl...
src/OptionGroup.js
jacycode/react-select-plus-2
import React from 'react'; import classNames from 'classnames'; const OptionGroup = React.createClass({ propTypes: { children: React.PropTypes.any, className: React.PropTypes.string, // className (based on mouse position) label: React.PropTypes.node, // the heading to show above th...
postgraphiql/src/components/PostGraphiQL.js
calebmer/postgraphql
import React from 'react'; import GraphiQL from 'graphiql'; import { getOperationAST, parse } from 'graphql'; import GraphiQLExplorer from 'graphiql-explorer'; import StorageAPI from 'graphiql/dist/utility/StorageAPI'; import './postgraphiql.css'; import { buildClientSchema, getIntrospectionQuery, isType, GraphQLObject...
react/features/display-name/components/web/DisplayNamePrompt.js
gpolitis/jitsi-meet
/* @flow */ import { FieldTextStateless as TextField } from '@atlaskit/field-text'; import React from 'react'; import { Dialog } from '../../../base/dialog'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; import AbstractDisplayNamePrompt, { type Props } from '../Abs...
src/containers/Info.js
gorand/redux_test
import React, { Component } from 'react'; class Info extends Component { render() { return ( <p>Реализация редактора заметок с помощью стека React + Redux + React-Router <br /> Данные сохраняются в LocalStorage </p> ); } } export default Info;
app/packs/src/components/ReactionDetailsContainers.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { PanelGroup, Panel, Button, OverlayTrigger, SplitButton, ButtonGroup, MenuItem, Tooltip } from 'react-bootstrap'; import Container from './models/Container'; import ContainerComponent from './ContainerComponent'; import PrintC...
spec/javascripts/jsx/external_apps/components/DeleteExternalToolButtonSpec.js
djbender/canvas-lms
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
components/AddMealDialog.js
filbertteo/frontend-challenge
import React from 'react'; import Dialog from 'material-ui/lib/dialog'; import FlatButton from 'material-ui/lib/flat-button'; import DatePicker from 'material-ui/lib/date-picker/date-picker'; import TimePicker from 'material-ui/lib/time-picker/time-picker'; import TextField from 'material-ui/lib/text-field'; import Dro...
client/src/app/components/localSignupForm.js
jhuntoo/starhackit
import React from 'react'; //import _ from 'lodash'; import Checkit from 'checkit'; import LocalAuthenticationForm from 'components/localAuthenticationForm'; import authActions from 'actions/auth'; import {createError} from 'utils/error'; import Debug from 'debug'; let debug = new Debug("components:signup"); export...
app/assets/scripts/components/panel-title.js
energy-data/market-opportunities
import React from 'react' import c from 'classnames' const PanelTitle = React.createClass({ propTypes: { title: React.PropTypes.string, visible: React.PropTypes.string, updateVisibleLayers: React.PropTypes.func, openSelection: React.PropTypes.func }, render: function () { const { title, vis...
src/core/components/types/NullType.js
remy/jsconsole
import React, { Component } from 'react'; class NullType extends Component { shouldComponentUpdate() { return false; } render() { return <div className="type null">null</div>; } } export default NullType;
examples/redux/SortableItem.js
danielstocks/react-sortable
import React from 'react' import { sortable } from '../../src' class Item extends React.Component { render() { return ( <li {...this.props}> {this.props.children} </li> ) } } export default sortable(Item)
fields/components/ItemsTableCell.js
giovanniRodighiero/cms
import React from 'react'; import classnames from 'classnames'; function ItemsTableCell ({ className, ...props }) { props.className = classnames('ItemList__col', className); return <td {...props} />; }; module.exports = ItemsTableCell;
src/components/App.js
sanalonyedi/egitimbudur-web-app
import React from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' class App extends React.Component { static propTypes = { store: PropTypes.object.isRequired, routes: PropTypes.object.isRequired, } shouldComponentUpd...
packages/mineral-ui-icons/src/IconAccessible.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 IconAccessible(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
packages/ringcentral-widgets/containers/ConferenceCallDialerPage/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import withPhone from '../../lib/withPhone'; import BackButton from '../../components/BackButton'; import BackHeader from '../../components/BackHeader'; import DialerPanel from '../../components/DialerPanel'; import ...
app/components/ShopListItemRenderer/ShopListItemRenderer.js
tenhaus/bbwelding
import React from 'react'; import Radium from 'radium'; import AltActions from '../../actions/AltActions'; import Style from './_ShopListItemRenderer.style'; class ShopListItemRenderer extends React.Component { constructor() { super(); this.onClick = this.onClick.bind(this); } onClick() { AltActi...
src/parser/DEFAULT_BUILD.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import ArmoryIcon from 'interface/icons/Armory'; export default { name: "Standard Build", url: "standard", icon: <ArmoryIcon />, };
src/svg-icons/image/looks-two.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooksTwo = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 ...
node_modules/react-bootstrap/es/FormControl.js
Chen-Hailin/iTCM.github.io
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 ...
server/sonar-web/src/main/js/app/components/extensions/Extension.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
services/ui/src/components/NavTabs/index.js
amazeeio/lagoon
import React from 'react'; import css from 'styled-jsx/css'; import EnvironmentLink from 'components/link/Environment'; import BackupsLink from 'components/link/Backups'; import DeploymentsLink from 'components/link/Deployments'; import TasksLink from 'components/link/Tasks'; import ProblemsLink from 'components/link/P...
pootle/static/js/admin/general/components/ContentPreview.js
translate/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; const ContentPreview = React....
admin/client/App/shared/InvalidFieldType.js
helloworld3q3q/keystone
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
frontend/src/components/organizationProfile/edit/mandate/partnerProfileMandate.js
unicef/un-partner-portal
import R from 'ramda'; import React, { Component } from 'react'; import { withRouter, browserHistory as history } from 'react-router'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { getFormInitialValues, SubmissionError } from 'redux-form'; import PartnerProfileMandateBackground fro...
lib/components/MapUrlTile.js
pjamrozowicz/react-native-maps
import PropTypes from 'prop-types'; import React from 'react'; import { ViewPropTypes, View, } from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44) cons...
frontend/app_v2/src/components/Widget/WidgetPlaceholder.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' function WidgetPlaceholder() { return <div className="bg-gray-100 text-gray-100 mt-5 w-auto h-48" /> } export default WidgetPlaceholder
src/components/index.js
adjohnson916/github-issue-rank
import _ from 'lodash'; import React from 'react'; import { Link } from 'react-router'; import Griddle from 'griddle-react'; import Loader from 'react-loader'; import { octokat, octokatHelper } from '../factory'; import * as helper from '../helper'; import Auth from '../auth'; import { history, linker } from './router...
src/browser/components/Baseline.js
reedlaw/read-it
// @flow import type { State } from '../../common/types'; import type { Theme } from '../../common/themes/types'; import * as themes from '../themes'; import React from 'react'; import { compose } from 'ramda'; import { connect } from 'react-redux'; // Test vertical rhythm visually. Inspired by basehold.it type Basel...
src/Components/Tabs/Tabs.js
sashasushko/moira-front
// @flow import React from 'react'; import Tabs from 'retail-ui/components/Tabs'; import cn from './Tabs.less'; type Props = {| value: string; children: any; |}; type TabProps = {| id: string; label: string; children: any; |}; type State = {| active: string; |}; const TabsTab = Tabs.Tab; expo...
app/config/routes.js
joshuar500/repository-notes
import React from 'react'; import Main from '../components/Main'; import Home from '../components/Home'; import Profile from '../components/Profile'; import Router from 'react-router'; import { Route, IndexRoute } from 'react-router'; export default ( // when at index of homepage, render Route component <Route...