path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
frontend/modules/news/components/News.js
RyanNoelk/OpenEats
import React from 'react' import { Link } from 'react-router-dom' import { Carousel } from 'react-bootstrap' import { injectIntl, IntlProvider, defineMessages, formatMessage } from 'react-intl' import { request } from '../../common/CustomSuperagent'; import MiniBrowse from '../../browse/containers/Mini...
src/components/navbar/Navbar.js
sanjay1909/WeaveReact
import React from 'react'; import ComponentManager from "../../ComponentManager"; import AbstractComponent from "../../AbstractComponent"; import Brand from "./Brand"; import Logo from "./Logo"; import Title from "./Title"; import List from "./List"; import Form from "./Form"; import Link from "./Link"; import HTMLWrap...
src/icons/MusicVideoIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class MusicVideoIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M46 10c0-2.21-1.79-4-4-4H6c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h36c2.21 0 4-1.79 4-4V10zm-4 28H6V10h...
webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcher.js
theforeman/foreman_ansible
import React from 'react'; import { Grid, Row, Col } from 'patternfly-react'; import { lowerCase } from 'lodash'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import AvailableRolesList from './components/AvailableRolesList'; import AssignedRolesList from './components...
apps/mk-app-delivery-order/action.js
ziaochina/mk-demo
import React from 'react' import ReactDOM from 'react-dom' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' import { Map, fromJS } from 'immutable' import moment from 'moment' import utils from 'mk-utils' import extend from './extend' class action { constructor(option...
newclient/scripts/components/user/dashboard/travel-log-button/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...
app/components/ProfilePictureIcon/index.js
AriHrannar/politech-frontend
/** * * ProfilePictureIcon * */ import React from 'react'; // import styled from 'styled-components'; function ProfilePictureIcon() { return ( <div> <i className="fa fa-user" aria-hidden="true"></i> </div> ); } ProfilePictureIcon.propTypes = { }; export default ProfilePictureIcon;
app/components/Dashboard/TestingSessions/InfoModal.js
cdiezmoran/AlphaStage-2.0
import React from 'react'; import uuid from 'uuid/v4'; import { func, string, object, bool } from 'prop-types'; import styles from './InfoModal.scss'; import Modal from '../../Modal'; const InfoModal = ({ id, startSession, session, micAllowed, handleChange }) => { const onStart = () => { document.getElementById...
src/index.js
gxoptg/Colr
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import './index.no-modules.css'; import ColrApp from './components/ColrApp/ColrApp.js'; import config from './config.json'; import configureStore from './store.js'; import { setConfig } from '...
src/components/Disclaimer/Disclaimer.js
chochinlu/ens-bid-dapp
import React from 'react'; import Paper from 'material-ui/Paper'; import './Disclaimer.css'; export const Disclaimer = () => ( <div className="Disclaimer"> <Paper > <h1>Disclaimer</h1> <p>ENS.BID is not a "web wallet". You do not create an account or give us your funds to hold onto. No data ...
static/programming-tutorials-backup/src/projects/frontend/lessons/HTMLTags.js
EdwardRees/EdwardRees.github.io
import React from 'react'; const HTMLTags = () => ( <div> <h2>HTML5 Tag System</h2> </div> ) export { HTMLTags }
js/common/GridView.js
xiekw2010/react-native-gitfeed
'use strict'; import React from 'react'; import { AppRegistry, View, StyleSheet, ListView, } from 'react-native'; export default React.createClass({ groupItems: function(items, itemsPerRow) { var itemsGroups = []; var group = []; items.forEach(function(item) { if (group.length === itemsPer...
packages/material-ui-icons/src/PanoramaWideAngle.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PanoramaWideAngle = props => <SvgIcon {...props}> <path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12c0-...
node_modules/react-router/modules/Route.js
yomolify/cc-server
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './PropTypes'; import warning from 'warning'; var { string, bool, func } = React.PropTypes; /** * A <Route> is used to declare which components are rendered ...
JS/components/Task.js
letsspeak/Stock
import React from 'react' import PropTypes from 'prop-types' const Task = ({ title, completed, onClick }) => ( <li onClick={onClick} style={{textDecoration: completed ? 'line-through' : 'none' }} > {title} </li> ) Task.propTypes = { title: PropTypes.string.isRequired, completed: PropTypes.bool.i...
src/Components/Answers/Answer.js
ccbayer/react-quiz
import React, { Component } from 'react'; import ReactDom from 'react-dom'; import update from 'react-addons-update'; import { Button, Col, Grid, Row } from 'react-bootstrap'; /* Answer: Renders list of selectable answers */ const AnswerImage = React.createClass({ render: function() { if(this.props.imgSrc) {...
src/lib/teams/remove-account-link.js
getinsomnia/insomnia.rest
import React from 'react'; import PropTypes from 'prop-types'; import * as session from '../session'; import Link from '../../components/link'; class RemoveAccountLink extends React.Component { state = { loading: false }; async _handleClick(e) { e.preventDefault(); const {teamName, teamId, accountN...
yarn-workspace/modules/display-data-widget/src/AppComponent.js
gamerson/liferay-blade-samples
import PropTypes from 'prop-types'; import React from 'react'; import {Provider} from 'react-redux'; import store from 'redux-store'; import actions from 'redux-store/actions'; import BodyTrackerAnalysis from './BodyTrackerAnalysis'; const AppComponent = ({configuration}) => { store.dispatch( actions.mergeDisplay(...
client/src/components/TranscriptView/index.js
stanographer/aloft
import React from 'react'; import { withFirebase } from '../Firebase'; import Viewer from './Viewer'; import Private from '../Placeholders/Private'; import HasntStarted from '../Placeholders/HasntStarted'; class Index extends React.Component { constructor(props) { super(props); this.state = { job: {},...
app/javascript/mastodon/features/public_timeline/index.js
verniy6462/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { refreshPublicTimeline, exp...
front/app/js/components/ScrollWatch.js
nudoru/learning-map
import React from 'react'; import PropTypes from 'prop-types'; // Originally from here https://medium.com/tandemly/im-breaking-up-with-higher-order-components-44b0df2db052 // ScrollWatch - compose any component(s) that need // to make use of the current 'x' and 'y' scroll position. export class ScrollWatch extends R...
example-expo/App.js
atFriendly/react-native-friendly-chat
import React, { Component } from 'react'; import { Asset, AppLoading } from 'expo'; import { View, StyleSheet, Linking } from 'react-native'; import { GiftedChat } from 'react-native-gifted-chat'; import Sentry from 'sentry-expo'; import messagesData from './data'; import NavBar from './NavBar'; import CustomView fro...
src/svg-icons/image/center-focus-strong.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCenterFocusStrong = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V...
src/svg-icons/av/featured-video.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedVideo = (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> ); AvFeaturedVideo = pure(AvFeaturedVideo)...
src/containers/pages/miscellaneous/terms-of-service/introduction.js
vFujin/HearthLounge
import React from 'react'; const Introduction = () => { return ( <div className="introduction"> <h2>Terms of Service</h2> <p>We, the folks at HearthLounge, are the creators of HearthLounge. We hope that you like our project. We want you to use them! However, to ensure your safety and ours, th...
react/dashboard_example/src/components/withViewport.js
webmaster444/webmaster444.github.io
/** * 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, { Component } from 'react'; // eslint-disabl...
node_modules/react-router/es6/RoutingContext.js
nolanelena/MyProjectSite-
'use strict'; 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]; } } } return target; }; function _classCallCheck(instance, Constructor...
app/js/components/SearchBox.js
niksoc/srmconnect
import React from 'react'; import ReactDOM from 'react-dom'; import {FormGroup, InputGroup, FormControl,Button, Glyphicon} from 'react-bootstrap'; const SearchBox = React.createClass({ submit(){ const input = ReactDOM.findDOMNode(this.inputBox); this.props.setQuery(input.value); }, clear(){ const input ...
tests/components/radar-chart-tests.js
Apercu/react-vis
import test from 'tape'; import React from 'react'; import {mount} from 'enzyme'; import RadialChart from 'radial-chart'; import BasicRadarChart from '../../showcase/radar-chart/basic-radar-chart'; import AnimatedRadarChart from '../../showcase/radar-chart/animated-radar-chart'; import {testRenderWithProps} from '../t...
src/ExpandRowHeaderColumn.js
AllenFang/react-bootstrap-table
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class ExpandRowHeaderColumn extends Component { constructor(props) { super(props); this.toggleExpandAllChilds = this.toggleExpandAllChilds.bind(this); } toggleExpandAllChilds() { this.props.toggleExpandAllChilds(); } ...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-1.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter1 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); ImageFilter1.displa...
test/PaginationSpec.js
jesenko/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Pagination from '../src/Pagination'; describe('Pagination', () => { it('Should have class', () => { let instance = ReactTestUtils.renderIntoDocument( <Pagination>Item content</Pagination> ); assert.ok(ReactTes...
examples/todomvc/containers/TodoApp.js
yyx990803/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...
blueprints/dumb/files/__test__/components/__name__.spec.js
dfalling/todo
import React from 'react' import <%= pascalEntityName %> from 'components/<%= pascalEntityName %>/<%= pascalEntityName %>' describe('(Component) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
src/main/js/about/containers/About.js
Bernardo-MG/dreadball-toolkit-webpage
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import Anchor from 'grommet/components/Anchor'; import Box from 'grommet/components/Box'; import Paragraph from 'grommet/components/Paragraph'; import SimpleView from 'views/containers/SimpleView'; import titleM...
src/fuzzy-wrapper.js
1egoman/fuzzy-picker
import React from 'react'; import PropTypes from "prop-types"; export default class FuzzyWrapper extends React.Component { constructor(props) { super(); this.state = { isOpen: false, }; // create a bound function to invoke when keys are pressed on the body. this.keyEvent = (function(event)...
src/svg-icons/av/replay-5.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay5 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2...
src/components/sub-components/Icons/Icons.js
theIYD/source-me
import React, { Component } from 'react'; import axios from 'axios'; import ReactTooltip from 'react-tooltip'; import { ClipLoader } from 'react-spinners'; class Icons extends React.Component { constructor(props) { super(props); this.state = { data: [], error: '', ...
stories/ErrorMessage.stories.js
nekuno/client
import React from 'react'; import { storiesOf } from '@storybook/react'; import ErrorMessage from '../src/js/components/ui/ErrorMessage/ErrorMessage.js'; storiesOf('ErrorMessage', module) .add('with short text', () => ( <div style={{height: '300px'}}> <ErrorMessage text={'Lorem ipsum'}/> ...
web/src/js/components/Search/WikipediaPageComponent.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import Paper from '@material-ui/core/Paper' import Typography from '@material-ui/core/Typography' const borderStyle = '1px solid #e4e4e4' const styles = theme => ({ wikiExtractHTML: { '& p': theme....
universal/components/products/Products.js
Amazing-Space-Invader/outline
/** * Created by invader on 10.07.16. */ import React from 'react' import s from './products.pcss' import {Grid, Row, Col} from 'react-flexgrid' import 'react-flexgrid/lib/flexgrid.css' import MdMoneyOff from 'react-icons/lib/md/money-off' import MdiPhone from 'react-icons/lib/md/phone-iphone' import MdComputer fr...
src/routes/myiworlds/Myiworlds.js
DaveyEdwards/myiworlds
/** * 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 PropTypes from 'prop-...
mxcube3/ui/containers/LoggerOverlayContainer.js
amilan/mxcube3
import React from 'react'; import { connect } from 'react-redux'; import UserLog from '../components/SampleView/UserLog'; export class LoggerOverlayContainer extends React.Component { toggleWindow() { const body = document.body; const wrapper = document.querySelector('#o-wrapper'); const log = document....
fields/types/code/CodeField.js
andreufirefly/keystone
import _ from 'lodash'; import CodeMirror from 'codemirror'; import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { FormInput } from 'elemental'; import classnames from 'classnames'; /** * TODO: * - Remove dependency on underscore */ // See CodeMirror docs for API: // h...
app/containers/FeaturePage/index.js
JonathanMerklin/react-boilerplate
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
app/packs/src/components/LiteratureDetails.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import Clipboard from 'clipboard'; import PropTypes from 'prop-types'; import { Table, PanelGroup, Button, Panel, ListGroup, ListGroupItem, Row, Col, Glyphicon, OverlayTrigger, Tooltip } from 'react-bootstrap'; import Immutable from 'immutable'; import { u...
docs/app/Examples/collections/Table/Variations/TableExampleInverted.js
clemensw/stardust
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleInverted = () => { return ( <Table inverted> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes</...
src/scenes/home/challenge/challenge.js
OperationCode/operationcode_frontend
import React, { Component } from 'react'; import axios from 'axios'; import Section from 'shared/components/section/section'; import namesFile from 'operationcode_challenge/names.txt'; import ForkButton from '../../../images/GitHubForkButton.png'; import ProposeButton from '../../../images/GitHubProposeButton.png'; imp...
src/svg-icons/file/cloud.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloud = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"/>...
src/routes/Home/components/HomeView.js
Mikosko/EimPanel
/** * @Author: Miloš Kolčák * @Date: 2017-01-06T16:35:55+01:00 * @Email: milos.kolcak@gmail.com * @Last modified by: Miloš Kolčák * @Last modified time: 2017-01-06T17:30:13+01:00 */ import React from 'react' import './HomeView.scss' import { browserHistory } from 'react-router' class HomeView extends React.Compo...
examples/custom-menu/app.js
rackt/react-autocomplete
import React from 'react' import DOM from 'react-dom' import Autocomplete from '../../lib/index' import { fakeCategorizedRequest } from '../../lib/utils' class App extends React.Component { constructor(props) { super(props) this.state = { value: '', unitedStates: [], loading: false } ...
src/routes/login/index.js
loremtest/skb5-with-storybook
/** * 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...
src/js/components/icons/base/SocialBitcoin.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...
src/components/PatronBlock/PatronBlockModalWithOverrideModal.js
folio-org/ui-users
import React from 'react'; import PropTypes from 'prop-types'; import OverrideModal from './OverrideModal'; import PatronBlockModal from './PatronBlockModal'; class PatronBlockModalWithOverrideModal extends React.Component { constructor() { super(); this.state = { additionalInfo: '', overrideMo...
src/parser/paladin/holy/CONFIG.js
fyruna/WoWAnalyzer
import React from 'react'; import { Zerotorescue } from 'CONTRIBUTORS'; import SPECS from 'game/SPECS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import retryingPromise from 'common/retryingPromise'; import CHANGELOG from './CHANGELOG'; export default { // The people that have c...
test/fixtures/react/component/expected.js
davesnx/babel-plugin-transform-react-qa-classes
import React, { Component } from 'react'; class componentName extends Component { render() { return <div data-qa="component-name"> <h1>Hello world</h1> </div>; } } export default componentName;
src/components/TextRotator.js
dkozar/react-wrappy-text
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import WrappyText from './WrappyText.js'; import { intersects } from '../util/rect.js'; export default class TextRotator extends Component { constructor(props) { super(props); this.onScrollOrResize = this.onScrollOrResize...
app/javascript/mastodon/features/ui/components/modal_loading.js
pso2club/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; // Keep the markup in sync with <BundleModalError /> // (make sure they have the same dimensions) const ModalLoading = () => ( <div className='modal-root__modal error-modal'> <div className='error-modal__body'> ...
index.ios.js
leechuanjun/TLReactNativeProject
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, NavigatorIOS, StatusBar, } from 'react-native'; import MainView from './view/common/mainview'; class TLReactNativeProject extends...
src/components/common/svg-icons/action/picture-in-picture-alt.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPictureInPictureAlt = (props) => ( <SvgIcon {...props}> <path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/> </Svg...
src/message/cachedMessageRender.js
nashvail/zulip-mobile
/* @flow */ import React from 'react'; import isEqual from 'lodash.isequal'; import type { RenderedSectionDescriptor } from '../types'; import MessageListSection from './MessageListSection'; import MessageListItem from './MessageListItem'; let lastRenderedMessages = null; let cachedRenderedData = {}; export default ...
src/pages/innocence.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Innocence' /> )
node_modules/react-bootstrap/es/Modal.js
vitorgomateus/NotifyMe
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
examples/js/manipulation/export-csv-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0*/ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for ...
src/svg-icons/action/alarm-on.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0...
src/components/Header/index.js
devnews/web
import React from 'react'; import Popover from 'material-ui/Popover'; import IconButton from 'material-ui/IconButton'; import InfoOutlineIcon from 'material-ui/svg-icons/action/info-outline'; import Logo from '../Logo'; import styles from './index.css'; class Header extends React.Component { constructor () { ...
packages/mineral-ui-icons/src/IconNavigateNext.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 IconNavigateNext(props: IconProps) { const iconProps = { rtl: true, ...props }; return ( <Icon {...iconPr...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsConstructorAlias.js
samwgoldman/flow
// @flow import React from 'react'; class MyComponent extends React.Component { constructor(props: {a: number, b: number, c: number}) {} defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { constructor(...
docs/pages/CustomComponents/index.js
jossmac/react-images
// @flow import React, { Component } from 'react' import { Helmet } from 'react-helmet' import AlternativeMedia from './AlternativeMedia' import ImageViewer from './ImageViewer' import { Code, CodeBlock, Title } from '../components' const propFn = k => { const style = { display: 'inline-block', marginBottom: 4, ma...
src/components/Overlay/Overlay.js
Zoomdata/nhtsa-dashboard
import flowRight from 'lodash.flowright'; import React, { Component } from 'react'; import OverlaySplat from '../OverlaySplat/OverlaySplat'; import OverlayTitle from '../OverlayTitle/OverlayTitle'; import { VelocityComponent } from 'velocity-react'; import { observer, inject } from 'mobx-react'; class Overlay extends ...
src/app/containers/App.js
michael-wolfenden/redux-shopping-cart
/* eslint-disable global-require */ import React from 'react' import ProductsContainer from 'modules/products/containers/ProductsContainer' import CartContainer from 'modules/cart/containers/CartContainer' const devTools = () => { if (process.env.NODE_ENV !== 'production') { const DevTools = require('cont...
app/components/Elements/RobotStats.js
alexpell00/FRCUltimateManager
/* * @Author: alexpelletier * @Date: 2016-03-24 05:42:55 * @Last Modified by: alexpelletier * @Last Modified time: 2016-03-24 05:44:43 */ import React from 'react'; import request from 'superagent'; var RobotStats = React.createClass({ getInitialState() { return {scemaData:{}}; }, componentDidMount() { req...
js/jqwidgets/demos/react/app/grid/autorowheight/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'xml', datafields: [ { name: 'ShippedDate', ...
src/ImageViewer.js
lmylr/lmylr.github.io
import React from 'react'; import SwipeableViews from 'react-swipeable-views'; const styles = { root: { height: '100%', width: '100%', }, content: { marginTop: 'auto', marginBottom: 'auto', textAlign: 'center', }, card: { height: 'auto', width: 'auto', maxWidth: '100%', maxHeight: '100%'...
src/client.js
w01fgang/react-redux-universal-hot-example
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
src/icons/AndroidMap.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidMap extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_34_"> <g> <g> <path d="M437.333,64c-2.176,0-4.396,1.369-9.176,3.207S320,108.802,320,108.802L192,64L71.469,104...
assets/jqwidgets/demos/react/app/grid/dynamiccolumns/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'json', url: '../sampledata/rows_and_columns.txt' };...
test/index.ios.js
oliverliye/weixin-app-sprite-dev
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class test extends Component { render() { return ( <View style={styles.container}> ...
powerpiapp/elements/app.js
Knapsacks/power-pi-v2
import React, { Component } from 'react'; import { View, LayoutAnimation } from 'react-native'; import Banner from './banner'; import Menu from './menu'; const FBSDK = require('react-native-fbsdk'); const { AccessToken, LoginButton, GraphRequest, GraphRequestManager, } = FBSDK; export default class app e...
6.0.0-alpha.14/examples/asyncValidation/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(290),e.exports=n(288)},function(e,t,n){var r=n(5),o=n(33),i=n(17),a=n(19),u=n(38),s="prototype",...
src/pages/hosts.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Hosts from '../components/Hosts'; import withData from '../lib/withData'; import withIntl from '../lib/withIntl'; import withLoggedInUser from '../lib/withLoggedInUser'; class HostsPage extends React.Component { static propTypes = { getLogge...
src/components/AboutPage/index.spec.js
aaronholmes/yelp-clone
import React from 'react'; import {shallow} from 'enzyme'; import {expect} from 'chai'; import AboutPage from './index'; describe('<AboutPage />', () => { it('should have a header called \'About\'', () => { const wrapper = shallow(<AboutPage />); const actual = wrapper.find('h2').text(); const expected =...
docs/src/app/components/pages/components/Avatar/ExampleSimple.js
owencm/material-ui
import React from 'react'; import Avatar from 'material-ui/Avatar'; import FileFolder from 'material-ui/svg-icons/file/folder'; import FontIcon from 'material-ui/FontIcon'; import List from 'material-ui/List/List'; import ListItem from 'material-ui/List/ListItem'; import { blue300, indigo900, orange200, deepOrange300,...
src/components/App/App.js
darotar/react-portal
import React, { Component } from 'react'; import Header from './../Header/Header'; import Main from './../Main/Main'; import Footer from './../Footer/Footer'; import './App.scss'; class App extends Component { render() { return ( <div className="App" > <Header /> <Main /> ...
scaffold/templates/statefulComponentRedux.js
SteMcLellan/queryman
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from './component.js'; const mapStateToProps = (state) => { return { ...state.{{ComponentName}} } } const mapDispatchToProps = (dispatch) => { return { dummyAction: () => { dispatch( actions.dummyAction() ); ...
client/app/index.js
kwangkim/node-mc
import './index.styl'; import React from 'react'; import moment from 'moment'; import Highlight from 'react-highlight'; export default class App extends React.Component { componentDidMount() { let tabsActions = this.props.flux.getActions('tabs'); tabsActions.changeDir('leftPanel').then(() => { ...
test/test_helper.js
Ruffeng/VERMELL_REDUX
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...
app/jsx/files/FolderChild.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - 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...
src/svg-icons/image/iso.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (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-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
packages/wix-style-react/src/AudioPlayer/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import AudioPlayer from '..'; const audioFiles = [ { label: '...
higher-demo/dva-antd/todo-list/src/routes/IndexPage.js
CFshuming/react-demo-gather
import React from 'react'; import { connect } from 'dva'; import styles from './IndexPage.css'; function IndexPage() { return ( <div className={styles.normal}> <h1 className={styles.title}>Yay! Welcome to dva!</h1> <div className={styles.welcome} /> <ul className={styles.list}> <li>To g...
src/app.js
SawyerHood/pomodoro-redux
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { syncReduxAndRouter } from 'redux-simple-router' import routes from './routes' import Root from './containers/Root' import configureStore from './redux/configureStore' const history = ...
react-native-life/ReactNativeLife/js/Components/Slider/index.js
CaMnter/front-end-life
/** * @author CaMnter */ import React from 'react'; import {SlidingExample} from "./Slider"; class Root extends React.Component{ constructor(props){ super(props); } render(){ return( <SlidingExample/> ); } } module.exports = Root;
definitions/npm/styled-components_v2.x.x/flow_v0.42.x-v0.52.x/test_styled-components_v2.x.x.js
davidohayon669/flow-typed
// @flow import {renderToString} from 'react-dom/server' import styled, { ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager } from 'styled-components' import React from 'react' import type { Theme, Interpolation, // Temporary ReactComponentFunctional, ReactComponentClass, R...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
farazs/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
src/components/Counter/Counter.js
gohup/react_testcase
import React from 'react' import classes from './Counter.scss' export const Counter = (props) => ( <div> <h2 className={classes.counterContainer}> Counter: {' '} <span className={classes['counter--green']}> {props.counter} </span> </h2> <button className='btn btn-default' ...
web-app/src/components/NotFound/index.js
oSoc17/code9000
import React, { Component } from 'react'; import classNames from '../../utils/classNames'; import crestBackground from '../../theme/icons/crest_red_empty.svg'; import './NotFound.css'; class NotFound extends Component { constructor(...props) { super(...props); this.state = { wings: false, fly...
src/utils/injectMediaSources.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; function getComponentName(Component) { return Component.name || Component.displayName || 'Component'; } export default function injectMediaSources() { return Component => class extends React.Component { static displayName = `InjectMediaSources(${g...
icon-builder/tpl/SvgIcon.js
azazdeaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '{{{ muiRequireStmt }}}'; let {{className}} = (props) => ( <SvgIcon {...props}> {{{paths}}} </SvgIcon> ); {{className}} = pure({{className}}) {{className}}.displayName = '{{className}}'; export default {{className}};
pootle/static/js/editor/app.js
translate/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. */ import $ from 'jquery'; import _ from 'underscore'; import...