path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
modules/Print/NavLink.js
corbmanj/tote
// modules/NavLink.js import React from 'react' import { Link } from 'react-router' export default function NavLink (props) { return <Link {...props} activeClassName="active"/> }
routes/react.js
jmlane/asg-attendance
import { Router } from 'express'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import App from '../components/app.js'; import Page from '../components/page.js'; const router = Router(); router.all('*', (req, res) => { res.send(ReactDOMServer.renderToStaticMarkup( <Page> <div i...
src/app/components/HoverMenu/index.js
jackdon/snoopy
import React from 'react'; export default class HoverMenu extends React.PureComponent { componentDidMount() { document.addEventListener('click', this.handleDocumentClick); } handleDocumentClick = () => { this.props.onClose(); }; handleViewClick = event => { event.stopPropagation(); this.prop...
docs/src/sections/FormSection.js
apkiernan/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function FormSection() { return ( <div className="bs-docs-section"> <h1 className="page-header"> <Anch...
addons/graphql/src/components/FullScreen/index.js
nfl/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; import style from './style'; export default function FullScreen(props) { return ( <div style={style.wrapper}> {props.children} </div> ); } FullScreen.defaultProps = { children: null }; FullScreen.propTypes = { children: PropTypes.node };...
src/client/components/StoryFooter/Payout.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import classNames from 'classnames'; import { calculatePayout } from '../../vendor/steemitHelpers'; import BTooltip from '../BTooltip'; import USDDisplay from '../Utils/USDDisplay'; import PayoutDetail from '../Payou...
src/parser/shaman/restoration/modules/spells/Resurgence.js
fyruna/WoWAnalyzer
import React from 'react'; import StatisticBox from 'interface/others/StatisticBox'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import HIT_TYPES from 'game/HIT_TYPES'; import Analyzer from 'parser/core/Analyzer'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; impo...
apps/castles_web/web/static/js/components/Login/index.js
sjanota/castles
import React from 'react' import { Field, Error, UserInput } from '../Common' import { rgbHexToDec, rgbDecToHex, gradientColor, randomColor } from '../../util' export class Login extends React.Component { constructor(props) { super(); this.setError = this.setError.bind(this); this.onNameChange = this.onN...
Realization/frontend/czechidm-core/src/content/request/RequestItemChangesTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import {RequestItemManager } from '../../redux'; import ConceptRoleRequestOperationEnum from '../../enums/ConceptRoleRequestOp...
apps/mk-app-dashboard-analysis/action.js
ziaochina/mk-demo
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' import moment from 'moment' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current this.webapi = this.config.webapi } ...
src/withControl.spec.js
andrewkshim/react-animatronics
import React from 'react' import { mount } from 'enzyme' import withControl from './withControl' describe('withControl', () => { test('should render its base component', () => { class Base extends React.Component { render() { return <div id='test' />; } } const Controlled = withCo...
bench/fixtures/basic/pages/stateless.js
nikvm/next.js
import React from 'react' export default () => <h1>My component!</h1>
stack2/src/server/html.js
petrsmid/modern-javascript-course
import React from 'react'; export default class Html extends React.Component { render() { const {isProduction, version} = this.props; const appSrc = isProduction ? `/build/app.js?v=${version}` : '//localhost:8888/build/app.js'; return ( <html> <head> ...
src/svg-icons/device/bluetooth-connected.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothConnected = (props) => ( <SvgIcon {...props}> <path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1....
src/svg-icons/device/battery-80.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h10V5.33z"/><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1...
src/svg-icons/av/playlist-play.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistPlay = (props) => ( <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/> </SvgIcon> ); AvPlaylistPlay = pure(AvPlaylistPlay); AvPlaylistPlay.displayName = '...
src/renderer/components/channel-switcher.js
ka2n/retro-twitter-client
import { HOME_TIMELINE_CHANNEL, SEARCH_CHANNEL } from '../libraries/constants' import List from './list'; import React from 'react'; export default class ContextSwitcher extends React.Component { getHomeChannelClassName() { return `account-channel ${this.getHomeChannelSelected() ? ' account-channel-selected' : '...
examples/simple/components/App.js
gdi2290/library-boilerplate
import React, { Component } from 'react'; import { add } from 'library-boilerplate'; export default class App extends Component { render() { return ( <p> 2 + 2 = {add(2, 2)} </p> ); } }
packages/react-cookie-demo/src/components/NameForm.js
eXon/react-cookie
import React from 'react'; import { func, string } from 'prop-types'; export default function NameForm({ name, onChange }) { return ( <div> <h1>What&apos;s your name?</h1> <form onSubmit={e => { e.preventDefault(); }} > <input type="text" pl...
views/invocation.js
rob3ns/black-screen
import React from 'react'; import Prompt from './prompt'; export default React.createClass({ componentWillMount() { this.props.invocation .on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()})) .on('status', status => this.setState({status: status})...
lib/components/Unit.js
knopjesmuseum/resilient-network-simulator
import React from 'react'; import Draggable from './Draggable.js'; import createDebug from 'debug'; const debug = createDebug('rs:comp:unit'); const COLOR = '#ebc629'; const RADIUS = 30; const CONN_RADIUS = 7; const Unit = ({ type, numConn = 0, energy = 0 }) => { const conns = []; for (let i = 0; i < numConn; i++...
src/components/Meta/Title.js
Swizec/h1b-software-salaries
import React, { Component } from 'react'; import { scaleLinear } from 'd3-scale'; import { mean as d3mean, extent as d3extent } from 'd3-array'; import USStatesMap from './USStatesMap'; class Title extends Component { get yearsFragment() { const year = this.props.filteredBy.year; return year ===...
analysis/warlockdemonology/src/modules/talents/SoulStrike.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER_PET } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import STATISTIC_CATEGORY from 'parser/ui/STATISTIC_CATEGORY'; import Statistic from 'parser/ui...
src/utils/domUtils.js
cgvarela/react-bootstrap
import React from 'react'; import canUseDom from 'dom-helpers/util/inDOM'; import getOwnerDocument from 'dom-helpers/ownerDocument'; import getOwnerWindow from 'dom-helpers/ownerWindow'; import contains from 'dom-helpers/query/contains'; import activeElement from 'dom-helpers/activeElement'; import getOffset from 'd...
src/client/components/StarRatingWidget/StarRatingWidget.js
trippian/trippian
import log from '../../log' import React from 'react' let getStars = function (starNum) { let starsHTML = [] for (let i = 0; i < starNum; i++) { starsHTML.push(<i className="fa fa-star" key={i}></i>) } return starsHTML } const StarRatingWidget = ({ stars = 2 }) => { return ( <span className="star...
src/frontend/components/SlackInviteIndex.js
Bernie-2016/ground-control
import React from 'react' import {BernieText, BernieColors} from './styles/bernie-css' import {Styles} from 'material-ui' import MuiThemeProvider from 'material-ui/lib/MuiThemeProvider' import {BernieTheme} from './styles/bernie-theme' import {slacks} from './data/slacks' export default class SlackInviteIndex extends ...
examples/src/components/ValuesAsNumbersField.js
katienreed/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes....
public/components/tokens.js
ranebo/project-ipsum
import React from 'react'; import actions from '../actions/ipsumActions.js'; import { connect } from 'react-redux'; import request from '../util/restHelpers.js'; import { Button, Col, ControlLabel, FormControl, FormGroup, Grid, Panel, Row } from 'react-bootstrap'; import { BootstrapTable, TableHeaderColumn } from 'reac...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js
digitalorigin/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'; function load(name) { return [ { id: 1, name: `${na...
src/svg-icons/image/filter-4.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter4 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14...
docs/src/app/pages/components/FileUpload/Page.js
GetAmbassador/react-ions
import React from 'react' import PropsList from 'private/modules/PropsList' import docs from '!!docgen!react-ions/lib/components/FileUpload/FileUpload' import CodeExample from 'private/modules/CodeExample' import styles from 'private/css/content' import ExampleFileUploadDefault from './ExampleFileUploadDefault' import ...
src/svg-icons/communication/mail-outline.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMailOutline = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/> </SvgIcon> )...
views/blocks/SearchBar/SearchBar.js
urfu-2016/team5
import React from 'react'; import './SearchBar.css'; import SearchBarInput from './SearchBarInput/SearchBarInput'; import SearchBarParams from './SearchBarParams/SearchBarParams'; const SBParams = require('./params'); export default class SearchBar extends React.Component { constructor(props) { super(prop...
AirFront/client/homepage.js
sunshinezxf/Airburg
import React from 'react'; import {SearchBar, NavBar, Icon, Button, Carousel, Flex, List, WhiteSpace, Card, Stepper} from 'antd-mobile'; import LazyLoad from 'react-lazyload'; import Demo from './demo' var homePic = "https://si.geilicdn.com/vshop1071620394-5412992997551478598385-815115.jpg"; var list = []; const Sear...
src/router.js
iwang/maodou
import React from 'react' import {Router} from 'dva/router' import App from './routes/app' const cached = {} const registerModel = (app, model) => { if (!cached[model.namespace]) { app.model(model) cached[model.namespace] = 1 } } //https://github.com/ReactTraining/react-router/blob/master/docs/guides/Dynam...
Web-Platform/1.0/react入门操作/index-fb.js
rexlin600/BasicPlatform
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; // Render the main component into the dom ReactDOM.render(<Router />, document.getElementById('app'));
src/withElementPortal.js
zapier/react-element-portal
import React from 'react'; import ElementPortal from './ElementPortal'; function getDisplayName(Component) { return Component.displayName || Component.name || 'Component'; } const withElementPortal = (portalProps) => (Component) => { const WithElementPortal = (props) => ( <ElementPortal {...portalProps}...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/navigate-before.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageNavigateBefore = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); ImageNavigateBefore.displayName = 'ImageNavigateBefore'; ImageNavigateBefore.muiName = 'SvgIcon'; export default...
node_modules/react-images/src/components/PaginatedThumbnails.js
ed1d1a8d/macweb
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; import Thumbnail from './Thumbnail'; import Arrow from './Arrow'; import theme from '../theme'; const classes = StyleSheet.create({ paginatedThumbnails: { bottom: theme.container....
test/regressions/tests/Input/InputSearch.js
cherniavskii/material-ui
// @flow import React from 'react'; import Input from 'material-ui/Input'; export default function InputSearch() { return <Input type="search" defaultValue="Hello world" />; }
src/svg-icons/action/open-in-browser.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
test/specs/elements/Flag/Flag-test.js
shengnian/shengnian-ui-react
import React from 'react' import Flag from 'src/elements/Flag/Flag' import * as common from 'test/specs/commonTests' const requiredProps = { name: 'us' } describe('Flag', () => { common.isConformant(Flag, { requiredProps }) common.implementsCreateMethod(Flag) common.propValueOnlyToClassName(Flag, 'name', [],...
examples/components/Basic/index.js
kjkta/react-native-swiper
import React from 'react' import { Text, View } from 'react-native' import Swiper from 'react-native-swiper' var styles = { wrapper: { }, slide1: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#9DD6EB' }, slide2: { flex: 1, justifyContent: 'center', ...
packages/neos-ui/src/Containers/App.js
mstruebing/PackageFactory.Guevara
import React from 'react'; import PropTypes from 'prop-types'; import FlashMessages from './FlashMessages/index'; const App = ({globalRegistry, menu}) => { const containerRegistry = globalRegistry.get('containers'); const Modals = containerRegistry.get('Modals'); const PrimaryToolbar = containerRegistry....
src/icons/IosBriefcase.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosBriefcase extends React.Component { render() { if(this.props.bare) { return <g> <g> <rect x="96" y="112" width="32" height="16"></rect> <rect x="48" y="208" width="416" height="240"></rect> <rect x="384...
modules/Router.js
etiennetremel/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...
geonode/monitoring/frontend/src/components/atoms/hover-paper/index.js
ppasq/geonode
import React from 'react'; import PropTypes from 'prop-types'; import Paper from 'material-ui/Paper'; class HoverPaper extends React.Component { static propTypes = { children: PropTypes.node, style: PropTypes.object, onClick: PropTypes.func, } constructor(props) { super(props); this.state ...
test/RowSpec.js
jhernandezme/react-materialize
/* global describe, it */ import React from 'react'; import { shallow } from 'enzyme'; import { assert } from 'chai'; import Row from '../src/Row'; let wrapper = shallow( <Row /> ); describe('<Row />', () => { it('should render', () => { assert(wrapper.find('.row').length, 'a row'); }); });
src/containers/DevToolsWindow.js
donnycrash/react-redux-electron-starter-kit
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
html/modules/App.js
fjacob21/nhlplayoffs
import React from 'react' import { render } from 'react-dom' import { Router, Route, Link } from 'react-router' import { Nav, Navbar, NavItem, NavDropdown, MenuItem } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' const App = React.createClass({ componentDidMount: function(){ i...
client/components/signup/SignupForm.js
bsubedi26/Project-Revised
import React from 'react'; import map from 'lodash/map'; import classnames from 'classnames'; // import validateInput from '../../../server/shared/validations/signup'; import TextFieldGroup from '../common/TextFieldGroup'; class SignupForm extends React.Component { constructor(props) { super(props); this.sta...
src/views/ServiceRequest.js
randyf99/resource-center
import React, { Component } from 'react'; class ServiceRequest extends Component { render() { return <h1>Service Request Form View</h1>; } } export default ServiceRequest;
app/addons/permissions/routes.js
garrensmith/couchdb-fauxton
// 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 writing, software // distributed un...
src/about/index.js
markfranco/spirax
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
node_modules/enzyme/src/version.js
cloud9ide/react-enquiry
import React from 'react'; export const VERSION = React.version; const [major, minor] = VERSION.split('.'); export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = major === '15'; export const REACT155 = REACT15 && minor >= 5;
modules/shared/Text.js
edvinerikson/universal-react-kickstarter
import React from 'react'; export default class Text extends React.Component { static propTypes = { children: React.PropTypes.string.isRequired, } render() { return <p>{this.props.children}</p>; } }
src/views/components/AutomationEditScreen.js
physiii/open-automation
import React from 'react'; import PropTypes from 'prop-types'; import {Switch, Redirect, Link} from 'react-router-dom'; import {Route, withRoute} from './Route.js'; import NavigationScreen from './NavigationScreen.js'; import SettingsScreenContainer from './SettingsScreenContainer.js'; import Button from './Button.js';...
client/src/AddResourceModal.js
roxroy/codeploy
import React, { Component } from 'react'; import Modal from 'react-modal'; //import {RadioGroup, Radio} from 'react-radio-group' class AddResourceModal extends Component { constructor(props) { super(props); this.save = this.save.bind(this); this.state = { errorVisible: "none", errorText: nul...
src/components/ToolBox/Button/index.js
andmilj/vip-transfers
import React from 'react'; import FontIcon from '../FontIcon'; import Tooltip from '../Tooltip'; import events from '../utils/events'; import withStyles from '../../../decorators/withStyles'; import styles from './style'; @withStyles(styles) class Button extends React.Component { static propTypes = { accent: Rea...
ceephax/components/loading/loading.spec.js
mrceephax/ceephax.com.frontend
import React from 'react'; import { expect } from 'chai'; import { mount } from 'enzyme'; import Loading from 'ceephax/components/loading'; describe('<Loading />', () => { it('renders <Loading /> components ', () => { const wrapper = mount(<Loading display={false} />); expect(wrapper.is(Loading))....
src/components/RegOpzDataGrid/RegOpzDataGridHeader.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class RegOpzDataGridHeader extends Component { constructor(props) { super(props); this.widthAtMouseEnter = 0; this.numberofCols = this.props.numberofCols; this.colAttr = this.props.colAttr; ...
src/containers/ADC/SLB/ServiceGroups/ServiceGroups.js
armaniExchange/wizard
// React & Redux import React, { Component } from 'react'; class ServiceGroup extends Component { render() { return ( <section>ServiceGroup</section> ); } } export default ServiceGroup;
src/svg-icons/places/child-care.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesChildCare = (props) => ( <SvgIcon {...props}> <circle cx="14.5" cy="10.5" r="1.25"/><circle cx="9.5" cy="10.5" r="1.25"/><path d="M22.94 12.66c.04-.21.06-.43.06-.66s-.02-.45-.06-.66c-.25-1.51-1.36-2.74-2....
src/containers/Root.js
lawenliu/ReactDemo
import React from 'react' import { Provider } from 'react-redux' import { Router } from 'react-router' export default class Root extends React.Component { static propTypes = { history: React.PropTypes.object.isRequired, routes: React.PropTypes.element.isRequired, store: React.PropTypes.object.isRequired ...
pkg/interface/groups/src/js/api.js
ngzax/urbit
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import { uuid } from '/lib/util'; import { store } from '/store'; class UrbitApi { setAuthTokens(authTokens) { this.authTokens = authTokens; this.bindPaths = []; this.contactHook = { edit: this.contactEdit.bind(t...
packages/react/src/components/ComboBox/ComboBox-test.e2e.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import 'carbon-components/scss/components/combo-box/_combo-box.scss'; import 'carbon-components/scss/components/list-box/_list-box.scss'; imp...
public/javascript/components/nickelCityForum.js
fireaxil/anglican-wny
import React from 'react' import { withStyles } from 'material-ui/styles' import PropTypes from 'prop-types' import Pictures from './pictures' import nickelCityForumPicture from '../../images/nickelCityForum.jpg' import NickelCityForumText from './nickelCityForumText' const styles = theme => ({ }) class NickelCityFo...
src/components/sider.js
ShiChao1996/BlogAdmin
import React from 'react'; import { Card, Avatar, Button, Icon } from 'antd'; import './sider.css'; const sider = (name, desc) => { return( <Card> <div className="sideBox"> <img src={require('../image/avatar.png')} className='avatar'/> <h1>{name}<...
pages/api/dialog.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './dialog.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
client/src/components/Home.js
ViDA-NYU/domain_discovery_tool
import React, { Component } from 'react'; var ReactRouter = require('react-router'); var Link = ReactRouter.Link; import Checkbox from 'material-ui/Checkbox'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import { Row, Col} from 'react-bootstrap'; //import {Toolbar, To...
src/pages/viviane-furrier.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Viviane Furrier' /> )
packages/reactor-conference-app/src/calendar/Calendar.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Calendar_Days, Container, Panel } from '@extjs/ext-react'; import Event from '../event/Event'; import { loadEvent } from '../event/actions'; class Calendar extends Component { constructor({ children }) { super(); ...
src/components/Tabs/__tests__/Tab.spec.js
propertybase/react-lds
import React from 'react'; import { shallow } from 'enzyme'; import Tab from '../Tab'; const sampleChild = <div>Sample</div>; const getComponent = (props = {}) => shallow( <Tab id="foo" title="bar" {...props} > {sampleChild} </Tab> ); const findContent = mounted => mounted.find('.slds-tabs_defa...
test/expected.js
sheerun/prettier-standard
import React from 'react' class Example extends React.Component { state = { foo: 'bar' } async render () { const foo = await import('sdaf') const { whatever } = loooooooooooooooooooooooong[ something ].some.thiiiiiiiiiiiiing[0] return <div foo='bar' /> } }
assets/app/components/App/index.js
chernyshof/react-phoenix-users-boilerplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import DocumentTitle from 'react-document-title'; import { logout } from 'actions/session'; export class App extends Component { render() { const { username } = this.props; retu...
src/renderer/windows/lastFM.js
petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL-
import { remote } from 'electron'; import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import LastFmPage from '../ui/pages/LastFmPage'; injectTapEventPlugin(); ReactDOM.render(<LastFmPage />, document.querySelector('#last-fm-window')); remote.getCur...
app/components/chart/header.js
hichameyessou/blip
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program...
node_modules/react-router/es6/Redirect.js
jsg7440/jQuery-ToDo
'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e...
app/Components/Atoms/Text/TextInfo.js
martinvarelaaaa/tintina
import React from 'react'; import PropTypes from 'prop-types'; import { Text } from 'react-native'; import styles from './styles'; import theme from '../../../theme'; const { color } = theme; const TextInfo = ({ value, col, alignCenter }) => (alignCenter ? <Text style={[styles.infoCenter, { color: col }]}>{val...
src/client.js
TracklistMe/client-react
/** * 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 createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; // import io from 'socket.io-client'; imp...
app/components/RegisterForm/index.js
zmora-agh/zmora-ui
/** * * RegistrationView * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import Button from 'material-ui/Button'; import Card, { CardHeader, CardContent, CardActions } from 'material-ui/Card'; import { LinearProgress } from 'material-ui/Progress'; import { InputLabel } from 'material-ui/...
packages/playground/stories/RadioGroup.story.js
appearhere/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, number } from '@storybook/addon-knobs'; import { RadioGroup } from '@appearhere/bloom'; const stories = storiesOf('FormComponents', module); stories.addDecorator(withKnobs); ...
app/javascript/mastodon/features/ui/components/image_loader.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { LoadingBar } from 'react-redux-loading-bar'; import ZoomableImage from './zoomable_image'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, s...
src/routes/lienhedathang/index.js
luanlv/comhoavang
import React from 'react'; import Home from './Home'; import fetch from '../../core/fetch'; import needFetch from '../../core/needFetch'; import Layout from '../../components/Layout'; import {setData} from '../../actions/data' export default { path: '/lien-he-dat-hang', async action({ store, query, path }) { l...
src/connectMenu.js
codeart1st/react-contextmenu
import React, { Component } from 'react'; import ContextMenuTrigger from './ContextMenuTrigger'; import listener from './globalEventListener'; // collect ContextMenuTrigger's expected props to NOT pass them on as part of the context const ignoredTriggerProps = [...Object.keys(ContextMenuTrigger.propTypes), 'children'...
src/index.js
zainxyz/react-reads
import React from 'react'; import ReactDOM from 'react-dom'; import App from 'components/App'; import 'index.css'; ReactDOM.render(<App />, document.getElementById('root'));
public/src/shared/Header.js
thomasjosephgreco/rejection
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { logoutUser, resetUser } from '../user/actions'; class Header extends Component { static contextTypes = { router: PropTypes.object }; componentWil...
src/components/icons/BackIcon.js
maximgatilin/weathernow
import React from 'react'; export default function BackIcon(props) { return ( <svg className={props.styles} width="32" height="32" viewBox="0 0 32 32" fill="currentColor"> <path d="M12.444 9.778v-7.111l-12.444 12.444 12.444 12.444v-7.289c8.889 0 15.111 2.844 19.556 9.067-1.778-8.889-7.111-17.778-19.556-19.556z...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
lstNull/actor-platform
import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import Actor...
app/components/ProductRow.js
nosplashurinal/order-management
import React from 'react'; import PropTypes from 'prop-types'; const ProductRow = ({ data }) => <div> <p>{data.name} = {data.price} </p> </div>; ProductRow.propTypes = { data: PropTypes.object }; export default ProductRow;
imports/ui/components/spinkit/LoadingBars/LoadingBars.js
pletcher/cltk_frontend
import React from 'react'; export default class LoadingBars extends React.Component { render() { return ( <div className="loading-spinner loading-spinner-bars"> <div className="rect1"></div> <div className="rect2"></div> <div className="rect3"></div> <div className="rect4"></div> <div classNa...
src/components/Overlay/Overlay.js
temando/open-api-renderer
import React from 'react' import PropTypes from 'prop-types' import { styles } from './Overlay.styles' @styles export default class Overlay extends React.PureComponent { render () { const { children, classes } = this.props return <div className={classes.overlay}>{children}</div> } } Overlay.propTypes = {...
app/javascript/mastodon/features/ui/components/confirmation_modal.js
verniy6462/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; @injectIntl export default class ConfirmationModal extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, ...
src/component/user/index.js
Cadburylion/personal-portfolio
import React from 'react' import {connect} from 'react-redux' import * as user from '../../action/user.js' import * as viewActions from '../../action/viewActions.js' import './style.scss' class User extends React.Component { constructor(props){ super(props) this.state={ name: '', portr...
packages/idyll-document/src/components/placeholder.js
idyll-lang/idyll
import React from 'react'; export const generatePlaceholder = (name) => { return class extends React.PureComponent { constructor(props) { super(props); console.warn(`Warning: attempting to use component named ${name}, but it wasn't found`); } render() { const { idyll, updateProps, hasE...
examples/js/style/tr-class-string-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
app/Post.js
mtreilly/react-native-wordpress
import React from 'react'; import { Text, View } from 'react-native'; export default Post = function(props) { if (props.featured === true) { return ( <View style={{backgroundColor: 'red'}}> <Text style={{color: 'white'}}>Post Title: {props.title}</Text> <Text st...
src/utils/defaultArrowRenderer.js
paulmillr/react-select
import React from 'react'; export default function arrowRenderer ({ onMouseDown }) { return ( <span className="Select-arrow" onMouseDown={onMouseDown} /> ); };
pages/api/grow.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './grow.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/admin/app/features/auth/components/user.js
jgretz/node-bits-admin
import React from 'react'; import {connect} from 'react-redux'; import FontAwesome from 'react-fontawesome'; import {logout} from '../actions'; import {userSelector, loginInfoSelector} from '../selectors'; const user = ({user, loginInfo, logout}) => { if (!user || !loginInfo) { return null; } return ( ...