path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
berserkertdl/actor-platform
import _ from 'lodash'; import React from 'react'; import mixpanel from 'utils/Mixpanel'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import MyProfileActions from '../../actions/MyProfileActionCreators'; import LoginActionCreators...
src/containers/toputilizers/components/TopUtilizersMultiHistogram.js
kryptnostic/gallery
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import { Constants } from 'lattice'; import { HistogramVisualization } from '../../visualizations/HistogramVisualization'; import { COUNT_FQN } from '../../../utils/Consts/StringConsts'; import styles from '../styles.modu...
packages/ringcentral-widgets-docs/src/app/pages/Components/LogSection/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
app/javascript/mastodon/components/status_content.js
riku6460/chikuwagoddon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; const MAX_HEIGHT = 642; // 20px * 32 (+ 2px...
src/components/ItemRequested.js
cackiejamison/neighborly
import React from 'react'; import Navigation from './Navigation'; import { Card, CardColumns, CardTitle, CardImg } from "reactstrap"; import { inject, observer } from 'mobx-react'; class ItemRequested extends React.Component { constructor() { super(); } render() { return ( <div> <div> ...
app/containers/NotFoundPage/index.js
jearle/doge
/** * 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...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
zwensoft/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { Container } from 'flux/utils'; import Modal from 'react-modal'; import ActorClient from 'utils/ActorClient'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyPro...
client/App/index.js
noamokman/project-starter-sample
import React from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import {Flex} from 'reflexbox'; const muiTheme = getMuiTheme(lightBaseTheme); export defau...
src/native/map/GoogleMapPlayground.js
chad099/react-native-boilerplate
// @flow import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Dimensions, Text, View } from 'react-native'; import MapView, { PROVIDER_GOOGLE } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825...
src/svg-icons/communication/business.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationBusiness = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2...
imports/client/components/MainLayout/Footer/FooterShareList.js
evancorl/portfolio
import React from 'react'; const FooterShareList = ({ list }) => ( <ul className="footer-share-list"> {Object.keys(list).map((service, i) => ( <li key={i} className="footer-share-item"> <a href={list[service]} target="_blank" className={`icon icon-${service.toLowerCase...
js/components/icon/state.js
mrcflorian/classbook
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View } from 'react-native'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Text, Body, Left, Right, Grid, Row, Col, Icon } from 'native-base'; import styles f...
src/js/components/icons/base/Satellite.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/src/components/events/EventMetaSection.js
mbmybook/website
'use strict' import '../../style.css' import './events.css' import React from 'react' import NavLink from '../shared/NavLink' class EventMetaSection extends React.Component { render() { if (this.props.events.length <= 0) { return <div></div> } else { return ( <div className='event-meta-...
src/components/chips/demos/Contact.js
isogon/styled-mdl
import React from 'react' import { Chip } from '../../../' /* eslint-disable no-alert */ export default () => ( <Chip contact={{ color: 'teal|600', textColor: 'white', text: 'A' }}> Contact Chip </Chip> )
react-flux-mui/js/material-ui/src/svg-icons/navigation/last-page.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationLastPage = (props) => ( <SvgIcon {...props}> <path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/> </SvgIcon> ); NavigationLastPage = pure(NavigationLastPage); NavigationLastPage.di...
frontend/src/DiscoverMovie/Exclusion/ExcludeMovieModalContentConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { addImportExclusions } from 'Store/Actions/discoverMovieActions'; import ExcludeMovieModalContent from './ExcludeMovieModalContent'; const mapDispatchToProps = { addImportExclusions }; class ...
parking/client/src/App.js
GurovAnton/GurovAnton.github.io
import React, { Component } from 'react'; import {Route} from 'react-router-dom'; import './App.css'; import Header from './components/Header'; import ParkingList from './components/ParkingList'; class App extends Component { constructor(props){ super(props); this.state={data:[]}; this.changeParkName = this...
resources/assets/admin/components/utilities/EntityLabel.js
DoSomething/northstar
import React from 'react'; import { Link } from 'react-router-dom'; /** * Renders entity name and id. * * @param {String|Number} id * @param {String} name * @param {String} path */ const EntityLabel = ({ id, name, path }) => { const label = ( <> {name} <code className="footnote">({id})</code> </>...
src/components/list-item/index.js
chenchenyuyu/zhihuDaily-react
import React from 'react'; import { Link } from 'react-router-dom'; // import { connect } from 'react-redux'; import CYComponent from '../base/index'; import './style.less'; class ListItem extends CYComponent { render() { const item = this.props.item; console.log('this.props.item', this.props.item); retu...
src/client/components/UserBadge.js
gearz-lab/hypersonic
import React from 'react'; var ReactBootstrap = require('react-bootstrap') , NavItem = ReactBootstrap.NavItem; var UserBadge = React.createClass({ propTypes: { user: React.PropTypes.object }, render: function() { let user = this.props.user; if(user) { return <NavIte...
src/react/jsx/组件.js
huangming1994/react-tutorial
import React from 'react' import ReactDOM from 'react-dom' function App() { return ( <div>这是一个组件</div> ) } ReactDOM.render( <App />, document.getElementById('root') ) // JSX语法用大写来区分组件
src/index.js
daibixiaohouzi/tangtang-image
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
assets/javascripts/kitten/components/graphics/icons/people-icon/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' export const PeopleIcon = ({ color, title, ...props }) => ( <svg width="22" height="21" viewBox="0 0 22 21" xmlns="http://www.w3.org/2000/svg" {...props} > {title && <title>{title}</title>} <path fillRule="evenodd" ...
src/components/About/Citation/index.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import { foundationPartial } from 'styles/foundation'; import loadable from 'higherOrder/loadable'; import { schemaProcessDataPageSection } from 'schema_org/processors'; import local from './style.css'; import fonts from 'EBI-Icon-fonts/fonts.css'; import { InterPro2020, Inte...
src/svg-icons/av/videocam-off.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocamOff = (props) => ( <SvgIcon {...props}> <path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3...
packages/node_modules/@cerebral/react/src/Container.js
christianalfoni/cerebral
import React from 'react' import PropTypes from 'prop-types' import { throwError } from 'cerebral' class Container extends React.Component { getChildContext() { const { controller } = this.props if (!controller) { throwError('You are not passing controller to Container') } return { controller ...
stories/variants/FullPackage.js
oyvindhermansen/react-images-loaded
import React, { Component } from 'react'; import ImagesLoaded from '../../src/index'; const Image = ({ src, style }) => { return <img style={style} src={src} />; }; export default class FullPackage extends Component { state = { images: [ { src: 'http://via.placeholder.com/200x200' }, ...
information/blendle-frontend-react-source/app/modules/search/components/SearchNavigation.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import BrowserEnv from 'instances/browser_environment'; import { translateElement } from 'instances/i18n'; import ModuleNavigationPortal from 'components/moduleNavigation/ModuleNavigationPortal'; import AddAlertContainer fr...
local-cli/templates/HelloNavigation/views/MainNavigator.js
csatf/react-native
'use strict'; /** * This is an example React Native app demonstrates ListViews, text input and * navigation between a few screens. * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import HomeScreenTabNavigator from './HomeS...
docs/src/examples/modules/Progress/Variations/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const ProgressVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Inverted' des...
react/features/chat/components/web/ChatCounter.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { connect } from '../../../base/redux'; import { getUnreadPollCount } from '../../../polls/functions'; import { getUnreadCount } from '../../functions'; /** * The type of the React {@code Component} props of {@link ChatCounter}. */ type Props = { /** ...
example/src/components/ActivationByTap.js
ethanselzer/react-cursor-position
import React from 'react'; import ReactCursorPosition, { INTERACTIONS } from '../pkg-lnk/ReactCursorPosition'; import PositionLabel from './PositionLabel'; export default () => ( <ReactCursorPosition className="example__target" activationInteractionTouch={INTERACTIONS.TAP} > <PositionLa...
fixtures/dom/src/components/TestCase.js
wmydz1/react
import cn from 'classnames'; import semver from 'semver'; import React from 'react'; import PropTypes from 'prop-types'; import {parse} from 'query-string'; import {semverString} from './propTypes'; const propTypes = { children: PropTypes.node.isRequired, title: PropTypes.node.isRequired, resolvedIn: semverStrin...
index.android.js
suyiya/wantplus-react-native
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Navigator, Text, View } from 'react-native'; import App from './app/containers/App'; AppRegistry.registerComponent('wantplus', () => App);
src/svg-icons/alert/error.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertError = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/> </SvgIcon> ); AlertError = pure(AlertError); AlertEr...
lib/tree-select/index.js
bebeanan/monkey-ui
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
demo/index.js
wmertens/react-gmaps
import React from 'react'; import {Gmaps} from '../dist'; import MapEvents from '../dist/events/map'; const styles = { item: { backgroundColor: 'white', transition: 'background-color 0.2s linear' }, cols: { float: 'left' } }; const App = React.createClass({ handler(_event) { const item = th...
src/containers/DevToolsWindow.js
obfk/buildmaster
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
test/ReactPlayer/props.js
CookPete/react-player
import React from 'react' import test from 'ava' import { configure, shallow } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import ReactPlayer from '../../src/index' configure({ adapter: new Adapter() }) test('className', t => { const wrapper = shallow(<ReactPlayer className='react-player' />) t.tr...
src/containers/DevTools.js
GovReady/GovReady-Agent-Client
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
mikelafalce/mikelafalce.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/svg-icons/image/looks-5.js
IsenrichO/mui-with-arrows
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...
packages/lore-tutorial/templates/es6/step4/src/components/Feed.js
lore/lore
import React from 'react'; export default class Feed extends React.Component { getStyles() { return { title: { textAlign: 'center' }, tweets: { marginTop: '32px' } } } render() { const styles = this.getStyles(); return ( <div> <h2 style={st...
src/svg-icons/content/sort.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSort = (props) => ( <SvgIcon {...props}> <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/> </SvgIcon> ); ContentSort = pure(ContentSort); ContentSort.displayName = 'ContentSort'; export default...
Realization/frontend/czechidm-core/src/components/basic/Table/Pagination.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import $ from 'jquery'; // import { withStyles } from '@material-ui/core/styles'; // import AbstractContextComponent from '../AbstractContextComponent/AbstractContextComponent'; import { SearchParameters } from '../../.....
src/components/ui/Card.js
arayi/SLions
/** * Cards * <Card></Card> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Card } from 'react-native-elements'; // Consts and Libs import { AppSizes, AppColors, AppStyles } from '@th...
addons/docs/src/frameworks/react/__testfixtures__/8140-js-prop-types-oneof/input.js
storybooks/storybook
import React from 'react'; import PropTypes from 'prop-types'; const Alert = (props) => <>{JSON.stringify(props)}</>; Alert.defaultProps = { mode: 'static', type: 'warning', }; Alert.propTypes = { mode: PropTypes.oneOf(['static', 'timed']), type: PropTypes.oneOf(['success', 'warning', 'error', 'primary']), ...
__tests__/test-utility/header-renderer.js
namespace-ee/react-calendar-timeline
import React from 'react' import TimelineMarkersRenderer from 'lib/markers/TimelineMarkersRenderer' import { TimelineMarkersProvider } from 'lib/markers/TimelineMarkersContext' import { TimelineStateProvider } from 'lib/timeline/TimelineStateContext' import { state } from '../../__fixtures__/stateAndProps' import jest ...
demo/Progress.js
szchenghuang/react-mdui
'use strict'; //############################################################################# // Stylesheets. //############################################################################# //############################################################################# // Library includes. //#########################...
src/components/Place/Place.js
Chewser/chewser_react
import React, { Component } from 'react'; class Place extends Component { constructor(props) { super(props); this.state = { restaurant: {} }; } render() { if (this.props.place.name) { return ( <div className="place"> <div className="resultContainer"> ...
demos/tooltips/demos/large.js
isogon/styled-mdl-website
import React from 'react' import { Tooltip, Button, Icon } from 'styled-mdl' const demo = () => ( <Tooltip message="big text" large> <Button icon> <Icon name="add" /> </Button> </Tooltip> ) const caption = 'Large Tooltip' const code = `<Tooltip message="Big Text" large> <Button icon><Icon name="a...
examples/snippets/stateBasedQuery/Todos.js
prescottprue/react-redux-firebase
import React from 'react' import PropTypes from 'prop-types' import { compose } from 'redux' import { connect } from 'react-redux' import { firebaseConnect, isLoaded, isEmpty } from 'react-redux-firebase' import TodoItem from './TodoItem' function Todos({ todos }) { return ( <div className="Todos"> {!isLoa...
client/src/components/stateful_group_list/StatefulGroupList.js
thewizardplusplus/vk-group-stats
import React from 'react' import {ALL_STATES} from '../../common/states' import StatefulBlock from '../stateful_block/StatefulBlock' import GroupList from '../group_list/GroupList' export default class StatefulGroupList extends React.Component { static propTypes = { state: React.PropTypes.oneOf(ALL_STATES).isReq...
newclient/scripts/components/user/back-to-dashboard/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/sim-card-alert.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationSimCardAlert = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 15h-2v-2h2v2zm0-4h-2V8h2v5z"/> </SvgIcon> ); NotificationSimCardAlert.displayName = 'Notification...
code/workspaces/web-app/src/containers/app/AssetRepoNavigationContainer.js
NERC-CEH/datalab
import React from 'react'; import { Route, Switch, Redirect } from 'react-router-dom'; import { permissionTypes } from 'common'; import SideBarNavigation from '../../components/app/SideBarNavigation'; import AssetRepoAddMetadataPage from '../../pages/AssetRepoAddMetadataPage'; import AssetRepoFindPage from '../../pages...
lib/Editor/stories/BasicUsage.js
folio-org/stripes-components
import React from 'react'; import Editor from '../Editor'; import modules from './EditorModules'; import formats from './EditorFormats'; const BasicUsage = () => ( <div> <Editor label="field with custom toolbar" placeholder="Placeholder Text" modules={modules} formats={formats} /> ...
app/assets/scripts/views/apply.js
openaq/openaq-upload
import React from 'react'; import Header from '../components/header'; import PageFooter from '../components/page-footer'; class CreateAccount extends React.Component { constructor(props) { super(props); } render() { return ( <div className='page page--homepage'> <Header> <div cl...
app/jsx/calendar/scheduler/components/FindAppointment.js
venturehive/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...
docs/src/app/components/pages/components/DatePicker/ExampleDisableDates.js
xmityaz/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; function disableWeekends(date) { return date.getDay() === 0 || date.getDay() === 6; } function disableRandomDates() { return Math.random() > 0.7; } /** * `DatePicker` can disable specific dates based on the return value of a callback. *...
src/app/components/Footer/Footer.js
NNWebTeam/wolfix
import React from 'react' import {Grid, Row, Col, Image} from 'react-bootstrap' import './Footer.scss' import {Link} from 'react-router' import logo from './../../assets/logo.png' import buttonBack from './../../assets/button.png' const Footer = () => <footer> <div className="back" style={{width:"100%", displ...
src/components/TextInputCSSModules/TextInputCSSModules.js
vonZ/rc-vvz
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styles from './textInput.css'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text",...
exemplos/ExemploAlbumFotos.js
vitoralvesdev/react-native-componentes
import React, { Component } from 'react'; import { ScrollView, Text } from 'react-native'; import { AlbumFotos } from 'react-native-componentes'; export default class AlbumFotos extends Component { render() { return( <ScrollView> <AlbumFotos capa="...
src/components/Messages/Error/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import PageTitle from 'components/Layout/PageTitle' import SearchProgramaticSet from 'components/SearchProgramaticSet' import ServiceNowLink from 'components/Interactive/ServiceNowLink' import { Helmet } from 'react-helmet' const Error = ({ message = 'An err...
src/svg-icons/toggle/check-box.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/> </SvgIcon> );...
app/templates/components/About.js
v2018z/generator-fluxible
import React from 'react'; class About extends React.Component { render() { return ( <div> <h2>About</h2> <p>This is a description of the site.</p> </div> ); } } export default About;
generators/app/templates/src/containers/root.js
Jackong/generator-reactapp
import React from 'react'; import { Router, hashHistory } from 'react-router';<% if (sm === 'redux') { %> import { Provider } from 'react-redux'; import { syncHistoryWithStore } from 'react-router-redux'; import store from '../store'; import routes from './routes'; const stores = { store }; const history = syncHistor...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
liuzwei/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
src/app/services/inscript.js
Kikonejacob/nodeApp
import RestData from '../utils/restdata' import NewInscript from '../forms/inscriptions/newinscript.js'; import Radio from "backbone.radio"; import React from 'react'; import stringRes from'../utils/stringRes'; import router from './RouterService'; export default class InscriptController{ constructor...
example/src/index.js
Mutefish0/redux-asyn
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware, compose } from 'redux' import App from './components' import appReducer from './reducers' import asynMiddleware from 'redux-asyn' let store=createStore( appReducer, ...
node_modules/react-bootstrap/es/Fade.js
ivanhristov92/bookingCalendar
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React fr...
spec/javascripts/jsx/move_item/MoveItemTraySpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - 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...
app/components/sidenav.js
garth/material-components
import React from 'react'; import Example from './example'; import Icon from './icon'; import { Sidenav } from '../../lib'; export default () => ( <div> <Example code={` import { Sidenav } from 'material-components'; `} /> <Example code={` <Sidenav isOpen={sidenavOpen} onClose={closeS...
src/svg-icons/notification/confirmation-number.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationConfirmationNumber = (props) => ( <SvgIcon {...props}> <path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2...
components/src/mixins/style-propable.js
vanHeemstraDesigns/CreationsEcosystemStatic
import React from 'react'; import ImmutabilityHelper from '../utils/immutability-helper'; import Styles from '../utils/styles'; // This mixin isn't necessary and will be removed /** * @params: * styles = Current styles. * props = New style properties that will override the current style. */ export default { p...
Lab5/app.js
prpatel/react-workshop-day1
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment' import Bootstrap from 'react-bootstrap'; import Jumbotron from 'react-bootstrap/lib/Jumbotron'; var Button = require('react-bootstrap').Button; import Panel from 'react-bootstrap/lib/Panel' import Input from 'react-bootstrap/lib/In...
node_modules/react-bootstrap/es/Accordion.js
acalabano/get-committed
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PanelGroup from '...
webapp/src/components/orthology/methodCell.js
alliance-genome/agr
import React from 'react'; import { Tooltip, OverlayTrigger } from 'react-bootstrap'; import { ALL_METHODS, methodCellStyle } from './constants'; const MethodCell = (props) => { const { predictionMethodsMatched, predictionMethodsNotMatched } = props; const predictionMethodsMatchedSet = new Set(predictio...
src/icons/CenterFocusStrongIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class CenterFocusStrongIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 16c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zM10 30H6v8c0 2.21 1.79 4 4 4h8v-4h-8v...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
nonoz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.Component { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-header...
project/react-ant/src/components/DateRangePicker.js
FFF-team/generator-earth
import React from 'react'; import moment from 'moment'; import { Form, DatePicker, Col } from 'antd'; const FormItem = Form.Item; export default class extends React.Component { state = { startValue: null, endValue: null, endOpen: false, }; disabledStartDate = (startValue) => { ...
admin/client/App/screens/Home/components/Section.js
jacargentina/keystone
import React from 'react'; import getRelatedIconClass from '../utils/getRelatedIconClass'; class Section extends React.Component { render () { const iconClass = this.props.icon || getRelatedIconClass(this.props.id); return ( <div className="dashboard-group" data-section-label={this.props.label}> <div class...
components/animals/tygrSumatersky.adult.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/tygrSumatersky/01....
app/index.js
ssmlee04/elite
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
in2core/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [[1, '1'], [2, '2'], [3, '3'],...
app/domains/blog/pages/landing/components/LandingPage/LandingPage.js
alexandregme/react-core-components
import React, { Component } from 'react'; import {render} from 'react-dom'; import { DomainsNavigation } from 'core/components/DomainsNavigation' export default class App extends Component { render () { return ( <div> <DomainsNavigation /> Blog Landing Page </div> ); } }
src/Shared/CommandIcon.js
reactotron/reactotron
import React from 'react' import PropTypes from 'prop-types' import BenchmarkIcon from 'react-icons/lib/md/assignment-turned-in' import DebugIcon from 'react-icons/lib/md/info' import WarningIcon from 'react-icons/lib/md/warning' import ErrorIcon from 'react-icons/lib/md/error' import ActionIcon from 'react-icons/lib/m...
src/svg-icons/device/signal-cellular-1-bar.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/> </SvgIcon> ); DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar); Device...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
allengaller/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
src/components/CuteButton/CuteButton.js
jeffaustin81/cropcompass-ui
import React from 'react' export default class CuteButton extends React.Component { render(){ let cuteButtonStyle={borderRadius: "15px", cursor: "pointer", background: "#BCCA30", border: "solid #523C03 2px", marginLeft:"5px", textAlign: "center", padding: "5px"} return( <div style={cuteButtonStyle}>...
examples/react-firebase-redux/src/routes/index.js
prescottprue/generator-react-firebase
import React from 'react' import { Switch, Route } from 'react-router-dom' import SetupAnalytics from '../components/SetupAnalytics' import CoreLayout from '../layouts/CoreLayout' import Home from './Home' import LoginRoute from './Login' import SignupRoute from './Signup' import ProjectsRoute from './Projects' import ...
packages/vx-demo/components/codeblocks/StackedAreaCode.js
Flaque/vx
import React from 'react'; import Codeblock from './Codeblock'; export default ({}) => { return ( <Codeblock> {`// StackAreaChart.js import React from 'react'; import { Group } from '@vx/group'; import { AreaStack } from '@vx/shape'; import { TextOutline } from '@vx/text'; import { browserUsage } from '@vx...
source/components/ContentPanel/Profile.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import ProfilePic from 'components/ProfilePic'; import RankBar from 'components/RankBar'; import UserDetails from 'components/UserDetails'; import { connect } from 'react-redux'; import { css } from 'emotion'; Profile.propTypes = { profile: PropTypes.obj...
src/icons/WbCloudyIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class WbCloudyIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38.71 20.07C37.35 13.19 31.28 8 24 8c-5.78 0-10.79 3.28-13.3 8.07C4.69 16.72 0 21.81 0 28c0 6.63 5.37 12...
lib/components/UploadPage.js
hanford/filepizza
import DropZone from './DropZone' import React from 'react' import Spinner from './Spinner' import Tempalink from './Tempalink' import UploadActions from '../actions/UploadActions' import UploadStore from '../stores/UploadStore' import socket from 'filepizza-socket' import { formatSize } from '../util' export default ...
sam-front/src/components/LoadingIndicator.js
atgse/sam
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; const loadingStyle = { zIndex: 5000, position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)', }; export default function ({ size = 120 }) { return ( <div style={loadingStyl...
app/components/Navbar.js
xiaoyaomaopp/BigData-WebArt
import React from 'react'; import { Link } from 'react-router'; class Navbar extends React.Component { constructor(props) { super(props); this.url = location.href.split('#')[0]; this.updateContent = props.updateContent || function(){}; } componentDidMount() { this.initEvent(); } componentDidUpd...
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/ThrottlingPolicies/Details/BusinessPlan.js
Minoli/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
src/DetailsSection/CardList/Table.js
conferenceradar/list
import React, { Component } from 'react'; import PropTypes from 'prop-types'; // HOC for overriding Table component to just render the default TableBody component // We could use this entirely if we wanted and connect and map over visible rows but // Using this + tableBody to take advantange of code that Griddle Local...