path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
traveller/App/Containers/DeviceInfoScreen.js
Alabaster-Aardvarks/traveller
// @flow // An All Components Screen is a great way to dev and quick-test components import React from 'react' import { View, ScrollView, Text, Image, NetInfo } from 'react-native' import DeviceInfo from 'react-native-device-info' import { Metrics, Images } from '../Themes' import styles from './Styles/DeviceInfoScree...
src/index.js
akonwi/bundles
import React from 'react' import ReactDOM from 'react-dom' import {defineAggregate, Event, Repository, EventBus, Flow} from 'qubits' import App from './components/App' import * as BundleStore from './bundle-store' import * as BundleEventStore from './event-store' import BundleCommandHandlers from './command-handlers' i...
src/components/playground/InterfacesComponent.js
reshak/exodus
'use strict'; import React from 'react'; import Toolbar from './ToolbarComponent'; require('styles/playground/Interfaces.sass'); class InterfacesComponent extends React.Component { render() { return ( <div className="interfaces-component"> <Toolbar /> Please edit src/components/playground...
src/client.js
BonnWestCoast/Semantify.io
/** * 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 ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
src/Badge/index.js
reactivers/react-material-design
/** * Created by muratguney on 01/04/2017. */ import React from 'react' import PropTypes from 'prop-types'; import IconButton from '../IconButton' export default class Badge extends React.Component { static propTypes = { iconName: PropTypes.string, style: PropTypes.object, badgeStyle: Pr...
analysis/demonhunterhavoc/src/CHANGELOG.js
yajinni/WoWAnalyzer
import React from 'react'; import { LeoZhekov, flurreN } from 'CONTRIBUTORS'; import { change, date } from 'common/changelog'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; export default [ change(date(2021, 1, 28), <>Added <SpellLink id={SPELLS.GROWING_INFERNO.id} /> to Statistics</>, f...
src/modules/forms/plugins/RequestTransformer/RequestTransformerPlugin.js
hellofresh/janus-dashboard
import React from 'react' import PropTypes from 'prop-types' import block from '../../../../helpers/bem-cn' import Row from '../../../Layout/Row/Row' import Label from '../../../../components/Label/Label' import Input from '../../../inputs/Input' import ControlBar from '../ControlBar/ControlBar' import HeadersSection...
app/javascript/mastodon/components/column_header.js
verniy6462/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' }, hide: { id: 'column_header.h...
client/app/utils/emberWrap.js
ilkkao/mas
import Component from '@ember/component'; import React from 'react'; import ReactDOM from 'react-dom'; const Wrapper = Component.extend({ didInsertElement(...args) { this._super(...args); ReactDOM.render(React.createElement(this.reactComponent, this.attrs), this.element); }, willDestroyComponent(...args...
src/icons/IosMicOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosMicOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256,32c-43.7,0-79,37.5-79,83.5V270c0,46,35.3,83.5,79,83.5c43.7,0,79-37.5,79-83.5V115.5C335,69.5,299.7,32,256,...
app/components/Office.js
seentaoInternetOrganization/reactDemo
import React from 'react'; import TipsDialog from './TipsDialog' import PubSub from 'pubsub-js' class Office extends React.Component { constructor(props) { super(props); this.state = { display: "none" } } componentDidMount() { } componentWillUnmount() { } handleClick(){ con...
client/modules/App/App.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // Import Style import styles from './App.css'; // Import Components import Helmet from 'react-helmet'; import DevTools from './components/DevTools'; import MuiThemeProvider from 'material-ui/styles/M...
frontend/components/measures/succeeded-fetches-per-period.js
apostolidhs/wiregoose
import isEmpty from 'lodash/isEmpty'; import size from 'lodash/size'; import keyBy from 'lodash/keyBy'; import transform from 'lodash/transform'; import sumBy from 'lodash/sumBy'; import sortBy from 'lodash/sortBy'; import map from 'lodash/map'; import flow from 'lodash/fp/flow'; import omit from 'lodash/fp/omit'; imp...
client/app/components/Play/Playbar/Playbar.new.js
dring1/gopheringdj
import React from 'react'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import mui from 'material-ui'; import Playing from './Playing.new'; import ControlButton from './ControlButton'; import Actions from '../../../actions'; const Toolbar = mui.Toolbar; const ToolbarGroup = mui.Tool...
src/app/components/team/TeamHeaderComponent.js
meedan/check-web
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TeamAvatar from './TeamAvatar'; import { HeaderTitle, headerHeight } from '../../styles/js/shared'; const useStyles = makeStyles(theme => ({ root: { display: 'flex', alignItems: 'center', height: headerHeight, }, ...
src/svg-icons/editor/multiline-chart.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMultilineChart = (props) => ( <SvgIcon {...props}> <path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3...
6.4.3/examples/react-widgets/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(303),e.exports=n(302)},function(e,t,n){var r=n(6),o=n(40),i=n(21),a=n(22),u=n(41),s="prototype",...
src/panels/FormPanel/index.js
Kitware/HPCCloud
import React from 'react'; import PropTypes from 'prop-types'; import deepEquals from 'mout/src/lang/deepEquals'; import CheckboxInput from './CheckboxInput'; import ProfileInput from './ProfileInput'; import EnumInput from './EnumInput'; import TextInput from './TextInput'; const elementMapping = { bool: Checkbox...
node_modules/react-bootstrap/es/Row.js
nikhil-ahuja/Express-React
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/editor/format-align-center.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignCenter = pure(EditorFormatAli...
src/client/pages/app/ModalRoot.js
doemski/cblocks
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withStyles } from '@material-ui/core/styles'; import ChartModal from './modalRoot/ChartModal'; import AddMappingModal from './modalRoot/AddMappingModal'; import URLSettingsModal from './modalRoot/URLSettingsMo...
docs/app/Examples/elements/Step/Content/StepExampleDescriptionShorthand.js
shengnian/shengnian-ui-react
import React from 'react' import { Step } from 'shengnian-ui-react' const StepExampleDescriptionShorthand = () => ( <Step.Group> <Step title='Shipping' description='Choose your shipping options' /> </Step.Group> ) export default StepExampleDescriptionShorthand
projects/twitch-ui/src/components/StreamPlayerHls.stories.js
unindented/twitch-x
import React from 'react' import {storiesOf} from '@storybook/react' import {action} from '@storybook/addon-actions' import StreamPlayerHls from './StreamPlayerHls' const stream = { id: 'playoverwatch' } const streamWithPlaylist = { ...stream, playlist: 'https://video-dev.github.io/streams/x36xhzz.m3u8' } cons...
src/app/index.js
acusti/primal-multiplication
// react import React from 'react'; import {RouteHandler} from 'react-router'; // main class const app = React.createClass({ render() { return <RouteHandler/>; }, }); export default app;
packages/material/src/components/Button.native.js
wq/wq.app
import React from 'react'; import { useIcon } from '@wq/react'; import { Button as PaperButton, useTheme } from 'react-native-paper'; import PropTypes from 'prop-types'; export default function Button({ onClick, onPress, variant, mode, icon, color, ...rest }) { const Icon = useIcon(icon...
gh/page.js
bitriddler/react-items-carousel
import React from 'react'; import { Layout , Divider, Menu, Col } from 'antd'; import Hero from './components/Hero'; import Playground from './components/Playground'; import pckJson from '../package.json'; import PlaceholderDemo from './components/PlaceholderDemo'; import AutoPlayCarousel from './components/AutoPlayCar...
src/index.js
exiaosa/gallery-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
blueocean-material-icons/src/js/components/svg-icons/hardware/keyboard-hide.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareKeyboardHide = (props) => ( <SvgIcon {...props}> <path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H5V9h2v2zm0-3H5V6h2v2zm9 7H8v-2h8v...
packages/react-instantsearch-dom/src/widgets/Pagination.js
algolia/react-instantsearch
import React from 'react'; import { connectPagination } from 'react-instantsearch-core'; import PanelCallbackHandler from '../components/PanelCallbackHandler'; import Pagination from '../components/Pagination'; /** * The Pagination widget displays a simple pagination system allowing the user to * change the current ...
index.ios.js
jeasonHu/RNHelloWord
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import Indexroot from './index'; export default class RNHelloWord extends Component { render() { return ( <Indexroot /> ); ...
modules/Link.js
fiture/react-router
import React from 'react' import warning from 'warning' const { bool, object, string, func } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } function isEmptyObject(obj...
packages/material-ui-icons/src/PhonelinkOff.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PhonelinkOff = props => <SvgIcon {...props}> <path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6.27zM2...
.storybook/stories.js
truffls/storybook-addon-intl
import React from 'react'; import { storiesOf } from '@storybook/react'; import { FormattedMessage, FormattedDate } from 'react-intl'; storiesOf('Button', module) .add('Default', () => ( <button> <FormattedMessage id="button.label" /> </button> )); storiesOf('Date', module) .ad...
src/svg-icons/content/clear.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentClear = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); ContentClear = pure(ContentClea...
packages/react-interactions/events/src/dom/Swipe.js
rickbeerendonk/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactDOMResponderEvent, ReactDOMResponderContext, } from 'shared/ReactDOMTypes'; import type { Eve...
src/svg-icons/social/domain.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialDomain = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v...
frontend/App.js
a2393439531/nodepractice
import React from 'react'; import Header from './component/Header'; import Footer from './component/Footer'; import TopicList from './component/TopicList'; export default class App extends React.Component { render() { return ( <div className="container"> <Header /> {this.props.children ? th...
src/server.js
nomkhonwaan/nomkhonwaan.com
/* @flow */ /** * External dependencies */ import 'ignore-styles'; import * as React from 'react'; import ReactDOMServer from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import compression from 'compression'; import express from 'express'; import graphqlHTTP from 'express-graphql'; import { ...
client/components/panel.js
vidi-insights/vidi-dashboard
'use strict' import React from 'react' export default React.createClass({ render () { const {title, children} = this.props let heading = null if (title) { heading = <h3 className="panel-heading m0">{title}</h3> } return ( <div className="panel"> {heading} <div class...
example/src/screens/types/LightBox.js
shahen94/react-native-navigation
import React from 'react'; import {StyleSheet, View, Text, Dimensions, Button} from 'react-native'; class Lightbox extends React.Component { render() { return ( <View style={styles.container}> <View style={{flex: 8}}> <Text style={styles.title}>{this.props.title}</Text> <Text s...
src/server.js
companyjuice/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import express from 'express'; import React from 'react'; import './core/Dispatcher'; import './stores/AppStore'; import db from './core/Database'; imp...
App/Client/node_modules/react-router/es6/IndexRoute.js
qianyuchang/React-Chat
'use strict'; import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './PropTypes'; var func = React.PropTypes.func; /** * An <IndexR...
src/control/settings/index.js
BuildFire/placesPlugin2
import React from 'react'; import { render } from 'react-dom'; import Settings from './settings'; const container = document.getElementById('mount'); function renderApp() { render(<Settings />, container); } // Setup HMR re-rendering if (module.hot) { module.hot.accept(); module.hot.accept('./settings', render...
app/components/ConceptDropTarget/index.js
transparantnederland/browser
import './index.css'; import React from 'react'; import { DropTarget } from 'react-dnd'; const ConceptDropTarget = ({ connectDropTarget, isOver, canDrop, children }) => connectDropTarget( <div className="ConceptDropTarget"> {isOver ? <div className={['ConceptDropTarget-overlay', !canDrop ? 'ConceptDropTarg...
pages/discover-more/vision.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/discover-more/vision.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRo...
actor-apps/app-web/src/app/utils/require-auth.js
liruqi/actor-platform-v0.9
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js
prontotools/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
src/ApplicationList/ApplicationItemMeta.js
petr-k/mesos-marathon-browser
import React from 'react' import { Card } from 'semantic-ui-react' import type { AppDefinition } from './../api' import { getDockerImageName } from './reducer' export default class ApplicationItemMeta extends React.PureComponent { props: { definition: AppDefinition, } render() { const { definition } = t...
src/components/chart/chart.js
djErock/Telemed-Website
import React, { Component } from 'react'; import './chart.css'; import { ImportAll } from '../../util/helpers' const ChartImages = ImportAll(require.context('../../img/charts', false, /\.(png|jpe?g|svg)$/)); class Chart extends Component { constructor(props) { super(props); this.state = { ...
src/main.js
neekey/daigou
import React from 'react'; import Header from './components/header'; import style from './main.scss'; export default function Main(props) { return (<div> <Header /> <div className={style.content}> {props.children} </div> </div>); } Main.propTypes = { children: React.PropTypes.node, };
spec/components/drawer.js
KerenChandran/react-toolbox
import React from 'react'; import Button from '../../components/button'; import Drawer from '../../components/drawer'; class DrawerTest extends React.Component { state = { leftActive: false, rightActive: false }; handleToggleLeft = () => { this.setState({leftActive: !this.state.leftActive}); }; ...
client/src/javascript/components/general/form-elements/TextboxRepeater.js
jfurrow/flood
import {FormElementAddon, FormRow, FormRowGroup, Textbox} from 'flood-ui-kit'; import React from 'react'; import AddMini from '../../icons/AddMini'; import RemoveMini from '../../icons/RemoveMini'; export default class TextboxRepeater extends React.PureComponent { state = { textboxes: this.props.defaultValues |...
examples/huge-apps/routes/Course/components/Nav.js
jdelight/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...
examples/async/containers/Root.js
gaulucky92/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
src/containers/Asians/_components/PublishedBreakRound/index.js
westoncolemanl/tabbr-web
import React from 'react' import withStyles from 'material-ui/styles/withStyles' import Ballots from './Ballots' import BreakRoundMotions from 'containers/Asians/_components/BreakRoundMotions' import ListSubheader from 'material-ui/List/ListSubheader' import ResponsivePageHeader from 'components/ResponsivePageHeader'...
client/components/Greetings/index.js
phytertek/mern-community
import React from 'react' const Greetings = React.createClass({ render() { return ( <div> Greetings </div> ) } }) export default Greetings
src/js/app.js
axuebin/react-blog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; import '../css/index.css'; import '../css/layout/layout.css'; import Index from './containers/index'; const store = configureStore(); ReactDOM.render( <Provider s...
app/javascript/mastodon/features/compose/components/upload_button.js
imas/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
src/root.js
satotake/mdtree
import React from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import { createStore, applyMiddleware, } from 'redux'; import thunkMiddleware from 'redux-thunk'; import { createLogger, } from 'redux-logger'; import { Provider, } from 'react-redux'; import reducers from './reducers...
react/features/prejoin/components/dialogs/DialOutDialog.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { translate } from '../../../base/i18n'; import { Icon, IconClose } from '../../../base/icons'; import { ActionButton } from '../../../base/premeeting'; import Label from '../Label'; import CountryPicker from '../country-picker/CountryPicker'; type Props = { /** *...
app/components/Bookmark/Bookmark.js
zchen9/DonutTab
import React from 'react'; require("./Bookmark.scss"); const showStyle = { display: 'inline' }; const hideStyle = { display: 'none' }; var DefaultLinks = [{ "link": "https://github.com/", "name": "GitHub" }, { "link": "http://www.imooc.com/", "name": "Imooc" }, { "link": "http://www.uisdc...
actor-apps/app-web/src/app/components/common/Favicon.react.js
damoguyan8844/actor-platform
import React from 'react'; import FaviconStore from 'stores/FaviconStore'; export default class Fav extends React.Component { constructor(props) { super(props); FaviconStore.addChangeListener(this.update) } componentWillUnmount() { FaviconStore.removeChangeListener(this.update); } update() { ...
src/apps/expenses/components/EditPayExpenseFeesForm.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import withIntl from '../../../lib/withIntl'; import { getCurrencySymbol } from '../../../lib/utils'; import InputField from '../../../components/InputField'; class EditPayExpenseFees extends React.Component...
src/svg-icons/communication/dialpad.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationDialpad = (props) => ( <SvgIcon {...props}> <path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
resources/assets/js/components/admin/forms/StudentsPicker.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Select from 'react-select'; import { createGroupTransfer, fetchStudentGroupsExcept, fetchStudentsGroup } from '../../../actions/admin/adminDashboardActions'; const mapStateToProps = (state) => { return { teachers: state.a...
tests/Rules-equals-spec.js
RMSAuto/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import immediate from './utils/immediate'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestFor...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js
CodingZeal/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 aFileWithoutExt from './assets/aFileWithoutExt'; const text = aFileWithoutExt.includes('base64') ? ...
miniact6/client/index.js
eliorivero/miniact
import React from 'react'; import ReactDOM from 'react-dom'; import './sass/style.scss'; class DaleReact extends React.Component { constructor() { super(); this.state = { items: [] }; } componentWillMount() { fetch( `${Miniact.wpRestApi}wp/v2/posts?per_page=5` ) .then( response => response.json() ) .the...
pages/index.js
etaiklein/gameghost
import React from 'react' import MailingList from 'components/MailingList' import MiniServices from './miniservices' import MiniAboutGM from './miniaboutGM' import AboutUs from './aboutUs' import Contact from './contact' import {baseValLarge} from '../components/Item' export default class Index extends React.Component...
app/containers/App/index.js
sahilkhan99/PosApp
import React from 'react'; import { Switch, Route, Redirect } from 'react-router-dom'; import Header from 'components/Header'; import Budget from 'routes/Budget'; import Reports from 'routes/Reports'; import POS from 'routes/POS'; import Transaction from 'routes/Transaction'; import './style.scss'; {/*<Header /> ...
test/kitchensink/src/features/webpack/CssInclusion.js
egoist/vbuild
import React from 'react' import './assets/style.css' export default () => <p id="feature-css-inclusion">We love useless text.</p>
docs/src/Form/index.js
mesosphere/reactjs-components
import React from "react"; import BindMixin from "../../../src/Mixin/BindMixin"; import CodeBlock from "../components/CodeBlock"; import ComponentExample from "../components/ComponentExample"; import ComponentExampleWrapper from "../components/ComponentExampleWrapper"; import ComponentWrapper from "../components/Compo...
src/routes/Home/components/HomeView.js
davezuko/wirk-starter
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
app/components/Footer/index.js
SenyOrg/kekecmed-frontend
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
client/pages/examples/threejs/gpu-sph/index.js
fdesjardins/webgl
import React from 'react' import * as THREE from 'three' import Stats from 'stats.js' import threeOrbitControls from 'three-orbit-controls' import { css } from 'emotion' import Example from '-/components/example' import { onResize } from '-/utils' import notes from './readme.md' import { createTextures, fillTextur...
public/components/img-uploader.js
capaj/zahrajeme.cz
import React from 'react' import EXIF from 'exif-js/exif-js' import downscaleImage from '../utils/downscale-image' export default class ImgUploader extends React.Component { constructor (...props) { super(...props) this.state = { base64s: [] } } onFilesSelected (evt) { console.log('onFilesSelec...
archimate-frontend/src/main/javascript/components/view/nodes/model_s/resource.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { ModelNodeWidget } from '../BaseNodeWidget' export const TYPE='resource'; export class ResourceWidget extends ModelNodeWidget { getClassName(node) { return 'a-node model_s resource'; } }
packages/icons/src/md/image/SwitchVideo.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdSwitchVideo(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M36 19l8-8v26l-8-8v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v7zM26 31l7-7-7-7v5H14v-5l-7 7 7 7v-5h12v5z" /> </IconBas...
src/server.js
msangui/redux-boilerplate
import Express from 'express'; import session from 'express-session'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config/config'; import favicon from 'serve-favicon'; import compression from 'compression'; import path from 'path'; import createStore from './redux/c...
0019-perf-tools/app/src/index.js
davidwparker/programmingtil-react
import Perf from 'react-addons-perf'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; window.Perf = Perf; Perf.start(); ReactDOM.render( <App />, document.getElementById('root') ); Perf.stop(); // Get the measurements after stopping const measurements = ...
src/svg-icons/image/tonality.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTonality = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87....
app/javascript/mastodon/components/column_header.js
pinfort/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ show: { id: 'column_h...
app/components/dashboardproject/upgrade.js
imankit/dashboard-ui
/** * Created by Darkstar on 12/5/2016. */ import React from 'react'; import {connect} from 'react-redux'; import Check from 'material-ui/svg-icons/navigation/check'; import CreditCard from 'material-ui/svg-icons/action/credit-card'; import {grey500} from 'material-ui/styles/colors'; import planList from '../../fakeA...
antd-dva/antd-react-demo/src/index.js
JianmingXia/StudyTest
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/GithubButton/GithubButton.js
kingpowerclick/kpc-web-backend
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=...
lib/ui/src/components/notifications/NotificationList.stories.js
storybooks/storybook
import React from 'react'; import NotificationList from './NotificationList'; import itemMeta, * as itemStories from './NotificationItem.stories'; export default { component: NotificationList, title: 'UI/Notifications/NotificationList', decorators: [ (storyFn) => ( <div style={{ width: '240px', margin...
app/components/ToolbarContent/index.js
cerebral/cerebral-reference-app
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import ToolbarButtonPopover from 'common/components/ToolbarButtonPopover'; import ToolbarTitle from 'common/components/ToolbarTitle'; import Descriptions from '../Descriptions'; import AddNewCourse from 'components/AddNewCourse'; impo...
docs/app/Examples/elements/Input/Variations/InputExampleRightLabeled.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Dropdown, Input } from 'semantic-ui-react' const options = [ { text: '.com', value: '.com' }, { text: '.net', value: '.net' }, { text: '.org', value: '.org' }, ] const InputExampleRightLabeled = () => ( <Input label={<Dropdown defaultValue='.com' options={options} />} ...
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleMenuDirectionLeft.js
aabustamante/Semantic-UI-React
import React from 'react' import { Dropdown, Icon } from 'semantic-ui-react' const DropdownExampleMenuDirectionLeft = () => ( <Dropdown text='Menu' floating labeled button className='icon'> <Dropdown.Menu className='left'> <Dropdown.Item> <Icon name='dropdown' /> <span className='text'>Left...
src/react/form/field/types/default.js
luxui/lux-core
import React from 'react'; // `React` must be in scope when using JSX import registry from '../../../../lib/componentRegistry'; import '../wrapper'; function defaultFieldComponent(props) { const Wrapper = registry('Lux.Form.FieldWrapper'); const { name, title, value = 'no value' } = props; const style = { ...
example/examples/DefaultMarkers.js
jiaminglu/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 31.23295; const LONGITUDE = 121.3822; const LAT...
client/components/shared/NoData.js
AnatolyBelobrovik/itechartlabs
import React from 'react'; const NoData = () => { return ( <div className="well text-center"> <h5>Nothing to display here</h5> <p className="lead">There are no records to show you right now.</p> </div> ); }; export default NoData;
docs/app/Examples/modules/Modal/Types/ModalExampleBasic.js
clemensw/stardust
import React from 'react' import { Button, Header, Icon, Modal } from 'semantic-ui-react' const ModalBasicExample = () => ( <Modal trigger={<Button>Basic Modal</Button>} basic size='small'> <Header icon='archive' content='Archive Old Messages' /> <Modal.Content> <p>Your inbox is getting full, would you...
src/Options.js
selvagsz/react-power-select
import React, { Component } from 'react'; import cx from 'classnames'; import Option from './Option'; import { getOptionIndex, isOptGroup } from './utils'; export default class Options extends Component { componentWillReceiveProps({ options, highlightedOption }) { this.scrollTo({ options, highlightedOption }); ...
client/scripts/page.js
stas-vilchik/bdd
import React from 'react'; import BBLList from './bbl-list.js'; export default React.createClass({ render() { return ( <div className="container"> <div className="jumbotron"> <h1>BBLs Are Awesome</h1> </div> <BBLList/> </div> ); } });
blueprints/dumb/files/__root__/components/__name__/__name__.js
BrandyMint/uvedomi-proto
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/svg-icons/image/add-a-photo.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAddAPhoto = (props) => ( <SvgIcon {...props}> <path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-...
frontend/src/app/home/components/HoverableComponent.js
migcruz/dota2analytics
import React from 'react'; import { CSSTransitionGroup } from 'react-transition-group'; class HoverableComponent extends React.Component { render () { return ( <h1>FADING</h1> ); } } export default HoverableComponent;
lib/views/timeline-items/cross-referenced-event-view.js
atom/github
import React from 'react'; import {graphql, createFragmentContainer} from 'react-relay'; import PropTypes from 'prop-types'; import Octicon from '../../atom/octicon'; import IssueishBadge from '../../views/issueish-badge'; import IssueishLink from '../../views/issueish-link'; export class BareCrossReferencedEventView...
app/containers/NavigationContainer/index.js
rjgreaves/finances
/* * * NavigationContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectNavigationContainer from './selectors'; import Navigation from '../../components/Navigation'; import { requestNewsletters, selectNewsletter, toggleDrawer, logout } from './actions'; export class Navigati...