path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/mineral-ui-icons/src/IconStayCurrentPortrait.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 IconStayCurrentPortrait(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {....
react-jss/button.js
martinandert/css-in-js
import React from 'react'; import jss from 'jss'; import vendorPrefixer from 'jss-vendor-prefixer'; import useSheet from 'react-jss'; jss.use(vendorPrefixer); const styles = { '.container': { 'text-align': 'center' }, '.button': { 'background-color': '#ff0000', width: '320px', padding: '20px', ...
src/app/core/atoms/icon/icons/messages.js
blowsys/reservo
import React from 'react'; const Messages = (props) => <svg {...props} xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 14.173 14.173"><g><defs><path id="a" d="M7.087,1.891c-2.973,0-5.383,2.037-5.383,4.551c0,1.718,1.126,3.213,2.788,3.988 c-0.301,1.29-1.225,2.228-1.225,2.228c2.023-0.369,3.244-1.215...
packages/shared/forks/SchedulerTracing.umd.js
TheBlasfem/react
/** * 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. * * @flow */ import React from 'react'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; const { ...
ui/js/pages/payment/PaymentPay.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { postItem } from '../../actions'; import FormError from '../../components/FormError'; import Button from '../../components/Button'; import Loading from '../../components/Loading'; import FormStat...
src/components/common/Dropdown.js
harpreetkhalsagtbit/url-manager
import React from 'react'; import { Dropdown } from 'semantic-ui-react' // stateOptions = [ { key: 'AL', value: 'AL', text: 'Alabama' }, ... ] const DropdownInput = ({options=[], onChange, placeHolder}) => { return ( <div> <Dropdown placeholder={placeHolder} multiple search selection options={options} /> </di...
packages/react/components/list-item.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import F7ListItemContent from './list-item-content'; import Mixins from '../utils/mixins'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatc...
mapSelector/mapButton.js
wxtiles/mapbuilder
import React from 'react' class mapButton extends React.Component { constructor(props) { super(props) this.state = {} //this.state.selectedMap = props.selectedMap; } handleClick() { this.props.selectMap(this.props.mapOption); } render() { var selectedClass = ''; if(this.props.select...
node_modules/react-bootstrap/es/HelpBlock.js
firdiansyah/crud-req
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 ...
lib/components/ChromeNotice.js
gramakri/filepizza
import React from 'react' import DownloadStore from '../stores/DownloadStore' import SupportStore from '../stores/SupportStore' function getState() { return { active: SupportStore.getState().isChrome && DownloadStore.getState().fileSize >= 500000000 } } export default class ChromeNotice extends React.Compone...
src/docs/guides/GetStarted.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Section from 'grommet/components/Section'; import Box from 'grommet/components/Box'; import Anchor from 'grommet/components/Anchor'; import DocsArticle from '../../components/DocsArticle'; const Comma...
docs/app/Examples/elements/Button/Types/ButtonExampleButton.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleButton = () => ( <Button> Click Here </Button> ) export default ButtonExampleButton
src/js/components/icons/base/CreditCard.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/svg-icons/action/settings-input-component.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComponent = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
modules/Router.js
chrisirhc/react-router
import React from 'react' import warning from 'warning' import createHashHistory from 'history/lib/createHashHistory' import { createRoutes } from './RouteUtils' import RoutingContext from './RoutingContext' import useRoutes from './useRoutes' import { routes } from './PropTypes' const { func, object } = React.PropTyp...
src/routes/error/index.js
yyjazsf/react-study
import React from 'react' import { Link } from 'dva/router' function ErrorPage() { return ( <div> <h1>404 Not Found</h1> <p><Link to="/app/index">go home</Link></p> </div> ) } export default ErrorPage
app/domain/component/HomeMenuView.js
njxiaohan/TransPal
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, ScrollView, } from 'react-native'; import screen from 'domain/def/screen' import PageControl from 'domain/def...
client/common/components/dropdown-overlay.js
jmeas/moolah
import React from 'react'; import classNames from 'classnames'; const noop = () => { // Intentionally left blank }; export default function DropdownOverlay({onClick, visible}) { let clickHandler = onClick ? onClick : noop; const classes = classNames('dropdownOverlay', {'dropdownOverlay-visible': visible}); r...
example/examples/EventListener.js
pjamrozowicz/react-native-maps
import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, View, Text, Dimensions, ScrollView, } from 'react-native'; // eslint-disable-next-line max-len import MapView from 'react-native-maps'; import PriceMarker from './PriceMarker'; const { width, height } = Dimensions.get('windo...
packages/cf-component-text/src/Text.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; import capitalizeWord from 'capitalize'; const capitalize = str => str.split('-').map(w => capitalizeWord(w)).join(''); const styles = ({ theme, size, weight, align, type, case: textCase }) => ({ col...
Libraries/Text/Text.js
cdlewis/react-native
/** * Copyright (c) 2015-present, 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. * * @provides...
src/main.js
haribote/react-bezier-demo
// import modules import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app'; ReactDOM.render( <App />, document.getElementById('app') );
src/App.js
PrismarineJS/prismarinejs.github.io
import React, { Component } from 'react'; import 'bootstrap/dist/css/bootstrap.min.css'; import './App.css'; class Members extends Component { constructor(props) { super(props) this.state = { maintainers: [ { id: '2346494', name: 'Romain Beaumont', username: 'rom1504' }, { id: '106931...
src/containers/App/App.js
jiangzhichao/dog
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { asyncConnect } from 'redux-async-connect'; import Helmet from 'react-helmet'; import { push } from 'react-router-redux'; import './App.scss'; import LoadingBar from 'react-redux-loading-bar'; im...
node_modules/react-bootstrap/es/ButtonToolbar.js
caughtclean/but-thats-wrong-blog
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/App.js
mattjms/flowroute_messages
import React, { Component } from 'react'; import Script from 'react-load-script'; import logo from './logo.svg'; import './App.css'; class App extends Component { constructor(props) { super(props); this.state = { isLoggedIn: false, loginError: null, user: { fullName: null, e...
src/ModalBody.js
bbc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.prop...
src/client.js
yoo2001818/react-against-humanity
import './style/index.scss'; // TODO disable es6 shim because it's not reporting promise error - so I'd just // use native objects. // import 'es5-shim'; // import 'es6-shim'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; ...
src/components/DataTable/DataTable.js
IssaTan1990/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Table } from 'antd' import { request } from '../../utils' import lodash from 'lodash' import './DataTable.less' class DataTable extends React.Component { constructor (props) { super(props) const { dataSource, pagination = { showSizeC...
src/pages/about.js
thevangelist/esajuhana-2018
import React from 'react' import Helmet from 'react-helmet' import atWork from './at-work2.jpg' import styled from 'styled-components' const AtWorkImage = styled.img` display: block; margin: 0 auto; `; export default () => <div> <Helmet title={`Esa Juhana | About`} /> <h1>About Esa Juhana</h1> <p>I...
src/App/App.js
sirjuan/harmonical-oscillation
import React, { Component } from 'react'; import '../styles/App/App.css'; import MainContainer from '../Containers/MainContainer'; class App extends Component { render() { return ( <MainContainer /> ); } } export default App;
frontend/src/components/profile/followers.js
1905410/Misago
import React from 'react'; import Button from 'misago/components/button'; // jshint ignore:line import Search from 'misago/components/search'; // jshint ignore:line import UsersList from 'misago/components/users-list/root'; // jshint ignore:line import misago from 'misago/index'; import { hydrate, append } from 'misago...
src/Card/CardMedia.js
rscnt/material-ui
import React from 'react'; function getStyles(props, context) { const {cardMedia} = context.muiTheme; return { root: { position: 'relative', }, overlayContainer: { position: 'absolute', top: 0, bottom: 0, right: 0, left: 0, }, overlay: { height: '100%'...
admin/client/App/components/Navigation/Mobile/SectionItem.js
concoursbyappointment/keystoneRedux
/** * A mobile section */ import React from 'react'; import MobileListItem from './ListItem'; import { Link } from 'react-router'; const MobileSectionItem = React.createClass({ displayName: 'MobileSectionItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, curren...
test-cases/javascript/frameworks/react/src/App.js
google/security-crawl-maze
import React from 'react' import Navigation from './routes' const App = () => ( <div> <Navigation /> </div> ) export default App
client/src/common/header.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import * as UU5 from 'uu5g03'; import './header.css'; const Header = React.createClass({ //@@viewOn:mixins mixins: [ UU5.Common.BaseMixin, UU5.Layout.ContainerCollectionMixin ], //@@viewOff:mixins //@@viewOn:statics statics: { tagName: 'Ucl.Itkpd.Configurator.Brick...
app/components/data/CompactData.js
ariel-zplinux/data-extractor-mern
import React from 'react'; import {Link} from 'react-router'; export default class CompactData extends React.Component { render() { const data = this.props.data; // const amount = `$${data.amount}\%`; const amount = data.value ? `${data.value}` : ''; const link = this.calculateLink(...
docs/src/app/components/pages/components/SelectField/ExampleCustomLabel.js
andrejunges/material-ui
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; /** * With a `label` applied to each `MenuItem`, `SelectField` displays a complementary description of the selected item. */ export default class SelectFieldExampleCustomLabel extends React.Comp...
frontend/src/js/components/App.js
jgnewman/einlandr
import React from 'react'; import { Component } from 'react'; import PropTypes from 'prop-types'; function App(props) { return ( <div className="app"> <h1 className="einlandr-title">EINLANDR</h1> </div> ) } App.propTypes = { data: PropTypes.object.isRequired, actions: PropTypes.object.isRequired...
node_modules/react-router-dom/node_modules/react-router/es/Router.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; }; function _classCallCheck(instance, Constructor) { if (!(insta...
frontend/src/archive/containers/main-container/index.js
OptimusCrime/youkok2
import React, { Component } from 'react'; import ArchiveContainer from '../archive-container'; import {Breadcrumbs} from "../../components/breadcrumbs"; import {connect} from "react-redux"; import {StencilArchiveTitle} from "../../components/stencil-archive"; import {ArchiveError} from "../../components/archive-error"...
src/components/LoginComponent.js
reshak/exodus
/*jshint esnext: true */ import React from 'react'; import mui from 'material-ui'; require('styles//Login.sass'); const AppBar = require('material-ui/lib/app-bar'); const LeftNav = require('material-ui/lib/left-nav'); const MenuItem = mui.MenuItem; var menuItems = [ { route: 'get-started', text: 'Get Started' },...
src/routes/register/index.js
kdama/react-starter-kit-twitter
/** * 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 Register from './Registe...
exercises/2/src/common/components/Amuse.js
Randynamic/redux-exercises
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { map } from 'lodash'; import Balloon from './Balloon'; import AmusementPark from './AmusementPark'; import './Amuse.scss'; @connect(({balloons}) => ({ balloons })) class Amuse extends Component { render() { const {balloon...
src/svg-icons/hardware/phone-iphone.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneIphone = (props) => ( <SvgIcon {...props}> <path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1...
addons/actions/src/containers/ActionLogger/index.js
enjoylife/storybook
/* eslint-disable no-underscore-dangle */ import React from 'react'; import PropTypes from 'prop-types'; import deepEqual from 'deep-equal'; import ActionLoggerComponent from '../../components/ActionLogger/'; import { EVENT_ID } from '../../'; export default class ActionLogger extends React.Component { constructor...
frontend/src/components/eois/cells/eoiStatusWithIconsCell.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import EoiStatusCell from './eoiStatusCell'; import TooltipIcon from '../../common/tooltipIcon'; import PinIcon from '../../common/pinIcon'; const styleSheet = theme => ({ pinnedIcon: { fill: theme....
src/client/pages/app/modalRoot/addMappingModal/NewMappingForm.js
doemski/cblocks
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import FormRangeComponent from './newMappingForm/FormRangeComponent'; import MenuItem from '@material-ui/core/MenuItem'; import Select from '@...
src/components/Tooltip.js
ekatzenstein/DynamoDictionary_React
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionGrade from 'material-ui/svg-icons/action/grade'; const IconButtonExampleTouch = () => ( <div> <IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right"> <img src="images/icons/pr_invert.png" id='...
src/components/common/images/ImageUpload.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; // Required components import Button from '../buttons/Button'; // Instantiate logger let debug = require('debug')('tienda765'); /** * Component */ class ImageUpload extends React.Component { //*** Initial State ***// state = { file: undefined, ...
src/client/assets/js/nodes/processors/function/node.js
me-box/databox-sdk
import React from 'react'; import Textfield from 'components/form/Textfield'; import Textarea from 'components/form/Textarea'; import Select from 'components/form/Select'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import {matchLibraries} from 'utils/utils'; import {codeFromSchema} from '...
themes/frontend/assets/reactjs/process/js/Car/SearchCar/CarLocation.js
fonea/velon
import React from 'react'; export default class CarLocation extends React.Component { constructor(props) { super(props); this.createMarkup = this.createMarkup.bind(this); } createMarkup(markup) { return {__html: markup}; } render() { // console.log(this.props.image); return ( <d...
src/NewDrink.js
martonbognar/bali-react
import React, { Component } from 'react'; import DRINKS from './data/drinkList'; class NewDrink extends Component { constructor(props) { super(props); this.state = {name: '', amount: '', strength: '', startTime: new Date().getTime(), selectedDrink: ''}; this.resetState = this.resetState.bind(this); ...
src/FormControls/Static.js
omerts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
src/svg-icons/content/save.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSave = (props) => ( <SvgIcon {...props}> <path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/> </Svg...
docs/app/Examples/elements/Button/Variations/ButtonExampleSocial.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button, Icon } from 'semantic-ui-react' const ButtonExampleSocial = () => ( <div> <Button color='facebook'> <Icon name='facebook' /> Facebook </Button> <Button color='twitter'> <Icon name='twitter' /> Twitter </Button> <Button color='google plus'> ...
lib/views/merge-conflict-list-item-view.js
atom/github
import React from 'react'; import PropTypes from 'prop-types'; import {CompositeDisposable} from 'event-kit'; import {classNameForStatus} from '../helpers'; import {MergeConflictItemPropType} from '../prop-types'; import RefHolder from '../models/ref-holder'; export default class MergeConflictListItemView extends Rea...
src/index.js
cfrancisco726/cfrancisco726.github.io
import 'materialize-css/dist/css/materialize.min.css'; import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
clouseau-app/ui/src/ObjectGraph.js
commercehub-oss/clouseau
import React from 'react'; import { parse } from 'elementtree'; import TreeNode from './TreeNode'; import shallowCompare from 'react-addons-shallow-compare'; class ObjectGraphContainer extends React.Component { constructor(props) { super(props); this.state = { tree: this.maybeParse(props.objectGrap...
cheesecakes/plugins/content-manager/admin/src/components/TableDelete/index.js
strapi/strapi-examples
/** * * TableDelete * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import styles from './styles.scss'; function TableDelete({ colspan, number, onToggleDeleteAll }) { const suffix = number > 1 ? 'plural' : 'singular'; return ( <tr classN...
src/shared/components/staffCard/staffCard.js
tskuse/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './staffCard.css'; const StaffCard = ({ src, alt, name, role, twitter, email }) => ( <div className={styles.staffCard}> <img className={styles.img} src={src} alt={alt} /> <span className={styles.name}> {name} </span...
packages/my-joy-images/src/containers/breadcrumb.js
geek/joyent-portal
import React from 'react'; import { Link } from 'react-router-dom'; import paramCase from 'param-case'; import get from 'lodash.get'; import { Breadcrumb, BreadcrumbItem } from 'joyent-ui-toolkit'; export default ({ match }) => { const image = get(match, 'params.image'); const create = get(match, 'params.step'); ...
src/types.js
affinipay/react-bootstrap-autosuggest
// @flow import React from 'react' export type Node = number | string | React.Element<*> | (number | string | React.Element<*>)[]
src/main/scripts/modules/sea-siege/react/components/icon-link.js
twuni/sea-siege
import React from 'react'; import _ from 'lodash'; import Component from './component'; import Link from './link'; import Icon from './icon'; class IconLink extends Component { static get propTypes() { return Component.withPropTypes(Icon.propTypes, Link.propTypes); } render() { const linkProps = _.o...
src/index.js
ReachFive/fake-smtp-server
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
client/src/index.js
javelinco/budgetPlanner
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/containers/App.js
animalphase/bramble
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
app/modules/common/layout/components/drawer.js
theseushu/funong-web
import React from 'react'; import { Drawer } from 'react-mdl/lib/Layout'; export default () => ( <Drawer title="Title" /> );
js/src/ui/Features/features.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
app/shared/progress-steps/NumericalProgressSteps.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; import NumericalStep from './NumericalStep'; const NumericalProgressSteps = ({ steps, activeStep = null, className = '', }) => ( <div className={`progress-steps progress-steps-numerical ${className}`}> {steps.map((stepName, index) => ( <...
common/app/provide-store.js
Disaster-Hack/HackSchool
/* eslint-disable react/display-name */ import React from 'react'; import { Provider } from 'react-redux'; export default function provideStore(element, store) { return React.createElement( Provider, { store }, element ); }
src/components/Layout/Layout.js
jaruesink/ruesinkdds
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/client.js
dskliarov/aotweb
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import useScroll from 'scroll-behavior/lib/useStandardScroll'; imp...
app/components/app/app.js
zetapath/trckr
import React from 'react'; import { Button } from 'react-toolbox/lib/button'; import Tooltip from 'react-toolbox/lib/tooltip'; import AppBar from './components/AppBar'; import DialogNewOrder from './components/DialogNewOrder'; import style from './app.css'; import session from '../../modules/session'; const TooltipBut...
modules/gui/src/app/home/body/users/users.js
openforis/sepal
import {Button} from 'widget/button' import {compose} from 'compose' import {connect} from 'store' import {forkJoin, map, tap, zip} from 'rxjs' import {msg} from 'translate' import {publishEvent} from 'eventPublisher' import Notifications from 'widget/notifications' import React from 'react' import UserDetails from './...
src/routes/Devices/components/nodes/Customer.js
KozlovDmitriy/Pos.Hierarchy.Net
import React from 'react' import PropTypes from 'prop-types' import { Group } from '@vx/group' import Plus from './Plus' import NodeLabel from './NodeLabel' import CollapsedNode from './CollapsedNode' class Customer extends CollapsedNode { static propTypes = { node: PropTypes.object.isRequired, errors: PropT...
src/index.js
wsherman67/UBA
import React from 'react'; import ReactDOM from 'react-dom'; import Docs from './docs/Docs'; import './index.css'; import '../node_modules/highlight.js/styles/ocean.css'; ReactDOM.render( <Docs />, document.getElementById('root') );
src/interface/report/PlayerSelection/PlayerTile.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import SpecIcon from 'common/SpecIcon'; import { getClassName } from 'game/ROLES'; import getAverageItemLevel from 'game/getAverageItemLevel'; import Icon from 'common/Icon'; i...
js/components/App.react.js
coryrwest/cookieme
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import Logo from '../../img/logo.png'; class App extends Com...
src/main/js/issue/Issue.js
cluelessjoe/heroesdesk-front-web
'use strict'; import React from 'react'; export default React.createClass({ render() { var issueId = this.props.params.issueId; return ( <div> issue {{issueId}} </div> ); } });
src/components/DataGrid/TableGrid.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import ColResize from 'colresizable/colResizable-1.6.min' import TableHead from './TableHead'; import TableBody from './TableBody'; export default class TableGrid extends Component { constructor(props) { super(props); this....
frontend/jest_mocks/createComponentWithRouter.js
RyanNoelk/OpenEats
import React from 'react'; import renderer from 'react-test-renderer'; import { MemoryRouter } from 'react-router-dom' const createComponentWithRouter = ( children ) => { return renderer.create( <MemoryRouter> { children } </MemoryRouter> ); }; export default createComponentWithRouter;
node_modules/react-router/es6/Route.js
akh000/YoutubeApp
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
client/src/app/admin/admin-login-page.js
ivandiazwm/opensupports
import React from 'react'; import _ from 'lodash'; import classNames from 'classnames'; import {connect} from 'react-redux'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import SessionActions from 'actions/session-actions'; import PasswordRecovery from 'app-components/password-recovery.js'; i...
react-ui/src/PollVotingForm.js
Swoodend/pollster-heroku
import React, { Component } from 'react'; class PollVotingForm extends Component{ constructor(props){ super(props); this.handleSubmit = this.handleSubmit.bind(this); this.handleChange = this.handleChange.bind(this); this.state = { voteValue: '' } } componentDidMount(){ window.twttr...
src/components/Todo.js
pekkis/react-training-broilerplate
// @flow import React from 'react'; import classnames from 'classnames'; import Icon from 'react-fa'; import styles from './Todo.pcss'; import { Button } from './form'; type Props = { todo: TodoType, onToggle: Function, onRemove: Function, }; const Todo = ({ todo, onToggle, onRemove }: Props) => { const cla...
src/views/ChapterView.js
learnfwd/lfa-printview-hotspot-editor
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Row, Col } from 'react-bootstrap'; import { loadChapter } from '../actions/APIActions'; import PageSelector from './PageSelector'; import PageView from './PageView'; import HotspotSelector from './HotspotSelector'; import Hotspot...
src/routes/contact/index.js
GLExperiments/GLExperiments
/** * 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'...
example/antd/src/jsportal/app.js
Anaphalis/babel-dev-server
import React from 'react'; import ReactDOM from 'react-dom'; import { Cascader } from 'antd'; const options = [{ value: 'zhejiang', label: '浙江', children: [{ value: 'hangzhou', label: '杭州', children: [{ value: 'xihu', label: '西湖', }], }], }, { value: 'jiangsu', label: '江苏', ch...
client/components/RouteList.js
muiradams/routetogo
import React, { Component } from 'react'; // import RouteMap from './RouteMap'; import Route from './Route'; class RouteList extends Component { constructor(props) { super(props); this.state = { selectedRoute: {} }; this.handleSelectRoute = this.handleSelectRoute.bind(this); this.renderRoutes = thi...
fields/types/geopoint/GeoPointField.js
pswoodworth/keystone
import Field from '../Field'; import React from 'react'; import { FormRow, FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'GeopointField', focusTargetRef: 'lat', valueChanged (which, event) { this.props.value[which] = event.target.value; this.props.onChange({ path: t...
modules/Route.js
zhijiansha123/react-router
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './PropTypes'; import warning from 'warning'; var { string, bool, func } = React.PropTypes; /** * A <Route> is used to declare which components are rendered ...
app/containers/RepoListItem/index.js
nguyenduong127/kong-dashboard
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } from 'containers/App/selectors'; import...
src/Parser/Hunter/BeastMastery/Modules/Talents/AMurderOfCrows.js
enragednuke/WoWAnalyzer
import React from 'react'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellUsable from 'Parser/Core/Modules/SpellUsable'; import SPECS from 'common/SPECS'; import StatisticBox from 'Main/StatisticBox'; import SpellIco...
src/components/App.js
andresilveira/stendebach_pillows
import React from 'react'; import { connect } from 'react-redux'; import PillowForm from './PillowForm'; import './App.css'; import '../bootstrap.min.css'; const App = ({ loading }) => ( <div className="container"> { loading ? "LOADING..." : <PillowForm />} </div> ); const stateToProps = (state) => ({ lo...
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
zomeelee/actor-platform
import React from 'react'; import mixpanel from 'utils/Mixpanel'; import MyProfileActions from 'actions/MyProfileActions'; import LoginActionCreators from 'actions/LoginActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; import MyProfileModal from 'components/modals/MyProfile.react'; import ...
app/javascript/mastodon/containers/mastodon.js
MastodonCloud/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { showOnboardingOnce } from '../actions/onboarding'; import { BrowserRouter, Route } from 'react-router-dom'; import { ScrollContext } from 'react-router-sc...
src/js/components/plan/EditPlanForm.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * 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...
src/containers/signUp/signUp.js
psenger/ReactJS-Rapid-Prototype-Template
import React, { Component } from 'react'; import I18NInjector from '../../decorator/i18nInjector'; import PropTypes from 'prop-types'; @I18NInjector() export class SignUp extends Component { constructor (props) { super(props); this.displayName = 'containers/home'; } render () { let {translate} = th...
analysis/deathknightblood/src/modules/talents/Tombstone.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import { formatNumber, formatPercentage } from 'common/format'; import DamageTracker from 'parser/shared/modules/AbilityTracker'; import TalentStatistic...