path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/modules/core/components/.stories/main_layout.js
TheAncientGoat/mantra-sample-blog-coffee
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import MainLayout from '../main_layout.coffee'; storiesOf('core.MainLayout', module) .add('default view', () => { const content = () => (<p>This is the content inside the Layout.</p>) return ( <MainLayout content={content...
src/components/clusters/summary/clusterSummaryComponent.js
tombolaltd/ecs-monitor
import React, { Component } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { loadingBar } from '../../loading'; import { clusterStream$ } from '../../../dataStreams/clusterStreams'; import './clusterSummaryComponent.css'; function mapClusterSummaryEntryToDOM(entry) { ...
packages/material-ui-icons/src/ImageAspectRatio.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ImageAspectRatio = props => <SvgIcon {...props}> <path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6...
src/index.js
sankhadeeproy007/react-football-app
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { Provider } from 'react-redux'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; injectTapEventP...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/scheduler/resources/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { componentDidMount () { this.refs.myScheduler.ensureAppointmentVisible('id1'); } render () { let appointments = new Arr...
src/index.js
jritterbush/fulljs
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App initialData={window.initialData} />, document.getElementById('root') );
src/common/StatusLabel/StatusLabel.js
Syncano/syncano-dashboard
import React from 'react'; import ActiveStatusLabel from './ActiveStatusLabel'; import InactiveStatusLabel from './InactiveStatusLabel'; const StatusLabel = ({ isActive = false, activeStyles, inactiveStyles, withActive = true, withInactive = true }) => { if (isActive && withActive) { return <ActiveStatusLabel s...
specs/helper.js
oisu/react-modal
// The following eslint overrides should be removed when refactoring can occur /* eslint react/no-render-return-value: "warn" */ import React from 'react'; import ReactDOM from 'react-dom'; import Modal from '../lib/components/Modal'; let currentDiv = null; export function renderModal (props, children, callback) { ...
src/pages/Home/components/EditorAttributes/EditorAttributes.js
caspg/datamaps.co
import React from 'react' import { grey300 } from '@src/styles/colors'; import AttributeItem from './components/AttributeItem' const EditorAttributes = () => <div className="row center-xs"> <div className="col-xs-10"> <div className="EditorAttributes__container"> <div className="row around-xs"> ...
demo/index.js
varya/react-mapbox
import React from 'react'; import {render} from 'react-dom'; import MapBox from "../"; require("!style!css!./index.css"); render( <div> <h1>Hello, world!</h1> <div className="map"> <MapBox mapId="mapbox.streets" zoomControl={false} token="pk.eyJ1IjoidG9pdm9u...
.history/src/components/InstaCelebs/index_20171001005156.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg', e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/12071219_1640349196212432...
src/Divider/Divider.js
kittyjumbalaya/material-components-web
import React from 'react'; import PropTypes from 'prop-types'; const Divider = (props, context) => { const { inset, style, ...other } = props; const { baseTheme, prepareStyles, } = context.muiTheme; const styles = { root: { margin: 0, marginTop: -1, marginLeft: ins...
src/Parser/Warlock/Affliction/Modules/Items/Tier20_4set.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; class Tier20_4set ...
src/people/people.js
codehangar/react-redux-rockstarter
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import CircularProgress from 'material-ui/CircularProgress'; import Paper from 'material-ui/Paper'; import { List, ListItem } from 'material-ui/List'; import { container } from '../styles/main.scss'; import { fetchPeop...
src/components/icon/icon.js
woshisbb43/coinMessageWechat
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; import deprecationWarning from '../../utils/deprecationWarning'; const deprecateValue = { 'safe_success': 'safe-success', 'safe_warn': 'safe-warn', 'success_circle': 'success-circle', 'succes...
js/Landing.js
daninmotion/react-02
import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router' import {setSearchTerm} from './actionCreators' const {string, func, object} = React.PropTypes const Landing = React.createClass({ contextTypes: { router: object }, propTypes: { searchTerm: string, dispatch: func }...
app/scripts/hocs/with-modal.js
hms-dbmi/higlass
import React from 'react'; import toVoid from '../utils/to-void'; const { Provider, Consumer } = React.createContext({ close: toVoid, open: toVoid, }); // Higher order component const withModal = (Component) => React.forwardRef((props, ref) => ( <Consumer> {(modal) => <Component ref={ref} {...props} ...
node_modules/exponent/src/Components/Video.js
15chrjef/mobileHackerNews
import React from 'react'; import ReactNative from 'react-native'; import Asset from '../Asset'; const { Component, PropTypes, } = React; const { StyleSheet, requireNativeComponent, NativeModules, View, } = ReactNative; const styles = StyleSheet.create({ base: { overflow: 'hidden', }, }); expor...
src/components/GithubButton/GithubButton.js
micooz/react-redux-universal-hot-example
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
src/components/Radial.react.js
docker/kitematic
import React from 'react'; import classNames from 'classnames'; var Radial = React.createClass({ render: function () { var percentage; if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) { percentage = ( <div className="percentage"><...
src/sections/Projects.js
kazupooot/kazupooot.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { Image, Text, Flex, Box } from 'rebass'; import { StaticQuery, graphql } from 'gatsby'; import styled from 'styled-components'; import Fade from 'react-reveal/Fade'; import Section from '../components/Section'; import { CardContainer, Card } from '....
admin/client/App/shared/Popout/index.js
Pop-Code/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const SIZES = { arrowHeight: 12, arrowWidth: ...
test/autowhatever/multi-section/AutowhateverApp.js
moroshko/react-autosuggest
import React, { Component } from 'react'; import sinon from 'sinon'; import Autowhatever from '../../../src/Autowhatever'; import sections from './sections'; let app; export const renderSectionTitle = sinon.spy((section) => ( <strong>{section.title}</strong> )); export const getSectionItems = sinon.spy((section) =...
actor-apps/app-web/src/app/components/dialog/messages/Image.react.js
liruqi/actor-platform-v0.9
import React from 'react'; import classnames from 'classnames'; import Lightbox from 'jsonlylightbox'; // lightbox init const lightbox = new Lightbox(); const lightboxOptions = { animation: false, controlClose: '<i class="material-icons">close</i>' }; lightbox.load(lightboxOptions); let cache = {}; class Image ...
docs/src/pages/components/pickers/DatePickers.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; const useStyles = makeStyles((theme) => ({ container: { display: 'flex', flexWrap: 'wrap', }, textField: { marginLeft: theme.spacing(1), marginRight: theme.spacin...
src/svg-icons/action/view-list.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList = pure(ActionViewList); Actio...
docs/server.js
IveWong/react-bootstrap
import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development = process.env.NODE_ENV !== 'p...
src/Spinner.js
chris-gooley/react-materialize
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const Spinner = ({ color, only }) => { let spinnerClasses = { 'spinner-layer': true }; if (only) { spinnerClasses['spinner-' + color + '-only'] = true; } else { spinnerClasses['spinner-' + color] = true; }...
src/icons/IosChatbubble.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosChatbubble extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,96C149.9,96,64,165.1,64,250.3c0,30.7,11.2,59.3,30.4,83.3c0.9,0.9,2.9,3.8,3.6,4.9c0,0-1-1.6-1.1-1.9c0,0,0,0,0,0...
Realization/frontend/czechidm-core/src/content/codelist/CodeListTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import uuid from 'uuid'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../../utils'; import { CodeListManager } from '../../redux'; ...
src--/index.js
wqzwh/react-phone
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Routers from './routers'; import { getAllProducts } from './actions'; import { createStore, applyMiddleware } from 'redux'; import rootReducer from './reducers'; import thunk fr...
client/containers/overview.js
CodeWriterWriter/vidi-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router' import {Panel, PageHeader, HealthList} from '../components/index' import ChartistGraph from 'react-chartist' import {subscribe, unsubscribe} from '../actions/vidi' import _ from 'lodash' export const Overview ...
src/components/Repos.react.js
Ethan1203/Reacttest1
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import DemoAction from'/src/components//DemoAction'; import RepoRow from '/src/components/RepoRow.react'; export default class Repos extends Component { render() { let repos = this.props.userRepos; /*當iterate產生多...
node_modules/react-bootstrap/es/Image.js
okristian1/react-info
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/index.js
Sigfried/drugutil
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
packages/react/components/toggle.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSetProps from '.....
src/components/App.js
enzoborgfrantz/react-boiler
import styled from 'styled-components'; import React from 'react'; import Button from './Button'; import Input from './Input'; import Form from './Form'; const AppWrapper = styled.div` padding: 5px; `; const Row = styled.div` display: flex; align-items: flex-end; > * { &:not(:first-child) { margin-l...
components/Layout/Navigation.js
cnsuva/cnsuva.io
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/components/header/index.js
eNdiD/wl_test_frontend
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Header extends Component { render() { return ( <div className='navbar navbar-inverse navbar-static-top'> <div className='container'> <div className='navbar-header'> ...
app/components/ListItem/index.js
abasalilov/react-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: PropTypes.any, }; export default ListIte...
app/javascript/mastodon/components/column_back_button_slim.js
Toootim/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButtonSlim extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length ==...
packages/ringcentral-widgets/components/ActiveCallDialPad/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DialPad from '../DialPad'; import CircleButton from '../CircleButton'; import BackHeader from '../BackHeader'; import audios from '../DialButton/audios'; import EndIcon from '../../assets/images/End.svg'; import styles from './styl...
components/animals/vikuna.child.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/vikuna/01.jpg'), ...
src/components/common/svg-icons/av/library-add.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryAdd = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> </S...
app/components/HintExample/index.js
nikgraf/future-react-ui
import React from 'react'; import Hint from 'ui-lib/StaticProperty/Hint'; import Hint2 from 'ui-lib/ModuleExport/Hint'; import Hint3 from 'ui-lib/ModuleExport/Hint'; const HintExample = () => { return ( <div> </div> ); }; export default HintExample;
src/components/users/UserFollowers.js
mg4tv/mg4tv-web
import PropTypes from 'prop-types' import React from 'react' import {compose, getContext} from 'recompose' const enhanceSubs = compose( getContext({ baseUrl: PropTypes.string.isRequired }), ) const UserFollowers = ({baseUrl}) => ( <div> </div> ) export default enhanceSubs(UserFollowers)
client/components/ui/loading.js
ZeHiro/kresus
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { get } from '../../store'; import { areWeFunYet, translate as $t } from '../../helpers'; import ExternalLink from './external-link'; import DisplayIf from './display-if'; let showLicense = areWeFunYet(); ex...
client/react/Desk.js
ed1d1a8d/macweb
import React, { Component } from 'react'; import TrackerReact from 'meteor/ultimatejs:tracker-react'; import Navbar from './Navbar.js'; class Desk extends TrackerReact(Component) { render() { return ( <div> <Navbar /> <div className="container"> <h2>Movies List</h2> <p>A...
packages/modules/module-comments/src/client/containers/CommentCountUpdater.js
reimagined/resolve
import React from 'react' import { connect } from 'react-redux' import { connectReadModel } from '@resolve-js/redux' export class CommentCountUpdater extends React.PureComponent { componentDidUpdate(prevProps) { if (this.props.commentCount != null && prevProps.commentCount == null) { this.props.updateComme...
webapp/js/main.js
Stevenah/dhis2-datastore-application
import React from 'react'; import ReactDOM from 'react-dom'; import store from './store/Store'; import AppContainer from 'components/app/AppContainer'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import '../style/layout/layout.scss'; const App = () => ( <MuiThemeProvider> <AppContai...
components/screen_preview.js
kapone89/MonteOfficeExpo
import React, { Component } from 'react'; import { observer } from 'mobx-react/native'; import { Container, Header, Content, Button, Icon, Title, Grid, Col, Row, Left, Right, Body } from 'native-base'; import { Button as RneButton } from 'react-native-elements'; import ScreenThumbnail from './screen_thumbnail'; import ...
src/client/components/console/feedbacks/feedbacks.js
uuchat/uuchat
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Breadcrumb, Button, Select } from 'antd'; import FeedbackTable from './feedbackTable'; import { fetchAsync } from '../common/utils'; import Tips from '../../common/tips'; const Option = Select.Option; export default class Feed...
websocket/client/Client/node_modules/react-native/Libraries/Modal/Modal.js
prayuditb/tryout-01
/** * 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...
app/features/vocab/Levels/Levels.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import cuid from 'cuid'; import Spinner from 'common/components/Spinner'; import { vocab } from 'features/vocab/actions'; import { selectVocabLevelIds, selectShouldLoad, selectLastLoad } from './selectors'; import Le...
src/components/Invites/Invite.js
unihackhq/skilled-acolyte-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'; import { Button, Notification } from 'bloomer'; import { apiPost } from '../../utils/api'; import FatalButton from '../FatalButton'; import './Invite.scss'; class Invite extends Rea...
src/components/SegmentedControl.js
Filsh/elemental-themeable
import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'SegmentedControl', propTypes: { className: React.PropTypes.string, equalWidthSegments: React.PropTypes.bool, onChange: React.PropTypes.func.isRequired, options: React.PropTypes.array.isRequired...
src/containers/Home.js
iris-dni/iris-frontend
import React from 'react'; import settings from 'settings'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { fetchPetitionGroups, fetchPetitionGroup } from 'actions/PetitionsActions'; import PageBuilder from 'components/PageBuilder'; const MODULES = [ { component: 'Hero', pr...
src/scripts/components/icons/CloseIcon.component.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at ...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/border-left.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorBorderLeft = (props) => ( <SvgIcon {...props}> <path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2zm-4 12h2v-2h-2v2zm4-4h2v-2h-2v2zm...
packages/wix-style-react/src/TableActionCell/docs/examples/PrimaryBlueExample.js
wix/wix-style-react
import React from 'react'; import { classes } from '../TableActionCell.story.st.css'; import { TableActionCell } from 'wix-style-react'; const Example = () => ( <div className={classes.exampleRow}> <TableActionCell dataHook="story-primary-blue" primaryAction={{ text: 'Edit', skin: 's...
projects/twitch-web/src/components/Community.js
unindented/twitch-x
import React from 'react' import PropTypes from 'prop-types' import TopStreamsForCommunity from '../containers/TopStreamsForCommunity' export default function Community (props) { const {id} = props.match.params return ( <TopStreamsForCommunity id={id} limit={20} columns={5} /> ) } Comm...
staticfiles/js/App.js
alemneh/negativity-purger
import React, { Component } from 'react'; class App extends Component { constructor(props) { super(props) } render() { return ( <section> {this.props.children} </section> ) } } export default App;
src/svg-icons/notification/personal-video.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPersonalVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); Notifi...
docs/html.js
nfl/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; import DocumentTitle from 'react-document-title'; import { prefixLink } from 'gatsby/dist/isomorphic/gatsby-helpers'; import favicon from './design/homepage/storybook-icon.png'; const BUILD_TIME = new Date().getTime(); const HTML = props => { const tit...
app/components/TriggerMQForm/index.js
fission/fission-ui
/** * * TriggerMQForm * */ import React from 'react'; // import styled from 'styled-components'; import TriggerMQCreateForm from 'components/TriggerMQCreateForm'; import { FormattedMessage } from 'react-intl'; import commonMessages from 'messages'; import messages from './messages'; import Item from './item'; class T...
demo/project/static/src/pages/work.js
chenshenhai/koa2-note
import '@babel/polyfill'; import React from 'react' import ReactDOM from 'react-dom' import App from './../apps/work.jsx' ReactDOM.render( <App />, document.getElementById("app"))
admin/src/components/PopoutListItem.js
BlakeRxxk/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutListItem = React.createClass({ displayName: 'PopoutListItem', propTypes: { icon: React.PropTypes.string, iconHover: React.PropTypes.string, iconHoverAlt: React.PropTypes.string, isSelected: React.Prop...
client/index.js
ourvrisrealerthanyours/tanks
import React from 'react'; import ReactDOM from 'react-dom'; import AFRAME from 'aframe'; import extras from 'aframe-extras'; extras.physics.registerAll(); extras.controls.registerAll(); require('aframe-text-component') require('./aframeComponents/spawner'); require('./aframeComponents/click-space-listener'); require...
src/routes/accounts.js
HurtowniaPixeli/pixelcms-client
import React from 'react' import concat from 'lodash/concat' import langPrefix from '~/utils/langPrefix' import Login from '~/components/staticPages/accounts/Login' import SocialAuth from '~/components/staticPages/accounts/SocialAuth' import Register from '~/components/staticPages/accounts/Register' import Activate fr...
app/javascript/mastodon/features/notifications/components/notification.js
pfm-eyesightjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { FormattedMessage } from 'react-intl'; import Perma...
packages/demos/demo/src/components/Client/card.js
garth/cerebral
import React from 'react' import { connect } from '@cerebral/react' import { props, signal, state } from 'cerebral/tags' import Email from '../Email' import Header from './Header' import Phone from '../Phone' export default connect( { item: state`clients.all.${props`itemKey`}`, penClick: signal`clients.penC...
client/src/app/components/todo/components/TodoWidget.js
zraees/sms-project
import React from 'react' import Reflux from 'reflux' import classnames from 'classnames' import JarvisWidget from '../../widgets/JarvisWidget' import TodoStore from '../stores/TodoStore' import TodoActions from '../actions/TodoActions' import TodoList from './TodoList' import TodoForm from './TodoForm' let TodoWidg...
src/screens/SettingsScreen.js
dbyilmaz/jobs
import _ from 'lodash'; import React, { Component } from 'react'; import { View, Text, Image } from 'react-native'; import { connect } from 'react-redux'; import { clearLikedJobs } from '../actions'; import FBLoginView from '../components/FBLoginView'; import {FBLogin, FBLoginManager} from 'react-native-facebook-login...
client/src/components/AdminImageGallery.js
redcom/pinstery
// @flow import type { AdminType } from '../store/CommonStoreTypes'; import React from 'react'; import ReactPaginate from 'react-paginate'; import { slice } from 'ramda'; import styled from 'styled-components'; import { defaultSpaceInBetween } from '../styles/vars'; import { AdminImage } from '../components'; const ...
app/scripts/components/StarHOC.js
henry40408/awesome-stars
import React from 'react' import PropTypes from 'prop-types' import Star from './Star' class StarHOC extends React.Component { static propTypes = { owner: PropTypes.string.isRequired, name: PropTypes.string.isRequired } state = { count: 0, hasError: false, loading: true } get tuple () { return {...
src/browser/main.js
sikhote/davidsinclair
// @flow import type { Action } from '../common/types'; import React from 'react'; import ReactDOM from 'react-dom'; import Root from './app/Root'; import configureFound from './configureFound'; import configureReporting from '../common/configureReporting'; import configureStorage from '../common/configureStorage'; imp...
chrisko-ui/src/App.js
ohmyjersh/chrisko
import React, { Component } from 'react'; import {bindActionCreators} from 'redux'; import { connect } from 'react-redux'; import * as actions from './chrisko'; import {Input, Button, Alert, Spin, Card } from 'antd'; import Logo from './logo.png'; class App extends Component { componentWillMount() { if(this.prop...
CMS/redux/components/presentational/entry-listing.js
BJCheng/cs554-assignments
import React from 'react'; import { connect } from 'react-redux'; import Entry from './entry'; import { Table, TableHeader, TableHeaderColumn, TableBody, TableRow, TableRowColumn } from 'material-ui/Table'; import Action from '../../action'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import Co...
app/components/about_us.js
bdunams/neo-veg
// Import React import React from 'react'; // Returns Component JSX const AboutUs = () =>{ return( <div id="about-us" className="container"> <div id="about-neoveg" className="container"> <section id="aboutNEOVEG" className="bg-light-gray"> <div className="container"> <div className="row"...
examples/PropTable.js
HPate-Riptide/react-overlays
import merge from 'lodash/merge'; import React from 'react'; import Label from 'react-bootstrap/lib/Label'; import Table from 'react-bootstrap/lib/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); function getPropsData(componentData, metadata){ let props = componentData.props ...
renderer/components/CreateForm.js
markmarcelo/reactide
import React from 'react'; import PropTypes from 'prop-types'; const CreateForm = ({ createItem }) => { return ( <div className='list-item'> <input className='create-form' onKeyPress={createItem} onClick={(event) => {event.stopPropagation()}} /> </div> ) } CreateForm.propTypes = { createItem: P...
ajax/libs/react-instantsearch/3.3.1/Dom.js
seogi1004/cdnjs
/*! ReactInstantSearch 3.3.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
client/app/components/Topbar/index.js
bryanph/Geist
"use strict" import _ from 'lodash' import React from 'react' import { connect } from 'react-redux' import classNames from 'classnames' import { Link, withRouter } from 'react-router-dom' import QueryLink from 'QueryLink' import AllSearch from '../../containers/AllSearch' import './styles.scss' export const Logo = ...
docs/pages/company/about.js
lgollut/material-ui
import React from 'react'; import TopLayoutCompany from 'docs/src/modules/components/TopLayoutCompany'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'company/about'; const requireDemo = require.context('docs/src/pages/company/about', false, /\.(js|tsx)$/); const requireR...
modules/Navigation.js
flocks/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that modify the URL. * * Example: * * import { Navigation } from 'react-router'; * * var MyLink = React.createClass({ * mixins: [ Navigation ], * handleClick(event) { * event.preventDefault(); * ...
src/svg-icons/av/replay.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/> </SvgIcon> ); AvReplay = pure(AvReplay); AvReplay...
lib/client.js
jekrb/filepizza
import React from 'react' import ReactRouter from 'react-router' import routes from './routes' import alt from './alt' import webrtcSupport from 'webrtcsupport' import SupportActions from './actions/SupportActions' let bootstrap = document.getElementById('bootstrap').innerHTML alt.bootstrap(bootstrap) window.FilePizz...
src/layouts/banner.js
davosolo/davosolo.github.io
import React from 'react' import Banner from './../components/styledBanner' import { Title, TitleLight, Subtitle, Container, PersonalData, AboutContainer, ProfilePicture, LabelColumn, DataColumn, Info, TitleSeparator, RowSeparator, TitleInset, TitleRetro, TitleDeep } from './../components/styledContainer' const Banner...
app/javascript/mastodon/features/report/components/status_check_box.js
Arukas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class StatusCheckBox extends React.PureComponent { static propTypes = { status: ImmutablePropTypes.map.isRequired, checked: PropTypes.b...
app/Components/SignIn/SMSCode/StepOne.js
martinvarelaaaa/tintina
import React, { Component } from 'react'; import { View, Modal } from 'react-native'; import PropTypes from 'prop-types'; import { TextSubTitle, TextInfo } from '../../Atoms/Text'; import TintinaSlogan from '../../Atoms/TintinaSlogan'; import { Button } from '../../Atoms/Button'; import CountryPhoneList from '../../At...
blueocean-material-icons/src/js/components/svg-icons/device/bluetooth-connected.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBluetoothConnected = (props) => ( <SvgIcon {...props}> <path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 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.46L...
scripts/components/Header.js
ZucchiniZe/react-chat
// Importing the react module so everything works import React from 'react'; class Header extends React.Component { render() { return ( // Nothing special just a bootstrap navbar <nav className='navbar-fixed-fixed-top navbar navbar-default'> <div className='container-fluid'> <div cl...
ajax/libs/react-instantsearch/4.0.0-beta.2/Dom.js
him2him2/cdnjs
/*! ReactInstantSearch 4.0.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
docs/src/examples/elements/Step/Variations/StepExampleEvenlyDividedAnother.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleEvenlyDividedAnother = () => ( <Step.Group widths={2}> <Step active> <Icon name='credit card' /> <Step.Content> <Step.Title>Billing</Step.Title> </Step.Content> </Step> <Step disabled> ...
src/index.js
shp54/cliff-effects
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './utils/registerServiceWorker'; import 'semantic-ui-css/semantic.min.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/main.js
AgtLucas/webpack-express-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('root'));
tests/api-react/image/1-Image.js
hcchien/plate
import React from 'react'; import ReactDOM from 'react-dom'; import { Button, Col, Form, FormField, FormInput, FileUpload, Radio, Row } from 'elemental'; import api from '../../../client/lib/api'; const Test = React.createClass({ getInitialState () { return { file: null, dataURI: null, uploadMode: 'fileDa...
src/core/components/types/SetType.js
remy/jsconsole
import React, { Component } from 'react'; import Entry from './EntryType'; import zip from 'lodash/zip'; import flatten from 'lodash/flatten'; class SetType extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { open: props.open, }; } t...
src/components/user/RequestPasswordResetSuccessMessage.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { FormattedMessage, injectIntl } from 'react-intl'; const localMessages = { click: { id: 'success.email', defaultMessage: 'We have emailed you a link to reset your password' }, emailCheck:...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
changjiashuai/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { Pure...