path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
admin/client/App/shared/Kbd.js
ONode/keystone
import React from 'react'; import { css } from 'glamor'; import theme from '../../theme'; import { darken, lighten } from '../../utils/color'; function Kbd ({ className, ...props }) { props.className = css(classes.kbd); return <kbd {...props} />; }; const classes = { kbd: { backgroundColor: theme.color.body, ...
src/components/forms/ArticleFormComponent.js
tobias2801/app_gestoria
import React, { Component } from 'react'; export default class ArticleForm extends Component { constructor() { super(); } render() { return ( <div className="custom-form"> <h1>Nuevo Art&iacute;culo</h1> <div className="form-group"> ...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/FormControlFeedback.js
OpenKGB/webcode
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/entry.js
bj75326/react-switch
/** * Created by jibin on 17/3/2. */ import React from 'react'; import {render} from 'react-dom'; import Test from './components/Test.js'; import initReactFastClick from 'react-fastclick'; initReactFastClick(); render(<Test />, document.querySelector("#App"));
src/packages/toolbar-button/src/TeamInfo.js
MikkCZ/pontoon-tools
import React from 'react'; import ReactTimeAgo from 'react-time-ago'; import { TeamInfoListItem } from './TeamInfoListItem'; import { BottomLink } from './BottomLink'; import lightbulbIcon from './static/img/lightbulb-blue.svg' import 'Commons/static/css/pontoon.css'; import './TeamInfo.css'; if (!browser) { // eslint-...
app/components/Home.js
EmmaLa/GifScrapper
// @flow import React, { Component } from 'react'; import Gif from './gif'; import { Link } from 'react-router'; import { Grid } from 'semantic-ui-react' import R from 'ramda'; let key = 0; const createKey = R.compose(R.join(''), R.map( gif => gif.id )); export default class Home extends Component { constructor(.....
src/app/pages/Todo/Todo.js
batazor/LMap
import React from 'react' // eslint-disable-line no-unused-vars import TodoApp from '../../components/TodoApp' import Header from '../../components/Header' import Menu from '../../components/Menu' import Chat from '../../components/Chat' import menuItem from '../../data/menu.json' const Todo = () => ( <div classNam...
src/containers/Search/Search.js
polinazolotukhina/redux-movieDB
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators} from 'redux'; import * as actions from '../../actions/moviesActions'; import List from '../../components/List'; class Search extends React.Component { constructor(props){ supe...
src/components/DeveloperMenu.android.js
NerdySoft/BeQuite
import React from 'react'; import * as snapshot from '../utils/snapshot'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button in the bottom right corner of the screen. * ON...
manager/src/components/common/Base.js
victorditadi/IQApp
import React, { Component } from 'react'; import { View, Text, Image, Dimensions } from 'react-native'; import { Container, Content, Icon } from 'native-base'; var width = Dimensions.get('window').width; var height = Dimensions.get('window').height; const styles = { fundoLogo: { flex: 1, marginTop:...
src/main.js
SLP-KBIT/react15-hot-loading-webpack-umd-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './components/App'; const el = document.getElementById('root'); const render = Component => { ReactDOM.render( <AppContainer> <Component /> </AppContainer>, el ); } rend...
app/screens/AccountDetails/components/SingletonAccountSwiper/SingletonAccountSwiperView.js
JSSolutions/Perfi
import React from 'react'; import T from 'prop-types'; import Swiper from 'react-native-swiper'; import { View, Text } from 'react-native'; import s from './styles'; const AccauntsSwiper = ({ onIndexChanged, accounts, initialId }) => ( <View style={s.wrapper}> <Swiper loop index={initialId} sh...
example/src/app/app.js
yarcub/twiliojs-redux
import {middleware} from 'twiliojs-redux'; import {createStore, applyMiddleware, compose} from 'redux'; import {devTools} from 'redux-devtools'; import {Provider} from 'react-redux' import Twilio from 'Twilio'; import fetch from 'isomorphic-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import { D...
frontend/src/views/promotion/new_promotion_form.js
felipear89/promotion-admin
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import Autosuggest from 'react-autosuggest'; import axios from 'axios'; /* --------------- */ /* Utils */ /* --------------- */ function getMatchingItem(list, value) { const escapedValue = escapeRegexCharacters(value.t...
node_modules/react-router/es/MemoryRouter.js
SuperUncleCat/ServerMonitoring
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
blueprints/smart/files/__root__/containers/__name__.js
bhoomit/formula-editor
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const...
src/RichText.js
aperezdc/matrix-react-sdk
import React from 'react'; import { Editor, EditorState, Modifier, ContentState, ContentBlock, convertFromHTML, DefaultDraftBlockRenderMap, DefaultDraftInlineStyle, CompositeDecorator, SelectionState, Entity, } from 'draft-js'; import * as sdk from './index'; import * as emoj...
app/javascript/mastodon/features/ui/components/mute_modal.js
Chronister/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; import { muteAccount }...
src/index.js
JEFT-hai/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
quiver_engine/quiverboard/src/components/ModelGraph/index.js
jakebian/quiver
import React from 'react'; import cytoscape from 'cytoscape'; import cydagre from 'cytoscape-dagre'; import dagre from 'dagre'; import { computeCytoscapeGraph } from './util'; import './style.scss'; export default class ModelGraph extends React.Component { static propTypes = { modelConfig: React.PropType...
src/svg-icons/av/high-quality.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHighQuality = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1....
docs/src/pages/demos/drawers/ResponsiveDrawer.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Drawer from 'material-ui/Drawer'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import List from 'material-ui/List'; import Typography from 'material-ui/Typography...
docs/app/Examples/elements/Segment/States/SegmentDisabledExample.js
jcarbo/stardust
import React from 'react' import { Segment } from 'stardust' const SegmentDisabledExample = () => ( <Segment disabled> Disabled content </Segment> ) export default SegmentDisabledExample
packages/material-ui-icons/src/LocalFlorist.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LocalFlorist = props => <SvgIcon {...props}> <path d="M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5l...
frontend/src/components/ChallengePage.js
beelzebielsk/hoopla
import React, { Component } from 'react'; import '../styles/challengepage.css'; import { Button, Input } from 'react-materialize'; import Comment from './CommentCard'; class ChallengePage extends Component { render() { return ( <div> <div className="center-page"> ...
actor-apps/app-web/src/app/components/Main.react.js
supertanglang/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
src/components/BoardHeader/BoardActions/BoardActionAdd/index.js
patrickdoane/kantab
import React, { Component } from 'react'; import { Grid, Icon } from 'semantic-ui-react'; import './styles.css'; class BoardActionAdd extends Component { render() { return( <Grid.Column className='board-header-column-add' width={1} verticalAlign='middle'> <Icon name='add' /> </Grid.Column> ...
blueocean-material-icons/src/js/components/svg-icons/image/center-focus-strong.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCenterFocusStrong = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1...
src/svg-icons/image/filter-drama.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterDrama = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4...
src/form/AutocompleteField.js
carab/Pinarium
import React from 'react' import {observer} from 'mobx-react-lite' import {useTranslation} from 'react-i18next/hooks' import Downshift from 'downshift' import {makeStyles} from '@material-ui/styles' import Paper from '@material-ui/core/Paper' import MenuItem from '@material-ui/core/MenuItem' import ListItemText from '@...
frontend/src/components/partners/profile/modals/selectYearModal/selectYearModal.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Typography from 'material-ui/Typography'; import Button from 'material-ui/Button'; import { withStyles } from 'material-ui/styles'; import Input from 'material-ui/Input'; import { FormHelperText } from 'material-ui/Form'; import Contro...
source/settings.js
jspear29/electro
import React from 'react'; import Dom from 'react-dom'; import Settings from './components/Settings.react.js'; import debug from 'debug-menu'; Dom.render(<Settings/>, document.getElementById('settings')); debug.install();
src/component/TableRowComponent.js
NHAAHNA/hms
import React from 'react'; export class TableRow extends React.Component { constructor(props){ super(props); console.log("TableRow -> constructor -> ",this.props) } render() { return ( <tr> <td>{this.props.data.username}</td> <td>{this.pr...
blueocean-material-icons/src/js/components/svg-icons/action/view-list.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList.displayName = 'ActionViewList'; ActionViewList.muiName = 'SvgI...
examples/todo/js/components/TodoTextInput.js
netarc/refrax
import React from 'react'; import ReactDOM from 'react-dom'; var {PropTypes} = React; var ENTER_KEY_CODE = 13; var ESC_KEY_CODE = 27; export default class TodoTextInput extends React.Component { static defaultProps = { commitOnBlur: false }; static propTypes = { className: PropTypes.string, commitO...
pootle/static/js/shared/components/LayeredComponent.js
claudep/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. * * Original idea: https://github.com/Khan/react-components ...
frontend/src/components/icons/Patch.js
webrecorder/webrecorder
import React from 'react'; function Patch() { return ( <svg version="1.1" id="svg2" viewBox="0 0 48 48.000001" height="48" width="48"> <g transform="translate(0,-1004.3622)" id="layer1"> <path id="rect4140" d="m 38.024745,1008.4458 c -2.285133,-2.2851 -6.017461,-2.233 -8.367891,0.1174 l -25.4558439...
src/client/products/productDetails.js
r3dDoX/geekplanet
import green from '@material-ui/core/colors/green'; import grey from '@material-ui/core/colors/grey'; import Divider from '@material-ui/core/Divider'; import PropTypes from 'prop-types'; import React from 'react'; import { Helmet } from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } f...
src/svg-icons/editor/vertical-align-bottom.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignBottom = (props) => ( <SvgIcon {...props}> <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom); EditorVertical...
src/components/atoms/Avatar/_stories.js
ygoto3/artwork-manager
import React from 'react'; import { Avatar } from './index'; module.exports = stories => ( ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'] .reduce((s, size) => ( s.add( `size: ${size}`, () => ( <Avatar {...{[size]: true}} src="https://placeimg.com/100/100/any" /> ) ) ), stories) );
modules/Link.js
arbas/react-router
import React from 'react' import warning from 'warning' const { bool, object, string, func } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } function isEmptyObject(obj...
client/App.js
Vandivier/document-hello-world-docker-test
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import IntlWrapper from './containers/Intl/IntlWrapper'; // Import Routes import routes from './routes'; // Base stylesheet require('./main.css'); export default functio...
src/meta/CategoryList.js
guanzhou-zhao/calculate-cabinet-plan
import React, { Component } from 'react'; import _ from 'lodash'; import Category from '../model/Category'; import defaultState from './config'; import CalculatePlanList from './CalculatePlanList' export default class CategoryList extends Component { constructor(props) { super(props); this.getCategoryList = ...
examples/counter/containers/App.js
quicksnap/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
src/app/index.js
cfrend/cyuIO
import React from 'react'; import { render } from "react-dom"; import { Header } from "./components/Header"; import { Product } from "./components/Product"; import { Order } from "./components/Order"; import { QA } from "./components/QA"; import { IP } from "./components/IP"; import { Footer } from "./components/Foote...
node_modules/react-router/es6/Route.js
Giuny/Giuny.github.io
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...
src/components/Sidebar.js
josephfusco/APFT
import React from 'react'; import './Sidebar.css'; class Sidebar extends React.Component { render() { return( <aside className="Sidebar"> <fieldset> <legend>AGE</legend> <div className="control"> <div className="ag...
EduChainApp/js/tabs/team/MemberRow.js
bkrem/educhain
/** * * @flow */ 'use strict'; import React from 'react'; import { Text, View, TouchableOpacity, StyleSheet } from 'react-native'; type Props = { member: { name: string; username: string; score: string; } } export default class MemberRow extends React.Component ...
src/account/AccountPickScreen.js
saketkumar95/zulip-mobile
/* @flow */ import React from 'react'; import { ScrollView, StyleSheet, View } from 'react-native'; import { connect } from 'react-redux'; import { Auth, PushRouteAction } from '../types'; import boundActions from '../boundActions'; import { getAuth } from '../account/accountSelectors'; import { ZulipButton, Logo, Scr...
node_modules/react-bootstrap/es/SplitToggle.js
superKaigon/TheCave
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DropdownToggle fr...
app/javascript/mastodon/components/column_back_button.js
dwango/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length === 1)...
client/src/components/dashboard/Profile/Preferences/common/RibbonHeader.js
FCC-Alumni/alumni-network
import propTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; const Container = styled.div` margin-top: 8px !important; margin-bottom: 8px !important; cursor: pointer; display: table; `; const RibbonHeader = ({ content, id, onClick, saveSection, showPopUp, ...
src/Parser/Rogue/Subtlety/Modules/RogueCore/ComboPoints.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import resourceSuggest from 'Parser/Core/Modules/ResourceTracker/ResourceSuggest'; import ComboPointTracker from '../../../Common/...
react-ui/src/components/NewLocation.js
the-oem/happy-hour-power
import React, { Component } from 'react'; import { DAYS_OF_WEEK } from '../utils/constants'; import '../styles/NewLocation.css'; import Location from '../model/Location'; import HappyHour from '../model/HappyHour'; const initialState = { inputs: { day: '', startingHour: '', endingHour: '', drinkSpeci...
docs/static/js/21.af255cdf.chunk.js
yurizhang/ishow
webpackJsonp([21],{198:function(n,e,t){"use strict";function o(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function i(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?n:e}function ...
cmd/elwinator/src/components/ChoiceList.js
foolusion/choices
// @flow import React from 'react'; import { connect } from 'react-redux'; import { paramDeleteChoice } from '../actions'; const ChoiceList = ({ namespace, paramID, choices, weights, dispatch }) => { const choiceList = choices.map((c, i) => <tr key={c}> <td>{i+1}</td> <td>{c}</td> <td>{ weight...
components/button/Button.js
KerenChandran/react-toolbox
import React from 'react'; import ClassNames from 'classnames'; import FontIcon from '../font_icon'; import Ripple from '../ripple'; import style from './style'; class Button extends React.Component { static propTypes = { accent: React.PropTypes.bool, children: React.PropTypes.node, className: React.Prop...
src/parser/druid/feral/modules/talents/MoonfireUptime.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { ST...
ui/src/core/components/Footer.js
erlanglab/erlangpl
// @flow import React from 'react'; import { connect } from 'react-redux'; import './Footer.css'; import FooterItem from './FooterItem'; type Props = { node: string, connection: string }; const Footer = ({ node, connection }: Props) => { const color = { connected: '#227A50', disconnected: '#C13035' }...
test/integration/production/pages/error-in-browser-render-status-code.js
zeit/next.js
import React from 'react' export default class ErrorInRenderPage extends React.Component { render() { if (typeof window !== 'undefined') { const error = new Error('An Expected error occurred') // This will be extracted by getInitialProps in the _error page, // which will result in a different er...
src/ui/utils/components.js
edonet/react
/** ***************************************** * Created by lifx * Created on 2017-08-17 20:06:51 ***************************************** */ 'use strict'; /** ***************************************** * 加载依赖 ***************************************** */ import React, { Component } from 'react'; import substi...
src/core/display/App/DisplayOptions/ContextProvider.js
JulienPradet/pigment-store
import React from 'react' import {compose, withState, withContext, getContext} from 'recompose' const displayOptionsContextType = { displayOptions: React.PropTypes.object.isRequired, setDisplayOptions: React.PropTypes.func.isRequired } export const DisplayOptionsProvider = compose( withState('displayOptions', '...
packages/bundle/src/adaptiveCards/Attachment/AudioCardAttachment.js
billba/botchat
/* eslint react/no-array-index-key: "off" */ import PropTypes from 'prop-types'; import React from 'react'; import AudioCardContent from './AudioCardContent'; const AudioCardAttachment = ({ attachment: { content }, disabled }) => ( <AudioCardContent content={content} disabled={disabled} /> ); AudioCardAttachment....
src/auth/screens/events.screen.js
dyesseyumba/git-point
/* eslint react/prop-types: 0 */ /* eslint-disable no-shadow */ import React, { Component } from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Text, FlatList, View } from 'react-native'; import { LoadingUserListItem, UserLis...
pootle/static/js/auth/components/AuthController.js
fabada/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import FluxCompo...
src/plugins/position/components/TableBody.js
ttrentham/Griddle
import React from 'react'; import SpacerRow from './SpacerRow'; const TableBody = ({ rowIds, Row }) => ( <tbody> <SpacerRow placement="top" /> { rowIds && rowIds.map(r => <Row key={r} griddleKey={r} />) } <SpacerRow placement="bottom" /> </tbody> ); export default TableBody;
examples/counter/index.js
lina/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
client/src/containers/nav/Nav.js
JasonProcka/venos
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import * as Actions from '../../actions'; import NavLink from '../../components/nav/NavLink'; import NavLabel from '../../components/nav/NavLabel'; // Icons import IconHome from 'material-ui/svg-icons/action/home'; i...
src/app/components/pages/NotFound.js
cmseguin/react-express-boilerplate
import Nav from '~/app/components/modules/Nav' import React from 'react' export default class NotFound extends React.Component { render () { return ( <div> <Nav /> <h1>404: Not Found</h1> </div> ) } }
packages/components/src/JSONSchemaRenderer/JSONSchemaRenderer.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import entries from 'lodash/entries'; import get from 'lodash/get'; import css from './JSONSchemaRenderer.scss'; const CLASS_NAME = 'json-schema-renderer'; const RendererProptypes = { propertyKey: PropTypes.string.is...
cheesecakes/admin/admin/src/containers/HomePage/index.js
strapi/strapi-examples
/* * * HomePage * */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import PropTypes from 'prop-types'; impo...
resources/assets/js/react/template/products.js
snipelixir/printing-amazone
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import APP_URL from './../../frontend/boot.js'; class ProdComponent extends React.Component { constructor(props) { super(props); this.handleProductClick = this.handleProductClick.bind(this); } handleProductClick(e) { this.props.on...
src/svg-icons/notification/ondemand-video.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationOndemandVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/> </SvgIc...
examples/cdn-flex/app.js
valzav/react-foundation-components
/* eslint-disable import/no-unresolved */ import React from 'react'; import ReactDOM from 'react-dom'; import { Button } from '../../lib/global/button'; import { ButtonGroup } from '../../lib/global/button-group-flex'; const App = () => ( <div> <h1>Welcome to CDN CSS with Flexbox example!</h1> <p> We...
src/hoc/withGuardian.js
mydearxym/mastani
// /* * * Guardian * */ import React from 'react' import T from 'prop-types' import { startsWith, isEmpty, path, split } from 'ramda' import BStore from '@/utils/bstore' import { nilOrEmpty } from '@/utils/validator' import { buildLog } from '@/utils/logger' /* eslint-disable-next-line */ const log = buildLog('c...
test/regressions/tests/List/IconListItem.js
AndriusBil/material-ui
// @flow import React from 'react'; import Icon from 'material-ui/Icon'; import { ListItem, ListItemText, ListItemIcon } from 'material-ui/List'; export default function IconListItem() { return ( <div style={{ background: '#fff', width: 300 }}> <ListItem> <ListItemIcon> <Icon>phone</Icon...
node_modules/react-router/es6/withRouter.js
Jaime691/ReactTube
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import React from 'react';...
spec/javascripts/jsx/gradezilla/default_gradebook/components/TotalGradeColumnHeaderSpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/BaseballScene/Camera.js
kevinleclair1/pitch_fx_visualizer
import React from 'react'; import { Entity } from 'aframe-react'; import { createSelector } from 'reselect'; import { selectors as sceneSelectors } from '../redux/scene'; import createContainer from '../containers/GenericContainer.js'; const OrbitTargetComponent = (props) => ( <Entity id='orbitTarget' p...
src/SearchBox/__tests__/SearchBox_test.js
react-fabric/react-fabric
import React from 'react' import { render } from 'enzyme' import test from 'tape' import SearchBox from '..' test('SearchBox', t => { t.ok(SearchBox, 'export') t.equal(SearchBox.displayName, 'FabricComponent(SearchBox)') t.end() }) test('SearchBox#render - simple', t => { const container = render( <Sear...
src/parser/shaman/shared/azerite/PackSpirit.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import ItemHealingDone from 'interface/others/ItemHealingDone'; /** ...
src/components/VmActions/index.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import style from './style.css' import { msg } from '_/intl' import { RouterPropTypeShapes } from '_/propTypeShapes' import { canRestart, canShutdown, canStart, can...
src/app/components/recipeTotals.js
nazar/soapee-ui
import _ from 'lodash'; import React from 'react'; import roundFormatted from 'utils/roundFormated'; export default React.createClass( { render() { let uom = this.props.recipe.uomToUse() + 's'; let places = this.props.recipe.roundPlaces(); let discount = this.props.recipe.waterDiscount() ...
src/index.js
Commander-lol/burger-time
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/components/DevTools.js
dorsha/login-modal-react-redux
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="Q"> <LogMonitor /> </Dock...
Paths/React/05.Building Scalable React Apps/4-react-boilerplate-building-scalable-apps-m4-exercise-files/Before/app/containers/App/index.js
phiratio/Pluralsight-materials
/** * * 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) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
index.android.js
LiuJunb/reactNativeTest
/**这里是导包,导入我们要使用的控件*/ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; /**导入一个自己写的js文件*/ import Welcome from './app/page/Welcome.js'; import Splash from './app/Splash.js'; import AppMain from './app/page/AppMain.js'; import Login from './app/page/Logi...
src/components/Line.js
proiectus/bus-stop
import React, { Component } from 'react'; import { numberOrStringProp } from '../utils/customPropTypes' class Line extends Component { render() { return ( <li className='line-info'> <strong className="code">{this.props.code}</strong> <span className="destination">{this.props.destination}</s...
src/Loader/Loader.js
boldr/boldr-ui
/* @flow */ import React from 'react'; import classnames from 'classnames'; import { StyleClasses } from '../theme/styleClasses'; type Props = { className: string, }; const BASE_ELEMENT = StyleClasses.LOADER; function Loader(props: Props) { const classes = classnames(BASE_ELEMENT, props.className); return ( ...
src/components/text-field/BaseTextField.js
edgemesh/emui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Validator from 'validator'; import keyCode from '../../utils/keyCode'; function isUndo(e) { return (e.ctrlKey || e.metaKey) && e.keyCode === (e.shiftKey ? keyCode.Y : keyCode.Z) } function isRedo(e) { return (e.ctrlKey || e.metaK...
src/routes/request/index.js
vincentdd/crm
import React from 'react' import Mock from 'mockjs' import { request, config } from 'utils' import { Row, Col, Card, Select, Input, Button, } from 'antd' import styles from './index.less' const { api } = config const { dashboard, users, userLogin, user, v1test, ...
05_ES6/Code/fork-es6/app/components/InboxItem.js
joacoleonelli/react-zerotohero
import React from 'react'; import { Link } from 'react-router'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import autoBind from 'react-autobind'; class InboxItem extends React.Component { constructor(props) { super(props); autoBind(this); this.shouldComponentUpdate = PureRenderMix...
stories/carlo-point-rainbow-beach-2015/index.js
cobbweb/golittle.red
import React from 'react'; import summary from './summary'; import BackgroundImage from '../../components/Story/BackgroundImage'; import TitleSection, { TitleText, Title, Subtitle, PublishedOn } from '../../components/TitleSection'; export default function CarloPoint2015() { return ( <TitleSection> ...
examples/sidebar/app.js
besarthoxhaj/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link } from 'react-router'; import data from './data'; var Category = React.createClass({ render() { var category = data.lookupCategory(this.props.params.category); return ( <div> <h1>{cat...
src/main.js
liuxinyi1992/UUSee-v1
import React from 'react'; import ReactDOM from 'react-dom'; import {Route,} from 'react-router-dom' import Home from './containers/Home' import Rank from "./containers/Rank/index"; import {Provider} from 'react-redux'; import store from './redux/store'; import {ConnectedRouter} from 'react-router-redux'; import creat...
components/Header.js
akiran/nextjs-demo
import React from 'react' import Link from 'next/link' const linkStyle = { marginRight: 20 } export default function Header() { return ( <div> <Link href="/"> <a style={linkStyle}>Home</a> </Link> <Link href="/about"> <a>About</a> </Link> </div> ) }
docs/src/examples/modules/Progress/Content/ProgressExampleLabelProp.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleLabelProp = () => <Progress percent={55} label='Label' /> export default ProgressExampleLabelProp
Console/app/node_modules/antd/es/checkbox/Group.js
RisenEsports/RisenEsports.github.io
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'bab...
examples/async/index.js
Poplava/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
src/components/markdown.js
waywaaard/spectacle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import marksy from 'marksy'; import BlockQuote from './block-quote'; import CodePane from './code-pane'; import Code from './code'; import Heading from './heading'; import Image from './image'; import Link from './link'; import List from './...