path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/bonde-styleguide/src/list/FeedItem/FeedItem.js
ourcities/rebu-client
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' const Time = styled.div` display: table-cell; padding: 23px 0 23px 20px; border-bottom: 1px solid #eeeeee; font-family: Nunito Sans; font-size: 13px; font-weight: 800; line-height: 1.6; color: #9b9b9b; ...
src/components/statusHeader.js
josoroma/status
import React from 'react'; import {observer} from 'mobx-react'; import {pluralize} from '../vendor/js/utils'; import { ALL_STATUSES, PUBLIC_STATUSES, FRIEND_STATUSES } from '../constants'; import Paper from 'material-ui/Paper'; import FontIcon from 'material-ui/FontIcon'; import IconButton from 'material-ui/IconButt...
pages/components/select_folder.js
GallenHu/Hinote
import React from 'react'; import PropTypes from 'prop-types'; const Sel = props => ( <span> { props.folders.length ? ( <select className="folder-sel"> { props.folders.map(folder => ( <option key={folder.id} val...
features/base/media/components/native/Video.js
jitsi/jitsi-meet-react
import React, { Component } from 'react'; import { Platform, View } from 'react-native'; import { RTCView } from 'react-native-webrtc'; import { styles } from './styles'; /** * Indicates whether RTCView (is to be considered that it) natively supports * i.e. implements mirroring the video it renders. If false, a wor...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxtreemap.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxTreeMap = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes(); ...
src/Assignments/AddAssignment/Modal.js
esharp054/SwimmingFishWeb
import React from 'react'; import Modal from 'react-modal'; import AssignmentForm from './AssignmentForm'; import FlatButton from 'material-ui/FlatButton'; const styles = { content: { top: '50%', left: '50%', right: 'auto', bottom: '-5%', marginRight: '-50%', transfo...
client/src/components/Header.js
rapid7/acs
import React from 'react'; import './Header.css'; const Header = ({title, version}) => ( <div id="header" className="u-full-width"> <h1 id="title" className="u-pull-left">{title}</h1> <ul className="u-pull-right"> <li><a href="/" className="selected">Encryption - {version}</a></li> <li/> </ul...
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Base/Errors/PageNotfound.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
Demo/index.android.js
githubdelegate/RNDemo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Demo extends Component { render() { return ( <View style={styles.container}> ...
src/pages/css-grid/03-firefox-devtools.js
MozillaDevelopers/playground
import React from 'react'; import Main from './components/_Main'; import VideoPlayer from '../../components/VideoPlayer'; // images import gif1 from '../../components/img/dtgif/gif1.gif'; import gif2 from '../../components/img/dtgif/gif2.gif'; import gif3 from '../../components/img/dtgif/gif3.gif'; import gif4 from '....
src/routes/error/index.js
kuao775/mandragora
/** * 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 ErrorPage from './Err...
node_modules/react-router/es/Redirect.js
Sweetgrassbuffalo/ReactionSweeGrass-v2
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/client/app/component/AppliedJobs/AppliedJobs.js
luckyrose89/Jobbatical-clone
import React from 'react'; import { connect } from 'react-redux'; import { Redirect, Link } from 'react-router-dom'; import { fetchUserStart, fetchUserRequest, fetchJobsIfNeeded, } from '../../action'; import Header from '../header'; import Footer from '../footer'; import JobLister from '../JobsMain/JobLister'; ...
app/javascript/mastodon/components/load_more.js
imomix/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, } render() { return ( <button className='load-more' onClick={this.props.onClick}> <Forma...
js/js/test.js
duivvv/snippets
'use strict'; import React from 'react'; const ComponentName = (props) => { return <div>Hello World</div>; }; export default ComponentName;
site/components/SideBar.js
pairyo/react-dnd
import React from 'react'; import './SideBar.less'; export default class SideBar { render() { return ( <div className="SideBar"> <div className="SideBar-content"> {this.props.groups.map(this.renderGroup, this)} </div> </div> ); } renderGroup({ title, pages}, index) ...
modules/pages/client/components/RulesText.component.js
Trustroots/trustroots
import React from 'react'; import { useTranslation } from 'react-i18next'; /** * Rules text component that adds our rules as paragraphs. * Usage: `<RulesText />` */ export default function RulesText() { const { t } = useTranslation('pages'); return ( <> {/* * Don't add links to this text. ...
client/routes.js
Blaumeiser/dronegames
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules/App/App'; // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps, callback) { callback(require); }; }...
app/scripts/components/presentational/Link.js
Pygocentrus/react-redux-es6-browserify
// NPM import React from 'react'; // Filter presentational component const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span>; } return ( <a href="#" onClick={e => { e.preventDefault(); onClick(); } }> { children } </a> );...
app/javascript/mastodon/features/ui/components/column_loading.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Column from '../../../components/column'; import ColumnHeader from '../../../components/column_header'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class ColumnLoading extends ImmutablePureComponent { stat...
node_modules/semantic-ui-react/dist/es/collections/Menu/MenuMenu.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; /** * A menu can contain a sub menu. */ function MenuMenu(props) { var children = ...
client/modules/core/components/menu.js
gotrecillo/daw-euskalvideo
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton/IconButton'; import { loggedItems } from '../configs/menu_items'; export default class Menu extends React.Component { render() { const {userId, logo...
packages/mineral-ui-icons/src/IconApps.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 IconApps(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
src/component/TraderScreen.js
BristolPound/cyclos-mobile-3-TownPound
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { View, Dimensions, ScrollView } from 'react-native' import TransactionList from './profileScreen/TransactionList' import ProfileHeader from './profileScreen/ProfileHeader' import BusinessDetails from './bu...
src/components/Cell/Cell.js
DmitryRomaniuk/react-xo
import React, { Component } from 'react'; import './Cell.css'; class Cell extends Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(){ this.props.isToggleOn(this.props.cell); // this.setState(prevState => ({ ...
src/PageItem.js
xuorig/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; const PageItem = React.createClass({ propTypes: { href: React.PropTypes.string, target: React.PropTypes.string, title: React.PropTypes.string, disabled: React.PropTypes.bool, previous: React.Pr...
packages/idyll-cli/test/custom-ast/src/components/functional-default-component.js
idyll-lang/idyll
import React from 'react'; export default () => ( <div> This is some text <button>And a button</button> Then some more text </div> );
src/components/fieldset.js
TouchBistro/frig
import RealFieldsetNestedForm from './fieldset_nested_form.js' import React from 'react' export default class Fieldset extends React.Component { static contextTypes = { frigForm: React.PropTypes.shape({ data: React.PropTypes.object.isRequired, theme: React.PropTypes.object.isRequired, errors: R...
frontend/src/components/common/logout.js
miurahr/seahub
import React from 'react'; import { siteRoot, gettext } from '../../utils/constants'; export default function Logout() { return ( <a className="logout-icon" href={`${siteRoot}accounts/logout/`} title={gettext('Log out')}> <i className="sf3-font sf3-font-logout" style={{fontSize: '24px'}}></i> </a> );...
react/features/participants-pane/components/web/MeetingParticipantContextMenu.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../../base/i18n'; import { getLocalParticipant, getParticipantByIdOrUndefined } from '../../../base/participants'; import { connect } from '../../../base/redux'; import ParticipantContextMenu from '../../../video-menu/components/w...
packages/material-ui-icons/src/Send.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Send = props => <SvgIcon {...props}> <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" /> </SvgIcon>; Send = pure(Send); Send.muiName = 'SvgIcon'; export default Send;
plot/src/routes.js
tangr1/spark-log-analyzer
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/HomePage'; import AboutPage from './components/AboutPage'; import NotFoundPage from './components/NotFoundPage'; import ChartPage from './containers/ChartPage'; import Tab...
tests/RowTest.js
ajferrario/native-structure
import React from 'react'; import { View, Text, } from 'react-native' import { Row, } from '../index'; const RowTest = { children: { empty: [], oneChild: [ <View key=1 style={flex: 1}><Text>Child 1</Text></View>, ], multipleChildren: [ <View key=1 style={flex: 1}><Text>Child 1</Text></View>, ...
webpack/containers/Application/index.js
tstrachota/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { orgId } from '../../services/api'; import * as actions from '../../scenes/Organizations/Or...
client/scripts/components/config/panel-with-buttons/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/server.js
simonghales/mapping
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/svg-icons/action/alarm-off.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
docs/src/pages/components/tabs/TabsWrappedLabel.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; import Box from ...
app/js/visibility/OwnerOrModeratorVisible.js
niksoc/srmconnect
import React from 'react'; const OwnerOrModeratorVisible = (props, context) =>{ if(context.isLoggedIn && (props.owner===context.user.user || context.isModerator)) return (<span>{props.element}</span>); else return null; }; OwnerOrModeratorVisible.contextTypes = { isLoggedIn: React.PropTypes.bool, is...
app/components/DiceRollerAppToolbar.js
jcasner/EarthDawnDiceRoller
import React, { Component } from 'react'; import { Image, Text, TouchableHighlight, View } from 'react-native'; import { toolbarStyles } from './styles'; export default class DiceRollerAppToolbar extends Component { render() { const { handlePress, title } = this.props; return ( <View style={to...
app/components/timer.js
joeyschroeder/speedometer-app
import React, { Component } from 'react'; import { StyleSheet, Text, TouchableWithoutFeedback, View } from 'react-native'; import PropTypes from 'prop-types'; import { Variables } from '../assets/styles/variables'; import { connect } from 'react-redux'; import { formatSecondsToTime } from '../util/format-seconds-to-ti...
src/settings/SettingsMobile.js
nuruddeensalihu/binary-next-gen
import React from 'react'; import MobilePage from '../containers/MobilePage'; import SettingsContainer from './SettingsContainer'; export default (props) => ( <MobilePage> <SettingsContainer {...props} /> </MobilePage> );
frontend/src/components/customStepper/Step.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from 'material-ui/styles'; export const styleSheet = () => ({ root: { flex: '0 0 auto', }, horizontal: { marginLeft: -6, }, vertical: { marginLeft: -14, }, }); function S...
app/components/payment/addcard.js
imankit/dashboard-ui
import React from 'react'; import planList from './plans'; class Element extends React.Component { constructor(props) { super(props); this.state = { cardImage: '' } } cardDetailChangeHandlerr(which, e) { this.props.cardDetailChangeHandler(which, e); } ad...
site/src/components/HeaderLogoImage.js
emotion-js/emotion
/** @jsx React.createElement **/ import React from 'react' import Image from 'gatsby-image' import { graphql, StaticQuery } from 'gatsby' /** * Gatsby StaticQuery has some strange behavior around what kind of components * are allowed to be used. This is separated to avoid css prop triggering * jsx pragma change */...
js/components/sectionView.react.js
terry3/front_end_quiz
import React from 'react'; import { FeqActions } from '../actions/FeqActions'; import { FeqStore } from '../stores/FeqStore'; export default class SectionView extends React.Component { constructor(props) { super(props); this.state = this.getFeqSectionState(); } getFeqSectionState() { return { ...
test/test_helper.js
Franpastoragusti/ReactBlog
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...
app/components/LoadingButton.js
DeekshithShetty/hydra
import React from 'react' import LoadingIndicator from './LoadingIndicator' function LoadingButton (props) { return ( <a href='#' className={props.className + ' btn btn--loading'} disabled='true'> <LoadingIndicator /> </a> ) } LoadingButton.propTypes = { className: React.PropTypes.string } export...
docs/src/Root.js
aparticka/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
src/components/Overlay.js
easymac/alttp-map-tracker
/* eslint-disable no-undef */ import React from 'react'; import ReactDOM from 'react-dom'; class Overlay extends React.Component { constructor(props, context) { super(props, context); this.overlay = null; this.div = null; this.renderChildren = this.renderChildren.bind(this); this.re...
src/svg-icons/device/signal-wifi-3-bar-lock.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3BarLock = (props) => ( <SvgIcon {...props}> <path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-...
hello world/1.2 - component/src/js/index.js
wumouren/react-demo
import React from 'react'; import ReactDom from 'react-dom'; import Header from '../components/header'; import Main from '../components/main'; import Footer from '../components/footer'; class Index extends React.Component { render() { return ( <div> <Header></Header> ...
packages/react/src/components/atoms/buttons/GoogleTranslateElement/index.js
massgov/mayflower
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; // eslint-disable-next-line import/no-unresolved import IconLatlonglobe from 'MayflowerReactBase/Icon/IconLatlonglobe'; import useScript from 'MayflowerReactComponents/hooks/use-script'; const GoogleTranslateElement = (...
app/src/common/TabBarIcon.js
skunkmb/Ablo
import React, { Component } from 'react'; import { Image, ViewPropTypes, } from 'react-native'; import PropTypes from 'prop-types'; import { darkTheme } from '../themes.js'; let styles = darkTheme.styleSheet; export default class TabBarIcon extends Component { render() { let tintStyle = { tintColo...
src/ui/Field.js
RoyalIcing/gateau
import React from 'react' import { findDOMNode } from 'react-dom' import { Seed } from 'react-seeds' function sizeTextAreaToFit(el) { const { style } = el style.height = '1px' const measuredHeight = `${ el.scrollHeight + el.offsetHeight - el.clientHeight }px` style.height = measuredHeight style.resize = 'none' ...
imports/ui/components/Orders/ShowBasketsToSelect/ShowBasketsToSelect.js
haraneesh/mydev
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Button } from 'react-bootstrap'; const ShowBasketsToSelect = ({ history, basketLists, onBasketSelect, onEmptyCartSelect, }) => { const handleSelectPrefillBasket = (basketId) => { history.push(`/neworder/${basketId}`); }; con...
src/svg-icons/editor/highlight.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorHighlight = (props) => ( <SvgIcon {...props}> <path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/> </SvgIcon> ); Edito...
src/svg-icons/device/access-time.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessTime = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1...
web/src/components/Report.js
Ding-Jun/Analysis
import React from 'react' //import { findDOMNode } from 'react-dom' import _ from 'lodash' import $ from 'jquery' import {Button, Card, Row, Col,Table,Spin,Affix } from 'antd' import Chart from './Chart' class Report extends React.Component{ constructor(props){ super(props); this.state={ loading:true, ...
app/components/TotalGasBeingSentAlert/index.js
CityOfZion/neon-wallet
// @flow import React from 'react' import classNames from 'classnames' import styles from './TotalGasBeingSentAlert.scss' import WarningIcon from '../../assets/icons/warning.svg' const electron = require('electron').remote const TotalGasBeingSentAlert = () => ( <section className={classNames(styles.alertBox, 'ale...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
matart15/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'; import './assets/style.css'; export default () => <p id="feature-css-inclusion">We love useless text.</p>;
node_modules/react-router/es/IndexLink.js
NickingMeSpace/questionnaire
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; }; import React from 'react'; import createReactClass from 'crea...
index.android.js
carney520/30-days-of-react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Demo extends Component { render() { return ( <View style={styles.container}> ...
src/pages/Home.js
davidcostadev/react-todo
import React from 'react' import { connect } from 'react-redux' // import TodoList from '~components/Todo' import Errors from '~components/Errors' import { addTodo } from '../store/actions' import TodoListNew from '~components/TodoList' import TodoForm from '~components/TodoForm' import ToolBar from '~layout/Too...
docs/app/Examples/modules/Popup/index.js
ben174/Semantic-UI-React
import React from 'react' import Types from './Types' import Usage from './Usage' import Variations from './Variations' const PopupExamples = () => ( <div> <Types /> <Variations /> <Usage /> </div> ) export default PopupExamples
src/parser/shaman/shared/spells/AstralShift.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatThousands, formatNumber } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; const ASTRAL_SHIFT_DR = ...
ui/src/pages/group-roles.js
yahoo/athenz
// getDomainRoleMember /* * Copyright 2020 Verizon Media * * 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 app...
docs/src/app/components/pages/components/Slider/Page.js
kasra-co/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 sliderReadmeText from './README'; import SliderExampleSimple from './Exam...
src/main.js
rekyyang/ArtificalLiverCloud
import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import makeRoutes from './routes'; import Root from './containers/Root'; import co...
src/RootContainer.js
ortonomy/flingapp-frontend
// basic react import React from 'react'; // state management utilities import { Provider } from 'react-redux'; // library dependencies import { CookiesProvider } from 'react-cookie'; // components import { App } from './containers/App'; //debug import Debug from './utils/Debug'; const RootContainer = (props) => {...
docs/app/Examples/collections/Table/Variations/TableExampleFullWidth.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button, Checkbox, Icon, Table } from 'semantic-ui-react' const TableExampleFullWidth = () => { return ( <Table celled compact definition> <Table.Header fullWidth> <Table.Row> <Table.HeaderCell /> <Table.HeaderCell>Name</Table.HeaderCell> <Tab...
app/containers/OrderFormContainer.js
nosplashurinal/order-management
import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import React from 'react'; import SearchForm from '../components/OrderSearchForm'; import { orderSearchActive, searchBy } from '../actions'; const mapStateToProps = (state) => { const formActive = state.orderFormReducers.formActive;...
step7-flux/node_modules/react-router/es6/RouterContext.js
jintoppy/react-training
'use strict'; 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; }; import invariant from 'invariant'; import Reac...
examples/counter/index.js
frodereinertsen/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
fixtures/sort-import.js
hugomrdias/eslint-config-halo
import React from 'react'; import Range from './../utils/range'; import * as DateUtils from './../utils/i18n/datetime'; import '../vendor/datepicker'; import NotificationsBadge from './notifications-badge'; React.cloneElement(); const t = Range; t.f(); DateUtils.e(); const n = new NotificationsBadge(); n();
src/components/VisibilityFilterModal.js
alphasp/pxview
import React from 'react'; import { connectLocalization } from './Localization'; import SingleChoiceDialog from './SingleChoiceDialog'; const VisibilityFilterModal = ({ isOpen, onSelectVisibility, onPressCloseButton, i18n, visibility, }) => { const items = [ { label: i18n.all, value: 'all',...
news/routes/index.js
otavioarc/freeCodeCamp
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import Show from './Show'; import Featured from './Featured'; export const routes = [ <Route component={Featured} exact={true} path='/' />, <Route exact={true} path='/:username' render={() => <Redirect to='/' />} />, <Route component...
src/core/components/types/PromiseType.js
remy/jsconsole
import React, { Component } from 'react'; import which from '../../lib/which-type'; class PromiseType extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { open: props.open, promiseValue: undefined, status: 'pending', }; } ...
webapp/app/components/Notifications/Form/Groups/AllGroups/SelectAll/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component all groups form notifications // import React from 'react'; import { ButtonToolbar } from 'react-bootstrap'; import LinkContainerButton from 'components/Button'; import styles from 'components/Notifications/styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class Notifica...
views/src/components/OrderItem.js
apruve/apruve-ruby-demo
import React from 'react' import { Input, Button } from 'reactstrap' class OrderItem extends React.Component { constructor(props) { super(props) this.name = this.name.bind(this) this.sku = this.sku.bind(this) this.price = this.price.bind(this) this.quantity = this.quantity.bind(this) this.su...
text-dream/webapp/src/components/heads/ExplanationHeadComponent.js
PAIR-code/interpretability
/** * @license * Copyright 2018 Google LLC. All Rights Reserved. * 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 a...
src/svg-icons/action/watch-later.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
examples/src/components/BooleanSelect.js
matroid/react-select
import React from 'react'; import Select from 'react-select'; var ValuesAsBooleansField = React.createClass({ displayName: 'ValuesAsBooleansField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: true, label: 'Yes' }, { value: false, label: 'No' } ]...
ajax/libs/react-instantsearch/4.4.2/Connectors.js
jonobr1/cdnjs
/*! ReactInstantSearch 4.4.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
app/javascript/mastodon/components/column_header.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' }, hide: { id: 'column_header.h...
src/js/utils/RouteUtils.js
mlaursen/react-md-docs
import React from 'react'; import Avatar from 'react-md/lib/Avatars'; import FontIcon from 'react-md/lib/FontIcons'; import { Link } from 'react-router'; import { flatten } from './index'; import { toTitle, toPropTypeId } from './StringUtils'; const reactLogo = 'https://facebook.github.io/react/img/logo.svg'; const g...
src/routes.js
JohnPaulHarold/ReactExample
import React from 'react'; import { Switch, Route } from 'react-router'; import { Search, About, } from './containers/'; import { Team, } from './components'; export default ( <Switch> <Route exact path="/" component={Search} /> <Route path="/about" component={About} /> <Route path="/team/:id" component={Te...
src/resources/assets/js/tests/testing-store.js
tmlpstats/tmlpstats
import React from 'react' import { Provider } from 'react-redux' import { createStore, combineReducers, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import baseReducers from '../storeBaseReducers' import storeProxy from '../storeProxy' const DEFAULT_BROWSER = { "_responsiveState":true, "widt...
packages/benchmarks/styled-jss/styled-jss-v2/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'));
components/DeviceFrame/DeviceFrame.story.js
rdjpalmer/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import Macbook from './Macbook'; import IPhone from './IPhone'; import iphoneVideo from './nike-screen.mp4'; const macbookImages = [{ src: 'https://source.unsplash.com/random/1440x900', alt: '', }, { src: 'https://source.unsplash.com/rando...
node_modules/react-bootstrap/es/TabContainer.js
chenjic215/search-doctor
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 React from 'r...
src/components/project/list.js
lockys/Angelcrunch-react
import React from 'react'; import $ from 'jquery'; import Router from 'react-router'; import Mixin from 'react-mixin'; import connectToStores from 'alt/utils/connectToStores'; import AjaxMapping from 'utils/ajaxMapping'; import TitleHelper from 'utils/titleHelper'; import CookieHelper from 'utils/cookieHelper'; import...
src/components/ConnectionStatus.js
dialob/dialob-fill-ui
/** * Copyright 2016 ReSys OÜ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
app/containers/ArticleApp/components/ArticleItem.js
cabloo/react-graphql-test
/* @flow */ import React from 'react'; import Relay from 'react-relay'; import ListItem from 'components/ListItem'; type Article = { id: string, title: string; author: string; }; type Props = { article: Article, }; /** * ListItem wrapper for ArticleList implementation * Parent component: ArticleList * Ch...
src/components/movie/home/Movies.js
landrysoules/mmdb_front_react
import React, { Component } from 'react'; import NotYet from '../../common/building/NotYet'; import { getPopularMovies } from '../../../actions/movie'; import { connect } from 'react-redux'; export class Movies extends Component { componentDidMount() { this.props.getPopularMovies(); } render = () => <NotYet />; ...
src/containers/ListingFormContainer.js
ZachGawlik/print-to-resist
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Alert from '../components/Alert'; import ListingForm from '../components/ListingForm'; import ListingTile from '../components/ListingTile'; import * as actionCreators ...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
gui/src/app/containers/tab-simulation-container.js
mbonvini/LambdaSim
import React from 'react'; import { connect } from 'react-redux'; import TabSimulation from '../components/tab-simulation'; import log from 'loglevel'; import store from '../store'; class TabSimulationContainer extends React.Component { constructor(props) { super(props); } render() { return ( <Ta...
src/components/eventplanner/BackgroundCells.js
f0zze/rosemary-ui
import React from 'react'; import {findDOMNode} from 'react-dom'; import cn from 'classnames'; import {segStyle} from './utils/eventLevels'; import {notify} from './utils/helpers'; import {dateCellSelection, slotWidth, getCellAtX, pointInBox} from './utils/selection'; import Selection, {getBoundsForNode} from './Select...
App/src/features/calendar/Activity/Activity.js
DupK/dashboard-epitech
/** * Created by desver_f on 10/03/17. */ import React, { Component } from 'react'; import moment from 'moment'; import { Platform, StyleSheet, View } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import ENIcon from 'react-native-vector-icons/Entypo'; import { observer } from 'mobx-react...