path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/entypo/Cw.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Cw'; let EntypoCw = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M19.315,10h-2.372V9.795c-0.108-4.434-3.724-7.996-8.169-7.996C4.259,1.799,0.6,5.471,0.6,10s3.659,8.199,8.174,8...
src/svg-icons/hardware/watch.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareWatch = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2....
meteor/RNApp/app/index.js
merxer/kata
import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import Button from './button'; import DDPClient from 'ddp-client'; let ddpClient = new DDPClient(); export default React.createClass({ getInitialState() { return { connected: false, posts: {} } }, compo...
pages/audio.js
sikhote/clairic
import React from 'react'; import List from '../components/List'; export default () => ( <List key="audio" title="audio" header="Audio" source="audio" /> );
src/components/shop/OrderList.js
mangal49/HORECA
import React from 'react'; import Loading from '../Loading'; import { connect } from 'react-redux'; import * as actions from '../../actions'; import MobileTearSheet from './MobileTearSheet'; import Avatar from 'material-ui/Avatar'; import { List, ListItem } from 'material-ui/List'; import Divider from 'material-ui/Div...
example/src/components/4-CompositionOverrides/CompositionOverrides.js
KenPowers/css-modules-electron
import styles from './CompositionOverrides.css'; import React, { Component } from 'react'; export default class CompositionOverrides extends Component { render() { return ( <div className={styles.root}> <p className={styles.text}>Class Composition with Overrides</p> </div> ); } };
src/routes/privacy/index.js
remcorakers/strava-segment-rank
/** * 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 Layout from '../../co...
src/components/NotFoundPage/index.js
jsk7/personal-web
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div className="page-not-found"> <h4> A wild 404 appeared! </h4> <Link to="/"> Volver a la home </Link> </div> ); }; export default NotFoundPage;
src/app/component/tooltip/tooltip.js
all3dp/printing-engine-client
import React from 'react' import PropTypes from 'prop-types' import find from 'lodash/find' import {CSSTransition} from 'react-transition-group' import cn from '../../lib/class-names' import PositioningPortal from '../positioning-portal' import TooltipBaloon from '../tooltip-baloon' // This has to be synced with the...
templates/rubix/relay/relay-example/src/routes/EditTodo.js
jeffthemaximum/jeffline
import React from 'react'; import Relay from 'react-relay'; import ReactDOM from 'react-dom'; import { withRouter } from 'react-router'; import { Row, Col, Grid, Form, Alert, Panel, Button, Checkbox, PanelBody, FormGroup, FormControl, ControlLabel, PanelContainer } from '@sketchpixy/rubix'; ...
app/components/Attachments.js
jastkand/vk-notifications
import get from 'lodash/get' import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faPlay } from '@fortawesome/free-solid-svg-icons/faPlay' import styles from './Attachments.css' const AttachmentLink = ({ link }) => { return ( <a href={ link.url } className={ styles....
src/components/FilterItem/FilterItem.js
zuiidea/antd-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './FilterItem.less' const FilterItem = ({ label = '', children }) => { const labelArray = label.split('') return ( <div className={styles.filterItem}> {labelArray.length > 0 && ( <div className={styles.labelWrap}> ...
src/components/WelcomeScreen/SignUp/SignUp.container.js
amberleyromo/cboard
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SignUpComponent from './SignUp.component'; import { signUp } from './SignUp.actions'; import { getLangsOptions } from './SignUp.selectors'; class SignUpContainer extends Component { static pro...
app/javascript/mastodon/features/list_editor/components/search.js
anon5r/mastonon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists'; import classNames from 'classnames'; const messages ...
templates/rubix/demo/src/main.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import ReactDOM from 'react-dom'; import routes from './routes'; import render from '@sketchpixy/rubix/lib/node/router'; import l20n from '@sketchpixy/rubix/lib/L20n'; l20n.initializeLocales({ 'locales': ['en-US', 'fr', 'it', 'ge', 'ar', 'ch'], 'default': 'en-US' }); render(routes, () ...
src/client/components/Cart/CartButton.component.js
DBCDK/tanterne
import React from 'react'; import PropTypes from 'prop-types'; import {Plus} from '../svg/svg.container'; /** * Generates a button that when clicked will ensure the given index is added/remove to/from the cart * * @param {string }index * @param {Object} cart * @return {XML} * @constructor */ export function Ca...
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/Lesson/index.js
Zephyrrus/ubb
import React from 'react' import PropTypes from 'prop-types' import lessonData from '../../../mocks/lesson.json' import Lesson from './Lesson' const LessonScreen = () => <Lesson {...lessonData} /> /*ProfileScreen.navigationOptions = () => ({ header: null, })*/ LessonScreen.navigationOptions = () => ({ title: '...
src/components/Menu/Menu.js
swessar/gifs
import React from 'react'; import { Link } from 'react-router'; const Menu = () => { return ( <ul className="Menu"> <li className="Menu-item"><Link to='/favorites' activeClassName="is-active">Favorites</Link></li> </ul> ) } export default Menu;
app/javascript/mastodon/features/ui/components/bundle_modal_error.js
RobertRence/Mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; const messages = defineMessages({ error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp...
src/views/Item/ItemExtra.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * An item can contain extra content meant to be formatted separately from the mai...
client/src/containers/controls.js
HenrikGr/redux-book
/*! * Description: ControlsContainer component * * The component is a stateless function component with the purpose * of render the TopicSelectorContainer, DisplayModeContainer, and the * HistoryContainer components. * * The app component hierarchy looks like this: * * App * - ControlsContainer (*) * - To...
src/Component.js
nkbt/react-debounce-input
import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash.debounce'; export class DebounceInput extends React.PureComponent { static propTypes = { element: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), type: PropTypes.string, onChange: PropTypes.func.isRequir...
node_modules/semantic-ui-react/src/elements/Icon/Icon.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey, } from '../../lib' import IconGroup from './IconGroup' /** * An i...
views/status_line.js
Suninus/black-screen
import React from 'react'; export default React.createClass({ render() { return ( <div className="status-line"> <CurrentDirectory currentWorkingDirectory={this.props.currentWorkingDirectory}/> <VcsData data={this.props.vcsData}/> </div> ) ...
src/Parser/HolyPaladin/Modules/Features/MasteryEffectiveness.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import MasteryRadiusImage from 'Main/Im...
packages/with-intersection-observer-props/demo/Target.js
deepsweet/hocs
import React from 'react' import 'intersection-observer' import withIntersectionObserverProps from '../src/' const Target = ({ isOnePixelVisible, isHalfVisible, isFullVisible, onRef }) => ( <div ref={onRef} style={{ backgroundColor: 'RebeccaPurple', color: 'white' }}> <p>{JSON.stringify({ isOnePixelVisible })}<...
src/svg-icons/action/code.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCode = (props) => ( <SvgIcon {...props}> <path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/> </SvgIcon> ); ActionCode = pure(ActionCode); ActionCode.di...
src/boilerplate-layout/components/layout/elements/loading.js
jonnyohjonnyo/TDD_LunchAndLearn_HDQC_April_2017
import React from 'react'; const Loading = () => ( <div> <p className="center" style={{ marginTop: 100, opacity: 0.5 }}> <i className="fa fa-cog fa-spin fa-5x" /> </p> </div> ); export default Loading;
src/index.js
JohnTasto/EverythingIsFalling
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import store from './store/configureStore' // eslint-disable-line import/default import App from './components/app' import './scss/index.scss' require('./img/icons/apple-touch-icon-57x57.png') require('./img/icons/appl...
src/Root.js
zebras-filming-videos/streamr-web
import React from 'react' import { Provider } from 'react-redux' import configureStore from './configureStore' import { ConnectedRouter } from 'react-router-redux' import { Route } from 'react-router-dom' import Application, { history } from './components/Application' const store = configureStore(history) ;(functi...
src/packages/toolbar-button/src/TeamInfoListItem.js
MikkCZ/pontoon-tools
import React from 'react'; import './TeamInfoListItem.css'; /** * React component of the team information item (activity or string). */ export class TeamInfoListItem extends React.Component { render() { const children = ( <React.Fragment> <span className="TeamInfoListItem-label-before" style={th...
addons/html-embed/index.js
vigetlabs/colonel-kurtz
/** * HTML Embed * A reuseable element for embedding HTML and associated JS. */ import React from 'react' import Field from '../common/field' import { sanitize } from './sanitize' const defaultProps = { content: { html: '', script: '' }, safe: true } export default class HtmlEmbedBlock extends React...
react-graphql-webpack/src/routes/contact/index.js
josedab/react-examples
/** * 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 Contact from './Contact'...
step7-unittest/app/js/config/routes.js
jintoppy/react-training
import React from 'react'; import Main from '../components/Main'; import Page1 from '../components/Page1'; import Home from '../components/Home'; import Contact from '../components/Contact'; import Github from '../components/Github'; import { Route, IndexRoute } from 'react-router'; export default ( <Route path="/"...
src/components/pages/MainLayout/Header/TeleFooter/index.js
humaniq/humaniq-pwa-website
import React from 'react' import * as T from 'prop-types' import './styles.scss' import { cssClassName } from 'utils' const cn = cssClassName('TeleFooter') class TeleFooter extends React.Component { constructor(props) { super(props); this.state = { isHidden: false }; } toggleTelegramBar = e =...
generators/app/templates/js/components/Repository.js
v-technologies/generator-react-boilerplate-vtech
import React from 'react'; import {repositoryPropTypes} from '../types/repository'; /** * */ export default function Repository({name, url, description}) { return ( <article className="Repository"> <header className="Repository-header"> <h2 className="Repository-name"> <a href={url} title={`${name} ...
internals/templates/homePage/homePage.js
trufa/react-chess
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
client/modules/App/__tests__/Components/Footer.spec.js
buermo/bembox
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
src/components/buttons/demos/IconDisabled.js
isogon/styled-mdl
import React from 'react' import { Button, Icon } from '../../../' export default () => ( <Button icon disabled> <Icon name="add" /> </Button> )
src/client/app.js
strekmann/samklang
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import Immutable from 'immutable'; import { createStore, applyMiddleware } from 'redux'; import createSocketIoMiddleware from 'redux-socket.io'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import { Router,...
src/images/Icons/support.js
sourabh-garg/react-starter-kit
import React from 'react'; export default function chat(props) { return ( <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enableBackground="new 0 0 64 64" xmlSpace="preserve" {...props}> <g stroke...
src/components/views/set-checkbox-group.js
HuangXingBin/goldenEast
import React from 'react'; import { Checkbox, Button, message, Row, Col } from 'antd'; const CheckboxGroup = Checkbox.Group; import { getSomeUserAuthorDetail, setSomeUserAuthorDetail } from '../../api/app-interaction-api'; import _ from 'lodash'; const setChecboxGroup = React.createClass({ getInitialState() { ...
0016-forms/app/src/index.js
davidwparker/programmingtil-react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
docs/src/app/components/pages/components/Chip/Page.js
hai-cea/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import chipReadmeText from './README'; import ChipExampleSimple from './ExampleS...
demo/03_Navigation/TestTabBar.js
Mrsunsunshine/wetland
import React, { Component } from 'react'; import { StyleSheet, } from 'react-native'; //github https://github.com/aksonov/react-native-router-flux/blob/master/docs/API_CONFIGURATION.md import { Router, Scene, Actions, Schema } from 'react-native-router-flux'; import TabBarItem from './TabBarItem'; import TabView fr...
src/components/Tally.js
jsfeb26/voting-client
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; export default React.createClass({ mixins: [PureRenderMixin], getVotes(entry) { if (this.props.tally && this.props.tally.has(entry)) { return this.props.tally.get(entry); } return 0; }, render() { re...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleIconDivider.js
koenvg/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleIconDivider = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right chevron' /> <Breadcrumb.Section link>Registration</Breadcrumb.Section> <Breadcrumb.Divi...
src/icons/FormatAlignCenterIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FormatAlignCenterIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M14 30v4h20v-4H14zM6 42h36v-4H6v4zm0-16h36v-4H6v4zm8-12v4h20v-4H14zM6 6v4h36V6H6z"/></svg>;} };
src/components/Label/Label.js
folio-org/ui-users
import React from 'react'; import PropTypes from 'prop-types'; import css from './Label.css'; const Label = props => (<div className={css.root}>{props.children}</div>); Label.propTypes = { children: PropTypes.node, }; export default Label;
__sites_/src/components/doc/cn/compress-image.js
Vanthink-UED/react-core-image-upload
import React from 'react'; import vendor from '../../../lib/vendor'; import ReactCoreImageUpload from '../../../../../src/index'; import Highlight from 'react-highlight.js'; export default class CnMultipleFile extends React.Component { constructor(props) { super(props); this.state = { src: 'http://img1...
src/browser/app/renderError.js
TheoMer/este
// @flow import App from './App'; import NotFoundPage from './NotFoundPage'; import React from 'react'; import SignInPage from '../auth/SignInPage'; type ErrorProps = { error: Object, }; const renderError = ({ error }: ErrorProps) => { switch (error.status) { case 404: return <App><NotFoundPage /></App>...
src/components/Text/index.js
bryaneaton13/flash-verses
import React, { Component } from 'react'; import { StyleSheet, Text } from 'react-native'; import COLORS from '../../colors'; class MyText extends Component { setNativeProps(nativeProps) { this._text.setNativeProps(nativeProps); } render() { const { children, style, ...rest } = this.props; return ( ...
src/index.js
unlayer/react-email-editor
import React, { Component } from 'react'; import { loadScript } from './loadScript'; import pkg from '../package.json'; let lastEditorId = 0; export default class extends Component { constructor(props) { super(props); this.editorId = props.editorId || `editor-${++lastEditorId}`; } componentDidMount() ...
actor-apps/app-web/src/app/components/Login.react.js
WangCrystal/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import Banner from 'components/common/Banner.react'; import LoginActionCreators from 'actions/LoginActionCre...
src/common/components/EditCasenoteModal.js
vgarcia692/wutmi_frontend
import React from 'react'; import { Button, Modal, Tabs, Tab, FormGroup, FormControl, ControlLabel, Checkbox, HelpBlock } from 'react-bootstrap'; import Axios from 'axios'; import qs from 'qs'; const Constants = require('../Constants.js') const Cookie = require('../Cookie.js'); export default class EditCasenoteModal ...
src/components/Rectangle.js
fullstackreact/google-maps-react
import React from 'react'; import PropTypes from 'prop-types'; import { areBoundsEqual } from '../lib/areBoundsEqual'; import { camelize } from '../lib/String'; const evtNames = ['click', 'mouseout', 'mouseover']; const wrappedPromise = function() { var wrappedPromise = {}, promise = new Promise(function ...
app/javascript/mastodon/features/ui/components/column_loading.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Column from '../../../components/column'; import ColumnHeader from '../../../components/column_header'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default ...
src/Form/RegisterOwnerForm.js
blockchain-IoT/blockchain-IoT-core
/* eslint-disable react/prop-types */ import React from 'react'; const registerOwnerForm = props => ( <div className="uk-card uk-card-default uk-card-body uk-width-1-2@m"> <h3 className="uk-card-title">Register new Owner</h3> <p>Lorem ipsum <a href="#">dolor</a> sit amet, consectetur adipiscing elit, sed do ...
src/components/MainMenu/components/Plugins.js
jaruba/PowderPlayer
import React from 'react'; import _ from 'lodash'; import plugins from '../../../utils/plugins'; import async from 'async'; import MetaInspector from 'node-metainspector'; import ls from 'local-storage'; import ModalActions from '../../Modal/actions'; var skipScroll; var titleCase = str => { var splitStr = str.toL...
front/app/js/components/controls/forms/Form.js
nudoru/React-Starter-3
import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash/debounce'; import {css} from 'emotion'; import { withStyles, createClassNameFromProps, styleComponentPropTypes } from '../common/StyleManager'; import {joinClasses, omit} from '../../../utils/componentUtils'; import {getNe...
client/src/components/pages/History/index.js
mbchoa/presence
import React, { Component } from 'react'; import Month from './Month'; import styles from './styles.css'; export default class HistoryPage extends Component { render() { return ( <div className="history-page"> <div className="history-page__month-container"> <div className="history-page_...
packages/mineral-ui-icons/src/IconPieChart.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 IconPieChart(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps...
src/settings/components/SectionPageItem.js
folio-org/ui-users
import React from 'react'; import { IfInterface, IfPermission } from '@folio/stripes/core'; import { NavListItem, } from '@folio/stripes/components'; const SectionPageItem = ({ setting, path }) => { let sectionItem = ( <NavListItem to={`${path}/${setting.route}`} data-test-sectionpageitem> {setting.label...
src/svg-icons/image/photo-camera.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 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-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24...
.storybook/SyncColorField.js
casesandberg/react-color
import React from 'react' export default class SyncColorField extends React.Component { constructor(props) { super(props) this.state = { colorField: props.component.defaultProps.color, } } render() { const handleChange = ({ hex }) => this.setState({ colorField: hex }) return React.clo...
src-ui/minimal-canvas/canvas.js
cdaniel/atlas2
/*jshint esversion: 6 */ /* globals document */ /* globals window */ import React from 'react'; import ReactDOM from 'react-dom'; var MapComponent = require('./map-component'); var ArrowEnd = require('./arrow-end'); var Comment = require('./comment'); var User = require('./user'); import {userEndpointOptions, endpoint...
smsgw/static/js/components/component.react.js
VojtechBartos/smsgw
'use strict'; import React from 'react'; import shallowEqual from 'react-pure-render/shallowEqual'; class Component extends React.Component { shouldComponentUpdate(nextProps, nextState) { // TODO: Make whole React Pure, add something like dangerouslySetLocalState. // https://github.com/gaearon/react-pure-r...
src/components/topic/StorySearchFilterMediaWarning.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { WarningNotice } from '../common/Notice'; const localMessages = { qFilterNote: { id: 'topic.influentialMedia.qFilterNote', defaultMessage: 'Please b...
src/RoyalRoad.WebUI/js/ext-react/ert.js
huytrongnguyen/royal-road
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Ext } from './core/ext'; import DialogManager from './components/dialog'; import StoreManager from './data/store-manager'; class Ert extends Ext { constructor() { super(); this.StoreManager = StoreManager; th...
stories/EditProfilePage.stories.js
nekuno/client
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links' import EditProfilePage from '../src/js/pages/OwnUser/EditProfilePage.js'; storiesOf('EditProfilePage', module) .add('with text', () => ( ...
src/interface/others/DualStatisticBox.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Statistic from 'interface/statistics/Statistic'; import STATISTIC_CATEGORY from './STATISTIC_CATEGORY'; export { default as STATISTIC_ORDER } from './STATISTIC_ORDER'; export { default as STATISTIC_CATEGORY } from './STATISTIC_CATEGORY'; /** * @...
src/components/Keyboard.js
davidkpiano/rxy
import React from 'react'; import Tone from 'tone'; const KEYS = [ 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B', ] class Key extends React.Component { constructor() { super(); this.state = { start: null, en...
tests/lib/rules/indent.js
wbyoung/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
src/containers/Asians/TabControls/ParticipantsTeamsDebaters/ExistingTable/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Instance from './Instance' export default connect(mapStateToProps)(({ teams, institutionsById }) => { teams.sort((a, b) => { if (a.institution && b.institution) { if (institutionsById[a.institution].name > institutionsById[b.instit...
src/components/DBTable/InnerTableRenderUtils.js
jiangxy/react-antd-admin
import React from 'react'; import TableUtils from './TableUtils.js'; import Logger from '../../utils/Logger'; import Utils from '../../utils'; const logger = Logger.getLogger('InnerTableRenderUtils'); // 自定义操作字段, 在dataSchema中是用一个特殊的key来标识的 const ACTION_KEY = 'singleRecordActions'; /** * 表格的render函数有个比较蛋疼的问题, 就是this...
app/containers/NotFoundPage/index.js
akash6190/apollo-starter
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
client/extensions/woocommerce/app/product-categories/create.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import { isEmpty, omit, isNumber, isNull } from 'lodash'; import page from 'page'; ...
new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/TypeFields/NumericalEntry.js
naconner/lamassu-server
import { makeStyles } from '@material-ui/core' import classnames from 'classnames' import { Field, useFormikContext } from 'formik' import * as R from 'ramda' import React from 'react' import NumberInput from 'src/components/inputs/formik/NumberInput' import RadioGroup from 'src/components/inputs/formik/RadioGroup' im...
tests/react_children/issue-4648.js
MichaelDeBoey/flow
// @flow import React from 'react'; import type {ChildrenArray, Element} from 'react'; class Child extends React.Component<{ value1: string }> {} class Parent extends React.Component<{ children: ChildrenArray<Element<typeof Child>> }> { render() { React.Children.map(this.props.children, (child) => { ...
dva/wd/src/components/Error/MissData.js
imuntil/React
import React from 'react'; import PropTypes from 'prop-types' import styles from './MissData.css'; class MissData extends React.Component { componentWillMount() { const { redirect } = this.props if (!redirect) return false setTimeout(() => { if (redirect) redirect() }, 1000) } render() { ...
resource/js/components/PageList/Page.js
kyonmm/crowi
import React from 'react'; import UserPicture from '../User/UserPicture'; import PageListMeta from './PageListMeta'; import PagePath from './PagePath'; export default class Page extends React.Component { render() { const page = this.props.page; let link = this.props.linkTo; if (link === '') { lin...
src/index.js
codemonkey-victor/snakes
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from './stores' import Scene from './containers/Scene' import GameManager from './containers/GameManager' const store = configureStore(); render( <Provider store={store}> <div> <Scene /...
src/svg-icons/hardware/laptop-mac.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopMac = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0...
src/app/views/mainLanding.js
webcoding/reactui-starter
import React from 'react'; import DocMeta from 'react-doc-meta'; import { Link } from 'react-router'; import background from 'assets/img/landing-background.jpg'; export default React.createClass( { componentDidMount() { document.title = 'Soapee'; }, render() { let style = { ...
src/index.js
josephj/react-debounce-iframe
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Iframe extends Component { static displayName = 'Iframe'; static propTypes = { src: PropTypes.string.isRequired, debounceWait: PropTypes.number, onDebounceStart: PropTypes.func, onDebounceEnd: PropTypes.func }; ...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/FormControlStatic.js
Akkuma/npm-cache-benchmark
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/Glyphicon.js
collinwu/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import styleMaps from './styleMaps'; const Glyphicon = React.createClass({ mixins: [BootstrapMixin], propTypes: { glyph: React.PropTypes.oneOf(styleMaps.GLYPHS).isRequired }, getDefaultProps() {...
internals/templates/languageProvider/languageProvider.js
trufa/react-chess
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
docs/src/app/pages/components/FormGroup/ExampleFormGroupInline.js
GetAmbassador/react-ions
import React from 'react' import FormGroup from 'react-ions/lib/components/FormGroup' import Input from 'react-ions/lib/components/Input' import Textarea from 'react-ions/lib/components/Textarea' import Checkbox from 'react-ions/lib/components/Checkbox' import RadioGroup from 'react-ions/lib/components/Radio/RadioGroup...
src/SplitButton.js
Sipree/react-bootstrap
import React from 'react'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; import omit from 'lodash-compat/object/omit'; import pick from 'lodash-compat/object/pick'; class SplitButton extends React.Component { render() { let { children, tit...
app/containers/ProcessViewPage/components/Keg/index.js
BrewPi/brewpi-ui
import React from 'react'; import styles from './styles.css'; import { Liquids } from '../Liquids'; const SvgKeg = require('./svg/keg.svg?tag=g'); const SvgSetpoint = require('./svg/setpoint.svg?tag=g'); const SvgTemp = require('./svg/temp.svg?tag=g'); // const SvgName = require('./svg/name.svg?tag=g'); const SvgLiqui...
src/components/Search.js
Mikepicker/onion-packer
import React, { Component } from 'react'; export default class Search extends Component { componentWillMount = () => { document.addEventListener('keydown', this.onKeyDown, false); } componentWillUnmount = () => { document.removeEventListener('keydown', this.onKeyDown, false); } onKeyDown = (e) => {...
src/component/landing-container/index.js
Spwahle/Narcan-Now-Frontend
import './_landing-container.scss'; import React from 'react'; import AuthForm from '../auth-form'; import {connect} from 'react-redux'; import * as utils from '../../lib/utils'; import {signupRequest, loginRequest} from '../../action/auth-actions'; class LandingContainer extends React.Component { render() { let...
stages/stage-1.2/app.js
aruberto/political-party-app
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import parties from './parties'; import VoteForParty from './components/vote-for-party'; class App extends Component { render() { return ( <div> {parties.map((party) => <VoteForParty party={party}/>)} </div> ); ...
sources/js/guidelines.js
lshap/streetlivesnyc
'use strict'; import React from 'react'; module.exports.ContentGuidelines = React.createClass({ render: function() { return ( <div> <h2 class="c4" id="h.25y61obj4qur"><span>Content Guidelines</span></h2> <h3 class="c4" id="h.u5l9qhrsnlik"><span>What they are</span></h3> <p class...
client/layout/drawer/index.js
yeoh-joer/synapse
/** * External Dependencies */ import React from 'react' import PropTypes from 'prop-types' import { Set as ImmutableSet } from 'immutable' import { MDCTemporaryDrawerFoundation } from '@material/drawer/dist/mdc.drawer' /** * Internal Dependencies */ import classNames from 'client/lib/class-names' import './style....
packages/react-error-overlay/src/components/Footer.js
IamJoseph/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. */ /* @flow */ import React from 'react'; import { darkGray } from '../styles'; const footerStyle = { fontFamily: 'sans-serif', color:...
src/components/common/svg-icons/action/assignment-turned-in.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentTurnedIn = (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-7 0c.55 0 1 ....
src/App.js
smronju/ReactMobxBasics
import React, { Component } from 'react'; import {observer} from 'mobx-react'; import TodoList from './TodoList'; import DevTools from 'mobx-react-devtools'; import { Grid, Row, Col, Clearfix, Well, Button } from 'react-bootstrap'; @observer class App extends Component { render() { const { todos, editTodo...
app/js/views/sign-up.js
mskalandunas/solstice
import React from 'react'; import ReactDOM from 'react-dom'; import { Link } from 'react-router'; // Components import MinHeaderComponent from './components/min-header-component'; const SignUp = React.createClass({ render: () => { return ( <section> <MinHeaderComponent/> <header className=...