path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/index.js
believer/react-starter
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App/App'; ReactDOM.render(<App />, document.getElementById('root'));
website/src/Footer.js
kkamperschroer/react-navigation
import React from 'react'; const Footer = () => ( <div className="footer"><div className="inner-footer"> <section className="copyright"> <a href="https://github.com/react-community/react-navigation"> React Navigation </a> · <a href="https://github.com/react-community/react-naviga...
src/app/screens/Anonymous/shared/Footer/components/Footer.js
docgecko/react-alt-firebase-starter
/*! React Alt Firebase Starter */ import './Footer.less'; import React from 'react'; import { Link } from 'react-router'; export default class Footer extends React.Component { render() { return ( <footer className="page-footer blue darken-4"> <div className="container"> <div className...
app/components/Header/index.js
sahilkhan99/PosApp
import React from 'react'; import NavLink from 'components/NavLink'; import Logo from './Logo'; import GitHubButton from '../GitHubButton'; import styles from './style.scss'; export default () => ( <div className={styles.header}> <NavLink to="/budget" label="Budget" styles={styles} /> <NavLink to="/reports"...
stories/fields/SimpleUserFieldsDemo.js
de44/kb-ui
import React from 'react' import kb from '../../src/kb-ui' import FieldsDemo from './FieldsDemo' const model = { id: "asdf-123", name: "John Deer", suspended: false, profile: { bio: '<h4 style="border-bottom: 1px dashed red;"><span style="color: blue">Hello, </span><span style="color: green">World!</span>...
web/src/components/settings.js
frafra/is-osm-uptodate
import React from 'react'; function Settings({ setFilter }) { return ( <div className="input-group"> <div className="input-group-prepend"> <div className="input-group-text">Filter</div> </div> <input className="form-control" type="text" placeholder="example: amen...
client/src/app/app.js
rajington/heartseekers
import React from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { render } from 'react-dom'; import { Router, IndexRoute, Route } from 'react-router'; import App from './components/App'; import Main from './components/Main'; import Summoner from './components/Summoner'; import NoMatch from ...
index.js
pedro-iago/rack-physics
import React from 'react'; import ReactDOM from 'react-dom'; import {App} from './src/apps'; ReactDOM.render( <App />, document.getElementById("root") ); window.onbeforeunload = () => ReactDOM.unmountComponentAtNode( document.getElementById("root") );
docs/app/Examples/collections/Table/Types/index.js
shengnian/shengnian-ui-react
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const Types = () => ( <ExampleSection title='Types'> <ComponentExample title='Types' description='A standard table.'...
src/scenes/Layout/components/Representation/components/Week/components/WeekCardVersion/WeekCardVersion.js
czonios/schedule-maker-app
import React from 'react'; import PropTypes from 'prop-types'; import DayCardVersion from '../../.././DayCardVersion/DayCardVersion.js' import HoverableIcon from '../../../../../../.././components/HoverableIcon/HoverableIcon'; import dateService from '../../../../../../../../services/dates/dateService'; import { Divide...
ignite/DevScreens/FaqScreen.js
mohammadhendy/DriverApp
// An All Components Screen is a great way to dev and quick-test components import React from 'react' import { View, ScrollView, Text, Image, TouchableOpacity } from 'react-native' import { Images } from './DevTheme' import styles from './Styles/FaqScreenStyles' class ComponentExamplesScreen extends React.Component { ...
runoob-react-course/02-react-install/main.js
react-scott/react-learn
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; ReactDOM.render( <App />, document.getElementById('example') )
app/javascript/flavours/glitch/components/hashtag.js
im-in-space/mastodon
// @ts-check import React from 'react'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from './permalink'; import ShortNumber from 'flavours/gl...
src/pure_components/WinnersList.react.js
Neil-G/ThinkQuick
import React, { Component } from 'react'; import moment from 'moment'; export class WinnersList extends Component { render(){ const { showWinnersColumn } = this.props return( <div className="winners-column" style={{ right: showWinnersColumn ? '0px' : '-200vw' }}> {/* Top Panel */} <div ...
modules/RouterContextMixin.js
jeffreywescott/react-router
import React from 'react'; import invariant from 'invariant'; import { stripLeadingSlashes, stringifyQuery } from './URLUtils'; var { func, object } = React.PropTypes; function pathnameIsActive(pathname, activePathname) { if (stripLeadingSlashes(activePathname).indexOf(stripLeadingSlashes(pathname)) === 0) retu...
src/routes/UIElement/dataTable/index.js
liuweiGL/eastcoal_mgr_react
import React from 'react' import { DataTable } from '../../../components' import { Table, Row, Col, Card, Select } from 'antd' class DataTablePage extends React.Component { constructor (props) { super(props) this.state = { filterCase: { gender: '', } } } handleSelectChange = (gender) => { ...
assets/javascripts/kitten/components/form/field/stories.js
KissKissBankBank/kitten
import React from 'react' import { FieldInputExample, FieldPasswordExample, FieldRadioButtonSetExample, FieldRadioSetExample, FieldAutocompleteExample, } from './examples' import { DocsPage } from 'storybook/docs-page' export default { title: 'Form/Field', parameters: { docs: { page: () => ( ...
test/helpers.js
herojobs/react-bootstrap
import React from 'react'; import { cloneElement } from 'react'; export function shouldWarn(about) { console.warn.called.should.be.true; console.warn.calledWithMatch(about).should.be.true; console.warn.reset(); } /** * Helper for rendering and updating props for plain class Components * since `setProps` is de...
cryptography/lab2/client/components/DataView.js
Drapegnik/bsu
import React from 'react'; import { Text, View, StyleSheet } from 'react-native'; const styles = StyleSheet.create({ container: { position: 'absolute', top: 50, }, key: { fontSize: 17, fontFamily: 'Courier', textAlign: 'center', lineHeight: 25, }, }); export default ({ publicKey, priva...
examples/async/index.js
aheuermann/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
frontend/app_v2/src/components/DeleteButton/DeleteButtonContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // FPCC import DeleteButtonData from 'components/DeleteButton/DeleteButtonData' import DeleteButtonPresentation from 'components/DeleteButton/DeleteButtonPresentation' function DeleteButtonContainer({ id, label, styling }) { const { deleteHandler } = Dele...
src/routes.js
Anshul-HL/blitz-row
import React from 'react'; import {IndexRoute, Route, Router} from 'react-router'; import { BlitzApp, BlitzHome, BlitzAllProjects, BlitzSingleProject, BlitzApartment, BlitzRoomDesign, BlitzShowroomPage } from 'containers'; export default () => { /** * Please keep routes in alphabetic...
app/src/components/Highlight.js
GlyphGryph/DarkerDaysAhead
import React from 'react' import PropTypes from 'prop-types' const Highlight = ( { color, backgroundColor, opacity, width, height, zIndex, xPosition, yPosition, borderWidth } ) => ( <div className={'highlight blink-to-transparent'} style={{ position: 'absolute', top: ''+yPositio...
renderer/components/Form/LndConnectionStringInput.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { injectIntl } from 'react-intl' import { isValidLndConnectUri, isValidBtcPayConfig } from '@zap/utils/connectionString' import TextArea from './TextArea' import messages from './messages' import { intlShape } from '@zap/i18n' const mask = value => va...
pathfinder/vtables/applicationdataqualitycompleteness/src/common/Link.js
leanix/leanix-custom-reports
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Link extends Component { constructor(props) { super(props); this._handleClick = this._handleClick.bind(this); } _handleClick(e) { e.preventDefault(); lx.openLink(this.props.link, this.props.target); } render() { if (!...
src/decorators/withViewport.js
Mobiletainment/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/Parser/Shaman/Elemental/Modules/Items/TheDeceiversBloodPact.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import ItemIcon from 'common/ItemIcon'; import ItemLink from 'common/ItemLink'; import { formatNumber } from 'common/for...
app/containers/Cloud.js
arixse/ReactNeteaseCloudMusic
import React, { Component } from 'react'; import { PropTypes } from 'react'; import { connect } from 'react-redux'; // import Header from './Header'; // import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Play from './Play'; class Cloud extends Component { constructor(props) { super(p...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/add-to-queue.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> </SvgIcon> ); AvAddToQueue.displ...
src/components/seasons/seasons-list.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import DefaultLayout from '../layouts/default'; class SeasonsList extends Component { render() { return <DefaultLayout subtitle="Seasons" isLoading={false}></DefaultLayout>; } } export default SeasonsList;
src/TabbedArea.js
brynjagr/react-bootstrap
import React from 'react'; import Tabs from './Tabs'; import TabPane from './TabPane'; import ValidComponentChildren from './utils/ValidComponentChildren'; import deprecationWarning from './utils/deprecationWarning'; const TabbedArea = React.createClass({ componentWillMount() { deprecationWarning( 'TabbedA...
Cordial/app/containers/profile-container.js
AwesomePossum446/Cordial
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View, Text, StyleSheet, StatusBar } from 'react-native'; import ConnectToModel from '../models/connect-to-model'; import {Card, User} from '../models/Model'; import CardContainer from '../containers...
website/src/containers/Relays.js
DTU-R3/ArloBot
import React, { Component } from 'react'; import { Collapse, Card, CardBody, CardHeader, CardTitle } from 'reactstrap'; import boolToOnOff from '../utils/boolToOnOff'; class Relays extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { isOpen: false };...
app/user/profile/ModalSkillList.js
sagnikm95/internship-portal
import React from 'react'; import { Modal, Button, Icon, Divider } from 'semantic-ui-react'; import axios from 'axios'; import PropTypes from 'prop-types'; import Auth from '../../auth/modules/Auth'; import User from '../../auth/modules/User'; import AvailableSkillListItem from './AvailableSkillListItem'; import Select...
src/index.js
durw4rd/curve-fever
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
docs/src/app/components/pages/components/Popover/ExampleConfigurable.js
pomerantsev/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import RadioButton from 'material-ui/RadioButton'; import Popover from 'material-ui/Popover/Popover'; import {Menu, MenuItem} from 'material-ui/Menu'; const styles = { h3: { marginTop: 20, fontWeight: 400, }, block: { dis...
src/svg-icons/maps/local-laundry-service.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalLaundryService = (props) => ( <SvgIcon {...props}> <path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ...
docs/src/sections/MediaSection.js
apkiernan/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function MediaSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anc...
client/routes/polls.js
ncrmro/reango
import React from 'react' import Bundle from 'utils/bundleLoader' //import QuestionBrowser from 'modules/polls/QuestionBrowser'; import QuestionResultsPage from 'modules/polls/QuestionResults/QuestionResultsPage' import VotePage from 'modules/polls/VoteForm/VotePage' import NewPoll from 'modules/polls/NewPoll/NewPoll' ...
src/task2/client/components/search-form.js
tormozz48/2do2go.ru
import React from 'react'; import { Form, Field, Control, Errors } from 'react-redux-form'; import { Button, FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap'; import * as actions from './actions'; const isValidUrl = (url) => /^https?:\/\/www\.reddit\.com\/r\/\w+\/\.json$/.test(url); function F...
packages/react/src/components/FormLabel/FormLabel-story.js
carbon-design-system/carbon-components
/** * 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'; import FormLabel from './FormLabel'; import Tooltip from '../Tooltip'; import mdx from './FormLabel.mdx'; export...
src/parser/demonhunter/havoc/CONFIG.js
sMteX/WoWAnalyzer
import React from 'react'; import { Mamtooth, Yajinni } from 'CONTRIBUTORS'; import SPECS from 'game/SPECS'; import retryingPromise from 'common/retryingPromise'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
hzy87email/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
app/js/components/Snippets.js
jrschupak/trysnippets2.0
'use strict'; import React from 'react'; class Snippets extends React.Component { constructor () { super(); this.state = { snippet1: { snippetArr: [{id: 0, content: "contstructor () {"}, {id: 1, content: "super();"}, {id: 2, content: "this.state = {"}, {id: 3, content: "}"}, {id: 4, content: "}"} ]}...
src/icons/font/PhotoIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * Photo button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const PhotoIcon = (props, context) => { let theme = ...
src/containers/stationData/ShortCountVolumeForStation.js
availabs/avail_app_bootstrap
import React from 'react'; import { QueryRenderer, graphql } from 'react-relay'; import ShortCountVol from '../../components/counts/ShortCountVol'; import relay from '../../relay.js'; // https://github.com/facebook/relay/issues/1851 const q = graphql` query ShortCountVolumeForStationQuery( $condition: ShortCoun...
src/js/components/icons/base/Robot.js
linde12/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...
src/components/Checkbox/Checkbox.js
titon/toolkit
/** * @copyright 2010-2017, The Titon Project * @license http://opensource.org/licenses/BSD-3-Clause * @link http://titon.io * @flow */ import React from 'react'; import Input from '../Input/Input'; import combineClasses from '../Input/combineClasses'; import formatID from '../../utility/formatID'; i...
react-lessons/src/App.js
anderson-amorim/egghead-react
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; class App extends React.Component { constructor() { super(); this.state = { txt: 'This is a State TXT' } } update(e) { this.setState({ txt: e.target.value }); }...
client/src/components/Login.js
bwuphan/raptor-ads
import React, { Component } from 'react'; import { Button, Form, Grid, Header, Icon } from 'semantic-ui-react'; import { connect } from 'react-redux'; import { changeLoginField, loginUser } from '../actions'; class Login extends Component { constructor(props) { super(props); this.handleChange = this.handleCh...
src/components/Logo.js
TarlyFM/tarlyfm_front
import React from 'react'; import { Image } from 'semantic-ui-react'; const Logo = () => ( <Image src='/logo.png' /> ) export default Logo;
app/routes/routes/Booking/components/Booking.view.js
bugknightyyp/leyizhu
import React from 'react' import {observer} from 'mobx-react' import {Route, Link, NavLink} from 'react-router-dom' import {IMAGE_DIR, TEST_IMAGE, GET_HOTEL_INFO, RESPONSE_CODE_SUCCESS} from 'macros' import {dateToZh} from 'utils' import './booking.less' export default observer( (props) => { let persons = [] ...
node_modules/react-bootstrap/es/Tooltip.js
okristian1/react-info
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/encoded/static/components/lib/matrix-viz/Matrix.js
4dn-dcic/fourfront
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { extend } from 'underscore'; import { matrixStyle, cellStyle } from './Styles.js'; import { randomData } from './Util.js'; import Column from './Column.js'; import Cell from './Cell.js'; export default class Matrix extends Component ...
app/components/Prodimg/index.js
Rohitbels/KolheshwariIndustries
/** * * Prodimg * */ import React from 'react'; import {Col,Thumbnail} from 'react-bootstrap'; class Prodimg extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <Col md={2}> <Thumbnail src={this.props.path} alt="242x200"/> </Col> ); } }...
src/components/Toggle/Toggle.Skeleton.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'; import { settings } from 'carbon-components'; const { prefix } = settings; export default class ToggleSkeleton e...
src/component/ChatRoom.js
im-js/im.js
/** * <plusmancn@gmail.com> created at 2017 * * Copyright (c) 2017 plusmancn, all rights * reserved. * * @flow * 聊天室 * * TODO: 聊天室有两次渲染问题 */ import { observer } from 'mobx-react/native'; import uuid from 'uuid'; import React, { Component } from 'react'; import { KeyboardAvoidingView, RefreshControl, ...
client/src/app/routes/dashboard/containers/Dashboard.js
zraees/sms-project
/** * Created by griga on 11/30/15. */ import React from 'react' import WidgetGrid from '../../../components/widgets/WidgetGrid' import Stats from '../../../components/common/Stats' import BigBreadcrumbs from '../../../components/navigation/components/BigBreadcrumbs' import BirdEyeWidget from '../components/BirdEy...
client/components/FlassCommon/Video/VideoButton/VideoButtonComponent.js
Nexters/flass
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import './VideoButtonStyle.scss'; const { func, string, number, oneOfType, arrayOf } = PropTypes; const propTypes = { onButtonClick: func.isRequired, onButtonMouseOver: func, onButtonMouseLeave: func, button...
src/components/slider/Slider.js
casesandberg/react-color
import React from 'react' import PropTypes from 'prop-types' import reactCSS from 'reactcss' import merge from 'lodash/merge' import { ColorWrap, Hue } from '../common' import SliderSwatches from './SliderSwatches' import SliderPointer from './SliderPointer' export const Slider = ({ hsl, onChange, pointer, styles: ...
es/Paper/Paper.js
uplevel-technology/material-ui-next
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
app/javascript/mastodon/features/public_timeline/index.js
tootsuite/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
frontend/src/components/public_group/PublicGroupJoinUs.js
carlosascari/opencollective-website
import React from 'react'; import AmountPicker from '../../components/public_group/AmountPicker'; export default class PublicGroupJoinUs extends React.Component { _showTier(tier, index) { const { donateToGroup, i18n } = this.props; return ( <div className='md-col-6 col-12 px3 pb4 mb4 border-box flex' ...
node/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
onezens/HtmlCSSJavaScriptPractiseRepo
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/svg-icons/editor/border-style.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderStyle = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/> </SvgIcon> ); E...
src/svg-icons/image/filter-6.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter6 = (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-2...
src/i18n.js
HsuTing/cat-components
'use strict'; import 'fetch-everywhere'; import React from 'react'; import PropTypes from 'prop-types'; export const language = Component => class extends React.Component { // eslint-disable-line react/display-name static contextTypes = { translate: PropTypes.object.isRequired, changeLanguage: PropTypes.fun...
docs/src/app/components/pages/components/Popover/ExampleConfigurable.js
hai-cea/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import RadioButton from 'material-ui/RadioButton'; import Popover from 'material-ui/Popover/Popover'; import {Menu, MenuItem} from 'material-ui/Menu'; const styles = { h3: { marginTop: 20, fontWeight: 400, }, block: { dis...
boilerplates/project/mobileWeb/src/components/PageNotFound/PageNotFound.js
FuluUE/vd-generator
import React from 'react'; import PropTypes from 'prop-types'; import Placeholder from '../Placeholder'; import './less/pageNotFound.less'; const PageNotFound = (props) => { return ( <Placeholder className='placeholder-404' slogan='蛇精出来捣乱啦! 快跑呀!!' extra={ <a href="/">返回首页</a> } /> ); }; ...
app/javascript/mastodon/features/video/index.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { fromJS } from 'immutable'; import { throttle } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/uti...
src/Container.js
ericyd/surfplotjs
/** * This component serves two purposes: * 1. Provide a container for the navigation and the routes served through the router * 2. Save the state of the Plotter component when it unmounts and send that state back to the Plotter * when it remounts. */ 'use strict'; import React, { Component } from 'react'; im...
demo/BackEndApp/src/components/ProductList.js
JianmingXia/StudyTest
import React from 'react'; import PropTypes from 'prop-types'; import { Table, Popconfirm, Button } from 'antd'; const ProductList = ({ onDelete, products }) => { const columns = [{ title: 'Name', dataIndex: 'name', }, { title: 'Actions', render: (text, record) => { ...
application/components/ProjectTile.js
Kifial/CoinKeeper
import React from 'react' import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card' import FlatButton from 'material-ui/FlatButton' import moment from 'moment' import LinearProgress from 'material-ui/LinearProgress' export default props => ( <Card style={{ width: 'calc(50% ...
public/js/components/DetailsIdentificationChronicPainB.js
Vabrins/CadernetaDoIdoso
import React from 'react'; import $ from 'jquery'; import { Link } from 'react-router-dom'; class DetailsIdentificationChronicPainB extends React.Component { constructor (props) { super(props); this.state = {date_2_10_b:'', place_of_pain_2_10_b:'', intensity_2_10_b:'', created_at:'', list : []}; } co...
components/TextInput/TextInput.js
zendesk/linksf
import React from 'react' import s from './TextInput.css' const TextInput = (props) => ( <input className={s.input} {...props} type="text" /> ) export default TextInput
views/blocks/Search/search.js
AlSoEdit/team5
import React from 'react'; import SearchBar from './../SearchBar/SearchBar'; import SearchResult from './../SearchResult/SearchResult'; import SearchResultItem from './../SearchResult/ResultItem'; import Card from './../QuestCard/questCard'; import constants from './../../constants/defaultStates'; const Searcher = req...
src/parser/mage/fire/modules/features/HotStreakWastedCrits.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import HIT_TYPES from 'game/HIT_TYPES'; import EnemyInstances,...
client/components/ThemeSelect.js
GO345724/pair-programming
import React, { Component } from 'react'; import {FormGroup, ControlLabel, FormControl} from 'react-bootstrap'; import PropTypes from 'prop-types'; class ThemeSelect extends Component { constructor(props) { super(props); this.state = { themes : ['monokai', 'github', 'tomorrow', 'kuroir', 'twilight', 'x...
components/EmailMultiInput/EmailMultiInput.js
tomgatzgates/loggins
import React, { Component } from 'react'; import TagInput from 'react-tagsinput'; import { backspace, tab, enter, del, comma } from '../../util/keyCodes'; import s from './EmailMultiInput.css'; const MATCHER = /[^\s@,]+@[^\s,@]+\.[^\s@,]+/; export default class EmailMultiInput extends Component { constructor(props...
react-app/src/components/Legends.js
tanykim/swimmers-network
import React, { Component } from 'react'; class LegendsComponent extends Component { render() { const { type } = this.props; return (<div className="legends"> <div className="legend-wrapper"> <span className="cursor-icon" /> <span className="legend"> <div className="legend-ite...
src/index.js
MarcAtrapalo/redux-formation
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
stories/AutoComplete/index.js
skyiea/wix-style-react
import React from 'react'; import {storiesOf} from '@storybook/react'; import Markdown from '../utils/Components/Markdown'; import TabbedView from '../utils/Components/TabbedView'; import CodeExample from '../utils/Components/CodeExample'; import Readme from '../../src/AutoComplete/README.md'; import ReadmeTestKit from...
src/hooks/useColumnVisibility.js
react-tools/react-table
import React from 'react' import { actions, functionalUpdate, useGetLatest, makePropGetter, useMountedLayoutEffect, } from '../publicUtils' actions.resetHiddenColumns = 'resetHiddenColumns' actions.toggleHideColumn = 'toggleHideColumn' actions.setHiddenColumns = 'setHiddenColumns' actions.toggleHideAllColum...
src/components/RadarController.js
TorinoMeteo/tm-realtime-map
import React from 'react' import PropTypes from 'prop-types' import ReactSlider from 'react-slider' import Switch from 'react-switch' class RadarController extends React.Component { static propTypes = { changeRadarStatus: PropTypes.func.isRequired, changeRadarPause: PropTypes.func.isRequired, changeRadar...
src/components/Main.js
RxKotlin/techradar-reactjs
// require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; import RadarItemListPageComponent from './page/RadarItemListPageComponent'; import RadarHomePageComponent from './page/RadarHomePageComponent'; import Radar from './svg/RadarComponent'; import ListComponent from './Radar/L...
packages/material-ui-icons/src/ArrowDownward.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" /></g> , 'ArrowDownward');
components/Quote.js
tendotosystems/lunchblast-client
import React from 'react' import { View, Text, StyleSheet } from 'react-native' import fontStyles from '../styles/fonts'; const Quote = ({quote}) => ( <View> <Text style={styles.quoteStyle}>{quote}</Text> <Text style={styles.quoteStyle}> - Guy Fieri</Text> </View> ) const styles = StyleSheet.create({ qu...
src/components/Header/Header.js
yurikrupnik/meaner
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 withStyles from 'isomorp...
src/svg-icons/maps/my-location.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMyLocation = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
src/svg-icons/action/trending-up.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp = pure(ActionTrendingUp); ActionTrending...
js/ShowCard.js
enrique7mc/vidflix
import React from 'react' import { Link } from 'react-router' const { string } = React.PropTypes const ShowCard = React.createClass({ propTypes: { poster: string.isRequired, title: string.isRequired, year: string.isRequired, imdbID: string.isRequired, description: string.isRequired }, render:...
src/components/Form/Select/SelectView.js
Kalcode/Gatsby-Boilerplate
import React from 'react' import PropTypes from 'prop-types' import baseStyles from '../Inputs/styles.module.scss' import styles from './styles.module.scss' export default function SelectView({ children, error, inputProps, options, width }) { return ( <div className={baseStyles.wrapper} style={{ width }}> ...
src/components/Help.js
stevenlaidlaw/Phorg
import React from 'react'; import styles from './Help.css'; const Help = ({display, toggleDisplay}) => ( <div className={`${styles.box} ${display ? styles.shown : ''}`} onClick={toggleDisplay}> <div className={styles.Help}> <h3>Rules</h3> <div className={styles.key}> <div>$Y</div> <di...
test/helpers.js
AlexKVal/react-overlays
import React from 'react'; import { cloneElement } from 'react'; export function shouldWarn(about) { console.warn.called.should.be.true; console.warn.calledWithMatch(about).should.be.true; console.warn.reset(); } /** * Helper for rendering and updating props for plain class Components * since `setProps` is de...
examples/isomorphic-react/client/render.js
d-oliveros/isomorphine
import React from 'react'; import App from './App.jsx'; let state = window.__STATE__; /** * Renders the app in the container */ let container = document.getElementById('app-container'); React.render(<App state={ state }/>, container);
index.android.js
nuttyboysoftware/ReactNativeDemo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Image, View, TouchableHighlight, TouchableOpacity, TouchableNativeFeedback, Dimensions, GeoLocation, Navigator } ...
blueocean-material-icons/src/js/components/svg-icons/image/dehaze.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageDehaze = (props) => ( <SvgIcon {...props}> <path d="M2 15.5v2h20v-2H2zm0-5v2h20v-2H2zm0-5v2h20v-2H2z"/> </SvgIcon> ); ImageDehaze.displayName = 'ImageDehaze'; ImageDehaze.muiName = 'SvgIcon'; export default ImageDehaze;
dva/wd/src/components/Layouts/BuyBarLayout.js
imuntil/React
import React from 'react'; import QueueAnim from 'rc-queue-anim' import styles from './BuyBarLayout.css'; function BuyBarLayout({ children, location }) { return ( <QueueAnim type={'right'} style={{ height: '100%', width: '100%', display: 'block' }}> <div key="l2" className={styles.normal}> <QueueAn...
src/components/Resume/JobPage.js
angeloocana/angeloocana
import React from 'react'; import PropTypes from 'prop-types'; import H1 from '../H1'; import { injectIntl, FormattedMessage } from 'react-intl'; import Helmet from 'react-helmet'; import JobDates from './JobDates'; import styled from 'styled-components'; import Technologies from './Technologies'; import Projects from ...
app/components/myCloudSdkDialog.js
JustinBeckwith/trebuchet
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import {remote, shell} from 'electron'; export default class myCloudSdkDialog extends React.Component { constructor(props) { super(props); ...