path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/login/LoginController.js
jefferchang/reactApp
/** * Created by jeffer on 2016/4/2. */ import './../../less/login.less'; import React from 'react' import LoginStore from './../../stores/LoginStore'; import {Panel,Grid,Col,Row, Input,Button ,ButtonToolbar} from 'react-bootstrap'; import { browserHistory, Router, Route, Link} from 'react-router' var styles = {}; s...
lib/client/js/components/notifications-container.js
Bornholm/yasp
/* jshint esnext: true, node: true */ 'use strict'; import React from 'react'; import { translate } from 'react-i18next'; class NotificationsContainer extends React.Component { constructor() { super(); this.state = { timeoutId: false }; this.handleTick = this.handleTick.bind(this); this.h...
lib/new-project-template/new-project/src/components/App.js
markmarcelo/reactide
import React, { Component } from 'react'; class App extends Component { constructor() { super(); this.state = { count: 0 } this.clickHandler = this.clickHandler.bind(this); } clickHandler() { this.setState({ count: ++this.state.count }) } render() { return ( <di...
src/ListItem/__tests__/ListItem_test.js
react-fabric/react-fabric
import React from 'react' import { render, mount } from 'enzyme' import test from 'tape' import ListItem from '..' import ListItemAction from '../ListItemAction.js' test('ListItem', t => { t.ok(ListItem, 'export') t.equal(ListItem.Action, ListItemAction, '.Action export') t.equal(ListItem.displayName, 'FabricCo...
app/javascript/mastodon/features/list_editor/components/account.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
spec/components/dropdown.js
VACO-GitHub/vaco-components-library
import React from 'react'; import Dropdown from '../../components/dropdown'; import style from '../style'; const countries = [ { value: 'EN-gb', label: 'England', img: 'http://' }, { value: 'ES-es', label: 'Spain', img: 'http://' }, { value: 'TH-th', label: 'Thailand', img: 'http://' }, { value: 'EN-en', label...
src/form/FormInput.js
martinezguillaume/react-native-elements
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Animated, Easing, TextInput, StyleSheet, Platform, Dimensions, Text as NativeText, } from 'react-native'; import colors from '../config/colors'; import normalize from '../helpers/normalizeText'; import ViewPropTypes fro...
client/node_modules/uu5g03/dist-node/bricks/accordion.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ColorSchemaMixin, ContentMixin, Tools} from '../common/common.js'; import Panel from './panel.js'; import './accordion.less'; export const Accordion = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ColorSchema...
app/containers/Wantplus.js
suyiya/wantplus-react-native
/** * Created by SUYIYA on 16/8/28. */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Navigator, Text, View, TouchableOpacity, Platform, Image } from 'react-native'; import SplashPage from './Splash'; export default class Wantplus extends ...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch02/02_07/start/src/lib.js
yevheniyc/Autodidact
import React from 'react' import text from './titles.json' export const hello = ( <h1 id='title' className='header' style={{backgroundColor: 'purple', color: 'yellow'}}> {text.hello} </h1> ) export const goodbye = ( <h1 id='title' className='header' style={{backgroundColor: 'yellow', color: 'purple'}}> ...
app/src/containers/DevTools.js
civa86/web-synth
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' ...
frontend/src/App.js
4devs/symfony-react
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Root from './components/Root'; import store from './redux'; import history from './history'; import './config'; class App extends Component { render() { return ( <...
docs/src/examples/views/Statistic/Variations/StatisticExampleColored.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleColored = () => ( <Statistic.Group> <Statistic color='red'> <Statistic.Value>27</Statistic.Value> <Statistic.Label>red</Statistic.Label> </Statistic> <Statistic color='orange'> <Statistic.Value...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js
TryKickoff/create-kickoff-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'; const styled = ([style]) => style .trim() .spli...
components/Footer/Footer.js
zaneriley/personal-site
/** * 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'; ...
blog-post-4/src/www/js/event-demo.js
DevelopIntelligenceBoulder/react-flux-blog
'use strict'; import React from 'react'; // eslint-disable-line no-unused-vars import ReactDOM from 'react-dom'; import EventDemo from './components/event-demo'; // eslint-disable-line no-unused-vars ReactDOM.render(<EventDemo />, document.querySelector('main'));
docs/src/app/pages/components/Input/ExampleInputCopy.js
GetAmbassador/react-ions
import React from 'react' import Input from 'react-ions/lib/components/Input' import EnhanceWithCopy from 'react-ions/lib/components/EnhanceWithCopy' export default EnhanceWithCopy(Input)
src/editor/components/SitemapNode.js
bfncs/linopress
import React from 'react'; import PropTypes from 'prop-types'; const SitemapNode = ({ sitemap, baseUrl, parentPath = '' }) => ( <ul> {sitemap.map(item => { const itemPath = `${parentPath}/${item.name}`.replace(/\/+/, '/'); return ( <li key={itemPath}> {item.name} {item.isN...
src/index.js
stephanechorne/minimal-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App/>, document.getElementById('root'));
App/Navigation/ReduxNavigation.js
samuraitruong/react-native-fx260
import React from 'react' import * as ReactNavigation from 'react-navigation' import { connect } from 'react-redux' import AppNavigation from './AppNavigation' // here is our redux-aware our smart component function ReduxNavigation (props) { const { dispatch, nav } = props const navigation = ReactNavigation.addNav...
src/components/Outro.js
mirego/mirego-open-web
import React from 'react'; import styled from '@emotion/styled'; const Content = styled.div` margin: 0 0 100px; text-align: center; color: #666; p { margin-bottom: 6px; } @media (prefers-color-scheme: dark) { & { color: #aaa; } } `; export default () => ( <Content> <p>We’ve bee...
js/screens/WebViewPage.js
msbu-tech/msbu-tech-anywhere
import React, { Component } from 'react'; import { Text, View, ScrollView, TouchableOpacity, StyleSheet, AlertIOS, WebView, Dimensions, Platform } from 'react-native'; const SCREEN_WIDTH = Dimensions.get('window').width; const SCREEN_HEIGHT = Dimensions.get('window').height; const NAVIGATION_BAR_HEIG...
bear-api-koa/client/src/index.js
thoughtbit/node-web-starter
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import configureStore from '~/store/configureStore'; import Provider from './Provider'; const store = configureStore(); ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );
app/components/campaign/push.js
imankit/dashboard-ui
/** * Created by Darkstar on 11/29/2016. */ import React from 'react'; import {connect} from 'react-redux'; import Toolbar from '../toolbar/toolbar.js'; import Footer from '../footer/footer.jsx'; import {showAlert, sendPushCampaign} from '../../actions'; import RaisedButton from 'material-ui/RaisedButton'; import Not...
src/components/topic/banner/leading-image.js
twreporter/twreporter-react
import PropTypes from 'prop-types' import React from 'react' import constPropTypes from '../../../constants/prop-types' import styled from 'styled-components' import { replaceGCSUrlOrigin } from '@twreporter/core/lib/utils/storage-url-processor' import { getSrcSet } from '../../../utils/img' // lodash import get from ...
src/components/Footer.js
RcrsvSquid/rcrsvsquid.github.io
import React from 'react' import styled from 'styled-components' import SocialIcon from './SocialIcon' import { BackgroundImg, Button, Card, Input, SplitSection, TextArea, } from './index' import { Center, Rounded, Thirds, ZDepth1 } from './mixins' export default ({ siteMetadata }) => ( <Footer> <...
src/SettingsItemAppConnect/index.js
christianalfoni/ducky-components
import SocialConnect from '../SocialConnect'; import Typography from '../Typography'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function SettingsItemAppConnect(props) { return ( <div className={classNames(styles.w...
src/components/common/Icon.js
mark4carter/react-hrtbus
import React from 'react' import Radium from 'radium' class Icon extends React.Component { render() { let height = this.props.height || '48px', width = this.props.width || '48px', source = this.props.source return ( <img src={`${source}.png`} width={width} height={height} /> ); ...
lib/types/Geometry.js
Kitware/in-situ-data-viewer
import CollapsibleElement from 'paraviewweb/src/React/Widgets/CollapsibleWidget'; import CompositeControl from 'paraviewweb/src/React/Widgets/CompositePipelineWidget'; import CompositePipelineModel from 'paraviewweb/src/Common/State/PipelineState'; import contains from 'mout/src/array/contains'; import GeometryBuilder ...
pages/slides.js
dabbott/react-native-express
import React from 'react' import SpectacleSlideshow from '../components/SpectacleSlideshow' const introSlides = require('!!babel-loader!spectacle-mdx-loader!../slides/index.mdx') const slides = introSlides.default.map((slide, index) => { return { sectionName: ``, SlideComponent: slide, NotesComponent: i...
src/svg-icons/notification/phone-in-talk.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneInTalk = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5...
examples/with-jsconfig-paths/src/client.js
jaredpalmer/razzle
import React from 'react'; import { hydrate } from 'react-dom'; import App from './App'; hydrate(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept(); }
src/routes/config/tvbrand/List.js
china2008qyj/DVA-DEMO
import React from 'react' import PropTypes from 'prop-types' import { Table, Modal } from 'antd' import styles from './List.less' import classnames from 'classnames' import AnimTableBody from '../../../components/DataTable/AnimTableBody' import { DropOption } from 'components' import { Link } from 'dva/router' const c...
src/components/wallet/WalletUnlock.js
whphhg/vcash-ui
import React from 'react' import { translate } from 'react-i18next' import { action, computed, extendObservable, reaction } from 'mobx' import { inject, observer } from 'mobx-react' /** Ant Design */ import Button from 'antd/lib/button' import Input from 'antd/lib/input' import message from 'antd/lib/message' import M...
test/multi-section/AutosuggestApp.js
JacksonKearl/react-autosuggest-ie11-compatible
import React, { Component } from 'react'; import sinon from 'sinon'; import Autosuggest from '../../src/Autosuggest'; import languages from './languages'; import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js'; const getMatchingLanguages = value => { const escapedValue = escapeRegexCharacte...
client/containers/HomeContainer.js
jacquesuys/HireOrbit
import React, { Component } from 'react'; import Home from '../components/Home'; import { connect } from 'react-redux'; import { updateCurrentSearch, updateCurrentQuery } from '../actions'; class HomeContainer extends Component { render() { return ( <Home {...this.props}/> ); } } export default connect(null,...
src/Card/ButtonHeader/ButtonHeader.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; const buttonHeaderDriverFactory = ({element, wrapper, component}) => { const title = element.querySelector('[data-hook="title"]'); const subtitle = element.querySelector('[data-hook="subtitle"]'); return { exists: () => !!element, title: () =...
app/components/ReplyCard.js
nantaphop/redd
import React from 'react' import Card, { CardActions, CardContent, CardMedia } from 'material-ui/Card'; import Typography from 'material-ui/Typography' import IconButton from 'material-ui/IconButton' import DateIcon from 'material-ui-icons/Timer' import PersonIcon from 'material-ui-icons/Person' import LabelIcon from '...
app/viewControllers/infoPages/NewsletterPage.js
Evyy/cffs-ui
'use strict'; import React from 'react'; import {Link} from 'react-router'; import InfoPage from './InfoPage'; import NewsletterSubscribeForm from '../../forms/NewsletterSubscribeForm'; class NewsletterPage extends React.Component { constructor (props) { super(props); } render () { retur...
js/actions/FortranCompileActions.js
Sable/McLab-Web
import AT from '../constants/AT'; import Dispatcher from '../Dispatcher'; import FortranCompileConfigStore from '../stores/FortranCompileConfigStore'; import React from 'react'; import request from 'superagent'; import TerminalActions from './TerminalActions'; import OnLoadActions from './OnLoadActions'; function begi...
admin/client/Signin/components/Brand.js
ONode/keystone
/** * Renders a logo, defaulting to the Keystone logo if no brand is specified in * the configuration */ import React from 'react'; const Brand = function (props) { // Default to the KeystoneJS logo let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 }; if (props.logo) { // If th...
frontend/src/components/artists/index.js
rossnomann/playlog
import React from 'react'; import {Link} from 'react-router-dom'; import {createSelector} from 'reselect'; import {actions} from '../../redux'; import {formatDate} from '../../utils'; import {Catalog, createListContainer} from '../shared/catalog'; import ProgressBar from '../shared/progress-bar'; import './index.css...
packages/mineral-ui-icons/src/IconFormatTextdirectionRToL.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFormatTextdirectionRToL(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Ico...
packages/ringcentral-widgets-docs/src/app/pages/Components/ConversationsPanel/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ConversationsPanel from 'ringcentral-widgets/components/ConversationsPanel'; const props = {}; props.currentLocale = 'en-US'; props.goToComposeText = () => null; props.markMessage = () => null; props.readMessage = () => null; props.unmarkMessage = () => nul...
src/components/Results.js
Ntobon/dm_react_app
import React from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Col from 'react-bootstrap/lib/Col'; import Row from 'react-bootstrap/lib/Row'; import UserModal from './UserModal'; class Results extends React.Component { constructor(props) { super(props); this.state = { showInfo : false }; ...
src/components/03-organisms/Agenda/index.js
buildit/bookit-web
import React from 'react' import PropTypes from 'prop-types' import momentPropTypes from 'react-moment-proptypes' import roomTimelineNames from '../../01-atoms/RoomTimelineNames' import timelineLabelList from '../../01-atoms/TimelineLabelList' import CurrentTimeIndicator from '../../01-atoms/CurrentTimeIndicator' im...
real_estate_agency/react_ui/src/index.js
Dybov/real_estate_agency
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import registerServiceWorker from './registerServiceWorker'; import ResaleDetailed from './resale/ResaleDetailed'; import renderReplace from './dom-render-replace'; import ru from 'react-intl/locale-data/ru'; import { IntlProvider, addL...
packages/starter-scripts/fixtures/kitchensink/src/features/webpack/SvgInCss.js
chungchiehlun/create-starter-app
import React from 'react'; import './assets/svg.css'; export default () => <div id="feature-svg-in-css" />;
lib/manager/components/LabelAssignerModal.js
conveyal/datatools-manager
import React from 'react' import { Modal, Button } from 'react-bootstrap' // @flow import LabelAssigner from '../components/LabelAssigner' import type { FeedSource, Project } from '../../types' type Props = { feedSource: FeedSource, project: Project, }; type State = { showModal: boolean, }; export default cl...
src/svg-icons/device/screen-rotation.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenRotation = (props) => ( <SvgIcon {...props}> <path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c...
imports/ui/components/StaticCertificate/StaticCertificate.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { Row, Col, FormGroup, ControlLabel, Panel , Form , FormControl, Button , Label , Well , Image , Table} from 'react-bootstrap'; import { Bert } from 'meteor/themeteorchef:bert'; import { Meteor } from 'me...
src/svg-icons/notification/phone-in-talk.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneInTalk = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5...
src/components/Gauges/Gauges.js
Zoomdata/nhtsa-dashboard-2.2
import styles from './Gauges.css'; import React from 'react'; import Gauge from '../Gauge/Gauge'; import { connect } from 'react-redux'; const mapStateToProps = (state) => { return { metricData: state.chartData.metricData.data, metricTotalsData: state.chartData.metricTotalsData.data } }; cons...
collect-webapp/frontend/src/security/pages/UserDetailsPage.js
openforis/collect
import React from 'react' import PropTypes from 'prop-types' import { Alert, Button, Col, Form, FormGroup, Label, Input, Row } from 'reactstrap' import { connect } from 'react-redux' import { SimpleFormItem } from 'common/components/Forms' import * as UsersActions from 'actions/users' import ServiceFactory from 'servi...
src/components/Match.js
enzoborgfrantz/goeuro-swiper-web
import React from 'react'; import styled from 'styled-components'; import Button from './Button'; import { getSearchOptions } from '../data/searchOptions'; const ModalWrapper = styled.div` width:100%; height: 150%; display: block; position: absolute; top: 0; left: 0; background-color: rgba(0, 0, 0, 0.5);...
app/components/Atoms/UserImage/UserImage.js
shibe97/worc
import React from 'react'; import styles from './userImage.css'; export default ({ url = '' }) => ( <img className={styles.userImage} src={url} alt="profile" /> );
hw5/src/components/article/searchBar.js
yusong-shen/comp531-web-development
/** * Created by yusong on 10/23/16. */ import React, { Component } from 'react'; import { connect } from 'react-redux' import { Field, reduxForm } from 'redux-form'; import * as ArticleActions from '../../actions/articleActions' class SearchBar extends Component { handleFormSubmit = (values) => { cons...
node_modules/react-bootstrap/es/ControlLabel.js
hsavit1/gosofi_webpage
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 ...
app/packs/src/components/research_plan/ResearchPlanDetailsField.js
ComPlat/chemotion_ELN
/* eslint-disable react/prefer-stateless-function */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, ButtonGroup, Row, Col, ControlLabel, Tooltip, OverlayTrigger, DropdownButton, MenuItem } from 'react-bootstrap'; import ResearchPlanDetailsDragSource from './ResearchPlanDe...
src/app/components/Button/Button.js
ericvandevprod/redux-d3
import React from 'react'; import { Button } from 'react-toolbox/lib/button'; import theme from './Button.css'; const ButtonComponent = () => ( <div> <Button theme={theme} icon="youtube_searched_for" label="Search" type="submit" raised accent /> </div> ); export default ButtonComponent;
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
kurayama/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class Sidebar extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment =>...
client/src/components/NotFoundPage.js
dragonq29/mini-bat
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/Components/modules/Resume.js
nockgish/gish
// modules/Resume.js import React from 'react' import render from 'react-dom' class Resume extends React.Component { constructor(props) { super(props); this.state = { shouldChangeBackground: true }; } componentDidMount() { if(this.state.shouldChangeBackground){ setTimeout(function...
react/gameday2/components/embeds/EmbedRtmp.js
jaredhasenklein/the-blue-alliance
/* global videojs */ import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' export default class EmbedHtml5 extends React.Component { static propTypes = { webcast: webcastPropType.isRequired, } componentDidMount() { videojs(this.props.webcast.id, { width: '100%', ...
src/svg-icons/image/hdr-weak.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrWeak = (props) => ( <SvgIcon {...props}> <path d="M5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm12-2c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4...
src/svg-icons/maps/traffic.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTraffic = (props) => ( <SvgIcon {...props}> <path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41...
src/js/components/ui/LeftPanel/LeftPanel.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './LeftPanel.scss'; export default class LeftPanel extends Component { static propTypes = { isOpen : PropTypes.bool, handleClickClose: PropTypes.func.isRequired }; handleClickClose() ...
src/routes/privacy/index.js
siddhant3s/crunchgraph
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../compo...
docs/src/components/Demo/EditorConvertToJSON/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import { convertFromRaw } from 'draft-js'; import { Editor } from 'react-draft-wysiwyg'; import Codemirror from 'react-codemirror'; const content = {"entityMap":{},"blocks":[{"key":"637gr","text":"Initialized from content state.","type":"unstyled","depth":0,"inlin...
src/plugins/blaze/components/tree/node-prop-type.js
thebakeryio/meteor-devtools
import React from 'react'; const NodeType = React.PropTypes.shape({ _id: React.PropTypes.string.isRequired, name: React.PropTypes.string.isRequired, data: React.PropTypes.object, isExpanded: React.PropTypes.bool.isRequired, children: React.PropTypes.arrayOf(NodeType), }).isRequired; export default NodeType;...
react/features/base/react/components/native/Image.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { Image } from 'react-native'; /** * The type of the React {@code Component} props of {@link Image}. */ type Props = { /** * The ImageSource to be rendered as image. */ src: Object, /** * The component's external style */ ...
modules/Link.js
calebmichaelsanchez/react-router
import React from 'react' import warning from 'warning' const { bool, object, string, func } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } function isEmptyObject(obj...
frontend/src/components/dialog/sysadmin-dialog/sysadmin-add-sys-notification-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Form, FormGroup, Input } from 'reactstrap'; import { gettext } from '../../../utils/constants'; const propTypes = { toggle: PropTypes.func.isRequired, addNotification: PropTypes.func.isRequir...
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js
ArcanisCz/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleSimple = () => ( <div style={style.container}> <RefreshIn...
frontend/js/components/pages/register.js
skeswa/equitize
import React from 'react'; import {Navigation, Link} from 'react-router'; import PublicPageMixin from '../../mixins/publicpage'; const Register = React.createClass({ mixins: [ PublicPageMixin ], render: () => { return ( <div> <h1>register</h1> </div> ...
components/Deck/ContentPanel/SlideModes/SlideViewPanel/SlideViewPanel.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {connectToStores} from 'fluxible-addons-react'; import SlideContentView from './SlideContentView'; import SlideViewStore from '../../../../../stores/SlideViewStore'; import DeckTreeStore from '../../../../../stores/DeckTreeStore'; import SlideEditSto...
js/setup.js
weihanglo/pycontw-mobile
import React from 'react' import {Platform} from 'react-native' import {Provider} from 'react-redux' import {createStore, applyMiddleware} from 'redux' import {composeWithDevTools} from 'remote-redux-devtools' import thunk from 'redux-thunk' import reducer from './reducers' import App from './App' // Redux Store Conf...
app/containers/App.js
jrhalchak/BeatsPM
// @flow import React, { Component } from 'react'; export default class App extends Component { props: { children: HTMLElement }; render() { return ( <div> {this.props.children} </div> ); } }
modules/gui/src/app/home/body/process/recipe/classification/panels/inputImagery/assetSection.js
openforis/sepal
import {AssetInput} from 'widget/assetInput' import {msg} from 'translate' import PropTypes from 'prop-types' import React from 'react' import style from './inputImage.module.css' export default class AssetSection extends React.Component { render() { const {input, onLoading, onLoaded} = this.props ...
src/components/TagManager/TagManager.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createTag, updateTag, deleteTag } from '../../actions/tag'; import { getTags, getTagStatus } from '../../reducers'; import Button from '../Button'; import Box from '../Box'; import TagForm from '../TagForm'; i...
app/components/InputCell.js
AnnaBlackwell/sudoku-react
import React from 'react' export default React.createClass({ render: function () { return ( <div> <form> <input className='input-cell' type='text' autoFocus={true} maxLength={1} /> </form> </div> ) } })
react/features/invite/components/DialInNumbersForm.js
parisjulien/arkadin-jitsimeet
import { StatelessDropdownMenu } from '@atlaskit/dropdown-menu'; import ExpandIcon from '@atlaskit/icon/glyph/expand'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { translate } from '../../base/i18n'; import { getLocalParticipant } from '../../base/participants'; import { u...
lib/datepicker/DatePickerDialog.android.js
pandiaraj44/react-native-datepicker-dialog
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, DatePickerAndroid, StyleSheet } from 'react-native'; export default class DatePickerDialog extends Component{ constructor(props){ super(props); this.handleDatePicker = this.handleDatePicker.bind(this); thi...
Mung/app/utils/Utils.js
mochixuan/Mung
import React from 'react' import { Image, Dimensions } from 'react-native' const {width,height} = Dimensions.get('window'); const TabOptions = (labal,icon)=>{ return ({ tabBarLabel: labal, tabBarIcon: ({tintColor}) => ( <Image style={{ width:...
test/helpers/shallowRenderHelper.js
JieRong1992/photo-gallery
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
app/javascript/mastodon/features/notifications/index.js
honpya/taketodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
example/index.js
in-flux/component-router
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './reset.css'; import './app.css'; const appRoot = document.createElement('div'); appRoot.id = 'app'; document.body.appendChild(appRoot); ReactDOM.render(<App />, appRoot);
src/js/components/icons/base/Article.js
linde12/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...
examples/js/basic/basic-table.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/svg-icons/action/donut-small.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDonutSmall = (props) => ( <SvgIcon {...props}> <path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1...
Libraries/Components/Keyboard/Keyboard.js
Andreyco/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/components/tables/NLPMinRankTable.js
nbuechler/ample-affect-exhibit
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import DivListGroup from '../groups/DivListGroup' import { Table, Alert } from 'react-bootstrap'; export default class NLPMinRankTable extends Component { constructor(props) { super(props); } ...
packages/material-ui-icons/src/FeaturedVideo.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FeaturedVideo = props => <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z" /> </SvgIcon>; FeaturedVideo = pure(FeaturedVideo); Fe...
script/js/react/material-ui/src/demo/bar/bar.js
joshuazhan/arsenal4j
import React from 'react'; import {render} from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import AppBar from 'material-ui/AppBar'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import NavigationMenu from 'mate...
src/svg-icons/notification/do-not-disturb-on.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbOn = (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 2zm5 11H7v-2h10v2z"/> </SvgIcon> ); NotificationDoNotDisturbOn = pure(No...
docs/app/Examples/modules/Checkbox/Types/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const CheckboxTypesExamples = () => ( <ExampleSection title='Types'> <Message info> ...
examples/js/manipulation/search-clear-table.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; prod...
fields/types/name/NameField.js
wmertens/keystone
import Field from '../Field'; import React from 'react'; import { FormField, FormInput, FormRow } from 'elemental'; module.exports = Field.create({ displayName: 'NameField', focusTargetRef: 'first', valueChanged: function (which, event) { this.props.value[which] = event.target.value; this.props.onChange({ ...
test/test_helper.js
fzoozai/redux-stephenGrider
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
example/js/default.js
benlarkins/Keo
import ready from 'document-ready-promise'; import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux'; import { Router, Route, useRouterHistory } from 'react-router'; import { createHashHis...