path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
blueprints/layout/files/__test__/layouts/__name__Layout.spec.js
josedab/react-redux-i18n-starter-kit
import React from 'react' describe('(Layout) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
app/index.js
cargillj/WavForm
// @flow import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app...
src/svg-icons/file/cloud-queue.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudQueue = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 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.9...
src/appShell/DevTools/DevTools.js
cBioPortal/cbioportal-frontend
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="ctrl-h" changePositionKey="ctrl-q" default...
still/src/components/Pages/About.js
marktheshark13/Stillwaters-farm
import React, { Component } from 'react'; class About extends Component { render() { return ( <div> <h1>About Under Construction :(</h1> <img src='http://i.imgur.com/1jgeOUe.gif' alt="Yolo" /> </div> ); } } export default About;
packages/icons/src/services.js
geek/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg wid...
src/components/Carousel/Slide/Slide.js
easingthemes/notamagic
import React from 'react'; import FeIcons from 'components/FeIcons'; import SlideCaption from '../SlideCaption/SlideCaption'; export const Slide = (props) => { let style = ' item carousel-img '; if (props.index === props.initialSlideIndex) { style = 'active ' + style; } return ( <div className={style} style={{...
test/PaginationSpec.js
xsistens/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Pagination from '../src/Pagination'; describe('Pagination', function () { it('Should have class', function () { let instance = ReactTestUtils.renderIntoDocument( <Pagination>Item content</Pagination> ); assert....
_theme/template/Menu/SideMenu.js
ElemeFE/react-amap
import React from 'react'; import ComponentsMenu from './ComponentsMenu'; import ArticlesMenu from './ArticlesMenu'; export default class SideMenu extends React.Component { constructor() { super(); this.changeMenuLayout = this.changeMenuLayout.bind(this); this.state = { mode: 'inline' }; } ...
fixtures/dom/src/components/fixtures/input-change-events/RadioGroupFixture.js
pyitphyoaung/react
import React from 'react'; import Fixture from '../../Fixture'; class RadioGroupFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { changeCount: 0, }; } handleChange = () => { this.setState(({changeCount}) => { return { chan...
browser/app/js/components/SideBar.js
dutchcoders/minio
/* * Minio Cloud Storage (C) 2016 Minio, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
src/manager/provider.js
uk-ar/react-native-storybook
import React from 'react'; import { Provider } from '@kadira/storybook-ui'; import createChannel from '@kadira/storybook-channel-websocket'; import addons from '@kadira/storybook-addons'; export default class ReactProvider extends Provider { constructor({ url }) { super(); this.selection = null; this.cha...
src/components/grid_news/grid_news.js
AvaKathrynShaw/My-React-Material-Dashboard
import React from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import StarBorder from 'material-ui/svg-icons/toggle/star-border'; const styles = { root: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around', }, gridLi...
docs/app/Examples/elements/Image/Usage/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ImageUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Children' description='An ...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/FormGroup.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _excluded = ["className", "cssModule", "row", "disabled", "check", "inline", "tag"]; import React from 'react'; import PropTypes from 'prop-types'; import c...
src/svg-icons/communication/stop-screen-share.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
app/core/constants.js
hbibkrim/neon-wallet
// @flow import React from 'react' import tokenList from './tokenList.json' import nodesMainNet from './nodes-main-net.json' import nodesTestNet from './nodes-test-net.json' import England from '../assets/flags/united-kingdom.svg' import China from '../assets/flags/china.svg' import France from '../assets/flags/france...
src/react/JSONTree/grab-node.js
rrrene/redux-devtools
import React from 'react'; import objType from './obj-type'; import JSONObjectNode from './JSONObjectNode'; import JSONArrayNode from './JSONArrayNode'; import JSONStringNode from './JSONStringNode'; import JSONNumberNode from './JSONNumberNode'; import JSONBooleanNode from './JSONBooleanNode'; import JSONNullNode from...
app/components/FABs/FABs.js
k19862217/LogicGame
import React, { Component } from 'react'; import { Container, Content, Button, Icon, Fab, View } from 'native-base'; export default class FABs extends Component { constructor(...args) { super(...args); this.state = { active: false }; } render() { return ( ...
app/javascript/mastodon/features/ui/components/media_modal.js
KnzkDev/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import ExtendedVideoPlayer from 'mastodon/components/extended_video_player'; import classNames ...
src/components/summaryTeamComponent/summaryTeamComponent.js
craigbilner/quizapp
'use strict'; import React from 'react'; import radium from 'radium'; import style from '../summaryTeamComponent/summaryTeamStyle'; class SummaryTeamComponent extends React.Component { constructor(props) { super(props); } render() { const compStyle = [ this.props.baseStyles.layout.columns, ...
app/javascript/mastodon/features/community_timeline/index.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/ListGroupItemText.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _excluded = ["className", "cssModule", "tag"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { ...
demo/index.js
tangjinzhou/css-flat-loader
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App/>, document.body.appendChild(document.createElement('div')) );
index.android.js
zhongzhu/aizengshu
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class aizengshu extends Component { render() { return ( <View style={styles.container}> <Tex...
react/features/always-on-top/VideoMuteButton.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; // We need to reference these files directly to avoid loading things that are not available // in this environment (e.g. JitsiMeetJS or interfaceConfig) import { IconCameraEmpty, IconCameraEmptyDisabled } from '../base/icons'; import type { Props } from '../base/toolb...
src/js/components/modules/ui/Slider.js
at-ishikawa/paintlive
import React from 'react'; import style from "modules/ui/slider"; class Slider extends React.Component { render() { const { className, children, ...props } = { ...this.props }; return ( <input className={ style.slider + " " + className } type="range" { ...props }> { children } </input> ...
examples/huge-apps/routes/Course/components/Nav.js
iest/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...
src/routes/app/routes/xdashboard/components/EngagementStats.js
ahthamrin/kbri-admin2
import React from 'react'; import ReactEcharts from 'components/ReactECharts'; import CHARTCONFIG from 'constants/ChartConfig'; // Engagment pie charts const labelTop = { normal: { show: true, position: 'center', formatter: '{b}', textStyle: { color: 'rgba(0,0,0,.54)', baseline: 'bottom',...
src/pages/HomePage.js
ucladevx/website
import React from 'react' import styled from 'styled-components' import { homeCopy } from '../config' import { colors } from '../styles' import Col from '../components/Col' import Text from '../components/Text' import Section from '../components/Section' import Hero from '../components/Hero' const WhatIsDevXContainer...
ajax/libs/react-instantsearch/4.1.0-beta.5/Dom.js
wout/cdnjs
/*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
tests/lib/rules/indent.js
sankha93/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
src/components/Button.js
spcoder/movietrivia
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import './Button.css'; class Button extends Component { render() { return ( <Link className="Button" {...this.props}> {this.props.children} </Link> ); } } export default Button;
code/schritte/3-remote/src/main.js
st-he/react-workshop
// polyfill for IE require('es6-promise').polyfill(); require('whatwg-fetch'); import React from 'react'; import ReactDOM from 'react-dom'; import GreetingController from './GreetingController'; const mountNode = document.getElementById('mount'); ReactDOM.render(<GreetingController />, mountNode);
src/svg-icons/maps/local-hotel.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsLocalHotel = pu...
src/app/application.js
huytrongnguyen/extension-react
import React from 'react'; import { render } from 'react-dom'; import Ext from '~/core/ext'; import StoreManager from '~/data/store-manager'; export default config => Viewport => { (config && config.stores) && Ext.List(config.stores).each(store => { store = store.default; StoreManager.set(store.storeId, stor...
src/svg-icons/action/lock.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLock = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-....
frontend/src/System/Logs/Files/LogFilesConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import * as commandNames from 'Commands/commandNames'; import { executeCommand } from 'Store/Actions/commandActions'; import { fetchLogFiles } from 'Store/Actio...
app/components/game/spectatorBoard.js
erisalke/react-playground
import React from 'react'; import _ from 'lodash'; const TicTacToeBoard = (props) => { const sortedPlayers = _.sortBy(props.players, [ o => o.name ]); return ( <div className = 'boardX'> { props.board.map((tile,i) => { var classVariant = ["cell"] if (i === 1 || i === 4 || i === 7) { classVariant...
src/index.js
lamjwe/book-list-redux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
frontend/src/components/profile/ban-details.js
1905410/Misago
import moment from 'moment'; import React from 'react'; import PanelLoader from 'misago/components/panel-loader'; // jshint ignore:line import PanelMessage from 'misago/components/panel-message'; // jshint ignore:line import misago from 'misago/index'; import polls from 'misago/services/polls'; import title from 'misag...
src/main.js
vladimir-ivanov/react-webpack-es6-flux-sample
import React from 'react'; import ReactDOM from 'react-dom'; import {CommentBox} from './CommentsBox'; ReactDOM.render( <CommentBox />, document.getElementById('content') );
modules/IndexLink.js
cold-brew-coding/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
src/containers/detail/index.js
qinshou/chakra
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import Panel from '../../components/panel' import { updateDetailVisible, updateBreakpointEditVisible } from '../../actions' const Detail = ({ visible, data, updateDetailVisible, updateBreakpointEditVisible }) => ...
node_modules/rc-pagination/es/Pager.js
wiflsnmo/react_study2
import React from 'react'; import PropTypes from 'prop-types'; var Pager = function Pager(props) { var prefixCls = props.rootPrefixCls + '-item'; var cls = prefixCls + ' ' + prefixCls + '-' + props.page; if (props.active) { cls = cls + ' ' + prefixCls + '-active'; } if (props.className) { cls = cls...
clients/components/DocSearch/Components/AddonCategory.js
CalderaWP/Caldera-Forms
import axios from 'axios'; import React from 'react'; import { FormGroup } from 'react-bootstrap'; import { Catdera } from '../../Catdera/Catdera'; import { Category } from "./Category"; import { cacheAdapterEnhancer } from 'axios-extensions'; export class AddonCategory extends React.Component { constructor(props)...
react-router-tutorial/lessons/09-index-links/modules/Home.js
zerotung/practices-and-notes
import React from 'react' export default React.createClass({ render() { return <div>Home</div> } })
code/workspaces/web-app/src/components/app/AdminSideBar.js
NERC-CEH/datalab
import { withStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import PropTypes from 'prop-types'; import React from 'react'; import SideBarGroup from './SideBarGroup'; import SideBarButton from './SideBarButton'; import sideBarStyles from './sideBarStyles'; const AdminSideBar = ({ c...
src/handbook/scouting_values.js
khayyamj/thunderbirds_troop51
import React from 'react'; export default function () { return ( <div> <p className="p1"><span className="s1"><strong>Scouting Values</strong></span></p> <p className="p2">&nbsp;</p> <p className="p3"><span className="s1">All scouts and leaders agree to abide by the Scout Oath, the Scout Law and the Out...
docs/src/app/components/pages/components/TimePicker/ExampleSimple.js
xmityaz/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerExampleSimple = () => ( <div> <TimePicker hintText="12hr Format" /> <TimePicker format="24hr" hintText="24hr Format" /> <TimePicker disabled={true} format="24hr" hintTex...
src/routes/login/index.js
miaoji/guojibackend
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Button, Row, Form, Input } from 'antd' import { config } from '../../utils' import styles from './index.less' const FormItem = Form.Item const Login = ({ login, dispatch, form: { getFieldDecorator, valida...
src/components/sidebar/DepartmentButton.react.js
EaglesoftZJ/iGem_Web
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import classNames from 'classnames'; import { Container } from 'flux/utils'; import { FormattedMessage } from 'react-intl'; import Tooltip from 'rc-tooltip'; import EventListener from 'fbjs/lib/EventListener'; imp...
src/svg-icons/action/done.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDone = (props) => ( <SvgIcon {...props}> <path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/> </SvgIcon> ); ActionDone = pure(ActionDone); ActionDone.displayName = 'ActionDone'; ActionDone.mui...
app/components/App.js
mAustinKos/Random-Quote-Generator
import React from 'react'; import QuoteDiv from './QuoteDiv.js'; export default class App extends React.Component { render() { return ( <div className='body'> <div className='Title'> <h1><a href="https://www.whitehouse.gov/">President Donald Trump</a> Quote Generator </h1>...
components/latest-sermon.js
hillcitymnag/www.hillcitymnag.church
import React from 'react' import css, {merge} from 'next/css' import {color, mediaQuery, pseudo} from '../shared/constants' import {btn, link} from '../shared/styles' export default props => { const {latestSermon} = props const {src} = latestSermon.enclosure const latestSermonHref = src.slice(0, src.length - 4...
pages/work/air.js
k97/node-slasher-app
import React from 'react'; import axios from 'axios'; import ReactMarkdown from 'react-markdown'; import mediumZoom from 'medium-zoom'; import Layout from '../../components/Layout/index'; import ProjectTitle from '../../components/Work/ProjectTitle'; import EditProject from '../../components/Work/EditProject'; import ...
examples/universal/server/server.js
bjfletcher/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; import { fetch...
Console/app/node_modules/rc-calendar/es/calendar/OkButton.js
RisenEsports/RisenEsports.github.io
import React from 'react'; export default function OkButton(_ref) { var prefixCls = _ref.prefixCls, locale = _ref.locale, okDisabled = _ref.okDisabled, onOk = _ref.onOk; var className = prefixCls + "-ok-btn"; if (okDisabled) { className += " " + prefixCls + "-ok-btn-disabled"; } return...
local/share/nvim/templates/=template=react-class-component.js
leonfeng/dotfiles
import React, { Component } from 'react'; class %CLASS% extends Component { render() { %HERE% } } export default %CLASS%;
src/svg-icons/av/play-arrow.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlayArrow = (props) => ( <SvgIcon {...props}> <path d="M8 5v14l11-7z"/> </SvgIcon> ); AvPlayArrow = pure(AvPlayArrow); AvPlayArrow.displayName = 'AvPlayArrow'; AvPlayArrow.muiName = 'SvgIcon'; export defau...
src/components/EmailInput/messages.js
transitlinks/web-app
import React from 'react'; import { defineMessages } from 'react-intl'; export default defineMessages({ 'email': { id: 'email.emailLabel', defaultMessage: 'E-mail', description: 'E-mail' }, 'missing-at': { id: 'email.missingAt', defaultMessage: '@ symbol is missing', description: '@ symbo...
projects/model-threating-tool/src/components/Content.js
hodovanyuk/hodovanyuk.github.io
import React, { Component } from 'react'; import {Button} from 'react-bootstrap'; class Content extends Component { render() { return ( <div className="offices-body-wrapper"> <h1 className="offices-header"> OFFICES | COMPANY INFO </h1> ...
examples/huge-apps/routes/Course/components/Course.js
batmanimal/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
src/views/BootCard/BootCard.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), inverse: PropTypes.bool, color: PropTypes.string, block: PropTypes.bool, outline: PropTypes.b...
client/modules/polls/VoteForm/VotePage.js
ncrmro/ango
import React from 'react' import Page from 'components/Page/Page' import withRelayContainer from 'utils/relay' import { VoteFormFragmentContainer } from './VoteForm' const VotePage = (props) => <Page heading="Question" > <VoteFormFragmentContainer {...props} question={props.viewer.question} /> </Page> ...
src/css/style.js
RoyalSix/Eagle-Connect
import React, { Component } from 'react'; import { StyleSheet, Dimensions } from 'react-native'; var { height, width } = Dimensions.get('window'); var css = { container: { flex: 1, backgroundColor: "#FF5E5E", justifyContent: 'flex-start', }, loginHeading: { ...
src/components/Selection.js
kevinbarabash/react-text-editor
import React, { Component } from 'react'; class Selection extends Component { render() { let { charWidth, charHeight } = this.props; let gutterWidth = 45; let { node } = this.props; let style = { position: 'absolute', height: charHeight, backgro...
app/javascript/mastodon/features/getting_started/components/announcements.js
kirakiratter/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import Icon f...
examples/src/components/CustomOption.js
snowkeeper/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
src/__tests__/index.js
GlebDolzhikov/react-flex-tabs
import React from 'react'; import {shallow, mount, render} from 'enzyme'; import {expect} from 'chai'; import sinon from 'sinon'; import MyComponent from '../index'; // Demo tests // Shallow Rendering // https://github.com/airbnb/enzyme/blob/master/docs/api/shallow.md describe('Shallow Rendering', () => { it('...
src/svg-icons/places/smoking-rooms.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesSmokingRooms = (props) => ( <SvgIcon {...props}> <path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16....
src/index.js
Zyber17/hey-so-um
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('wrapper')) registerServiceWorker()
packages/es-components/src/components/controls/buttons/Button.js
TWExchangeSolutions/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import tinycolor from 'tinycolor2'; import { useTheme } from '../../util/useTheme'; import { darken, getTextColor } from '../../util/colors'; import ButtonBase from './ButtonBase'; const StyledButton = styled(ButtonB...
actor-apps/app-web/src/app/components/Login.react.js
treejames/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import LoginActionCreators from 'actions/LoginActionCreators'; import LoginStore from 'stores/LoginStore'; i...
src/app/Router-min.js
kolabdigital/notification_demo
import React from 'react'; import Home from './modules/home/components/Home'; import Birthdays from './modules/birthdays/components/Birthdays'; import { ConnectedRouter } from 'react-router-redux'; import { Route } from 'react-router'; export default class Router extends React.Component { render () { return ( ...
maodou/wechat/client/components/sign-in-button.js
ShannChiang/meteor-react-redux-base
import React from 'react'; export const UIState = { IDLE: 'idle', LOGGING_IN: 'loggingIn', LOGGED_IN: 'loggedIn', ERROR: 'error' }; export default (props) => { switch (props.uiState) { case UIState.IDLE: return <a href={props.authUrl}>微信一键登录</a>; case UIState.LOGGED_IN: return <span>已登录...
components/Layout/Header.js
gusdewa/MultiStores
import React from 'react'; import Navigation from './Navigation'; import Link from '../Link'; import s from './Header.css'; class Header extends React.Component { componentDidMount() { window.componentHandler.upgradeElement(this.root); } componentWillUnmount() { window.componentHandler.downgradeElement...
Magistrate/client/components/permissions/singlePermissionView.js
Pondidum/Magistrate
import React from 'react' import InlineEditor from '../InlineEditor' var SinglePermissionView = React.createClass({ onNameChanged(newName) { var json = JSON.stringify({ name: newName }); $.ajax({ url: this.props.url + "/name", cache: false, method: "PUT", data: json, ...
eventkit_cloud/ui/static/ui/app/components/Notification/NotificationMenu.js
venicegeo/eventkit-cloud
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { withTheme } from '@material-ui/core/styles'; import MenuItem from '@material-ui/core/MenuItem'; import OpenInNewIcon from '@material-ui/icons/OpenInNew'; import FlagIcon from '@material-ui/icons/Flag'; import ...
app/components/Th/index.js
clairealmozinos/marvel-univers
// // Component <th></th> // import React from 'react'; import './styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class Th extends React.Component { render() { return ( <th>{this.props.value}</th> ); } } Th.propTypes = { value: React.PropTypes.string.isRequired, }...
examples/huge-apps/routes/Messages/components/Messages.js
SpainTrain/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
examples/with-loading/pages/index.js
BlancheXu/test
import React from 'react' const IndexPage = () => <p>Hello Next.js!</p> export default IndexPage
src/svg-icons/image/filter-drama.js
nathanmarks/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/components/head.js
basvandriel/WWW
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import favicon from '@images/favicons/favicon.ico'; import appleIcon57x57 from '@images/favicons/apple-icon-57x57.png'; import appleIcon72x72 from '@images/favicons/apple-icon-72x72.png'; import appleIcon76x76 from '@image...
src/containers/root.js
martinkwan/HNGRY
/** |========================================================================================== | This is a container that wraps App with redux |------------------------------------------------------------------------------------------ */ import React, { Component } from 'react'; import PropTypes from 'prop-types';...
src/index.js
mavivian/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'));
src/widgets/search-codes-lists/search-codes-lists.spec.js
Zenika/Pogues
import React from 'react'; import { shallow } from 'enzyme'; import SearchCodesLists from './search-codes-lists'; import { WIDGET_SEARCH_CODES_LISTS } from 'constants/dom-constants'; const { SEARCH_RESULTS_CLASS } = WIDGET_SEARCH_CODES_LISTS; import { StatisticalContextCriteria, defaultProps as StatisticalConte...
examples/todomvc/test/components/Header.spec.js
dieface/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Header from '../../components/Header' import TodoTextInput from '../../components/TodoTextInput' function setup() { const props = { addTodo: expect.createSpy() } const renderer = TestUtils.createRend...
src/pages/Commons/ErrorBoundary.js
hyy1115/react-redux-webpack2
import React from 'react' //捕捉子组件的错误 //例如 /* * <ErrorBoundary> * <Header * bgColor={bgClass} * imgUrl={search} * linkTo="search" * title="react-redux架构" * /> * </ErrorBoundary> * * */ class ErrorBoundary extends React.Component { constructor(props) { super(props) this...
front/cryptofx/src/App.js
Alex-Werner/CryptoFX
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
fields/components/Checkbox.js
alobodig/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import { darken, fade } from '../../admin/client/utils/color'; import E from '../../admin/client/constants'; var Checkbox = React.createClass({ displayName: 'Checkbox', propTypes: { checked: React.PropTypes.bool, c...
src/components/IntroParagraph/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './intro-paragraph.scss'; const IntroParagraph = ({ children, text }) => ( <p className={styles.root}> {children || text} </p> ); export default IntroParagraph;
src/index.js
Lordmzn/personal-website
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
docs/src/app/components/pages/components/List/ExampleMessages.js
pancho111203/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar'; import {grey400, darkBlack, lightBlack} from 'material-ui...
ui/src/components/denali/Menu/Menu.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
packages/core/src/icons/components/CheckboxHalf.js
iCHEF/gypcrete
import React from 'react'; export default function SvgCheckboxHalf(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="-1980 -5057 32 32" width="1em" height="1em" {...props} > <path data-name="\u9577\u65B9\u5F62 7901" fill="transparent" ...
frontend/Components/Dashboard/ForumBox/index.js
shoumma/ReForum
import React, { Component } from 'react'; import classnames from 'classnames'; import styles from './styles'; import Button from 'Components/Button'; class ForumBox extends Component { constructor(props) { super(props); this.state = { newForumTitle: '', newForumSlug: '', errorMsg: null, ...
frontend/tests/components/users-list/user-preview.js
1905410/Misago
import assert from 'assert'; import React from 'react'; // jshint ignore:line import UserPreview from 'misago/components/users-list/user-preview'; // jshint ignore:line import * as testUtils from 'misago/utils/test-utils'; describe("Users List Item Preview", function() { afterEach(function() { testUtils.unmountC...
integration/umd-react/src/index.js
Webfreshener/JSD
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in yo...
client/src/AzureLogin.js
clembou/github-requests
import React from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; import azureClient from './shared/azureClient'; import { LoadingWithMessage } from './shared/Loading'; import SignInButton from './SignInButton'; const AUTO_LOGIN = process.env.NODE_ENV === 'production'; //const AUTO_LOGIN = true class Azure...