path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/containers/LocaleToggle/index.js
shiftunion/bot-a-tron
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
src/js/main.js
SamSamskies/frontend-boilerplate-experiments
import '../styles/bootstrap.min.css'; import '../styles/styles.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; const ...
src/components/recipe/time.js
emilmannfeldt/ettkilomjol
import React, { Component } from 'react'; import TimerIcon from '@material-ui/icons/Timer'; import PropTypes from 'prop-types'; class Time extends Component { shouldComponentUpdate(nextProps, nextState) { const { time } = this.props; if (nextProps.time !== time) { return true; } return false; ...
admin/client/components/Forms/EditFormHeader.js
qwales1/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import Toolbar from '../Toolbar'; import { Button, FormIconField, FormInput, ResponsiveText } from 'elemental'; var Header = React.createClass({ displayName: 'EditFormHeader', propTypes: { data: React.PropTypes.object, list: React.PropTypes.object, t...
src/components/Wrappers/withProxy.js
folio-org/ui-users
import { differenceWith } from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; // HOC used to manage proxies and sponsors const withProxy = WrappedComponent => class WithProxyComponent extends React.Component { static manifest = Object.freeze( { ...WrappedComponent.manifest, ...
app/javascript/flavours/glitch/features/list_adder/components/account.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from...
src/containers/Root.js
mbarth/user-auth-react-redux-example
import React from 'react'; import {Provider} from 'react-redux'; import routes from '../routes'; import {ReduxRouter} from 'redux-router'; export default class Root extends React.Component { static propTypes = { store: React.PropTypes.object.isRequired }; render() { return ( <...
example/examples/DisplayLatLng.js
palexs/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView, { MAP_TYPES } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122...
client/App.js
acguanacaste/liomysSalvini
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import IntlWrapper from './modules/Intl/IntlWrapper'; // Import Routes import routes from './routes'; // Base stylesheet require('./main.css'); export default function A...
app/javascript/components/collections/landing/SearchResultsCard.js
nulib/avalon
/* * Copyright 2011-2020, The Trustees of Indiana University and Northwestern * University. 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/LICENS...
ImgRollView/utils.js
rnxteam/rnx-ui
import React from 'react'; import { View } from 'react-native'; import PropTypes from 'prop-types'; import style from './styles'; export const SelectTick = (params) => { const { selected, iconSelected, iconUnSelected, iconSelectedStyle, iconUnSelectedStyle, } = params; if (selected) { r...
src/media/js/addon/components/slugChange.js
mozilla/marketplace-content-tools
import React from 'react'; import ConfirmButton from '../../site/components/confirmButton'; /** * Controls to change an add-on slug. * * isChange denotes when the user has begun the process of changing the slug. * isProcessing denotes when the API action is underway. */ export default class SlugChange extends R...
src/components/Header/Header.js
tinkertrain/qsenseistyleguide
import React, { Component } from 'react'; import { IndexLink } from 'react-router'; import logo from '../../images/logo_white.png'; require('./Header.scss'); export class Header extends Component { render() { return ( <header className="mainHeader"> <IndexLink to="/"> <img src={logo} alt...
generators/add-module/templates/_navigator.js
hadrons/generator-react-mobx-tools
// @flow import React from 'react' import { Redirect, Route } from 'react-router-dom' import styles from '../main/styles.css' import router from './router' import { MODULE_BASE_PATH, MAIN_PATH } from './paths' export default [ { path: MODULE_BASE_PATH, exact: true, render: () => <Redirect to={MAIN_PATH}...
src/store/DevTools.js
MarvinAmador7/react-4tius-starter
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; const DevTools = createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' d...
frontend/src/Settings/Profiles/Delay/EditDelayProfileModalContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Alert from 'Components/Alert'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import Button f...
src/Parser/RestoDruid/CombatLogParser.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Icon from 'common/Icon'; import ITEMS from 'common/ITEMS'; import StatisticBox from 'Main/StatisticBox'; import SuggestionsTab from 'Main/SuggestionsTab'; import Ta...
src/svg-icons/editor/format-list-bulleted.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListBulleted = (props) => ( <SvgIcon {...props}> <path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 ...
src/view/app.js
fishmankkk/mircowater2.0
/* global window */ import React from 'react' import NProgress from 'nprogress' import PropTypes from 'prop-types' import pathToRegexp from 'path-to-regexp' import { connect } from 'dva' import { Layout, Loader } from 'components' import { classnames, config } from 'utils' import { Helmet } from 'react-helmet' import '...
src/svg-icons/image/gradient.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGradient = (props) => ( <SvgIcon {...props}> <path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2z...
app/app/h5/src/app.js
mingkang1993/blogs
import React from 'react'; import httpResources from './run/httpResources'; import * as run from './run/run';
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
reedsa/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, { Component } from 'react'; import PropTypes from 'prop-types'; const styled = ([style]) => style .trim() .spli...
doc/src/pages/examples/extend-procedural-data-provider.js
mapillary/mapillary-js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import React from 'react'; import Layout from '@theme/Layout'; import {Code} from '../../js/components/Code'; import...
app/javascript/mastodon/components/display_name.js
pointlessone/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, others: ImmutablePropTypes.list, }; render () { const { account, others } = this.pro...
tests/lib/rules/vars-on-top.js
SimenB/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require(".....
src/index.js
yongjun21/hdb-resale
import React from 'react' import ReactDOM from 'react-dom' import {AppContainer} from 'react-hot-loader' import {BrowserRouter as Router} from 'react-router-dom' import App from './components/App' import './css/style.css' window.PouchDB = require('pouchdb').default ReactDOM.render(( <AppContainer> <Router> ...
pootle/static/js/admin/components/Project/ProjectForm.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'; import FormElement from 'compo...
legacy/ObjectControls/controls/opacity.js
afoninsky/cerebral-bolierplate
import React from 'react' import { Decorator as cerebral } from 'cerebral-react' import Slider from 'material-ui/lib/slider' @cerebral({ selectedResource: ['selectedResource'] }) class ObjectMenu extends React.Component { render() { return ( <span> <Slider name="opacity" defaultValue={5} step={0.1} min...
packages/material-ui-icons/src/Description.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" /></g> , 'Description');
src/interface/common/Toggleable.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class Toggleable extends React.PureComponent { static propTypes = { toggledvalue: PropTypes.node.isRequired, value: PropTypes.node.isRequired, style: PropTypes.object, }; constructor() { super(); this.state = { toggled: fal...
node_modules/react-bootstrap/es/ButtonToolbar.js
skinsshark/skinsshark.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 ...
src/card/index.js
twilson63/t63
import React from 'react' import MdKbArrowDown from 'react-icons/lib/md/keyboard-arrow-down' import MdKbArrowUp from 'react-icons/lib/md/keyboard-arrow-up' import R from 'ramda' const { map, prop, or, multiply } = R const thirtyPercent = multiply(0.3) const Card = props => { return ( <div className="pv3 br1 s...
docs/src/app/components/pages/get-started/Examples.js
rscnt/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import examplesText from './examples.md'; const Examples = () => ( <div> <Title render={(previousTitle) => `Examples - ${previousTitle}`} /> <MarkdownElement text={examplesText} /> </...
examples/flux-utils-todomvc/js/app.js
venkateshdaram434/flux
/** * Copyright (c) 2014, 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. * * @flow */ 'use s...
packages/material-ui-icons/src/History.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let History = props => <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4...
app/home/requirements/requirements.component.js
TPW-team/tpw_ui
import React from 'react'; import { connect } from 'react-redux'; import { fetchRequirements } from 'reducers/actions'; import { showPopupAction } from 'reducers/actions-x'; import { groupByIdSelector, requirementsListSelector } from 'reducers/selectors'; import './requirements.component.scss'; class Requirements ex...
src/svg-icons/av/skip-next.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipNext = (props) => ( <SvgIcon {...props}> <path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/> </SvgIcon> ); AvSkipNext = pure(AvSkipNext); AvSkipNext.displayName = 'AvSkipNext'; AvSkipNext.muiName = 'SvgIcon...
packages/bonde-styleguide/src/content/IconColorful/svg/Community.js
ourcities/rebu-client
import React from 'react' const Icon = ({ size }) => ( <svg xmlns='http://www.w3.org/2000/svg' width={size || '44'} height={size || '30'} viewBox='0 0 44 30' > <g fill='none' fillRule='evenodd'> <g fill='#50E3C2'> <path d='M23.335 2.136c.287-1.628-.287-1.883-1.29-.56L13.92 12.301c...
src/client/assets/javascripts/features/mapper/components/Properties/Properties.js
tlodge/uibuilder
import React, { Component } from 'react'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Flex, Box } from 'reflexbox'; import '../../../../../styles/index.scss'; import Tabs from 'react-md/lib/Tabs/Tabs'; ...
frontend/src/Settings/MediaManagement/Naming/NamingConnector.js
Radarr/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { clearPendingChanges } from 'Store/Actions/baseActions'; import { fetchNamingExamples, fetchNamingSettings, setNamingSettingsVal...
es/components/footerbar/footerbar.js
dearkaran/react-planner
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(ta...
src/paginations/Pagination.js
itsolutions-dev/react-tablify
// @flow import React from 'react'; export default class Pagination extends React.Component { getIndicator = (Component: Function, index: number, key: any) => ( <Component key={key !== undefined ? key : index} pageIndex={index} pageNumber={index + 1} disabled={ index === this.pro...
app/javascript/mastodon/features/compose/components/upload_button.js
3846masa/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'; const messages = defineMessages({ upload: { id: 'upload_button.label', defaultMessage: 'Add media' }...
ui/src/frontend/component/AddPackageFile.js
Virtustream-OSS/packrat
import React from 'react'; import { Input, Button, BrowseButton, Chip, Avatar, Dropdown } from 'react-toolbox'; class AddPackageFile extends React.Component { state = { package_file: '', justification: '', provenance: '', distro_version: '', distro_version_list: [], upload_handle:...
src/components/Table.js
aryalprakash/backlect-design
import React, { Component } from 'react'; import Header from './Header' import FormBuilder from './FormBuilder' import Dialog from 'rc-dialog'; export default class Table extends Component { constructor(){ super() this.state = { visible: false, width: 1200, dest...
blueocean-material-icons/src/js/components/svg-icons/alert/error.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AlertError = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/> </SvgIcon> ); AlertError.displayName = 'AlertError'; AlertError.muiName = 'SvgIcon'; ...
src/components/practice/PracticePage.js
kunwardeep/react-redux-store
import React from 'react'; import * as courseActions from '../../actions/courseActions'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; class PracticePage extends React.Component{ constructor(props,context){ super(props,context); this.state = {numbers:{firstNum:0, secondNum:0}...
src/containers/NotFound/NotFound.js
rongkaixia/order-server
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
basic/content/src/scripts/index.js
phsultan/react-chrome-redux-examples
import React from 'react'; import {render} from 'react-dom'; import App from './components/app/App'; const anchor = document.createElement('div'); anchor.id = 'rcr-anchor'; document.body.insertBefore(anchor, document.body.childNodes[0]); render(<App/>, document.getElementById('rcr-anchor'));
src/app/app.js
sgim/react_gol
import React from 'react'; import {render} from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Main from './Main'; // Our custom react component // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); // Render the main app react component into th...
src/components/ToolbarInput.js
dominic-blain/viper-visualizer
import React from 'react'; import ToolbarInputRange from './ToolbarInputRange'; import ToolbarInputFont from './ToolbarInputFont'; import ToolbarInputDropdown from './ToolbarInputDropdown'; import ToolbarInputLine from './ToolbarInputLine'; import ToolbarInputTextarea from './ToolbarInputTextarea'; import ToolbarInputI...
src/Parser/RestoDruid/Modules/Features/Cultivation.js
mwwscott0/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Module from 'Parser/Core/Module'; import Combata...
theme/src/components/comments/disqus.js
cezerin/cezerin
import React from 'react'; const DISQUS_CONFIG = [ 'shortname', 'identifier', 'title', 'url', 'category_id', 'onNewComment' ]; let __disqusAdded = false; function copyProps(context, props, prefix = '') { Object.keys(props).forEach(prop => { context[prefix + prop] = props[prop]; }); if (typeof props.onNewC...
docs/src/components/ComponentDoc/ComponentProp/ComponentPropEnum.js
Semantic-Org/Semantic-UI-React
import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import ComponentPropExtra from './ComponentPropExtra' import ComponentPropToggle from './ComponentPropEnumToggle' import ComponentPropValue from './ComponentPropEnumValue' const ComponentPropEnum = ({ limit, showAll, toggle, type, val...
src/renderer/ast_renderers/javascript/reserved-keywords.js
mizki9577/ast-editor
// @flow import React from 'react' const ReservedKeywordRenderer = ({ keyword }: { keyword: string }) => ( <span className="keyword ms-fontColor-themePrimary"> { keyword } </span> ) export const Await = () => <ReservedKeywordRenderer keyword="await" /> export const Break = () => <ReservedKeywordRenderer keywo...
src/svg-icons/action/help-outline.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelpOutline = (props) => ( <SvgIcon {...props}> <path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c...
client/src/components/PasswordChange/index.js
stanographer/aloft
import React, { Component } from 'react'; import { withFirebase } from '../Firebase'; const INITIAL_STATE = { passwordOne: '', passwordTwo: '', error: null }; class PasswordChangeForm extends Component { constructor(props) { super(props); this.state = { ...INITIAL_STATE }; } onSubmit = event =>...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js
svrcekmichal/react-scripts
import React from 'react' import tiniestCat from './assets/tiniest-cat.jpg' export default () => ( <img id="feature-image-inclusion" src={tiniestCat} alt="tiniest cat" /> )
assets/search-view/MessageViewComponent/MessageComponent.js
janta-devs/nyumbani
import React, { Component } from 'react'; import EmailComponent from './EmailComponent'; class MessageComponent extends Component{ constructor(context, props){ super(context, props); var message_db_id = this.props.message.id; var message_id = this.props.state.params.id; this.props.state.Actions.Mar...
app/components/ProfileDataKeyList.js
react-rpm/react-rpm
import React from 'react'; import PropTypes from 'prop-types'; import ProfileDataKey from './ProfileDataKey'; const propTypes = { dataKeys: PropTypes.arrayOf( PropTypes.shape({ id: PropTypes.number.isRequired, selected: PropTypes.bool.isRequired, label: PropTypes.string.isRequired, }).isReq...
CompositeUi/src/views/component/ShortcutHelp.js
kreta/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import './../../scss/components/_shortcut...
src/views/Product.js
astrauka/expensable-r3
import React from 'react'; import {load} from '../actions/productActions'; import ProductInfo from '../components/ProductInfo'; import OptionSelect from '../components/option-select'; export default class Product { render() { return ( <div> <ProductInfo /> </div> ); } static fetchDat...
src/components/PetitionImage/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './petition-image.scss'; import ImageContainer from 'components/ImageContainer'; import mapImageSizeToNewAttrs from 'helpers/mapImageSizeToNewAttrs'; const PetitionImage = ({ src, alt, attrs, ratio }) => ( src ? <div className={styles.root}> <ImageContainer s...
examples/custom-server-hapi/pages/index.js
arunoda/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
my-app/src/components/scaffold/NotFound.js
sThig/jabbascrypt
import React from 'react'; class NotFound extends React.Component { render() { return ( <div> <h1>404</h1> <h2>Not Found!</h2> </div> ); } } export default NotFound;
src/components/video_detail.js
Shohin93/ReactRedux
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className='video-detail col-md-8'> <div className='embed-resp...
src/svg-icons/communication/speaker-phone.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationSpeakerPhone = (props) => ( <SvgIcon {...props}> <path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ...
src/core/App.js
kanitsharma/general-js
import React from 'react' import { hashHistory, 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, } shouldComponentUpdate...
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
w01fgang/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuOpenImmediateExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value)...
snorky/demos/snorky_todo_react/frontend/src/js/components/TodoFooter.js
ntrrgc/snorky
'use strict'; import React from 'react'; import Utils from '../utils/Utils'; import TodoApp from './TodoApp'; import classNames from 'classnames'; export default class TodoFooter extends React.Component { constructor(props){ super(); this.props = props; } render () { var activeTodoWord = Utils.plu...
packages/television/src/components/Menu.js
accosine/poltergeist
import React from 'react'; import PropTypes from 'prop-types'; import { styled } from 'styletron-react'; import { withTheme } from '../util/ThemeContext'; import AmpComponent from './AmpComponent'; import Link from './Link'; const Sidebar = withTheme( styled(AmpComponent('amp-sidebar'), ({ $theme }) => ({ width...
src/svg-icons/notification/no-encryption.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNoEncryption = (props) => ( <SvgIcon {...props}> <path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1...
src/components/Header.js
MicahMonfrini/portfolio-site
import React from 'react'; import ActiveLink from './ActiveLink.js'; import Head from 'next/head'; function Header() { return ( <div> <Head> <meta charSet="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta httpEquiv="X-UA-Compatible" content="ie=...
client/src/components/IconText/index.js
dotkom/super-duper-fiesta
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import css from './IconText.css'; const IconText = ({ text, iconClass, hovering }) => { const iconTextClass = classNames(css.iconText, iconClass, { [css.hovering]: hovering, }); return ( <div className={i...
node_modules/react-icons/md/low-priority.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdLowPriority = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m3.4 19.1c0-5.9 4.8-10.7 10.7-10.7h5.9v3.2h-5.9c-4.1 0-7.5 3.4-7.5 7.5s3.4 7.5 7.5 7.5h0.9v-3.2l5 5-5 5v-3.4h-0.9c-5.9 0-10.7-4.9-10.7-10.9z m20 7.5h13.2v3.4h-13....
app/views/AppView/index.js
omeryagmurlu/algoriv
import React from 'react'; import PropTypes from 'prop-types'; import Snackbar from 'material-ui/Snackbar'; import FlatButton from 'material-ui/FlatButton'; import Header from 'app/components/Header'; import Prompt from 'app/components/Prompt'; import Dialog from 'app/components/Dialog'; import { themedStyle, themeVars...
src/components/Search/index.js
romarioraffington/react-mybooks
// External Dependencies import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; // Our Dependencies import { track } from '../../util/analytics'; import * as BooksAPI from '../../BooksAPI'; import { getSuggetions } from '../../util/search'; // Our Components import BookL...
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/contractorstatus.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' const ContractorStatus = ({settingAllowance, contractCount}) => ( <div className="contractor-status"> { settingAllowance ? ( <div> <i className="fa fa-circle-o-notch fa-spin fa-2x fa-fw" /> <span>Forming Contracts...</span> </div> ) : ( <...
ressources/components/svg-icons/PageIcon.js
mscodemonkey/Sketch-Find-And-Replace
import React from 'react' const PageIcon = (props) => { const { theme, isActive } = props return ( <svg width='38px' height='32px' viewBox='0 0 38 32'> <g stroke='none' fill={ isActive ? theme.activeIconColor : theme.inactiveIconColor } f...
app/scripts/components/Page/Page.js
toddhb/Time_Card_Viewer
/* * TimeCard View * Copyright ©2015 Thomas Nelson, Jacob Nichols, David Opp, Todd Brochu, Andrew McGown, Sasha Fahrenkopf, Cameron B. White. * * This source code is licensed under the MIT license found in the * LICENSE text file in the root directory of this source tree. */ import React from 'react' import _ fro...
actor-apps/app-web/src/app/components/common/Banner.react.js
winiceo/actor-platform
import React from 'react'; import BannerActionCreators from 'actions/BannerActionCreators'; class Banner extends React.Component { constructor(props) { super(props); if (window.localStorage.getItem('banner_jump') === null) { BannerActionCreators.show(); } } onClose = () => { BannerActionC...
src/components/Feedback/Feedback.js
hnikupet/dddhackaton
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
app/shared/components/Header/index.js
phosphene/react-fullstack-d3-demo
import React, { Component } from 'react'; import { Link, IndexLink } from 'react-router'; //import { Button } from 'react-bootstrap'; import { Nav, Navbar, NavItem } from 'react-bootstrap'; import { ThemeChooser } from 'react-bootstrap-theme-switcher'; export default function Header() { return ( <div> <Nav...
src/Parser/Rogue/Subtlety/Modules/Legendaries/DenialOfHalfGiants.js
enragednuke/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import RESOURCE_TYPES from 'common/RESOURCE_TYPES'; import SpellLink from 'common/SpellLink'; import Wrapper from 'comm...
test/test_helper.js
ryanml/RegexHub
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
frontend/autocomplete/Input.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import {FormControl} from 'react-bootstrap'; import {SearchForm, SimpleFormLayout} from '../components'; const Input = ({ref, onSearch, msgSearch, ...props}) => ( <SearchForm onSubmit={onSearch}> <SimpleFormLayout submit={msgSearch} bsStyle="pr...
app/javascript/flavours/glitch/features/pinned_accounts_editor/index.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl, FormattedMessage } from 'react-intl'; import { fetchPinnedAccounts, ...
src/components/settlement/receipt/SettlementReceiptLayer.js
HuZai/react_settlement
/** * 纳税人识别号说明 */ import React from 'react'; class SettlementReceiptLayer extends React.Component { closeClick(){ document.getElementById("receipt-layer").innerHTML = ""; } render(){ let dataState = this.props.data, invoiceParam = dataState.invoiceParam, invoiceNorCodeIns = invoiceParam....
hashstore/bakery/js/src/components/AliasSettings.js
walnutgeek/hashstore
import React from 'react'; const AliasSettings = () => { return (<h1>AliasSettings</h1>); }; export default AliasSettings;
src/main/app/scripts/containers/calendar/AddEvent.js
ondrejhudek/hudy-app
import React from 'react' import injectTapEventPlugin from 'react-tap-event-plugin' import { FloatingActionButton } from 'material-ui' import AddIcon from 'material-ui/lib/svg-icons/content/add' import EventDialog from '../../components/calendar/EventDialog' injectTapEventPlugin() class AddEvent extends React.Compon...
react/PartnerSites/PartnerSites.sketch.js
seek-oss/seek-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import PartnerSites from './PartnerSites'; const DummyLinkRenderer = ({ href, ...props }) => <a {...props} />; DummyLinkRenderer.propTypes = { href: PropTypes.string }; export const blockSymbols = { 'PartnerSites/Australia/No Active Product': ( <...
react/pages/Exercises/Exercise1.js
GeorgeGkas/web-class.gr
import React from 'react'; import LessonStore from '../../LessonStore'; export default class Exercise1 extends React.Component { componentWillMount() { LessonStore.setLesson("exercise-1"); } render() { return ( <section id="exercise-description"> <div id="introduction"> <p>...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
crod93/googlePlacesEx-react-native
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/CarouselItem.js
Cellule/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
examples/index.ios.js
Recr0ns/react-native-material-switch
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Switch from 'react-native-material-switch'; export default class examples extends Component { render() { return ( <View style={styles.container}> <Text style={styles.title}>{...
src/App/Components/MenuItem.js
ccubed/Vertinext
import React from 'react'; import {Link} from 'react-router'; class MenuItem extends React.Component { render() { return ( <li> <Link to={this.props.route}> {this.props.text} </Link> </li> ); } } module.exports = MenuItem;
src/App.js
NeversSync/gongfutea-v2
import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom'; import Main from './components/Landing/Landing'; import Nav from './components/Nav/Nav'; import About from './components/About'; import Login from './components/Login'; import Vendors f...
js/App/Components/Sensor/AddSensor/SelectSensorType.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
lib/ui/src/modules/ui/components/layout/index.js
jribeiro/storybook
import { document, localStorage, window } from 'global'; import PropTypes from 'prop-types'; import React from 'react'; import SplitPane from 'react-split-pane'; import USplit from './usplit'; import Dimensions from './dimensions'; const rootStyle = { height: '100vh', backgroundColor: '#F7F7F7', }; const leftPan...
spec/components/switch.js
rubenmoya/react-toolbox
import React from 'react'; import Switch from '../../components/switch'; class SwitchTest extends React.Component { state = { switch_1: true, switch_2: false, switch_3: true, }; handleChange = (field, value) => { this.setState({ ...this.state, [field]: value }); }; render() { return ( ...