path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/EmailInput.js
justin0022/student-services-forms
import React from 'react'; import {Field} from 'redux-form'; import * as validate from '../constants/Validate'; import RenderField from './RenderField'; const EmailInput = () => ( <Field name="email" type="email" component={RenderField} label="Email" validate={[validate.email, validate.required]}/> ); export defa...
BaiSi/app/pages/home/component/userInfoItem.js
MisterZhouZhou/ReactNativeLearing
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Dimensions, TouchableOpacity, InteractionManager, ActivityIndicator, Image } from 'react-native'; let {widt...
public/js/components/profile/visitor/lookingfor/LookingFor.react.js
TRomesh/Coupley
import React from 'react'; import TextField from 'material-ui/lib/text-field'; import RaisedButton from 'material-ui/lib/raised-button'; import DropDownMenu from 'material-ui/lib/DropDownMenu'; import MenuItem from 'material-ui/lib/menus/menu-item'; import Paper from 'material-ui/lib/paper'; import CardTitle from 'mate...
app/containers/BootStrap/BSNavBarBrand/index.js
perry-ugroop/ugroop-react-dup2
/** * Created by Ber on 24/11/16. */ import React from 'react'; import { Navbar } from 'react-bootstrap'; const BSNavBarBrand = (props) => <Navbar.Brand className={`${props.className}`}> {props.children} </Navbar.Brand>; BSNavBarBrand.propTypes = { className: React.PropTypes.any, children: React.PropTypes.any...
testCode/Components/AddAnEmployee.js
Aznachang/CompanyPersonelReactJS
import React from 'react'; import AddEmployee from '../Containers/add-an-employee.js'; import { Router, Route, Switch } from 'react-router-dom'; const AddAnEmployee = () => ( <div> <AddEmployee /> </div> ); export default AddAnEmployee;
examples/js/selection/select-hook-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-alert: 0 */ /* eslint guard-for-in: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i <...
src/routes/OUState/components/index.js
shinja/react-redux-c3
import React from 'react' export const HomeView = () => ( <div> <h4>Welcome! OU State</h4> </div> ) export default HomeView
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
zillachan/actor-platform
import _ from 'lodash'; import React from 'react'; import mixpanel from 'utils/Mixpanel'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import MyProfileActions from 'actions/MyProfileActions'; import LoginActionCreators from 'action...
app/components/views/videoTabs/CommoditiesCorner.js
MutatedBread/binary-academy-rn
import React, { Component } from 'react'; import VideoList from './VideoList.js'; var YoutubePlaylistId = require('./../../YoutubeAPI/YoutubePlaylistId.js'); export default class CommoditiesCorner extends Component { constructor(props) { super(props); } render() { return ( <V...
docs/src/app/components/pages/components/Menu/ExampleSecondary.js
igorbt/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; const style = { display: 'inline-block', flo...
dispatch/static/manager/src/js/components/ModalContainer.js
ubyssey/dispatch
import React from 'react' require('../../styles/components/modal_container.scss') export default function ModalContainer(props) { return ( <div className='c-modal-container'> <div className='c-modal-container__backdrop' onClick={props.closeModal} /> <div className='c-modal-container__body'>{props.ch...
examples/plain/app/index.js
bugsnag/bugsnag-react-native
import React, { Component } from 'react'; import { View, Text, Button, ScrollView, StyleSheet, Platform } from 'react-native'; import bugsnag from 'lib/bugsnag'; import NativeCrash from 'lib/native_crash'; function triggerException() { bogusFunction(); // eslint-disable-line no-undef } function triggerHandledExcep...
website/src/pages/parallel-coordinates/index.js
plouc/nivo
import React from 'react' import merge from 'lodash/merge' import { ResponsiveParallelCoordinates, commonDefaultProps } from '@nivo/parallel-coordinates' import { generateParallelCoordinatesData } from '@nivo/generators' import { ComponentTemplate } from '../../components/components/ComponentTemplate' import meta from ...
docs/client/components/shared/Heading/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import styles from './styles.css'; export default class Heading extends Component { render() { let style; switch (this.props.level) { case 2: style = styles.level2; break; case 3: style = styles.level3; break; case 4...
jetpack-10.9/jetpack_vendor/automattic/jetpack-backup/src/js/hooks/useConnection.js
Automattic/vip-go-mu-plugins
/** * External dependencies */ import React from 'react'; import { useState, useEffect } from '@wordpress/element'; import apiFetch from '@wordpress/api-fetch'; import { useSelect } from '@wordpress/data'; import { ConnectScreenRequiredPlan, CONNECTION_STORE_ID } from '@automattic/jetpack-connection'; import { __ } f...
src/js/routes.js
FBDevCLagos/fb-group-stat
import React from 'react'; // eslint-disable-line no-unused-vars import { Router, Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/Index'; import AboutPage from './components/about/Index'; import ProfilePage from './components/profile/Index'; import St...
ui/src/js/planting/proposalPlantPage/PlantItem.js
Dica-Developer/weplantaforest
import Accounting from 'accounting'; import React, { Component } from 'react'; import { getTextForSelectedLanguage } from '../../common/language/LanguageHelper'; export default class PlantItem extends Component { constructor() { super(); } render() { let imageUrl = 'http://localhost:8081/treeType/image/...
frontend/src/Components/Filter/Builder/IndexerFilterBuilderRowValueConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import tagShape from 'Helpers/Props/Shapes/tagShape'; import { fetchIndexers } from 'Store/Actions/settingsActions'; import FilterBuilderRowValue from './Filter...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
snkrishnan1/PivotGridSample
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
js/jqwidgets/demos/react/app/chart/stackedareaseries/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let source = { datatype: 'tab', datafields: [ { name: 'Date' }, ...
src/components/createMockComponent.js
Root-App/react-native-mock-render
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; function createMockComponent(displayName) { return createReactClass({ displayName, propTypes: { children: PropTypes.node }, render() { return React.createElement('react-native...
app/components/WeekNavigation/index.js
zebbra-repos/Zeiterfassung-medi
/** * * WeekNavigation * */ import React from 'react'; import PropTypes from 'prop-types'; import MomentPropTypes from 'react-moment-proptypes'; import moment from 'moment'; import FlatButton from 'material-ui/FlatButton'; import HardwareLeft from 'material-ui/svg-icons/hardware/keyboard-arrow-left'; import HardwareRi...
src/routes/not-found/NotFound.js
rameshrr/dicomviewer
/** * 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 React from 'react'; import PropTypes from 'prop-...
js/jqwidgets/demos/react/app/datetimeinput/datetime/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js'; class App extends React.Component { render() { return ( <JqxDateTimeInput width={300} height={25} formatString={'F'} /> ...
src/index.js
josebalius/react-hot-boilerplate
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
pkg/ui/src/components/cluster/ClusterResourceTab.js
matt-deboer/kuill
import React from 'react' import {blueA400, grey200, grey300, grey500, grey600, blueA100, white } from 'material-ui/styles/colors' import { connect } from 'react-redux' import { viewResource, removeResource } from '../../state/actions/resources' import sizeMe from 'react-sizeme' import FilterTable from '../filter-table...
server/frontend/pages/Tasks/Tasks.js
AlexHatesUnicorns/FDTD_Solver
import React from 'react'; import PropTypes from 'prop-types'; import CenteredLayout from '../../components/CenteredLayout/CenteredLayout'; import Background from '../../components/Background/Background'; import Header from '../../components/Header/Header'; export const Tasks = () => ( <Background> <Header/> <Cen...
src/LoadingIcon.js
PremiseWP/premise-time-track-chrome-extension-node
import React, { Component } from 'react'; import FontAwesome from 'react-fontawesome'; /** * Display a loading icon */ class LoadingIcon extends Component { constructor(props) { super(props); let size = '3em'; if ( props.size ) { size = props.size; } this.state = { size: size, ...
src/nmr/components/PlayListDetail.js
maybeShuo/netease-music-react
import React, { Component } from 'react'; export default class PlayListDetail extends Component { constructor (props) { super(props); } static defaultProps = { playlist: null } render() { const playlist = this.props.playlist; if (!playlist) { retur...
alpha/src/index.js
Ethbet/ethbet
import React from 'react' import ReactDOM from 'react-dom' import {Provider} from 'react-redux'; import configureStore from './store/configureStore'; import {Router, Route} from 'react-router-dom' import './css/bootstrap.min.css'; import 'font-awesome/css/font-awesome.css'; import './css/custom.css'; import Home fro...
src/containers/index.js
hisarkaya/polinsur
import React, { Component } from 'react'; import { connect } from 'react-redux'; import {Route, BrowserRouter, Link, Redirect, Switch} from 'react-router-dom'; import { authStateChange } from '../actions'; import Index from './protected/index'; import Login from './public/login'; function PrivateRoute ({component: Co...
src/containers/MobileJokes.js
441953309/joke-by-redux
import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import MobileJokeCate from '../components/MobileJokeCate' import MobileJokeList from '../components/MobileJokeList' import {fetchJokesIfNeed} from '../actions/jokelists' class MobileJokes extends React.Component...
resources/src/js/components/Modal/index.js
aberon10/thermomusic.com
'use strict'; // Dependencies import React from 'react'; import PropTypes from 'prop-types'; export default class Modal extends React.Component { constructor(props) { super(props); } render() { let classes = 'modal ' + this.props.classes; return ( <div className={classes} onClick={this.props.clickEventHan...
src/MapLayer.js
uniphil/react-leaflet
import assign from 'lodash/object/assign'; import React from 'react'; import MapComponent from './MapComponent' export default class MapLayer extends MapComponent { componentDidMount() { super.componentDidMount(); this.props.map.addLayer(this.leafletElement); } componentWillUnmount() { super.compone...
app/javascript/mastodon/components/column.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import detectPassiveEvents from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, label: PropTypes.string, }; scrollTop (...
src/components/Tags.js
meerasahib/meerablog1
import React from 'react'; import styled from 'styled-components'; import GatsbyLink from 'gatsby-link'; import { rhythm } from '../utils/typography'; const TagsContainer = styled.ul` list-style-type: none; margin: 0; padding: 0; font-family: sans-serif; width: 100%; `; const Tag = styled.li` display: in...
src/js/home.js
puffstream/stream
import React from 'react'; import { Link } from 'react-router-dom'; class Home extends React.Component { render () { return ( <div> <h1>Home page</h1> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/posts">Posts</Link></li> <li><Link to="/register">Regist...
packages/icons/src/id.js
geek/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg xml...
src/components/Projects/projectComponents.js
liutongchen/liutong-chen-website
import React from 'react'; import PropTypes from 'prop-types'; import {Button, Col, Row} from 'react-bootstrap'; const ProjectComponents = ({projectsList}) => { const projectsElements = projectsList.map((project) => { return ( <div className="projects" key={project.title} id={project.title.toLo...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-camera.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js'; import './camera.less'; // TODO // quality of picture -> jpg, png, ... // choice of camera devices if pc has more cameras export const Camera = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, Elem...
src/server.js
elstgav/stair-climber
import path from 'path' import Express from 'express' import compression from 'compression' import bodyParser from 'body-parser' import session from 'express-session' const RedisStore = require('connect-redis')(session); const redisOptions = { client: require('redis').createClient(process.env.REDIS_URL), disableTT...
stories/Mention/CustomComponentMentionEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; import createMentionPlugin, { defaultSuggestionsFilter } from 'draft-js-mention-plugin'; import editorStyles from './editorStyles.css'; import mentions from './mentions'; const mentionPlugin ...
tools/testUtils.js
Kinectsit/kinects-it
import React from 'react'; module.exports = { stubRouterContext: (Component, props, stubs) => { function RouterStub() { } Object.assign(RouterStub, { makePath() {}, makeHref() {}, transitionTo() {}, replaceWith() {}, goBack() {}, getCurrentPath() {}, getCurrentRoute...
website-prototyping-tools/graphiql.js
jtthrillson/relay
/** * Copyright 2013-2015, 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. */ import 'babel/pol...
src/EntityList/SelectRelationMany.js
whitescape/react-admin-components
import React from 'react' import SelecRealation from './SelectRelation' import SelectMany from '../ui/form/SelectMany' export default props => { return <SelecRealation fakeEmptyOption={false} Renderer={SelectMany} {...props} /> }
src/gm3/components/serviceManager.js
geomoose/gm3
/* * The MIT License (MIT) * * Copyright (c) 2016-2017 Dan "Ducky" Little * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
node_modules/react-router/modules/IndexLink.js
jameswatkins77/React-Blogger-App
import React from 'react' import Link from './Link' /** * An <IndexLink> is used to link to an <IndexRoute>. */ const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
public/js/components/likes/Like.react.js
MadushikaPerera/Coupley
import React from 'react'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; import Colors from 'material-ui/lib/styles/colors'; import IconButton from 'material-ui/lib/icon-button'; import MoreVertIcon from 'material-ui/l...
src/svg-icons/av/repeat-one.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeatOne = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/> </SvgIcon> ); AvRepeatOne = pure(AvRepeatOne); AvRepeatOn...
src/components/common/SimpleEditor/Schema/Blocks/ListItemNode.js
anztrax/simple-image-server-frontend
import React from 'react'; export default class ListItemNode extends React.Component{ static get nodeType(){ return 'list-item'; } constructor(props){ super(props); } render(){ return ( <li {...this.props.attributes}> {this.props.children} </li> ) } }
src/Components/ShowSuggestLocationModal.js
gourie/ParkingPlaza
/* * Author: Joeri Nicolaes * version: alpha */ import React from 'react'; import { Button, Input, Modal } from 'react-bootstrap'; import GooglePlacesSuggest from 'react-google-places-suggest'; /** * React Component: ShowSuggestLocationModal */ export default class ShowSuggestLocationModal extends React.Compone...
pootle/static/js/admin/components/AdminController.js
Avira/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. */ 'use strict'; import Backbone from 'backbone'; import Rea...
stories/Dropdown.stories.js
react-materialize/react-materialize
import React from 'react'; import { storiesOf } from '@storybook/react'; import Dropdown from '../src/Dropdown'; import Divider from '../src/Divider'; import Button from '../src/Button'; import Icon from '../src/Icon'; const stories = storiesOf('Javascript/Dropdown', module); stories.addParameters({ info: { tex...
packages/@lyra/form-builder/src/utils/ValueSync.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' // @flow import React from 'react' import type {Patch} from '../utils/patches' import {debounce} from 'lodash' import whyNotEqual from 'is-equal/why' import withPatchSubscriber from './withPatchSubscriber' declare var __DEV__: boolean type Deserialized = any type ChildProps = {valu...
admin/src/components/Portal.js
BlakeRxxk/keystone
import React from 'react'; module.exports = React.createClass({ displayName: 'Portal', render: () => null, portalElement: null, componentDidMount() { var p = this.props.portalId && document.getElementById(this.props.portalId); if (!p) { var p = document.createElement('div'); if (this.props.portalId) { ...
src/svg-icons/image/wb-sunny.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbSunny = (props) => ( <SvgIcon {...props}> <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7...
src/packages/@ncigdc/modern_components/ClinicalAnalysis/ClinicalVariableCard/components/ClinicalBoxPlot.js
NCI-GDC/portal-ui
import React from 'react'; import { Row, Column } from '@ncigdc/uikit/Flex'; import wrapSvg from '@ncigdc/utils/wrapSvg'; import DownloadVisualizationButton from '@ncigdc/components/DownloadVisualizationButton'; import { humanify, } from '@ncigdc/utils/string'; import { TooltipInjector } from '@ncigdc/uikit/Tooltip'...
src/common/components/App.js
lolcookie/eBay-API-Demo
import React from 'react'; class App extends React.Component { static propTypes = { children: React.PropTypes.element.isRequired, }; render() { return ( <div id="container"> {this.props.children} </div> ); } } App.propTypes = { title: React.PropTypes.string.isRequired, }; ex...
views/blocks/SearchBar/SearchBarInput/SearchBarInput.js
dimastark/team5
import React from 'react'; import './SearchBarInput.css'; import b from 'b_'; import {SearchBarInputString} from './../../../constants/strings'; export default class SearchBarInput extends React.Component { render() { const {searchString, onShowParams} = this.props; return ( <div classN...
documents/react-course/src/chapter9/demo2/src/index.js
sharkspeed/dororis
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App' import storeFactory from './store' import styles from './stylesheets/style.css' window.React = React const store = storeFactory() const render = () => ReactDOM.render( <App store={ store } />, document....
docs/lib/examples/HLSSource.js
video-react/video-react
import React, { Component } from 'react'; import Hls from 'hls.js'; export default class HLSSource extends Component { constructor(props, context) { super(props, context); this.hls = new Hls(); } componentDidMount() { // `src` is the property get from this component // `video` is the property in...
src/components/loading.js
kapz/anapaula.art
import React from 'react' import styled from 'styled-components' import Brand from './brand' const Overlay = styled.div` position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #FCFCFC; z-index: 50; display: flex; align-items: center; justify-content: center; tra...
actor-apps/app-web/src/app/components/Deactivated.react.js
hzy87email/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
src/svg-icons/action/line-style.js
pancho111203/material-ui
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...
spa/components/nav.js
chadwilcomb/health-trackr
import React from 'react' import ampersandMixin from 'ampersand-react-mixin' export default React.createClass({ mixins: [ampersandMixin], displayName: 'Nav', render () { const {me} = this.props return ( <nav className="navbar navbar-light bg-faded"> <a className="navbar-brand" href="/">...
packages/reactor-kitchensink/src/examples/D3/Hierarchy/Pack/Pack.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Panel } from '@extjs/ext-react'; import { D3_Pack } from '@extjs/ext-react-d3'; export default class Pack extends Component { store = Ext.create('Ext.data.TreeStore', { autoLoad: true, defaultRootText: 'd3', fields: [ 'name', ...
src/svg-icons/device/signal-wifi-4-bar-lock.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
client/src/app/components/Messages.js
lefnire/jobs
import React from 'react'; import { CardHeader, Card, CardText, CardTitle, IconButton, CardActions, FlatButton, } from 'material-ui'; import _ from 'lodash'; import Formsy from 'formsy-react' import fui from 'formsy-material-ui/lib'; import {_fetch, me} from '../helpers'; import Footer from './Footer'; c...
src/components/actions/Button/Button.js
rlesniak/tind3r.com
// @flow import React from 'react'; import cx from 'classnames'; import './Button.scss'; type PropsType = { children: any, onClick: () => void, disabled?: boolean, active?: boolean, color?: 'red' | 'green' | 'blue', } const Button = ({ disabled, children, onClick, active, color = '' }: PropsType) => { c...
src/DatePicker/DatePickerInline.js
pradel/material-ui
import React from 'react'; import Popover from '../Popover/Popover'; import PopoverAnimationFromTop from '../Popover/PopoverAnimationVertical'; const styles = { actions: { marginRight: 8, paddingBottom: 12, textAlign: 'right', }, }; class DatePickerInline extends React.Component { static propTypes =...
src/components/HeaderComponent.js
jezzasan/taproom-react
'use strict'; import React from 'react'; let HeaderMenuComponent = require('./HeaderMenuComponent.js'); class HeaderComponent extends React.Component { render() { return ( <div className="header-component"> <a href="#">Taproommaps.com</a> <HeaderMenuComponent /> </div> ); } } ...
src/app/router.js
iWader/website
// @flow import React from 'react'; import { BrowserRouter, Switch, Route } from 'react-router-dom'; import type { Match, RouterHistory, Location } from 'react-router-dom'; import Blog from 'components/Blog'; import Home from 'components/Home'; import NotFound from 'components/NotFound'; export default () => ( <Bro...
src/mui/field/ReferenceArrayField.js
azureReact/AzureReact
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import LinearProgress from 'material-ui/LinearProgress'; import get from 'lodash.get'; import { crudGetManyAccumulate as crudGetManyAccumulateAction } from '../../actions/accumulateActions'; import { ge...
src/components/user/avatar.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
src/common/animations/Slide.js
husa/e-clock
import './slide.styl'; import React from 'react'; import Animation from './Animation'; const Slide = ({children}) => ( <Animation name="slide" timeout={[0, 200, 200]}> {children} </Animation> ); export default Slide;
webpack/ForemanTasks/Components/TasksTable/Components/TableSelectionHeaderCell.js
theforeman/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; const TableSelectionHeaderCell = ({ id, label, checked, onChange, ...props }) => ( <Table.SelectionHeading aria-label={label}> <Table.Checkbox ...
client/pages/todoReact/todoListView.js
Perezmothership/newbie
var $ = require('jquery'); import React from 'react'; import ReactDOM from 'react-dom'; import Backbone from 'backbone'; import todoModel from 'pages/todoReact/todoModel'; import TodoItemView from 'pages/todoReact/todoView'; import dispatcher from 'pages/todoReact/todoDispatcher'; // Controller View var TodoListView =...
client/src/SearchDialog.js
jghibiki/Doc
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardContent'; import Typography from '@mat...
src/components/PostLike/PostLike.js
stan-kondrat/test-work-for-storia
import React, { Component } from 'react'; import styles from './PostLike.css'; import withStyles from '../../decorators/withStyles'; import request from 'superagent'; @withStyles(styles) class PostLike extends Component { constructor(props) { super(props); this.state = {liked: false, likes: props.likes}; }...
src/routes/loggedOut/index.js
nambawan/g-old
import React from 'react'; import Layout from '../../components/Layout'; import Login from '../../components/Login'; async function action() { return { chunks: ['loggedOut'], title: 'Logged out', component: ( <Layout> <div style={{ paddingLeft: '20px', padd...
docs/src/PageHeader.js
adampickeral/react-bootstrap
import React from 'react'; const PageHeader = React.createClass({ render() { return ( <div className='bs-docs-header' id='content'> <div className='container'> <h1>{this.props.title}</h1> <p>{this.props.subTitle}</p> </div> </div> ); } }); export default Pag...
src/client/containers/Profile/ProfileForm.js
eliasmeire/hz-pictionary
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Button, TextInput } from 'grommet'; import { setProfileFormUsername, setProfileFormState } from '../../redux/actions'; import FormStateIcon from '../../components/FormStateIcon'; import { FORM_STATES } from '....
src/components/common/svg-icons/device/bluetooth.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetooth = (props) => ( <SvgIcon {...props}> <path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46...
docs/src/app/components/pages/components/TextField/ExampleControlled.js
matthewoates/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; export default class TextFieldExampleControlled extends React.Component { constructor(props) { super(props); this.state = { value: 'Property Value', }; } handleChange = (event) => { this.setState({ value: eve...
rest-ui-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
RestUI/create-rest-ui-app
/** * 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. */ import Rea...
client/src/app/routes/dashboard/components/LiveStats.js
zraees/sms-project
import React from 'react' import SparklineContainer from '../../../components/graphs/inline/SparklineContainer' import EasyPieChartContainer from '../../../components/graphs/inline/EasyPieChartContainer' import FlotChart from '../../../components/graphs/flot/FlotChart' let LiveStats = React.createClass({ ge...
react/src/Footer.js
Chalarangelo/react-mini.css
import React from 'react'; // Module constants (change according to your flavor file) var footerStickyClassName = 'sticky'; // Footer component. export function Footer(props){ var outProps = Object.assign({},props); if (typeof outProps.sticky === 'undefined') outProps.sticky = false; if (outProps.sticky) if (typ...
app/components/lobMainPanels/CenterPanel.js
btg5679/portalReact
import React from 'react'; export default class CenterPanel extends React.Component { render() { return ( <div className="mainContent"> <div>MAIN CONTENTSsss</div> {this.props.children} </div> ); } }
src/components/common/NotFoundPageContent.js
blurbyte/blurbyte-web
import React from 'react'; //common components import SideLogo from '../common/SideLogo'; //impression import {NotFoundImpression} from './Icons'; const NotFoundPageContent = () => ( <div className="bgr-wrapper no-header"> <div className="wrapper"> <SideLogo hasHeader={false} /> <section className=...
app/javascript/mastodon/components/status_action_bar.js
TootCat/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenu from './dropdown_menu'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure...
src/parser/paladin/holy/modules/talents/DevotionAuraDamageReduction.js
sMteX/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import fetchWcl from 'common/fetchWclApi'; import SpellIcon from 'common/SpellIcon'; import { formatThousands, formatNumber } from 'common/format'; import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'interface/oth...
app/containers/ParamMapping.js
experimentalDataAesthetics/play-splom
import React from 'react'; import _ from 'lodash'; import h from 'react-hyperscript'; import connect from '../utils/reduxers'; import XYParamTable from '../components/XYParamTable'; import styles from './Sidebar.css'; import { getSound, getXYMappingControls, getSelectableSources } from '../selectors/index'; import { ...
src/icons/font/AnnouncementIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * Announcement button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const AnnouncementIcon = (props, context) => { l...
src/utils/getContainer.js
glortho/react-overlays
import React from 'react'; export default function getContainer(container, defaultContainer){ container = typeof container === 'function' ? container() : container; return React.findDOMNode(container) || defaultContainer; }
src/components/KeystoreUploader/JsonDropZone.js
chochinlu/ens-bid-dapp
import React from 'react'; import Dropzone from 'react-dropzone'; import classNames from 'classnames'; export const JsonDropZone = (props) => { const style = classNames( 'dropzone', props.dragDisabled ? 'dropzone-disable': 'dropzone-enable' ); const dropMsg = <div className="dropzone-message"> ...
lens-ui/app/components/LoginComponent.js
guptapuneet/lens
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
test/regressions/tests/Tooltip/PositionedTooltips.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Button from '@material-ui/core/Button'; import Tooltip from '@material-ui/core/Tooltip'; const styles = { root: { width: 400, height: 400, ...
source/ExpandableList.js
halt-hammerzeit/react-responsive-ui
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { polyfill as reactLifecyclesCompat } from 'react-lifecycles-compat' import ScrollableList from './ScrollableList' import Expandable from './Expandable' import { findItemIndexByValue } from './List' // `PureCompone...
docs/src/app/components/pages/components/RaisedButton/ExampleSimple.js
xmityaz/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; const style = { margin: 12, }; const RaisedButtonExampleSimple = () => ( <div> <RaisedButton label="Default" style={style} /> <RaisedButton label="Primary" primary={true} style={style} /> <RaisedButton label="Secondary" se...
client/src/containers/SignedPage.js
RiddleMan/giant-privacy-spy
import React, { Component } from 'react'; class SignedPage extends Component { render() { return (<div><h1>SignedPage</h1>{this.props.children}</div>); } } export default SignedPage;