path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SassModulesInclusion.js
facebookincubator/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import styles from './assets/sass-styles.module.sass'; import indexStyles from './assets/index.module.sass'; ...
src/ui/components/EndpointsList.js
BE-Webdesign/wp-rest-api-reference
/** * External dependecies. */ import React from 'react' /** * Internal dependecies. */ import ReferenceEndpoint from './ReferenceEndpoint' const EndpointsList = ( { endpoints } ) => { return ( <div className="endpoints-list"> <h3 className="endpoints-list__title">Endpoints:</h3> <ul> { endpoints.map...
src/svg-icons/navigation/close.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose = pure(Navig...
ui/src/core/components/Navigation.js
erlanglab/erlangpl
// @flow import React from 'react'; import { Link, Route } from 'react-router-dom/'; import './Navigation.css'; const NavigationLink = ({ to, icon }) => ( <Route path={to} exact={false} children={({ match }) => ( <div className={`item ${match ? 'active' : ''}`}> <Link to={to}> {i...
frontend/src/courses/components/header.js
OptimusCrime/youkok2
import React from 'react'; import { HeaderColumn } from './header-column'; import {COLUMN_CODE, COLUMN_NAME} from "../constants"; import {formatNumber} from "../../common/utils"; export const Header = ({ column, order, changeOrder, numCourses }) => ( <div className="course-row course-row__header"> <HeaderColumn...
04-mybooks-lab4/src/Header.js
iproduct/course-node-express-react
import React from 'react'; export default function Header() { return ( <React.Fragment> <h2 className="header center orange-text">My Library</h2> <div className="row center"> <h5 className="header col s12 light">Bookmark your favourite books</h5> </div> <div className="row center"...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/MediaList.js
Akkuma/npm-cache-benchmark
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/app/Examples/collections/Message/Variations/MessageExampleInfo.js
aabustamante/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleInfo = () => ( <Message info> <Message.Header>Was this what you wanted?</Message.Header> <p>Did you know it's been a while?</p> </Message> ) export default MessageExampleInfo
docs/client/components/pages/Sticker/gettingStarted.js
koaninc/draft-js-plugins
// It is important to import the Editor which accepts plugins. import Editor from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved import createStickerPlugin from 'draft-js-sticker-plugin'; // eslint-disable-line import/no-unresolved import React from 'react'; import { fromJS } from 'immutable'; ...
docs/src/pages/blog.js
Gisto/Gisto
import React from 'react'; import { Helmet } from 'react-helmet'; import { graphql, Link } from 'gatsby'; import Header from 'components/header'; import Footer from 'components/footer'; const Blog = ({ data }) => ( <React.Fragment> <Helmet> <title>Blog</title> </Helmet> <Header/> <h1>Blog</h...
threeforce/node_modules/react-bootstrap/es/MediaRight.js
wolfiex/VisACC
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 ...
examples/with-url-object-routing/pages/index.js
arunoda/next.js
import React from 'react' import Link from 'next/link' const href = { pathname: '/about', query: { name: 'next' } } const as = { pathname: '/about/next', hash: 'title-1' } export default () => ( <div> <h1>Home page</h1> <Link href={href} as={as}> <a>Go to /about/next</a> </Link> </div> ...
src/svg-icons/notification/tap-and-play.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationTapAndPlay = (props) => ( <SvgIcon {...props}> <path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-2...
src/views/pages/home/index.js
raycent/ARWM_Exercise_Redux
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Loader } from 'semantic-ui-react'; import { stockActions } from 'core/stock'; import { Dashboard } from 'views/components/Dashboard'; import { NotFound } from 'views/components/notFound'; class StockPage extends Component { co...
app/components/Dash.js
scalegray/scalegray
import React from 'react'; import AuthenticatedComponent from './AuthenticatedComponent' export default AuthenticatedComponent(class Dash extends React.Component { render() { return (<h1>Hello user!!</h1>); } });
frontend/scripts/components/common/TextInput.js
jakubzloczewski/react-exercise
import React from 'react'; class TextInput extends React.Component { render() { const {onChange, placeholder} = this.props; const style = this.getStyle(); return (<input style={style} type="text" placeholder={placeholder} onChange={onChange}/>); } ...
src/pages/home/index.js
joefraley/ratticusscript
'use strict' import Helmet from 'react-helmet' import { ListOfPosts } from '../../components/blog/list-of-posts' import Path from 'path-browserify' import { ProfilePhoto } from '../../components/profile-photo' import React from 'react' import { getPosts } from '../../utilities' export const HomePage = props => { ret...
internals/templates/homePage/homePage.js
adoveil/max
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
generators/component/templates/4/components/StatelessCssModules.js
react-webpack-generators/generator-react-webpack
import React from 'react'; import cssmodules from 'react-css-modules'; import styles from '<%= style.webpackPath %>'; const <%= component.className %> = () => ( <div className="<%= style.className %>" styleName="<%= style.className %>"> Please edit <%= component.path %><%= component.fileName %> to update this co...
src/components/Markdown/Markdown.js
nolawi/champs-dialog-sg
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import React, { Component } from 'react'; import classNames from 'classnames'; import { parse, parseInline, decorators } from '@dlghq/markdown'; import { renderBlocks, renderText } from './render'; import styles from './Markdown.css'; export type Props = { ...
src/entypo/ChevronSmallRight.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ChevronSmallRight'; let EntypoChevronSmallRight = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M11,10L7.859,6.58c-0.268-0.27-0.268-0.707,0-0.978c0.268-0.27,0.701-0.27,0.969,0...
public/components/tehtPage/tabsComponents/tehtava/Kohdekortti.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; import Showcase from '../reusables/templates/Showcase'; import { connect } from 'react-redux'; const Kohdekortti = (props) => ( <div className="kohdekortti"> <h2>Kohdekortti:</h2> {props.kohdekortit.map((card) => <Showcase src={card.url}/> )} </div...
src/index.js
udfalkso/react-redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, connect } = createAll(React);
website/src/AppFrame.js
kkamperschroer/react-navigation
import React from 'react'; import Link from './Link'; import Footer from './Footer'; import { addNavigationHelpers, } from 'react-navigation'; const NavigationLinks = ({navigation, className, reverse}) => { let links = [ ...navigation.state.routes.map((route, i) => { if (route.routeName === 'Home' || ro...
src/svg-icons/notification/phone-paused.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
collect-webapp/frontend/src/datamanagement/components/NewRecordParametersDialog.js
openforis/collect
import React from 'react' import PropTypes from 'prop-types' import { Button, Dialog, DialogTitle, DialogActions, Table, TableBody, TableCell, TableHead, TableRow, } from '@mui/material' import L from 'utils/Labels' import Dates from 'utils/Dates' const NewRecordParametersDialog = (props) => { con...
src/parser/deathknight/unholy/modules/features/ClawingShadowsEfficiency.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import StatisticBox, { ...
src/svg-icons/action/backup.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBackup = (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.96z...
components/page-title.js
bukinoshita/open-source
import React from 'react' const PageTitle = () => ( <div> <h1 className="page__title">Embrace Open Source</h1> <h2 className="page__subtitle">A list of GitHub issues to help beginners make their first pull request.</h2> <style jsx>{` .page__title { color: #3d4752; font-weight: 400;...
src/components/MaterialPicker.js
JedWatson/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import merge from 'merge' import isPlainObject from 'lodash.isplainobject' import debounce from 'lodash.debounce' import color from '../helpers/color' import Material from './material/Material' class ColorPicker extends ReactCSS.Compo...
src/containers/Asians/Published/_AppBar/SmallAppBar/BreakRoundsButtons/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Instance from './Instance' export default connect(mapStateToProps)(({ breakCategories, toggle }) => { return ( <div> {breakCategories.sort((a, b) => b.default).map(breakCategory => <Instance key={breakCategory._id...
src/svg-icons/hardware/tv.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTv = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); HardwareTv = pure(Hardwar...
src/views/HeaderTitle.js
Steviey/win-react-navigation
/* @flow */ import React from 'react'; import { Platform, StyleSheet, Text, } from 'react-native'; import type { Style, } from '../TypeDefinition'; type Props = { tintColor?: ?string; style?: Style, }; const HeaderTitle = ({ style, ...rest }: Props) => ( <Text numberOfLines={1} {...rest} style={[styl...
client/src/components/Join/Join.js
jenovs/bears-team-14
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import api from '../../api'; import './style.css'; import Flash from '../Flash'; class Join extends Component { state = { errorStatus: '', busy: false, }; componentDidMount() { if (this.props.loggedIn) { this...
client/index.js
BostonGlobe/elections-2017
// This is the app's client-side entry point. Webpack starts here when // bundling the entire codebase. /* eslint-disable global-require, no-unused-vars */ import React from 'react' import ReactDOM from 'react-dom' import { browserHistory } from 'react-router' import configureStore from './../common/store/configureSto...
app/containers/HomePage/index.js
tarioto/Portfolio
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
packages/material-ui-icons/src/Filter6.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Filter6 = props => <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-2c0-...
docs/src/app/components/pages/components/Card/ExampleControlled.js
verdan/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Toggle from 'material-ui/Toggle'; export default class CardExampleControlled extends React.Component { constructor(props) { super(pro...
app/components/Log.js
L-A/Little-Jekyll
import React, { Component } from 'react'; var Log = React.createClass({ render: function () { return ( <li className={this.props.log.logType}><p className="log-data">{this.props.log.logData}</p></li> ); } }) module.exports = Log;
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
RobertKielty/react-router
import React from 'react'; class Grades extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments; return ( <div> <h3>Grades</h3> <ul> {assignments.map(assignment => ( <li key={assignment.id}>{assignment.grade} - {assi...
example/TestLibQuickblox/ContactList.js
ttdat89/react-native-video-quickblox
/** * Created by Dat Tran on 9/27/17. */ import React from 'react'; import { StyleSheet, Text, TextInput, View, LayoutAnimation, TouchableOpacity, FlatList } from 'react-native'; import QuickbloxManager from './QuickbloxManager'; export default class ContactList extends React.Component { constructor...
react-src/catalog/components/FilterTheme.js
gabzon/experiensa
import React from 'react'; import CatalogFilterButton from './filters/CatalogFilterButton' export default class FilterTheme extends React.Component { constructor(){ super() } renderThemesButtons(){ if(this.props.themes) { return this.props.themes.map((theme) => { ...
app/Resources/js/index.js
shempignon/podcast-api
import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import routes from './routes' import injectTapEventPlugin from 'react-tap-event-plugin' injectTapEventPlugin() const render = (Component) => { ReactDOM.render( <AppContainer> <Component/> <...
src/routes/system/Role/ModalForm.js
daizhen256/i5xwxdoctor-web
import React from 'react' import PropTypes from 'prop-types' import { Form, Input, Modal, Icon } from 'antd' import UserPower from './UserPower' import styles from './ModalForm.less' const FormItem = Form.Item const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 } } const ModalForm ...
src/components/secure/show_book.js
haki-projects/mapping-feminism-v2
import React, { Component } from 'react'; import { fetchBooks } from '../../actions/books'; import { connect } from 'react-redux'; import { Link } from 'react-router'; class BookShow extends Component { constructor(props) { super(props); } componentDidMount() { this.props.fetchBooks(); } rende...
index.ios.js
jokunhe/react-native-ee-camera
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class chuanzhang extends Component { render() { return ( <View style={styles.containe...
src/components/ControllerUnit.js
budunwang/React-Gallery
import React from 'react'; class ControllerUnit extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } //索引点击事件 handleClick(e) { if(this.props.arrange.isCenter) { this.props.inverse(); } else { this.props.center(); } e...
src/components/RevealAuction/RevealAuctionInfo.js
PhyrexTsai/ens-bid-dapp
import React from 'react'; import {shortFormatHash, momentFromNow} from '../../lib/util'; import Button from 'material-ui/Button'; import Card from 'material-ui/Card'; import Divider from 'material-ui/Divider'; import './RevealAuctionInfo.css'; const FinalizeAuctionOn = (props) => <div className='FinalizeAuctionOn'>...
pootle/static/js/admin/components/Language/LanguageController.js
pavels/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. */ import React from 'react'; import Search from '../Search'...
src/svg-icons/image/add-to-photos.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAddToPhotos = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> ...
docs/index.js
casesandberg/reactcss
'use strict' import ReactDOM from 'react-dom' import React from 'react' import '../node_modules/normalize.css/normalize.css' import Docs from './components/docs/Docs' ReactDOM.render( React.createElement(Docs), document.getElementById('root') )
src/svg-icons/av/shuffle.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvShuffle = (props) => ( <SvgIcon {...props}> <path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2....
src/components/GameListItemComponent.js
noraeb/tictactoe
import React from 'react'; const containerStyle = { fontFamily: "Roboto" } class GameListItemComponent extends React.Component { selectGame() { this.props.onClick(this.props.game); } render() { return ( <li style={containerStyle} onClick={this.selectGame.bind(this)}>Game by {this.props.game.pla...
src/index.js
raghu666/Reactapp
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; import { BrowserRouter } from 'react-router...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputer.js
vageeshb/Semantic-UI-React
import React from 'react' import { Grid } from 'semantic-ui-react' const GridExampleReversedComputer = () => ( <Grid reversed='computer' columns='equal'> <Grid.Row> <Grid.Column>Computer A Fourth</Grid.Column> <Grid.Column>Computer A Third</Grid.Column> <Grid.Column>Computer A Second</Grid.Colu...
react/components-test/src/App.js
MarioCodes/Desarrollo_Proyectos_Clase
import React, { Component } from 'react'; import './App.css'; import HelloWorld from './component/HelloWorld' class App extends Component { render() { return ( <div className="App"> <HelloWorld/> </div> ); } } export default App;
src/app.js
dahtuska/tekstiilit
import React from 'react'; import ReactDOM from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; import AppRoutes from './AppRoutes'; // Helpers for debugging window.React = React; window.Perf = req...
src/router.js
Arinono/uReflect_POC_Electron01
import React from 'react'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; // Pages import App from './containers/App'; var routes = ( <Route path="/" component={App}> </Route> ); export default routes;
src/js/components/icons/base/BrandGrommetPath.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/src/containers/Services/SectionOne/ServicesSectionOne.js
RyanCCollins/ryancollins.io
import React from 'react'; import './ServicesSectionOne.scss'; import { Column, Row, Button } from 'react-foundation'; import { Divider } from '../../../components'; const paragraph1P1 = `Through the `; const paragraph1P2 = ` platform, we have proven that working collaboratively on meaningful open sources pr...
web/src/routes.js
doeg/plantly-graphql
import makeRouteConfig from 'found/lib/makeRouteConfig' import Route from 'found/lib/Route' import React from 'react' import AllSpeciesPage from './components/AllSpeciesPage' import App from './components/App' import AuthCallback from './components/AuthCallback' import AuthRenewCallback from './components/AuthRenewCal...
src/components/AppraisalFormat.js
wiserl/appraisal-frontend
import React from 'react'; const styles = { border: '4px #545454', margin: '90px', padding: '40px', }; export default appraisal => ( <div style={{...styles}}> <h4> Requester Email: {appraisal._email}</h4> <p>Type: {appraisal._type}</p> <div><em>Start Date: {appraisal._start}</em></div> <di...
app/javascript/mastodon/features/follow_requests/index.js
rainyday/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/UserRegistration.js
dkadrios/zendrum-stompblock-client
import React from 'react' import PropTypes from 'prop-types' import { withStyles, Button, DialogActions, DialogContent, DialogContentText, DialogTitle, SvgIcon, } from '@material-ui/core' import UserRegistrationForm from './UserRegistrationForm' import GravatarIcon from '../images/Gravatar.svg' import Dia...
app/components/BaseComponent.js
timothyvanderaerden/React-TMDb
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; class BaseComponent extends Component { componentDidUpdate(prevProps) { if (this.props.location !== prevProps.location) { window.scrollTo(0, 0); } } render() { return ( ...
src/containers/NoteDialogContainer.js
dggriffin/noteworthee
import React from 'react'; import NoteDialog from 'components/NoteDialog'; import Rebase from 're-base'; const base = Rebase.createClass('https://noteworthyapp.firebaseio.com'); class NoteDialogContainer extends React.Component { constructor(props) { super(props); } addNote(newNote) { let noteKey = bas...
packages/material-ui/src/GridList/GridList.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = { root: { display: 'flex', flexWrap: 'wrap', overflowY: 'auto', listStyle: 'none', padding: 0, WebkitOverflowScrolling: 'tou...
docs/src/modules/components/GoogleTag.js
cherniavskii/material-ui
import React from 'react'; import config from 'docs/src/config'; class GoogleTag extends React.Component { componentDidMount() { // Wait for the title to be updated. this.googleTimer = setTimeout(() => { window.gtag('config', config.google.id, { page_path: window.location.pathname, }); ...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/containers/components/container/tabs.js
boquiabierto/wherever-content
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; /** * The internal dependencies. */ import ContainerBase from 'containers/components/container/base'; /** * Render the tabs of the container. * * @param {Object} props * @par...
test/connect/batch-force-update.js
nofluxjs/noflux-react
import test from 'ava'; import '../helpers/setup-test-env'; import React, { Component } from 'react'; import { mount } from 'enzyme'; import { connect, state } from '../../src'; test('should batch forceUpdate', t => { state.set({ name: 'Ssnau' }); let forceUpdateCallTimes = 0; let renderCallTimes = 0; @conne...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
allengaller/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import ActorTheme from 'constants/ActorTheme'; import MessageAction...
src/svg-icons/hardware/security.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSecurity = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/> </SvgIcon> ); Hardwa...
playground/client/src/index.js
JHerrickII/NewsTree
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/VideoPlayer/HLS/Stream.js
matmoi/react-adaptive-streaming
import React from 'react' import PropTypes from 'prop-types' import DropdownPanel from '../../utils/DropdownPanel.js' export default class HLSStream extends React.Component { render() { const { mediaPlayer } = this.props return ( <DropdownPanel title={"HLS Stream"} data={{ ...
packages/wix-style-react/src/TableActionCell/docs/examples/PrimarySecondaryRTLExample.js
wix/wix-style-react
import React from 'react'; import Star from 'wix-ui-icons-common/Star'; import Download from 'wix-ui-icons-common/Download'; import Duplicate from 'wix-ui-icons-common/Duplicate'; import Print from 'wix-ui-icons-common/Print'; import { classes } from '../TableActionCell.story.st.css'; import { TableActionCell } from ...
src/svg-icons/action/favorite.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavorite = (props) => ( <SvgIcon {...props}> <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6...
pages/index.js
nickroberts404/meadowlab
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from 'react-helmet' import { config } from 'config' import PhotoCollage from '../components/PhotoCollage' export default class Index extends React.Component { render () { return ( <div> ...
src/svg-icons/device/access-time.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessTime = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1...
examples/js/expandRow/manage-expanding.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/parser/priest/shadow/modules/spells/ShadowWordPain.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import SmallStatisticBo...
site/pages/ExamplePage.js
tomulin1/react-dnd
import React from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import SideBar from '../components/SideBar'; import { ExamplePages } from '../Constants'; export default class ExamplesPage { render() { return ( <div> <Header/> <PageBody ha...
client/node_modules/react-router/es6/RouteContext.js
Discounty/Discounty
'use strict'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ var RouteCon...
app/javascript/mastodon/features/compose/components/autosuggest_account.js
8796n/mastodon
import React from 'react'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; class AutosuggestAccount extends ImmutablePureComponen...
client/src/javascript/components/modals/torrent-details-modal/TorrentFiles.js
stephdewit/flood
import _ from 'lodash'; import {Button, Checkbox, Form, FormRow, FormRowItem, Select, SelectItem} from 'flood-ui-kit'; import classnames from 'classnames'; import {FormattedMessage, injectIntl} from 'react-intl'; import React from 'react'; import ConfigStore from '../../../stores/ConfigStore'; import Disk from '../../...
src/svg-icons/image/camera.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCamera = (props) => ( <SvgIcon {...props}> <path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4...
docs/src/app/components/pages/components/CircularProgress/ExampleDeterminate.js
w01fgang/material-ui
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; export default class CircularProgressExampleDeterminate extends React.Component { constructor(props) { super(props); this.state = { completed: 0, }; } componentDidMount() { this.timer = setTimeout(() ...
admin/client/App/shared/Popout/PopoutHeader.js
frontyard/keystone
/** * Render a header for a popout */ import React from 'react'; import Transition from 'react-addons-css-transition-group'; const PopoutHeader = React.createClass({ displayName: 'PopoutHeader', propTypes: { leftAction: React.PropTypes.func, leftIcon: React.PropTypes.string, title: React.PropTypes.string.is...
src/components/typography/caption.js
mattmischuk/m1x
// @flow import React from 'react' import type { Node } from 'react' import styled from 'styled-components' import cx from 'classnames' import { myTheme } from '../../styles' const { fontSize } = myTheme const StyledCaption = styled.h6` font-size: ${fontSize.seven}; text-transform: uppercase; ` const styles = {...
src/components/ProjectPostEditor.js
Hylozoic/hylo-redux
/* eslint-disable camelcase */ import React from 'react' import { connect } from 'react-redux' import Icon from './Icon' import DatetimePicker from 'react-datetime' import { debounce } from 'lodash' import { get, map, pick, filter } from 'lodash/fp' import { getPost, getVideo } from '../models/post' const { array, func...
app/containers/HomePage/index.js
Illyism/sample-dashboard
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove * the ...
src/index.js
nsipplswezey/iifym
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
src/svg-icons/device/nfc.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNfc = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2...
client/source/js/models/t_groups_m.js
Vladimir37/Planshark
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import {submitting, getData} from '../submitting.js'; import {Waiting, Error, Empty, Menu, Forbidden} from './templates.js'; import toast from '../toaster.js'; import {colorpick} from '../picker.js'; //responses var actions_r = ['Succ...
src/routing/routes.js
dopry/netlify-cms
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from '../containers/App'; import DashboardPage from '../containers/DashboardPage'; import CollectionPage from '../containers/CollectionPage'; import EntryPage from '../containers/EntryPage'; import SearchPage from '../containers/Sea...
test/integration/scss-fixtures/multi-page/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' import '../styles/global1.scss' import '../styles/global2.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
packages/playground/src/createDevModeAttachmentMiddleware.js
billba/botchat
import React from 'react'; import DebugAdaptiveCardAttachment from './DebugAdaptiveCardAttachment'; import JSONDebugView from './JSONDebugView'; export default function () { return () => next => ({ activity, attachment }) => attachment.contentType === 'application/vnd.microsoft.card.adaptive' ? ( <DebugAda...
src/components/operations/operations-by-series.js
FranckCo/Operation-Explorer
import React from 'react'; import { sparqlConnect } from 'sparql-connect'; import OperationList from './operation-list'; import Spinner from 'components/shared/spinner' import D, { getLang } from 'i18n' /** * Builds the query that retrieves the series of a given family. */ const queryBuilder = series => ` PREFIX dc...
actor-apps/app-web/src/app/components/ActivitySection.react.js
jamesbond12/actor-platform
import React from 'react'; import classNames from 'classnames'; import { ActivityTypes } from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'; import GroupProfile from 'components/activity/GroupProfile.react'; const getS...
packages/fyndiq-icons/src/bubbles.js
fyndiq/fyndiq-ui
import React from 'react' import SvgWrapper from './svg-wrapper' const Bubbles = ({ className, color }) => ( <SvgWrapper className={className} viewBox="0 0 37 32"> <path d="m22.92 0.81055a4.6385 4.6385 0 1 0 0.001953 9.2773 4.6385 4.6385 0 0 0 -0.001953 -9.2773zm0 1.2656a3.376 3.376 0 0 1 3.373 3.373 3.376...
packages/rmw-shell/src/providers/Firebase/Paths/with.js
TarikHuber/react-most-wanted
import Context from './Context' import React from 'react' const withContainer = (Component) => { const ChildComponent = (props) => { return ( <Context.Consumer> {(value) => { return <Component {...value} {...props} /> }} </Context.Consumer> ) } return ChildComponent...