path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/front/app/routes.js
travel-and-help/start-kit
import React from 'react'; import { Route } from 'react-router'; import { IndexRoute } from 'react-router'; import Login from './features/auth/components/LoginScreenContainer'; import CategoryTileListContainer from './features/categories/components/CategoryTileListContainer'; import mainRoutes from './features/main/rou...
client/src/components/FontAwesome/index.js
deoxxa/don
// @flow import classNames from 'classnames/bind'; import styles from 'font-awesome/css/font-awesome.css'; import React, { Component } from 'react'; const cx = classNames.bind(styles); export default class FontAwesome extends Component { props: { icon: string, className?: string }; render() { const { icon, ...
src/containers/Home/Home.js
shilu89757/react-redux-universal-hot-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server const logoImage = ...
styleguide/components/Specimen/Specimen.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import refractor from 'refractor/core.js'; import jsxLang from 'refractor/lang/jsx'; import rehype from 'rehype'; import mergeObjectStrings from '../../../utils/mergeObjectStrings/mergeObjectStrings'; import css ...
client/containers/users/reset-password.js
maodouio/meteor-react-redux-base
import React from 'react'; import {useDeps} from 'react-simple-di'; import {composeAll} from 'react-komposer-plus'; import ResetPassword from '../../components/users/reset-password'; const bindTokenToAction = C => props => { const {token, resetPassword, ...other} = props; return <C resetPassword={resetPassword.bi...
information/blendle-frontend-react-source/app/modules/premiumSignup/components/SignupDisclaimer/index.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Analytics from 'instances/analytics'; import { track } from 'helpers/premiumOnboardingEvents'; import Link from 'components/Link'; import classNames from 'classnames'; import CSS from './SignupDisclaimer.scss'; function sendTOSEvent() { track(Anal...
src/svg-icons/action/important-devices.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionImportantDevices = (props) => ( <SvgIcon {...props}> <path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1....
app/containers/Spa/SpaHome/index.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { Selection } from 'office-ui-fabric-react/lib/DetailsList'; import toJS from '../../../hocs/toJS'; import { downloadFile } ...
src/scripts/Paginator.js
Ribeiro/yoda
'use strict'; import React from 'react'; import {RenderMixin} from './Mixins'; export default React.createClass({ propTypes: { text: React.PropTypes.string, handler: React.PropTypes.func.isRequired }, mixins: [RenderMixin], getDefaultProps() { return { text: 'Load more', handler: thi...
src/index.js
roshane/react-assignment
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; var options={ searchPlaceholderText:'search' } var parentNode=document.getElementById('root'); var searchComponent = React.createElement(App, options); render(searchComponent, parentNode);
src/index.js
AlhasanIQ/PiTrol
import React from 'react'; import ReactDOM from 'react-dom'; import WebApp from './webapp'; ReactDOM.render(<WebApp />, document.getElementById('root'));
admin/src/components/Portal.js
belafontestudio/keystone
import React from 'react'; module.exports = React.createClass({ displayName: 'Portal', render: () => null, portalElement: null, componentDidMount() { var p = this.props.portalId && document.getElementById(this.props.portalId); if (!p) { var p = document.createElement('div'); if (this.props.portalId) { ...
packages/ringcentral-widgets-docs/src/app/pages/Components/AnimationAlert/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import AnimationAlert from 'ringcentral-widgets/components/AnimationAlert'; const props = {}; props.dismiss = () => null; props.currentLocale = 'en-US'; props.messages = [ { id: '111', level: 'success', message: 'success message', }, { id: '2...
src/frontend/components/About.js
ChVince/new-record
import React from 'react' import {bindActionCreators} from 'redux' import {getPartnersLogo} from '../actions/common' import {connect} from 'react-redux' import translate from '../utils/translate' import * as _ from 'lodash' /*require('../styles/refactoredStyles/about.less');*/ require('../styles/newStyles/about.less...
src/components/RepoItem.js
bmacheski/gh-contributors
'use strict'; import React from 'react'; import { Router, Link } from 'react-router'; export default React.createClass({ render: function() { return ( <li> <div className="pure-g repo-outer-container"> <div className="pure-u-2-3"> <Link to="contribresults" params={{ username:...
src/app/core/molecules/grid/col.js
blowsys/reservo
import React from 'react'; import PropTypes from 'prop-types'; const createProps = (propTypes, props, className) => { const newProps = {}; Object.keys(props) .filter(key => (key === 'children' || !propTypes[key])) .forEach(key => (newProps[key] = props[key])); return Object.assign({}, newPr...
tests/react_native_tests/test_data/native_code/Modal/storybook/stories/Mobile/index.js
ibhubs/sketch-components
import React from 'react' import { storiesOf } from '@storybook/react-native' import { action } from '@storybook/addon-actions' import { linkTo } from '@storybook/addon-links' import Mobile from 'app/components/Mobile' storiesOf('Mobile', module) .add('default', () => ( <Mobile></Mobile>))
webpack/components/NewTemplateSync/components/TextButtonField/index.js
mmoll/foreman_templates
import React from 'react'; import { get } from 'lodash'; import { Field as FormikField } from 'formik'; import PropTypes from 'prop-types'; import RenderField from './RenderField'; const TextButtonField = ({ item = {}, label, name, className, inputClassName, blank, buttonText, buttonAction, fieldSel...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/view-list.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList.displayName = 'ActionViewList'; ActionViewList.muiName = 'SvgI...
src/components/KeystoreUploader/CurrentWallet.js
chochinlu/ens-bid-dapp
import React from 'react'; import './CurrentWallet.css'; export const CurrentWallet = (props) => ( <div className="CurrentWallet"> <h2>Current Wallet</h2> <p> <span>Address: </span> {props.address} </p> <p> <span>Balance: </span> {props.balance} ETH </p> </div> );
Libraries/Components/Keyboard/Keyboard.js
DanielMSchmidt/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/Header/index.js
ELTCOIN/website
import React from 'react'; import logo from './images/logo.png'; export default () => ( <nav className="dt w-100 border-box pv4 ph3 ph5-ns bg-transparent"> <a href="/" className="link dim dtc v-mid w-15" name="home"> <img src={logo} className="h2 w2" alt="" /> </a> <div className="dtc v-mid w-85 tr...
fixtures/smoke/boostrap-sass/src/index.js
IamJoseph/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import './index.sass'; ReactDOM.render(<div />, document.getElementById('root'));
src/components/Header/Header.js
djyaron/DNDTutor
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...
src/routes/not-found/index.js
joaquingatica/git-demo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-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'; import Layout from '../../co...
src/client/components/main/layout.js
caseywebdev/bruteball
// import {Route, Switch} from 'react-router-dom'; // import Home from '../home'; // import NotFound from '../not-found'; // import React from 'react'; // import styles from './main.scss'; // import User from '../user'; // import Verify from '../verify'; // export default () => // <div> // <div className={styles...
ee/client/omnichannel/tags/TagNew.js
VoiSmart/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import { FormSkeleton } from '../../../../client/components/Skeleton'; import { useTranslation } from '../../../../client/contexts/TranslationContext'; import { AsyncStatePhase } from '../../../../client/hooks/useAsyncState'; import { useEndpointD...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
idealgardens/codeword
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
server/sonar-web/src/main/js/apps/component-measures/components/IconHistory.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
docs/app/Examples/collections/Message/Variations/MessageExampleWarning.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleWarning = () => ( <Message warning> <Message.Header>You must register before you can do that!</Message.Header> <p>Visit our registration page, then try again.</p> </Message> ) export default MessageExampleWarning
packages/react/.storybook/syntax-highlighter.js
massgov/mayflower
import React from 'react'; import { AutoSizer, List } from 'react-virtualized'; import { PrismLight as ReactSyntaxHighlighter } from 'react-syntax-highlighter'; import { ActionBar, createSyntaxHighlighterElement, EmptyBlock } from '@storybook/components'; import { styled, ThemeProvider, convert, themes, Global, getScr...
application/components/Loading.js
ultimagriever/todo-list-react-native
import React, { Component } from 'react'; import { Text, View } from 'react-native'; import { Styles } from '../styles'; class Loading extends Component { constructor(props) { super(props); this.originalText = this.props.text; this.state = { text: this.originalText }; this.componentDidMo...
client/src/app.js
mbchoa/presence
import React from 'react'; import { BrowserRouter as Router, Route, Switch, } from 'react-router-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import HomePage from './components/pages/Home'; import SignupPage from './comp...
src/components/Blog.js
jasonrundell/jasonrundell-react-site-2017
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { markPostAsRread } from '../actions/markPostAsRread'; import { READ, UNREAD } from '../constants'; import ReadPostButton from './Buttons'; import './Blog.css'; const BlogPostLinkList = ({ blogs = () => {}...
RnSmartDMS/src01/components/header.js
duycoder/SmartDMS
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; export default class Header extends Component { state = {} render() { return ( <View style={styles.container}> <View style={styles.titleContainer}> ...
examples/RaisedButton.js
react-materialize/react-materialize
import React from 'react'; import Button from '../src/Button'; import Icon from '../src/Icon'; export default <div> <Button waves='light'>button</Button> <Button waves='light'>button<Icon left>cloud</Icon></Button> <Button waves='light'>button<Icon right>cloud</Icon></Button> </div>;
fixtures/ssr/src/components/App.js
joecritch/react
import React, { Component } from 'react'; import Chrome from './Chrome'; import Page from './Page'; export default class App extends Component { render() { return ( <Chrome title="Hello World" assets={this.props.assets}> <div> <h1>Hello World</h1> <Page /> </div> ...
src/actions/discover.js
ello/webapp
import React from 'react' import * as ACTION_TYPES from '../constants/action_types' import * as StreamRenderables from '../components/streams/StreamRenderables' import navCategoriesQuery from '../queries/navCategories' import allCategoriesQuery from '../queries/allCategories' import { ZeroSubscribedStream } from '../co...
app/containers/Profile/ChangePassword.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import { toggleModal, updatePassword, enableSubmitForm, disableSubmitForm } from '../../actions'; import { Modal } from '.....
src/pages/tags/index.js
emjayoh/nsii
import React from 'react' import { kebabCase } from 'lodash' import Helmet from 'react-helmet' import { Link, graphql } from 'gatsby' import Layout from '../../components/Layout' const TagsPage = ({ data: { allMarkdownRemark: { group }, site: { siteMetadata: { title } } }, }) => ( <Layout> <section className="...
frontend/src/components/contact/body/ContactForm.js
dimkarakostas/unimeet
import React, { Component } from 'react'; import {Form, FormControl, FormGroup, Button, Col, ControlLabel} from 'react-bootstrap'; import ContactModal from './ContactModal'; import * as config from '../../config'; import axios from 'axios'; axios.defaults.withCredentials = true; class ContactForm extends Component { ...
app/components/pages/Home.js
spanias/isomorphic-react-base-app
/** * Copyright 2015, Digital Optimization Group, LLC. * Copyrights licensed under the APACHE 2 License. See the accompanying LICENSE file for terms. */ import React from 'react'; import ExampleStore from '../../stores/exampleStore'; import {connectToStores} from 'fluxible-addons-react'; import SaveState from '../eleme...
src/components/d3charts/PieChart.js
nbuechler/studious-display
import React from 'react'; import d3 from 'd3'; export default class PieChart extends React.Component { static defaultProps = { width: 100, height: 100 } constructor (props) { super(props); this.state = { }; } render () { var {props} = this, {width, height, data} = props; var radius...
docs/src/app/components/pages/components/Divider/ExampleList.js
matthewoates/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import {List, ListItem} from 'material-ui/List'; import MobileTearSheet from '../../../MobileTearSheet'; const DividerExampleList = () => ( <MobileTearSheet height={250}> <List> <ListItem insetChildren={true} primaryText="Janet Perkins B...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Sribalaji1004/Angular-form
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
front/app/js/components/PeriodCard.js
nudoru/learning-map
import React from 'react'; import {isPeriodComplete} from '../store/selectors'; import {StatusRibbonTop} from "./StatusRibbon"; import {Col, Row} from "../rh-components/rh-Grid"; /** * Card showing the week information, overall completion icon, and courses * * Hierarchy: Period card -> Topic Card(s) -> Content Row(...
node_modules/react-bootstrap/es/ControlLabel.js
ivanhristov92/bookingCalendar
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/components/about.js
escalant3/react-for-humans
import React from 'react'; const About = () => <h3>About</h3> export default About
src/components/AboutPage.js
lamosty/lexi
import React, { Component } from 'react'; // Dumb component export default class AboutPage extends Component { createMarkup(html) { return { __html: html } } render() { const { page } = this.props; return ( <div className="blog-post"> ...
src/Field.react.js
wincent/hextrapolate
/** * Copyright 2003-present Greg Hurrell. All rights reserved. * Licensed under the terms of the MIT license. * * @flow */ import DIGITS from './DIGITS'; import PropTypes from 'prop-types'; import React from 'react'; import convert from './convert'; import cx from 'classnames'; export type Value = { base: num...
src/Collapse.js
jakubsikora/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import domUtils from './utils/domUtils'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import createChainedFunction from './utils/createChainedFunction'; let capitali...
pootle/static/js/auth/components/SocialAuthError.js
mail-apps/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import { PureRen...
components/Games.js
ttalhouk/Game_On
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, TabBarIOS, Text, Navigator, TouchableHighlight, ListView, View, ActivityIndicatorIOS, } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; const styles = require('../components/styling.js') class Gam...
packages/cxx/src/root.js
wangzuo/cxx
import React from 'react'; import { connect } from 'react-redux'; const Root = ({ router }) => <router.component />; const select = state => ({ router: state.router }); export default connect(select)(Root);
admin/client/components/PopoutListHeading.js
codevlabs/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutListHeading = React.createClass({ displayName: 'PopoutListHeading', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, }, render () { let className = classnames...
src/App.js
bottledsmoke/react-transform-boilerplate
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; this.interval = setInterval(() => this.tick(), 1000); } tick() { this.setState({ counter: this.state.coun...
js/src/3rdparty/email-verification/terms-of-service.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 your option) any lat...
packages/mineral-ui-icons/src/IconExplore.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 IconExplore(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
frontend/fbpicks/src/GameTime.js
mkokotovich/footballpicks
import React from 'react'; import moment from 'moment'; import './GameTime.css' function GameTime(props) { const momentDate = moment(new Date(props.game.game_time)) return ( <div className="GameTime"> {momentDate.format('dddd')} <br/> {momentDate.format('MMM')} {momentDate.format('Do')}, {m...
client/src/shared/components/list-errors.js
jmsmrgn/fem-testing-workshop
import React from 'react' function ListErrors(props) { const errors = props.errors if (errors) { return ( <ul className="error-messages"> {Object.keys(errors).map(key => { return ( <li key={key}> {key} {errors[key]} </li> ) })} ...
test/unit/testHelper.js
hasznosl/truth-cv-frontend
import jq from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import createHistory from 'react-router/lib/browserHistory'; import { Provider...
packages/material-ui-icons/src/TouchApp.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.6...
app/desktop/Boilerplates/index.js
christianalfoni/webpack-bin
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from './styles.css'; @Cerebral({ boilerplates: 'bin.boilerplates' }) class Boilerplates extends React.Component { render() { return ( <div className={styles.wrapper}> {Object.keys(this.props.boiler...
docs-ui/components/contextData.stories.js
looker/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import ContextData from 'app/components/contextData'; storiesOf('ContextData', module).add( 'strings', withInfo('Default')(() => <ContextData d...
app/components/theme-picker.js
crodriguez1a/react-my-pace
import React from 'react'; import Session from './../session/routine'; /** Renders the theme picker @class ThemePicker @extends React Component @private */ class ThemePicker extends React.Component { constructor(props) { super(props); } state = { theme: Session.find('theme'), // TODO all sessio...
app/modules/Notes/components/NoteList.js
osenvosem/react-mobx-boilerplate
import React from 'react'; import { observer } from 'mobx-react'; import AddNote from './AddNote'; import Note from './Note'; import styles from '../styles.css'; export default observer(function NoteList({ store }) { return ( <section className={styles.notes}> {store.notes.map((note, idx) => ( <Not...
react/features/invite/components/add-people-dialog/web/DialInNumber.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../../../base/i18n'; import { Icon, IconCopy } from '../../../../base/icons'; import { copyText } from '../../../../base/util'; import { _formatConferenceIDPin } from '../../../_utils'; /** * The type of the React {@code Component} pro...
src/components/video_list_item.js
GitLiamuk/Youtube-Search-App
import React from 'react' // ({var, var}) = get prop.var and set it to var const VideoListItem = ({video, onVideoSelect}) => { return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left"> <img src={video.snippet....
src/svg-icons/action/redeem.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRedeem = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.1...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
bunnyblue/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
app/components/ProblemComments.js
jmpressman/REACTO-platform
import React from 'react'; import { connect } from 'react-redux'; import { deleteSingleComment } from '../action-creators/problemCommentsActionCreator'; class ProblemComments extends React.Component { constructor(props) { super(props); this.handleDeleteComment = this.handleDeleteComment.bind(this); } ...
packages/react/src/components/organisms/Header/Header.stories.js
massgov/mayflower
import React from 'react'; import { StoryPage } from 'StorybookConfig/preview'; import styles from '@massds/mayflower-assets/build/scss/header.scss'; import logo from '@massds/mayflower-assets/static/images/logo/stateseal.png'; import SiteLogo from 'MayflowerReactAtoms/media/SiteLogo'; import { HamburgerLogoWrapper } f...
examples/demos/resource.js
TeaBough/react-big-calendar
import React from 'react' import { Calendar, Views } from 'react-big-calendar' import ExampleControlSlot from '../ExampleControlSlot' const events = [ { id: 0, title: 'Board meeting', start: new Date(2018, 0, 29, 9, 0, 0), end: new Date(2018, 0, 29, 13, 0, 0), resourceId: 1, }, { id: 1, ...
basic-filter-table/src/components/Footer.js
krescruz/redux-component
import React from 'react' import FilterLink from '../containers/FilterLink' const Footer = () => ( <p> Show: {" "} <FilterLink filter="SHOW_ALL"> All </FilterLink> {", "} <FilterLink filter="SHOW_ACTIVE"> Active </FilterLink> {", "} <FilterLink filter="SHOW_COMPLETED">...
src/app/utils/WithRouter.js
alexlbr/apollo-client-exercise
import React from 'react' import PropTypes from 'prop-types' const WithRouter = (MyComponent) => { const withRouter = (props, context) => <MyComponent {...props} router={context.router} /> withRouter.contextTypes = { router: PropTypes.object.isRequired } return withRouter } export default WithRouter
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/recoverbutton.js
patel344/Mr.Miner
import React from 'react' const RecoverButton = ({actions}) => { const handleRecoverButtonClick = () => actions.showSeedRecoveryDialog() return ( <div className="recover-button" onClick={handleRecoverButtonClick}> <i className="fa fa-key fa-2x" /> <span>Recover Seed</span> </div> ) } export default Recov...
src/svg-icons/communication/forum.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationForum = (props) => ( <SvgIcon {...props}> <path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/> </SvgIcon> ); Co...
VirtualPasswordInput/index.js
rnxteam/rnx-ui
import React, { Component } from 'react'; import { TouchableWithoutFeedback, View, Text, } from 'react-native'; import PropTypes from 'prop-types'; import styles from './styles.js'; const NOOP = () => {}; class VirtualPasswordInput extends Component { constructor(props) { super(props); this.state = {...
src/components/Navigation/Navigation.js
deboraduarte/starter
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; // eslint-disable-line no-unused-vars import classNames from 'classnames'; import styles from './Navigation.less'; // eslint-disable-line no-unused-vars import withStyles from '../../decorators/withStyles'; // eslint-di...
src/components/Auth/SignUp/SignUp.react.js
DeveloperAlfa/chat.susi.ai
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import $ from 'jquery'; import './SignUp.css'; import PasswordField from 'material-ui-password-field'; import Dialog from 'material-ui/Dial...
src/parser/druid/feral/CONFIG.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Anatta336 } from 'CONTRIBUTORS'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone buil...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/format-list-bulleted.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatListBulleted = (props) => ( <SvgIcon {...props}> <path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5...
src/parser/warlock/demonology/modules/talents/NetherPortal.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatThousands } from 'common/format'; import StatisticListBoxItem from 'interface/others/StatisticListBoxItem'; import DemoPets from '../pets/DemoPets'; c...
app/containers/SettingsPage.js
aaroncox/vessel
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Redirect } from 'react-router'; import { connect } from 'react-redux'; import Settings from '../components/Settings'; import MenuBar from './MenuBar'; import ContentBar from '../components/ContentBar'; import * as Ac...
src/Popup/Popup.js
Detaysoft/react-chat-elements
import React from 'react'; import './Popup.css'; import Button from '../Button/Button'; const classNames = require('classnames'); function Popup(props) { if (props.show === true) return ( <div className={classNames('rce-popup-wrapper', props.type, props.className)}> <div className='rce-popup'> ...
src/svg-icons/editor/functions.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFunctions = (props) => ( <SvgIcon {...props}> <path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"/> </SvgIcon> ); EditorFunctions = pure(EditorFunctions); EditorFunctions.displayName = 'EditorFunctions...
src/main.js
rkram5424/BentoBeats
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); // ======================================================== // Store Instanti...
src/client/components/forms/userCollection.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2020 Prabal Singh * * 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 2 of the License, or * (at your option) any later version. * * This program is distr...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
pclubiiti/pclubiiti.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'));
packages/idyll-components/src/inline.js
idyll-lang/idyll
import React from 'react'; class Inline extends React.PureComponent { render() { return ( <div style={{ display: 'inline-block', ...this.props.style }}> {this.props.children} </div> ); } } Inline._idyll = { name: 'Inline', tagType: 'open', children: [ `[div style:\`{width: 10...
clients/components/ProSettings/ProEnterApp/ProEnterApp.js
CalderaWP/Caldera-Forms
import React from 'react'; import classNames from 'classnames' /** * Create the global form settings UI * @param {Object} props * @return {*} * @constructor */ export const ProEnterApp = (props) => { return( <div className={classNames(props.className,ProEnterApp.classNames.wrapper)} > <a href={'/wp-adm...
src/index.js
dkozar/raycast-dom
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
docs/src/examples/modules/Embed/Types/EmbedExampleYoutube.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Embed } from 'semantic-ui-react' const EmbedExampleYouTube = () => ( <Embed id='O6Xo21L0ybE' placeholder='/images/image-16by9.png' source='youtube' /> ) export default EmbedExampleYouTube
waitingPage.js
whg1412/React-Native-PanProgress
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TextInput } from 'react-native'; var Dimensions = require('Dimensions'); let widthOfMargin = Dimensions.get('window').width * 0.05; ...
examples/shared-root/app.js
upraised/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var App = React.createClass({ render() { return ( <div> <p> This illustrates how routes can share UI w/o sharing the URL. When routes have no path, they never match themselves but their chil...
app/components/addProduct.js
melaniemohn/grace-shopper
import React from 'react' export const Addproduct = ({addProductBack, categories}) => { return ( <div className="container"> <h2>Add Product</h2> <form className="col-sm-6" onSubmit={evt => { evt.preventDefault() addProductBack(evt.target.product_name.value, evt.target.product_image.v...
actor-apps/app-web/src/app/components/common/Favicon.react.js
treejames/actor-platform
import React from 'react'; export default class Fav extends React.Component { static propTypes = { path: React.PropTypes.string } constructor(props) { super(props); //// Create link element and it's attributes //let favicon = document.createElement('link'); //let rel = document.createAttrib...
node_modules/react-slick/src/track.js
DaveSpivey/muttagain
'use strict'; import React from 'react'; import assign from 'object-assign'; import classnames from 'classnames'; var getSlideClasses = (spec) => { var slickActive, slickCenter, slickCloned; var centerOffset, index; if (spec.rtl) { index = spec.slideCount - 1 - spec.index; } else { index = spec.index...
src/Parser/Monk/Windwalker/Modules/Chi/ChiDetails.js
hasseboulen/WoWAnalyzer
// Heavily inspired by resource breakdown in Feral and Retribution import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Tab from 'Main/Tab'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import ChiBreakdown from './ChiBreakdown'; import ChiTracker from './ChiTracker'; i...
src/components/MyFilterMenu.js
fredrikku/rikku-grommet-react-sample
import React from 'react'; import PropTypes from 'prop-types'; import Box from 'grommet/components/Box'; import Menu from 'grommet/components/Menu'; import Anchor from 'grommet/components/Anchor'; import MoreIcon from 'grommet/components/icons/base/More'; const MyFilterMenu = (props) => { return ( <Box flex={true}...