path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
demo/components/Logo.js
Adphorus/react-date-range
import React from 'react'; import PropTypes from 'prop-types'; import Styled from 'rsg-components/Styled'; import logo from './logo.svg'; const styles = ({ fontFamily, color }) => ({ logo: { display: 'flex', alignItems: 'center', margin: 0, fontFamily: fontFamily.base, fontSize: 18, fontWeigh...
Waterfall.js
gimhol/react-native-waterfall
import React, { Component } from 'react'; import { ScrollView, View, StyleSheet} from 'react-native'; import ItemView from './ItemView' var styles = StyleSheet.create({ root: { flex:1, alignSelf:'stretch' }, container: { alignSelf:'stretch' }, header:{ } }) export default class Waterfall extends...
katharsis-ui/src/main/resources/App.js
adnovum/katharsis-framework
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
docs/src/pages/components/tree-view/RecursiveTreeView.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TreeView from '@material-ui/lab/TreeView'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import ChevronRightIcon from '@material-ui/icons/ChevronRight'; import TreeItem from '@material-ui/lab/TreeItem'; const data = ...
src/components/HelpContents/HelpDialog.js
synchu/schema
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import {Dialog, Button, Tabs, Tab} from 'react-toolbox' import {SearchContent, SideNavigation, TopMenuContent, AppSettingsContent, GeneralContent} from '../HelpContents/HelpContents' import classes from './HelpDialog.scss' export class HelpD...
client/app/components/Body/Body.js
sfabrizio/bloggy
import React from 'react'; import BlogStore from '../../stores/BlogStore'; import * as BlogActions from '../../actions/BlogActions'; import BlogItemRow from './BlogItemRow'; import BlogEntryCreator from './BlogEntryCreator'; import Loading from './Loading'; export default class Body extends React.Component { cons...
public/javascripts/main.js
nicrou/react_js_playground
import React from 'react'; import ReactDOM from 'react-dom'; import Counter from './counter'; document.addEventListener('DOMContentLoaded', function() { ReactDOM.render( React.createElement(Counter), document.getElementById('mount') ); });
src/components/layout/SimpleLayout/SimpleLayout.js
jdbence/capstone-project
import React, { Component } from 'react'; import { Layout } from 'react-toolbox/components/index.js'; import { withRouter } from 'react-router'; export default function (Wrapped){ class SimpleLayout extends Component { static propTypes = { router: React.PropTypes.shape({ push: React.PropTyp...
app/javascript/mastodon/features/reblogs/index.js
masto-donte-com-br/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
dsopel94/create-react-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...
packages/reactReduxFormBase/DEV/schemaData.js
daniloster/react-experiments
import React from 'react'; import { combineValidations } from '../src/formUtils'; export default { 'contacts[].value': combineValidations(({ data, path, value }) => { const isValid = !!value; const message = isValid ? null : ( <span key={`${path}-required`} className="react__form-item-validation-messag...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/phonelink-lock.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationPhonelinkLock = (props) => ( <SvgIcon {...props}> <path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 9.5V11c-.6 0-1.2.6-1.2 1.2v3.5c0 ...
src/helpers/universalRouter.js
sylnp0201/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export function createTr...
src/svg-icons/maps/local-hotel.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsLocalHotel = pu...
src/app/components/media/AutoCompleteMediaItem.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { makeStyles } from '@material-ui/core/styles'; import Box from '@material-ui/core/Box'; import Tooltip from '@material-ui/core/Tooltip'; import Checkbox from '@material-ui/core/Checkbox'; import Typogra...
packages/reactor-kitchensink/src/examples/Grid/GroupedGrid/GroupedGrid.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container, Grid, Toolbar, SegmentedButton, Button, Column } from '@extjs/ext-react'; import './data'; Ext.require([ 'Ext.grid.cell.Number', 'Ext.grid.cell.Widget', 'Ext.grid.SummaryRow', 'Ext.ux.rating.Picker' ]); export default class GroupedGridExamp...
wwwroot/app/src/components/MyRecipesPage/MyRecipesPageContainer.js
AlinCiocan/FoodPlanApp
import React, { Component } from 'react'; import { ApiRequest } from '../../services/ApiRequest'; import Routes from '../../services/Routes'; import RecipeService from '../../services/RecipeService'; import TopBar from '../TopBar/TopBar'; import RecipesList from './RecipesList'; import ConfirmModal from '../base/modal/...
src/client/app/index.js
mapkiwiz/sectorisation
import React from 'react'; import ReactDOM from 'react-dom'; import {App} from './app'; import {Provider} from 'react-redux'; import {reducer} from './reducers/index'; import {loadProject, saveProject} from './shared/project'; import URLSearchParams from 'url-search-params'; const Redux = require('redux'); class Messe...
src/svg-icons/maps/add-location.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
fields/types/azurefile/AzureFileColumn.js
Redmart/keystone
import React from 'react'; var AzureFileColumn = React.createClass({ renderValue () { var value = this.props.data.fields[this.props.col.path]; if (!value) return; return <a href={value.url} target="_blank">{value.url}</a>; }, render () { return ( <td className="ItemList__col"> <div className="ItemLis...
components/Login.js
HossamSamir/instagramClone
import React from 'react'; import { AppRegistry, StyleSheet, Alert, Text, Button, View, Image, TextInput, TouchableOpacity, TouchableHighlight } from 'react-native'; export default () => ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> <Image sour...
src/svg-icons/av/volume-up.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeUp = (props) => ( <SvgIcon {...props}> <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91...
mxcube3/ui/containers/SampleViewContainer.js
meguiraun/mxcube3
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import SampleImage from '../components/SampleView/SampleImage'; import MotorControl from '../components/SampleView/MotorControl'; import PhaseInput from '../components/SampleView/PhaseInput'; imp...
packages/icons/src/md/communication/ImportContacts.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdImportContacts(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42 8c1.5.5 2.8 1.1 4 2v29.2c0 .5-.5 1-1 1-.2 0-.3 0-.5-.1-2.8-1.5-6.2-2.1-9.5-2.1-3.4 0-8.3 1.3-11 3-2.9-2.2-7.1-3-11-3-2.9 0-6.8.9-9.5 2.2-....
actor-apps/app-web/src/app/components/SidebarSection.react.js
hmoraes/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
NavigationReactMobile/sample/isomorphic/server.js
grahammendick/navigation
import express from 'express'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { NavigationHandler } from 'navigation-react'; import { NavigationMotion } from 'navigation-react-mobile'; import getStateNavigator from './getStateNavigator'; import Isomorphic from './Isomorphic'; var app ...
lib/index.js
gavindoughtie/multi-vendor-bundles
import React from 'react'; import ReactDOM from 'react-dom'; export default function entry() { const reactRoot = document.createElement('div'); reactRoot.id = 'my-react-root'; document.body.appendChild(reactRoot); ReactDOM.render(<h1>Loaded All Modules</h1>, reactRoot); } entry();
src/components/ThemeMenu.js
grommet/grommet-docs
// (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Anchor from 'grommet/components/Anchor'; import Layer from 'grommet/components/Layer'; import Box from 'grommet/components/Box'; import Menu from 'grommet/components...
src/components/Roster/Roster.js
footballhackday/hackday-example
'use strict'; import React, { Component } from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Player from './Player'; class Roster extends Component { constructor(props) { super(props); this.state = { roster: null }; } render() { if(!this.state.roster) { return null; } ...
src/native/app/App.js
chad099/react-native-boilerplate
// @flow import type { State } from '../../common/types'; import * as themes from '../themes'; import Menu from './Menu'; import Page from './Page'; import React from 'react'; import SideMenu from 'react-native-side-menu'; import common from '../../common/app/common'; import { Baseline } from '../components'; import { ...
Libraries/Components/Keyboard/Keyboard.js
naoufal/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/svg-icons/maps/edit-location.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsEditLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm-1.56 10H9v-1.44l3.35-3.34 1.43 1.43L10.44 12zm4.45-4.45l-.7.7-1.44-1.44.7-....
js/mutations/AddPlaylistMutation.js
ChrisMLee/relay-mongoose-plair
import Relay from 'react-relay'; import React from 'react'; export default class AddPlaylistMutation extends Relay.Mutation { // static fragments = { // user: () => Relay.QL` // fragment on User { // id // } // ` // }; getMutation () { return Relay.QL`mutation { addPlaylist }`; } getV...
src/routes/home/index.js
luanlv/comhoavang
import React from 'react'; import Home from './Home'; import fetch from '../../core/fetch'; import needFetch from '../../core/needFetch'; import Layout from '../../components/Layout'; import { setData } from '../../actions/data'; import { showLoading, hideLoading } from 'react-redux-loading-bar' export default { pat...
packages/ringcentral-widgets/components/SpinnerOverlay/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Spinner from '../Spinner'; import styles from './styles.scss'; export default function SpinnerOverlay({ className, }) { return ( <div className={classnames(styles.root, className)} > <div className=...
src/components/Body.js
Diane27/big-red-hacks-2017
import React, { Component } from 'react'; export default class Body extends Component { render() { return ( <div className="body"> <p>We Are trip.edu</p> </div> ); } }
src/components/Root.js
tolylya/octoberry
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import routes from '../routes.tsx'; import { Router } from 'react-router'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <Prov...
src/desktop-index.js
ericyd/surfplotjs
/** * This is used for the Electron build. * The menu bar handles all other views, * so we only need to mount the plotter. */ import React from 'react'; import ReactDOM from 'react-dom'; import Plotter from './views/Plotter'; import './index.scss'; if (typeof window !== undefined) { ReactDOM.render( <...
frontend/src/components/loader/loader.js
reabreu/discount-ascii-warehouse
import React from 'react'; import SpinningLoader from './loader_style'; export default function () { return ( <SpinningLoader className="loader">Loading...</SpinningLoader> ); }
templates/rubix/node-seed/server.babel.js
jeffthemaximum/jeffline
import path from 'path'; import express from 'express'; import compression from 'compression'; import cookieParser from 'cookie-parser'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import routes from './src/routes'; import { renderHTMLString } from '@sketchpixy/rubix/lib/node/router'; im...
src/view/components/pages/NotFoundPage.js
Danny-Robinson/bt-bingo
/** * Created by 611218504 on 07/06/2017. */ import React from 'react'; const NotFoundPage = () => <div className="notFound"> <h3><font color="white">404 page not found</font></h3> <p><font color="white">These aren't the pages you were looking for...</font></p> <img src="data:image/jpeg;b...
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Original.js
kdambekalns/neos-development-collection
import React from 'react'; export default class Original extends React.PureComponent { render() { const {persistenceIdentifier, previewUri, width, height} = this.props; return ( <ul className="neos-thumbnails"> <li className="asset" data-asset-identifier={persistenceIde...
website/core/SnackPlayer.js
doochik/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/PopupContainer.js
ericsoco/react-leaflet
import React from 'react'; import MapLayer from './MapLayer'; export default class PopupContainer extends MapLayer { render() { const children = this.getClonedChildrenWithMap({ popupContainer: this.leafletElement, }); return <div style={{display: 'none'}}>{children}</div>; } }
antd-dva/dva-restart/src/components/AddTodo.js
JianmingXia/StudyTest
import React, { Component } from 'react'; import { Form, Input, Button } from 'antd'; const FormItem = Form.Item; // const AddTodo = ({ onAdd }) => { // const { getFieldDecorator } = this.props.form; // function onSubmit() { // console.log(this); // } // return ( // <div> // ...
src/navbar/navbar.app.js
joeldenning/single-spa-examples
import React from 'react'; import ReactDOM from 'react-dom'; import singleSpaReact from 'single-spa-react'; import navbar from './navbar.component.js'; /* The navbar app is an app that is always active and is responsible for showing the top navbar. * It is written in React and does not even use a router like react-ro...
wrappers/toml.js
Cspeisman/cspeisman.github.io
import React from 'react' import toml from 'toml-js' import DocumentTitle from 'react-document-title' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return (...
src/components/controls/stateless/AuctionListItemControl.js
mm-taigarevolution/tas_web_app
import React from 'react'; import PropTypes from 'prop-types'; import {Media, Container, Row, Col, Badge } from 'reactstrap'; import TimeRemainingControl from './TimeRemainingControl'; import WithTapAnimated from '../stateful/TapAnimator'; const containerStyle = { margin: '15px 0px', padding: '10px', border: '1p...
blueocean-material-icons/src/js/components/svg-icons/places/beach-access.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const PlacesBeachAccess = (props) => ( <SvgIcon {...props}> <path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95-3.93 10.35.02 14.3l2.86-2.86C5.7...
node_modules/recompose/build/Recompose.js
ClaaziX/foodshare
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
src/entypo/RemoveUser.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--RemoveUser'; let EntypoRemoveUser = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M15.989,19.129c0-2.246-2.187-3.389-4.317-4.307c-2.123-0.914-2.801-1.684-2.801-3.334c0-0.989,0...
examples/antd-demo/src/routes/IndexPage.js
zjxpcyc/xrc-form
import React from 'react'; import { connect } from 'dva'; import { Form, Input, Button, Modal } from 'antd'; import FormBody from '../../../../xrc-form/lib'; import styles from './IndexPage.css'; const WrapItem = (props) => { return ( <Form.Item labelCol={{ xs: { span: 24 }, sm: { span: 6 }...
src/svg-icons/image/audiotrack.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAudiotrack = (props) => ( <SvgIcon {...props}> <path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/> </SvgIcon> ); ImageAudiotrack = p...
src/components/Mousetrap.js
zebras-filming-videos/streamr-web
import React from 'react' import forEach from 'lodash/forEach' import mousetrap from 'mousetrap' export default class Mousetrap extends React.Component { componentDidMount () { forEach(this.props.bindings || [], (callback, key) => { mousetrap.bind(key, callback) }) } componentWillUnmount () { ...
src/components/fields/FieldErrors.js
zebras-filming-videos/streamr-web
import React from 'react' export default ({ errors }) => ( <ul className='field-errors'> {errors.map((error) => <li className='field-error' key={error}>{error}</li> )} </ul> )
src/entypo/ArrowWithCircleRight.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ArrowWithCircleRight'; let EntypoArrowWithCircleRight = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,0.4c-5.303,0-9.601,4.298-9.601,9.6c0,5.303,4.298,9.601,9.601,9.601c5....
modules/design/messages.js
liors/wix-chat-settings
import React from 'react'; import * as UI from 'editor-ui-lib'; class Messages extends React.Component { render() { return ( <div> <UI.sectionDividerLabeled label="Messages"/> <UI.fontPicker title="Message text" wix-param="design_m...
src/svg-icons/image/looks-5.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks5 = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/> </SvgI...
src/svg-icons/social/notifications-active.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsActive = (props) => ( <SvgIcon {...props}> <path d="M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02...
src/Picker/SelectField.js
skystebnicki/chamel
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import DropDownArrow from '../svg-icons/drop-down-arrow'; import Paper from '../Paper/Paper'; import Menu from '../Menu/Menu'; import Popover from '../Popover/Popover'; import ThemeService from '../styles/Cha...
react-flux-mui/js/material-ui/src/svg-icons/device/signal-wifi-4-bar-lock.js
pbogdan/react-flux-mui
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...
src/svg-icons/image/rotate-left.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateLeft = (props) => ( <SvgIcon {...props}> <path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1....
wwwroot/app/src/components/TopBar/TopBar.js
AlinCiocan/FoodPlanApp
import React, { Component } from 'react'; import { Link } from 'react-router'; import logo from './logo.svg'; export default class TopBar extends Component { renderAddButton() { if (this.props.addButton) { return ( <button className="top-bar__side top-bar__s...
fields/types/textarea/TextareaFilter.js
lojack/keystone
import _ from 'underscore'; import classNames from 'classnames'; import React from 'react'; import { FormField, FormInput, FormSelect } from 'elemental'; const CONTROL_OPTIONS = [ { label: 'Matches', value: 'matches' }, { label: 'Contains', value: 'contains' }, { label: 'Begins with', value: 'beginsWith' }, { lab...
app/components/PointMap/index.js
GuiaLa/guiala-web-app
/** * * PointMap * */ import React from 'react'; import styles from './styles.css'; class PointMap extends React.Component { render() { return ( <div className={ styles.pointMap }> <h1>MAPAAAA</h1> </div> ); } } export default PointMap;
src/api/index.js
DigitalGlobe/jetset
import React from 'react'; import PropTypes from 'prop-types'; import logger, { formatBranchArgs } from '../lib/log'; import createActions from './main'; import store from '../store'; export default class Api extends React.Component { static propTypes = { url: PropTypes.string.isRequired, // see ...
app/components/SubredditDescription.js
nantaphop/redd
import React from 'react' import Paper from 'material-ui/Paper' import styled from 'styled-components' import { compose, withHandlers, setDisplayName } from 'recompose' import { inject, observer } from 'mobx-react' import Typography from 'material-ui/Typography' import { CircularProgress } from 'material-ui/Progress'; ...
src/organisms/cards/PolicyCard/PolicyActions.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import accounting from 'accounting'; import Text from 'atoms/Text'; import Layout from 'atoms/Layout'; import Button from 'atoms/Button'; import Hide from 'wrappers/Hide'; import Spacer from 'atoms/Spacer'; import styles from './policy_card.module.scss'; c...
ui/src/containers/ModelAutoComplete/index.js
LearningLocker/learninglocker
import React from 'react'; import { Map } from 'immutable'; import { compose, withProps, withState } from 'recompose'; import AutoComplete2 from 'ui/components/AutoComplete2'; import ModelInput from 'ui/components/AutoComplete2/Inputs/SingleInput/ModelInput'; import ModelOptionList from 'ui/components/AutoComplete2/Opt...
client/src/app/install/install-step-3-database.js
opensupports/opensupports
import React from 'react'; import _ from 'lodash'; import history from 'lib-app/history'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import Button from 'core-components/button'; import Header from 'core-components/header'; import Form from 'core-components/form'; import FormField from 'core-...
src/SubcategoryList/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Spacer from '../Spacer'; import ProgressbarLabeledPercentage from '../ProgressbarLabeledPercentage'; import Typography from '../Typography'; import Wrapper from '../Wrapper'; import styles from './styles.css'; class SubcategoryList extends React.Com...
src/lib/middlewares/htmlView.js
kaishui/pwfe-server
import React from 'react' import RenderFacade from './util/facade' import cache from '../common/cache' import env from '../common/env' const App = env.getParam('app') /** * 进行html模板渲染的组件。 * @param ctx * @param next */ async function htmlView(ctx, next) { if (ctx.isMatch) { //获取React静态文本和redux状态数据 ...
src/CarouselItem.js
omerts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
3-lifecycle-events/src/TodoList.js
mariusz-malinowski/tutorial-react
import React, { Component } from 'react'; import TodoItem from './TodoItem'; import AddTodo from './AddTodo'; class TodoList extends Component { constructor(props) { super(props); this.state = { todos: props.todos }; } onAddTodo = (todoName) => { this.setState({ todos: [{ na...
react-fundamentals-es6/lessons/06-refs/App.js
3mundi/React-Bible
// https://jsbin.com/qiwoxax/edit?js,output import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { constructor(){ super(); this.state = { red: 0, green: 0, blue: 0 } this.update = this.update.bind(this) } update(e){ this.setState({ ...
app/src/Frontend/modules/mission/components/page/index.js
ptphp/ptphp
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; var Tappable = require('react-tappable'); import './index.less'; export default React.createClass( { componentDidMount(){ const {title} = this.props; Utils.set_site_title(title); }, render() { const ...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
TondaHack/create-react-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...
src/style-controls-block.js
ryapapap/draft-editor
import React, { Component } from 'react'; import { EditorState, RichUtils } from 'draft-js'; import { StyleControls } from './style-controls-base'; export default class BlockStyleControls extends Component { static propTypes = { editorState: React.PropTypes.instanceOf(EditorState).isRequired, onChange: Reac...
client/src/pages/Home.react.js
wenhao/fixed-asset
import React from 'react' import { RaisedButton, FontIcon, Paper, TextField } from 'material-ui' import { State } from 'react-router' import userApi from '../services/user' var Home = React.createClass({ mixins: [State], getInitialState() { return { title: '' } }, render() { ret...
example/examples/Callouts.js
jiaminglu/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import CustomCallout from './CustomCallout'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 31....
src/Parser/Warlock/Demonology/CHANGELOG.js
enragednuke/WoWAnalyzer
import React from 'react'; import { Chizu } from 'MAINTAINERS'; import Wrapper from 'common/Wrapper'; import ItemLink from 'common/ItemLink'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; export default [ { date: new Date('2017-09-30'), chang...
src/components/CheckoutPane.js
longyarnz/WelFurnish-E-Commerce
import React, { Component } from 'react'; export default class CheckoutPane extends Component { constructor(props){ super(props); this._click = this._click.bind(this); this.state = { pane: "pane", mount: true } } _click(){ this.setState({pane: "delete-node"}); setTimeout(()=>this.props.remov...
app/containers/HomePage/index.js
jilla720/messidge
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
docs/src/app/components/pages/components/IconMenu/Page.js
tan-jerene/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 iconMenuReadmeText from './README'; import IconMenuExampleSimple from './...
server/frontend/src/index.js
cs472-spots/spots
// src/index.js import React from 'react'; import ReactDOM from 'react-dom'; import { hashHistory } from 'react-router'; import { Provider } from 'nectarine'; // eslint-disable-next-line import Store from './store/Store.js'; import Routes from './routes/index.js'; import './index.css'; //Renders the components passed...
webapp/client/src/TourPage.js
mikemag/MonkeyCAM
/* * Copyright 2013-2017 Michael M. Magruder (https://github.com/mikemag) * * This source code is licensed under the Apache license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import { Grid, Row, Col, Panel, Thumbnail } from 'react-bootstrap'...
classic/src/scenes/wbfa/generated/FARBolt.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faBolt } from '@fortawesome/pro-regular-svg-icons/faBolt' export default class FARBolt extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faBolt} />) } }
packages/vulcan-i18n/lib/modules/message.js
VulcanJS/Vulcan
import React, { Component } from 'react'; import { intlShape } from './shape'; import { registerComponent } from 'meteor/vulcan:lib'; const FormattedMessage = ({ id, values, defaultMessage = '', html = false, className = '' }, { intl }) => { let message = intl.formatMessage({ id, defaultMessage }, values); const c...
src/TPA/Label/Label.js
skyiea/wix-style-react
import React from 'react'; import {string} from 'prop-types'; import classNames from 'classnames'; import WixComponent from '../../BaseComponents/WixComponent'; import tpaStyleInjector from '../TpaStyleInjector'; let styles = {locals: {}}; try { styles = require('!css-loader?modules&camelCase&localIdentName="[path][...
src/components/views/globals/NewVersionBar.js
martindale/vector
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
app/javascript/mastodon/features/blocks/index.js
amazedkoumei/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
lib/component.js
bekher/hyperterm
import React from 'react'; import { StyleSheet, css } from 'aphrodite-simple'; import { shouldComponentUpdate } from 'react-addons-pure-render-mixin'; export default class Component extends React.Component { constructor () { super(); this.styles_ = this.createStyleSheet(); this.cssHelper = this.cssHelpe...
test/components/Markdown-test.js
primozs/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import {test} from 'tape'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Markdown from '../../src/js/components/Markdown'; test('loads a paragraph Markdown', (t) => { t.plan(3); const shallowRenderer = TestU...
app/containers/LanguageProvider/index.js
shafeeqonline/xt-quiz-app
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
docs/src/sections/TransitionSection.js
mmarcant/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function TransitionSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
fluxArchitecture/src/js/main.js
3mundi/React-Bible
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app' ReactDOM.render(<App />, document.getElementById('main'));
src/BootstrapMixin.js
kwnccc/react-bootstrap
import React from 'react'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const BootstrapMixin = { propTypes: { /** * bootstrap className * @private */ bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES), /** * Style variants * @type {("...
web/react/src/client/pages/BadOS/BadOS.js
JamesMillercus/Portfolio-Website
import React, { Component } from 'react'; import Error from './../../components/locs/Error/Error'; class BadOS extends Component { render() { /** LOGIC FOR DISPLAYING CONTENT CORRECLTY ON DEVICE + BROWSER **/ const htext = "This website can't be displayed on old devices"; const ptext = 'Please update yo...
docs/src/stories/SubComponents.js
byumark/react-table
/* eslint-disable import/no-webpack-loader-syntax */ import React from 'react' import _ from 'lodash' import namor from 'namor' import ReactTable from '../../../lib/index' class Story extends React.PureComponent { constructor (props) { super(props) const data = _.map(_.range(5553), d => { return { ...
web/src/modules/icons/Museum.js
HobartMakers/DigitalWalkingTours
import React from 'react' const MuseumIcon = props => <svg width="15px" height="15px" viewBox="0 0 15 15" style={{enableBackground: 'new 0 0 15 15',}} {...props} > <path id="path7509" d="M7.5,0L1,3.4453V4h13V3.4453L7.5,0z M2,5v5l-1,1.5547V13h13v-1.4453L13,10 V5H2z M4.6152,6c0.169-0.0023,0.3318,0.0639,0.45...