path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/example/app/pages/MemberForm.js
lighter-cd/ezui_react_one
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {Link} from 'react-router-dom'; import {Container,FixedBox,EnlargeBox} from '../../../lib/flexBoxLayout'; import {Row,Col} from '../../../lib/flexBoxGrid'; import {Button} from '../../../lib/components/form'; import {Popup} from '../....
src/components/input.js
frig-js/frig
import React from 'react' import UnboundInput from './unbound_input.js' export default class Input extends React.Component { static propTypes = { name: React.PropTypes.string.isRequired, errors: React.PropTypes.arrayOf(React.PropTypes.string), layout: React.PropTypes.string, align: React.PropTypes.st...
app/javascript/mastodon/features/explore/suggestions.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import AccountCard from 'mastodon/features/directory/components/account_card'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { ...
node_modules/react-native/Libraries/Modal/Modal.js
odapplications/WebView-with-Lower-Tab-Menu
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-13/shared/Page.js
Brandon-J-Campbell/codemash
import React from 'react'; import styles from './Page.css'; export default function Page({ children }) { return ( <div className={styles.page}> <div className={styles.content}>{children}</div> </div> ); }
src/components/details/SetDetails.js
cpsubrian/redis-explorer
import React from 'react' import pureRender from 'pure-render-decorator' import ImmutablePropTypes from 'react-immutable-proptypes' import clipboard from 'clipboard' import Details from '../../components/details/Details' import Highlight from '../../components/Highlight' import Icon from '../../components/Icon' @pureR...
app/components/HashLink/index.js
transparantnederland/browser
import React from 'react'; import { Link } from 'react-router'; const HashLink = ({ hash, children }) => <Link to={window.location.pathname} hash={'#' + hash} state={{ hash }} > {children} </Link>; HashLink.propTypes = { hash: React.PropTypes.string.isRequired, children: React.PropTypes.node...
stories/Dropdown/ExampleControlled.js
nirhart/wix-style-react
import React from 'react'; import Dropdown from 'wix-style-react/Dropdown'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px', marginBottom: '160px' }; const options = [ {id: 1, value: 'Option 1'}, {id: 2, value: 'Option 2'}, {id: 3, value: 'Option 3'}, ...
src/Parser/Priest/Discipline/Modules/Items/CordOfMaiev.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Wrapper from 'common/Wrapper'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; const debug = true; const PENANCE_COOLDOWN = 9000; // unaffected by Haste /** T...
front/app/index.js
nudoru/React-Starter-3
import 'babel-polyfill'; import 'isomorphic-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import Bootstrap from './js/Bootstrap'; // Bootstrap 4 styles with some variables tweaked require('./sass/index.sass'); // Additional global CSS styles require('./js/theme/GlobalStyles'); // Application c...
client/component/table/row-action.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; import { has_capability } from 'lib/capabilities'; /** * @param {object} props - Component props * @param {RowAction[]} props.actions - Array of actions * @param {boolean} props.disabled */ export function RowActions( props ) { const { actions, disable...
example/pages/toptips/index.js
woshisbb43/coinMessageWechat
import React from 'react'; import {Button, Toast, Toptips} from '../../../build/packages'; import Page from '../../component/page'; class ToptipsDemo extends React.Component { state = { showWarn: false, showSuccess: false, showInfo: false, warnTimer: null, successTimer: nul...
app/containers/contact/AddBySuggest.js
karthik-ir/TotallyNotArbore
// @flow import React from 'react' import { connect } from 'react-redux' import type { Store } from 'utils/types' import AddBySuggest from 'components/contact/AddBySuggest' import * as contactList from 'actions/contactList' import Contact from 'models/Contact' const mapStateToProps = (state: Store) => ({ suggestion:...
src/script/pages/Home.js
neikvon/fbi-template-react
'use strict'; import React from 'react'; import Nav from '../components/Nav'; import '!style!css!sass!autoprefixer!../../style/style.scss'; let Home = React.createClass({ render: function() { document.title = '首页'; return ( <div className="home"> <div className="logo"></div> <Nav /> ...
chapter-06/hoc/src/inheritance/OnlyForLoggedinHOC.js
mocheng/react-and-redux
import React from 'react'; const onlyForLoggedinHOC = (WrappedComponent) => { return class NewComponent extends WrappedComponent { render() { if (this.props.loggedIn) { return super.render(); } else { return null; } } } } export default onlyForLoggedinHOC;
react/features/google-api/components/GoogleSignInButton.native.js
bgrozev/jitsi-meet
// @flow import React from 'react'; import { Image, Text, TouchableOpacity } from 'react-native'; import { translate } from '../../base/i18n'; import AbstractGoogleSignInButton from './AbstractGoogleSignInButton'; import styles from './styles'; /** * The Google Brand image for Sign In. * * NOTE: iOS doesn't hand...
src/svg-icons/image/tag-faces.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTagFaces = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c....
src/components/containers/author-user-list-container.js
HuangXingBin/goldenEast
import React from 'react'; import { Button, AutoComplete, DatePicker, message } from 'antd'; import './user-list-container.css'; import UserListTable from '../views/author-user-list-view.js'; import SearchUserInput from '../views/SearchUserInput.js'; import store from '../../store'; import { connect } from 'react-redux...
packages/bonde-admin-canary/src/components/PageLogged/Header/Tabs.js
ourcities/rebu-client
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Tab as Tabs, TabItem } from 'bonde-styleguide' export const Tab = ({ children, to }) => ( <Link to={to}> <TabItem> {children} </TabItem> </Link> ) Tab.propTypes = { to: PropTypes.string.is...
src/components/Pagination/index.js
cantonjs/re-admin
import React, { Component } from 'react'; import { Pagination as AntdPagination } from 'antd'; import PropTypes from 'utils/PropTypes'; import CursorIndicator from './CursorIndicator'; export default class Pagination extends Component { static propTypes = { store: PropTypes.object.isRequired, }; render() { con...
examples/chatbot/index.js
despairblue/microcosm
import Chat from './components/chat' import Messages from './stores/messages' import Microcosm from 'Microcosm' import React from 'react' import "./style" let app = new Microcosm() app.addStore('messages', Messages) app.listen(function () { React.render(<Chat app={ app } { ...app.state } />, document.getElementBy...
src/shared/pages/Menu/index.js
AlekseyWW/shop-react-ssr
import React from 'react'; import style from './styles.styl'; const Menu = () => <div className={style.Menu}>Menu</div>; export default Menu;
src/svg-icons/image/looks.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
packages/ui-toolkit/src/form/meta.js
yldio/joyent-portal
import { Subscriber } from 'joy-react-broadcast'; import is from 'styled-is'; import PropTypes from 'prop-types'; import React from 'react'; import remcalc from 'remcalc'; import styled from 'styled-components'; import Label from '../label'; const StyledLabel = styled(Label)` ${is('right')` float: right; `}; ...
react-router-tutorial/modules/About.js
guilsa/javascript-stuff
import React from 'react' export default React.createClass({ render() { return <div>About</div> } })
src/components/markdown/htags.js
mnmtanish/react-storybook-story
import React from 'react'; export class H1 extends React.Component { render() { const styles = { fontFamily: 'Arimo, Helvetica, sans-serif', color: '#777', borderBottom: '2px solid #fafafa', marginBottom: '1.15rem', paddingBottom: '.5rem', margin: '1.414rem 0 .5rem', fon...
test/client/app/components/pages/login/test-login.js
LINKIWI/apache-auth
/* global window */ import {browserHistory} from 'react-router'; import Fingerprint from 'fingerprintjs2'; import jsdom from 'jsdom'; import {mount} from 'enzyme'; import React from 'react'; import request from 'browser-request'; import sinon from 'sinon'; import test from 'tape'; import {Login} from '../../../../../...
list/views/ListWrapperView.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; export default class ListWrapperView extends React.Component { static propTypes = { className: PropTypes.string, itemsOrder: PropTypes.oneOf(['asc', 'desc']), search: PropTypes.element, items: PropTypes.array, p...
src/svg-icons/communication/email.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationEmail = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); CommunicationEmai...
app/src/About/pages/AboutPage5.js
wekilledit/portfolio-frontend
import React from 'react'; const AboutPage5 = () => { return ( <div className='subpage-about'> <h3>hobbies</h3> <div className='about-hobbies'> <img className='img-skateboard' src={require('../images/k-grind-nollie-shuvit.jpg')} /> <ul> <li> Skateboarding ...
src/app/components/ribbon/SmallBreadcrumbs.js
backpackcoder/world-in-flames
import React from 'react' import {connect} from 'react-redux' class SmallBreadcrumbs extends React.Component { render() { return ( <ol className="breadcrumb"> { this.props.items.map((it, idx)=> ( <li key={it + idx}>{it}</li> )) } </ol> ) } } c...
packages/react/components/nav-title-large.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7NavTitle extends React.Component { cons...
src/containers/recipes/Listing/ListingView.js
BrownEPTech/brown-ep-startup-ideas-app
/** * Recipe Listing Screen * - Shows a list of receipes * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, ListView, RefreshControl, } from 'react-native'; // Consts and Libs im...
app/javascript/mastodon/features/list_editor/index.js
unarist/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
app/scenes/About.js
alexindigo/ndash
import React, { Component } from 'react'; import { Alert, ScrollView, Text, TouchableOpacity, View } from 'react-native'; import LinkText from '../components/LinkText'; import styles from '../styles'; export default class AboutScene extends Component { resetApp() { Alert.alert( 'reset', 'press [ok...
pages/api/circular-progress.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './circular-progress.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/components/protected/ProtectedPage.js
RanjithNair/FeatureTracker
import React from 'react'; import {Link} from 'react-router'; import checkAuth from '../requireAuth'; const ProtectedPage = () => { return ( <div> <h1>You will only see this page if you are logged in</h1> <Link to="/" activeClassName="active">Home</Link> </div> ); }; export default checkAuth(Pr...
src/containers/App.js
danbovey/Dekt
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import classNames from 'classnames'; import * as configActions from 'actions/config'; import * as lightActions from 'actions/lights'; import Navbar from 'components/Navbar'; import Spinner from ...
client/src/views/HomePage/index.js
dmitrij-borchuk/lms
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/svg-icons/hardware/desktop-mac.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDesktopMac = (props) => ( <SvgIcon {...props}> <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/> </SvgIcon> ); HardwareDesktopM...
tests/fixtures/apps/fluxible-router/components/Page.js
mridgway/react-server
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import PageStore from '../stores/PageStore'; class Page extends React.Component { constructor(props, context) { super(props, context); thi...
src/svg-icons/communication/email.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationEmail = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); CommunicationEmai...
frontend/app/components/Form/Common/Text.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import './Text.css' const { bool, string, func, object } = PropTypes export default class Text extends React.Component { static propTypes = { ariaDescribedby: string, className: string, disabled: bool, error: object, handleChange: fun...
react-flux-mui/js/material-ui/src/svg-icons/action/line-style.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLineStyle = (props) => ( <SvgIcon {...props}> <path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h...
components/mailSharing.js
Yutenko/stories360
import React from 'react' import {Container,Row,Col} from 'react-grid-system' import {deepPurple500,orange500} from 'material-ui/styles/colors' import {translate} from '../client/lang/translation' import Paper from 'material-ui/Paper' import TextField from 'material-ui/TextField' import RaisedButton from 'materia...
packages/icon-builder/tpl/SvgIcon.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '{{{ muiRequireStmt }}}'; let {{className}} = (props) => ( <SvgIcon {...props}> {{{paths}}} </SvgIcon> ); {{className}} = pure({{className}}); {{className}}.displayName = '{{className}}'; {{className}}.muiName = 'SvgIcon'; expor...
packages/slate-react/src/components/leaf.js
6174/slate
import Debug from 'debug' import React from 'react' import Types from 'prop-types' import SlateTypes from 'slate-prop-types' import OffsetKey from '../utils/offset-key' import { IS_FIREFOX } from '../constants/environment' /** * Debugger. * * @type {Function} */ const debug = Debug('slate:leaves') /** * Leaf....
src/components/footer/footer-heading.js
adrienlozano/stephaniewebsite
import React from 'react'; import { defaultProps, compose, setDisplayName } from 'recompose'; import Typography from '~/components/typography'; const enhance = compose( setDisplayName("FooterHeading"), defaultProps({ size: 0.3, component:"h2", color:"#FFF"}) ); export default enhance(Typography);
src/ButtonInput.js
RichardLitt/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
examples/star-wars/js/components/StarWarsRegion.js
SBUtltmedia/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
docs/app/Examples/elements/Button/Variations/ButtonExampleCircularSocial.js
koenvg/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleCircularSocial = () => ( <div> <Button circular color='facebook' icon='facebook' /> <Button circular color='twitter' icon='twitter' /> <Button circular color='linkedin' icon='linkedin' /> <Button circular color='g...
common/components/ide/panels/OptionsPanel.js
ebertmi/webbox
import React from 'react'; import set from 'lodash/set'; import {Button, Input} from '../../bootstrap'; import optionManager from '../../../models/options'; const themeList = {themes: ['vs', 'vs-dark', 'hc-black']}; export default class OptionsPanel extends React.Component { constructor(props) { super(props); ...
docs/app/Examples/elements/Label/Types/LabelExamplePointing.js
koenvg/Semantic-UI-React
import React from 'react' import { Divider, Form, Label } from 'semantic-ui-react' const LabelExamplePointing = () => ( <Form> <Form.Field> <input type='text' placeholder='First name' /> <Label pointing>Please enter a value</Label> </Form.Field> <Divider /> <Form.Field> <Label poin...
client/components/MakeRequest.js
lendr2/lendr2
import React, { Component } from 'react'; import { Router, Route, Link, browserHistory } from 'react-router'; const cookieParser = require('cookie-parser'); class MakeRequest extends Component { constructor(props) { super(props) this.makeRequest = this.makeRequest.bind(this); } makeRequest(event) { ...
packages/material-ui-icons/src/ModeComment.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ModeComment = props => <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z" /> </SvgIcon>; ModeComment = pure(ModeComment); ModeComment.muiName =...
docs/app/Examples/elements/Icon/Variations/IconExampleInvertedColored.js
vageeshb/Semantic-UI-React
import React from 'react' import { Segment, Icon } from 'semantic-ui-react' const IconExampleInvertedColored = () => ( <Segment inverted> <Icon inverted color='red' name='users' /> <Icon inverted color='orange' name='users' /> <Icon inverted color='yellow' name='users' /> <Icon inverted color='olive'...
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js
voidException/actor-platform
import _ from 'lodash'; import Immutable from 'immutable'; import keymirror from 'keymirror'; import React from 'react'; import { Styles, TextField, FlatButton } from 'material-ui'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import ContactStore from 'stores/ContactStore'; import Cont...
src/js/modules/DiagramTitle.js
fredyagomez/reactjs-D3-V4-grommet
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import * as d3 from 'd3'; export default class DiagramV2 extends Component { constructor (props) { super(props); this.state = {color: 'white', x: props.letterx, y: props.lettery, flag_tooltip: false}; } componentWillAp...
js/components/App.js
iamchenxin/relay-starter-kit
import React from 'react'; import Relay from 'react-relay'; class App extends React.Component { render() { return ( <div> <h1>Widget list</h1> <ul> {this.props.viewer.widgets.edges.map(edge => <li key={edge.node.id}>{edge.node.name} (ID: {edge.node.id})</li> ...
src/components/notfound.js
martezconner/react_vidhub
import React from 'react'; const NotFound = () => ( <div> <p className="not-found">Sorry, but the page you were trying to view does not exist.</p> <div className="big"> <h1 className="big-title">404</h1> </div> </div> ); export default NotFound;
examples/auth-flow/app.js
stshort/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link, withRouter } from 'react-router' import withExampleBasename from '../withExampleBasename' import auth from './auth' const App = React.createClass({ getInitialState() { return { loggedIn: auth.loggedI...
node_modules/react-bootstrap/es/DropdownMenu.js
ProjectSunday/rooibus
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _Array$from from 'babel-runtime/core-js/array/from'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtim...
web/static/js/utils.js
ryo33/Yayaka19
import React from 'react' import { Segment, Icon } from 'semantic-ui-react' import { postPage } from './pages.js' import { hashtag } from './global.js' export const compareInsertedAtDesc = (a, b) => { if (a.inserted_at > b.inserted_at) { return -1 } else if (a.inserted_at < b.inserted_at) { return 1 } ...
src/components/Site/App.js
zjuasmn/sketch-react
import React from 'react' import Document from '../Document/Document' import "./index.css"; import fetch from 'isomorphic-fetch' import Loading from './Loading' import qs from 'querystring' // https://github.com/github/fetch/issues/89#issuecomment-256610849 function futch(url, opts = {}, onProgress) { return new Pro...
src/components/Header/Header.js
churel/pricechecker
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
index.js
rastapasta/react-native-gl-model-view
import React, { Component } from 'react'; import { requireNativeComponent, View } from 'react-native'; import PropTypes from 'prop-types'; class GLModelView extends Component { render() { return <RNGLModelView {...this.props} />; } } GLModelView.propTypes = { ...View.propTypes, animate: PropTypes.bool, ...
client/components/SortableTree.js
XuHaoJun/tiamat
import React from 'react'; import Loadable from 'react-loadable'; function Loading() { return <div>Loading...</div>; } const SortableTree = Loadable({ loader: async () => { if (process.browser) { const modules = await Promise.all([ import(/* webpackChunkName: "react-dnd-touch-backend" */ 'react-...
examples/universal/client/index.js
splendido/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from '../common/store/configureStore' import App from '../common/containers/App' const preloadedState = window.__PRELOADED_STATE__ const store = configureStore(preloadedStat...
site/components/Cover.js
Reggino/react-dnd
import React from 'react'; import './Cover.less'; export default class Cover { render() { return ( <div className="Cover"> <div className="Cover-header"> <p className="Cover-description"> Drag and Drop for React </p> </div> </div> ); } }
src/server.js
louisukiri/react-starter-kit
/** * 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 path from 'path'; import express from 'express';...
frontend/src/NumberFormat.js
googleinterns/step78-2020
import React from 'react'; import NumberFormat from 'react-number-format'; import PropTypes from 'prop-types'; export function NumberFormatCustom(props) { const {inputRef, onChange, ...other} = props; return ( <NumberFormat {...other} getInputRef={inputRef} onValueChange={(values) => { ...
actor-sdk/sdk-web/src/components/Activity.react.js
ljshj/actor-platform
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { shouldComponentUpdate } from 'react-addons-pure-render-mixin'; import { Container } from 'flux/utils'; import { PeerTypes } from '../constants/ActorAppConstants'; import ActivityStore from '../stores/Act...
App/Client/node_modules/react-router/modules/Route.js
qianyuchang/React-Chat
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './PropTypes' const { string, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to the * page when the URL matches a gi...
client/index.js
azproduction/node-mc
import React from 'react'; import FluxComponent from 'flummox/component'; import ClientFlux from './flux'; import App from './app'; import TuiDom from '../lib/tui-dom'; import io from 'socket.io-client'; window.React = React; let socket = io({ transports: ['websocket', 'polling'] }); let flux = new ClientFlux();...
js/components/NewsTab.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; var moment = require('moment'); import { actions } from 'react-native-navigation-redux-helpers'; import { Image, WebView, AsyncStorage } from 'react-native'; import { Container, Header, Subtitle, Title, Content, H2, Button, Footer, ...
src/components/svg/Ox.js
JoeTheDave/onitama
import PropTypes from 'prop-types'; import React from 'react'; export const Ox = ({ fillColor }) => ( <svg width="130px" height="130px" viewBox="0 0 545 760" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0, 760) scale(0.1, -0.1)" fill={fillColor} stroke="none"> <path d="M2780 7588 c-52 -9 -9...
misc/webgui/src/components/Statedevice.js
ChainsAutomation/chains
import React from 'react'; // Per service render export default class StateDevice extends React.Component { render() { /* console.log("StateDevice"); console.log(this.props); //*/ const ddata = this.props.ddata; let devData = []; for (var dev in ddata['data']) { const dItem = dev; ...
example/App/Pulse.js
nkbt/react-motion-loop
import React from 'react'; import {spring, presets} from 'react-motion'; import {ReactMotionLoop} from '../../src'; export const Pulse = () => ( <ReactMotionLoop styleFrom={{ width: 0, height: 0, borderRadius: 0 }} styleTo={{ width: spring(100, presets.stiff), height: sprin...
src/Settings/FirstDayOfWeekDialog.js
mkermani144/wanna
import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton'; import FlatButton from 'material-ui/FlatButton'; import { blue500, grey50 } from 'material-ui/styles/colors'; class FirstDayOfWeekDialog extends Component { hand...
src/svg-icons/editor/attach-money.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorAttachMoney = (props) => ( <SvgIcon {...props}> <path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3....
4-routing/src/index.js
pirosikick/react-hands-on-20171023
import React from 'react'; import ReactDOM from 'react-dom'; import * as firebase from 'firebase'; import firebaseConfig from './firebaseConfig.json'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; // firebaseを初期化 // firebaseのコンソールに表示されるJSONをコピーしてくる firebase...
examples/huge-apps/components/App.js
dalexand/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
src/components/DataTableSkeleton/DataTableSkeleton.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 PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { settings } from 'carbon-componen...
src/components/SignereLogin.js
Korkemoms/amodahl.no
// @flow import React from 'react' import '../MyContent.scss' import '../App.scss' import MyHeader from '../components/MyHeader' import DocumentTitle from 'react-document-title' import queryString from 'query-string' import { Grid, Table, PageHeader, Button } from 'react-bootstrap' /* Purely presentational c...
src/Divider/Divider.js
hai-cea/material-ui
import React from 'react'; import PropTypes from 'prop-types'; const Divider = (props, context) => { const { inset, style, ...other } = props; const { baseTheme, prepareStyles, } = context.muiTheme; const styles = { root: { margin: 0, marginTop: -1, marginLeft: ins...
src/js/AppContainer.js
gabsprates/facomp-quiz
import React, { Component } from 'react'; import { HashRouter as Router, Route } from 'react-router-dom'; import io from 'socket.io-client' import QuizBox from './Components/QuizBox'; import QuestionContainer from './Components/Question/QuestionContainer'; import config from '../../config/config'; import Requests fro...
src/interface/common/CyclingVideo.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class CyclingVideo extends React.PureComponent { static propTypes = { videos: PropTypes.arrayOf(PropTypes.string).isRequired, randomValue: PropTypes.number, }; constructor(props) { super(props); const randomValue = props.randomValue ...
packages/material-ui-icons/src/ViewArray.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z" /></g> , 'ViewArray');
imports/ui/components/manage/manage-users-items.js
irvinlim/free4all
import React from 'react'; import Subheader from 'material-ui/Subheader'; import { GridList, GridTile } from 'material-ui/GridList'; import Paper from 'material-ui/Paper'; import ReactList from 'react-list'; import { Card, CardActions, CardText, CardHeader, CardTitle } from 'material-ui/Card'; import PaperCard from '.....
src/components/ui-elements/PTPanel/PTPanel.js
PulseTile/PulseTile-React
import React from 'react'; import PropTypes from 'prop-types'; import { Col, Panel } from 'react-bootstrap'; import { bootstrapUtils } from 'react-bootstrap/lib/utils'; bootstrapUtils.addStyle(Panel, 'secondary'); const PTPanel = props => <Col className={props.className}> <Panel header={props.header} bsStyle="secon...
src/svg-icons/editor/format-strikethrough.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatStrikethrough = (props) => ( <SvgIcon {...props}> <path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/> </SvgIcon> ); EditorFormatStrikethrough = pure(EditorFormatStrikethrough); Edit...
bai/src/components/WorkshopPageHeader/index.js
blackinai/blackinai.github.io
import { Container } from '@material-ui/core/'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import React from 'react'; const styles = (theme) => ({ root: { flexGrow: 1 }, container: { marginTop: theme.spacing(3), marginBottom: theme.spa...
src/packages/@ncigdc/modern_components/SampleType/SampleType.js
NCI-GDC/portal-ui
import React from 'react'; import { get } from 'lodash'; import GreyBox from '@ncigdc/uikit/GreyBox'; export default ({ repository, loading }) => loading ? ( <GreyBox style={{ width: '100px' }} /> ) : ( get( repository, 'cases.hits.edges[0].node.samples.hits.edges[0].node.sample_type', '...
src/ModalTitle.js
brynjagr/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
node_modules/react-bootstrap/es/CarouselItem.js
premcool/getmydeal
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/pages/index.js
MozillaDevelopers/playground
import React from 'react'; // components import Hero from '../components/layout/Hero'; import DownloadWhite from '../components/DownloadWhite'; import TutorialList from '../components/TutorialList'; import DownloadLink from '../components/DownloadLink'; // photos import logo from '../components/img/ff-logo.png'; con...
smsgw/static/js/app/app.react.js
VojtechBartos/smsgw
'use strict'; import React from 'react'; import {RouteHandler} from 'react-router'; import {Map} from 'immutable'; import * as actions from '../users/actions'; import * as store from '../users/store'; import {flash} from '../flashMessages/actions'; import Component from '../components/component.react'; import Spinner ...
app/javascript/mastodon/features/ui/components/actions_modal.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
plugins/react/frontend/components/common/DeleteConfirmationButtons/index.js
carteb/carte-blanche
/* eslint-disable max-len */ /** * DeleteConfirmationButtons * * Shows buttons for delete confirmation */ import React from 'react'; import styles from './style.css'; class DeleteConfirmationButtons extends React.Component { confirmDeleteVariation = (e) => { e.preventDefault(); this.props.confirmDeleteVaria...
src/components/Footer/index.js
slightlytyler/bernie-tax-viz
import React, { Component } from 'react'; import cssModules from 'react-css-modules'; import hearticon from 'assets/hearticon.svg'; import twittericon from 'assets/twitter.svg'; import styles from './styles.styl'; @cssModules(styles, { allowMultiple: true, errorWhenNotFound: false }) export default class Footer extend...