path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/js/scopes/scopes.user-list.js
stamkracht/Convy
import React from 'react'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import config from '../config'; import actions from '../actions'; import BlockUser from '../components/components.block-user'; import SwipeView from '../scopes/scopes.swipe-view'; import { classNames } from...
docs/src/app/components/pages/components/TextField/ExampleSimple.js
pancho111203/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleSimple = () => ( <div> <TextField hintText="Hint Text" /><br /> <br /> <TextField hintText="The hint text can be as long as you want, it will wrap." /><br /> <TextField id="text-f...
stories/directly_required/index.js
storybooks/storyshots
import React from 'react' import { storiesOf, action } from '@kadira/storybook' import Button from './Button' storiesOf('Another Button', module) .add('with text', () => ( <Button onClick={action('clicked')}>Hello Button</Button> )) .add('with some emoji', () => ( <Button onClick={action('clicked')}>😀 �...
src/index.js
hayond/web-pack-example
import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import App from './main/app' ReactDOM.render(<AppContainer><App /></AppContainer>, document.querySelector('#body')) if (module.hot) module.hot.accept('./main/app', () => ReactDOM.render(<AppContainer><App /></...
node_modules/react-bootstrap/es/Alert.js
okristian1/react-info
import _Object$values from 'babel-runtime/core-js/object/values'; import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
react-flux-mui/js/material-ui/src/svg-icons/editor/border-bottom.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderBottom = (props) => ( <SvgIcon {...props}> <path d="M9 11H7v2h2v-2zm4 4h-2v2h2v-2zM9 3H7v2h2V3zm4 8h-2v2h2v-2zM5 3H3v2h2V3zm8 4h-2v2h2V7zm4 4h-2v2h2v-2zm-4-8h-2v2h2V3zm4 0h-2v2h2V3zm2 10h2v-2h-2v2zm...
src/index.js
sn0wle0pard/vimrc.io
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { createStore, applyMiddleware } from 'redux'; import { About, App, Category, Init } from 'containers'; import reducers from 'reducers'; i...
src/redux/utils/createDevToolsWindow.js
Gouthamve/BINS-FRONT
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
frontend/js/components/Frame.js
Code4HR/okcandidate-platform
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Header from './ecosystems/Header'; import Sidebar from './ecosystems/Sidebar'; import Tagline from './molecules/Tagline'; import { connect } from 'react-redux'; class Frame extends Component { render() { return ( ...
src/svg-icons/action/event-seat.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEventSeat = (props) => ( <SvgIcon {...props}> <path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/> </SvgIcon> ); ActionEventSeat = pure(ActionEventSe...
app/containers/NotFoundPage/index.js
thuantrinh/math_is_hard
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
src/svg-icons/av/forward-5.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward5 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1....
admin-frontend/src/components/tweet-form.js
BarcampBangalore/hashbeam
import gql from 'graphql-tag'; import React from 'react'; import { Mutation, Query } from 'react-apollo'; import Tweet from 'react-tweet'; import { Button, Icon, Loader, Message } from 'semantic-ui-react'; import styled from 'styled-components/macro'; import randomEmoji from '../util/random-emoji'; const FETCH_TWEET_T...
client/src/components/settings/DangerZone.js
BhaveshSGupta/FreeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Panel } from '@freecodecamp/react-bootstrap'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { FullWidthRow, ButtonSpacer, Spacer } from '../helpers'; import { deleteAccount, resetP...
src/Dropdown/Dropdown.js
abdurrahmanekr/react-chat-elements
import React, { Component } from 'react'; import './Dropdown.css'; import Button from '../Button/Button'; const classNames = require('classnames'); export class Dropdown extends Component { constructor(props) { super(props); this.state = { show: undefined, }; } onBlu...
examples/huge-apps/components/Dashboard.js
omerts/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { var { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of y...
lib/prefetch.js
kevmannn/next.js
import React from 'react' import Link from './link' import Router from './router' import { warn, execOnce } from './utils' const warnImperativePrefetch = execOnce(() => { const message = '> You are using deprecated "next/prefetch". It will be removed with Next.js 2.0.\n' + '> Use "Router.prefetch(href)" instead....
common/app/components/NotFound/index.js
kemitchell/freecodecamp
import React from 'react'; export default class extends React.Component { constructor(props) { super(props); } static displayName = 'NotFound' static propTypes = {} componentDidMount() { } render() { return null; } }
src/svg-icons/image/photo.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePhoto = p...
examples/simple-todo.js
hallettj/sunshine
/* @flow */ import React from 'react' import ReactDOM from 'react-dom' import { asyncResult, asyncUpdate, emit, reduce, update } from '../sunshine' import * as Sunshine from '../react' import { get, over, set } from 'safety-lens' import { prop } from 'safety-lens/es2015' import { assert } from 'chai' import type { Le...
lib/shared/screens/admin/shared/components/input-options/filters/index.js
relax/relax
import Component from 'components/component'; import cloneDeep from 'lodash/cloneDeep'; import forEach from 'lodash/forEach'; import staticProperties from 'statics/schema-static-properties'; import React from 'react'; import PropTypes from 'prop-types'; import {buildQueryAndVariables} from 'relax-fragments'; import {co...
node_modules/react-router/es6/Router.js
silky098/Youtube-React-Search
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/static/containers/Root/Root.dev.js
AdrienAgnel/testDjangoApp
import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import PropTypes from 'prop-types'; import routes from '../../routes'; import DevTools from './DevTools'; import App from '../../app'; export default class Root extends React.Component { stati...
src/components/Biography.js
Selvio/jose-name-react
import React from 'react'; import FooterContainer from '../containers/Footer'; const Biography = () => { return ( <div className="grid grid--full"> <div className="grid__item medium--seven-twelfths"> <div className="biography"> <div className="biography__main-container"> <head...
src/components/attributes/scatter-plot/local-attributes/GridLines.js
crp2002/ID3-React
import React, { Component } from 'react'; class GridLines extends Component { constructor(props) { super(props) this.state = { checkbox: false } this.handleCheckbox = this.handleCheckbox.bind(this); this.onSubmit = this.onSubmit.bind(this); } onSubmit(event) { event.preventDefault...
react/features/overlay/components/FilmstripOnlyOverlayFrame.js
parisjulien/arkadin-jitsimeet
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Avatar, getAvatarURL, getLocalParticipant } from '../../base/participants'; import OverlayFrame from './OverlayFrame'; /** * Implements a React Component for the frame of the overlays in filmstrip only * mode. */...
app/javascript/mastodon/features/hashtag_timeline/index.js
pfm-eyesightjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { refreshHashtagTimeline, ex...
frontend/src/Components/ProgressBar.js
lidarr/Lidarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { ColorImpairedConsumer } from 'App/ColorImpairedContext'; import { kinds, sizes } from 'Helpers/Props'; import styles from './ProgressBar.css'; function ProgressBar(props) { const { className, containe...
src/components/image.js
osxi/nuclear-gallery
import React from 'react'; export default class extends React.Component { render() { return ( <img className="image" src={this.props.src} /> ); } }
examples/bundle.js
hokuma/auto-text-link
import React from 'react'; import ReactDOM from 'react-dom'; import AutoTextLink from '../src/auto_text_link'; ReactDOM.render( <AutoTextLink>{'This module repository: https://github.com/hokuma/auto-text-link'}</AutoTextLink>, document.getElementById('sample1') ); ReactDOM.render( <AutoTextLink className='text-...
src/modules/Modal/ModalHeader.js
shengnian/shengnian-ui-react
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A modal can have a header. */ function ModalHeader(props) { const { children, clas...
packages/ringcentral-widgets-docs/src/app/pages/Components/NavigationBar/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import NavigationBar from 'ringcentral-widgets/components/NavigationBar'; import TabNavigationButton from 'ringcentral-widgets/components/TabNavigationButton'; import DialPadIcon from 'ringcentral-widgets/assets/images/DialPadNav.svg'; import CallsIcon from 'ringce...
src/svg-icons/maps/directions.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirections = (props) => ( <SvgIcon {...props}> <path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-....
src/ModalHeader.js
roderickwang/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
src/components/pagination/NoResults/NoResults.js
CtrHellenicStudies/Commentary
import React from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; import './NoResults.css'; const NoResults = ({ message }) => ( <Grid> <Row> <Col> <div className="noResults"> <p> {message} </p> </div> </Col> </Row> </Grid> ); export default NoResults;
src/client/components/SocialLink.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; const SocialLink = ({ profile, url }) => ( <div> <i className={`iconfont text-icon icon-${profile.icon}`} style={{ color: profile.color, }} /> <a target="_blank" rel="noopener noreferrer" href={url}> {profile.n...
app/components/Home.js
cargillj/WavForm
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; export default class Home extends Component { render() { return ( <div> <div className={styles.container}> <h2>Home</h2> <Link to="/counter">to Counter</Link...
packages/material-ui-icons/src/Mail.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Mail = props => <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z" /> </SvgIcon>; Mail = pure(Mail); Mail.muiNa...
src/components/common/header/AppHeader.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import Link from 'react-router/lib/Link'; import FavoriteToggler from '../FavoriteToggler'; import { PERMISSION_LOGGED_IN } from '../../../lib/auth'; import Permissioned from '../Permissioned'; const...
js/jqwidgets/demos/react/app/listbox/loaddatafromselect/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; class App extends React.Component { componentDidMount() { this.refs.myListBox.loadFromSelect('select'); let select = document.getElementById('select'); let ...
node_modules/react-table/src/defaultProps.js
together-web-pj/together-web-pj
import React from 'react' import classnames from 'classnames' // import _ from './utils' import Pagination from './pagination' const emptyObj = () => ({}) export default { // General data: [], loading: false, showPagination: true, showPaginationTop: false, showPaginationBottom: true, showPageSizeOptions...
src/sources/ImgFigure.js
liyangda/gallery-by-react
/** * Created by lyd on 2016/12/2. */ // require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; class ImgFigure extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } /** * imgFigure的点击处理函数 * */ han...
node_modules/react-bootstrap/es/NavbarHeader.js
rblin081/drafting-client
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/src/examples/collections/Grid/ResponsiveVariations/GridExampleStackable.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Grid, Image, Segment } from 'semantic-ui-react' const GridExampleStackable = () => ( <Grid stackable columns={2}> <Grid.Column> <Segment> <Image src='/images/wireframe/paragraph.png' /> </Segment> </Grid.Column> <Grid.Column> <Segment> ...
src/components/topic/words/WordCloudComparisonContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import { Row, Col } from 'react-flexbox-grid/lib'; import withFilteredAsyncData from '../FilteredAsyncDataContainer'...
src/server.js
PitayaX/pitayax-web
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 ApiClient fro...
app/javascript/mastodon/features/ui/components/video_modal.js
unarist/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from '../../video'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class VideoModal extends ImmutablePureComponent { static propTypes = { m...
source/app.js
simonewebdesign/npm-strap
import React from 'react'; import MainMenu from './components/main-menu/main-menu'; import Router from './router'; import routes from './config/routes'; class App extends React.Component { render() { return ( <div> <MainMenu /> <Router routes={routes} /> </div> ); } } React.ren...
src/icons/PublishIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class PublishIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M10 8v4h28V8H10zm0 20h8v12h12V28h8L24 14 10 28z"/></svg>;} };
src/ui/components/containers/NotificationBadgeContainer.js
scrollback/pure
/* @flow */ import React, { Component } from 'react'; import { DeviceEventEmitter } from 'react-native'; import GCM from '../../modules/GCM'; import NotificationBadge from '../views/Notification/NotificationBadge'; type State = { count: number; } export default class NotificationBadgeContainer extends Component<voi...
public/index.js
mbresnan1701/project-ipsum
import React from 'react'; import { render } from 'react-dom'; import App from './components/app.js'; import Login from './components/Login.js'; import MyApp from './components/MyApp.js'; import MyServer from './components/MyServer.js'; import AllApps from './components/AllApplications.js'; import AllServers from './co...
src/components/video_detail.js
bryanbuitrago/reactVideoApp
import React from 'react'; const VideoDetail = ({video}) => { if(!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail details col-md-8"> <div className="embed-responsive embed-re...
src/containers/recipes/Card/CardContainer.js
BrownEPTech/brown-ep-startup-ideas-app
/** * Individual Recipe Card Container * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; // Actions import * ...
app/containers/SettingsPage.js
disolution/molecule
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import SettingsForm from '../components/SettingsForm'; import * as SettingsActions from '../actions/settings'; function mapStateToProps(state) { return { settings: state.settings }; } ...
tests/react/render.js
facebook/flow
// @flow import React from 'react'; /** * Basic render: Class component tests */ class A extends React.Component<{}, void> { render = () => {}; } class B extends React.Component<{}, void> { render = () => null; } <A />; // OK <B />; // OK /** * Basic render: stateless functional component tests */ const C:...
docs/src/app/components/pages/components/CircularProgress/ExampleSimple.js
kittyjumbalaya/material-components-web
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; const CircularProgressExampleSimple = () => ( <div> <CircularProgress /> <CircularProgress size={60} thickness={7} /> <CircularProgress size={80} thickness={5} /> </div> ); export default CircularProgressExampleSim...
assets/javascripts/kitten/components/graphics/icons/double-arrow-icon/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import COLORS from '../../../../constants/colors-config' export const DoubleArrowIcon = ({ color, title, ...props }) => { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.48 15" height="15" width="8.48" {......
src/index.js
kendallroth/project_hub
//File: src/index.js //Purpose: Initialize and attach React App to DOM import React from 'react'; import ReactDOM from 'react-dom'; import '../node_modules/foundation-sites/dist/css/foundation-flex.css'; import '../node_modules/foundation-icons/foundation-icons.css'; import './index.css'; import App from './modu...
components/Button/stories.js
insane-ux/rebulma
// @flow import React from 'react' import { storiesOf } from '@kadira/storybook' import Icon from 'components/Icon' import Field from 'components/Field' import Button from './' storiesOf('Button', module) .add('default', () => ( <Button>Default Button</Button> )) .add('small', () => ( <Button className=...
demo/src/index.js
awkward/react-simple-masonry
import React from 'react' import {render} from 'react-dom' import Component from '../../src' import Block from '../../src/block' let Demo = class Demo extends React.Component { componentWillMount () { this.setState({ width: document.body.clientWidth }) this.onresizeListener = this.onResize.bind(t...
src/InputToolbar.js
atFriendly/react-native-friendly-chat
/* eslint no-use-before-define: ["error", { "variables": false }] */ import PropTypes from 'prop-types'; import React from 'react'; import { StyleSheet, View, Keyboard, ViewPropTypes, TouchableOpacity } from 'react-native'; import Composer from './Composer'; import Send from './Send'; import Actions from './Actions';...
blueprints/dumb/files/__root__/components/__name__/__name__.js
simonvpe/borrkoll-react
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
app/javascript/mastodon/features/account_gallery/components/media_item.js
kibousoft/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; export default class MediaItem extends ImmutablePureComponent { static propTypes = { media: Immutable...
src/components/project/ProjectCard.js
axmand/react-webpack-redux
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; //UI //图标 //img //自定义 import ShowCard from './ShowCard'; import appConfig from "../../redux/Config" //Redux import {connect} from 'react-redux' const styles = { box:{ display: 'flex', ...
app-course-sync/views/RepositoryForkView.js
globant-ui-rosario/progress-tracker
import React, { Component } from 'react'; class BootcampRepositoryForkView extends Component { render () { return <div>Repository fork</div>; } }; export default BootcampRepositoryForkView;
src/index.js
arshdkhn1/trade-app
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './styles/global.sass'; import './favicon.ico'; import { syncHistory...
client/components/MovieCards.js
fangweb/tmdb-redux
import React, { Component } from 'react'; import MovieCard from '../components/MovieCard'; import PropTypes from 'prop-types'; const propTypes = { data: PropTypes.object.isRequired }; class MovieCards extends Component { constructor(props) { super(props); } componentDidMount() { window.addEventL...
src/website/app/MarkdownTable.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import { Table, TableCell, TableHeaderCell, TableRow } from './Table'; import { isAvailable, isExperimental, isInDevelopment, isNew, isPlanned } from './tableCellTransforms'; type TableTreeItem = { props: { children: React$Element<*>[] } }; type Props = { children:...
src/containers/DevTools/DevTools.js
sebastiandeutsch/react-redux-starter
import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a monitor an...
index.ios.js
solium/swift-react-native-hybrid
/** * @flow */ import React, { Component } from 'react'; import { AppRegistry, View } from 'react-native'; import ReactNativeTab from './app/ReactNativeTab'; export default class SwiftReactNativeHybrid extends Component { // Use this to intialize global state that all tabs will use, // e.g. a Redux store ...
src/app/index.js
henkin/brex
'use strict' import React from 'react'; import { render } from 'react-dom'; import { Main } from './main'; // we need the user passed in a parameter render( <Main user={serializedUser}/>, document.getElementById('example') );
ceephax/components/users/index.js
mrceephax/ceephax.com.frontend
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import renderHTML from 'react-render-html'; import { fetchUsers } from 'ceephax/redux/actions/users'; class Users extends React.Component { componentWillMount() { this.props.dispatch(fetchUsers()); } ...
node_modules/react-native/Libraries/Modal/Modal.js
hpdmitriy/Bjj4All
/** * 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/Loading/LoadingMsg/LoadingMsg.js
jmlweb/paskman
import React from 'react'; import PT from 'prop-types'; import styled from 'styled-components'; import colors from '../../../styles/colors'; const StyledLoadingMsg = styled.p` color: ${colors.secondary}; margin: 2rem; text-align: center; font-weight: 500; font-size: 2rem; `; const LoadingMsg = ({ children }...
docs/app/Examples/elements/Button/Variations/ButtonExampleVerticallyAttached.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button, Segment } from 'semantic-ui-react' const ButtonExampleVerticallyAttached = () => ( <div> <Button attached='top'>Top</Button> <Segment attached> <img src='http://semantic-ui.com/images/wireframe/paragraph.png' /> </Segment> <Button attached='bottom'>Bot...
renderer/components/Channels/ChannelCreateHeader.js
LN-Zap/zap-desktop
import React from 'react' import { FormattedMessage } from 'react-intl' import { Box } from 'rebass/styled-components' import { Header } from 'components/UI' import LightningChannel from 'components/Icon/LightningChannel' import messages from './messages' const ChannelCreateHeader = props => ( <Box {...props}> <...
react-dev/components/signup_form.js
575617819/yanghang
import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; const styles = { signup: { paddingLeft: 20, paddingRight: 20, }, robotDiv: { position: 'absolute', left: -5000 } }; const action = '//liquidthink.us10....
app/routes/StoreRouter.js
VineRelay/VineRelayStore
import React from 'react'; import { ThemeProvider } from 'styled-components'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { Switch, Route } from 'react-router-dom'; import defaultTheme from 'app/themes/default'; import BrandsRoute from 'app/components/Store/Routes/BrandsRoute'; import Br...
ajax/libs/react-instantsearch/5.0.2/Connectors.js
joeyparrish/cdnjs
/*! ReactInstantSearch 5.0.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :...
app/renderer/views/MainContent.js
blenoski/movie-night
import React from 'react' import styled from 'styled-components' import { DisplayMoviesContainer } from '../controller' import Button from './Button' export default ({ isCrawling, handleAddMediaClick, totalMovieCount }) => { // Handle first time application started and/or empty database. if (totalMovieCount...
react/features/largeVideo/components/LargeVideo.js
bickelj/jitsi-meet
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { ParticipantView } from '../../conference'; import { styles } from './styles'; /** * Large video React component. * * @extends Component */ class LargeVideo extends Component { /** * Implements React's {@link Compon...
client/verification-portal/authentication/logout-button.js
HelpAssistHer/help-assist-her
import React from 'react' import injectSheet from 'react-jss' import { logoutUser } from './action-creators' const LogoutButton = ({ classes }) => ( <div> <div className={classes.button}> <button className={classes.logoutButton} onClick={logoutUser}> Logout </button> </div> </div> ) const styles = { ...
src/app/routes/forms/components/layouts/RegistrationForm.js
backpackcoder/world-in-flames
import React from 'react' import UiValidate from '../../../../components/forms/validation/UiValidate' import MaskedInput from '../../../../components/forms/inputs/MaskedInput' import UiDatepicker from '../../../../components/forms/inputs/UiDatepicker' const validationOptions = { // Rules for form validation rul...
frontend/src/System/Updates/UpdatesConnector.js
geogolem/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 { fetchGeneralSettings } from 'Stor...
modules/react-router-2.5.2/examples/auth-with-shared-root/components/App.js
nanyou-environment/enBackEnd
import React from 'react' import { Link } from 'react-router' import auth from '../utils/auth' const App = React.createClass({ getInitialState() { return { loggedIn: auth.loggedIn() } }, updateAuth(loggedIn) { this.setState({ loggedIn: !!loggedIn }) }, componentWillMount() { ...
src/containers/About/index.js
quran/quran.com-frontend
import React from 'react'; import IndexHeader from 'components/IndexHeader'; import Helmet from 'react-helmet'; export default () => ( <div> <Helmet title="About Quran.com" /> <IndexHeader noSearch /> <div className="about-text container-fluid"> <div className="row"> <div className="col-md-...
resources/assets/js/app.js
Uminks/Restaurant-Manager
import React, { Component } from 'react'; import { render } from 'react-dom'; import AppAdministrador from './components/AppAdministrador'; import AppHome from './components/AppHome'; require('./bootstrap'); let appAdministrador = document.getElementById('appAdministrador'); if (appAdministrador) { render(<AppAd...
packages/react-ui-components/src/_lib/testUtils.js
dimaip/neos-ui
import React from 'react'; import {shallow} from 'enzyme'; const err = msg => { throw new Error(msg); }; const NO_COMPONENT = 'Please specify a valid Reac.component constructor in the createRenderer call.'; /** * The createShallowRenderer function is used to write less repetitive * tests setup. * * @param {R...
src/components/contact.js
AnkilRNaik/AnkilRNaik.github.io
import React from 'react'; import { contact } from '../content/contact.json'; function Contact() { return ( <div> <p>{contact.email}</p> <p>{contact.phone}</p> <p><a href={contact.linkedin}>LinkedIn</a></p> <p><a href={contact.github}>GitHub</a></p> <p><a href={contact.twitter}>Twit...
app/utils/injectReducer.js
TheTopazWombat/levt-2
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './reducerInjectors'; /** * Dynamically injects a reducer * * @param {string} key A key of the reducer * @param {function} reducer A reducer that will be injected * ...
packages/icons/src/md/notification/VpnLock.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdVpnLock(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M44 8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H34a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2V7c0-2.76 2.24-5 5-5s5 2.24 5 5v1zm-1.6 0V7c0-1.88-1.52-3.4-3.4-3.4S35.6 5.12 35...
src/client/assets/js/nodes/datastores/twitter/node.js
me-box/iot.red
import React from 'react'; import Textfield from 'components/form/Textfield'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import Select from 'components/form/Select'; import {configNode} from 'utils/ReactDecorators'; @configNode() export default class Node extends React.Component { ...
public/js/components/Profile/index.js
nowordforfree/react-cv
import React from 'react'; import { Field } from 'redux-form'; import RaisedButton from 'material-ui/RaisedButton'; import Snackbar from 'material-ui/Snackbar'; import renderTextField from '../../helpers'; class Profile extends React.Component { constructor(props) { super(props); this.submit = this.submit.bi...
src/ModalTitle.js
apkiernan/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { componentClass: elementType, }; const defaultProps = { componentClass: 'h4', }; class Modal...
src/svg-icons/communication/contact-phone.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactPhone = (props) => ( <SvgIcon {...props}> <path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-...
client/src/App.js
beautron7/Debate-Thing
import React, { Component } from 'react'; import Hash from 'object-hash' import Sidebar from './components/Sidebar' import Searchbar from './components/Searchbar' import CardsFrame from './components/CardsFrame' import Editor from './components/Editor' import Tabbar from './components/Tabbar' import Ribbon from './comp...
src/components/actions.js
alexcurtis/react-fbpage
'use strict'; import React from 'react'; import {Map} from 'immutable'; class Actions extends React.Component { constructor(props){ super(props); } render(){ const style = this.props.style; const actions = this.props.actions; return ( <div style={style.base}> ...
notebook/experience/web/webpack4-upgrade-log/simple-webpack-config/src/components/table-colgroup.js
JMwill/wiki
import React from 'react' export default function TableColGroup(props) { const total_width = props.total_width const cell_arr = props.cell_width_list const styles = {} for (let i = 0; i < cell_arr.length; i++) { styles['c' + i] = {width: (cell_arr[i] * 100 / total_width) + '%'} } return ( <colgrou...
client/js/app.js
charitycollective/charitytree
import React from 'react'; import { History } from 'react-router'; var LocalStorageMixin = require('react-localstorage'); import { loggedIn } from '../config/routes.js'; import {Navbar} from './navbar.js'; var App = exports.App = React.createClass({ displayName: 'App', mixins: [History, LocalStorageMixin], ge...
assets/javascripts/kitten/components/typography/paragraph/stories.js
KissKissBankBank/kitten
import React from 'react' import { Paragraph } from './index' import { Marger, Text } from 'kitten' import { DocsPage } from 'storybook/docs-page' export default { component: Paragraph, title: 'Typography/Paragraph', parameters: { docs: { page: () => ( <DocsPage filepath={__filename} ...