path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/src/components/App.js
jobn/iceman
// @flow import React, { Component } from 'react'; import { Route, Redirect, withRouter } from 'react-router-dom' import { connect } from 'react-redux'; import { authenticationSelector } from '../selectors/authentication' import Dashboard from './Dashboard' type Props = { authenticated: boolean, } class App extends...
src/views/PostManage/AddEditPostBox.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Form, Button, Input, Row, Col, message, Modal, Radio } from 'antd' import Spin from 'COMPONENT/effects/Spin' import { closeAddEditBox, addPostList, modifyPost } from 'REDUCER/pages/postManage' const Form...
webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js
johnpmitsch/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Alert, Spinner } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import loadRepositorySetRepos from '../../../redux/actions/RedHatRepositories/repositorySet...
containers/counter.js
gor181/react-redux-simple-counter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actions from '../actions/Counter.actions'; const Counter = React.createClass({ displayName: 'Counter', render() { const { increment, decrement, count } = this.props;...
src/components/AppRoutes.js
rksaxena/wedding
// src/components/AppRoutes.js import React from 'react'; import { Router, browserHistory } from 'react-router'; import routes from '../routes'; export default class AppRoutes extends React.Component { render() { return ( <Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo(0, 0...
src/skeletons/firstIter/layout/sidebar/Separator.js
WapGeaR/react-redux-boilerplate-auth
import React from 'react' export default class Component extends React.Component { constructor(props) { super(props); } render() { return(<li className="nav-separator">{this.props.name}</li>) } }
src/templates/feeds/components/FeedSubject.js
PatrickHai/react-client-changers
import React from 'react'; class FeedSubject extends React.Component{ render(){ let subject = this.props.subject; if(this.props.type === 0){ return ( <div className="subject"> <img className="hotel-logo" src={subject.logo} /> <div className="hotel"> <span classNa...
src/svg-icons/action/settings-input-composite.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComposite = (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....
src/client/app/header.react.js
messa/itsrazy.cz-web
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; import {Link} from 'react-router'; export default class Header extends Component { static propTypes = { msg: React.PropTypes.object.isRequired, viewer: React.PropTypes.object ...
client/index.js
jhabdas/12roads
import 'babel-polyfill' import { trigger } from 'redial' import React from 'react' import ReactDOM from 'react-dom' import Router from 'react-router/lib/Router' import match from 'react-router/lib/match' import browserHistory from 'react-router/lib/browserHistory' import { Provider } from 'react-redux' import { StyleS...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupFloated.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleGroupFloated = () => ( <div> <Button.Group floated='left'> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </Button.Group> <Button.Group floated='right'> <Button>One</Button> ...
src/svg-icons/action/view-list.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList = pure(ActionViewList); Actio...
src/parser/shared/modules/items/bfa/enchants/Navigation.js
sMteX/WoWAnalyzer
import React from 'react'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticBox from 'interface/others/StatisticBox'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; import UptimeI...
src/header.js
jenstitterness/pix
import _ from 'lodash'; import React from 'react'; import Colors from 'material-ui/lib/styles/colors'; import FontIcon from 'material-ui/lib/font-icon'; import DropDownMenu from 'material-ui/lib/drop-down-menu'; import DropDownIcon from 'material-ui/lib/drop-down-icon'; import Toolbar from 'material-ui/lib/toolbar/tool...
src/routes/home/index.js
codyromano/destiny
import React from 'react'; import Home from './Home'; export default { path: '/', action() { return <Home/>; } };
webpack/__mocks__/foremanReact/components/SearchBar.js
theforeman/foreman_remote_execution
import React from 'react'; import PropTypes from 'prop-types'; const SearchBar = ({ onChange }) => ( <input className="foreman-search" onChange={onChange} placeholder="Filter..." /> ); export default SearchBar; SearchBar.propTypes = { onChange: PropTypes.func, }; SearchBar.defaultProps = { onChan...
src/parser/shared/modules/items/PrePotion.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import SPECS from 'game/SPECS'; import ITEMS from 'common/ITEMS/index'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import ItemLink from 'common/ItemLink'; import Analyzer from 'parser/core/Analyzer'; import SUGGESTION_IMPORTANCE from 'parser/...
src/main/jsx/client/BuildMetricsPageActions.js
suryagaddipati/DotCi
import ReactDOM from 'react-dom'; import React from 'react'; import BuildMetricsPage from './../pages/BuildMetricsPage.jsx'; import {job} from './../api/Api.jsx'; import {removeFilter,addFilter} from './../api/Api.jsx'; import Drawer from './../Drawer.jsx'; function dataChange(buildMetrics){ ReactDOM.render(<Build...
src/components/Sidebar/index.js
civic-tech-lab/commonplace-frontend
// @flow import React from 'react'; import Root from './Root'; const Sidebar = () => <Root>Sidebar goes here</Root>; export default Sidebar;
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js
C0deSamurai/muzjiks
// TODO: This module should be ElementChildren, and should use named exports. import React from 'react'; /** * Iterates through children that are typically specified as `props.children`, * but only maps over children that are "valid components". * * The mapFunction provided index will be normalised to the compone...
examples/macosx/segment-control.js
firejune/react-desktop-playground
import React, { Component } from 'react'; import { SegmentedControl, Box, Window, TitleBar, Toolbar, Form, Label, Button, TextInput } from 'react-desktop/osx'; export default class extends Component { constructor() { super(); this.state = {selectedTab: 'login'}; } render() { return ( <Window ...
fields/types/html/editor/quote/block-quote-editing-block.js
nickhsine/keystone
'use strict'; import EntityEditingBlockMixin from '../mixins/entity-editing-block-mixin'; import React from 'react'; class BlockQuoteEditingBlock extends EntityEditingBlockMixin(React.Component) { constructor (props) { super(props); } // overwrite EntityEditingBlock._composeEditingFields _composeEditingFields (...
src/js/ui/components/errorMessage.js
heartnotes/heartnotes
import React from 'react'; module.exports = React.createClass({ propTypes: { error: React.PropTypes.object.isRequired, }, render() { return ( <div className="error-message">{'' + this.props.error}</div> ); } });
src/components/Skills/SkillIcon.js
ICalvinG/icalving.github.io
import React from 'react'; import PropTypes from 'prop-types'; // Components import SkillLevel from './SkillLevel.js'; const SkillIcon = ({ type, level }) => ( <div className="skill__icon-container"> <i className={`devicon-${type}-plain skill__icon`}></i> <SkillLevel level={level} /> </div> ); SkillIcon....
src/components/topic/description/render-content.js
nickhsine/twreporter-react
import { renderElement as renderV2Element } from '@twreporter/react-article-components/lib/components/body' import { sourceHanSansTC as fontWeight } from '@twreporter/core/lib/constants/font-weight' import alignmentConsts from '@twreporter/react-article-components/lib/constants/element-alignment' import ArticleYoutube ...
Libraries/Components/TextInput/TextInput.js
Livyli/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/components/NameFilterForm/NameFilterForm.js
labzero/lunch
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './NameFilterForm.scss'; class NameFilterForm extends Component { static propTypes = { nameFilter: PropTypes.string.isRequired, restaurantIds: PropTypes...
packages/material-ui-icons/src/FiberSmartRecord.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><g><circle cx="9" cy="12" r="8" /><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z" /></g></g> , 'FiberSmartRecord');
examples/files/gestures/panResponder.js
dabbott/react-native-express
import React from 'react' import { StyleSheet, Text, View } from 'react-native' import usePanResponder from './usePanResponder' export default function App() { const [state, panHandlers] = usePanResponder() const { dragging, initialY, initialX, offsetY, offsetX } = state const style = { backgroundColor: d...
app/javascript/mastodon/features/compose/components/search.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
clients/packages/admin-client/src/components/data-grid/hocs/data-grid-hoc.js
nossas/bonde-client
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' export default ({ rowComponent: RowComponent }) => (WrappedComponent) => { class PP extends React.Component { render () { const { children, data, fieldIndex, rowI...
src/index.js
loadedsith/smb3memories
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import App from './app/containers/App'; import configureStore from './app/store/configureStore'; import './index.scss'; const store = configureStore(); render( <Provider store={store}> <...
src/browser/lib/Loading.react.js
nikolalosic/este-app--assignment
import './Loading.scss'; import Component from 'react-pure-render/component'; import Helmet from 'react-helmet'; import React from 'react'; import { FormattedMessage, defineMessages } from 'react-intl'; const messages = defineMessages({ loadingText: { defaultMessage: 'Loading', id: 'loading.loadingText' },...
app/src/index.js
pqmcgill/greenlight-archives
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( <Router> <App /> </Router>, document.getElementById('root') );...
framework/react/react-tutorials/src/demo/clock/ClockClass.js
yhtml5/YHTML5-Tutorial
import React from 'react'; class Clock extends React.Component { constructor(props) { super(props); this.state = {date: new Date()}; console.log('constructor: ', this) } componentDidMount() { this.timerID = setInterval( () => this.tick(), 1000 ...
src/components/Meetup.js
bow-paris/bow-paris.github.io
import React from 'react' export default ({ name, logo, backgroundColor = 'transparent', isPartner = false, }) => ( <li className={`meetup${isPartner ? ' partner' : ''}`}> <img src={logo} width="auto" alt="" height="100px" style={{ backgroundColor }} /> <p>{name}</p>...
definitions/npm/react-helmet_v3.x.x/test_react-helmet.js
altano/flow-typed
// @flow import React from 'react'; import Helmet from 'react-helmet'; const HelmetComponent = () => ( <Helmet htmlAttributes={{"lang": "en", "amp": undefined}} // amp takes no value title="My Title" titleTemplate="MySite.com - %s" defaultTitle="My Default Title" base={{"target": "_blank", "href":...
ui/src/components/App/App.js
ebradshaw/insight
import React, { Component } from 'react'; import Navigation from '../Navigation/Navigation' import Footer from '../Footer/Footer' import SearchBar from '../SearchBar/SearchBar' import Metrics from '../Metrics/Metrics' import ResultsTable from '../ResultsTable/ResultsTable' import Grid from 'react-bootstrap/lib/Grid' i...
client/admin/settings/inputs/BooleanSettingInput.js
subesokun/Rocket.Chat
import { Field, ToggleSwitch } from '@rocket.chat/fuselage'; import React from 'react'; import { ResetSettingButton } from '../ResetSettingButton'; export function BooleanSettingInput({ _id, label, disabled, readonly, value, hasResetButton, onChangeValue, onResetButtonClick, }) { const handleChange = (event)...
src/svg-icons/av/av-timer.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
tests/fixtures/fixture-blog-post-jsx.js
brekk/glass-menagerie
import React from 'react' const {PropTypes: types} = React export const propTypes = { title: types.string, number: types.number, description: types.string } export const Blog = (props) => (<div className="blog-post"> <h1>{props.title}</h1> <strong>{props.number}</strong> <p>{props.description}</p> </div>) B...
packages/mineral-ui-icons/src/IconSpeakerPhone.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 IconSpeakerPhone(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
src/routes/home/index.js
niketpathak/npk-website
/** * @author Niket Pathak. (http://www.niketpathak.com/) * * Copyright © 2014-present. 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 Home from './Home'; import Layout fr...
examples/huge-apps/components/Dashboard.js
rdjpalmer/react-router
import React from 'react' import { Link } from 'react-router' class Dashboard extends React.Component { render() { const { courses } = this.props return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of you...
src/components/ShareExperience/common/SubmitArea.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { Link } from 'react-router-dom'; import ButtonSubmit from 'common/button/ButtonSubmit'; import Checkbox from 'common/form/Checkbox'; import Modal from 'common/Modal'; const SubmitArea = (...
packages/material-ui-icons/src/LaptopMac.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 18c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2H0c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2h-4zM4 5h16v11H4V5zm8 14c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z" /></g> ...
node_modules/react-router/es/Redirect.js
saltypaul/SnipTodo
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.st...
src/components/InterestedForm.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import SignInUp from './SignInUp'; import { FormattedMessage } from 'react-intl'; class InterestedForm extends React.Component { static propTypes = { onSubmit: PropTypes.func, }; constructor(props) { super(props); this.onSubmit = props.o...
src/layouts/PageLayout/PageLayout.js
janoist1/route-share
import React from 'react' import PropTypes from 'prop-types' import NavBar from '../../components/NavBar' import './PageLayout.scss' export const PageLayout = ({ children }) => ( <div className='container-element d-flex flex-column'> <NavBar /> <div className='d-flex align-items-stretch page-layout__viewpor...
packages/react-server-examples/bike-share/components/footer.js
doug-wade/react-server
import React from 'react'; import {logging} from 'react-server'; const logger = logging.getLogger(__LOGGER__); export default () => { logger.info('rendering the footer'); return (<div className="footer"> <span>Brought to you by </span> <a href="http://github.com/redfin/react-server">React Server</a> <span> an...
server/sonar-web/src/main/js/apps/account/components/Favorites.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/Before/app/containers/LinkListContainer/index.js
phiratio/Pluralsight-materials
/* * * LinkListContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectLinkListContainer from './selectors'; import LinkList from '../../components/LinkList'; import { requestLinks } from './actions'; export class LinkListContainer extends React.Component { // eslint-disable-...
src/components/DatePicker/example.js
InsideSalesOfficial/insidesales-components
// A simple dexample wrapper for use in stories only. Not intended for use as // an app component // TODO: Create another decorator for being able to display the markup of each example import React from 'react'; import styled from 'styled-components'; import { colors } from '../styles/colors'; import { fontSizes, f...
examples/counter/index.js
glifchits/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
client/src/pages/login/ResetForm.js
ccwukong/lfcommerce-react
import React from 'react'; import PropTypes from 'prop-types'; import { Formik, Form } from 'formik'; import * as Yup from 'yup'; import { injectIntl, FormattedMessage } from 'react-intl'; import { Input, Button } from 'reactstrap'; const accountValidation = Yup.object().shape({ username: Yup.string().required('Requ...
src/views/App.js
Afrostream/react-redux-universal-hot-example
/*global __CLIENT__*/ import React from 'react'; import {Link} from 'react-router'; import {load} from '../actions/infoActions'; import InfoBar from '../components/InfoBar'; if (__CLIENT__) { require('./App.scss'); } export default class App { render() { return ( <div className="container app"> <...
src/scene/GroupPurchase/GroupPurchaseCell.js
Cowboy1995/JZWXZ
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Image } from 'react-native'; import { Heading1, Heading2, Paragraph } from '../.....
site/components/NavBar.js
colbyr/react-dnd
import React from 'react'; import { DOCS_DEFAULT, EXAMPLES_DEFAULT } from '../Constants'; import './NavBar.less'; const GITHUB_URL = 'https://github.com/gaearon/react-dnd'; const DOCS_LOCATION = DOCS_DEFAULT.location; const EXAMPLES_LOCATION = EXAMPLES_DEFAULT.location; export default class NavBar { render() { ...
src/components/Context.js
gaearon/react-redux
import React from 'react' export const ReactReduxContext = React.createContext(null) export default ReactReduxContext
src/svg-icons/notification/do-not-disturb-alt.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbAlt = (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 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8...
client/modules/Home/components/HomeTabs.js
XuHaoJun/tiamat
import React from 'react'; import PropTypes from 'prop-types'; import _reduce from 'lodash/reduce'; import { shouldComponentUpdate } from 'react-immutable-render-mixin'; import Tabs, { Tab } from '../../../components/Tabs'; import ForumBoardList from '../../ForumBoard/components/ForumBoardList'; import EnhancedSwipea...
techCurriculum/ui/solutions/2.5/src/components/Message.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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...
admin/client/App/components/Footer/index.js
cermati/keystone
/** * The global Footer, displays a link to the website and the current Keystone * version in use */ import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; import { Container } from '../../elemental'; import theme from '../../../theme'; var Footer = React.createClass({ displayName: '...
src/svg-icons/social/pages.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPages = (props) => ( <SvgIcon {...props}> <path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/...
src/components/MainContainer/MainContainer.js
ateev/starWars
import React, { Component } from 'react'; import { readBrowserCookie } from '../../helpers/cookieHandler.js'; import { checkCreds } from '../../actions/userActions.js'; import Login from '../Login/login.js'; import PlanetsContainer from '../PlanetsContainer/PlanetsContainer'; import { connect } from 'react-redux'; cla...
src/components/todos/todos-header.js
MaxMooc/react-gallery
import React from 'react'; class Header extends React.Component{ constructor(props){ super(props); this.state = { value: '' } } handleChange = (e) =>{ this.setState({ value: e.target.value }) } handleKeyDown = (e) => { if(e.key...
src/scenes/home/mentor/mentorRequestsTable/mentorRequestsTable.js
miaket/operationcode_frontend
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import { MENTOR_REQUEST_COLUMNS } from 'shared/constants/table'; import * as ApiHelpers from 'shared/utils/apiHelper'; import IndexTable from 'shared/components/indexTable/indexTable'; import Reque...
src/index.js
nick81/portfolio
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();
src/helpers/Html.js
PhilNorfleet/pBot
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom/server'; import serialize from 'serialize-javascript'; import Helmet from 'react-helmet'; /** * Wrapper component containing HTML metadata and boilerplate tags. * Used in server-side code only to wrap the st...
app/components/AvatarGrid/index.js
ReelTalkers/reeltalk-web
/** * * AvatarGrid * */ import React from 'react' import styles from './styles.css' function AvatarGrid() { return ( <div className={ styles.avatarGrid }> </div> ) } export default AvatarGrid
src/components/tabPhotos/PhotoAlbum.js
timLoewel/sites
'use strict'; import React from 'react'; import ReactNative from 'react-native'; import {newObjectId} from '../../utils/objectId'; import getDimensions from '../../utils/dimensions'; import LightBox from './Lightbox.android'; let { Image, ListView, TouchableOpacity, View, RefreshControl, LayoutAnimation, } = Rea...
src/playlist-container.js
cutofmyjib/podcast-house
import React, { Component } from 'react'; import Playlist from './playlists' export default class PlaylistContainer extends Component { render() { // const podcastPlaylists = this.props.data.map(function(data){ // return <Playlist {...data} /> // }) const podcastPlaylists = this.props.data.map((dat...
examples/react-redux-example/app/todomvc/index.js
demones/react-guide
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); render( <Provider store={store}> <App /> </Provide...
src/index.js
Dremora/mondo-hackathon-webapp
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; import { Router, Route, Link } from 'react-router' import { createHistory } from 'history' import moment from 'moment' moment.locale('en-gb') render(( <Router history={createHistory()}> <Route path="/" component={App}> ...
spa/react-stateless/client-demo/src/components/Nav.js
networknt/light-java-example
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import '../App.css'; class Nav extends Component { render() { return ( <nav className="navbar navbar-default"> <div className="navbar-header"> <Link className="navbar-brand" to="/">OAuth 2.0 JWT Demo</Link...
tests/react/default_props_undefined.js
TiddoLangerak/flow
// @flow import React from 'react'; class Foo extends React.Component<{bar: number}, void> { static defaultProps = {bar: 42}; } <Foo bar={42}/>; // OK <Foo bar="42"/>; // Error <Foo bar={undefined}/>; // OK: React will replace `undefined` with the default.
server/sonar-web/src/main/js/apps/about/components/AboutScanners.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/components/BeerBarsComponent.js
jezzasan/taproom-react
'use strict'; import React from 'react'; let BeerBarsListComponent = require('./BeerBarsListComponent.js'); class BeerBarsComponent extends React.Component { constructor(props) { super(props); this.state= { bars: null, ready: false }; } componentDidMount() { //Have to do DB call in ...
test/test_helper.js
pornvutp/tact
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/react-icons/fa/sort-alpha-asc.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaSortAlphaAsc extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m27.6 9.1h3.9l-1.6-4.9-0.2-1q-0.1-0.4-0.1-0.5h-0.1l0 0.5q0 0-0.1 0.4t-0...
node_modules/react-icons/md/desktop-windows.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdDesktopWindows = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 26.6v-20h-30v20h30z m0-23.2c1.8 0 3.4 1.4 3.4 3.2v20c0 1.8-1.6 3.4-3.4 3.4h-11.6v3.4h3.2v3.2h-13.2v-3.2h3.2v-3.4h-11.6c-1.8 0-3.4-1.6-3.4-3.4v-20c0-1.8 1.6...
debugger/function-tree-debugger/src/components/Debugger/Signals/index.js
idream3/cerebral
import './styles.css' import React from 'react' import classNames from 'classnames' import {connect} from 'cerebral/react' import signalsList from '../../../common/computed/signalsList' import connector from 'connector' import List from './List' import Signal from './Signal' export default connect({ currentPage: 'd...
packages/material-ui-icons/src/Loop.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4....
src/svg-icons/action/timeline.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTimeline = (props) => ( <SvgIcon {...props}> <path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07...
src/js/components/n-icon.js
bradwoo8621/parrot2
import React from 'react' import ReactDOM from 'react-dom' import jQuery from 'jquery' import classnames from 'classnames' let $ = jQuery; import {Envs} from '../envs' import {NComponent} from './n-component' let prefixFA = function(str) { if (str) { return str.split(' ').map(classname => { if (classname.startsW...
src/interface/character/Search.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import SelectSearch from 'react-select-search'; import { Trans, t } from '@lingui/macro'; import REALMS from 'common/REALMS'; import { makeCharacterApiUrl } from 'common/makeApiUrl'; import { i18n } from 'inte...
src/utils/reactUtils.js
vikrantd/excel-react-redux
import React from 'react'; export function h(...args) { const p = args[1]; if (typeof p === 'string' || typeof p === 'number' || Array.isArray(p) || React.isValidElement(p)) { args.splice(1, 0, null); } return React.createElement(...args); } export function classNames(names) { return Object.keys(names)....
blueocean-material-icons/src/js/components/svg-icons/action/open-with.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionOpenWith = (props) => ( <SvgIcon {...props}> <path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/> </SvgIcon> ); ActionOpenWith.displayName = 'ActionOpenWith'; ActionOpenW...
app/components/LoadingIndicator/Circle.js
andresol/homepage
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const circleFadeDelay = keyframes` 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } `; const Circle = (props) => { const CirclePrimitive = styled.div` width: 100%; heigh...
src/js/components/icons/base/DocumentText.js
odedre/grommet-final
/** * @description DocumentText SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. ...
storybook/stories/bar-stack/index.js
JesperLekland/react-native-svg-charts
import React from 'react' import { storiesOf } from '@storybook/react-native' import Standard from './standard' import Horizontal from './horizontal' import WithOnPress from './with-on-press' import Grouped from './grouped' import HorizontalGrouped from './horizontal-grouped' import ShowcaseCard from '../showcase-card...
app/javascript/mastodon/features/bookmarked_statuses/index.js
kazh98/social.arnip.org
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks'; import Column from '../ui/components/column'; import ColumnHeader...
thinking-in-react/04_identify_where_your_state_should_live/program.js
kwpeters/workshopper-solutions
import React from 'react'; export const ProductCategoryRow = React.createClass({ render() { return ( <tr> <th colSpan={2}>{this.props.category}</th> </tr> ); } }); export const ProductRow = React.createClass({ render() { const product = this....
src/components/buttons/demos/FabPrimary.js
isogon/material-components
import React from 'react' import { Button, Icon } from '../../../' export default () => ( <Button fab primary> <Icon name="add" /> </Button> )
app/javascript/mastodon/features/compose/components/upload_progress.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import Icon from 'mastodon/components/icon'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes.b...
client/js/components/Hello.js
maoqifeng/hello-react
import React from 'react' class Hello extends React.Component { render() { return <div className = 'hello'> Helo </div> } } export default Hello
src/components/HomePage.js
oshalygin/react-slingshot
import React from 'react'; import {Link} from 'react-router'; const HomePage = () => { return ( <div> <h1>React Slingshot</h1> <h2>Get Started</h2> <ol> <li>Review the <Link to="fuel-savings">demo app</Link></li> <li>Remove the demo and start coding: npm run remove-demo</li> ...
src/server.js
mattijsbliek/record-client
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...
pages/api/switch-base.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './switch-base.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/svg-icons/places/fitness-center.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFitnessCenter = (props) => ( <SvgIcon {...props}> <path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 ...