path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/views/Components/TestSet.js
pranked/cs2-web
import React from 'react'; import './TestSet.scss'; export default class TestSet extends React.Component { render() { const flatten = res => { let didPass = `glyphicon glyphicon-${res.passed === true ? 'ok' : 'removed'}`; return ( <tr key={res.name} > <td>{res.name}</td> ...
src/svg-icons/av/replay.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/> </SvgIcon> ); AvReplay = pure(AvReplay); AvReplay...
node_modules/react-icons/go/arrow-up.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const GoArrowUp = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 7.5l-12.5 15h7.5v10h10v-10h7.5l-12.5-15z"/></g> </Icon> ) export default GoArrowUp
src/components/helpers/Loading.js
kennethaa/vanvikil-live
import React from 'react'; import Icon from 'react-fa'; export default function Loading() { return ( <div className="text-center"> <Icon spin name="spinner" size="5x" /> </div> ); }
src/modules/home/containers/HomeFeaturesContainer/HomeFeaturesContainer.js
cltk/cltk_frontend
import React from 'react'; import { compose } from 'react-apollo'; import homeFeaturesQuery from '../../graphql/queries/homeFeaturesQuery'; import HomeFeatures from '../../components/Home/sections/HomeFeatures'; class HomeFeaturesContainer extends React.Component { render() { let worksCount = 0; let textGroupsCo...
client/utils/relay.js
ncrmro/reango
import React from 'react' import { hasValidJwtToken } from 'modules/auth/jwtUtils' import Loading from '../components/Loading/Loading' import { QueryRenderer } from 'react-relay' import { ConnectionHandler, Environment, Network, RecordSource, Store } from 'relay-runtime' const source = new RecordSource() c...
src/main/assets/components/SidePoster.js
kristenkotkas/moviediary
import React from 'react'; import '../static/css/App.css'; import FontAwesome from 'react-fontawesome'; export default class SidePoster extends React.Component { constructor(props) { super(props); this.state = { movieTitle: props.movieTitle, movieId: props.movieId, moviePosterPath: props.m...
app/pages/servicePhotoPage.js
shiyunjie/scs
/** * Created by shiyunjie on 16/12/6. */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Platform, TouchableOpacity, ScrollView, TextInput, ListView, Image, Dimensions, Alert, NativeAppEventEmitter, ActivityIndicator, NativeModules, ...
src/pages/ProfilePage.js
mDinner/musicansAssistant
import React from 'react'; import DocumentTitle from 'react-document-title'; import TextField from 'material-ui/lib/TextField'; import { UserComponent } from 'react-stormpath'; export default TextField; export default class ProfilePage extends UserComponent { onFormSubmit(e) { e.preventDefault(); } ren...
src/_stories/index.js
guzmonne/conapps-charts
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import { withKnobs } from '@kadira/storybook-addon-knobs' // LineChart Stories import LineChartTimeScaleStory from './LineChartTimeScaleStory.js'; import LineChartLinearScaleStory from './LineChartLinearScaleStory.js'; // BarChart...
packages/@lyra/components/src/snackbar/story.js
VegaPublish/vega-studio
import React from 'react' import Snackbar from 'part:@lyra/components/snackbar/default' import {storiesOf, action} from 'part:@lyra/storybook' import { withKnobs, select, text, number } from 'part:@lyra/storybook/addons/knobs' import Lyra from 'part:@lyra/storybook/addons/lyra' const getKinds = () => select('K...
src/main/js/src/index.js
fernandojunior/spring-react-boilerplate
/* React, browser and server rendering functions. We need the * first import, even though it isn't explicitly referenced * in this file, in order to avoid runtime errors. */ import React from 'react'; import ReactDOM from 'react-dom'; // State management with redux import { Provider } from 'react-redux'; // Routin...
src/page/index/components/loading/index.js
SteamerTeam/steamer-react
import React, { Component } from 'react'; import pureRender from 'pure-render-decorator'; require('./index.less'); @pureRender export default class List extends Component { constructor(props, context) { super(props, context); this.state = { }; } componentWillMount() { } componentDidMount() { } r...
examples/universal/client/index.js
andreieftimie/redux
import 'babel-core/polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initi...
src/routes/gameoflife/Gameoflife.js
zsu13579/whatsgoinontonight
import React from 'react'; import PropTypes from 'prop-types'; import { graphql, compose } from 'react-apollo'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Gameoflife.css'; import { connect } from 'react-redux'; import { setRuntimeVariable } from '../../actions/runtime'; class Btn...
src/components/common/svg-icons/hardware/developer-board.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDeveloperBoard = (props) => ( <SvgIcon {...props}> <path d="M22 9V7h-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2v-2h-2V9h2zm-4 10H4V5h14v14zM6 13h5v4H6zm6-6h4...
app/javascript/mastodon/features/compose/components/upload_progress.js
robotstart/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Motion, spring } from 'react-motion'; import { FormattedMessage } from 'react-intl'; class UploadProgress extends React.PureComponent { render () { const { active, progress } = this.props; if (!active) { return null; } r...
lavalab/html/node_modules/react-bootstrap/es/ModalDialog.js
LavaLabUSC/usclavalab.org
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 ...
src/svg-icons/action/credit-card.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCreditCard = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); Action...
modules/pages/NotFound.js
edvinerikson/isomorphic-react-kickstarter
import React from 'react'; import Header from 'shared/Header'; class NotFound extends React.Component { static contextTypes = { router: React.PropTypes.object.isRequired, } render() { return ( <div> <Header>Not found!</Header> </div> ); } } export default NotFound;
examples/websdk-samples/LayerReactNativeSample/src/ui/ConversationListItem.js
layerhq/layer-js-sampleapps
import React, { Component } from 'react'; import { StyleSheet, View, Text, TouchableOpacity, Modal } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import Avatar from './Avatar'; /** * This Component provides for a Conversation item * in the list, currently consisting of a...
src/components/InfoBar/InfoBar.js
tpphu/react-pwa
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { load } from 'redux/modules/info'; @connect( state => ({ info: state.info.data }), { load }) export default class InfoBar extends Component { static propTypes = { info: PropTypes.objec...
src/js/containers/PictureGridContainer/PictureGridContainer.js
shane-arthur/react-redux-and-more-boilerplate
import React, { Component } from 'react'; import PictureIcon from '../../components/PictureIcon/PictureIcon'; import { styles } from './styles'; import { sendData } from '../../data/dataFetcher'; export default class PictureGridContainer extends Component { _getPictureContainerItems() { const pictureList...
examples/todomvc/index.js
alantrrs/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
app/javascript/mastodon/features/ui/components/audio_modal.js
abcang/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Audio from 'mastodon/features/audio'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Footer from 'mastodon/features/pictur...
lib/index.js
devinmarieb/budget-app
import React from 'react'; import { render } from 'react-dom'; import Application from './components/Application'; import firebase from './firebase'; import MoneyQuotes, { randomQuote } from './components/MoneyQuotes'; require('./styles/reset.css'); require('./styles/style.scss'); render(<Application quote={ randomQu...
shared/container/DevTools/DevTools.js
Ripley6811/TAIMAU-CHARTS
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-w" > <LogMonitor /> ...
lib/cli/generators/REACT_NATIVE/template-csf/storybook/stories/index.js
storybooks/react-storybook
import React from 'react'; import { Text } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Button from './Button'; import CenterView from './CenterView'; import Welcome from './Welcome'...
src/pages/privacy.js
saschajullmann/gatsby-starter-gatsbythemes
/* eslint-disable no-undef, react/prop-types */ import React from 'react'; import { Box } from '../components/Layout'; import PageWrapper from '../components/PageWrapper'; import colors from '../utils/colors'; const Privacy = () => ( <PageWrapper> <Box bg={colors.primary}> <Box width={[1, 1, 1 / 2]...
ui/line/index.js
DannyvanderJagt/portfolio
import React from 'react'; import Telescope from 'telescope'; import Config from '../../../portfolio.config'; class Line extends Telescope.Component{ render(){ return ( <div className='line'/> ); } }; export default Line;
map/src/containers/UserRecoverPassword/index.js
teikei/teikei
import React from 'react' import PropTypes from 'prop-types' import { Field, reduxForm } from 'redux-form' import { connect } from 'react-redux' import { recoverPassword } from '../UserOnboarding/duck' import i18n from '../../i18n' import InputField from '../../components/InputField/index' import { validator } from '....
src/components/BoardGameItem/BoardGameItem.js
GJMcGowan/personal_site
import React from 'react'; import './BoardGameItem.css'; const BoardGameItem = (props) => { const { item } = props; return ( <li className='col-sm-10 col-sm-offset-1 col-xs-12 column'> <div className='image-container'> <img src={item.imageSource} className='img-fluid boardgam...
admin/src/components/AltText.js
geminiyellow/keystone
import React from 'react'; import blacklist from 'blacklist'; import vkey from 'vkey'; var AltText = React.createClass({ getDefaultProps () { return { component: 'span', modifier: '<alt>', normal: '', modified: '' }; }, getInitialState () { return { modified: false }; }, componentDidMount (...
source/Checkbox.js
thomaswright/bayst
import React from 'react' import { IconButton } from './collator' /**___________________________________________________________________________*/ const Checkbox = ({ isDisabled = false, isChecked = false, color = "black", uncheckedColor, checkedColor, checkedIconProps, uncheckedIconProps, onToggle, ...
react/IconEmployer/IconEmployer.js
seekinternational/seek-asia-style-guide
import svgMarkup from './IconEmployer.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function IconEmployer(props) { return <Icon markup={svgMarkup} {...props} />; } IconEmployer.displayName = 'Employer icon';
es/components/toolbar/toolbar-button.js
vovance/3d-demo
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
client/features/settings/page.js
LestaD/InstaClone
import React from 'react' import Helmet from 'react-helmet' import { Link } from 'react-router-dom' import { CommonTemplate } from 'ui' export const SettingsPage = () => ( <CommonTemplate> <Helmet title="Settings" /> Settings | <Link to="/">Feed</Link> </CommonTemplate> )
src/svg-icons/action/view-quilt.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
assets/js/org/component/user-form-dialog.js
ueokande/teamdone
import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; import FlatButton from 'material-ui/FlatButton'; export default class UserFormDialog extends Component { constructor() { super(); } handleCrea...
src/parser/shared/modules/features/Checklist/index.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import './Checklist.scss'; class Checklist extends React.PureComponent { static propTypes = { children: PropTypes.node, }; render() { const { children } = this.props; return ( <ul className="checklist"> {!children && ( ...
docs/app/Examples/modules/Embed/States/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const EmbedStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Active' description='An...
src/components/auction/board/BidEntry.js
akeely/twoguysandadream-js
import React from 'react'; export default class BidEntry extends React.Component { constructor(props) { super(props); this.bid = this.bid.bind(this); } minBid(currentBid) { if (currentBid < 10) { return currentBid + 0.5; } return currentBid + 1; };...
src/components/isdindex/components/slider.js
lq782655835/ReactDemo
import React from 'react'; import { Icon, Tag, Button, Carousel } from 'antd'; class Slider extends React.Component { constructor(props) { super(props); } render(){ /*let settings ={ dots: true, infinite: true, speed: 20, slidesToShow: 1, slidesToScroll...
app/containers/LocaleToggle/index.js
AK33M/scalable-react
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { selectLocale } from '../LanguageProvider/selectors'; import { changeLocale } from '../LanguageProvider/actions'; import { appLocales } from '../../i18n'; import { createSelector } from 'reselect'; import styles fr...
web/src/main/client/containers/Login.js
cxpqwvtj/himawari
import React from 'react' import { connect } from 'react-redux' import TextField from '@material-ui/core/TextField' import Button from '@material-ui/core/Button' import AppBaseComponent from '../components/AppBaseComponent' class Login extends AppBaseComponent { render() { return ( <div> <div sty...
src/index.js
FiberFoundation/Ground
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render(<div>Fiber Ground</div>, document.getElementById('app'));
app/components/Library.js
robcalcroft/edison
import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, TouchableHighlight, View } from 'react-native'; import Title from './Title'; import Header from './Header'; import Subtitle from './Subtitle'; // import Audiobook from './Audiobook'; const styles = StyleSheet.create({ container: { ...
node_modules/react-bootstrap/es/Media.js
nikhil-ahuja/Express-React
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 ...
index.ios.js
jamesburton/newsappreactnative
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ // Import rn-nodeify shims import './shim'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class NewsAppReactNative extends Component { rende...
src/components/icons/DeleteIcon.js
austinknight/ui-components
import React from 'react'; const DeleteIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" /> <path d="M0 0h24v24H0...
src/svg-icons/content/sort.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSort = (props) => ( <SvgIcon {...props}> <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/> </SvgIcon> ); ContentSort = pure(ContentSort); ContentSort.displayName = 'ContentSort'; ContentSort.mui...
src/svg-icons/action/today.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToday = (props) => ( <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/> </SvgIcon> ); Ac...
src/icons/Battery80Icon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class Battery80Icon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fillOpacity=".3" d="M34 10.67C34 9.19 32.81 8 31.33 8H28V4h-8v4h-3.33C15.19 8 14 9.19 14 10.67V18h20v-7.33z...
src/components/topic/controlbar/TopicFilterBar.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import { injectIntl } from 'react-intl'; import ActiveFiltersContainer from './ActiveFiltersContainer'; import FilterSelectorContainer from './FilterSelectorContainer'; import...
examples/universal/client/index.js
bnwan/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
src/demos/graph/1-basic-graph/root.js
uber-common/vis-academy
import React from 'react'; import {render} from 'react-dom'; import App from './src/app'; const element = document.getElementById('root'); render(<App />, element); if (module.hot) { module.hot.accept('./src/app', () => { const Next = require('./src/app').default; render(<Next />, element); }); }
src/svg-icons/image/filter-5.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter5 = (props) => ( <SvgIcon {...props}> <path d="M21 1H7c-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 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-...
src/js/ui/pages/welcome/newCloudDiary.js
heartnotes/heartnotes
import _ from 'lodash'; import React from 'react'; import Button from '../../components/button'; import SignUpForm from '../../components/welcome/signUpForm'; import Layout from './layout'; import { connectRedux, routing } from '../../helpers/decorators'; var Component = React.createClass({ render: function() { ...
judge/client/src/Views/ProblemView.js
istamenov/NodeJS_Judge
import React, { Component } from 'react'; import Problem from '../Components/Problem'; import SolutionForm from '../Components/SolutionForm'; class ProblemView extends Component { render() { return ( <div className="ProblemView"> <Problem problem = {this.props.problem} /> <SolutionForm subm...
react_docs/src/components/navigation.js
GobHash/GobHash-Backend
import React from 'react'; import PropTypes from 'prop-types'; import NavigationItem from './navigation_item'; import { footerContent } from '../custom'; function getAllInSectionFromChild(headings, idx) { for (var i = idx; i > 0; i--) { if (headings[i].depth === 2) { return getAllInSection(headings, i); ...
src/Col.js
Firfi/meteor-react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; const Col = React.createClass({ propTypes: { xs: React.PropTypes.number, sm: React.PropTypes.number, md: React.PropTypes.number, lg: React.PropTypes.number, xsOffset: React.PropTypes.number, s...
installer/templates/new/widgets/graph/graph.js
kittoframework/kitto
import ReactDOM from 'react-dom'; import React from 'react'; import 'd3'; import 'rickshaw'; import {Kitto, Widget} from 'kitto'; import './graph.scss'; class Graph extends Widget { static get defaultProps() { return { graphType: 'area' }; } componentDidMount() { this.$node = $(ReactDOM.findDOMNode(thi...
src/plugins/lists.js
MaxKelsen/ory-slate-plugin
/* eslint-disable prefer-reflect, default-case, react/display-name */ import React from 'react' import ListIcon from 'material-ui-icons/List' import OrderedListIcon from 'material-ui-icons/FormatListNumbered' import createListPlugin from 'slate-edit-list' import type { Props } from './props' import { makeTagNode, Tool...
src/Fade.js
dozoisch/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import Transition from 'react-overlays/lib/Transition'; const propTypes = { /** * Show the component; triggers the fade in or fade out animation */ in: React.PropTypes.bool, /** * Unmount the component (remove it from the DOM) when it is f...
src/i18n.js
tomek-f/tomekf
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { IntlProvider, injectIntl } from 'react-intl'; import config from 'App/config'; const intl = {}; if (process.env.NODE_ENV === 'test') { // mock for jest, will be removed in prod build by ugl...
docs/src/app/components/pages/components/IconButton/ExampleTooltip.js
pomerantsev/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleTooltip = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" tooltip="bottom-right" tooltipPosition="bottom-right" /> <IconButton iconClassName="muidocs-icon-custom-githu...
node_modules/eslint-config-airbnb/test/test-react-order.js
ishan993/IshanBlogReactRedux
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests....
src/layouts/CoreLayout/CoreLayout.js
dontexpectanythingsensible/password-checker
import React from 'react'; import PropTypes from 'prop-types'; import Header from 'components/Header'; import Footer from 'components/Footer'; import classnames from 'classnames'; import 'styles/core.scss'; export default class CoreLayout extends React.Component { static propTypes = { strength: PropTypes.string...
src/admin/src/components/controls/renderers/render_datetime.js
jgretz/zen-express
import React from 'react'; import moment from 'moment'; const render = (data, format) => { const m = moment(data); return ( <span>{m.format(format)}</span> ); }; export const renderDateTime = (data) => render(data, 'MMMM Do YYYY, h:mm:ss a'); export const renderDate = (data) => render(data, 'MMMM Do YYYY');...
angular2-tour-of-heroes/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
rchcomm/Angular2Tranning
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
lib/components/map/regional.js
conveyal/analysis-ui
import React from 'react' import {useSelector} from 'react-redux' import selectDisplayGrid from 'lib/selectors/regional-display-grid' import selectDisplayScale from 'lib/selectors/regional-display-scale' import createDrawTile from 'lib/utils/create-draw-tile' import Gridualizer from './gridualizer' /** * A map laye...
browserify-buble-inferno-compat/index.js
zarjay/react-bundle-showdown
/* global document */ import React from 'react' import { render } from 'react-dom' render(<div>Hello World</div>, document.getElementById('app'))
packages/material-ui/src/Table/TablePagination.js
cherniavskii/material-ui
// @inheritedComponent TableCell import React from 'react'; import PropTypes from 'prop-types'; import withStyles from '../styles/withStyles'; import Input from '../Input'; import { MenuItem } from '../Menu'; import Select from '../Select'; import TableCell from './TableCell'; import Toolbar from '../Toolbar'; import ...
src/admin/views/notifications/index.js
ccetc/platform
import React from 'react' import Collection from 'admin/components/collection' import Feed from './feed' class Notifications extends React.Component { static contextTypes = { modal: React.PropTypes.object } render() { return ( <div className="chrome-notifications"> <div className="chrome-...
Console/app/node_modules/rc-progress/es/Circle.js
RisenEsports/RisenEsports.github.io
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runt...
frontend/node_modules/react-router/es/RouterContext.js
andres81/auth-service
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; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
client/landing/components/vision/index.js
bryanph/Geist
import React from 'react' import ReactDom from 'react-dom' import CreationLoop from '../home/CreationLoop' class Landing extends React.Component { constructor(props) { super(props) } render() { const { content } = this.props return ( <React.Fragment> <...
admin/client/App/shared/Portal.js
Adam14Four/keystone
/** * Used by the Popout component and the Lightbox component of the fields for * popouts. Renders a non-react DOM node. */ import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, // eslint-disable-line react/sort-comp compone...
src/routes/Account/components/Prefs/PathPrefs/PathItem/PathItem.js
bhj/karaoke-forever
import PropTypes from 'prop-types' import React from 'react' import { Draggable } from 'react-beautiful-dnd' import Button from 'components/Button' import Icon from 'components/Icon' import styles from './PathItem.css' const PathItem = props => { const { path, pathId } = props.path return ( <Draggable draggab...
src/common/components/ResetPassword/index.js
micahroberson/node-boilerplate
import React from 'react'; import shouldComponentUpdatePure from '../../lib/shouldComponentUpdatePure'; import AuthForm, {Modes} from '../AuthForm'; class ResetPassword extends React.Component { shouldComponentUpdate = shouldComponentUpdatePure; render() { let authFormProps = { mode: Modes.ResetPassword...
react/src/components/CommandEditor/CommandEditor.js
ozlerhakan/rapid
/** * Created by hakan on 13/02/2017. */ import React from 'react' import AceEditor from 'react-ace'; import * as shortcuts from './shortcuts'; import * as docker from './docker-editor'; import 'brace/theme/chrome'; import 'brace/ext/searchbox'; import 'brace/ext/language_tools'; import 'brace/ext/keybinding_menu'; ...
client/src/index.js
apologeticcookie/apologeticcookie
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render(<App />, document.querySelector('.app'));
src/containers/userProfile/userProfile.js
psenger/ReactJS-Rapid-Prototype-Template
import moment from 'moment'; import { safeGet } from '../../utils'; import PropTypes from 'prop-types'; import validate from 'validate.js'; import { connect } from 'react-redux'; import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import Form from '../../components/form/form'; import I...
src/svg-icons/maps/add-location.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
src/index.js
selfberry/selfberry-web
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); ReactDOM.render( <App />, document.getElementById('root') );
modules/gui/src/widget/toolbar/context.js
openforis/sepal
import React from 'react' export const Context = React.createContext()
entry_types/scrolled/package/src/contentElements/iframeEmbed/IframeEmbed.js
codevise/pageflow
import React from 'react'; import classNames from 'classnames'; import { ContentElementBox, Figure, FitViewport, useContentElementEditorState, useContentElementLifecycle, usePortraitOrientation } from 'pageflow-scrolled/frontend'; import styles from './IframeEmbed.module.css'; const aspectRatios = { wi...
5.0.0/src/index.js
erikras/redux-form-docs
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import store from 'redux/store' import DevTools from './components/DevTools' import component from './routes' import Perf from 'react-addons-perf' import devToolsEnabled from './devToolsEnabled' const dest = document.ge...
src/components/DataTable/TableExpandHeader.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; const TableExpandHeader = props => <th scope="col" {...props} />; export default TableExpandHeader;
TaskMapper/src/components/search/GoogleSearch.js
Elizabeth-Roche/TaskMapper
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ var {GooglePlacesAutocomplete} = require('react-native-google-places-autocomplete'); var UltimateMap = require('../map/UltimateMap'); import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ...
modules/dreamview/frontend/src/components/PNCMonitor/StoryTellingMonitor.js
ApolloAuto/apollo
import React from 'react'; import { inject, observer } from 'mobx-react'; import classNames from 'classnames'; import { Tabs, TabList, Tab, TabPanel, } from 'react-tabs'; class StoryItem extends React.PureComponent { render() { const { name, value } = this.props; const textClassNames = classNames({ ...
hw5/src/components/article/article.js
lanyangyang025/COMP531
import React from 'react' import { connect } from 'react-redux' import { Comment } from './comment' //content of a card export const Article = ({ _id, author, date, text, img, comments, visible}) => ( <div className="panel panel-default text-left"> <div className="panel-body"> <div className="col-sm-3"> ...
components/scenes/awesome_summary_scene.js
yamashiro0110/ReactNative
import React, { Component } from 'react'; import { View, Text, Navigator } from 'react-native'; import AwesomeNavigationBar from '../view/awesome_navigation_bar'; import AwesomeTableView from '../view/awesome_tableview'; export default class AwesomeSummary extends Component { render() { return ( <View styl...
app/src/www/index.js
juanmadurand/flatboard
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import favicon from 'serve-favicon'; import compression from 'compression'; import path from 'path'; import createStore from './store'; import ApiClient from './helpers/ApiClient'; import Html from './helpers/Html'; impo...
screens/JobScreen.js
15chrjef/mobileHackerNews
import Exponent from 'exponent'; import React from 'react'; import { StyleSheet, Text, View, Dimensions, ListView, TouchableOpacity, WebView, RefreshControl } from 'react-native'; const {height, width} = Dimensions.get('window'); import Title from '../components/Title.js' export default class JobScreen...
src/components/Pagination/Pagination.js
Chogyuwon/chogyuwon.github.io
import React from 'react'; import classNames from 'classnames/bind'; import { Link } from 'gatsby'; import { PAGINATION } from '../../constants'; import styles from './Pagination.module.scss'; const cx = classNames.bind(styles); const Pagination = ({ prevPagePath, nextPagePath, hasNextPage, hasPrevPage }) => ...
src/components/Results.js
edwardcroh/traveler
import React, { Component } from 'react'; import { connect } from 'react-redux'; class Results extends Component { constructor(props) { super(props) console.log(this.props.results) this.renderResults = this.renderResults.bind(this); } componentDidUpdate() { console.log(this.props.results) } ...
app/MenuItem.js
mtreilly/react-native-wordpress
import React from 'react'; import { Text, View } from 'react-native'; export default MenuItem = (props) => ( <View> <Text>Menu Title: {props.title}</Text> <Text>Menu URL: {props.url}</Text> </View> );
react/rock-paper-token/src/index.js
ripter/Workshops
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import { GameRoot } from './components/GameRoot'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<GameRoot />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change...
packages/wix-style-react/src/CalendarPanelFooter/CalendarPanelFooter.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Text from '../Text'; import { Item, ItemGroup, Toolbar } from '../TableToolbar'; import Calendar from '../Calendar'; import Button from '../Button'; import Box from '../Box'; class CalendarPanelFooter extends React.PureComponent { static displayNa...