path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/containers/media_gallery_container.js
esetomo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import MediaGallery from '../components/media_gallery'; import { fromJS } from 'immutable'; const { localeData, messages } = getLocale(); addLocaleData(locale...
boilerplate/app/navigation/drawer/drawer-button.story.js
ruddell/ignite-jhipster
import React from 'react' import { StyleSheet, View } from 'react-native' import { storiesOf } from '@storybook/react-native' import DrawerButton from '../../../app/navigation/drawer/drawer-button' const styles = StyleSheet.create({ container: { backgroundColor: 'black' }, }) storiesOf('DrawerButton', module).add(...
src/components/Home.js
raghu666/Reactapp
import React, { Component } from 'react'; class Home extends Component{ render(){ return( <div> <div className="d-block"> <img className="img-fluid" src="src/imgs/New_raghu.png" /> <p>I am an engineer looking for opportunities in front end / use...
src/index.js
vinej/react-remux
import React from 'react' import ReactDOM from 'react-dom' import { MockAuthService, MockTodoService } from './services/mock_services' import AuthService from './services/auth_service' import TodoService from './services/todo_service' import AuthActions from './actions/auth_actions' import App from './components/app' ...
modules/dqt/jsx/react.navigationStepper.js
kongtiaowang/Loris
import React from 'react'; import PropTypes from 'prop-types'; import {Stepper} from './components/stepper'; const NavigationStepper = (props) => { const mySteps = ['Info', 'DefineFields', 'DefineFilters', 'ViewData']; const steps = [ { title: 'Create or Load', onClick: (e) => { e.preventD...
src/js/views/list-details.js
nolemmings/touchstonejs-starter
import Container from 'react-container'; import React from 'react'; module.exports = React.createClass({ statics: { navigationBar: 'main', getNavigation (props, app) { var leftLabel = props.prevView === 'list-simple' ? 'Simple' : 'Complex'; return { leftArrow: true, leftLabel: leftLabel, leftAct...
blueocean-material-icons/src/js/components/svg-icons/device/storage.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceStorage = (props) => ( <SvgIcon {...props}> <path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/> </SvgIcon> ); DeviceStorage.displayName = 'DeviceStorage'; DeviceStorage.muiName = 'SvgIcon...
src/svg-icons/editor/border-clear.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderClear = (props) => ( <SvgIcon {...props}> <path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v...
docs/app/Examples/elements/Icon/Groups/IconExampleCornerGroup.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleCornerGroup = () => ( <Icon.Group size='huge'> <Icon name='puzzle' /> <Icon corner name='add' /> </Icon.Group> ) export default IconExampleCornerGroup
src/experience/ProjectsList.js
serban-petrescu/serban-petrescu.github.io
import React, { Component } from 'react'; import { Segment, Divider, Container, Dropdown } from 'semantic-ui-react'; import mixpanel from 'mixpanel-browser'; import ProjectsGrid from '../common/ProjectsGrid'; import './ProjectsList.scss'; const parsePeriod = period => { if (!period || typeof period !== 'string')...
cpv-ui/src/components/SideDrawer/SideDrawer.js
zkouba/cinema-program-viewer
import React from 'react'; import cpvAppRoutes from '../../routes'; import './SideDrawer.css' const SideDrawer = (props) => { let drawerClasses = 'side_drawer'; if (props.show) { drawerClasses = 'side_drawer open'; } return ( <nav className={drawerClasses}> <ul> <li><a href={cpvAppRoutes.events}>Events...
src/scenes/UserConsole/scenes/WeatherStations/SingleWeatherStationDoc.js
adeira/connector-frontend
import React from 'react'; import appConfig from '../../../../../config/application'; //FIXME (?) export default (props) => { return <div style={{borderTop: '3px solid #03a9f4', marginTop: '5rem', paddingTop: '3rem'}}> <h2>Documentation</h2> <p>To create another weather station record send this GraphQL query to ...
lib/admin/admin/admin.js
DemocracyOS/app
import bus from 'bus' import React from 'react' import { render } from 'react-dom' import page from 'page' import dom from 'component-dom' import config from 'lib/config' import urlBuilder from 'lib/url-builder' import Sidebar from '../admin-sidebar/admin-sidebar' import TopicsListView from '../admin-topics/view' impor...
src/js/components/header.js
MagicalTaterTot/Humine
import React, { Component } from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import { Link } from 'react-router-dom'; export default class Header extends React.Component { render() { // Input Elements Here: // Types: Text, Dropdown // If dropdown, link -> links, add array ...
components/react-semantify/src/collections/form.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; let defaultClassName = 'ui form'; const Form = React.createClass({ mixins: [ClassGenerator], render: function () { let {className, ...other} = this.props; return ( <form {...other} className={this.getClassName(defa...
src/app/components/Hello.js
maxpolun/universal-js-screencasts
import React from 'react' export default class Hello extends React.Component { render () { return <h1>Hello!</h1> } }
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
gavinelliott/churchill
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'));
src/hot/client/hotApi.js
yesdr/haul
/** * Copyright 2017-present, Callstack. * All rights reserved. * * @flow */ /** * Original code was written by Dan Abramov - https://github.com/gaearon/react-hot-loader/ */ // eslint-disable-next-line import/no-extraneous-dependencies import React, { Component } from 'react'; import deepForceUpdate from 'rea...
src/Components/ImportExport.js
vinniejames/coinfox
import React, { Component } from 'react'; import {translationStrings} from '../Utils/i18n'; class ImportExport extends Component { constructor(){ super(); this.state = { importUrl: false }; this._getLink = this._getLink.bind(this); } _getLink () { if (!localStorage.coinz){ alert...
frontend/src/Activity/History/History.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import FilterMenu from 'Components/Menu/FilterMenu'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/Page/PageContentBody'; imp...
src/components/GithubButton/GithubButton.js
erikras/react-redux-universal-hot-example
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
src/Overview/ProjectLane/BranchCard/CardLanes/UserLane/UserLane.js
friedow/bpd
import React, { Component } from 'react'; class UserLane extends Component { constructor(props) { super(props); this.state = {username: this.props.username, lastCommitTime: this.props.lastCommitTime, avatarUrl: "https://upload.wikimedia.org/wikipedia/commons/d/d2/Blank.png"}; } componentD...
src/server/libs/RouterContextDataWrapper.js
ngduc/react-setup
/* eslint-disable func-names */ // TODO: fix this: using "function" will mess up webpack-dev-server - https://github.com/ngduc/react-setup/issues/14 import React from 'react' import { RouterContext } from 'react-router' /** * Wrap RouterContext component with context data. * @param {Object} dataObj - Data object. ...
demo/js/App.js
rongierlach/react-web3-network-status
import React from 'react' import NetworkStatus from '../../src/Stateful' // import NetworkStatusStateless from '../../src/Stateless' const App = () => ( <div className='flex flex-column min-vh-100 helvetica'> <header className='bg-near-white fixed w-100 ph3 pv3 pv4-ns ph4-m ph5-l'> <nav className='dib v-m...
example/src/App.js
Chyrain/react-popconfirm
import React from 'react'; import PopConfirm from 'react-popconfirm'; import {Button} from 'react-bootstrap'; const OnClickLeft = (e) => { PopConfirm({ confirmation:'Are you sure?', okLabbel: 'Yes', cancelLabel: 'No', cancelStyle: 'default', placement:'left', element:e.target // target is the element you ...
fields/components/DateInput__OLD.js
Freakland/keystone
import moment from 'moment'; import Pikaday from 'pikaday'; import React from 'react'; import { FormInput } from 'elemental'; module.exports = React.createClass({ displayName: 'DateInput', // set default properties getDefaultProps: function() { return { format: 'YYYY-MM-DD' }; }, getInitialState: fu...
examples/react-native-vanilla/index.android.js
nfl/react-storybook
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ /* eslint-disable */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class ReactNativeVanilla extends Component { render() { return ( <View ...
node_modules/react-native-pathjs-charts/example/src/Home.js
Stoneski93/GymDiary
/* Copyright 2016 Capital One Services, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
src/hello/HelloMobile.js
nuruddeensalihu/binary-next-gen
import React from 'react'; import MobilePage from '../containers/MobilePage'; import HelloCard from './HelloCard'; export default (props) => ( <MobilePage toolbarShown={false} inverse> <HelloCard {...props} /> </MobilePage> );
js/src/views/Application/Extension/extension.js
nipunn1313/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...
stories/tabs/index.js
shulie/dh-component
import React from 'react'; import { Button, Tabs } from '../../src'; import { storiesOf, action, linkTo } from '@kadira/storybook'; const options = { inline: true } storiesOf('选项卡', module) .addWithInfo( '默认', () => ( <Tabs defaultActiveKey="1" type="diamond"> <Tabs.TabPane tab="Tab 1" key="1">C...
src/parser/hunter/marksmanship/modules/spells/Trueshot.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/hunter'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import RESOURCE_TYPES from 'game/RESO...
blog/src/components/search_form.js
simplanapp/course
//import { AppRegistry, View } from 'react-native'; //import React, { Component } from 'react'; // import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; // import FlatButton from 'material-ui/FlatButton'; import React, { Component } from 'react'; import { connect } from 'react-...
web/src/router.js
jketcham/gangplank
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import store, { history } from './store'; import ProtectedRoute from './components/protected-route'; import App from './components/app'; import Ac...
src/pages/pregnancy-newborn/postnatal/Postnatal.js
RHoKAustralia/madapt-react-frontend
import React, { Component } from 'react'; import ContentPageContainer from '../../../components/content-page-container/ContentPageContainer' class Postnatal extends Component { render() { return ( <ContentPageContainer filePath='/Content/postnatal.json' /> ) } } export default Postnat...
app/scripts/components/status.js
hustbill/network-verification-ui
import React from 'react'; import { connect } from 'react-redux'; class Status extends React.Component { render() { const {errorUrl, topologiesLoaded, filteredNodeCount, topology, websocketClosed} = this.props; let title = ''; let text = 'Trying to reconnect...'; let showWarningIcon = false; let...
examples/js/manipulation/del-row-custom-confirm.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-console: 0 */ /* eslint no-alert: 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 i...
src/components/pages/grocerylist/newGroceryItem.js
emilmannfeldt/ettkilomjol
/* eslint react/no-string-refs:0 */ import React, { Component } from 'react'; import ListItem from '@material-ui/core/ListItem'; import Button from '@material-ui/core/Button'; import AutoComplete from 'material-ui/AutoComplete'; import PropTypes from 'prop-types'; class NewGroceryItem extends Component { constructor...
app/javascript/src/components/DialogEditor.js
michelson/chaskiq
import React from 'react' import Button from './Button' import FormDialog from './FormDialog' import { withRouter } from 'react-router-dom' import { connect } from 'react-redux' import NewEditor from './conversations/newEditor' function DialogEditor (props) { const [open, setOpen] = React.useState(props.open) Rea...
app/containers/App/index.js
joegattnet/joegatt.net-client
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import Header from 'components/Header'; import Page from 'components/Page'; import Conte...
app/components/MenuBar.js
alexko13/block-and-frame
import React from 'react'; import { Link } from 'react-router'; import authHelpers from '../utils/authHelpers'; const MenuBar = () => { return ( <div className="ui attached stackable menu inverted"> <Link className="item" to={'/'} > <i className="big world icon" /> <b> Spre...
scripts/dashboard/components/ProjectForm/ProjectFormPortList/ProjectFormPortListItem/view.js
vedranjukic/dockerino
import React from 'react' function view (props, state) { const port = props.port return ( <tr> <td>{port.service}</td> <td>{port.host}</td> <td>{port.dest}</td> <td> <a href="#" className="edit">Edit</a> <a href="#" className="remove">Remove</a> </td> </tr>...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
sauceSquatch/we_are_razorfish_experience
import React, { Component } from 'react'; class Foo extends Component { render() {} }
frontend/src/components/App.js
pequalsnp/eve-isk-tracker
import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/css/bootstrap-theme.min.css'; import 'graphiql/graphiql.css'; import React, { Component } from 'react'; import { ApolloClient, ApolloProvider, createNetworkInterface, } from 'react-apollo'; import fetch from 'isomorphic-fetch' import { Grid, N...
node_modules/react-bootstrap/es/Grid.js
joekay/awebb
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 ...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js
in2core/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import './assets/style.css'; import { test, version } from 'test-integrity'; export default () => { const ...
packages/material-ui-icons/src/FormatColorText.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FormatColorText = props => <SvgIcon {...props}> <path fillOpacity=".36" d="M0 20h24v4H0z" /><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z" /> </SvgIcon>; Fo...
node_modules/react-bootstrap/es/ModalDialog.js
skinsshark/skinsshark.github.io
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 ...
examples/with-custom-babel-config/src/Home.js
jaredpalmer/react-production-starter
import React from 'react'; export default class MyLuckNo extends React.Component { constructor(...args) { super(...args); this.state = { randomNo: null }; } componentDidMount() { this.recalculate(); } recalculate() { this.setState({ randomNo: Math.ceil(Math.random() * 100), }); ...
src/client/pages/statistics/Statistics.js
developersdo/opensource
import React from 'react' import { map } from 'lodash' import store from '~/store/store' import Loading from '~/components/loading/Loading' class AboutStatistics extends React.Component { state = { repos: [], users: [], loading: true } componentDidMount() { Promise.all([store.getRepos(), store.g...
src/parser/paladin/protection/modules/talents/Seraphim.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import Abilities from 'parser/...
src/LabelNumber/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import classNames from 'classnames'; import styles from './styles.css'; import Counter from '../Counter'; function LabelNumber(props) { return ( <span className={styles.span}> <div className={...
src/Container.js
OlehHappy/oleh_011-DnD_React_Native_Box
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import Dustbin from './Dustbin'; import Box from './Box'; export default class Container extends Component { render() { return ( <div> <div style={{ overflow: '...
src/components/Web/javascript30_links.js
pritchardtw/ReactPersonalSite
import React, { Component } from 'react'; export default class Javascript30Links extends Component { render() { return( <div className="project"> <a href='https://Javascript30.com' target='_blank'>Javascript30 Web Page</a><br></br> <a href='https://github.com/wesbos/JavaScript30' target='_b...
src/Parser/Priest/Shadow/CONFIG.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { hassebewlen } from 'CONTRIBUTORS'; import SPECS from 'common/SPECS'; import Wrapper from 'common/Wrapper'; import CombatLogParser from './CombatLogParser'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don...
docs/app/Examples/modules/Checkbox/index.js
aabustamante/Semantic-UI-React
import React from 'react' import Types from './Types' import States from './States' import Variations from './Variations' const CheckboxExamples = () => ( <div> <Types /> <States /> <Variations /> </div> ) export default CheckboxExamples
examples/js/manipulation/del-row-custom-confirm.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ /* eslint no-alert: 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 i...
test/integration/image-component/base-path/pages/missing-src.js
zeit/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <Image width={200}></Image> </div> ) } export default Page
src/svg-icons/image/rotate-90-degrees-ccw.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotate90DegreesCcw = (props) => ( <SvgIcon {...props}> <path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.7...
js/components/loaders/ProgressBar.android.js
aditya-simplecrm/iosReactAppNoresha
import React, { Component } from 'react'; import { ProgressBarAndroid } from 'react-native'; export default class SpinnerNB extends Component { render() { return ( <ProgressBarAndroid {...this.props} styleAttr="Horizontal" indeterminate={false} progress={this.props.progre...
docs/src/app/components/pages/components/Chip/Page.js
hwo411/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import chipReadmeText from './README'; import ChipExampleSimple from './ExampleS...
client/modules/core/components/postlist.js
mantrajs/meteor-mantra-kickstarter
import React from 'react'; const PostList = ({posts}) => ( <div className='postlist'> <ul> {posts.map(post => ( <li key={post._id}> <a href={`/post/${post._id}`}>{post.title}</a> </li> ))} </ul> </div> ); export default PostList;
src/components/pages/about/about.page.js
gerlocian/family-vault
'use strict'; import React from 'react'; class AboutPage extends React.Component { render() { return ( <div> <h1>About</h1> <p>This is the about page.</p> </div> ); } } export default AboutPage;
admin/client/App/screens/List/components/ListControl.js
michaelerobertsjr/keystone
import React from 'react'; import classnames from 'classnames'; var ListControl = React.createClass({ propTypes: { dragSource: React.PropTypes.func, onClick: React.PropTypes.func, type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired, }, renderControl () { var icon = 'octicon octicon-'; ...
src/js/components/icons/base/BrandAppleAppStore.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/header/Referenced.js
metasfresh/metasfresh-webui-frontend
import counterpart from 'counterpart'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { referencesRequest } from '../../actions/GenericActions'; import { setFilter } from '../../actions/ListActions';...
docs/app/Examples/modules/Progress/States/Error.js
jamiehill/stardust
import React from 'react' import { Progress } from 'stardust' const ProgressErrorExample = () => ( <Progress percent={100} error> There was an error </Progress> ) export default ProgressErrorExample
client/extensions/woocommerce/app/settings/email/mailchimp/index.js
Automattic/woocommerce-connect-client
/** * External dependencies * * @format */ import { connect } from 'react-redux'; import { filter, matches } from 'lodash'; import { localize } from 'i18n-calypso'; import PropTypes from 'prop-types'; import React from 'react'; /** * Internal dependencies */ import { getPlugins, isRequestingForSites } from 'sta...
src/App.js
dougsleite/talk2go
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import firebase from 'firebase'; import ReduxThunk from 'redux-thunk'; import reducers from './reducers'; import Router from './Router'; // use signInAnonymously() to get a token // w...
src/styles/theme-decorator.js
bjfletcher/material-ui
import React from 'react'; import warning from 'warning'; export default (customTheme) => { warning(false, 'ThemeDecorator is deprecated, please use MuiThemeProvider instead.'); return function(Component) { return React.createClass({ childContextTypes: { muiTheme: React.PropTypes.object, ...
src/routes/not-found/NotFound.js
kumarrus/MuffinMan
/** * 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-...
packages/material-ui-icons/src/Opacity.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Opacity = props => <SvgIcon {...props}> <path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2...
src/components/Game.js
danialm/backgammon
import React, { Component } from 'react'; import diceIcon from '../img/dice-icon.png'; import Board from './Board.js'; import Point from './Point.js'; import Dice from './Dice.js'; import Helper from './helper.js'; import { connect } from 'react-redux'; import { cryError, clearCries } from '../actions'; class Game ext...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js
Clearcover/web-build
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [[1, '1'], [2, '2'], [3, '3'],...
source/containers/Chat/LeftMenu/ChatSearchBox.js
mikey1384/twin-kle
import React from 'react'; import { useSearch } from 'helpers/hooks'; import PropTypes from 'prop-types'; import Loading from 'components/Loading'; import SearchInput from 'components/Texts/SearchInput'; import { connect } from 'react-redux'; import { searchChat, clearChatSearchResults, enterChannelWithId, open...
src/index.js
corbinpage/react-play
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, hashHistory } from 'react-router'; import routes from './routes'; ReactDOM.render( <Router routes={routes} history={hashHistory} />, document.getElementById('root') );
admin/client/components/Lightbox.js
efernandesng/keystone
import React from 'react'; import blacklist from 'blacklist'; import Portal from './Portal'; import Transition from 'react-addons-css-transition-group'; const BODY = document.getElementsByTagName('body')[0]; var Lightbox = React.createClass({ displayName: 'Lightbox', propTypes: { backdropClosesModal: React.PropTy...
src/components/editor.js
Q42/CT-3000
import React from 'react'; import HeaderComponent from './editor/header'; import EditorPaneComponent from './editor/editorPane'; import PreviewPaneComponent from './editor/previewPane'; import StatusBarComponent from './editor/statusBar.js'; import ObjectActions from '../actions/object'; import Firebase from '../clas...
docs/src/CodeExample.js
chrishoage/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
src/react.js
Californian/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
examples/js/manipulation/export-csv-table.js
prajapati-parth/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 ...
examples/with-apollo-auth/pages/create-account.js
nelak/next.js
import React from 'react' import { graphql, withApollo, compose } from 'react-apollo' import cookie from 'cookie' import Link from 'next/link' import gql from 'graphql-tag' import withData from '../lib/with-data' import redirect from '../lib/redirect' import checkLoggedIn from '../lib/check-logged-in' class CreateAcc...
src/parser/warlock/demonology/modules/talents/GrimoireFelguard.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import SpellLink from 'common/SpellLink'; import { STATISTIC_ORDER } from 'interface/others/S...
src/routes/SalesView/components/SalesMapView.js
sohamnakhare/Market-Movement-Visualization
import React from 'react' window.mapLibLoaded = function() { initMap(); }; var map; function initMap() { // Create the map. map = new google.maps.Map(document.getElementById('sales-view-map'), { zoom: 4, center: {lat: 37.090, lng: -95.712}, mapTypeId: 'terrain' })...
src/elementTypes/StyleElementType.js
wrakky/react-html-parser
import React from 'react'; import generateElementProps from '../utils/generatePropsFromAttributes'; /** * Converts a <style> element to a React element * * @param {Object} node The style node * @param {String} index The index of the React element relative to it's parent * @returns {React.Element} The React style ...
src/components/PageBase.js
ChrisWhiten/react-rink
import React from 'react'; import PropTypes from 'prop-types'; import Paper from 'material-ui/Paper'; import globalStyles from '../styles'; const PageBase = (props) => { const {navigation} = props; return ( <div> <span style={globalStyles.navigation}>{navigation}</span> <Paper style={g...
fields/types/geopoint/GeoPointFilter.js
matthieugayon/keystone
import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, lon: undefined, distance: {...
src/components/auth_page/AuthSignIn.js
decaster3/hikester_redux
import React from 'react'; import FontAwesome from 'react-fontawesome'; import AuthSocials from './AuthSocials'; export default class AuthSignIn extends React.Component { constructor(props) { super(props); this.state = { emailSignin: '', passSignin: '', }; this.handleChange = this.hand...
src/svg-icons/image/photo.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePhoto = p...
src/components/LookList.js
rollo-zhou/look
import React from 'react'; import { ActivityIndicator, ListView, StyleSheet, Image, Text, TextInput, View, TabBarIOS, Dimensions, } from 'react-native'; import LookListItem from './LookListItem.js'; import Login from './Login.js'; import User from './User.js'; import Streams from './Streams.js'; imp...
src/containers/Donations/index.js
quran/quran.com-frontend
import React from 'react'; import IndexHeader from 'components/IndexHeader'; export default () => ( <div className="top-section"> <IndexHeader noSearch /> <div className="container"> <div className="row"> <div className="col-md-12 text-center"> <h1>Quran.com</h1> </div> ...
src/svg-icons/av/queue.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueue = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> </SvgIco...
src/components/iconTextButton.js
Andrey11/golfmanager
'use strict'; import React, { Component } from 'react'; import { AppRegistry, Text, View, Image, TouchableHighlight } from 'react-native'; import styles from '../styles/basestyles.js'; export default class iconTextButton extends Component { render(){ return ( <TouchableHighlight style={...
packages/ringcentral-widgets-docs/src/app/pages/Components/IconField/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
src/svg-icons/action/accessibility.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
webapp/client/src/index.js
mikemag/MonkeyCAM
/* * Copyright 2013-2017 Michael M. Magruder (https://github.com/mikemag) * * This source code is licensed under the Apache license found in the * LICENSE file in the root directory of this source tree. */ import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'codemirr...
src/svg-icons/image/camera-front.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
src/svg-icons/av/surround-sound.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSurroundSound = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.76 16.24l-1.41 1.41C4.78 16.1 4 14.05 4 12c0-2.05.78-4.1 2.34-5.66l1.4...
src/components/Circle/Circle.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; function Circle({ theme }) { return ( <span className={classnames('ui-circle', `ui-circle-theme-${theme}`)} /> ); } Circle.propTypes = { theme: React.PropTypes.string.isRequired, }; Circle.defaultProps = { theme: 'default', }; export defaul...
src/components/slider/SliderSwatch.js
conorhastings/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' export class SliderSwatch extends ReactCSS.Component { shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1]) classes(): any { return { ...