path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
thehashrocket/angular2-2waydata-confirmation
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'));
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Checkbox/Page.js
pbogdan/react-flux-mui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import checkboxReadmeText from './README'; import checkboxCode from '!raw!materi...
app/javascript/mastodon/components/inline_account.js
lindwurm/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { makeGetAccount } from 'mastodon/selectors'; import Avatar from 'mastodon/components/avatar'; const makeMapStateToProps = () => { const getAccount = makeGetAccount(); const mapStat...
docs/src/app/components/pages/components/Table/Page.js
hai-cea/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import tableReadmeText from './README'; import TableExampleSimple from './Exampl...
components/TableHeader.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import Icon from './Icon'; const propTypes = { children: PropTypes.node, className: PropTypes.string, iconClassName: PropTypes.string, sortDir: PropTypes.string, }; const TableHeader = props => { const { chil...
node_modules/expo/src/AppLoading.ios.js
jasonlarue/react-native-flashcards
'use strict'; import React from 'react'; import { NativeModules, requireNativeComponent } from 'react-native'; const NativeAppLoading = requireNativeComponent('ExponentAppLoading', null); export default class AppLoading extends React.Component { componentWillUnmount() { NativeModules.ExponentAppLoadingManager...
examples/js/column-filter/select-filter-with-default-value.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
server/sonar-web/src/main/js/main/nav/component/component-nav-favorite.js
vamsirajendra/sonarqube
import React from 'react'; import Favorite from '../../../components/shared/favorite'; export default React.createClass({ render() { if (!this.props.canBeFavorite) { return null; } return ( <div className="navbar-context-favorite"> <Favorite component={this.props.component} favori...
app/app.js
ScoutingIJsselgroep/Jotihunt
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
com/jessewarden/contacts/contactClasses/EditImageView.js
JesterXL/react-bootstrap-express-cassandra-contacts
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import EventBus from '../EventBus'; class EditImageView extends React.Component { constructor(props) { super(props); this.state = { contact: _.cloneDeep(props.contact), dirty: false }; } componentDidMount() { var m...
app/scripts/hglib.js
hms-dbmi/higlass
import React from 'react'; import ReactDOM from 'react-dom'; import HiGlassComponent from './HiGlassComponent'; // these exports can be used to create new tracks in outside // environments (e.g. Observable) import SVGTrack from './SVGTrack'; import TiledPixiTrack from './TiledPixiTrack'; import HorizontalGeneAnnotatio...
docs/src/PropTable.js
jsbranco/react-materialize
// Shameless copied from react-bootstrap import React from 'react'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); let capitalize = str => str[0].toUpperCase() + str.substr(1); class PropTable extends React.Component { constructor() { s...
src/Components/DashboardNav.js
NickGlenn/React-Project
import React, { Component } from 'react'; export default class DashboardNav extends Component { static propTypes = { displayName: React.PropTypes.string }; static defaultProps = { displayName: 'unknown' }; render () { return ( <div> <nav> <span>Welcome back, { this.prop...
integration-tests/scripts/test-utils/TestSuite.js
Polidea/react-native-ble-plx
// @flow import React from 'react' import { SafeAreaView,StyleSheet } from 'react-native' import { addAccessibilityLabel } from './utils' import TestCase, { type TestCaseType } from './TestCase' const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: 'papayawhip' } }) type Props = { t...
frontend/components/article/form.js
apostolidhs/wiregoose
import isObject from 'lodash/isObject'; import React from 'react'; import PropTypes from 'prop-types'; import Form from 'react-bootstrap/lib/Form'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Col from 'react-bootstrap/lib/Col'; import FormControl from 'react-bootstrap/lib/FormControl'; import ControlL...
information/blendle-frontend-react-source/app/components/dialogues/LoginWarningDialogue.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import { Dialog, DialogBody } from '@blendle/lego'; import { translate } from 'instances/i18n'; import Link from 'components/Link'; export default class LoginWarningDialogue extends React.Component { static propTypes = { onClose: PropTypes.func.isReq...
src/client/pages/Login.js
callmeJozo/MKRN
import React from 'react'; import { Modal, Tabs, Form, Input, Button, Checkbox, Radio, Tooltip, Icon, message } from 'antd'; const FormItem = Form.Item; const RadioGroup = Radio.Group; const TabPane = Tabs.TabPane; import AuthStore from "../stores/auth"; class Login extends Reac...
public/scripts/components/MultipleChoice.js
nicrocs/react-form-builder
import React from 'react'; import Choice from './Choice.js'; function MultipleChoice(props) { var choiceNodes = props.choices.map(function(choice) { return ( <Choice key={choice.id} type="checkbox" text={choice.text}> </Choice> ); }); return ( <div className="question"> <fieldset> ...
packages/lore-hook-connect/src/connect.js
lore/lore
/* eslint no-shadow: "off" */ /* eslint react/no-is-mounted: "warn" */ /* eslint react/prefer-es6-class: "off" */ import React from 'react'; import createReactClass from 'create-react-class'; import _ from 'lodash'; import invariant from 'invariant'; import storeShape from './utils/storeShape'; import getDisplayName f...
app/util/dimension.js
typesettin/NativeCMS
import React from 'react'; import { Platform, } from 'react-native'; import debounce from 'debounce'; function getTimestamp() { return new Date(); } export function onLayoutUpdate(options) { this.props.setAppDimensions(options.nativeEvent.layout); this.setState({ forceRerender: getTimestamp(), layout: o...
docs/app/Examples/elements/Image/States/ImageExampleDisabled.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleDisabled = () => ( <Image src='/assets/images/wireframe/image.png' size='medium' disabled /> ) export default ImageExampleDisabled
src/modules/config/routes.js
jinmayamashita/quicker
import React from 'react' import { Router, Route, IndexRoute, browserHistory } from 'react-router' // components of quicker import App from '~/App' import Intro from '~/Intro' import Messenger from '~/Messenger' import MessengerMain from '~/MessengerMain' import MessengerSide from '~/MessengerSide' import NotFound fro...
src/svg-icons/notification/wc.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWc = (props) => ( <SvgIcon {...props}> <path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6...
src/svg-icons/maps/local-shipping.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalShipping = (props) => ( <SvgIcon {...props}> <path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-...
node_modules/react-router/es6/IndexRedirect.js
WatkinsSoftwareDevelopment/HowardsBarberShop
'use strict'; import React from 'react'; import warning from './warning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './PropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedi...
src/doc_text.js
offenesdresden/annotieren
import React from 'react' import ReactDOM from 'react-dom' import Divider from 'react-md/lib/Dividers' import { getTypeById } from './types' export default class DocText extends React.Component { constructor(props) { super(props) this.handleSelection = (e) => { let slice let sel = document.ge...
src/index.js
leafydream/react-redux-starter
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; import RouterMap from './router/routerMap'; import createBrowserHistory from 'history/createBrowserHistory'; const history = createBrowserHistory(); const store = c...
src/pages/chart/ECharts/AirportCoordComponent.js
zuiidea/antd-admin
import React from 'react' import ReactEcharts from 'echarts-for-react' require('./map/js/china.js') const AirportCoordComponent = () => { let geoCoordMap = { 上海: [121.4648, 31.2891], 东莞: [113.8953, 22.901], 东营: [118.7073, 37.5513], 中山: [113.4229, 22.478], 临汾: [111.4783, 36.1615], 临沂: [118.31...
src/routes/preorder/index.js
bigearth/www.clone.earth
import React from 'react'; import Layout from '../../components/Layout'; import Preorder from './Preorder'; const title = 'Preorder'; export default { path: '/preorder', action() { return { title, component: <Layout><Preorder title={title} /></Layout>, }; }, };
src/components/Header.js
DragonLegend/game
import React from 'react'; import Menu from './Menu'; import Info from './Info'; export default () => ( <div className="uk-grid"> <div className="uk-width-4-10"> <Info /> </div> <div className="uk-width-6-10"> <Menu /> </div> </div> );
packages/react/src/components/TableCell.js
wq/wq.app
import React from 'react'; export default function TableCell(props) { return <td {...props} />; }
lib/encoding/Intro.js
waynecraig/encoding-present
require('./sass/fullpage.sass'); import React, { Component } from 'react'; export default class Slide extends Component { render() { return ( <div className='fullpage'> <h1>Web安全编码</h1> <h3>craigwu<br/>2015-11-05</h3> </div> ) } }
frontend/src/Settings/Metadata/Metadata/Metadata.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Card from 'Components/Card'; import Label from 'Components/Label'; import { kinds } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; import EditMetadataModalConnector from './EditMetadataModalConnector'; import...
apps/customer/assets/static/js/routes.js
tsurupin/job_search
import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, } from 'redux'; import thunk from 'redux-thunk'; import reducers from './reducers'; const store = createStore(reducers, applyMiddleware...
src/svg-icons/image/details.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageDetails = (props) => ( <SvgIcon {...props}> <path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/> </SvgIcon> ); ImageDetails = pure(ImageDetails); ImageDetails.displayName = 'ImageDetails'; ImageDetai...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-6.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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-2c0-1.11-.9-2-2-2h-2V7h4V5h-4c-1.1...
client/modules/settings/routes.js
pstuart/Open-Dash
import React from 'react'; import { mount } from 'react-mounter'; import MainLayout from '/client/modules/core/containers/main_layout'; import SettingsPage from './containers/settings_page'; export default function (injectDeps, { FlowRouter }) { const MainLayoutCtx = injectDeps(MainLayout); FlowRouter.route('/se...
src/svg-icons/editor/format-color-fill.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorFill = (props) => ( <SvgIcon {...props}> <path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 ...
BuyDemo/index.android.js
HAPENLY/ReactNative-Source-code-Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; //导入外部组件 var Main = require('./Component/Main/ZPMain'); export default class BuyDemo extends Component { render...
src/web/components/Error.js
TeodorKolev/Help
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col } from 'reactstrap'; import { Link } from 'react-router-dom'; const Error = ({ title, content }) => ( <Row> <Col lg="4"> <h2>{title}</h2> <p>{content}</p> <p> <Link to="/" className="btn btn-primary">Go Hom...
example/src/index.js
withspectrum/slate-markdown
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './global-styles'; ReactDOM.render(<App />, document.getElementById('root'));
packages/showcase/showcase-components/showcase-dropdown.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/components/common/svg-icons/image/slideshow.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSlideshow = (props) => ( <SvgIcon {...props}> <path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageSlideshow = pure(I...
salt-frontend/react/dashboard/src/components/ContextMenu.js
syakuis/salt-framework
import React from 'react'; import Modal from 'react-modal'; import { connect } from 'react-redux'; import { deletePortlet, clonePortlet } from '../actions'; import PortletUpdate from './PortletUpdate'; class ContextMenu extends React.Component { constructor(props) { super(props) this.onModalOpen...
client/src/app-components/page-size-dropdown.js
opensupports/opensupports
import React from 'react'; import DropDown from 'core-components/drop-down'; import i18n from 'lib-app/i18n'; class PageSizeDropdown extends React.Component { static propTypes = { value: React.PropTypes.number, onChange: React.PropTypes.func, pages: React.PropTypes.array } state =...
actor-apps/app-web/src/app/components/DialogSection.react.js
yangchaogit/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import PeerUtils from 'utils/PeerUtils'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'c...
cerberus-dashboard/src/components/GroupSelect/GroupsSelect.js
Nike-Inc/cerberus
/* * Copyright (c) 2020 Nike, inc. * * 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 to ...
admin/client/components/Toolbar/index.js
Tangcuyu/keystone
import React from 'react'; import { Container } from 'elemental'; module.exports = React.createClass({ displayName: 'Toolbar', render () { return ( <div {...this.props} className="Toolbar"> <Container clearfix > {this.props.children} </Container> </div> ); }, }); // expose the children to th...
src/parser/druid/balance/modules/resourcetracker/AstralPowerDetails.js
sMteX/WoWAnalyzer
import React from 'react'; import Panel from 'interface/others/Panel'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; import ResourceBreakdown from 'parser/shared/modules/resourcetracker/ResourceBreakdown'; import { formatPercentage } from 'c...
maodou/posts/client/components/posts.js
maodouio/meteor-react-redux-base
import React from 'react'; import {Link} from 'react-router'; import Tabs from '../containers/tabs'; import Loading from 'client/components/common/loading'; import moment from 'moment'; export default (props) => { const T = props.context.T; return ( <div style={{ paddingTop: '50px' }}> { props.co...
src/server.js
NetEffective/net-effective
// read env vars from private `.env` file in root. require('dotenv').config(); import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'...
src/parser/monk/mistweaver/modules/spells/azeritetraits/UpliftedSpirits.js
FaideWW/WoWAnalyzer
import React from 'react'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SpellUsable from 'parser/shared/mo...
app/containers/movements/index.js
kimurakenshi/caravanas
import React from 'react'; import styles from './style/movements.scss'; import PageTitle from '../../components/page-title'; import { MovementList } from './components'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import FlatButton from 'material-ui/FlatButton'; function Movement...
views/blocks/Comment/Comment.js
urfu-2016/team5
import React from 'react'; import b from 'b_'; import LikesContainer from './../Likes/LikesContainer'; import CommentsPoster from './../comments/CommentsPoster.js'; import './Comment.css'; const comment = b.lock('comment'); export default class Comment extends React.Component { constructor(props) { super(...
frontend/sections/info/info.js
apostolidhs/wiregoose
import React from 'react'; import PropTypes from 'prop-types'; import Col from 'react-bootstrap/lib/Col'; import CSSModules from 'react-css-modules'; import styles from './info.less'; @CSSModules(styles, { allowMultiple: true, }) export default class Info extends React.Component { static propTypes = { childre...
src/svg-icons/notification/sms.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); NotificationSm...
src/routes/register/index.js
oozywaters/JOOR-react
/** * 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 Register from './Registe...
examples/server-rendering/shared/components/demos/ScrollSpy.js
amazeui/amazeui-react
import React from 'react'; import { Grid, Col, Panel, ScrollSpy, } from '../AMUIReact'; export class ScrollSpyDemo extends React.Component { render() { var bullshit = '生命是一团欲望,欲望不满足便痛苦,满足便无聊。人生就在痛苦和无聊之间摇摆。——叔本华'; var cols = { sm: 12, md: 4, lg: 3 }; var scrollContainer = gl...
MobileApp/node_modules/react-native-elements/src/icons/Icon.js
VowelWeb/CoinTradePros.com
import PropTypes from 'prop-types'; import React from 'react'; import { Platform, TouchableHighlight, View, StyleSheet, Text as NativeText, } from 'react-native'; import getIconType from '../helpers/getIconType'; const Icon = props => { const { type, name, size, color, iconStyle, co...
src/js/components/journal-app.js
donnierayjones/dayone-js-html
import React from 'react'; import moment from 'moment'; import DateSelectors from './date-selectors'; import TagSelectors from './tag-selectors'; import JournalEntries from './journal-entries'; import PDFRenderer from './../pdf-renderer' export default class JournalApp extends React.Component { constructor(props) { ...
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
Bogala/create-react-app-awesome-ts
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-shell-env-variables"> {process.env.REACT_APP_SHELL_ENV_MESSAG...
src/toast/toast-text.js
ricsv/react-leonardo-ui
import React from 'react'; const ToastText = ({ className = '', children, ...extraProps }) => { const finalClassName = `lui-toast__text ${className}`.trim(); return ( <div className={finalClassName} {...extraProps}> {children} </div> ); }; export default ToastText;
src/svg-icons/content/link.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3....
admin/src/components/ListHeader.js
mekanics/keystone
import classNames from 'classnames'; import React from 'react'; import utils from '../utils.js'; import { Button, Container, Dropdown, FormInput, InputGroup, Pagination } from 'elemental'; import CreateForm from './CreateForm'; import ListColumnsForm from './ListColumnsForm'; import ListDownloadForm from './ListDownlo...
src/components/FormAPP/Checkboxes.js
GuoYongfeng/react-fundamental
import React, { Component } from 'react'; class Checkboxes extends Component { render(){ return <span> A <input onChange={this.props.handleCheck} name="goodCheckbox" type="checkbox" value="A"/> B <input onChange={this.props.handleCheck} name="goodCheckbox" type="checkbo...
app/components/HeaderBaseBoilerPlate/index.js
FlorianVoct/monPropreMix
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
app/react-icons/fa/stumbleupon-circle.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaStumbleuponCircle extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m22.3 18.7l2-0.6v-1.4q0-1.7-1.3-3t-3-1.2-3.1 1.2-1.3 3v6.3q0 0.5-0...
packages/site/templates/global/SocialLinks.js
InventingWithMonster/redshift
import React from 'react'; import styled from 'styled-components'; import GitHub from '~/components/icons/GitHub'; import Twitter from '~/components/icons/Twitter'; import settings from '~/data/settings.json'; import { cols, media } from '~/styles/vars'; const IconLink = styled.a` margin-left: ${cols(1)}; `; const ...
chapter-07/weather_redux_improved/src/App.js
mocheng/react-and-redux
import React, { Component } from 'react'; import {view as CitySelector} from './city_selector/'; import {view as Weather} from './weather/'; class App extends Component { render() { return ( <div> <CitySelector /> <Weather /> </div> ); } } export default App;
src/components/AboutPage.js
aleccunningham/robinhood-react
import React from 'react'; const AboutPage = () => { return { <div> <h1>About Page</h1> <p>An implementation of ReactJS and Redux with the Robinhood API to make trades on your desktop machine!</p> </div> }; }; export default AboutPage
client/src/daemons/daemons.page.js
Thiht/docktor
// React import React from 'react'; import { connect } from 'react-redux'; import { Scrollbars } from 'react-custom-scrollbars'; import { Link } from 'react-router'; import DebounceInput from 'react-debounce-input'; // Components import DaemonCard from './daemon.card.component.js'; import Sites from '../sites/sites.co...
client/mobile/index.ios.js
Frky/moon
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class mobile extends Component { render() { return ( <View style={styles.container}> ...
es/admin/components/UsersList/Header.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash/debounce'; import compose from 'recompose/compose'; import withProps from 'recompose/withProps'; import withHandlers from 'recompose/withHandlers'; var enhance = compose(wit...
src/components/GithubButton/GithubButton.js
madeagency/reactivity
// @flow import React from 'react' type Props = { title: string, user: string, repo: string, type: 'star' | 'watch' | 'fork' | 'follow', width: number, height: number, count?: boolean, large?: boolean } const GithubButton = (props: Props) => { const { title, user, repo, type, width, height, count, ...
examples/basic/src/containers/Post.js
calvinrbnspiess/react-static
import React from 'react' import { getRouteProps, Link } from 'react-static' // export default getRouteProps(({ post }) => ( <div> <Link to="/blog/">{'<'} Back</Link> <br /> <h3>{post.title}</h3> <p>{post.body}</p> </div> ))
templates/rubix/rubix-bootstrap/src/SplitButton.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import RSplitButton from './RSplitButton'; import { DropdownButtonHOC } from './DropdownButton'; @DropdownButtonHOC export default class SplitButton extends React.Component { render() { return <RSplitButton {...this.props.buttonProps} />; } }
src/svg-icons/editor/border-outer.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderOuter = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/> </SvgIcon> ); EditorBorderOuter =...
docs/src/pages/demos/steppers/HorizontalNonLinearAlternativeLabelStepper.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Stepper, { Step, StepButton } from 'material-ui/Stepper'; import Button from 'material-ui/Button'; import Typography from 'material-ui/Typography'; const styles = theme => ({ root: { width: '90%...
src/svg-icons/action/settings-input-component.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComponent = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
app/addons/documents/changes/components/ChangeID.js
michellephung/couchdb-fauxton
// 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 to in writing, software // distributed un...
src/app/components/auth/require_auth.js
disruptiveunicorn/comp-set-cms
import React, { Component } from 'react'; export default function(ComposedComponent) { class Auth extends Component { render() { return <ComposedComponent {...this.props}/> } } return Auth; }
src/containers/app/AppTitleBarContainer.js
PocketOfWeird/mjfjobs
import React from 'react' import { connect } from 'react-redux' import { setCurrentView, goBackward, refreshData } from '../../actions' import { isLoggedIn } from '../../selectors' import { login, logout } from '../../helpers' import AppTitleBar from '../../components/AppTitleBar' const mapStateToProps = state => ({ ...
common/components/commentpage.js
hackersync/HackerSync
/** * Component that renders comments for a story * along with providing link to article at the top * @flow */ import React, { Component } from 'react'; import DataFetch from './datafetch.js'; import BackButton from './backbutton.js'; import Post from './post.js'; import { StyleSheet, Text, View, } from 'react-na...
common/user-app/feed/Feed.js
gobble43/gobble-dist-web
import React from 'react'; import AddPostContainer from './../../shared/add-post/AddPostContainer'; import Posts from '../../shared/post/PostContainer'; import Recommendations from '../user-rec/RecommendationsContainer'; const Feed = () => ( <div className="feed-view"> <AddPostContainer /> <Recommendations ...
frontend/src/AddMovie/ImportMovie/Import/ImportMovieRow.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import FormInputGroup from 'Components/Form/FormInputGroup'; import VirtualTableRowCell from 'Components/Table/Cells/VirtualTableRowCell'; import VirtualTableSelectCell from 'Components/Table/Cells/VirtualTableSelectCell'; import { inputTypes } from 'Helper...
src/js/components/Sidebar.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Box from './Box'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.SIDEBAR; /** * @descri...
components/pagination/pager.js
TDFE/td-ui
/* eslint-disable no-unused-vars */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; const Pager = props => { const { page, prefixCls, active } = props; const classnames = cn(`${prefixCls}-item`, `${prefixCls}-item-${page}`, { [`${prefixCls}-item-active...
src/components/app.js
catfriend/ComplexWeather
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
react-ui/src/components/InfoField.js
simmco/trading-book-store
import React from 'react' import AddBook from './AddBook' import TradeStatus from './TradeStatus' export default function InfoField() { return <div> <AddBook /> <TradeStatus /> </div> }
src/pages/DashboardPage.js
ChrisWhiten/react-rink
import React from 'react'; import classNames from 'classnames'; import Work from 'material-ui/svg-icons/action/work'; import TurnedIn from 'material-ui/svg-icons/action/turned-in'; import UpcomingBox from '../components/dashboard/UpcomingBox'; import InvitationsContainer from '../components/dashboard/InvitationsContain...
examples/index.js
devsy-io/devsy-editor
import React from 'react' import ReactDom from 'react-dom' import App from './components/App' import './components/index.scss' let root = document.getElementById('root') if (!root) { root = document.createElement('div') document.body.appendChild(root) } ReactDom.render(<App />, root)
src/web/components/coverage.js
li-yinan/darp
import React from 'react'; import './coverage.less'; function postCoverage() { let data = window.__coverage__; let suffix = +new Date(); let div = document.createElement('div'); div.style.display = 'none'; div.innerHTML = ` <iframe name="formtarget${suffix}" style="display:none;"></iframe> ...
newclient/scripts/components/admin/disclosure-filter-by-type/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/about/index.js
guokeke/image-editor
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/svg-icons/image/photo.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePhoto = p...
docs/app/Examples/elements/Input/Variations/InputExampleActionLabeledButton.js
shengnian/shengnian-ui-react
import React from 'react' import { Input } from 'shengnian-ui-react' const InputExampleActionLabeledButton = () => ( <Input action={{ color: 'teal', labelPosition: 'right', icon: 'copy', content: 'Copy' }} defaultValue='http://ww.short.url/c0opq' /> ) export default InputExampleActionLabeledButton
Client/src/modules/auth/Login.js
Aldarov/StudentEmployment
import React from 'react'; import { Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import withStyles from '@material-ui/core/styles/withStyles'; import { loginStyles } from './styles'; @withStyles(loginStyles) class Login extends React.Component { componentDidMount(){ this.props.onLogin(...
frontend/src/Components/Form/FormInputGroup.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Link from 'Components/Link/Link'; import { inputTypes } from 'Helpers/Props'; import AlbumReleaseSelectInputConnector from './AlbumReleaseSelectInputConnector'; import AutoCompleteInput from './AutoCompleteInput'; import CaptchaInputConnector from '....
client/modules/users/components/.stories/feed_new_post.js
StorytellerCZ/Socialize-starter
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import FeedNewPost from '../feed_new_post.jsx'; storiesOf('users.FeedNewPost', module) .add('default view', () => { return ( <FeedNewPost /> ); })
app/javascript/mastodon/features/explore/links.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Story from './components/story'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { fetchTrendingLinks } from 'mastodon/act...