path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/editor/format-list-numbered.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListNumbered = (props) => ( <SvgIcon {...props}> <path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/...
client/src/components/Body/Expressjs.component.js
arpitgo4/Express-React-Scaffold
import React from 'react'; import { Link } from 'react-router'; export default class ExpressJS extends React.Component { render(){ return ( <div className="container"> <p className="lead">ExpressJS</p> <p>ExpressJS is the server side framework for NodeJS platform.</p> </div> ) } }
actor-apps/app-web/src/app/components/common/Stateful.react.js
lzpfmh/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import { AsyncActionStates } from 'constants/ActorAppConstants'; export class Root extends React.Component { static propTypes = { className: React.PropTypes.string, currentState: React.PropTypes.num...
admin/client/App/shared/FlashMessage.js
dvdcastro/keystone
/** * A single flash message component. Used by FlashMessages.js */ import React from 'react'; import { Alert } from 'elemental'; const FlashMessage = React.createClass({ propTypes: { message: React.PropTypes.oneOfType([ React.PropTypes.object, React.PropTypes.string, ]).isRequired, type: React.PropTyp...
client/src/components/formHelpers/BlockSaveWrapper.js
pahosler/freecodecamp
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { children: PropTypes.node }; const style = { padding: '0 15px' }; function BlockSaveWrapper({ children }) { return <div style={style}>{children}</div>; } BlockSaveWrapper.displayName = 'BlockSaveWrapper'; BlockSaveWrapper.propTy...
src/components/Reset.js
romagny13/react-form-validation
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { omit, clone } from '../helpers/util'; /** Creates a button that allows resetting to initial state. */ class Reset extends Component { constructor(props) { super(props); this.rest = omit(props, ['initialState',...
frontend/src/components/eois/details/applications/applicationSummary/reviewContent/reviewContent.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import Grid from 'material-ui/Grid'; import Divider from 'material-ui/Divider'; import GridColumn from '../../../../../common/grid/gridColumn'; import Reviews from './reviews'; import TotalScore from './reviewTotalScore'; const ReviewContent = (props) => ...
src/svg-icons/action/play-for-work.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPlayForWork = (props) => ( <SvgIcon {...props}> <path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/> </SvgIcon> ); ActionPlayForWork ...
app/containers/AboutView/FacebookIcon.js
juanda99/arasaac-frontend
import React from 'react' // import { black } from 'material-ui/styles/colors' import Facebook from 'components/SocialLogin/icons/svg/facebook' const FacebookIcon = () => ( <Facebook color='black' /> ) export default FacebookIcon
src/client.js
prakash-u/react-redux
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { applyRouterMiddleware, Router, browserHistory, match } from 'react-router'; import { bindActionCreators } from 'redux';...
js/db/SQLite.js
helengray/XiFan
import React from 'react'; import SQLiteStorage from 'react-native-sqlite-storage'; SQLiteStorage.DEBUG(true); var database_name = "xifan.db"; var database_version = "2.0"; var database_displayname = "MySQLite"; var database_size = -1; var db; const Collection_TABLE_NAME = "Collection";//收藏表 const History_TABLE_NAME =...
src/js/components/Symbol.js
MarcusWasTaken/ArmelloCards
import React from 'react' import cx from 'classnames' const Symbol = ({ name, active, onClick }) => ( <button key={name} className={cx('btn btn-default', { active: active })} value={name} onClick={onClick('symbol')} > {name} </button> ) export default Symbol
test/helpers.js
mxc/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...
techCurriculum/ui/solutions/4.2/src/components/Card.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * 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...
src/js/components/icons/base/BrandGooglePlay.js
kylebyerly-hp/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/containers/Admin/Reports/FailureCampaigns.js
EncontrAR/backoffice
import React from 'react'; import StatusReport from './../../../components/admin/reports/campaignStatusReport'; import reportActions from '../../../redux/report/actions'; import { connect } from 'react-redux'; const title = 'Lista de campañas no exitosas' const { indexStatusCampaigns } = reportActions; export class ...
sub-packs/themes/zealder-default-theme/src/components/Grid.js
Zealder/zealder-cms
// @flow import React from 'react'; import { Row, Col } from 'react-bootstrap'; import { getComponent } from '../routes/'; export default class Grid extends React.Component { render() { const { scContent, verticalAlign } = this.props.content; // css class let className = this.props.content.className; ...
src/components/Footer/Footer.js
anvk/eurocup2016-bestpicks
import './footer.less'; import React, { Component } from 'react'; import { author } from '../../../package.json'; class Footer extends Component { render() { return ( <footer className="footer"> <div className="container"> <p className="text-muted"> {'made with love by '} ...
src/js/components/startUpScreen.js
GarrettEstrin/windows.garrettestrin.com
import React, { Component } from 'react'; class StartUpScreen extends Component { constructor(props){ super(props); this.state = { fadeStartup: false }; } componentDidMount() { var audio = new Audio('audio/windows-95-startup.mp3'); audio.play(); setTimeout( function() { this...
app/jsx/course_wizard/ChecklistItem.js
djbender/canvas-lms
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
app/app.js
iFatansyReact/react-boilerplate-imagine
/** * 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...
packages/vx-demo/pages/stacked-areas.js
Flaque/vx
import React from 'react'; import Show from '../components/show'; import StackedAreas from '../components/tiles/stacked'; export default () => { return ( <Show component={StackedAreas} title="Stacked Areas" margin={{ top: 0, left: 0, right: 0, bottom: 10, }}> {`import React from 'reac...
app/javascript/components/Schedule/TimeSlotInfo.js
ruby-no-kai/cfp-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class TimeSlotInfo extends Component { constructor(props) { super(props); } render() { const { slot, tracks } = this.props; const slotTrack = tracks.find((track) => track.id === slot.track_id); const bkgColor = slotT...
js/component/CustomButton.js
codeestX/MoeFM
/** * @author: Est <codeest.dev@gmail.com> * @date: 2017/5/7 * @description: */ import React from 'react' import { TouchableNativeFeedback, TouchableOpacity, Platform, } from 'react-native' export default (props) => { if(Platform.OS === 'android') { return <TouchableNativeFeedback ...
src/icons/ScreenShareIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ScreenShareIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 36c2.2 0 3.98-1.8 3.98-4L44 12c0-2.22-1.8-4-4-4H8c-2.22 0-4 1.78-4 4v20c0 2.2 1.78 4 4 4H0v4h48v-4...
src/svg-icons/hardware/security.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSecurity = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/> </SvgIcon> ); Hardwa...
app/jsx/move_item/MoveItemTray.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
src/components/DataTable/DataTable.js
terryli1643/daoke-react-c
import React from 'react' import PropTypes from 'prop-types' import { Table } from 'antd' import { request } from '../../utils' import lodash from 'lodash' import './DataTable.less' class DataTable extends React.Component { constructor (props) { super(props) const { dataSource, pagination = { showSizeC...
client/app/components/RestaurantPage/RestaurantHeader/index.js
maekks/menu-plus
import React from 'react'; import Paper from 'material-ui/Paper'; class RestaurantHeader extends React.PureComponent { render(){ const { restaurant } = this.props; const { name, coverImgUrl, street1, city, state, zipcode, rating, phone } = restaurant; return( <div> <Paper> <h1>{na...
admin/client/App/elemental/ScreenReaderOnly/index.js
andrewlinfoot/keystone
import React from 'react'; import { css } from 'glamor'; function ScreenReaderOnly ({ className, ...props }) { props.className = css(classes.srOnly, className); return <span {...props} />; }; const classes = { srOnly: { border: 0, clip: 'rect(0,0,0,0)', height: 1, margin: -1, overflow: 'hidden', paddi...
packages/babel-plugin-transform-react-pure-annotations/test/fixtures/react/memo/input.js
babel/babel
import React from 'react'; const Comp = React.memo((props) => null);
app/Pages/SettlementViewOld/index.js
jd-daojia/DaojiaRN
/* @flow */ import React, { Component } from 'react'; import { View, Text, StyleSheet, } from 'react-native'; export default class SettlementViewOld extends Component { render() { return ( <View style={styles.container}> <Text>I'm the SettlementViewOld component</Text> </View> ); ...
src/js/details/components/app.js
ocamler/expense-www
import React, { Component } from 'react'; import Location from './location_info'; import MethodPayments from './method_payments'; import Categories from './categories'; import Amounts from './amounts'; import Controls from './controls'; export default class extends Component { render() { return ( <div> ...
fields/types/markdown/MarkdownField.js
vokal/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Remove dependency on jQuery */ // Scope jQuery and the bootstrap-markdown editor so it will mount var $ = require('jquery'); require('./lib/bootstrap-markdown'); // Append/remo...
packages/material-ui-icons/legacy/Battery60Sharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v7h10V4z" /><path d="M7 11v11h10V11H7z" /></React.Fragment> , 'Battery60Sharp');
src/Table.js
mxc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, getDefaultProps() { ...
src/svg-icons/hardware/desktop-mac.js
andrejunges/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...
src/reading/views/ReadingTabList.js
razor1895/react-native-redux-one
import React, { Component } from 'react'; import { View, StyleSheet, Image, ListView } from 'react-native'; import { connect } from 'react-redux'; import Immutable from 'immutable'; import StoryCard from '../../components/StoryCard'; import { search, user } from '../../images'; import { requestReadingFeedsList ...
src/components/AwesomeButton/index.js
rcaferati/react-awesome-button
import React from 'react'; import PropTypes from 'prop-types'; import { setCssEndEvent } from 'web-animation-club'; import { classToModules, getClassName, createBubbleEffect, toggleMoveClasses, } from '../../helpers/components'; const ROOTELM = 'aws-btn'; const ANIMATION_DELAY = 100; /** TODO: Extend the setu...
src/components/FullMatch.js
kangarang/mp-react
import React from 'react' // import MatchEvents from './MatchEvents' export default(props) => { const styles = { container: { display: 'flex', justifyContent: 'space-around', textAlign: "left", padding: ".25em .25em 1em .25em" }, match: { color: '#262626', display: 'flex', flexDirection: '...
wrappers/toml.js
halfatheist/halfatheist.github.io
import React from 'react' import toml from 'toml-js' import DocumentTitle from 'react-document-title' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return (...
node_modules/react-router/es6/Redirect.js
jwhite4870/moreReactRedux
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
code/frontend/src/components/Navbar/index.js
CPSC319-2017w1/coast.the-terminal
import React from 'react'; import PropTypes, { instanceOf } from 'prop-types'; import { connect } from 'react-redux'; import { withCookies, Cookies } from 'react-cookie'; import { switchView } from '../../actions/main-actions.js'; import NavbarComponent from './Navbar.jsx'; const mapStateToProps = (state, ownProps) =>...
examples/src/components/CustomRenderField.js
vomchik/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
alihalabyah/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
docs/app/Examples/collections/Form/Shorthand/FormExampleFieldLabelElement.js
mohammed88/Semantic-UI-React
import React from 'react' import { Checkbox, Form } from 'semantic-ui-react' const FormExampleFieldLabelElement = () => ( <Form> <Form.Field control={Checkbox} label={{ children: 'I agree to the Terms and Conditions' }} /> </Form> ) export default FormExampleFieldLabelElement
src/containers/book_detail.js
gui-santos/exp-redux
import React, { Component } from 'react'; import { connect } from 'react-redux'; //import { selectBook } from '../actions/index'; //import { bindActionCreators } from 'redux'; class BookDetail extends Component { render() { if (!this.props.book) { return <div>Select a book</div> } return ( <...
examples/drawing/app.js
boundlessgeo/sdk
/** Demo of using the drawing, modify, and select interactions. * */ import {createStore, combineReducers} from 'redux'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import RendererSwitch from '../rendererswitch'; import SdkMapReducer from '@boundlessgeo/sdk/r...
src/Components/Counter/index.js
taymoork2/react-hot-boilerplate
import React, { Component } from 'react'; export default class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0, }; } // Copied over from React-Hot-Boilerplate // So this.bind will stay as an example of ES5 and ES6 playing nicely componentDidMount() ...
src/js/components/LazyLoadListener.js
jaedb/Iris
import React from 'react'; import { throttle } from '../util/helpers'; import Loader from './Loader'; export default class LazyLoadListener extends React.Component { constructor(props) { super(props); this.state = { listening: (!!this.props.loadKey), loadKey: this.props.loadKey, }; ...
src/@ui/inputs/Switch/Switch.stories.js
NewSpring/Apollos
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import FlexedView from '@ui/FlexedView'; import Switch from './'; storiesOf('Inputs', module) .add('Switch', () => ( <FlexedView> <Switch label="Some label text" /> </FlexedView> ));
examples/express-nunjucks-postcss-unstyled-react-webpack-mocha-sqlite-twitter/app/components/Footer.js
sahat/boilerplate
import React from 'react'; class Footer extends React.Component { render() { return ( <footer> <p>© 2016 Company, Inc. All Rights Reserved.</p> </footer> ); } } export default Footer;
fixtures/fiber-debugger/src/Fibers.js
chenglou/react
import React from 'react'; import {Motion, spring} from 'react-motion'; import dagre from 'dagre'; // import prettyFormat from 'pretty-format'; // import reactElement from 'pretty-format/plugins/ReactElement'; function getFiberColor(fibers, id) { if (fibers.currentIDs.indexOf(id) > -1) { return 'lightgreen'; }...
src/components/AsyncComponent.js
marksauter/reactd3
/* @flow */ import React, { Component } from 'react'; import { Dimmer, Loader, Segment } from 'semantic-ui-react'; const asyncComponent = (importComponent: Function) => { class AsyncComponent extends Component { state = { component: () => null, }; componentDidMount() { (async () => { ...
src/Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/PrototypePersonnelDecimator.js
enragednuke/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemDamageDone from 'Main/ItemDamageDone'; /** * Prototype Personnel Decimator - * Equip: Your ranged attacks ...
tests/__mocks__/rc-util/lib/Portal.js
icaife/ant-design
import React from 'react'; export default class Portal extends React.Component { componentDidMount() { this.createContainer(); } createContainer() { this.container = true; this.forceUpdate(); } render() { const { children } = this.props; if (this.container) { return children; ...
src/js/components/Dashboard/List.js
grommet/grommet-cms-boilerplate
import React from 'react'; import { Link } from 'react-router'; import Box from 'grommet/components/Box'; import Button from 'grommet/components/Button'; import Trash from 'grommet/components/icons/base/Trash'; import Heading from 'grommet/components/Heading'; export default function List(props) { const postsList = ...
src/svg-icons/action/perm-media.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermMedia = (props) => ( <SvgIcon {...props}> <path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 ...
WebpackProject/src/components/Home.js
sauceSquatch/webpack-learning
import React from 'react'; import Header from './Header'; const Home = ({ children }) => { return ( <div className="container"> <Header /> {children} </div> ); }; export default Home;
client/src/templates/input-field.js
brandiqa/open-lims
import React from 'react'; import { observer } from 'mobx-react'; import { Form } from 'semantic-ui-react'; import classnames from 'classnames'; export default observer(({field}) => ( <Form.Field className={classnames({error:field.error})}> <label htmlFor={field.id}> {field.label} {field.rules.indexOf('req...
src/components/CropperFace/index.js
lapanoid/redux-cropper
import React from 'react'; import PureComponent from 'react-pure-render/component'; import CSSModules from "react-css-modules"; import styles from './styles.module.scss'; class CropperFace extends PureComponent { render() { // const {cropBoxMovable, highlight, movable} = this.props; // if (!cropBoxMovable) { ...
client/components/layout/nav.js
ShannChiang/USzhejiang
import React from 'react'; import {Link} from 'react-router'; export default (props) => ( <nav className="navbar navbar-default navbar-fixed-top"> <div className="container"> <div className="navbar-header"> <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="coll...
src/admin/components/SchemaForm/MarkdownField.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '@mui/material/Typography'; import FormHelperText from '@mui/material/FormHelperText'; import Markdown from '../../../components/Markdown'; function MarkdownField({ className, schema, value, onChange, }) { return ( <div class...
server/sonar-web/src/main/js/apps/project-admin/key/UpdateForm.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/icons/BusinessCenterIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class BusinessCenterIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M20 32v-2H6.02L6 38c0 2.22 1.78 4 4 4h28c2.22 0 4-1.78 4-4v-8H28v2h-8zm20-18h-8.02v-4l-4-4h-8L16 10...
app/components/TableMenu/MenuItem.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import Link from '../Link'; import WithLoading from '../WithLoading'; import { ItemWrapper, ItemIcon, ItemTitle, LinkWrapper, } from './styles'; const MenuItem = ({ item, ...props }) => { const Component = item.onClick ? ItemWrapper : Link; const...
app/components/InputField/index.js
vlastoun/picture-uploader-crud
import React from 'react'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; /* eslint-disable react/prefer-stateless-function*/ class InputField extends React.Component { render() { const { fullWidth, rows, multiLine, input, label, type, serverError, meta: { touched, error } } =...
node_modules/react-native-mock/src/components/TouchableNativeFeedback.js
niukui/gitpro
import React from 'react'; import TouchableWithoutFeedback from './TouchableWithoutFeedback'; const TouchableNativeFeedback = React.createClass({ propTypes: { ...TouchableWithoutFeedback.propTypes, background: React.PropTypes.object }, statics: { SelectableBackground() {}, SelectableBackground...
src/views/admin.js
dreitagebart/crispyScrum
import _ from 'lodash' import React from 'react' import faker from 'faker' import { userCreate, taskCreate } from '../actions' import { Button, Row, Col } from 'antd' import { connect } from 'react-redux' import * as constants from '../constants' @connect((store, props) => { const { users, boards, sprints } = store....
docs/app/Examples/collections/Form/Content/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 FormTypesExamples = () => ( <ExampleSection title='Content'> <ComponentExample title='Field' description='A fie...
packages/react-events/src/Scroll.js
VioletLife/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactResponderEvent, ReactResponderContext, } from 'shared/ReactTypes'; import {UserBlockingEvent} f...
src/docs/examples/Label/ExampleRequired.js
emanualjade/react-jade
import React from 'react'; import Label from 'ps-react/Label'; /** Required label */ export default function ExampleRequired() { return <Label htmlFor="test" label="test" required /> }
react-ui/src/components/Course/CourseCategory.js
michaelcheng429/bestactprep
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import { partial } from 'lodash'; import PRACTICE_TESTS from 'app/constants/practice-tests'; import COURSE_MAPPINGS from 'app/constants/course-mappings'; import Video from 'app/...
examples/cordova/src/components/PageTwo.js
devgeeks/react-animated-views
import React from 'react'; import animateView from 'react-animated-views'; import '../css/pagetwo.css'; const PageTwo = React.createClass({ displayName: 'PageTwo', propTypes: { pop: React.PropTypes.func, push: React.PropTypes.func, style: React.PropTypes.object, }, goToPageThree(e) { const ...
src/containers/DevTools/DevTools.js
gregsabo/beanstalk-raining-in-belgrade
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q" defaultIsVisible={fal...
src/client/components/UserHeaderLoading.js
busyorg/busy
import React from 'react'; import './UserHeaderLoading.less'; const UserHeaderLoading = () => ( <div className="UserHeaderLoading"> <div className="UserHeaderLoading__container"> <div className="ant-card-loading-block UserHeaderLoading__avatar" style={{ width: '100px', height: '100px' }} ...
tests/Rules-isAlpha-spec.js
sdemjanenko/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
pootle/static/js/stats.js
fabada/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import $ from 'jquery'; import React from 'react'; import...
src/modules/new/index.js
2941972057/flower-react
/** * Created by dllo on 17/8/23. */ import React from 'react' import ReactDOM from 'react-dom' import New from './New' ReactDOM.render( <New />, document.getElementById('app') )
src/index.js
Open-Seat-Philly/open-seat
import { render } from 'react-dom'; import React from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Navigation from './components/Navigation'; import Footer from './components/Footer'; import MapPage from './pages/MapPage'; import ResourcesPage from './pages/ResourcesPage'; import R...
client/src/components/dashboard/Profile/Public/LocationSteps.js
FCC-Alumni/alumni-network
import { CenterAlignedWrapper } from '../../../../styles/style-utils'; import propTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; const Flag = styled.a ` width: 40px; height: 40px; margin-bottom: 5px; `; const Steps = ({ personal }) => { return( <div className="...
packages/node_modules/@webex/react-component-error-display/src/index.js
adamweeks/react-ciscospark-1
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; const propTypes = { actionTitle: PropTypes.string, onAction: PropTypes.func, secondaryTitle: PropTypes.string, title: PropTypes.string.isRequired, transparent: PropTypes.boo...
react/src/TabList.js
mswieboda/tabster
import React from 'react'; import TabLink from './TabLink'; import './TabList.scss'; function TabList({tabs, renderTabText, renderEmpty}) { if (!tabs) return(<p>loading...</p>); if (!tabs.length && renderEmpty) return renderEmpty(); return( <ul className="tab-list"> {tabs.map((tab, index) => { ...
complete-example/client/src/components/presentation/cart/cart-button.js
jpaulptr/ecom-react
import React from 'react'; import PropTypes from'prop-types'; import Button from '../form-controls/button'; import Input from '../form-controls/input'; class CartButton extends React.Component { constructor(props) { super(props); this.clickHandler = this.clickHandler.bind(this); this.change...
js/app.js
ryantang333/dashboard-prototype
/** * * app.js * * This is the entry file for the application, mostly just setup and boilerplate * code. Routes are configured at the end of this file! * */ // Load the ServiceWorker, the Cache polyfill, the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!../serviceworker.js'; import 'f...
app/components/NotFoundPage/index.js
thebakeryio/openmic
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; export function NotFound() { return ( <h1>404, yo</h1> ); } export default NotFound;
src/app/components/modals/SaveSimulationModal/SaveSimulationModal.js
tvarner/PortfolioApp
import React from 'react'; import Modal from '../../utilComponents/react-modal/lib/index'; export default class LoadSimulationModel extends React.Component { render () { const _onRequestClose = this.props.clearActiveModal; return ( <Modal style={{ overlay: { backgroundColor: 'papayawhip' }...
views/decoration_toggle.js
RyanTech/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...
src/RedialContainer.js
dlmr/react-router-redial
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import getRoutePath from './util/getRoutePath'; export default class RedialContainer extends Component { static displayName = 'RedialContainer'; static propTypes = { children: PropTypes.element.isRequired, routerProps: PropTypes...
node_modules/react-router/es6/Link.js
UpStage-Community/upstage-web
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 = {...
src/components/ranking-badge-label.js
ronlobo/building-os-charts
import React from 'react'; export default class RankingBadgeLabel extends React.Component { static propTypes = { radius: React.PropTypes.number.isRequired, text: React.PropTypes.string.isRequired, } static defaultProps = { radius: 0, text: '', } render() { return ( <text ...
spec/javascripts/jsx/move_item/MoveSelectSpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
src/components/Contentful/Alert/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import typy from 'typy' import LibMarkdown from 'components/LibMarkdown' import styles from './style.module.css' const Alert = ({ alerts, hiddenIds, clearHiddenAlerts, hideAlert }) => { // Only allow hiding if the function was passed in (I.e. only for gl...
TalkToParent/parent.js
jennselby/ReactNativeExamples
// Ideas from http://andrewhfarmer.com/component-communication/ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View } from 'react-native'; import Child from './child.js'; export default class Parent extends Component { overflowOnes() { this.tens.addOne(); } overflowTens()...
index.android.js
CarterTsai/ListApp
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import Home from "./app/page/Home"; import Detail from "./app/page/Detail"; import { AppRegistry, StyleSheet, View, Navigator, Text, TouchableHighlight, } from 'react-native'; ...
app/javascript/mastodon/features/pinned_statuses/index.js
rutan/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
src/features/DocumentationModal/ExitButton.js
erhathaway/cellular_automata
import React from 'react'; import styled from 'react-emotion'; import ReactRouterPropTypes from 'react-router-prop-types'; import { router as routerService } from '../../services'; const Container = styled('div')` position: relative; height: 70px; display: flex; justify-content: center; align-items: center;...
webapp-src/src/Footer/PlayerSelector.js
babelouest/taliesin
import React, { Component } from 'react'; import { DropdownButton, MenuItem } from 'react-bootstrap'; import StateStore from '../lib/StateStore'; import i18n from '../lib/i18n'; class PlayerSelector extends Component { constructor(props) { super(props); this.state = {player: props.player, loaded: false, currentL...
src/svg-icons/image/wb-auto.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbAuto = (props) => ( <SvgIcon {...props}> <path d="M6.85 12.65h2.3L8 9l-1.15 3.65zM22 7l-1.2 6.29L19.3 7h-1.6l-1.49 6.29L15 7h-.76C12.77 5.17 10.53 4 8 4c-4.42 0-8 3.58-8 8s3.58 8 8 8c3.13 0 5.84-1.81 7.1...
__tests__/component.js
Bestbrains/refract
import React, { Component } from 'react'; import { Text, Button, View } from 'react-native'; export class TestScreen extends Component { static staticProperty = { property: "static" }; static otherStaticProperty = { hello: "World" }; constructor() { super(); } componentDidMount() { ...