path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
modules/Redirect.js
djkirby/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './InternalPropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client ...
src/redux/utils/createDevToolsWindow.js
ipanasenko/temp
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import DevTools from 'containers/DevToolsWindow'; export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `wi...
src/pages/conference/people/userProfile/myProfile/index.js
sunway-official/acm-admin
import { IconButton, Subheader } from 'material-ui'; import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons'; import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import EditUserAvatar from '../changeAvatar/editUserAvatar'; import GeneralInfo...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16-hooks/complete/friends/FriendProfile.js
Brandon-J-Campbell/codemash
import React from 'react'; import { Link } from 'react-router-dom'; import Card from '../shared/Card'; import styles from './FriendProfile.css'; export default function FriendProfile({ id, name, image }) { return ( <Link to={'friends/' + id}> <Card> <div className={styles.friendProfile}> ...
index.ios.js
hiteshsahu/React-Native-Music-Player
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class React_Audio_Player extends Component { render() { return ( <View style={styles....
component/about.js
jstogether/jstogether
import React from 'react' import Component from './component'; export default class About extends Component { /** * */ render () { return ( <div className={'pageContainer'}> <h1>{'About'}</h1> <p>{'Cool description about jstogether'}</p> </div> ); } }
docs/app/Examples/elements/Image/Types/ImageExampleImage.js
aabustamante/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleImage = () => ( <Image src='/assets/images/wireframe/image.png' size='small' /> ) export default ImageExampleImage
app/App.js
halversondm/solr-reaction
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 className={styles.app}> bar </div> ); } }
js/components/components/RecentApplicant.react.js
wuyuanyi135/react-template
import React, { Component } from 'react'; import { Glyphicon, Media } from 'react-bootstrap'; import * as actions from '../../actions/AppActions.js'; import { connect } from 'react-redux'; import _ from 'lodash'; class RecentApplicant extends Component { componentDidMount() { this.props.dispatch(actions.fe...
src/svg-icons/notification/sms-failed.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSmsFailed = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); NotificationSmsFail...
app/scripts/root.js
bluedaniel/Kakapo-app
import React from 'react'; import { pick } from 'ramda'; import { connect } from 'react-redux'; import { ConnectedRouter } from 'connected-react-router'; import { IntlProvider } from 'react-intl'; import App from 'containers/app/app'; const Root = ({ settings: { intlData }, history }) => ( <IntlProvider locale={intl...
app/javascript/mastodon/features/compose/components/search_results.js
PlantsNetwork/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/status_container'; import { Link } from 'react-router-dom'; import ...
app/components/Auth.js
DeividasK/click-or-be-clicked
import React from 'react'; export default class Navigation extends React.Component { render () { if (this.props.authPending) { return <div></div>; } if (this.props.isAuthenticated) { return <button className="navbar-toggle btn btn-default" onClick={ this.props.onSignOut }>Sign Out</but...
ajax/libs/react-instantsearch/4.4.2/Dom.js
sashberd/cdnjs
/*! ReactInstantSearch 4.4.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js
tszajna0/react-native
'use strict'; import React, { Component } from 'react'; import { Image, Platform, StyleSheet, } from 'react-native'; import ListItem from '../../components/ListItem'; import WelcomeText from './WelcomeText'; export default class WelcomeScreen extends Component { static navigationOptions = { title: 'Welc...
src/interface/others/EventsTab.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import AutoSizer from 'react-virtualized/dist/commonjs/AutoSizer'; import Table, { defaultRowRenderer as defaultTableRowRenderer, Column } from 'react-virtualized/dist/commonjs/Table'; import Toggle from 'react-toggle'; import 'react-toggle/style.css'; imp...
modules/gui/src/widget/toggleButton.js
openforis/sepal
import {Button} from 'widget/button' import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' export class ToggleButton extends React.Component { constructor() { super() this.onChange = this.onChange.bind(this) } render() { const {chromeless} = this.props...
packages/mineral-ui-icons/src/IconMailOutline.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconMailOutline(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
app/components/body/content.js
Rorchackh/Sink
import React from 'react' import HeaderTab from './tabs/header_tab' export default class Content extends React.Component { constructor(props) { super(props) this.services = [] } componentWillReceiveProps(nextProps) { if (nextProps.soapClient) { this.services = nextPro...
docs/app/Examples/modules/Popup/Variations/PopupExamplePosition.js
aabustamante/Semantic-UI-React
import React from 'react' import { Icon, Popup, Grid } from 'semantic-ui-react' const PopupExamplePosition = () => ( <Grid columns={3} style={{ width: '600px' }}> <Grid.Row> <Grid.Column> <Popup trigger={<Icon name='heart' color='red' size='large' circular />} content='I am posi...
tilapp/src/containers/Scenes/EmptyPage/Index/index.js
tilap/tilapp
import React, { Component } from 'react'; import { Text, Container, Content } from 'native-base'; import merge from 'deep-assign'; class EmptypageScene extends Component { render() { return ( <Container> <Content style={{padding: 15}}> <Text>Page to build</Text> </Content> </Container> ...
src/mobile/src/components/common/Input.js
douglascbarbosa/plankit
import React from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secureTextEntry }) => { const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{label}</Text> <TextI...
src/client/mindmap/link.react.js
dfogas/my-mindmap
import * as mindmapActions from './actions'; import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; import {msg} from '../intl/store'; class EntryLink extends Component { changeHead() { c...
frontend/capitolwords-spa/src/components/Avatar/Avatar.js
propublica/Capitol-Words
import React from 'react'; import g from 'glamorous'; import * as s from '../../styles'; const AvatarImg = g.a({ display: 'inline-block', borderRadius: '50%', borderStyle: 'solid', borderWidth: '4px', backgroundSize: 'cover', backgroundPosition: 'center 20%', }, ({ size, imageUrl, party }) => ({ width:...
app/scripts/terminal-main.js
hustbill/network-verification-ui
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../styles/main.scss'; import '../images/favicon.ico'; import configureStore from './stores/configureStore'; const store = configureStore(); function renderApp() { const TerminalApp ...
ui/src/main/js/components/Loading.js
rdelval/aurora
import React from 'react'; export default function Loading() { return <div>Loading...</div>; }
app/common/components/Loadable/DefaultLoadingComponentProvider.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import warning from 'warning'; class DefaultLoadingComponentProvider extends React.Component { static childContextTypes = { defaultLoadingComponent: PropTypes.any, }; static propTypes = { component: PropTypes.any, children: PropTypes.nod...
src/shared/components/teamCard/teamCard.js
miaket/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './teamCard.css'; const TeamCard = ({ name, role }) => ( <div className={styles.teamCard}> <span className={styles.name}> {name} </span> <hr /> <span className={styles.role}> {role} </span> </div> ); ...
src/EventRow.js
TeaBough/react-big-calendar
import PropTypes from 'prop-types' import clsx from 'clsx' import React from 'react' import EventRowMixin from './EventRowMixin' class EventRow extends React.Component { render() { let { segments, slotMetrics: { slots }, className, } = this.props let lastEnd = 1 return ( <di...
node_modules/react-scripts/template/src/index.js
okristian1/react-info
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/components/texts/caption-text.js
tuantle/hypertoxin
/** * Copyright 2016-present Tuan Le. * * Licensed under the MIT License. * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/mit-license.html * * Unless required by applicable law or agreed to in writing, software * d...
app/index.js
gusreiber/OSS-plugin-site
import createAppStore from './createAppStore'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { render } from 'react-dom'; import Application from './Application'; import App from './App'; import PluginDetail from './components/PluginDetail'; im...
packages/showcase/axes/dynamic-crosshair-scatterplot.js
uber/react-vis
// Copyright (c) 2016-2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, ...
docs/src/app/components/pages/customization/StylesOverridingInlineExample.js
IsenrichO/mui-with-arrows
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingInlineExample = () => ( <Checkbox name="StylesOverridingInlineExample" label="Checked the mail" style={{ width: '50%', margin: '0 auto', border: '2px solid #FF9800', backgroundColor: '#ff...
src/Parser/Warlock/Destruction/Modules/Talents/ReverseEntropy.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; impo...
src/svg-icons/action/watch-later.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
saga/P/async/src/index.js
imuntil/React
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import App from './containers/App' import { Provider } from 'react-redux' import configureStore from './store/configureStore' import rootSaga from './sagas' const store = configureStore() store.runSaga(rootSaga) render( <Provider s...
app/javascript/mastodon/features/pinned_statuses/index.js
honpya/taketodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
docs/src/app/pages/components/InlineEdit/ExampleInlineEditReadonly.js
GetAmbassador/react-ions
import React from 'react' import InlineEdit from 'react-ions/lib/components/InlineEdit' import styles from './styles' class ExampleInlineEditReadonly extends React.Component { constructor(props) { super(props) } state = { inlineValue: 'You can\'t click to edit me' } render = () => { return ( ...
src/browser/app/components/SwitchTheme.js
robinpokorny/este
// @flow import type { State } from '../../../common/types'; import * as themes from '../../app/themes'; import React from 'react'; import { Box, Button, Heading } from '../../app/components'; import { compose } from 'ramda'; import { connect } from 'react-redux'; import { setTheme } from '../../../common/app/actions';...
app/app.js
lxanders/react-express-base
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route } from 'react-router'; import Application from './components/Application'; import Foo from './components/Foo'; import Bar from './components/Bar'; import Baz from './components/Baz'; ReactDOM.render( <Router> <Route path="...
src/components/Weather.js
panlu888/small-react-app
import React from 'react'; var rd3 = require('rd3'); var LineChart = rd3.LineChart; const WeatherComponent = React.createClass({});
packages/material-ui-icons/src/NotificationsActive.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32...
client/components/video.js
mickael-kerjean/nuage
import React from 'react'; import PropTypes from 'prop-types'; import { Icon, NgIf } from './'; import './video.scss'; export class Video extends React.Component { constructor(props){ super(props); } render(){ return ( <div className="component_video"> <div clas...
src/svg-icons/action/label-outline.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabelOutline = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l...
client/containers/Singleplayer.js
LinearAtWorst/cogile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { changeLevel, getListOfPrompts, changeLanguage } from '../actions/index'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router'; import axios from 'axios'; import CodeEditor from './CodeEditor'; ...
app/components/Step.js
JedWatson/picture-tour-app
import classNames from 'classnames'; import React from 'react'; import Tappable from 'react-tappable'; import '../css/step.css'; import StepStore from '../stores/step'; const Step = React.createClass({ displayName: 'Step', next () { StepStore.next(); }, prev () { StepStore.prev(); }, render: function() { ...
tethys-ui-react/src/main/frontend/routes.js
fridayy/tethys
import React from 'react'; import {Route} from 'react-router'; import App from './App'; import TodoPage from './components/todo/TodoPage'; import BenchmarkPage from './components/benchmark/BenchmarkPage'; import MetricPage from './components/metric/MetricPage'; import PureJsComponent from './components/pure-js-componen...
src/views/layout.js
lijunle/depcheck-web
import React from 'react'; const Dot = () => ( <span> &middot; </span> ); const Footer = () => ( <p className="text-center text-muted"> <small> <span>&copy; 2015 Junle Li</span> <Dot /> <a href="https://github.com/lijunle/depcheck-es6">GitHub</a> <Dot /> <a href="https://github.c...
ui/src/components/common/Logout.js
d3sw/conductor
import React, { Component } from 'react'; import { connect } from 'react-redux' import * as authHelper from '../../core/AuthHelper'; class Logout extends Component { constructor(props) { super(props); } componentWillMount() { this.props.dispatch(authHelper.authLogout()); } render() { return nu...
src/routes/Address/components/address.js
codingarchitect/react-counter-pair
import React from 'react' import './address.scss' import Address from './address.rt' export default Address;
src/mui/button/RefreshButton.js
marmelab/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import compose from 'recompose/compose'; import FlatButton from 'material-ui/FlatButton'; import NavigationRefresh from 'material-ui/svg-icons/navigation/refresh'; import translate from '../../i18n/trans...
site/server.js
hacktunes/hacktunes
import React from 'react' import ReactDOMServer from 'react-dom/server' import Page from './components/Page' function renderStaticPage(store, view, locals, callback) { // Grab hashed CSS name out of compiled object. // FIXME: is there an easier way to do this, or can we contribute one upstream? const cssName = l...
src/components/item-details-card/index.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import { Card, CardHeader, CardContent, IconButton, Collapse, Typography, withStyles, CardActionArea } from '@material-ui/core'; import FileUpload from '../file-upload/index'; import KeyBoardArrowDown from '@material-ui/icons/KeyboardArrowDown'; import KeyboardArr...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Row.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import classNames from 'classnames'; import React from 'react'; import { createBootstrapC...
src/svg-icons/av/volume-off.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeOff = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86...
app/javascript/mastodon/components/admin/Retention.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedMessage, FormattedNumber, FormattedDate } from 'react-intl'; import classNames from 'classnames'; import { roundTo10 } from 'mastodon/utils/numbers'; const dateForCohort = cohort => { switch(cohort.freque...
NavigationReactMobile/sample/zoom/ZoomShared.js
grahammendick/navigation
import React from 'react'; import {SharedElementMotion} from 'navigation-react-mobile'; export default (props) => ( <SharedElementMotion {...props} onAnimating={(name, ref) => {ref.style.opacity = 0}} onAnimated={(name, ref) => {ref.style.opacity = 1}}> {({fontColor, ...style}, name, {left, top, widt...
node_modules/rc-calendar/es/year/YearPanel.js
yhx0634/foodshopfront
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-run...
src/routes.js
JeremyBernier/react-redux-node-boilerplate
import React from 'react' import { Router, Route, IndexRoute } from 'react-router' import App from './modules/AppContainer' import Sell from './pages/Sell' import Home from './pages/Home/HomeContainer' //kind of lame that this polyfill is needed here if (typeof require.ensure !== "function") { require.ensure = func...
public/js/components/search/Search.react.js
TRomesh/Coupley
import React from 'react'; import SearchItem from './SearchItem.react'; import SearchStore from '../../stores/SearchStore'; import Paper from 'material-ui/lib/paper'; import Snackbar from 'material-ui/lib/snackbar'; const style = { marginLeft: "40" } const loadMoreStyle = { marginTop: 500, position: 'fixed' } con...
src/svg-icons/action/label.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabel = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/> </SvgIcon> ); A...
src/index.js
VanishingDante/react-start-template
import React from 'react' import ReactDOM from 'react-dom' import App from './App' const root = document.querySelector('#root') const render = () => ReactDOM.render(<App />, root) if (module.hot) module.hot.accept('./App', () => requestAnimationFrame(render)) render()
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js
ArcanisCz/material-ui
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; const style = { marginRight: 20, }; /** * Default size and `mini` FABs, in primary (default), `secondary` and `disabled` colors. */ const FloatingActionButton...
ajax/libs/zingchart-react/1.0.6/zingchart-react.js
dakshshah96/cdnjs
import zingchart from 'zingchart'; import React, { Component } from 'react'; class Core extends Component{ render() { return ( React.createElement("div", {id: this.props.id}) ); } //Called after the render function. componentDidMount(){ zingchart.render({ ...
app/components/List/index.js
Bitaru/PartyRooms
import React from 'react'; import { compose, withHandlers, withProps } from 'recompose'; import { connect } from 'react-redux'; import cx from 'classnames'; import Events from '../../lib/EventBus'; import styles from './styles.css'; import RecordIcon from '../icons/record'; import PlayIcon from '../icons/play'; cons...
src/svg-icons/av/music-video.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
app/javascript/mastodon/features/compose/components/character_counter.js
foozmeat/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
app/components/JumbotronofHome/index.js
yoohan-dex/myBlog
/** * * JumbotronofHome * */ import React from 'react'; import { Jumbotron, Button } from 'react-bootstrap'; const JumbotronofHome = () => ( <Jumbotron> <h1>Hello, world!</h1> <p>Welcome to here ,register for your great time~~</p> <p><Button bsStyle="primary">Learn more</Button></p> </Jumbotron> ); ...
src/app/core/molecules/top-bar/utility-bar/index.js
blowsys/reservo
/* @flow */ /** * Utility bar * @module molecules/top-bar/utility-bar * @version v1.0.1 */ import React from 'react'; import _ from 'lodash'; import Button from 'atoms/button'; import './index.scss'; const deepBlueColor = '#193b56'; const buttonProps = { type: 'flat', rippleColor: deepBlueColor, ...
src/components/Navigation.js
cackiejamison/neighborly
import React from 'react'; import { observer, inject } from 'mobx-react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { Flex, Box } from 'reflexbox'; class Navigation extends React.Component { constructor(props) { super(props); } rend...
src/Popover.js
brynjagr/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
client/src/components/Grid.js
mbchoa/presence
import React from 'react'; import PropType from 'prop-types'; const Grid = props => (<svg {...props}> { props.children } </svg>); Grid.propTypes = { children: PropType.node.isRequired, }; export default Grid;
src/js/components/startMenu.js
GarrettEstrin/windows.garrettestrin.com
import React, { Component } from 'react'; import StartMenuItem from './startMenuItem'; import startMenuItems from '../initializers/startMenuItems'; class StartMenu extends Component{ constructor(props){ super(props); this.buildStartMenuItems = this.buildStartMenuItems.bind(this); } buildStartMenuItems...
client/src/index.js
smtech/stmarks-search
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css' import '../css/index.css' ReactDOM.render( <App />, document.getElementById('root') );
src/containers/news_list_item.js
Speudyland/NewsFeedApp
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import {fetchNews} from '../actions'; import { Link } from 'react-router-dom'; import FontAwesome from 'react-fontawesome'; import moment from 'moment' class NewsListItem extends Component { // once component is...
src/containers/dropDown/dropDown.js
psenger/ReactJS-Rapid-Prototype-Template
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as ButtonBarsActions from '../actionCreators/buttonBarsActions'; import Button from '../../components/button/button'; import Option from '../../compon...
frontend/src/Settings/Notifications/Notifications/NotificationsConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { deleteNotification, fetchNotifications } from 'Store/Actions/settingsActions'; import createSortedSectionSelector from 'Store/Selectors/createSortedSec...
app.js
mathbruyen/u-tic-tac-toe
/* jshint node: true, browser: true, esnext: true */ 'use strict'; import React from 'react'; //import ReactDOM from 'react-dom'; import GameBox from './game-box'; import newDispatcher from './dispatcher'; import newGameStore from './game-store'; var dispatcher = newDispatcher(); var game = newGameStore(dispatcher)...
src/articles/2018-01-31-1st-Anniversary/Timeline.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import './Timeline.css'; const Timeline = ({ children }) => ( <div className="timeline year-recap"> {children} </div> ); Timeline.propTypes = { children: PropTypes.node.isRequired, }; export default Timeline;
src/svg-icons/action/assignment.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignment = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-...
packages/es-components/src/components/patterns/dateInput/Year.js
TWExchangeSolutions/es-components
/* eslint react/prop-types: 0 */ import React from 'react'; import styled from 'styled-components'; import { useTheme } from '../../util/useTheme'; import ValidationContext from '../../controls/ValidationContext'; import InputBase from '../../controls/textbox/InputBase'; import onNonNumericHandler from './onNonNumeric...
pages/people/hhortiza.js
pcm-ca/pcm-ca.github.io
import React from 'react' import { Link } from 'react-router' import Helmet from 'react-helmet' import { config } from 'config' import { prefixLink } from 'gatsby-helpers' import bib from './bib' import info from './info' import PersonPage from '../../components/PersonPage' export default class Index extends React.Co...
classic/src/scenes/mailboxes/src/Components/ServiceTooltip/ServiceTooltipRecentItem.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { withStyles } from '@material-ui/core/styles' import TooltipSectionListItem from 'wbui/TooltipSectionListItem' import TooltipSectionListItemText from 'wbui/TooltipSectionListItemText' import To...
src/svg-icons/maps/navigation.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsNavigation = (props) => ( <SvgIcon {...props}> <path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/> </SvgIcon> ); MapsNavigation = pure(MapsNavigation); MapsNavigation.displayName = 'MapsNavigation'; ...
webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.js
adamruzicka/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { ActionButtons } from 'foremanReact/components/common/ActionButtons/ActionButtons'; export const ActionButton = ({ canEdit, id, name, availableActions: { resumable, cancellable, st...
cerberus-dashboard/src/components/Modal/Modal.js
Nike-Inc/cerberus-management-service
/* * Copyright (c) 2020 Nike, inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/scripts/components/list/list.component.js
pponugo/react-dev-ops
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import map from 'lodash/map'; const TYPES = { unordered: 'ul', ordered: 'ol', description: 'dl' }; const DEFAULT_ITEM_COMPONENT = prop => <span>{prop.value}</span>; class List extends React.Component { constru...
app/components/footer.js
awebfactory/react-pathways
import React from 'react'; class Footer extends React.Component { render(){ return ( <footer> <div className="row"> <div className="container-fluid"> <hr /> <p className="pull-left"> Content <a href="http://en.wikipedia.org/wiki/Copyleft"><img border="0" titl...
src/svg-icons/communication/portable-wifi-off.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPortableWifiOff = (props) => ( <SvgIcon {...props}> <path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02....
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupLabeledIcon.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupLabeledIcon = () => ( <Button.Group labeled> <Button icon='play' content='Play' /> <Button icon='pause' content='Pause' /> <Button icon='shuffle' content='Shuffle' /> </Button.Group> ) export default ButtonExa...
client/src/shared/components/article-preview.js
jmsmrgn/fem-testing-workshop
import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router-dom' import agent from '../agent' import smiley from '../../shared/smiley-cyrus.jpg' const FAVORITED_CLASS = 'btn btn-sm btn-primary' const NOT_FAVORITED_CLASS = 'btn btn-sm btn-outline-primary' const mapDispatchToProps = d...
examples/with-react-relay-network-modern/pages/_app.js
BlancheXu/test
import React from 'react' import { QueryRenderer, fetchQuery } from 'react-relay' import NextApp from 'next/app' import { initEnvironment, createEnvironment } from '../lib/createEnvironment' export default class App extends NextApp { static getInitialProps = async ({ Component, router, ctx }) => { const { varia...
client/portfolio2017/src/Components/FooterApp/FooterApp.js
corrortiz/portafolio2017
import React from 'react'; //Internals Component import Github from '../../images/SVG/Github'; //HOC for Globals variables import { lenguajeSelector } from '../../Store/Actions/globals'; import GC from '../../HOC/GlobalsConnect/GlobalsConnect'; /** * Componet for the layout of the footer */ const FooterApp = props =>...
src/svg-icons/image/switch-video.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchVideo = (props) => ( <SvgIcon {...props}> <path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5...
web/static/js/rest/app.js
yasuhiro-okada-aktsk/sample_phoenix_react
// Brunch automatically concatenates all files in your // watched paths. Those paths can be configured at // config.paths.watched in "brunch-config.js". // // However, those files will only be executed if // explicitly imported. The only exception are files // in vendor, which are never wrapped in imports and // theref...
es2015plus/react-redux/src/components/Select/index.js
lshig/forms-challenge
import React from 'react'; import PropTypes from 'prop-types'; export default function Select({ name, label, onChange, options }) { return ( <div className="select"> <select id={name} name={name} onChange={onChange}> <option key={label} value=""> {label} </option> {options...
examples/src/components/Virtualized.js
Dem0n3D/react-select
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
components/events/EventCard.js
BDE-ESIEE/mobile
import React, { Component } from 'react'; import { Text, View } from 'react-native'; import moment from 'moment'; import 'moment/locale/fr'; import {Actions} from 'react-native-router-flux'; import styles from '../styles/events.js'; // import styles from '../styles/events.js' import { Button, Card } from 'react-na...
website/src/widgets/project.js
explosion/spaCy
import React from 'react' import CopyInput from '../components/copy' import Infobox from '../components/infobox' import Link from '../components/link' import { InlineCode } from '../components/code' import { projectsRepo } from '../components/util' const COMMAND = 'python -m spacy project clone' export default funct...