path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
fields/types/password/PasswordFilter.js
stunjiturner/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ statics: { getDefaultValue: getDe...
src/Parser/HolyPaladin/Modules/Talents/RuleOfLaw.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; class RuleO...
static/src/components/notAuthenticatedComponent.js
tferreira/piggydime
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { browserHistory } from 'react-router' import * as actionCreators from '../actions/auth' function mapStateToProps(state) { return { token: state.auth.token, userName: state.auth.userName, isA...
demo/Panel.js
szchenghuang/react-mdui
'use strict'; //############################################################################# // Stylesheets. //############################################################################# import Styles from './styles'; //############################################################################# // Library includ...
src/components/SelectedCounter/SelectedCounter.js
amberleyromo/cboard
import React from 'react'; import PropTypes from 'prop-types'; import './SelectedCounter.css'; const propTypes = { count: PropTypes.number, text: PropTypes.string }; const defaultProps = { count: 0, text: 'items selected' }; const SelectedCounter = ({ count, text }) => ( <div className="SelectedCounter"> ...
js/components/Spinner/Circle.js
mxstbr/postcss.parts
import React from 'react'; import styled from 'styled-components'; import { animations } from '../../constants'; export default (props) => { const CirclePrimitive = styled.div` width: 100%; height: 100%; position: absolute; left: 0; top: 0; ${props.rotate && ` -webkit-transform: rotate(...
app/main.js
calvin-williams/MrChat
// support tap events import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); // import material component styles require('!!style!css!normalize.css/normalize.css'); require('!!style!css!material-components/lib/index.css'); // load the signals import './signals/driver'; import './signals/hu...
node_modules/node_modules/recharts/demo/component/TextDemo.js
SerendpityZOEY/Fixr-RelevantCodeSearch
import React, { Component } from 'react'; import { Text } from 'recharts'; class TextDemo extends Component { state = { exampleText: 'This is really long text', x: 0, y: 0, width: 300, height: 200, angle: 0, scaleToFit: false, textAnchor: 'start', verticalAnchor: 'start', font...
tilapp/App.js
tilap/tilapp
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { AppLoading } from 'expo'; import Application from '~/Application'; import initApplication from '~/init'; import store from '~/store'; import parameters from '~/config/parameters'; class AppStarter extends Component { construct...
client/src/components/helpers/Spacer.js
pahosler/freecodecamp
import React from 'react'; import PropTypes from 'prop-types'; const styles = { padding: '15px 0', height: '1px' }; const Comp = props => <div className='spacer' style={styles} {...props} />; const Spacer = ({ size = 1 }) => size === 1 ? ( <Comp /> ) : ( '#' .repeat(size) .split('') .ma...
dist/internal/components/dataset/NamedSetList.js
Caleydo/ordino
import { I18nextManager, UserSession, ENamedSetType, FormDialog, NotificationHandler, RestStorageUtils, StoreUtils, } from 'tdp_core'; import React from 'react'; import { ListItemDropdown } from '../../../components'; import { DatasetUtils } from './DatasetUtils'; export function NamedSetList({ headerIcon, headerText, ...
node_modules/expo/src/registerRootComponent.js
jasonlarue/react-native-flashcards
// @flow import React from 'react'; import { AppRegistry, StyleSheet } from 'react-native'; import Constants from './Constants'; import { processFontFamily } from './Font'; import Notifications from './Notifications'; import ModalHost from './Modal/ModalHost'; function wrapWithExponentRoot(AppRootComponent: ReactCla...
src/views/Feed/Feed.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, } from '../../lib' import FeedContent from './FeedContent' import FeedDate from './FeedDate' import FeedEven...
src/components/ClothingDisplay.js
shaunsaker/real-dope
import React from 'react'; import { connect } from 'react-redux'; import UserIcon from 'react-icons/lib/fa/user'; export class Clothing extends React.Component { static get propTypes() { return { clothing: React.PropTypes.string.isRequired, }; } render() { return ( <div cl...
src/index.dev.js
luisincrespo/react-custom-list
/* eslint-disable no-console, react/jsx-no-bind */ import React from 'react'; import ReactDOM from 'react-dom'; import ListContainer from './components/ListContainer'; class DummyComponent extends React.Component { constructor(props) { super(props); this.resetItems = this.resetItems.bind(this); this.cl...
node_modules/react-bootstrap/es/ModalHeader.js
hsavit1/gosofi_webpage
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/svg-icons/notification/vpn-lock.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVpnLock = (props) => ( <SvgIcon {...props}> <path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-...
app/client/components/battle/InventoryEntry.js
breakfast-mimes/cyber-mimes
import React from 'react'; const InventoryEntry = React.createClass({ render() { const {equip, dropItem, equipment, i} = this.props return ( <div className="actionEntry noSelect"> <div> <span onClick={dropItem.bind(null, equipment, i)}>{"X "}</span> <span onClick={equip.bind...
packages/react-router-native/examples/Recursive.js
OpenGov/react-router
import React from 'react' import { StyleSheet, Text, ScrollView, AppRegistry } from 'react-native' import { NativeRouter, Route, Link } from 'react-router-native' const PEEPS = [ { id: 0, name: 'Michelle', friends: [ 1, 2, 3 ] }, { id: 1, name: 'Sean', friends: [ 0, 3 ] }, { id: 2, name: 'Kim', friends: [ 0, 1, ...
src/components/sketch/Sketch.js
casesandberg/react-color
import React from 'react' import PropTypes from 'prop-types' import reactCSS from 'reactcss' import merge from 'lodash/merge' import { ColorWrap, Saturation, Hue, Alpha, Checkboard } from '../common' import SketchFields from './SketchFields' import SketchPresetColors from './SketchPresetColors' export const Sketch = ...
frontend/src/components/Header/index.js
moyuyc/isomorphic-blog
/** * Created by Moyu on 16/10/21. */ import React from 'react'; import { Link } from 'react-router' import {Map} from 'immutable' class Header extends React.Component { constructor(props) { super(props); } shouldComponentUpdate(nextProps, nextState, nextContext) { return !Map(this.props)...
src/components/spacing.js
LINKIWI/react-elemental
import PropTypes from 'prop-types'; import React from 'react'; import { marginStyle } from 'styles/spacing'; /** * Spacing component to add padding and margins. */ const Spacing = (props) => { const { padding, size, top, right, bottom, left, inline, style: overrides, children, ...
client/components/Admin/UserAddModal.js
codybarr/GoMobileCT
import React from 'react'; import ReactDOM from 'react-dom'; import { Modal, Button, Form, FormGroup, FormControl, ControlLabel, Col } from 'react-bootstrap'; import AuthStore from '../../stores/AuthStore'; import axios from 'axios'; export default class UserAddModal extends React.Component { constructor() { ...
src/components/NumberWithLabel.js
schneckentempo/ClicksAndImpressions
import React from 'react' import styles from './NumberWithLabel.css' export default function NumberWithLabel({ label, number }) { return ( <span className={styles.outerSpan}> { label }: <span className={styles.innerSpan}>{ number }</span> </span> ) } NumberWithLabel.propTypes = { label: React.PropTy...
src/js/views/transitions.js
touchstonejs/touchstonejs-starter
import Container from 'react-container'; import React from 'react'; import { Link, UI } from 'touchstonejs'; var scrollable = Container.initScrollable(); module.exports = React.createClass({ statics: { navigationBar: 'main', getNavigation () { return { title: 'Transitions' } } }, render () { re...
src/javascript/shared/components/footer/index.js
rahulharinkhede2013/xigro-dashboard
import React from 'react'; import { Button } from 'att-iot-ui/lib/button'; import Icon from 'att-iot-ui/lib/icon'; import classnames from 'classnames'; // style import styles from './style.scss'; import index from '../../../index.scss'; import app from '../../../app.scss'; import FacebookIcon from 'react-icons/lib/fa...
web/src/components/MediaElementList/SelectAllCheckbox.js
kupec/kurento-monitor
import React from 'react'; import {Checkbox} from 'material-ui'; export default function SelectAllCheckbox(props) { return <Checkbox style={{paddingRight: '16px', width: 'auto'}} onCheck={props.onCheck}/>; }
js/jqwidgets/demos/react/app/treegrid/pinnedfrozencolumn/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.expandRow(1); this.refs.myTreeGrid.expandRow(2); } render () { // pre...
packages/metadata-react/src/DataField/FieldInfinit/InfiniteList.js
oknosoft/metadata.js
/** * ### Контейнер с динамической подгрузкой данных * * @module InfiniteList * * Created by Evgeniy Malyarov on 18.09.2017. */ import React from 'react'; import PropTypes from 'prop-types'; import InfiniteLoader from 'react-virtualized/dist/es/InfiniteLoader'; import List from 'react-virtualized/dist/es/List'; ...
aaf-enrollment/src/components/enrollment/test-authenticator/TestAuthenticator.js
MicroFocus/CX
import PropTypes from 'prop-types'; import React from 'react'; import {Dialog, STATUS_TYPE} from '../../../ux/ux'; import {templateType} from '../../../types/types'; import './TestAuthenticator.scss'; import {connect} from 'react-redux'; import {deleteLogonProcess, doTestLogon} from '../../../actions/authentication.act...
src/js/components/Settings.js
rmhowe/picross
import React from 'react'; import Radium from 'radium'; import ColorChangeModal from './ColorChangeModal'; import { COLOR_CHANGE } from '../constants'; class Settings extends React.Component { render() { let modal; if (this.props.modal === COLOR_CHANGE) { modal = ( <ColorChangeModal ...
Realization/frontend/czechidm-core/src/components/basic/Table/SortHeaderCell.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; // import AbstractComponent from '../AbstractComponent/AbstractComponent'; import SortIcon from './SortIcon'; const ASC = 'ASC'; const DESC = 'DESC'; function _activeSort(searchParameters, sortProperty, property) { /...
src/js/components/icons/base/DocumentVerified.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
techCurriculum/ui/solutions/3.1/src/components/Message.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * 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...
client/js/components/Sell.js
micahp0506/jeeps
'use strict'; import React from 'react'; import Dropzone from 'react-dropzone'; import {Route, Router, browserHistory, Link} from 'react-router'; import LoginStore from '../stores/LoginStore'; import SellActions from '../actions/SellActions'; import SellStore from '../stores/SellStore'; // Creating Sale to handl...
react-youtube-adaptive-loading/src/containers/Comments/Comment/Comment.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import './Comment.scss'; import {Button, Image} from "semantic-ui-react"; import {Rating} from '../../../components/Rating/Rating'; export function Comment(props) { if (!props.comment) { return <div/>; } const topLevelComment = props.comment.snippet.topLevelComment; const {author...
spec/components/snackbar.js
rahultaglr/taglr-toolbox
import React from 'react'; import Button from '../../components/button'; import Snackbar from '../../components/snackbar'; class SnackbarTest extends React.Component { state = { active: false }; handleSnackbarClick = () => { this.setState({active: false}); }; handleSnackbarTimeout = () => { thi...
src/user/UserReblogs.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Feed from '../feed/Feed'; import { getIsAuthenticated, getAuthenticatedUser, getFeed, getPosts, } from '../reducers'; import { getFeedContentFromState, getFeedLoadingFromState, getFeedHasMoreFrom...
app/routes.js
rondobley/meal-planner
import React from 'react'; import {Route} from 'react-router'; import App from './components/App'; import Home from './components/Home'; import Dishes from './components/Dishes'; import Dish from './components/Dish'; export default ( <Route component={App}> <Route path='/' component={Home} /> <Route path='...
src/components/student/student-dashboard.js
scottbrassfield/Assess.js
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import { Grid, Segment, Button } from 'semantic-ui-react' import { startAssessment } from '../../actions' const StudentDashboard = (props) => { const styles = { btn: { fontSize: 14, padding: 15 },...
app/containers/Web3Alerts/Paused.js
acebusters/ab-web
import React from 'react'; import { Wrapper } from './styles'; const Paused = () => ( <Wrapper theme="warning"> <h2>Contracts under maintenance</h2> <p> Currently we are unable to send transactions. Please try later </p> </Wrapper> ); export default Paused;
src/chartwrapper/linechart/lineseries.js
dhounam/component-silver-bullet
import Dthree from 'd3'; import React from 'react'; export default class SilverSeriesLine extends React.Component { // PROP TYPES static get propTypes() { return { config: React.PropTypes.object, onPassLineClick: React.PropTypes.func, }; } constructor(props) { super(props); // LIN...
packages/icons/src/md/file/CloudQueue.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdCloudQueue(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38.71 20.07C43.89 20.44 48 24.72 48 30c0 5.52-4.48 10-10 10H12C5.37 40 0 34.63 0 28c0-6.19 4.69-11.28 10.7-11.93C13.21 11.28 18.22 8 24 8c7.28 0 ...
js/components/TodoListFooter.js
orionwei/mygit
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
6.3.0/examples/asyncValidation/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(279),e.exports=n(277)},function(e,t,n){var r=n(4),o=n(37),i=n(20),a=n(21),u=n(38),s="prototype",...
client/src/components/Rating/index.js
free-soul/bookshelf
import React from 'react'; import PropTypes from 'prop-types'; import SvgIcon from 'src/components/SvgIcon'; import styles from './styles.scss'; const Rating = (props) => { const value = parseFloat(props.value); const maximum = ~~props.maximum; const fullStarsCount = Math.floor(value); const halfStar = !!(valu...
src/components/molecules/formal-education.js
raulfdm/cv
import React from 'react'; import styled from 'styled-components'; import { MainContext } from 'src/contexts/main'; import CourseList from 'atoms/course-list'; import RangeDate from 'molecules/range-date'; const FormalItem = styled.li``; const Period = styled.p` display: inline; font-weight: bold; ::after { ...
src/DropdownMenu.js
gianpaj/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
src/web/components/List.js
faalsh/Lama
import React from 'react'; import Item from './Item' import { connect } from 'react-redux' import * as LamaActions from '../../common/actions' import { bindActionCreators } from 'redux' import CreateItem from './CreateItem' import {DragSource, DropTarget} from 'react-dnd' import _ from 'lodash' // import {sort} from '....
ignite/Examples/Components/ElementsExample.js
friskipr/Ignite_MyApp
// @flow import React from 'react' import { View, Text } from 'react-native' import ExamplesRegistry from '../../../App/Services/ExamplesRegistry' import { Button } from 'react-native-elements' // Example ExamplesRegistry.addPluginExample('Elements', () => <View> <Button title="RN Elements Button" /...
app/javascript/mastodon/features/ui/components/modal_root.js
honpya/taketodon
import React from 'react'; import PropTypes from 'prop-types'; import BundleContainer from '../containers/bundle_container'; import BundleModalError from './bundle_modal_error'; import ModalLoading from './modal_loading'; import ActionsModal from './actions_modal'; import MediaModal from './media_modal'; import VideoMo...
examples/with-url-object-routing/pages/index.js
nahue/next.js
import React from 'react' import Link from 'next/link' const href = { pathname: '/about', query: { name: 'next' } } const as = { pathname: '/about/next', hash: 'title-1' } export default () => ( <div> <h1>Home page</h1> <Link href={href} as={as}> <a>Go to /about/next</a> </Link> </div> ...
src/js/components/Legend.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import FormattedMessage from './FormattedMessage'; import List from './List'; import ListItem from './ListItem'; import CSSClassnames f...
src/routes.js
guymorita/creditTiger
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, CardComparison, Widgets, HowToSignUpBonus, About, LearnMore, Login, LoginSuccess, Survey, ...
app/javascript/mastodon/features/compose/components/upload_button.js
koba-lab/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
src/Stories/Header.stories.js
sashasushko/moira-front
// @flow import React from 'react'; import { storiesOf } from '@storybook/react'; import StoryRouter from 'storybook-router'; import Header from '../Components/Header/Header'; storiesOf('Header', module).addDecorator(StoryRouter()).add('Default', () => <Header />);
src/main/viz/VariantTrack.js
piotr-gawron/pileup.js
/** * Visualization of variants * @flow */ 'use strict'; import {AllelFrequencyStrategy} from '../types'; import type {VcfDataSource} from '../sources/VcfDataSource'; import type {DataCanvasRenderingContext2D} from 'data-canvas'; import type {VizProps} from '../VisualizationWrapper'; import type {Scale} from './d3...
lib/PaneSubheader/stories/PaneSubheaderExample.js
folio-org/stripes-components
/** * PaneCloseLink: Basic Usage */ import React from 'react'; import { MemoryRouter } from 'react-router'; /* eslint-disable-line import/no-extraneous-dependencies */ import faker from 'faker'; import Paneset from '../../Paneset'; import Pane from '../../Pane'; import PaneSubheader from '../PaneSubheader'; import M...
app/components/IconSystem/Icons/Chest.js
cdiezmoran/AlphaStage-2.0
import React from 'react'; import propTypes from '../iconPropTypes'; const Chest = ({ fill, styles }) => ( <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 480 480" style={{ ...styles, enableBackground: 'new 0 0 480 480' }} > <g> <...
redux-saga/src/index.js
mrk21/study_frontend
import React from 'react'; import { render } from 'react-dom'; import { Provider, connect } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import rootReducer from 'reducers'; import createSagaMiddleware from 'redux-saga' import Fetch from 'components/fetch'; import rootSaga from './s...
docs/src/app/components/pages/components/FlatButton/ExampleIcon.js
mmrtnz/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import {fullWhite} from 'material-ui/styles/colors'; const style = { margin: 12, }; const FlatButtonExampleIcon = () => ( <div>...
src/Tiles.js
synchon/react-biosummit-17
import React from 'react'; const SingleTile = props => { return ( <div className="tile is-ancestor has-text-centered"> <div className="tile is-parent"> <div className="tile is-child">{props.data[0]}</div> </div> </div> ) }; const DoubleTile = props => { return ( <div className="tile is-...
src/components/settings/SetLocaleSettings.js
whphhg/vcash-electron
import React from 'react' import { translate } from 'react-i18next' /** Components */ import SetCurrency from './SetCurrency.js' import SetLanguage from './SetLanguage.js' @translate(['common']) class SetLocaleSettings extends React.Component { constructor(props) { super(props) this.t = props.t } rende...
src/components/HorizontalCardView.js
REBOOTERS/BestPracticesRN
/** * Created by Rookie on 2017/7/20. */ import React, { Component } from 'react'; import { View, Text, Image, FlatList, TouchableNativeFeedback } from 'react-native'; class SeparateComponent extends Component { render() { return <View style={{ backgroundColor: 'white', width: 10 }} />; } } export default...
web/src/js/components/Donate/DonateHeartsControlsComponent.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import sanitizeHtml from 'sanitize-html' import { withStyles } from '@material-ui/core/styles' import Button from '@material-ui/core/Button' import Typography from '@material-ui/core/Typography' import Dialog from '@material-ui/core/Dialog' import DialogActio...
modules/gui/src/app/home/user/userMessage.js
openforis/sepal
import {Form, form} from 'widget/form/form' import {Layout} from 'widget/layout' import {Markdown} from 'widget/markdown' import {Panel} from 'widget/panel/panel' import {Widget} from 'widget/widget' import {compose} from 'compose' import {msg} from 'translate' import Label from 'widget/label' import PropTypes from 'pr...
src/ContentBlocks/BlockHeading/BlockHeadingForm.js
grommet/grommet-cms-content-blocks
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Box from 'grommet/components/Box'; import Form from 'grommet/components/Form'; import FormFields from 'grommet/components/FormFields'; import FormField from 'grommet/components/FormField'; import Button from 'grommet/components/Button'...
es/components/Chat/NotificationMessages/SkipMessage.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import { translate } from 'react-i18next'; import PropTypes from 'prop-types'; import Username from '../../Username'; import UserNotificationMessage from './UserNotificationMessage'; var toUsername = function toUsername(user) { return ...
packages/react-scripts/fixtures/kitchensink/src/features/env/ExpandEnvVariables.js
mangomint/create-react-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 from 'react'; export default () => ( <span> <span id="feature-expand-env-1">{process.env.REACT_APP_BASIC}</span> ...
src/components/footer/Footer.js
MyronBatiuk/react-shopify-storefront
import React, { Component } from 'react'; import './footer.css'; export default class Footer extends Component { render(){ return ( <footer> <div className="copyright">2017 &copy; All rights reserved.</div> </footer> ) } }
ajax/libs/react-instantsearch/4.1.2/Connectors.js
holtkamp/cdnjs
/*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
src/js/HomePage.js
merlox/dapp-transactions
import React from 'react' import {Link} from 'react-router-dom' import './../stylus/index.styl' import './../stylus/homepage.styl' import LINKS from './utils.js' class HomePage extends React.Component { constructor(props) { super(props) this.state = { orderCancelled: false, showVideo:...
packages/vx-shape/src/shapes/BarStack.js
Flaque/vx
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Group } from '@vx/group'; import Bar from './Bar'; import { stack as d3stack } from 'd3-shape'; export default function BarStack({ data, className, top, left, x, xScale, yScale, zScale, keys, height...
packages/wix-style-react/src/Table/BulkSelection/BulkSelection.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; export const BulkSelectionContext = React.createContext(); export const BulkSelectionState = Object.freeze({ ALL: 'ALL', NONE: 'NONE', SOME: 'SOME', }); export const ChangeType = Object.freeze({ ALL: 'ALL', NONE: 'NONE', SINGLE_TOGGLE: 'SINGL...
node_modules/react-bootstrap/es/FormGroup.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 ...
app/javascript/flavours/glitch/features/pinned_accounts_editor/containers/account_container.js
Kirishima21/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from 'flavours/glitch/selectors'; import { injectIntl } from 'react-intl'; import { pinAccount, unpinAccount } from 'flavours/glitch/actions/accounts'; import Account from 'flavours/glitch/features/list_editor/components/account...
src/utils/createContextWrapper.js
dongtong/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return contextTypes => { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; } ...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-15/friends/Friends.entry.js
Brandon-J-Campbell/codemash
import React from 'react'; import myFriends from '../data/friends'; import Friends from './Friends'; export default function FriendsEntry() { return <Friends friends={myFriends} /> }
news/routes/EditArticle/EditArticle.js
MiloATH/FreeCodeCamp
import React from 'react'; const propTypes = {}; function NewArticle() { return ( <h2>New Article</h2> ); } NewArticle.displayName = 'NewArticle'; NewArticle.propTypes = propTypes; export default NewArticle;
admin/client/App/shared/FlashMessages.js
jstockwin/keystone
/** * Render a few flash messages, e.g. errors, success messages, warnings,... * * Use like this: * <FlashMessages * messages={{ * error: [{ * title: 'There is a network problem', * detail: 'Please try again later...', * }], * }} * /> * * Instead of error, it can also be hilight, info, ...
src/routes/register/index.js
dabrowski-adam/react-isomorphic
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../compo...
webpack/components/PermissionDenied.js
theforeman/foreman_templates
import React from 'react'; import PropTypes from 'prop-types'; import { EmptyStatePattern as EmptyState } from 'foremanReact/components/common/EmptyState'; const PermissionDenied = props => { const description = ( <span> {__('You are not authorized to perform this action.')} <br /> {__( ...
ui/src/js/team/TeamMember.js
Dica-Developer/weplantaforest
import he from 'he'; import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { createProfileImageUrl } from '../common/ImageHelper'; class Member extends Component { constructor(props) { super(props); } linkToProfile() { browserHistory.push('/user/' + encodeURICom...
src/js/components/Accordion/stories/CustomThemed/Custom.js
grommet/grommet
import React from 'react'; import { SubtractCircle, AddCircle } from 'grommet-icons'; import { Accordion, AccordionPanel, Box, Grommet, Text } from 'grommet'; const customAccordionTheme = { global: { font: { family: `-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto`, }, },...
packages/benchmarks/merge-styles/client/index.js
A-gambit/CSS-IN-JS-Benchmarks
import ReactDOM from 'react-dom'; import React from 'react'; import App from 'benchmarks-utils'; import Table from './Table'; import './index.html'; ReactDOM.render(<App table={Table} />, document.getElementById('root'));
modules/plugins/center/CenterButton.js
devrieda/arc-reactor
import React from 'react'; import MenuButton from '../../components/MenuButton'; import ToggleCenter from './lib/ToggleCenter'; const CenterButton = React.createClass({ statics: { getName: () => "center", isVisible: () => true }, propTypes: MenuButton.propTypes, getDefaultProps() { return { ...
src/interface/icons/Checklist.js
fyruna/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/term/checklist/437165/ // Checklist by David from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}> <path d="M37.434,25.406H92.54c1.354,0,2.46-1.103,2.46-2.459c0-1.3...
src/svg-icons/hardware/toys.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareToys = (props) => ( <SvgIcon {...props}> <path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2...
components/progress/index.js
bebeanan/monkey-ui
import React from 'react'; import Progress from './progress'; import warning from 'warning'; const AntProgress = Progress; // For downward compatibility AntProgress.Line = (props) => { warning(false, '<Progress.Line /> is deprecated, use <Progress type="line" /> instead.'); return <Progress {...props} type="line"...
assets/jqwidgets/demos/react/app/maskedinput/defaultfunctionality/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxMaskedInput from '../../../jqwidgets-react/react_jqxmaskedinput.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { this.refs.myClearButton.on('click', ()...
blueocean-material-icons/src/js/components/svg-icons/social/pages.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialPages = (props) => ( <SvgIcon {...props}> <path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); SocialPages.dis...
node_modules/react-bootstrap/es/SplitButton.js
GregSantulli/react-drum-sequencer
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/renderElement.js
4Catalyzer/found-relay
import React from 'react'; import warning from 'warning'; export default function renderElement({ /* eslint-disable react/prop-types */ match, Component, isComponentResolved, hasComponent, querySubscription, resolving, // Whether it's safe to throw a RedirectException or an HttpError. /* eslint-enable ...
app/javascript/mastodon/components/button.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
src/js/main.js
craigcabrey/positr
import React from 'react'; import ReactDOM from 'react-dom'; import Fetch from 'whatwg-fetch'; import FilteredPhraseList from './filtered-phrase-list'; class Main extends React.Component { render() { return <div className='container'> <h1 className='title page-header'> <img src='img/brand.jpg' alt...
routes/Statistic/components/ScatterPlotInfo.js
YongYuH/Ludo
import React from 'react'; import styled from 'styled-components'; import { translate } from 'react-i18next'; import ScatterPlot from './ScatterPlot'; import Button from '../../../components/Button'; const ButtonWrapper = styled.div` margin-top: 30px; `; const Wrapper = styled.div` margin: 0 50px; `; const Scatt...
app/assets/scripts/views/home/compare-location-card.js
openaq/openaq.org
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { NO_CITY } from '../../utils/constants'; import { getCountryName } from '../../utils/countries'; import CompareLocationCardChart from './compare-location-card-chart'; export default function CompareLocation...
ChatsUP/src/components/welcome.js
michelmarcondes/ReactNativeStudies
import React, { Component } from 'react'; import { Text, View, Image, ImageBackground, StyleSheet, TouchableHighlight, StatusBar } from 'react-native'; import { Actions } from 'react-native-router-flux'; const bgImage = require('../assets/bg.png'); const logoImage = require('../ass...
src/svg-icons/image/crop-portrait.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/> </SvgIcon> ); ImageCropPortrait = pure(ImageCropP...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedMobile.js
koenvg/Semantic-UI-React
import React from 'react' import { Grid } from 'semantic-ui-react' const GridExampleReversedMobile = () => ( <Grid reversed='mobile' columns='equal'> <Grid.Column>Mobile Fourth</Grid.Column> <Grid.Column>Mobile Third</Grid.Column> <Grid.Column>Mobile Second</Grid.Column> <Grid.Column>Mobile First</Gr...