path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/react/src/components/InboxItem.js
router5/router5
import React from 'react' import { Link } from 'react-router5' function InboxItem({ title, message, id }) { return ( <li> <Link routeName="inbox.message" routeParams={{ id }} activeClassName="active" > <h4>{title}</h4> ...
src/views/components/Form.js
physiii/home-gateway
import React from 'react'; import PropTypes from 'prop-types'; import FormField from './FormField.js'; import FormValidator from '../form-validation.js'; import {noOp, isEmpty, areValuesTheSame} from '../../utilities.js'; import {debounce} from 'debounce'; import './Form.css'; const SAVEABLE_DEBOUNCE_DELAY = 500; exp...
www/frontend/test/components/App-test.js
lokiiart/upali-mobile
import test from 'ava'; import { isEqual } from 'lodash'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import App from '../../src/components/App'; import { version } from '../../package.json'; const shallowRenderer = TestUtils.createRenderer(); shallowRenderer.render(<App />); const app ...
src/components/TextareaBox/TextareaBox.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import ReactDOM from 'react-dom'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { colors, typography, darkScrollbar, renderThemeIfPresentOrDefault, } from '../styles'; import TextInput, { TextBox, TextLabel } from '../TextI...
ui/src/main/js/components/TaskDetails.js
apache/aurora
import React from 'react'; export default function TaskDetails({ task }) { return (<div className='active-task-details'> <div> <h5>Task ID</h5> <span className='debug-data'>{task.assignedTask.taskId}</span> <a href={`/structdump/task/${task.assignedTask.taskId}`}>view raw config</a> </div> ...
src/browser/notfound/Page.react.js
skyuplam/debt_mgmt
import Component from 'react-pure-render/component'; import Helmet from 'react-helmet'; import React from 'react'; import { FormattedMessage, defineMessages, injectIntl, intlShape } from 'react-intl'; import { Link } from 'react-router'; const messages = defineMessages({ title: { defaultMessage: '访问地址不存在', i...
src/components/ChartWithLegend.js
todvora/extrade
import React from 'react' var Chart = require('react-chartjs').Line import '../styles/ChartWithLegend.less' export default class ChartWithLegend extends React.Component { constructor (props) { super() this.state = {legend: ''} } componentDidMount () { var legend = this.refs.chart.getChart().generateLeg...
app/javascript/mastodon/features/compose/components/action_bar.js
cobodo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
src/browser/notfound/NotFoundPage.react.js
abelaska/este
import Helmet from 'react-helmet'; import React, { Component } from 'react'; import { FormattedMessage, defineMessages } from 'react-intl'; import { Link } from 'react-router'; const messages = defineMessages({ title: { defaultMessage: 'Page Not Found', id: 'notFound.title', }, h1: { defaultMessage: ...
views/components/ProductsTableUi.js
gvaldambrini/madam
import React from 'react'; // The products table presentational component. export default React.createClass({ propTypes: { products: React.PropTypes.array.isRequired, editProduct: React.PropTypes.func.isRequired, cloneProduct: React.PropTypes.func.isRequired, deleteProduct: React.PropTypes.func.isRe...
node_modules/react-navigation/src/views/CardStack/Card.js
jiangqizheng/ReactNative-BookProject
/* @flow */ import React from 'react'; import { Animated, StyleSheet } from 'react-native'; import createPointerEventsContainer from './PointerEventsContainer'; import type { NavigationSceneRendererProps } from '../../TypeDefinition'; type Props = { ...$Exact<NavigationSceneRendererProps>, children: React.Chil...
node_modules/react-bootstrap/es/Tab.js
mohammed52/door-quote-automator
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import PropTypes from 'pr...
node_modules/react-bootstrap/es/Glyphicon.js
Technaesthetic/ua-tools
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 ...
application/3-react/js/components/navbar.js
bishopZ/Sandbox
import React from 'react'; import {Link} from 'react-router-dom'; var Navbar = () => { return ( <div className="navbar"> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/about">About</Link></li> <li><Link to="/blog">Blog</Link></li> </ul> <hr /> </div> ); }; ...
ReactApp/src/Cards/Program/ProgramComponents.js
hoh/FolkMarsinne
import React, { Component } from 'react'; import {blue100, red100, cyan500, teal400, amber800, pink500, purple500} from 'material-ui/styles/colors'; import {CardText} from 'material-ui/Card'; import RaisedButton from 'material-ui/RaisedButton'; const programTableStyle = { // border: '1px solid black', borderColla...
mapOverlay/wxtilesTag.js
wxtiles/mapbuilder
import React from 'react' class wxtilesTag extends React.Component { constructor() { super() this.state = {} } componentWillMount() { } render() { return React.createElement('div', {className: 'wxtilesTag'}, React.createElement('span', {}, 'Powered by '), React.createElement('a', {h...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
noudilus/hr-wp-theme
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'));
src/icons/StrokeTrash.js
ipfs/webui
import React from 'react' const StrokeTrash = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M25.98 73.62a9.68 9.68 0 0 0 9.45 9.88h29.15a9.68 9.68 0 0 0 9.44-9.88V30.2h-48zm3-40.42h42v40.42a6.68 6.68 0 0 1-6.44 6.88H35.43a6.68 6.68 0 0 1-6.45-6.88z' /> <path d='M39.12 74.54a1 1 0 0 0 1-1V39.2a1 ...
app/pages/home/components/Home.js
w1nston/jwdotcom
import React from 'react'; export default function Home() { return ( <section className="main-content-container__home"> This is not optimal, but life is not about optimal, it's about learning. </section> ); }
client/components/NavBar.js
andela-ksolomon/blocker
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import AuthenticationActions from '../actions/loginActions'; import { postQuestion } from '../actions/questionsActions' import { addFlashMessage } from '../actions/flashMessages'; import LoginForm from './pr...
styleguide/src/components/sidebar.js
pivotal-cf/pivotal-ui
import React from 'react'; import {Link} from 'gatsby'; import '../../stylesheets/sidebar.scss'; const SidebarListItem = ({route, title, sections}) => ( <li className="sg-sidebar__list-item"> <Link activeClassName="sg-sidebar__list-item--active" to={route}> {title} </Link> {sections.len...
demo/src/components/animation-views/example1-animation-view.js
tuantle/hypertoxin
'use strict'; // eslint-disable-line import { Ht } from 'hypertoxin'; import React from 'react'; import ReactNative from 'react-native'; // eslint-disable-line import PropTypes from 'prop-types'; import DefaultTheme from '../../themes/default-theme'; const { Dimensions } = ReactNative; const { BodyScreen...
examples/04 Sortable/Cancel on Drop Outside/index.js
colbyr/react-dnd
import React from 'react'; import Container from './Container'; export default class SortableCancelOnDropOutside { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Cancel%20on%20Drop%20Outside'>Browse the Source</a></b> ...
packages/material-ui-codemod/src/v4.0.0/optimal-imports.test/expected.js
lgollut/material-ui
import React from 'react'; import { withTheme, withStyles, createMuiTheme } from '@material-ui/core/styles'; import MenuItem from '@material-ui/core/MenuItem'; import Tab from '@material-ui/core/Tab'; import MuiTabs from '@material-ui/core/Tabs'; import BottomNavigationAction from '@material-ui/core/BottomNavigationAct...
src/server/server.js
ateixeira/andreteixeira.info
import React from 'react'; import { Server } from 'http'; import { match, RouterContext } from 'react-router'; import { renderToString } from 'react-dom/server'; import server_config from './config.js'; import routes from '../routes'; import NotFoundPage from '../components/notfoundpage'; const port = process.env.POR...
client/scripts/components/copyright.js
rubeniskov/web-palomasafe
import React from 'react'; export default class Copyright extends React.Component { constructor(props) { super(props); } render() { return ( <div id="copyrights-wrapper" className="e-bg-skin"> <div className="container"> <div className="copyright"> <div className...
src/VirtualizedCheckbox/VirtualizedCheckbox.js
emilebres/react-virtualized-checkbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { AutoSizer } from 'react-virtualized'; import Checkboxes from './Checkboxes'; function getDistinctFast(items, key) { let unique = {}; let distinct = []; for (let opt of items) { if (typeof unique[opt[key]] === 'undefined')...
node_modules/node_modules/recharts/demo/component/CartesianAxis.js
SerendpityZOEY/Fixr-RelevantCodeSearch
import React from 'react'; import { Surface, CartesianAxis } from 'recharts'; export default React.createClass({ render () { let ticks = [ { value: 10, coord: 50 }, { value: 1000, coord: 100 }, { value: 20, coord: 150 }, { value: 40, coord: 200 }, { value: 90, coord: 250 } ]; ...
react/features/participants-pane/components/breakout-rooms/components/web/RoomActionEllipsis.js
jitsi/jitsi-meet
// @flow import { makeStyles } from '@material-ui/styles'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { QuickActionButton } from '../../../../../base/components'; import { Icon, IconHorizontalPoints } from '../../../../../base/icons'; type Props = { /** * Click handle...
src/Parser/Shaman/Restoration/Modules/Items/Tidecallers.js
enragednuke/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import ItemHealingDone from 'Main/ItemHealingDone'; const HTT_BASE_DURATION = 10000; class Tidecallers extends Analyzer { h...
client/components/main-component.js
alexpoe22/fuzzyFinder
import React from 'react'; import info from '../data/info'; import fuzzyFind from '../logic/fuzzyFind'; import Header from './header'; import Searchbar from './searchbar'; import Results from './results'; class MainComponent extends React.Component { constructor(props) { super(props); this.state = { input: '' ...
index.ios.js
Smallpath/Psnine
import './dist/bootstrap' import React, { Component } from 'react'; import { AppRegistry, View } from 'react-native'; import Index from './dist/index'; AppRegistry.registerComponent('psnine', () => Index);
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
princesadie/SnapDrop-react
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
examples/src/components/GithubUsers.js
glowka/react-select
import React from 'react'; import Select from 'react-select'; import fetch from 'isomorphic-fetch'; const GithubUsers = React.createClass({ displayName: 'GithubUsers', propTypes: { label: React.PropTypes.string, }, getInitialState () { return { multi: true }; }, onChange (value) { this.setState({ ...
docs/src/app/components/pages/components/Dialog/ExampleCustomWidth.js
rscnt/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; const customContentStyle = { width: '100%', maxWidth: 'none', }; export default class DialogExampleCustomWidth extends React.Component { const...
app/javascript/mastodon/features/report/components/status_check_box.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContent from 'mastodon/components/status_content'; import Avatar from 'mastodon/components/avatar'; import DisplayName from 'mastodon/components/display_name'; import RelativeTimestamp...
packages/react-test-renderer/src/ReactShallowRenderer.js
empyrical/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * 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 {isForwardRef} from 'react-is'; import describeComponentFrame from 'shared/describeComponentF...
src/index.js
michelle54725/MindHacks
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
Sirlon/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
fields/types/datearray/DateArrayField.js
matthewstyers/keystone
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; import moment from 'moment'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ dis...
app/javascript/mastodon/features/ui/components/report_modal.js
abcang/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports'; import { expandAccountTimeline } from '../../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-pro...
src/components/MenuDrop/MenuDrop.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './MenuDrop.css'; import Box from '../Box'; class MenuDrop extends React.Component { static propTypes = { history: PropTypes.shape({}), intl: PropTypes.shape({}).isRequire...
p216/src/component/Track.js
Sylvestre67/packde16
import React, { Component } from 'react'; import { CSSTransitionGroup } from 'react-transition-group'; import './Track.css'; import PropTypes from 'prop-types'; class Track extends Component{ render() { const feat = (this.props.audio.feat !== '') ? ['"feat. ', this.props.audio.feat,'"'].join('') : ''; c...
src/svg-icons/action/assignment.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignment = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-...
app/javascript/mastodon/components/dropdown_menu.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
utils/LiveVideo.js
CaliAlec/ChromeIGStory
import React, { Component } from 'react'; import {connect} from 'react-redux' import { MediaPlayer } from 'dashjs'; import MediaPlayerEvents from "../node_modules/dashjs/build/es5/src/streaming/MediaPlayerEvents.js"; import Typography from '@material-ui/core/Typography'; import List from '@material-ui/core/List'; impor...
ui/src/js/common/footer/pages/Terms.js
Dica-Developer/weplantaforest
import axios from 'axios'; import counterpart from 'counterpart'; import React, { Component } from 'react'; require('./terms.less'); export default class Terms extends Component { constructor() { super(); this.state = { terms: [] }; } componentDidMount() { var that = this; axios ...
src/routes/privacy/index.js
24v/player-sankey
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
app/components/Feed/index.js
theterra/newsb
import React from 'react'; import Score from '../Score'; export default class Feed extends React.Component { //eslint-disable-line constructor(props) { super(props); } render() { const { tasksExpand, orderStats } = this.props; return ( <div className="ink-flex task-feed-boxShadow" style={{ fontSize: ...
webapp/app/components/Notifications/Form/Users/AllUsers/SelectAll/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component all users form notifications // import React from 'react'; import { ButtonToolbar } from 'react-bootstrap'; import LinkContainerButton from 'components/Button'; import styles from 'components/Notifications/styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class Notificat...
src/components/NotFoundPage.js
Arunvirat/Logi-heroes
'use strict'; import React from 'react'; import { Link } from 'react-router'; export default class NotFoundPage extends React.Component { render() { return ( <div className="not-found"> <h1>404</h1> <h2>Page not found!</h2> <p> <Link to="/">Go back to the main page</Link>...
docs/app/Examples/modules/Progress/States/ProgressExampleDisabled.js
koenvg/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleDisabled = () => ( <Progress percent={60} disabled> Disabled </Progress> ) export default ProgressExampleDisabled
examples/src/components/CustomRenderField.js
MYOB-Technology/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
src/parser/druid/feral/modules/racials/Shadowmeld.js
fyruna/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import RACES from 'game/RACES'; import Analy...
src/svg-icons/content/select-all.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSelectAll = (props) => ( <SvgIcon {...props}> <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 ...
src/containers/content/index.js
btoo/btoo.github.io
import React from 'react' import './index.css' import Intro from '../intro' import Skills from '../skills' import Projects from '../projects' import Social from '../../components/social' export default props => ( <div className="content" style={{'--ratio': props.ratio}}> <Content ratio={props.ratio}> <Intr...
src/user/components/credit_card_payment.js
foundersandcoders/sail-back
import React from 'react' import ReactDOM from 'react-dom' import braintree from 'braintree-web' import axios from 'axios' import convert_camel_case from 'app/convert_camel_case' import { map } from 'ramda' export default class PaymentForm extends React.Component { componentDidMount () { var props = this.props ...
.history/src/components/Menu_20170804014110.js
radubrehar/evanghelic.ro
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'gatsby-link'; import { css } from 'glamor'; import Row from './Row'; const mainCls = css({ display: 'flex', flexFlow: 'row', paddingTop: 20, paddingBottom: 20, borderBottom: '1px solid gray', justifyContent: 'flex-end', ma...
src/svg-icons/av/playlist-add.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistAdd = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/> </SvgIcon> ); AvPlaylistAdd = pure(AvPlaylistAdd); AvPlaylistAdd...
js/components/App.react.js
beiciye/login-flow
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ // Import stuff import React, { Component } from 'react'; import Nav from './Nav.react'; import { connect } from 'react-redux'; import auth fr...
src/App.js
PangPangPangPangPang/react-blog
/** * Created by wangyefeng on 02/03/2017. */ import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import { Router, Route, hashHistory, IndexRedirect } from 'react-router' import createLogger from 'redux-logger' import thunk from 'redux-thunk' import React from 'react' import ...
src/index.js
binout/soccer-admin
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; ReactDOM.render(<App />, document.getElementById('root'));...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/crop.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCrop = (props) => ( <SvgIcon {...props}> <path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/> </SvgIcon> ); ImageCrop.displayName = 'ImageCrop'; ImageCrop.muiName = 'SvgIcon'; export defaul...
01_webstack/03Wk04/4_conFusion_updating_angular/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
allenmodroid/webstack
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'));
ui/src/components/role/RoleGroup.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
classic/src/scenes/wbui/TooltipSectionListItemIcon.js
wavebox/waveboxapp
import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' import { ListItemIcon } from '@material-ui/core' import ThemeTools from 'wbui/Themes/ThemeTools' const styles = (theme) => ({ root: { color...
app/components/Console/Console.js
mkawauchi/react-rpm
import React from 'react'; import Log from './Log'; import Table from './Table'; import styles from './Console.css'; const propTypes = { data: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.array, ]).isRequired, }; function renderData(data) { if (typeof data === 'string') { retu...
src/components/Legal/Legal.js
bpeters/nafcweb
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Legal.scss'; class Legal extends Component { render() { return ( <div className={s.legal}> <h className={s.header}>Terms of Use ("Terms")</h> <p>Last updated: Ma...
hello world/1.4 - stateProps/src/components/footer.js
wumouren/react-demo
import React from 'react'; export default class Footer extends React.Component { // props 演示 render() { let footer = ['2017','10','28']; return ( <footer> <hr/> <h1>这里是页脚</h1> <h2>从父组件传递过来的数据是: {this.props.info}<...
src/Sec2.js
tom76kimo/biblereader
import React, { Component } from 'react'; class Sec2 extends Component { render() { return ( <div className="W(100%) H(400px) Bgc(#090d16) H(60vh)"> </div> ); } } export default Sec2;
src/components/TopicNodes.js
cyqkeygen/ruby-china-react-redux-demo
import React from 'react'; import PropTypes from 'prop-types'; import NodesPartial from './NodesPartial'; class TopicNodes extends React.Component { static propTypes = { isFetching: PropTypes.bool.isRequired, items: PropTypes.array.isRequired, receivedAt: PropTypes.number, fetch: PropTypes.func.isRe...
src/client/pages/repositories-by-language/RepositoriesByLanguage.js
developersdo/opensource
import React from 'react' import DocumentTitle from 'react-document-title' import { orderBy, each, filter, includes } from 'lodash' import store from '~/store/store' import Loading from '~/components/loading/Loading' import RepositoryList from '~/components/repository-list/RepositoryList' /** * The RepositoriesByLang...
src/svg-icons/social/person-outline.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPersonOutline = (props) => ( <SvgIcon {...props}> <path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C...
src/components/HostInfo.js
cpsubrian/redis-explorer
import React from 'react' import pureRender from 'pure-render-decorator' import ImmutablePropTypes from 'react-immutable-proptypes' import {Paper} from 'material-ui' @pureRender class HostInfo extends React.Component { static propTypes = { hostInfo: ImmutablePropTypes.map } static infoGroups = [ { ...
src/components/GoalItem.js
stewest/react-sprint-graph
/** * DON'T CHANGE THIS FILE */ import React, { Component } from 'react'; class GoalItem extends Component { onClick = () => { this.props.onClick(this.props.text); } render() { return ( <label> <input type="checkbox" checked={this.props.checked} onChange={this.onClick} /> &nbsp;{...
src/App.js
macilry/technozaure-graphql
import React, { Component } from 'react'; import GraphiQL from 'graphiql'; import fetch from 'isomorphic-fetch'; import { graphql } from 'graphql'; GraphiQL.Logo = class Logo extends Component { render() { let style = { fontWeight: 800, fontSize: 16, color: "#252525" }; return ( ...
src/components/nodewebkit/original-wordmark/NodewebkitOriginalWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './NodewebkitOriginalWordmark.svg' /** NodewebkitOriginalWordmark */ function NodewebkitOriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline c...
frontend/src/App/ColorImpairedContext.js
lidarr/Lidarr
import React from 'react'; const ColorImpairedContext = React.createContext(false); export const ColorImpairedConsumer = ColorImpairedContext.Consumer; export default ColorImpairedContext;
src/svg-icons/toggle/check-box.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/> </SvgIcon> );...
examples/js/hacker-news/client/components/CommentsNotification.js
reimagined/resolve
import React from 'react' import styled from 'styled-components' import { CommentsNotificationRenderless } from '@resolve-js/module-comments' const Container = styled.div` text-align: center; background-color: rgba(57, 73, 171, 0.75); margin-bottom: 10px; cursor: pointer; ` const Notification = styled.div` di...
example/src/screens/Example4.js
q210/react-native-tableview
import React from 'react' import { View, ActivityIndicator, Text, StyleSheet } from 'react-native' import TableView from 'react-native-tableview' const { Section, Item } = TableView const styles = StyleSheet.create({ title: { margin: 20, color: '#5FA0D2', fontSize: 20, textAlign: 'center', }, }) ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/State.js
facebook/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: Props; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: Props; state: State = {...
src/Screens/HelplineList.js
saurabhj/helpline-app
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TextInput, Button, TouchableHighlight, FlatList, Alert, TouchableOpacity, Platform, } from 'react-native'; import { StackNavigator } from 'react-navigation'; import HelplineLis...
app/js/components/ProductList.js
abrkadabra/test.petrv
import React from 'react'; import ProductData from './ProductData'; export default ({data}) => { if (!data) { return (<p>Загрузка товаров...</p>); } const products = data.map((products, index) => { return (<ProductData key={`product-${index}`} index={index} products={products} />); }); return (...
src/Posts/LinearFitDiscontinuities/linearFitDiscontinuities.js
jasongforbes/jforbes.io
import React from 'react'; import PropTypes from 'prop-types'; import { InlineMath, BlockMath } from 'react-katex'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; import Highlight from '../../Highlight'; import styles from '../style'; import AnimatedPlot fr...
src/index.js
wangleiwan/react-redux-webpack-TodoList
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; // import { Router, Route, hashHistory } from 'react-router'; import './assets/css/todo.css'; import './assets/css/bootstrap.css'; import configureStore from './app/store'; import DevTools from './app/components/DevToo...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
joan17cast/Enigma
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
src/react.js
romeovs/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
examples/pure-chart/common.js
oksktank/react-native-pure-chart
import _ from 'lodash' import React from 'react' import {View, Text} from 'react-native' const SINGLE_SERIES_WITH_NUMBERS = 0 const SINGLE_SERIES_WITH_OBJECTS = 1 const MULTI_SERIES = 2 function flattenData (data) { let numberCount = 0 let objectWithYCount = 0 let multiSeriesCount = 0 let length = data.length...
examples/using-inferno/pages/about.js
callumlocke/next.js
import React from 'react' export default () => ( <div>About us</div> )
src/components/LoadingView.js
heart-IT/kyutoryu__badlee
/** * An enemy may do great harm to an enemy, but a wrongly-directed mind will do the greatest mischief unto itself - Buddha * * @name- LoadingView * @description- Component for showing loading * @author- heartit pirates were here \m/ */ import { Spinner } from 'native-base'; import React from 'react'; import {...
client/src/components/Chat/Chat.js
seripap/darkwire.io
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import sanitizeHtml from 'sanitize-html'; import FileTransfer from 'components/FileTransfer'; import { CornerDownRight } from 'react-feather'; import { getSelectedText, hasTouchSupport } from '../../utils/dom'; // Disable for now // import a...
examples/real-world/src/errorMessage/ErrorMessage.js
ioof-holdings/redux-subspace
import React from 'react' import { connect } from 'react-redux' import { resetErrorMessage } from './actions' const ErrorMessage = ({ errorMessage, resetErrorMessage }) => { if (!errorMessage) { return null } const handleDismissClick = (e) => { resetErrorMessage() e.preventDefault() ...
src/containers/Asians/Registration/Institutions/OverviewInstance/RequestTypeInstance/AcceptedSlots/index.js
westoncolemanl/tabbr-web
import React from 'react' import { ListItem, ListItemText } from 'material-ui/List' import * as utils from 'utils' export default ({ registrationRequest }) => { let primary let secondary if (registrationRequest.grantedAmount > 0) { primary = `${registrationRequest.grantedAmount} of ${registrationRequ...
public/src/components/input/inputs/date_input.js
rafaelfbs/rmodel
import React from 'react'; import BaseInput from '../base_input'; import { observer } from 'mobx-react'; @observer export default class DateInput extends BaseInput { get className() { return `datepicker ${super.className}`; } componentDidMount() { const dom = this.input; $(dom).pickadat...
src/index.js
chentsulin/react-transform-boilerplate
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
src/components/common/svg-icons/image/photo-size-select-actual.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectActual = (props) => ( <SvgIcon {...props}> <path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/> </SvgIcon> ); ImagePhotoSiz...
src/main/react-front-end/src/views/Transfer/CompactFileNode/FileNodeCompact.js
didclab/onedatashare
/** ##************************************************************** ## ## Copyright (C) 2018-2020, OneDataShare Team, ## Department of Computer Science and Engineering, ## University at Buffalo, Buffalo, NY, 14260. ## ## Licensed under the Apache License, Version 2.0 (the "License"); you ## may not use this ...
packages/ringcentral-widgets-docs/src/app/pages/Components/NavigationBar/Demo.js
ringcentral/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/static/containers/Root/DevTools.js
AdrienAgnel/testDjangoApp
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ import React from 'react'; 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...