path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
actor-apps/app-web/src/app/components/DialogSection.react.js
dut3062796s/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import PeerUtils from 'utils/PeerUtils'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'c...
src/index.js
FranciscoHerrera/floggit-whiteboard-client
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './reduxStore'; import './common/css/master.css'; import Home from './pages/Home'; ReactDOM.render( <Provider store={store}> <Home /> </Provider>, document.getElementById('root'));
frontend/src/index.js
generalelectrix/color_organist
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
docs/src/pages/docs/index.js
colindresj/nuclear-js
import React from 'react' import Redirect from '../../layouts/redirect' import { BASE_URL } from '../../globals' export default React.createClass({ render() { return <Redirect to={BASE_URL} /> } })
examples/webpack/src/components/RandomButton.js
sapegin/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import sample from 'lodash/sample'; import './RandomButton.css'; /** * Button that changes label on every click. */ export default class RandomButton extends Component { static propTypes = { /** * List of possible labels. */ va...
node_modules/react-bootstrap/es/Pagination.js
darklilium/Factigis_2
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-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
examples/src/app.js
katienreed/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import Select from 'react-select'; import CustomRenderField from './components/CustomRenderField'; import MultiSelectField from './components/MultiSelectField'; import RemoteSelectField from './components/RemoteSelectField'; import SelectedValuesField from '...
src/routes/Home/components/HomeView.js
amaurisquezada/battleship
import React from 'react' export const HomeView = () => ( <div> <h4>Welcome!</h4> </div> ) export default HomeView
src/layouts/CoreLayout/CoreLayout.js
aurel-tackoen/spencer.io
import React from 'react' import Header from '../../components/Header' import classes from './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className={classes.mainContainer}> {children} </div> ...
src/components/Box/BoxHeader.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; function BoxHeader({ noPadding, compact, children, center }) { const className = classnames('ui-box-header', { 'ui-box-header-no-padding': noPadding, 'ui-box-header-compact': compact, 'ui-box-header-center': center, }); return ( <di...
src/svg-icons/editor/border-outer.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderOuter = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/> </SvgIcon> ); EditorBorderOuter =...
popup/src/scripts/components/search/PeopleSearchList.js
CaliAlec/ChromeIGStory
import React, { Component } from 'react'; import {connect} from 'react-redux'; import Tooltip from '@material-ui/core/Tooltip'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemAvatar from '@material-u...
app/components/ListItem/index.js
iFatansyReact/react-boilerplate-imagine
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
votrfront/js/MojePredmetyPage.js
fmfi-svt/votr
import React from 'react'; import { ZapisnyListSelector } from './ZapisnyListSelector'; import { CacheRequester, Loading } from './ajax'; import { coursesStats, renderCredits, renderWeightedStudyAverage } from './coursesStats'; import { classForSemester, humanizeTerminHodnotenia, humanizeTypVyucby, plural } from './hu...
src/svg-icons/device/battery-50.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery50 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
app/App.js
luketlancaster/github-notetaker
import React from 'react'; import Router from 'react-router'; import routes from './config/routes'; Router.run(routes, (Root, state) => { React.render(<Root {...state}/>, document.getElementById('app')) })
examples/forms-material-ui/src/components/forms-create-overlay/Hook.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import moment from 'moment'; export default createReactClass({ displayName: 'Hook', render: function() { return lore.forms.tweet.create({ blueprint: 'overlay' }); } });
src/js/routes.js
VitorHP/TI3
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import LobbyContainer from './containers/lobby_container'; import TableContainer from './containers/table_container'; import AppContainer from './containers/app_container'; import MainMenu from './components/main_menu'; import RacesScreenConta...
src/components/Footer/Footer.js
dorono/resistance-calendar-frontend
import React from 'react'; import { Link } from 'react-router-dom'; import { Copyright } from '../'; import styles from './Footer.sass'; function footerLinks() { /* eslint-disable jsx-a11y/href-no-hash */ return ( <div className={styles.linksWrapper}> <Link to="/">Home</Link> <a href="htt...
www/imports/component/TextareaClean.js
terraswat/hexagram
// TextAreaClean.js // A textarea to contain text that contains only printable characters. import React, { Component } from 'react'; import PropTypes from 'prop-types'; import utils from '/imports/common/utils.js'; export default class TextareaClean extends Component { constructor (props) { super(props...
src/components/LaborRightsSingle/Body.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import { StickyContainer, Sticky } from 'react-sticky'; import cn from 'classnames'; import { Section, Wrapper, Heading } from 'common/base'; import GradientMask from 'common/GradientMask'; import MarkdownParser from './MarkdownParser'; import styles from '...
src/components/LaborRightsSingle/index.js
chejen/GoodJobShare
import React from 'react'; import Helmet from 'react-helmet'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Loader from 'common/Loader'; import { formatTitle, formatCanonicalPath, formatUrl, } from 'utils/helmetHelper'; import NotFound from 'common/NotFound'; import CallToAction from 'common/...
client/components/common/FormRenderWrappers.js
zhakkarn/Mail-for-Good
/* eslint-disable */ import React from 'react'; import { Combobox, DropdownList } from 'react-widgets'; import { Field } from 'redux-form'; import TextEditor from '../../containers/common/TextEditor'; // Ref redux-form http://redux-form.com/6.0.5/docs/GettingStarted.md/ // Ref react-widgets https://jquense.github.io/r...
src/Notification.js
rolandsusans/react-bootstrap-table
import React, { Component } from 'react'; import { ToastContainer, ToastMessage } from '@allenfang/react-toastr'; const ToastrMessageFactory = React.createFactory(ToastMessage.animation); class Notification extends Component { // allow type is success,info,warning,error notice(type, msg, title) { this.refs....
mm-react/src/components/docs/Ckeditor.js
Ameobea/tickgrinder
//! Creates a ckeditor instance. Contains options for taking callbacks involved with saving changes. /* global CKEDITOR */ import React from 'react'; import { connect } from 'dva'; /** * After the CKEditor plugin has loaded, initialize the editor */ function awaitCk(rand) { setTimeout(() => { let ckeditorLoa...
docs/app/Examples/views/Comment/Variations/CommentExampleMinimal.js
clemensw/stardust
import React from 'react' import { Button, Comment, Form, Header } from 'semantic-ui-react' const CommentExampleMinimal = () => ( <Comment.Group minimal> <Header as='h3' dividing>Comments</Header> <Comment> <Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> <Comm...
app/javascript/mastodon/features/compose/components/search.js
summoners-riftodon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
src/chat/ui/NavBackAbs.js
elarasu/roverz-chat
import React from 'react'; import { TouchableOpacity, StyleSheet, } from 'react-native'; import { Icon } from 'react-native-elements'; import { Actions } from 'react-native-router-flux'; import PropTypes from 'prop-types'; import { isIphoneX } from 'react-native-iphone-x-helper'; import { AppColors } from '../../th...
admin/client/components/FooterBar.js
mikaoelitiana/keystone
import React from 'react'; import blacklist from 'blacklist'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object }, getDefaultProps () { return { style: {} }; }, getInitialState () { return { position: 'relative', width: 'auto', height: 'auto', top: 0 }; }, c...
packages/web/examples/NumberBox/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, NumberBox, ResultList, ReactiveList } from '@appbaseio/reactivesearch'; import './index.css'; const Main = () => ( <ReactiveBase app="good-books-ds" url="https://a03a1cb71321:75b6603d-9456-4a5a-af6b-a487b309eb61@appbase-demo-ans...
src/components/common/NavBarCancel.js
jinqiupeter/mtsr
import React from 'react'; import {StyleSheet, Platform, View, Text} from 'react-native'; import {Actions} from 'react-native-router-flux'; import dismissKeyboard from 'dismissKeyboard'; import * as components from '../'; export default () => { return <components.NavBarLeftButton text='取消' onPress={() => { ...
web/app/data/load.js
bitemyapp/serials
// @flow import {map, flatten} from 'lodash' import {Promise} from 'es6-promise' import React from 'react' type Route = { handler: { load:Function; } } export function loadAll(routes:Array<Route>, params:Object, query:Object, onData:(data:any)=>void) { var data = {loaded: false}; routes .filter(rout...
src/js/components/icons/base/PlatformPiedPiper.js
odedre/grommet-final
/** * @description PlatformPiedPiper SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textCol...
src/parser/priest/shadow/modules/spells/VampiricTouch.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import SmallStatisticBo...
apps/mk-app-versions/action.js
ziaochina/mk-demo
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current this.webapi = this.config.webapi } onInit = ({ component, i...
src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/AuthContent/index.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; import PropTypes from 'prop-types'; import Telephone, { CONTACTS, } from '@department-of-veterans-affairs/component-library/Telephone'; // Relative imports. import CernerCallToAction from '../../../components/CernerCallToAction'; import { getCernerURL } from 'platform/utili...
app/containers/NotFoundPage/index.js
nikb747/threejs-react-proto
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
spec/javascripts/jsx/files/components/FilePreviewSpec.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...
DemoApp/lib/profile-header/index.js
andyfen/react-native-UIKit
import React from 'react'; import { StyleSheet, Image, View, Dimensions, } from 'react-native'; const { width } = Dimensions.get('window'); const styles = StyleSheet.create({ container: { paddingBottom: 30, }, backgroundImg: { resizeMode: 'cover', height: 150, }, profileImg: { border...
lib/views/LayoutSectionView.js
tuomashatakka/reduced-dark-ui
'use babel' import React from 'react' import Field from '../components/layout/Field' const LayoutSection = (props) => { return ( <section className='section'> <Field scope='layout.uiScale' style='primary' /> <Field scope='layout.spacing' style='primary' /> <Field scope='layout.fixedTabBar' st...
src/Root.js
streamr-app/streamr-web
import React from 'react' import { Provider } from 'react-redux' import configureStore from './configureStore' import { ConnectedRouter } from 'react-router-redux' import { Route } from 'react-router-dom' import Application, { history } from './components/Application' const store = configureStore(history) ;(functi...
conference-management-system-front-end/src/components/paperManage.js
Kokosowys/conference-management-system
import React from 'react'; class PaperManage extends React.Component { render() { //var item = this.props.item; return ( <div className="userDiv"> <div> <p>this is your paper</p> </div> <br/><br/> </div> ...
blueprints/dumb/files/__root__/components/__name__/__name__.js
blinkmobile/things-mgr
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
examples/reactstrap/programmatic-submission.js
mkatanski/strap-forms
import React from 'react' import { Label } from 'reactstrap' import Form from './components/Form' import Input from './components/Input' import Group from './components/Group' class MyForm extends React.Component { handleSubmit = () => { // eslint-disable-next-line console.log('Programmatic submission') ...
blueocean-material-icons/src/js/components/svg-icons/action/speaker-notes.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSpeakerNotes = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-3h-8V6h8v2z"/> </SvgIcon> ); Ac...
examples/basic-jsx/src/index.js
4Catalyzer/found
import Link from 'found/Link'; import Redirect from 'found/Redirect'; import Route from 'found/Route'; import createBrowserRouter from 'found/createBrowserRouter'; import makeRouteConfig from 'found/makeRouteConfig'; import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; funct...
client/extensions/woocommerce/woocommerce-services/views/live-rates-carriers-list/carriers-list.js
Automattic/woocommerce-services
/** * External dependencies */ import React from 'react' import { localize } from 'i18n-calypso' import { Tooltip } from '@wordpress/components' /** * Internal dependencies */ import Card from 'components/card' import CarrierIcon from '../../components/carrier-icon' import Gridicon from 'gridicons' const Actions ...
src/app/components/pages/BlankPage.js
ucokfm/admin-lte-react
import React from 'react'; import PageWrapper from '../../../lib/page/PageWrapper'; import PageHeader from '../../../lib/page/PageHeader'; import Breadcrumb from '../../../lib/page/Breadcrumb'; import PageContent from '../../../lib/page/PageContent'; export default function BlankPage() { return ( <PageWrapper> ...
src/components/video_detail.js
polettoweb/ReactReduxStarter
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="em...
src/index.js
zestxjest/learn-redux-async-action
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import Root from './containers/Root' render( <Root />, document.getElementById('root') )
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
damoguyan8844/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
node_modules/react-bootstrap/es/MediaListItem.js
lucketta/got-quote-generator
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 ...
docs/app/Examples/modules/Progress/Variations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ProgressVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Inverted' des...
app/javascript/mastodon/components/column_back_button.js
mecab/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length === 1) this.context.r...
src/app/components/media/OcrButton.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { graphql, commitMutation } from 'react-relay/compat'; import { FormattedMessage } from 'react-intl'; import MenuItem from '@material-ui/core/MenuItem'; import ListItemIcon from '@material-ui/core/ListItemIcon...
src/svg-icons/image/brightness-7.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness7 = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69...
examples/custom-server-micro/pages/index.js
nelak/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
src/mention/__tests__/fixtures/initializeEditor.js
catalinmiron/react-tinymce-mention
import 'babel/polyfill'; import React from 'react'; import TinyMCE from 'react-tinymce'; import Mention from '../../Mention'; import simpleDataSource from './simple'; const plugins = [ 'autolink', 'autoresize', 'code', 'image', 'link', 'media', 'mention', 'tabfocus' ]; export default function initiali...
src/components/soporte/chat_servidor.js
bombe-software/demos
//NPM packages import React, { Component } from 'react'; import { connect } from "react-redux"; //Actions import { fetchConversaciones } from "../../actions"; //Components import Chat from "./chat"; /** * @class ChatServidor * @author Vicroni <drasa_tec@hotmail.com> * @author Someone <none> * @version 1.0 <1/12/17>...
message/src/MessageBox.js
zhufengnodejs/201701node
import React, { Component } from 'react'; import 'bootstrap/dist/css/bootstrap.css' class MessageBox extends Component { render() { return ( <div className="panel panel-default"> <div className="panel-heading"> <h3 className="text-center">珠峰留言板</h3> </div> <div className="p...
src/scripts/views/DataView.js
recordbleach/recordBleach_front_end
import React from 'react' import Header from './header' import Footer from './footer' import ACTIONS from '../actions' import $ from 'jquery' const DataInputView = React.createClass({ render: function() { return( <div className = 'dataInputView'> <Header/> <Peti...
src/svg-icons/action/supervisor-account.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSupervisorAccount = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ...
src/components/panels/index.js
mr47/react-redux-kit
/** * Created by mr470 on 02.04.2016. */ "use strict"; import React, { Component } from 'react'; class LeftPanel extends Component{ render() { const { children } = this.props; return ( <div className="column column-25"> {children} </div> ); }...
src/pages/chou-chou.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Chou Chou' /> )
client/src/screens/new-group.screen.js
srtucker22/chatty
import { _ } from 'lodash'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ActivityIndicator, Button, Image, StyleSheet, Text, View, } from 'react-native'; import { graphql, compose } from 'react-apollo'; import AlphabetListView from 'react-native-alpha-listview'; imp...
src/containers/ContactList.js
jp7internet/react-apz
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link, withRouter } from 'react-router-dom'; import Button from '../components/Button'; import { contactDelete, contactFetch } from '../actions'; class ContactList extends Component { componentWillMount() { this.props.onLoad...
src/svg-icons/content/weekend.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentWeekend = (props) => ( <SvgIcon {...props}> <path d="M21 10c-1.1 0-2 .9-2 2v3H5v-3c0-1.1-.9-2-2-2s-2 .9-2 2v5c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2zm-3-5H6c-1.1 0-2 .9-2 2v2.15c1.16.41 2 1.51...
docs/app/Examples/collections/Message/Variations/MessageExampleFloating.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' const MessageExampleFloating = () => ( <Message floating> Way to go! </Message> ) export default MessageExampleFloating
react/features/toolbox/components/Toolbox.web.js
KalinduDN/kalindudn.github.io
/* @flow */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import UIEvents from '../../../../service/UI/UIEvents'; import { setDefaultToolboxButtons, setToolboxAlwaysVisible } from '../actions'; import { abstractMapStateToProps, showCustomToolbarPopup } from '../func...
src/svg-icons/action/play-for-work.js
lawrence-yu/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 ...
client/src/components/Dashboard.js
jobn/iceman
// @flow import React, { Component } from 'react'; export default class Dashboard extends Component<*> { render() { return ( <h1>Dashboard</h1> ); } }
plugins/subschema-plugin-contentwrapper/src/index.js
jspears/subschema-devel
import React, { Component } from 'react'; import PropTypes from 'subschema-prop-types'; import { FREEZE_OBJ } from 'subschema-utils'; function strip(obj) { return !obj ? FREEZE_OBJ : Object.keys(obj).reduce(function (ret, key) { if (key == 'dataType' || key == 'fieldAttrs' || obj[key] ...
examples/docs/src/Containers/GettingStarted.js
react-material-design/react-material-design
import React from 'react'; const GettingStarted = () => ( <div> <h1>Getting Started</h1> <p>More to come...</p> <p>To install run: yarn add react-material-design</p> <p>Once installed import the react-material-design components you'll be usings like so: import {'{'} FAB {'}'} from '...
src/decorators/withViewport.js
magnusbae/arcadian-rutabaga
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/admin/components/Profesor.js
zeljkoX/e-learning
import React from 'react'; import {State, History} from 'react-router'; import { Menu, Mixins, Styles, RaisedButton, TextField, SelectField } from 'material-ui'; import Content from '../../components/layout/Content'; import ContentHeader from '../../components/layout/ContentHeader'; class Profesor extends React.Compo...
src/slides/stream-of-events.js
philpl/talk-observe-the-future
import React from 'react' import { Appear, Image, Text, S, Slide } from 'spectacle' import Marbles from '../components/marbles' export default ( <Slide transition={[ 'slide' ]}> <Marbles/> </Slide> )
src/components/ScoreGraph.js
tgevaert/react-redux-hearts
import React from 'react'; import { connect } from 'react-redux'; import { getPlayers, getScoreTotals } from '../reducers'; const GraphRowLabel = ({label}) => (<div className={"graph label"}>{label}</div>); const GraphLine = ({size}) => { const colors = ["#388e3c", "#ffd600", "#e65100", "#d50000", "#d50000"]; con...
yycomponent/breadcrumb/Breadcrumb.js
77ircloud/yycomponent
import React from 'react'; import { Breadcrumb as _Breadcrumb } from 'antd'; class Breadcrumb extends React.Component{ constructor(props){ super(props); } render(){ return (<_Breadcrumb {...this.props}/>); } } export default Breadcrumb
imports/ui/components/footer/Footer/Footer.js
pletcher/cltk_frontend
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import IconButton from 'material-ui/IconButton'; import PropTypes from 'prop-types'; import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; export default class Footer ex...
modules/plugins/italic/ItalicButton.js
devrieda/arc-reactor
import React from 'react'; import MenuButton from '../../components/MenuButton'; import ToggleMarkup from '../../helpers/Manipulation/ToggleMarkup'; import SelectedContent from '../../helpers/SelectedContent'; const ItalicButton = React.createClass({ statics: { getName: () => "italic", isVisible: (content, s...
ux/editor/TextEditorView.js
rameshvk/j0
'use strict'; require('./TextEditorView.less'); import React from 'react'; import ReactDOM from 'react-dom'; import BaseComponent from '../BaseComponent'; import Caret from './Caret'; import InvisibleInput from './InvisibleInput'; import TextSelectionView from './TextSelectionView'; import getTextNodeInfoForPoint fro...
web/src/presentation/get-retro-properties.js
mgwalker/retros
import React from 'react'; import CategoryTime from './set-retro-category-time'; function displayTime(minutes) { const wholeMinutes = Math.floor(minutes); const seconds = Math.round((minutes - wholeMinutes) * 60); return `${wholeMinutes} minutes${seconds > 0 ? ` and ${seconds} seconds` : ''}`; } function GetRet...
js/ClientApp.js
JoeMarion/react-netflix
import React from 'react' import { render } from 'react-dom' import '../public/style.css' const App = React.createClass({ render () { return ( <div className='app'> <div className='landing'> <h1>svideo</h1> <input type='text' placeholder='Search' /> <a>or Browse All</a...
node-siebel-rest/siebel-claims-native/screens/AddClaim.js
Pravici/node-siebel
import React, { Component } from 'react'; import { StyleSheet, View, TouchableHighlight, Text, Image, ActivityIndicator, Button, } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import { MaterialIcons } from '@expo/vector-icons'; import { callPostApi } from '../utils/rest'...
src/containers/Contact/Contact.js
Anshul-HL/blitz-windermere
import React, { Component } from 'react'; import { groupBy } from 'utils/extenders'; const addressList = [ { id: '1', title: 'Our Corporate Office', address: [ '3th floor, Bikaner Pinnacle,', 'No.1 Rhenius street,', 'Off Richmond Road,', 'Bangalore - 560025' ], city: 'Bang...
client/app/partials/app-nav-bar/index.js
nebulae-io/coteries
import React, { Component } from 'react'; import { IndexLink, Link } from 'react-router'; import cns from 'classnames'; import Flex from 'components/flex'; import styles from './style.scss'; function mapStateToProps(state) { return {}; } function mapDispatchToProps(dispatch) { return { todoActions: bindActi...
node_modules/react-bootstrap/es/Alert.js
jkahrs595/website
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
client/src/Title.js
mit-teaching-systems-lab/swipe-right-for-cs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './Title.css'; import logoSrc from './img/swipe.gif'; import {Interactions} from './shared/data.js'; import Swipeable from './components/Swipeable.js'; import Delay from './components/Delay.js'; import SwipeCue from './components/Swipe...
docs/src/app/components/pages/components/DatePicker/ExampleInline.js
spiermar/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; /** * Inline Date Pickers are displayed below the input, rather than as a modal dialog. */ const DatePickerExampleInline = () => ( <div> <DatePicker hintText="Portrait Inline Dialog" container="inline" /> <DatePicker hintText="Land...
bayty/src/components/LoginForm.js
Asmaklf/bayty
import React, { Component } from 'react'; import { Text } from 'react-native'; import { connect } from 'react-redux'; import { emailChanged, passwordChanged, loginUser } from '../actions'; import { Card, CardSection, Button, Input, Spinner } from './common'; class LoginForm extends Component { onEmailChange(text) { ...
docs/src/Anchor.js
pandoraui/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className="anchor"> <span className="anchor-ic...
app/components/dashboard/home/CustomTagCloud.js
mchlltt/mementoes
// Import dependencies and components. import React from 'react'; import {TagCloud} from 'react-tagcloud'; // Create and export component class. // I created this custom component because the default TagCloud refreshed anytime the page state changed. export default class CustomTagCloud extends TagCloud { construct...
client/app/bundles/HelloWorld/components/general_components/table/sortable_table/table_sorting_mixin.js
ddmck/Empirical-Core
// This React mixin handles client-side sorting. // Use it ljke so: // Call defineSorting() in componentDidMount() of your component. // Call sortResults() when a sort changes (use as a handler function) // Call applySorting() on your data before displaying it in render(). import React from 'react' import _ from 'under...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
fengchenlianlian/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const GroupProfileMembers = React.createClass(...
src/components/rows/input/AnnualLeave.js
hikurangi/day-rate-calculator
import React from 'react'; import { TableRow, TableRowColumn } from '@material-ui/core/Table'; import TextField from '@material-ui/core/TextField'; const AnnualLeave = ({ handleChange }) => { return ( <TableRow> <TableRowColumn> <h3>Your total number of annual leave days</h3> </TableRowColum...
src/index.js
datchley/react-scale-text
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import warn from 'warning'; import { generate as shortId } from 'shortid'; import shallowEqual from './shallow-equal'; import getFillSize from './get-fillsize'; import { getStyle, css } from './dom-utils'; class ScaleText extends Component {...
examples/src/components/CustomRender.js
pedroseac/react-select
import React from 'react'; import Select from 'react-select'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setState({ value }); console.log('Support level sel...
packages/v4/src/content/extensions/extensions-data-list.js
patternfly/patternfly-org
import React from 'react'; import { DataList, DataListItem, DataListItemRow, DataListItemCells, DataListCell, Title } from '@patternfly/react-core'; export const ExtensionsDataList = (props) => ( <DataList aria-label="Community extensions"> {props.data.map(item => { cons...
www/components/add-poo.js
capaj/postuj-hovna
import React from 'react' import ImgUploader from './img-uploader' import GoogleMap from './google-map' import {photo} from '../services/moonridge' import backend from '../services/moonridge' export default class AddPoo extends React.Component { constructor(...props) { super(...props) this.state = {} } ...
readable/src/containers/PostDetail.js
custertian/readable
import React from 'react' import {Link} from 'react-router-dom' import {connect} from 'react-redux' import { Button, Card, Layout, Menu, Breadcrumb, Input, Tree } from 'antd' const {TextArea} = Input; const {Header, Content, Footer} = Layout const TreeNode = Tree.TreeNode class PostDetail extends React....