path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/PageHeader.js
zanjs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
src/components/Common/RadioInputField.js
oraclesorg/ico-wizard
import React from 'react'; import '../../assets/stylesheets/application.css'; export const RadioInputField = (props) => { const inputs = props.items .map((item, index) => ( <label className="radio-inline" key={index}> <input type="radio" checked={props.selectedItem === item.valu...
src/containers/Asians/Published/BreakRounds/ViewMatchUps/SmallMatchUps/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import withStyles from 'material-ui/styles/withStyles' import Card, { CardHeader } from 'material-ui/Card' import List, { ListItem, ListItemText } from 'material-ui/List' import Divider from 'material-ui/Divider' const styles = theme => ({ root: ...
wrappers/md.js
karolklp/slonecznikowe2
import React from 'react' import 'css/markdown-styles.css' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <...
src/cms/preview-templates/ResumePagePreview.js
eejdoowad/dawoodjee.com
import React from 'react'; import { ResumePageTemplate } from '../../templates/resume-page'; const ResumePagePreview = ({ entry, widgetFor }) => ( <AboutPageTemplate title={entry.getIn(['data', 'title'])} content={widgetFor('body')} /> ); export default ResumePagePreview;
src/svg-icons/image/brightness-5.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness5 = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.6...
frontend/containers/SignUp.js
tahosalodge/camping-guide
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { reduxForm, Field } from 'redux-form'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import Messages from '../components/Messages'; import Errors from '../components/Errors'; import { signupRequest ...
src/interface/icons/Timeline.js
fyruna/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=timeline&i=151027 // timeline by Alexander Blagochevsky from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="4 4 56 56" className="icon" {...other}> <path d="M14 52h28V42H14v10zm2-8h24v6H16v-6zM5...
src/svg-icons/places/room-service.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesRoomService = (props) => ( <SvgIcon {...props}> <path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"...
src/index.js
jmahc/hhhng
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import App from './components/App'; import todoApp from './reducers'; import './index.css'; let store = createStore(todoApp); const rootEl = document.getElementById('root'); rend...
src/components/DynLoader.js
ekatzenstein/DynamoDictionary_React
import React from 'react'; import FileLabel from './FileLabel'; export default function DynLoader(props){ return( <FileLabel accept={".dyn"} label={props.force ? "Add Dynamo File" : "Update Dynamo File"} readFile={props.readFile} loaded={props.loaded}/> ) }
app/infra/route-manager.js
btg5679/portalReact
import FS from 'fs'; import express from 'express'; import axios from 'axios'; import nconf from 'nconf'; import React from 'react' import {renderToString} from 'react-dom/server'; import {match, RoutingContext} from 'react-router'; import baseManager from './base-manager'; import routes from '../routes'; import C...
packages/skypager-ui/src/components/SearchInput/index.js
stylish/stylish
import React from 'react' import InputWithIcon from 'ui/components/InputWithIcon' export class SearchInput extends React.Component { constructor (props) { super(props) this.state = { value: props.value } } handleChange (e) { let { target } = e let { name, value } = target let old...
examples/counter/containers/CounterApp.js
Creamov/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp extend...
src/index.js
vire/resit
import React from 'react'; import configureStore from './configureStore'; import { Provider } from 'react-redux'; import App from './App'; React.render( <Provider store={configureStore()}> {() => <App/>} </Provider>, document.getElementById('root') );
packages/react/src/components/ListItem/ListItem.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import { settings } from 'carbon-componen...
blueocean-material-icons/src/js/components/svg-icons/image/photo-album.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImagePhotoAlbum = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/> </SvgIcon> ); ImagePhotoAlbum.display...
src/entypo/FolderMusic.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--FolderMusic'; let EntypoFolderMusic = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M18.405,2.799C18.293,2.359,17.749,2,17.195,2H2.805c-0.555,0-1.099,0.359-1.21,0.799L1.394,4h...
docs/src/app/components/pages/components/RaisedButton/ExampleIcon.js
mmrtnz/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import {fullWhite} from 'material-ui/styles/colors'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import FontIcon from 'material-ui/FontIcon'; const style = { margin: 12, }; const RaisedButtonExampleIcon = () => ( ...
assets/components/Button.js
mijia/web-starter-kit
import React from 'react'; import classnames from 'classnames'; import _ from 'lodash'; function mdlUpgrade(Component) { const MDLComponent = React.createClass({ componentDidMount() { componentHandler.upgradeDom(); }, componentDidUpdate() { componentHandler.upgradeDom(); }, render() {...
src/data-loader/view/FileUploadComponent.js
sozemego/StatHelper
import React from 'react'; import {SpinnerComponent} from '../../common/component/SpinnerComponent'; export default class FileUploadComponent extends React.Component { constructor(props) { super(props); } _getSpinner = () => { return this.props.loading ? <SpinnerComponent/> : null; }; _extractFile...
client/src/components/dataset/validate.js
OpenChemistry/materialsdatabank
import React, { Component } from 'react'; import _ from 'lodash'; import { connect } from 'react-redux' import { loadDatasetById } from '../../redux/ducks/datasets' import { loadJob } from '../../redux/ducks/jobs'; import { validateDataSet } from '../../redux/ducks/upload'; import selectors from '../../redux/selectors...
src/events-timeline.js
liorbentov/events-timeline
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class EventsTimeline extends Component { constructor(props) { super(props); this.handlePointClick = this.handlePointClick.bind(this); const { currentIndex } = props; const right = this.getRight(currentIndex); this.sta...
src/views/NotFoundView/NotFoundView.js
seriallos/hubot-stats-web
import React from 'react'; import { Link } from 'react-router'; export class NotFoundView extends React.Component { render () { return ( <div className='container text-center'> <h1>This is a demo 404 page!</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ); } } ...
node_modules/react-bootstrap/es/Button.js
mohammed52/door-quote-automator
import _Object$values from 'babel-runtime/core-js/object/values'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
app/client/src/routes/createEvent/index.js
uprisecampaigns/uprise-app
import React from 'react'; import CreateAction from 'scenes/CreateAction'; import Layout from 'components/Layout'; import organizeCampaignPaths from 'routes/organizeCampaignPaths'; export default organizeCampaignPaths({ path: '/organize/:slug/create-event', component: campaign => ( <Layout> <CreateActi...
app/javascript/mastodon/features/home_timeline/index.js
dunn/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/speaker.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareSpeaker = (props) => ( <SvgIcon {...props}> <path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2...
app/components/Chunk.js
kenwilcox/fil
import _ from 'underscore-contrib'; import React from 'react'; import classNames from 'classnames'; import {parseOrFallback} from 'helpers'; class List extends React.Component { render() { let block = "console__chunk--list", output = this.props.chunk; let classes = classNames(block, { "consol...
node_modules/react-bootstrap/es/ButtonToolbar.js
ivanhristov92/bookingCalendar
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/Editor/ContentSource.js
skystebnicki/chamel
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import ThemeService from '../styles/ChamelThemeService'; import EditorToolbar from './EditorToolbar'; import Codemirror from 'react-codemirror'; import 'codemirror/mode/jsx/jsx'; import 'codemirror/lib/codemi...
frontend/src/components/common/snackbarContainer.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Snackbar from 'material-ui/Snackbar'; import { errorToBeCleared } from '../../reducers/errorReducer'; import { selectAllErrorsMapped } from '../../store'; const SnackbarContainer = (props) => { const { error...
src/components/Main.js
southbeanZ/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom' // 获取照片数据,并进行url预处理 let imageDatas = require('json!../data/imageDatas.json'); imageDatas = (function(imageDatasArr){ for(var i = 0, len = imageDatasArr.length; i < len; i++) { var singleI...
src/FormGroup.js
omerts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class FormGroup extends React.Component { render() { let classes = { 'form-group': !this.props.standalone, 'form-group-lg': !this.props.standalone && this.props.bsSize === 'large', 'form-group-sm': !this.props.standalone && this.pr...
cmd/elwinator/src/components/Back.js
13scoobie/choices
import React from 'react'; import { browserHistory } from 'react-router'; const Back = props => <a className="nav-link" onClick={e => { e.preventDefault(); browserHistory.goBack(); }}>Back</a>; export default Back
packages/react-vis/src/plot/highlight.js
uber/react-vis
import React from 'react'; import PropTypes from 'prop-types'; import AbstractSeries from './series/abstract-series'; import {getAttributeScale} from 'utils/scales-utils'; import {getCombinedClassName} from 'utils/styling-utils'; function getLocs(evt) { const xLoc = evt.type === 'touchstart' ? evt.pageX : evt.offse...
src/svg-icons/image/exposure-neg-2.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureNeg2 = (props) => ( <SvgIcon {...props}> <path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81...
app/components/Showcase/Item.js
juanda99/arasaac-frontend
/** * * Item * */ import React from 'react' import PropTypes from 'prop-types' import muiThemeable from 'material-ui/styles/muiThemeable' import { Link } from 'react-router' import Paper from 'material-ui/Paper' import Image from 'components/Image' import H3 from 'components/H3' import { grey200 } from 'material-ui/st...
react/product/src/components/FilterableProductTable.js
kobeCan/practices
import '../css/index.css'; import React from 'react'; import SearchBar from './SearchBar'; import ProductTable from './ProductTable'; class FilterableProductTable extends React.Component { constructor (props) { super(props); this.state = { isStockOnly: false, filterText: ''...
app/static/src/diagnostic/TestDiagnosisList.js
SnowBeaver/Vision
import React from 'react'; import Accordion from 'react-bootstrap/lib/Accordion'; import Panel from 'react-bootstrap/lib/Panel'; import {Link} from 'react-router'; import Table from 'react-bootstrap/lib/Table'; import {NotificationContainer, NotificationManager} from 'react-notifications'; import {DATETIME_FORMAT} from...
src/containers/App.js
HackDFW/hackdfw-game-frontend
import React from 'react'; import {Link} from 'react-router'; import '../styles/core.scss'; export default class CoreLayout extends React.Component { render () { const {dispatch} = this.props; return ( <div> {this.props.children} </div> ); } }
icon-builder/tpl/SvgIcon.js
gobadiah/material-ui
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import SvgIcon from '{{{ muiRequireStmt }}}'; const {{className}} = React.createClass({ mixins: [PureRenderMixin], render() { return ( <SvgIcon {...this.props}> {{{paths}}} </SvgIcon> ); } }); ...
assets/jqwidgets/demos/react/app/chart/bublechart/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.dropDownSerie1Symbol.on('chan...
admin/client/App/screens/Item/components/FooterBar.js
trentmillar/keystone
import React from 'react'; import blacklist from 'blacklist'; import assign from 'object-assign'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object, }, getDefaultProps () { return { style: {}, }; }, getInitialState () { return { position: 'relative', width: 'auto', ...
packages/plutarch/tpls/dva-project/src/router.js
Alfred-sg/plutarch
import React from 'react' import PropTypes from 'prop-types' import { Switch, Route, Redirect, routerRedux } from 'dva/router' import dynamic from 'dva/dynamic' import App from 'routes/app' const { ConnectedRouter } = routerRedux const Routers = function ({ history, app }) { const routes = [ { path: '/dem...
examples/js/advance/edit-type-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; const jobTypes = [ 'A', 'B', 'C', 'D' ]; function addJobs(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { const id = startId + i; jo...
packages/reactor-kitchensink/src/examples/Charts/3DColumn/3DGrouped/3DGrouped.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; export default class Grouped extends Component { store = Ext.create('Ext.data.Store', { fields: ['quarter', '2013', '2...
example/components/events.js
boromisp/react-leaflet
import React, { Component } from 'react'; import { Map, TileLayer, Marker, Popup } from '../../src'; export default class EventsExample extends Component { constructor() { super(); this.state = { hasLocation: false, latlng: { lat: 51.505, lng: -0.09, }, }; } handleC...
stories/Tooltip_New/Core/ExampleTheme.js
skyiea/wix-style-react
import React from 'react'; import {Tooltip} from 'wix-style-react'; import styles from './Example.scss'; export default () => <div> <Tooltip active placement="right" alignment="center" content="Dark Theme" showTrigger="custom" hideTrigger="custom" theme="dark"> <div className={styles.box}>Dark Theme</div>...
packages/material-ui-icons/src/MicNone.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let MicNone = props => <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ...
front/app/app/rh-components/rh-Accordion.js
nudoru/React-Starter-2-app
import React from 'react'; import AnimateHeight from 'react-animate-height'; import PropTypes from 'prop-types'; import { is } from 'ramda'; const isString = (str) => is(String, str); /** * The title prop can either be a string or another components (single line of text) */ class Accordion extends React.Component {...
node_modules/react-router/es6/Redirect.js
aimanaiman/supernomadfriendsquad
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...
src/svg-icons/maps/navigation.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsNavigation = (props) => ( <SvgIcon {...props}> <path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/> </SvgIcon> ); MapsNavigation = pure(MapsNavigation); MapsNavigation.displayName = 'MapsNavigation'; ...
src/Parser/Priest/Holy/Modules/Items/XanshiCloak.js
hasseboulen/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 ItemHealingDone from 'Main/ItemHealingDone'; import ItemManaGained from 'Main/ItemManaGained'; class XanshiCloak...
local-cli/templates/HelloWorld/index.ios.js
cpunion/react-native
/** * 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 HelloWorld extends Component { render() { return ( <View style={styles.containe...
templates/re-start/src/App.js
react-everywhere/re-start
import React from 'react'; import {Provider} from "react-redux"; import EntryScreen from './screens/EntryScreen'; import store from "./utilities/storage/store"; import Routing, {Router} from './utilities/routing/index'; const Route = Routing.Route; class App extends React.Component { render() { return (...
components/circle/index.js
ElemeFE/react-amap
// @flow import React from 'react' import withPropsReactive from '../utils/withPropsReactive' import log from '../utils/log' import { toLnglat } from '../utils/common' /* * props * { * __map__ 父级组件传过来的地图实例 * } */ const configurableProps = [ 'center', 'radius', 'draggable', 'extData', /* 原生的接口中并没有这些对象,...
packages/web/src/components/shared/ListenSvg.js
appbaseio/reactivesearch
import React from 'react'; import { Global, css } from '@emotion/core'; const ListenSvg = props => ( <React.Fragment> <Global styles={css` @-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc { 0% { opacity: 0; } 13.89% { opacity: 1; } 100% { opacity: 1; } } ...
stories/Pill.js
propertybase/react-lds
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { text, boolean } from '@storybook/addon-knobs'; import { Pill, PillContainer, Avatar, Icon } from '../src'; const stories = storiesOf('Pill', module); const portrait = (<Avatar alt="Imag...
src/Index.js
gfors/react-firebase3-auth-router
import React from 'react'; import ReactDOM from 'react-dom'; import { Auth, DatabaseRef } from './config/firebaseConfig.js'; import { Public, Private } from './config/routes'; const Loading = React.createClass({ render() { return( <div> <h2>Loading</h2> </div> ); } }); const App = React.createClass ({...
src/icons/GradientIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class GradientIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M22 18h4v4h-4zm-4 4h4v4h-4zm8 0h4v4h-4zm4-4h4v4h-4zm-16 0h4v4h-4zM38 6H10c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4...
src/widgets/Flag.js
Sekhmet/busy
import React from 'react'; import franc from 'franc'; import striptags from 'striptags'; import Remarkable from 'remarkable'; import { Link } from 'react-router'; import './Flag.scss'; import { getCountryCode } from '../helpers/languages'; const remarkable = new Remarkable({ html: true }); export default ({ title, b...
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js
fengchenlianlian/actor-platform
import React from 'react'; import classNames from 'classnames'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import AvatarItem from 'components/common/AvatarItem.react'; class RecentSectionItem extends React.Component { static propTypes = { di...
client/src/modules/Transcript.js
showmethewei/tuna-io
import React from 'react'; class Transcript extends React.Component { constructor(props) { super(props); this.renderTranscriptAsParagraph = this.renderTranscriptAsParagraph.bind(this); } // Render the transcript paragraph-style renderTranscriptAsParagraph() { return ( this.props.transcript....
src/components/droppable.js
brijeshb42/kattappa
import React from 'react'; class Droppable extends React.Component { constructor(props) { super(props); this.state = { className: '' }; this.fileEL = null; this.droppable = null; this.getClassName = this.getClassName.bind(this); this.onDragEnter = this.onDragEnter.bind(this); ...
app/index.js
robogroves/ebp
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './css/app.glob...
src/packages/intro/src/index.js
MikkCZ/pontoon-tools
import React from 'react'; import ReactDOM from 'react-dom'; import { Options } from 'Commons/src/Options'; import { RemoteLinks } from 'Commons/src/RemoteLinks'; import { TourPage } from './TourPage'; import toolbarButtonImage from './static/img/toolbar-button.png'; import notificationsImage from './static/img/desktop...
src/components/difference-bar-series.js
ronlobo/building-os-charts
import React from 'react'; import d3 from 'd3'; import classNames from 'classnames'; import Series from 'components/series'; import DifferenceBar from 'components/difference-bar'; import getBarHeight from 'decorators/get-bar-height'; import getBarWidth from 'decorators/get-bar-width'; import getBarY from 'decorators/ge...
node_modules/@expo/vector-icons/website/src/App.js
RahulDesai92/PHR
import React, { Component } from 'react'; import './App.css'; import _ from 'lodash'; const IconFamilies = { Entypo: require('react-native-vector-icons/glyphmaps/Entypo.json'), EvilIcons: require('react-native-vector-icons/glyphmaps/EvilIcons.json'), FontAwesome: require('react-native-vector-icons/glyphmaps/Font...
src/Dropdown/Dropdown.js
Pearson-Higher-Ed/compounds
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import Button from '../Button'; import Icon from '../Icon'; import './Dropdown.scss'; export default class Dropdown extends Component { static propTypes = { mobileTitle: PropTypes.string, type: P...
docs/app/Examples/collections/Menu/index.js
clemensw/stardust
import React from 'react' import Content from './Content' import Types from './Types' import States from './States' import Variations from './Variations' const MenuExamples = () => { return ( <div> <Types /> <Content /> <States /> <Variations /> </div> ) } export default MenuExamp...
app/components/Home.js
erichardson30/jarvis-electron
import React, { Component } from 'react'; import styles from './Home.css'; import axios from 'axios'; import jarvis from 'file!../jarvis-bkrd.png'; import RaisedButton from 'material-ui/lib/raised-button'; import Modal from 'react-modal'; import VisitorModal from './VisitorModal'; import NotifyModal from './NotifyModal...
app/components/Text/LastConverted.js
jmsstudio/CurrencyConverter
import React from 'react'; import PropTypes from 'prop-types'; import { Text } from 'react-native'; import moment from 'moment'; import styles from './styles'; function LastConverted({ base, quote, conversionRate, date }) { return ( <Text style={styles.smallText}> 1 {base} = {conversionRate} {quote} as of...
re-grid/src/header/columns-row.js
NourEldin275/reGrid
/** * Created by nour on 8/25/17. */ import React, { Component } from 'react'; class HeaderRow extends Component{ render(){ const columns = this.props.columns; const sortHandler = this.props.onSort; const columnConfig = columns.map((column) => <td key={column.id.toString()}> ...
tests/Rules-isEmail-spec.js
yesmeck/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...
node_modules/react-icons/md/vibration.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdVibration = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.6 31.6v-23.2h-13.2v23.2h13.2z m0.9-26.6c1.4 0 2.5 1.1 2.5 2.5v25c0 1.4-1.1 2.5-2.5 2.5h-15c-1.4 0-2.5-1.1-2.5-2.5v-25c0-1.4 1.1-2.5 2.5-2.5h15z m4.1 23.4v-16.8h...
app/components/IntroduceModal/index.js
Princess310/antd-demo
/** * * IntroduceModal * */ import React from 'react'; import ReactDOM from 'react-dom'; import styled from 'styled-components'; import pallete from 'styles/colors'; import Mask from 'components/Mask'; const ContentWrapper = styled.div` padding: 0.32rem 0.6rem; `; function introduceModal(...args) { const bgImg ...
src/svg-icons/action/zoom-out.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomOut = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 ...
src/NavItem.js
aparticka/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
app/components/LoadingIndicator/index.js
gihrig/react-boilerplate-logic
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
app/components/Logs-UI.js
L-A/Little-Jekyll
import React, { Component } from 'react'; import TitleBar from './Title-bar'; import LogsList from './Logs-list'; import Dispatcher from '../utils/front-end-dispatcher'; var LogsUI = React.createClass({ getInitialState: function() { return {}; }, render: function() { return ( <div className="logs-...
modules/gui/src/app/home/map/progress.js
openforis/sepal
import {compose} from 'compose' import {selectFrom} from 'stateUtils' import {withRecipe} from '../body/process/recipeContext' import React from 'react' import styles from './progress.module.css' const mapRecipeToProps = recipe => ({ working: !!Object.keys(selectFrom(recipe, 'ui.mapOperations') || {}).length }) c...
app/jsx/webzip_export/components/ExportInProgress.js
djbender/canvas-lms
/* * Copyright (C) 2016 - 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/svg-icons/editor/format-align-center.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignCenter = pure(EditorFormatAli...
docs/src/app/components/pages/components/Card/Page.js
hwo411/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 cardReadmeText from './README'; import cardExampleWithAvatarCode from '!r...
src/components/World/index.js
colinmeinke/css-modules-universal-example
import React from 'react'; import styles from './styles.css'; const World = () => <h1 className={ styles.world }>World</h1>; export default World;
src/client/Story.js
JiLiZART/tmfeed-menu
import React from 'react' import moment from 'moment'; import 'moment/locale/ru.js'; export default class Story extends React.Component { markAsRead() { this.props.onMarkAsRead(this.props.story.id); } openUrl(url) { this.props.onUrlClick(url); } handleExternalUrlOnClick(e) { ...
frontend/src/Album/Edit/EditAlbumModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import EditAlbumModalContentConnector from './EditAlbumModalContentConnector'; function EditAlbumModal({ isOpen, onModalClose, ...otherProps }) { return ( <Modal isOpen={isOpen} onModalClose={on...
public/js/components/admin/settings/NewAdminmodal.react.js
rajikaimal/Coupley
/** * Created by Isuru 1 on 30/01/2016. */ import React from 'react'; import Dialog from 'material-ui/lib/dialog'; import FlatButton from 'material-ui/lib/flat-button'; import RaisedButton from 'material-ui/lib/raised-button'; import TextField from 'material-ui/lib/text-field'; import snack from './snackbar.react'; i...
src/components/ui/BackButton.js
N3TC4T/Nearby-Live
/** * BackButton * <BackButton /> * */ import React from 'react'; import PropTypes from 'prop-types'; import {TouchableOpacity} from 'react-native'; import {Icon} from '@components/ui'; import {Actions} from 'react-native-router-flux'; /* Component ================================================================...
clouseau-app/ui/src/index.js
commercehub-oss/clouseau
import React from 'react'; import ReactDOM from 'react-dom'; import url from 'url'; import Session from './Session'; import SessionList from './SessionList'; const query = url.parse(window.location.href, true).query; if (query.sessionId) { ReactDOM.render( <Session sessionId={query.sessionId} forceRichView...
frontend/src/containers/CollectionList/CollectionList.js
webrecorder/webrecorder
import React from 'react'; import { asyncConnect } from 'redux-connect'; import { batchActions } from 'redux-batched-actions'; import { saveDelay } from 'config'; import { addUserCollection, incrementCollCount } from 'store/modules/auth'; import { load as loadCollections, createCollection } from 'store/modules/collec...
src/DatePicker/components/Calendar.js
jmcriffey/react-ui
import React from 'react'; import {getClassName, chunk} from '../../utils'; class Calendar extends React.Component { render() { const className = getClassName( 'react-ui-date-picker-calendar', this.props.calendarClassName ); const subHeaderClassName = getClassName(...
pkg/interface/groups/src/js/components/lib/share-sheet.js
ngzax/urbit
import React, { Component } from 'react'; import { Route, Link } from 'react-router-dom'; import { Sigil } from '../lib/icons/sigil'; import { uxToHex } from '../../lib/util'; import { ContactItem } from '/components/lib/contact-item'; export class ShareSheet extends Component { render() { const { props } = thi...
app/javascript/mastodon/components/status_list.js
kagucho/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ScrollContainer } from 'react-router-scroll'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import LoadMore from './load_more'; import ImmutablePureComponent from 'react-im...
src/routes/home/index.js
jwhchambers/react-starter-kit
/** * 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 Home from './Home'; impo...
npm/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
ganyuling/nvm
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/index.js
calvellido/reactjs-training
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tell webpack t...
jekyll-strapi-tutorial/api/plugins/users-permissions/admin/src/components/HeaderNav/index.js
strapi/strapi-examples
/** * * HeaderNav * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import { NavLink } from 'react-router-dom'; import { map } from 'lodash'; // Utils import { darken } from 'utils/colors'; // Styles import styles from './styles.scss'; const links = [ { name: 'users-permissions.He...
src/containers/recipes/Card/CardView.js
npdat/Demo_React_Native
/** * Recipe View Screen * - The individual recipe screen * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, TouchableOpacity, } from 'react-native'; import { Icon } f...