path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/hocs/withoutProps.js
hbibkrim/neon-wallet
// @flow import { omit } from 'lodash-es' import React from 'react' import { compose, setDisplayName, wrapDisplayName } from 'recompose' export default function withoutProps(...propNames: Array<string>): Function { return (Component: Class<React.Component<*>>): Class<React.Component<*>> => { const ComponentWitho...
client/src/components/group_dialog/GroupDialog.js
thewizardplusplus/vk-group-stats
import React from 'react' import Dialog from 'material-ui/Dialog' import IconButton from '../icon_button/IconButton' import TextField from 'material-ui/TextField' import IconicButton from '../iconic_button/IconicButton' import './group_dialog.css' export default class GroupDialog extends React.Component { static pro...
static/src/js/pages/Diagnostic.js
enginyoyen/blackcrystal
import React from 'react'; import NavMain from '../components/navigation/NavMain'; import PageFooter from '../components/PageFooter'; import PageHeader from '../components/PageHeader'; import { Row, Col, Grid } from 'react-bootstrap'; const Overview = React.createClass({ getInitialState() { return {}; }, co...
src/components/Trust/index.js
iris-dni/iris-frontend
import React from 'react'; import settings from 'settings'; import styles from './trust.scss'; import Heading2 from 'components/Heading2'; import Container from 'components/Container'; import Section from 'components/Section'; import TextCenter from 'components/TextCenter'; import FormWrapper from 'components/FormWrap...
node_modules/react-error-overlay/lib/components/Collapsible.js
kishigo/recipes-react-redux
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
examples/shopping-cart/src/main.js
adrianleb/nuclear-js
'use strict'; import React from 'react' import App from './components/App' import reactor from './reactor' import actions from './actions' import CartStore from './stores/CartStore' import ProductStore from './stores/ProductStore' reactor.registerStores({ cart: CartStore, products: ProductStore, }) actions.fetc...
app/clients/next/pages/about.js
koapi/koapp
import React from 'react' import { compose } from 'recompose' import page from '../components/page' import Link from 'next/link' import provider from '../redux' export default compose(provider(), page({ title: 'About' }))(props => ( <div> <div> Next App </div> <p> <Link prefetch href='/'><a>Index</a></...
src/app/Routes.js
lpan/htn-challenge
import React from 'react'; import { Router, Route, Redirect } from 'react-router'; import { history } from './store'; import App from './App'; import Applicants from './views/Applicants'; import Details from './views/Details'; const Routes = () => ( <Router history={history}> <Redirect from="/" to="applicants" ...
src/components/SideNav/SideNav.js
franciscopreller/outflow-client
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import AppBar from 'material-ui/AppBar'; import AddConnectionIcon from 'material-ui/svg-icons/content/add-circle'; import PreferencesIcon from 'material-ui/svg-icons/action/settings'; import { addSession } f...
src/components/Schedule/Schedule.js
hack-duke/hackduke-ideate-website
import React from 'react' import classes from './Schedule.scss' const title = 'Schedule' export const Schedule = (props) => ( <div className={classes.schedule}> <h1 className={classes.header}>{title}</h1> <div className={classes.schedule}> <img className={classes.image} src={'schedule.png'} alt={'pla...
src/svg-icons/file/attachment.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileAttachment = (props) => ( <SvgIcon {...props}> <path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-....
common/components/ide/TabBar.js
ebertmi/webbox
import React from 'react'; import screenfull from 'screenfull'; import Icon from '../Icon'; import {Nav, NavItem} from '../bootstrap'; import Menu from './Menu'; import SendToTeacherModal from './SendToTeacherModal'; import Tab from './tabs/Tab'; import FileTab from './tabs/FileTab'; import ProcessTab from './tabs/P...
node_modules/native-base/Components/Widgets/List.js
paulunits/tiptap
/* @flow */ 'use strict'; import React from 'react'; import {View, ListView} from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; import _ from 'lodash'; export default class ListNB extends NativeBaseComponent { getInitialStyle()...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
rekyyang/ArtificalLiverCloud
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
js/components/utility/export-modal.js
NullVoxPopuli/tanqueReact
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { connect } from 'react-redux'; import { Button, Tooltip } from 'reactstrap'; import CopyToClipboard from 'react-copy-to-clipboard'; import { objectToDataURL, convertObjectToQRCodeDataURL } from 'utility'; import SimpleModal...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spr...
source/containers/SearchPage/TopFilter.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import FilterBar from 'components/FilterBar'; TopFilter.propTypes = { applyFilter: PropTypes.func.isRequired, style: PropTypes.object, selectedFilter: PropTypes.string.isRequired }; export default function TopFilter({ applyFilter, selectedFilter, st...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
jamiehill/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
src/app/components/App.js
Dynamit/healthcare-microsite
/** * Top-level component for the app */ import React from 'react'; import { RouteHandler, Navigation } from 'react-router'; import Helmet from 'react-helmet'; import Symbol from './Symbol'; import Button from './Button'; import Menu from './Menu'; import mixin from 'react-mixin'; import classNames from 'classnames';...
src/svg-icons/content/remove-circle-outline.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8...
src/main/scripts/modules/sea-siege/react/views/card/mana-cost.js
twuni/sea-siege
import React from 'react'; import _ from 'lodash'; import Component from '../../components/component'; import Icon from '../../components/icon'; const {number} = React.PropTypes; class ManaCost extends Component { static get propTypes() { return Component.withPropTypes({ red: number, blue: number...
src/components/Logout.js
DmitriWolf/atm-challenge
import React, { Component } from 'react'; import { Link } from 'react-router' class Logout extends Component { render() { return ( <div className="dashboard logout"> <h2>Thank you for using this Bank of Dmitri ATM.</h2> <ul className="menu"> <Link to="/login"><li>Login</li></Link...
frontend/node_modules/recharts/src/component/DefaultTooltipContent.js
justdotJS/rowboat
/** * @fileOverview Default Tooltip Content */ import _ from 'lodash'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import pureRender from '../util/PureRender'; import { isNumOrStr } from '../util/DataUtils'; const defaultFormatter = value => ( (_.isArray(value) && isNumOrStr(value...
src/admin/client/apps/facebook-sdk.js
cezerin/cezerin
import React from 'react'; import messages from 'lib/text'; import api from 'lib/api'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; export const Description = { key: 'facebook-sdk', name: 'Facebook SDK', coverUrl: '/admin-assets/images/apps/facebook.png', desc...
client/src/components/utils/FieldGroup.js
DjLeChuck/recalbox-manager
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Col from 'react-bootstrap/lib/Col'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import { cloneObject } f...
app/javascript/mastodon/features/following/index.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
packages/material-ui-icons/src/LaptopChromebook.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LaptopChromebook = props => <SvgIcon {...props}> <path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z" /> </SvgIcon>; LaptopChromebook = pure(LaptopChromebook); LaptopChromebook.muiName ...
todomvc/client/index.js
bigsassy/drf-react-redux
import 'todomvc-app-css/index.css'; import React from 'react'; import { render } from 'react-dom'; import configureStore from './store/configureStore'; import Root from './containers/Root'; const store = configureStore(); render( <Root store={store} />, document.getElementById('root') );
docs/app/Examples/collections/Message/Types/MessageExampleMessage.js
clemensw/stardust
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleMessage = () => ( <Message> <Message.Header> Changes in Service </Message.Header> <p> We updated our privacy policy here to better service our customers. We recommend reviewing the changes. </p> </...
src/CostSymbols.js
PAK90/mtg-hunter
import React from 'react' export default class CostSymbols extends React.Component { render(){ const { cost } = this.props if (!cost) return null return ( <span> {cost.toLowerCase().match(/([0-z]\/[0-z])|hw|[0-z,½,∞]/g).map(function (basename, i) { var src = './src/img/' + base...
services/ui/src/components/AddTask/components/Error.js
amazeeio/lagoon
import React from 'react'; export default () => <div>Error.</div>;
pootle/static/js/admin/components/Project/ProjectController.js
Finntack/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 React from 'react'; import Search from '../Search'...
react/gameday2/utils/layoutUtils.js
jaredhasenklein/the-blue-alliance
/* eslint-disable import/prefer-default-export */ import React from 'react' import SvgIcon from 'material-ui/SvgIcon' import { NUM_VIEWS_FOR_LAYOUT, LAYOUT_SVG_PATHS } from '../constants/LayoutConstants' // Convenience wrapper around NUM_VIEWS_FOR_LAYOUT that has bounds checking and // a sensible default. export funct...
src/routes.js
lanceharper/react-redux-universal-hot-example
import React from 'react'; import {Route} from 'react-router'; import { App, Home, Widgets, About, Login, RequireLogin, LoginSuccess, Survey, NotFound, } from 'containers'; export default function(store) { return ( <Route component={App}> <Route path="/" component={Hom...
app/javascript/mastodon/components/dropdown_menu.js
mhffdq/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
src/app/components/activities/components/Task.js
backpackcoder/world-in-flames
import React from 'react' import classnames from 'classnames' import Moment from '../../utils/Moment' let Task = React.createClass({ render: function () { let item = this.props.item; return ( <span> <div className="bar-holder no-padding"> <p className="margin-bottom-5...
app/javascript/mastodon/features/list_editor/components/search.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists'; import classNames from 'classnames'; const messages ...
src/main.js
virtoolswebplayer/react-redux-starter-kit-chinese
/* @flow */ import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import makeRoutes from './routes'; import Root from './containers/Root...
src/applications/static-pages/coe-access/createCOEAccess.js
department-of-veterans-affairs/vets-website
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; export default function createCOEAccess(store, widgetType) { const root = document.querySelector(`[data-widget-type="${widgetType}"]`); if (root) { import(/* webpackChunkName: "chapter-31-cta" */ './COEAccess'...
Router/router-demo/src/router/Sidebar.js
imuntil/React
import React from 'react' import { BrowserRouter as Router, Route, Link, Redirect } from 'react-router-dom' const routes = [ { path: '/', exact: true, sidebar () { return <div>home!</div> }, main: () => <h2>Home</h2> }, { path: '/bubblegum', sidebar: () => <div>bubblegum...
src/src/pages/Charts/PerformanceChart.js
chaitanya1375/Myprojects
import React from 'react'; import ReactChartist from 'react-chartist'; import Chartist from 'chartist'; const dataPerformance = { labels: ['6pm','9pm','11pm', '2am', '4am', '8am', '2pm', '5pm', '8pm', '11pm', '4am'], series: [ [1, 6, 8, 7, 4, 7, 8, 12, 16, 17, 14, 13] ] }; const optionsPerformance = { sho...
src/components/Input.js
aastein/crypto-trader
import React from 'react'; import PropTypes from 'prop-types'; const Input = props => ( ( <div> <input className={`${props.className} ${props.invalid ? 'invalid' : ''}`} maxLength={props.maxLength} name={props.name} onChange={e => props.onChange(props.name, e)} place...
packages/material-ui-icons/src/ShowChart.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ShowChart = props => <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z" /> </SvgIcon>; ShowChart = pure(ShowChart); ShowChart.muiName = 'SvgIcon'; export de...
src/svg-icons/action/account-balance-wallet.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalanceWallet = (props) => ( <SvgIcon {...props}> <path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-...
client/components/SearchResults.js
rompingstalactite/rompingstalactite
import React from 'react'; import { connect } from 'react-redux'; import RecipeContainer from '../../client/components/RecipeContainer.js'; import '../scss/_search.scss'; const SearchResults = (props) => ( <div className="search-results container"> <div className="row"> <div className="col-xs-12"> ...
src/components/Root.js
git-okuzenko/react-redux
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import routes from '../routes'; import { Router } from 'react-router'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <Provider...
src/packages/@ncigdc/modern_components/CancerDistributionTable/CancerDistributionTable.relay.js
NCI-GDC/portal-ui
/* @flow */ import React from 'react'; import { graphql } from 'react-relay'; import { compose, withPropsOnChange } from 'recompose'; import { makeFilter, replaceFilters } from '@ncigdc/utils/filters'; import Query from '@ncigdc/modern_components/Query'; export default (Component: ReactClass<*>) => compose( wit...
[2]. Demo_RN/[21]. tabBar_demo/index.ios.js
knightsj/RN_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TabBarIOS } from 'react-native'; var TabBarDemo = React.createClass({ // 设置初始值 getInitialState(){ return{ ...
packages/recon-engine/src/parse/__tests__/__fixtures__/real-world-lystable/src.js
recon-js/recon
/* eslint-disable */ import React from 'react'; import PropTypes from 'utils/prop-types'; import {compose, withReducer, branch} from 'recompose'; import {identity} from 'lodash'; import {isRecruitmentManager} from 'utils/talent'; import {TALENT_REQUEST_STATES} from 'constants/talent'; import {TalentRequest, Agency, Age...
app/javascript/mastodon/components/status_content.js
corzntin/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import escapeTextContentForBrowser from 'escape-html'; import PropTypes from 'prop-types'; import emojify from '../emoji'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permal...
example/src/screens/NavigationTypes.js
eeynard/react-native-navigation
import React from 'react'; import {StyleSheet, ScrollView} from 'react-native'; import Row from '../components/Row'; class NavigationTypes extends React.Component { constructor(props) { super(props); this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this)); } onNavigatorEvent(event) {...
demo/src/components/navigators/layout-toptap-navigator.js
tuantle/hypertoxin
'use strict'; // eslint-disable-line import { Ht } from 'hypertoxin'; import React from 'react'; import ReactNative from 'react-native'; // eslint-disable-line import { createMaterialTopTabNavigator } from 'react-navigation'; import RowLayoutView from '../layout-views/row-layout-view'; import ColumnLayoutView from...
src/mui/form/FormField.js
RestUI/rest-ui
import React from 'react'; import { Field } from 'redux-form'; import Labeled from '../input/Labeled'; const FormField = ({ input, ...rest }) => input.props.addField ? (input.props.addLabel ? <Field {...rest} {...input.props} name={input.props.source} component={Labeled} label={input.props.label}>{ input }...
resources/apps/frontend/src/components/Form/Select/LoginTypeSelect.js
johndavedecano/PHPLaravelGymManagementSystem
import React from 'react'; import Select from 'react-select'; const options = [ { value: 'login', label: 'Login', }, { value: 'logout', label: 'Logout', }, ]; export default props => { return ( <Select options={options} {...props} defaultValue={options.find(option => op...
examples/universal/client.js
taylorhakes/redux
import 'babel-core/polyfill'; import React from 'react'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; import App from './containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = document.getElementB...
src/scene/Ceshi/index.js
Mrlyjoutlook/cnode-native
import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import Modal from 'react-native-modalbox'; const styles = StyleSheet.create({ wrapper: { paddingTop: 50, flex: 1 }, modal: { justifyContent: 'center', alignItems: 'center' }, ...
src/components/pagination/number-link.js
adrienlozano/stephaniewebsite
import React from 'react'; import Link from "~/components/link"; import styled, { css } from "styled-components"; import { darken } from "polished"; const disabledCss = css` cursor:default; pointer-events: none; background-color: ${ ({theme}) => darken(0.1, theme.colors.light)}; ` export default styled(Li...
client/src/Components/DownloadableResumeGenerator.js
teamcrux/EmploymentOptions
//import React, { Component } from 'react'; //const moment = require('moment'); export default function createDownloadableResume (data) { console.log("HELLO") fetch(`/api/pdf`, { headers: { 'Accept': 'application/pdf', 'Content-Type': 'application/pdf', 'Authorization': 'JWT '+loca...
backend/routes/react-server.js
moyuyc/isomorphic-blog
/** * Created by moyu on 2017/2/8. */ import express from 'express' import path from 'path' import fs from 'fs' import url from 'url' import React from 'react'; import {renderToString} from 'react-dom/server' // import createMemoryHistory from 'history/createMemoryHistory' import reactRouter, {match, RouterContext} f...
src/trials-layout.js
buildkite/trial-pipeline-visualizer
import React from 'react'; import PropTypes from 'prop-types'; import Trial from './trial'; import colors from './colors'; import 'babel-polyfill'; class TrialsLayout extends React.Component { static propTypes = { accountsUrl: PropTypes.string.isRequired, pollSeconds: PropTypes.number.isRequired }; con...
examples/counter/src/main.js
PhilipGarnero/react-redux-reliever
import 'babel-polyfill' import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import {createStore, applyMiddleware} from 'redux' import {createLogger} from 'redux-logger' import RelieverRegistry from 'react-redux-reliever' import RxRelieverPlugin from 'react-redux-reliever/plu...
app/App.js
krisburtoft/contacts-keeper
import React from 'react'; import styles from './App.css'; export default class App extends React.Component { constructor(props) { super(props); this.state = {test: 'foo'}; } render() { return ( <div> <div className={styles.app}> < </div> } }
src/app/component/provider-image/provider-image.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import propTypes from '../../prop-types' import cn from '../../lib/class-names' const ProviderImage = ({ classNames, src, alt, size = 'default', inline = false, minor = false, onClick = null }) => React.createElement( onClick ? 'a' : 'di...
node_modules/react-bootstrap/es/Glyphicon.js
WatkinsSoftwareDevelopment/HowardsBarberShop
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 ...
src/svg-icons/content/reply-all.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReplyAll = (props) => ( <SvgIcon {...props}> <path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReplyAll = pure(ContentReplyAll); Conte...
local-cli/generator/templates/index.android.js
catalinmiron/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class <%= name %> extends Component { render() { return ( <View style={styles.container}> <T...
docs/app/Examples/elements/Segment/States/SegmentExampleDisabled.js
ben174/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleDisabled = () => ( <Segment disabled> Disabled content </Segment> ) export default SegmentExampleDisabled
src/components.js
ieugen/tcomb-form
'use strict'; import React from 'react'; import t from 'tcomb-validation'; import { compile } from 'uvdom/react'; import { humanize, merge, getTypeInfo, getOptionsOfEnum, move, UIDGenerator } from './util'; import classnames from 'classnames'; const Nil = t.Nil; const assert = t.assert; const SOURCE = 'tc...
src/svg-icons/places/casino.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesCasino = (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-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z...
src/App.js
VicJuice/vicjuice.com
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
src/infra/component/Table.js
hellowin/kanca
// @flow import React from 'react'; import Pagination from 'infra/component/Pagination'; class Table extends React.Component { props: { data: { [string]: any }[], columns: { key: string, label: any }[], } render() { const { data, columns } = { data: [], columns: [], ...this.props, ...
ui/src/js/team/EditTeamDetails.js
Dica-Developer/weplantaforest
import axios from 'axios'; import counterpart from 'counterpart'; import React, { Component } from 'react'; import IconButton from '../common/components/IconButton'; import Notification from '../common/components/Notification'; import FileChooseAndUploadButton from './FileChooseAndUploadButton'; export default class E...
_src/src/components/About/About.js
YannickDot/yannickdot.github.io
import React from 'react' import { rhythm } from 'utils/typography' const emojiStyle = { display: 'inline-block', margin: '0 4px 0 2px', height: '22px', position: 'relative', top: '5px' } const EmojiIsland = () => { return ( <img style={emojiStyle} src="https://twemoji.maxcdn.com/2/72x72/1...
src/shell/server.js
jeffhandley/redux-playground
import React from 'react'; import ReactDOMServer from 'react-dom/server' export default function server(store) { return { renderPage(page) { // Rendering the page body will populate the store's state const body = ReactDOMServer.renderToString(page); // Once the body has...
react/tic-tac-toe/src/App.js
ripter/Workshops
import React from 'react'; import { Board } from './Board'; import { useWASMState } from './useWASMState'; import './App.css'; export function App() { const { state, hasLoaded, dispatch } = useWASMState(); if (!hasLoaded) { return <div className="tic-tac-toe"> <p>Loading...</p> </div>; } re...
src/js/shared/containers/Blog/BlogList.js
suranartnc/js-starter-kit
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as BlogActions from '../../actions/BlogActions'; class BlogList extends Component { constructor(props) { super(props); } static prefetchDat...
src/features/ViewMenuPopups/Views/Title.js
erhathaway/cellular_automata
import React from 'react'; import styled from 'react-emotion'; const Container = styled('div')` height: 30px; color: gray; text-align: center; padding: 10px; letter-spacing: 3px; font-size: 12px; `; export default ({ children }) => ( <Container> { children } </Container> );
src/components/badges/demos/NumberOverIcon.js
isogon/material-components
import React from 'react' import { Badge, Icon } from '../../../' export default () => ( <Badge overlap text="4"> <Icon lg name="account_box" /> </Badge> )
modules/Captures.js
cloudytimemachine/frontend
import React from 'react' import CaptureListContainer from './Captures/CaptureListContainer' class Captures extends React.Component { render() { console.log(this.props.params); return ( <div> {/*<RequestCaptureForm />*/} {/*<QueueStatus />*/} <CaptureListContainer /> </div...
src/components/SearchMetadata/stories.js
envisioning/tdb-storybook
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import SearchMetadata from './'; storiesOf('SearchMetadata', module) .add('default', () => ( <SearchMetadata took={100} total={150} showing={125} /> ))
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
gale320/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
packages/material-ui-icons/src/SignalCellular1Bar.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SignalCellular1Bar = props => <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z" /><path d="M12 12L2 22h10z" /> </SvgIcon>; SignalCellular1Bar = pure(SignalCellular1Bar); SignalCellular1Bar.mu...
node_modules/react-navigation/lib-rn/views/Card.js
gunaangs/Feedonymous
import React from 'react'; import { Animated, StyleSheet } from 'react-native'; import createPointerEventsContainer from './PointerEventsContainer'; var babelPluginFlowReactPropTypes_proptype_NavigationSceneRendererProps = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_NavigationSceneRendererPro...
app/javascript/mastodon/features/directory/index.js
lynlynlynx/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'mastodon/components/column'; import ColumnHeader from 'mastodon/components/column...
src/svg-icons/action/perm-camera-mic.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermCameraMic = (props) => ( <SvgIcon {...props}> <path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 ...
src/component/ProfileItemEdit.js
im-js/im.js
/** * <plusmancn@gmail.com> created at 2017 * * Copyright (c) 2017 plusmancn, all rights * reserved. * * @flow * * 单条目编辑页 */ import React, { Component } from 'react'; import { StyleSheet, ScrollView, View } from 'react-native'; import { Color, FontSize, Button, TextInput } from '....
src/photos/lib/confirm.js
goldoraf/cozy-drive
import React from 'react' import ReactDOM from 'react-dom' const confirm = (component, saga) => { const wrapper = document.body.appendChild(document.createElement('div')) const abort = () => { ReactDOM.unmountComponentAtNode(wrapper) } const confirm = () => { saga().then(() => { ReactDOM.unmoun...
src/Calendar.js
trueanthem/react-date-range
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import parseInput from './utils/parseInput.js'; import DayCell from './DayCell.js'; import getTheme, { defaultClasses } from './styles.js'; function checkRange(dayMoment, range) { return ( dayMoment.isBetwe...
src/routes/News/routes/Archive/index.js
weedz/reactcms
import React from 'react'; import { Link } from 'react-router-dom'; import {ReduxWrapper} from '../../../../wrappers'; import News from '../../components/News'; import { fetchNewsGraphQL } from '../../../../actions/newsActions'; class Archive extends React.Component { constructor(props) { super(); ...
public/src/components/feed-search-input_es6.js
alannesta/redux-rss
import React from 'react'; var FeedActions = require('../actions/feed-actions'); class FeedSearchInput extends React.Component { constructor() { super(); } searchFeed = () => { FeedActions.searchFeed(this.refs.inputField.value); } render() { return ( <section className = "toolbar"> <input ref = "i...
react-flux-mui/js/material-ui/src/svg-icons/action/card-giftcard.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardGiftcard = (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 1H...
examples/async/index.js
batmanimal/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
src/Specifications.js
jma921/auto-specs-app
import React, { Component } from 'react'; import base from './utils/base'; import Clipboard from 'clipboard'; import './Specifications.css'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Tooltip } from 'reactstrap'; class Specifications extends Component { constructor() { super() th...
app/components/kanban/EditForm.js
alanbo/devy-issue-tracker
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as kanbanActions from '../../actions/kanban'; import styles from './EditForm.scss'; // import { Link } from 'react-router-dom'; // import styles from './Counter.css'; const issueTypes = ['feature', 'bug', 'update']; function show...
client/analytics/components/pages/alerts/alertsSetting/ConditionItems.js
Haaarp/geo
import React from 'react'; import TresholdItem from './TresholdItem'; const ConditionItems = (props) =>{ return( <div> { props.selectedTreshold.conditions ? props.selectedTreshold.conditions.map((conditon,i) => { return <TresholdItem ...
src/components/Twitter/TwitterLoader.js
Rico75/ricardoswebconsulting-react-php
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Twitter.scss'; //console.log('TwitterLoader s: ', s); class TwitterLoader extends Component { render() { return ( <div className={s.root}> <div className={"loader " + (this.p...
app/app.js
ryanau/doc_now_client
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/svg-icons/av/repeat.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeat = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/> </SvgIcon> ); AvRepeat = pure(AvRepeat); AvRepeat.displayName = 'AvRepeat'; AvRepeat.mu...
src/svg-icons/image/crop-landscape.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropLandscape = (props) => ( <SvgIcon {...props}> <path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/> </SvgIcon> ); ImageCropLandscape = pure(ImageCro...
client/src/components/AuthButton.js
wapjude/labify
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Button } from 'react-native'; import { NavigationActions } from 'react-navigation'; const AuthButton = ({ logout, loginScreen, isLoggedIn }) => ( <Button title={isLoggedIn ? 'Log Out' : 'Open Login Scre...