path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/settings/settings.js
imankit/dashboard-ui
/** * Created by Darkstar on 11/29/2016. */ import React from 'react'; import {connect} from 'react-redux'; import Toolbar from '../toolbar/toolbar.js'; import Footer from '../footer/footer.jsx'; import {fetchAppSettings, resetAppSettings} from '../../actions'; import RefreshIndicator from 'material-ui/RefreshIndicat...
src/basic/Swipe/SwipeoutBtn.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import { Text, TouchableHighlight, View } from 'react-native'; import NativeButton from './NativeButton'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; class SwipeoutBtn extends Component { sta...
js/fw/components/listSwipe/multi-list-swipe.js
linh918/react-native-starter-kit-demo-
import React, { Component } from 'react'; import { ListView } from 'react-native'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text, Left, Right, Body, Item, Input, View, } from 'native-base'; import styles from './styles'; const datas = [ 'Simon Mignolet', 'Nathaniel C...
app/containers/LoginPage/LoginForm.js
EpiAggregator/web
import React from 'react' import { Field, reduxForm } from 'redux-form/immutable' import messages from './messages'; import { FormattedMessage } from 'react-intl'; import { TextField } from 'redux-form-material-ui' import RaisedButton from 'material-ui/RaisedButton' const LoginForm = (props) => { const { error, onR...
weather/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
rmfranciacastillo/freecodecamp_projects
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'));
definitions/npm/react-select_v1.x.x/flow_v0.31.x-v0.52.x/test_react-select_v1.x.x.js
doberkofler/flow-typed
import React from 'react'; import { default as SelectComponent } from 'react-select'; import type Select from 'react-select'; const ArrowRenderer = (props: { onMouseDown: Event }): React$Element<*> => <span>Arrow</span>; const ClearRenderer = (): React$Element<*> => <span />; const filterOption = (option: Object, filt...
src/index.js
ohmyjersh/sso-component
import React from 'react'; import Immutable from 'immutable'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import { createStore, applyMiddleware } from 'redux'; import App from './containers/App'; import reducer from './state'; const url = window.location.h...
components/centered-map/map.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' import mapboxgl from 'mapbox-gl' import mapStyle from 'mapbox-gl/dist/mapbox-gl.css' import enhanceMapData from './enhance-map-data' import Empty from './empty' import Feature from './feature' class CenteredMap extends React.Component { static propTypes ...
src/components/ModalDisplayer.js
jcuenod/react-lafwebpy-client
import React from 'react' import {render} from 'react-dom' import ResultsDisplayer from './Modals/ResultsDisplayer' import NavigationDisplayer from './Modals/NavigationDisplayer' import HelpDisplayer from './Modals/HelpDisplayer' class ModalDisplayer extends React.Component { render() { return ( <div> <Resu...
frontend/src/Settings/Indexers/Indexers/EditIndexerModalConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { clearPendingChanges } from 'Store/Actions/baseActions'; import { cancelSaveIndexer, cancelTestIndexer } from 'Store/Actions/settingsActions'; import EditIndexerModal from './EditIndexerModal'; ...
test/test_helper.js
ryankopf/bnc-website
import _$ from 'jquery' import React from 'react' import ReactDOM from 'react-dom' import TestUtils from 'react-addons-test-utils' import jsdom from 'jsdom' import chai, { expect } from 'chai' import chaiJquery from 'chai-jquery' import { Provider } from 'react-redux' import { createStore } from 'redux' import reducers...
src/applications/static-pages/health-care-manage-benefits/get-medical-records-page/index.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; export default (store, widgetType) => { const root = document.querySelector(`[data-widget-type="${widgetType}"]`); if (root) { import(/* webpackChunkName: "get-medical-records-page" */ './c...
Libraries/Image/ImageBackground.js
hoastoolshop/react-native
/** * 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. * * @providesModule ImageBackground * @flow * @format */ 'use strict'; const Image = require('Image'); const React = require('React'); ...
react-playground/src/index.js
vtrpldn/javascript-cookbook
import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter} from 'react-router-dom'; import './index.css'; import App from './components/App/App'; const Root = () => { return ( <BrowserRouter> <App/> </BrowserRouter> ) } ReactDOM.render(<Root />, document.g...
src/routes.js
eiriklv/redux-undo-boilerplate
import React from 'react'; import { Route } from 'react-router'; import App from './containers/App'; import * as containers from './containers'; const { CounterPage } = containers; export default ( <Route component={App}> <Route path="/" component={CounterPage} /> </Route> );
src/components/ConnectionIndicator/index.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import Card from '@mui/material/Card/Card'; import CardHeader from '@mui/material/CardHeader'; import OfflineIcon from './OfflineIcon'; function ConnectionIndicator({ isConnected }) { const { t } =...
src/components/Home.js
clayhan/reactserver
// src/components/Home.js import React from 'react'; import { Link } from 'react-router'; import Recipe from './Recipe'; import GroceryList from './GroceryList'; export default class Home extends React.Component { constructor(props) { super(props); } render() { const recipes = [ { name: '...
packages/bonde-admin/src/components/basic-color-picker/basic-color-picker-item.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import classnames from 'classnames' const BasicColorPickerItem = ({ color, isSelected, onSelectColor }) => ( <div className='col col-1 p1'> <div className={classnames( 'col col-12 border-only-bottom border-darken-3 rounded btn bg-white', ...
src/ButtonGroup.js
dozoisch/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import all from 'react-prop-types/lib/all'; import Button from './Button'; import { bsClass, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { vertical: React.PropTypes.bool, justified: React.PropTypes.bool, ...
packages/zensroom/lib/components/bookings/BookingsRoomUser.js
SachaG/Zensroom
/* Show a user's bookings for a given room. Wrapped with withList. Example: <Components.BookingsRoomUser terms={{view: 'userBookings', userId: currentUser._id, roomId: documentId}}/> http://docs.vulcanjs.org/data-loading.html#List-Resolver */ import React from 'react'; import { Components, registerComponent, with...
src/components/App.js
jasonrundell/jasonrundell-react-site-2017
import React from 'react' import { Provider, connect } from 'react-redux'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; import Home from './Home'; import Skills from './Skills'; import Projects from './Projects'; import ProjectPost from './ProjectPost'; import Blog from './Blog'; impo...
js/components/logIn.js
brainly/datacontest
import React from 'react'; const LogIn = (props) => { return ( <div className="app-contest__slide"> <div className="app-contest__header"> <h1 className="sg-text-bit"> <span className="sg-text-bit__hole"> <div className="sg-logo sg-log...
ui/src/js/profile/tools/ButtonBar.js
Dica-Developer/weplantaforest
import counterpart from 'counterpart'; import React, { Component } from 'react'; import CircleButton from '../../common/components/CircleButton'; export default class ButtonBar extends Component { constructor(props) { super(props); } switchTo(page, index) { this.props.switchTo(page, index); } rende...
app/javascript/mastodon/components/status_content.js
cobodo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; import PollContainer from 'mastodon/containers/poll_container'; import Icon ...
react/src/pages/feedback/message-edit.js
motiko/sfdc-debug-logs
import React from 'react' import ReplyIcon from 'material-ui-icons/Reply' import Button from 'material-ui/Button' import TextField from 'material-ui/TextField' import { DialogActions } from 'material-ui/Dialog' export default class MessageEdit extends React.Component { constructor(props) { super(props) this....
src/svg-icons/action/opacity.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpacity = (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....
app/handlers/page1.js
samarpanda/react-webpack-express
import React from 'react'; var App = module.exports = React.createClass({ getInitialState(){ return {page: 1}; }, render(){ return ( <div>Page{this.state.page} handler</div> ); } }); //export default App;
src/js/components/members/membersTable.js
jrnail23/sitterswap-ui
import React from 'react' import {Link} from 'react-router' import EmailLink from '../common/emailLink' class MemberRow extends React.Component { static propTypes = { member: React.PropTypes.shape({ key: React.PropTypes.string.isRequired, firstName: React.PropTypes.string.isRequired, lastName: ...
src/svg-icons/av/closed-caption.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvClosedCaption = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5...
src/Preloader.js
react-materialize/react-materialize
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Spinner from './Spinner'; const colors = ['blue', 'red', 'yellow', 'green']; const Preloader = ({ active, size, color, flashing, className }) => { let classes = cx('preloader-wrapper', { active }, size); let spinn...
client/src/components/NavBar/NavBarForm.js
ccabrales/espn-fantasy-stats
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Form, Input, Select } from 'semantic-ui-react'; /** * Form for the nav bar to allow the user to update the League ID and season * @class NavBarForm */ class NavBarForm extends React.Component { /** * Initial state to keep track of ...
src/components/ReduxFormFields/DateField.js
zerkedev/zerke-app
import React, { Component } from 'react'; import DatePicker from './DatePicker'; import { Field } from 'redux-form'; import { TextField } from 'redux-form-material-ui'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { injectIntl, intlShape } from 'react-intl'; import FontIcon from 'material-ui/Font...
www/ui/documentation/code-block.js
ForbesLindesay/cabbie
import React from 'react'; import styled from 'styled-components'; const Pre = styled.pre` overflow-x: auto; `; const Code = styled.code` font-size: 1em; @media(min-width: 1200px) { font-size: 1.3vw; } @media(min-width: 1550px) { font-size: 1.35em; } `; function CodeBlock(props) { return <Pre><Co...
src/svg-icons/device/battery-20.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery20 = (props) => ( <SvgIcon {...props}> <path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7...
app/components/Block.js
yandan66/react-native-maicai
import React from 'react'; import { StyleSheet, Text, View, Dimensions, Image, TouchableOpacity } from 'react-native'; export default class Block extends React.Component { render() { return ( <View style={styles.block}> {this.renderHeader()} <View style={styles.blockContent}> ...
src/containers/HistoryUserBookingsPage.js
qandobooking/booking-frontend
import React from 'react'; import HistoryUserBookings from '../components/HistoryUserBookings'; import { connect } from 'react-redux'; import { toInteger, debounce } from 'lodash'; import { loadHistoryUserBookings, setHistoryUserBookingsPage, setHistoryUserBookingsSearchFilter, } from '../actions/user-bookings'; ...
demos/toggles/demos/checkboxOn.js
isogon/styled-mdl-website
import React from 'react' import { Checkbox } from 'styled-mdl' const demo = () => <Checkbox label="Checkbox" defaultChecked /> const caption = 'Checkbox On' const code = '<Checkbox label="Checkbox" defaultChecked />' export default { demo, caption, code }
app/src/Frontend/modules/mission/containers/mission/verify/index.js
ptphp/ptphp
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import { ButtonArea, Button, CellsTitle, CellBody, Cell, Form, FormCell, TextArea, Uploader, Toast, Dialog } from '../../../../../index'; const {Alert} = Dialog; var Sentry = require('react-sentry'...
components/range/Range.js
zooshgroup/react-toolbox-components
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import classnames from 'classnames'; import styleShape from 'react-style-proptype'; import { themr } from 'react-css-themr'; import { round, range } from 'react-toolbox/lib/utils/utils'; import { SLIDER } fro...
Libraries/Text/Text.web.js
sprightco/react-web
/** * Copyright (c) 2015-present, Alibaba Group Holding Limited. * All rights reserved. * * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * @providesModule ReactText */ 'use strict'; import React from 'react'; import { Mixin as TouchableMixin } from 'ReactTouchable'; import { Mixin as LayoutMixin }...
fields/types/select/SelectFilter.js
tanbo800/keystone
import React from 'react'; import { Checkbox, FormField, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/src/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; var SelectFilter = React.createClass({ getInitia...
app/components/About.js
YuHuaiChen/meteor-react-redux-starter-kit
import React from 'react' import { Link } from 'react-router' const About = () => { return ( <div> <h2> About </h2> <Link to="/">Back to Home</Link> </div> ) } export default About
src/components/PresetCard/PresetCard.js
jeffdowdle/l-systems
import React from 'react'; import PropTypes from 'prop-types'; import './preset-card.scss'; const PresetCard = ({ preset, onLoadClicked, }) => ( <div styleName="preset-card"> <span styleName="title">{preset.title}</span> <button styleName="load-preset" onClick={onLoadClicked}>Load</button> </div> ); ...
src/containers/Widgets/Widgets.js
delwiv/saphir
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import * as widgetActions from 'redux/modules/widgets'; import WidgetForm from 'components/WidgetForm/WidgetForm'; import { asyncConnect } from 'redux-connect'; const ...
app/javascript/mastodon/components/avatar_overlay.js
kagucho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { staticSrc: PropTypes.string.isRequired, overlaySrc: PropTypes.string.isRequired, }; render() { const { staticSrc, overlaySrc } = this.props; cons...
src/app/components/Court.js
lubosz/tetris.js
/** * Created by bmonkey on 8/31/15. */ import React from 'react'; import {randomPiece, nx, ny, nu, mode, DIR, setBlock, eachblock} from '../logic'; import {drawBlock, drawPiece} from '../renderer'; import {sound} from '../utils'; class Court extends React.Component { constructor(props) { super(props); ...
src/components/ListPagination.js
tilgram/tilgram-frontend
import React from 'react'; import agent from '../agent'; import { connect } from 'react-redux'; import { SET_PAGE } from '../constants/actionTypes'; const mapDispatchToProps = dispatch => ({ onSetPage: (page, payload) => dispatch({ type: SET_PAGE, page, payload }) }); const ListPagination = props => { if (pro...
app/components/ShareLine.js
RoadToGlobal/ClientDistro
import React from 'react'; import GeneralInput from '../components/GeneralInput'; const shareInput = { fontFamily: 'arial', height: '2em', width: '100%', borderRadius: '2px', border: 'none', }; class Button extends React.Component { render() { return ( <div style={{width: '80%'}}> <Gener...
src/routes.js
henryhuang/appshowpub
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Router from 'react-routi...
src/components/Notifs/Notifs.js
prakash-u/react-redux
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; @connect((state, props) => ({ notifs: state.notifs[props.namespace] || [] })) export default class Notifs extends Component { static propTypes = { notifs: PropTypes.arrayOf(PropTypes.object).isReq...
app/components/HeaderOld/style.js
ArtemDervoed/DiplomWork
import React from 'react'; import styled from 'styled-components'; export const WrapperHeader = styled.header` transition: .5s; display: flex; align-items: center; justify-content: space-between; text-transform: uppercase; position: statik; width: 100%; max-width: 1903px; min-width: 1024px; backgr...
app/components/PageView.js
pbillerot/reacteur
'use strict'; import React from 'react' import ReactDOM from 'react-dom' import 'whatwg-fetch' import { Link } from 'react-router' // W3 const { Alerter, Button, Card, Content, Footer, Header, IconButton , Menubar, Nav, Navbar, NavGroup, Sidebar, Window } = require('./w3.jsx') import ContainerSidebar from './Cont...
docs/app/Examples/modules/Dropdown/States/DropdownExampleError.js
vageeshb/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleError = () => ( <Dropdown text='Dropdown' error> <Dropdown.Menu> <Dropdown.Item>Choice 1</Dropdown.Item> <Dropdown.Item>Choice 2</Dropdown.Item> </Dropdown.Menu> </Dropdown> ) export default DropdownExa...
react/features/base/participants/components/ParticipantView.native.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { JitsiParticipantConnectionStatus } from '../../lib-jitsi-meet'; import { MEDIA_TYPE, shouldRenderVideoTrack, VideoTrack } from '../../media'; import { Container } from '../../react'; import { getTrackByMediaTypeAndPar...
web/src/components/Calendar/components/Agenda/index.js
AcrylicInc/totalblu
import PropTypes from 'prop-types'; import React from 'react'; import classes from 'dom-helpers/class'; import getWidth from 'dom-helpers/query/width'; import scrollbarSize from 'dom-helpers/util/scrollbarSize'; import localizer from 'components/Calendar/localizer' import message from 'components/Calendar/utils/messag...
src/components/Tile.js
longyarnz/WelFurnish-E-Commerce
import React from 'react'; export default function Tile(props) { const { src, title, desc, reNumber } = props; let { price } = props; price = reNumber(price); return ( <figure onClick={props.onClick}> <img className="" src={src} alt="" /> <figcaption> {title} <br /> <div>{desc}</d...
src/SyncContacts.js
sumurthy/xlcontacts
import React, { Component } from 'react'; export class SyncContacts extends Component { render() { return ( <div> <h2> Sync MyContacts </h2> </div> ); } } export default SyncContacts
src/components/CryptoDropdown.js
davidoevans/react-redux-dapp
import React from 'react' const CryptoDropdown = ({ label, cryptos, action }) => ( <div className="form-group form-group-sm"> <label className="col-sm-2 control-label">{label}</label> <div className="col-sm-10"> <select className="form-control" onChange={ (e) => action(e.target.value)}> ...
cms/react-static/src/containers/Blog.js
fishjar/gabe-study-notes
import React from 'react' import { withRouteData, Link } from 'react-static' // export default withRouteData(({ posts }) => ( <div> <h1>It's blog time.</h1> <br /> All Posts: <ul> {posts.map(post => ( <li key={post.id}> <Link to={`/blog/post/${post.id}/`}>{post.title}</Link> ...
components/partials/view.js
wi2/isomorphic-sails-react-example
"use strict"; import React from 'react' import {ReactItem} from 'sails-react-store' export class View extends ReactItem { render() { let item = this.state.item; return ( <div> <h1 className="doc-title">{item.title}</h1> <p className="doc-content">{item.content||''}</p> </div> ...
example/pages/icons/index.js
woshisbb43/coinMessageWechat
import React from 'react'; import {Icon} from '../../../build/packages'; import Page from '../../component/page'; import './icons.less'; const IconBox = (props) => ( <div className="icon-box"> {props.icon} <div className="icon-box__ctn"> <h3 className="icon-box__title">{props.title}</h3...
packages/bonde-admin-canary/src/scenes/Auth/scenes/ResetPassword/InvalidToken.js
ourcities/rebu-client
import React from 'react' import { Trans } from 'react-i18next' import { Flexbox2 as Flexbox, Title } from 'bonde-styleguide' import Link, { ButtonLink } from 'components/Link' export default ({ t }) => ( <Flexbox vertical> <Title.H2 margin={{ bottom: 20 }}>{t('resetPassword.invalidToken.title')}</Title.H2> ...
src/index.js
great-design-and-systems/cataloguing-app
/* eslint-disable import/default */ import './styles/styles.scss'; // Yep, that's right. You can import SASS/CSS files too! Webpack will run the associated loader and plug this into the page. import '../node_modules/normalize.css/normalize.css'; import '../node_modules/bootstrap/dist/css/bootstrap.css'; import './them...
packages/react-error-overlay/src/components/Header.js
johnslay/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. */ /* @flow */ import React from 'react'; import { red } from '../styles'; const headerStyle = { fontSize: '2em', fontFamily: 'sans-se...
src/components/Handle.js
mirokk/react-content-builder
import React from 'react'; import order from '../order'; let rem=(rid)=>{ var element = document.getElementById(rid); element.outerHTML = ""; order(); } export default ({clazz, children, rid})=>( <div className={"handle "+clazz}> {children} <i className="fa fa-trash" onClick={rem.bind(null, rid)} aria-hidden="...
app/routes.js
BloodMoonShard/react-blog
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import { Layout } from './components/Layout/Layout'; import { Home } from './components/Home/Home'; import { Formblog } from './components/Formblog/Formblog'; export default ( <Route path="/" component={Layout}> <IndexRoute component={Hom...
src/containers/components/NewExperiment/DepVar.js
mdboop/francis
// import React and Redux dependencies import React from 'react'; import { connect } from 'react-redux'; import _ from 'underscore'; import { bindActionCreators } from 'redux'; import MeasureWrapper from './MeasureWrapper'; // import actions import DepVarActions from '../../actions/DepVars'; import MeasureActions fro...
stories/TabbedForm.js
Fundflow/apollo-redux-form
import React from 'react'; import defaultRenderers from './defaultRenderers'; import { Tabs } from 'antd'; const TabPane = Tabs.TabPane; import gql from 'graphql-tag'; import { apolloForm } from '../lib/src/index'; import { capitalizeFirstLetter } from './utils'; const schema = gql` input UserInput { profile...
assets/jqwidgets/demos/react/app/dockinglayout/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDockingLayout from '../../../jqwidgets-react/react_jqxdockinglayout.js'; import JqxTree from '../../../jqwidgets-react/react_jqxtree.js'; class App extends React.Component { render() { let layout = [{ type: 'layoutGroup', ...
src/legacyRoutes.js
OpenSourceMe/Website
import React from 'react'; import { Redirect } from 'react-router'; const legacyRoutes = ( <div> <Redirect from="/portfolio" to="/page/portfolio" /> <Redirect from="/about" to="/page/about" /> <Redirect from="/music" to="/page/music" /> <Redirect from="/resume" to="/page/resume" /> <Redirect from...
src/containers/DashboardJobsPage/components/SubscriptionItem/index.js
apedyashev/react-universal-jobs-aggregator
// libs import React from 'react'; import {PropTypes} from 'prop-types'; export default function SubscriptionItem({subscription}) { return ( <div>{subscription.title}</div> ); } SubscriptionItem.propTypes = { subscription: PropTypes.shape({ id: PropTypes.string, title: PropTypes.string, }).isRequir...
main.js
yogeshkhatri1989/rc-month-calendar
import React, { Component } from 'react'; import ReactDom from 'react-dom'; import MonthCalendar from './Calendar'; import './Calendar.less'; class App extends Component { render() { return <MonthCalendar containerClass={"cal-container"} prevButtonClass={"cal-prev-button"} nextButtonClass={"ca...
docs/html.js
jribeiro/storybook
import React from 'react'; import PropTypes from 'prop-types'; import DocumentTitle from 'react-document-title'; import { prefixLink } from 'gatsby/dist/isomorphic/gatsby-helpers'; import favicon from './design/homepage/storybook-icon.png'; const BUILD_TIME = new Date().getTime(); const HTML = props => { const tit...
app/javascript/mastodon/features/notifications/index.js
masarakki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
addons/themes/phantom/layouts/Single.js
rendact/rendact
import React from 'react' import Header from '../includes/Header'; import FooterWidgets from '../includes/FooterWidgets'; import MenuItems from '../includes/MenuItems'; import Footer from '../includes/Footer'; class Single extends React.Component { componentDidMount(){ require("../css/style.css") document.bo...
src/js/client/app.js
janjakubnanista/rain
import React from 'react'; import { connect } from 'react-redux'; class App extends React.Component { render() { return <h1>App</h1>; } } export default connect(state => state)(App);
RNApp/node_modules/react-native/Libraries/Components/WebView/WebView.ios.js
abhaytalreja/react-native-telescope
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/pages/AccessDenied/index.js
aggiedefenders/aggiedefenders.github.io
import React, { Component } from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; // import PageHeader from 'react-bootstrap/lib/PageHeader'; // import database from './database'; class AccessDenied extends Component { constructor(props) { super(props); this.state = { ...
packages/ringcentral-widgets-cli/templates/Project/src/containers/AppView/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import withPhone from 'ringcentral-widgets/lib/withPhone'; import OfflineModeBadge from 'ringcentral-widgets/components/OfflineModeBadge'; import Environment from 'ringcentral-widgets/components/Environment'; import ...
app/containers/UGTourPage/touritem.js
perry-ugroop/ugroop-react-dup2
/** * Created by yunzhou on 26/11/2016. */ import React from 'react'; // import { connect } from 'react-redux'; import messages from './messages'; // import { FormattedMessage } from 'react-intl'; import { Tabs, NavDropdown, MenuItem } from 'react-bootstrap'; import UGTab from './UGTab'; import A from '../../componen...
app/containers/LobbyItem/index.js
VonIobro/ab-web
import React from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { createStructuredSelector } from 'reselect'; import Button from 'components/Button'; import Link from 'components/Link'; import { makeSelectTableData, makeSelectTableLastHandId } from './selectors'; import...
src/svg-icons/maps/local-car-wash.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2...
app/index.js
zhangmhao/memo
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
src/components/Main.js
teafn/react-webpack-sample
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; import FigureImgComponent from './FigureImgComponent'; import ControllerComponent from './ControllerComponent' let imgData = require('../data/imgData.json'); import {randRange,randDeg} from ...
src/components/switch/Switch.js
f0zze/rosemary-ui
import isUndefined from 'lodash/isUndefined'; import React from 'react'; import cn from 'classnames'; const PROP_TYPES = { disable: React.PropTypes.bool, checked: React.PropTypes.bool, title: React.PropTypes.string }; const DEFAULT_PROPS = { disabled: false, onChange: () => { } }; class Switc...
src/components/NotFoundPage.js
svitekpavel/chatbot-website
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
spec/javascripts/jsx/blueprint_courses/components/ExpandableLockOptionsSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/components/products/products-by-series.js
FranckCo/Operation-Explorer
import React from 'react'; import { sparqlConnect } from 'sparql-connect'; import ProductList from './product-list'; import Spinner from 'components/shared/spinner' import D, { getLang } from 'i18n' /** * Builds the query that retrieves the products issued of a given series. */ const queryBuilder = series => ` PRE...
src/containers/DevTools.js
VinSpee/react-redux-postcss-boilerplate
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" > <LogMonitor /> </DockMon...
docs/tutorial/DO_NOT_TOUCH/06/src/index.js
idream3/cerebral
import React from 'react' import {render} from 'react-dom' import {Controller} from 'cerebral' import App from './components/App' import {Container} from 'cerebral/react' import Devtools from 'cerebral/devtools' import {set, wait} from 'cerebral/operators' import {state, input} from 'cerebral/tags' function showToast ...
src/constants/marioParty.js
jhlav/mpn-web-app
/* eslint-disable import/prefer-default-export, global-require */ import React from 'react'; import Avatar from 'react-md/lib/Avatars'; export const getBoards = game => { const list = ['Unknown']; switch (game) { case 'Mario Party 1': return list.concat([ "Bowser's Magma Mountain", "DK's...
src/components/icons/Waves.js
niekert/soundify
import React from 'react'; import { string } from 'prop-types'; function Waves({ fill, ...props }) { return ( <svg height="432" width="561" fill={fill} viewBox="0 0 561 432" {...props}> <g fill={fill} transform="translate(-180 -244)"> <path d="M291.578 323.262c14.578 0 26.396 11.818 26.396 26.396v2...
src/components/OnsetGraph.js
rikner/spectral-beat
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as actions from '../actions'; const propTypes = { canvasHeight: PropTypes.number.isRequired, canvasWidth: PropTypes.number.isRequired, graphScale: PropTypes.number.isRequired, o...
fields/types/url/UrlColumn.js
linhanyang/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var UrlColumn = React.createClass({ displayName: 'UrlColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { va...
Example/Example.js
FishErr/react-native-camera
import React from 'react'; import { Image, StatusBar, StyleSheet, TouchableOpacity, View, } from 'react-native'; import Camera from 'react-native-camera'; const styles = StyleSheet.create({ container: { flex: 1, }, preview: { flex: 1, justifyContent: 'flex-end', alignItems: 'center', ...
packages/reaxtor-redux-example/client/index.js
trxcllnt/reaxtor
import React from 'react'; import App from '../common/containers/App'; import { Scheduler } from 'rxjs'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { connect } from 'reaxtor-redux'; import { Model } from 'reaxtor-falcor'; import DataSource from 'falcor-http-datasource'; import { ...
containers/Agreement.js
goominc/goommerce-seller-native
'use strict'; import React from 'react'; import { Alert, StyleSheet, Text, View } from 'react-native'; import Button from 'react-native-button'; import { connect } from 'react-redux' import { authActions } from 'goommerce-redux'; import Icon from '../components/Icon'; import TermsAndConditions from '../components/Ter...
src/form/FieldRow.js
carab/Pinarium
import React from 'react' import {makeStyles} from '@material-ui/styles' const useStyles = makeStyles(theme => ({ root: { padding: theme.spacing.unit * 2, display: 'flex', flexWrap: 'wrap', '& > *': { margin: theme.spacing.unit, }, }, })) export default function FieldRow({children}) { ...
app/containers/App.js
transparantnederland/relationizer
import React from 'react'; import NavContainer from './NavContainer'; import FlagModalContainer from './FlagModalContainer'; import './app.css'; const App = React.createClass({ render() { return ( <div className="App"> <NavContainer /> {this.props.children} <FlagModalContainer /> ...
src/main/app/scripts/routes/index.js
ondrejhudek/pinboard
import React from 'react' import { Route, IndexRoute, Redirect } from 'react-router' import auth from '../services/auth/login' import Layout from '../layouts/Layout' /* views */ import HomeView from '../views/Home' import LostPasswordView from '../views/LostPassword' import DashboardView from '../views/Dashboard' imp...