path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Layout.js
Arunvirat/Logi-heroes
'use strict'; import React from 'react'; import { Link } from 'react-router'; export default class Layout extends React.Component { getDate() { return new Date().toLocaleDateString(); } render() { return ( <div className="app-container"> <header> <div className="datediv"> ...
internals/templates/containers/NotFoundPage/index.js
MaleSharker/Qingyan
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/views/GestionsComponents/Stocks/GestionDesStocks.js
Cruis-R/GestionOutil
import React, { Component } from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; export default class GestionDesUtilisateurs extends Component { render(){ const data = []; return( <div className="animated fadeIn"> <div className="row"> <div classNam...
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js
GreenGremlin/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'; export default () => ( <span id="feature-public-url">{process.env.PUBLIC_URL}.</span> );
src/containers/MasterWindow.js
metasfresh/metasfresh-webui-frontend
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { forEach, get } from 'lodash'; import { addNotification } from '../actions/AppActions'; import { addRowData, attachFileAction, clearMasterData, ...
projects/twitch-ui/src/utils/renderer.js
unindented/twitch-x
import React from 'react' import renderer from 'react-test-renderer' import {ThemeProvider} from 'styled-components' import themes from '../themes' export function renderWithTheme (node, theme = 'default') { return renderer.create( <ThemeProvider theme={themes[theme]}> {node} </ThemeProvider> ) }
src/docs/examples/TextInputStyledComponents/ExampleError.js
vonZ/rc-vvz
import React from 'react'; import TextInputStyledComponents from 'ps-react/TextInputStyledComponents'; /** Required TextBox with error */ export default class ExampleError extends React.Component { render() { return ( <TextInputStyledComponents htmlId="example-optional" label="First Name" ...
src/TextField/EnhancedTextarea.js
skarnecki/material-ui
import React from 'react'; import EventListener from 'react-event-listener'; const rowsHeight = 24; function getStyles(props, context, state) { return { root: { position: 'relative', // because the shadow has position: 'absolute' }, textarea: { height: state.height, width: '100%', ...
imports/ui/components/friends/FriendsList.js
KyneSilverhide/expense-manager
/* eslint-disable no-confusing-arrow */ import React from 'react'; import { browserHistory } from 'react-router'; import { Bert } from 'meteor/themeteorchef:bert'; import FontAwesome from 'react-fontawesome'; import Dialog, { DialogActions, DialogContent, DialogContentText, DialogTitle, } from 'material-ui/Dia...
ui/js/pages/calendar/Calendar.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import moment from 'moment-timezone'; import { loadCalendar, loadCategory, unloadCalendar, unloadCategory, } from '../../actions'; import PageHeader from '../.....
src/renderer/components/search-notifications.js
sirbrillig/gitnews-menubar
import React from 'react'; import Gridicon from 'gridicons'; export default function SearchNotifications({ searchValue, setSearchTo }) { return <SearchField setSearchTo={setSearchTo} searchValue={searchValue} />; } function SearchField({ setSearchTo, searchValue }) { return ( <div className="notifications__search...
ui/js/dfv/src/fields/paragraph/index.js
pods-framework/pods
import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import { toBool } from 'dfv/src/helpers/booleans'; import { FIELD_COMPONENT_BASE_PROPS } from 'dfv/src/config/prop-types'; import './paragraph.scss'; const Paragraph = ( { fieldConfig = {}, onBlur, onChange, setV...
src/frontend/app.js
Bernie-2016/ground-control
import 'babel/polyfill' import jQuery from 'jquery' import React from 'react' import ReactDOM from 'react-dom' import Relay from 'react-relay' import {StyleRoot} from 'radium' import EventCreate from './components/EventCreate.js' import DummyEventCreate from './components/DummyEventCreate.js' import {Redirect, IndexRou...
src/ModalTitle.js
chilts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
lib/components/MessageView.js
davidbecker6081/ConnectME
import React, { Component } from 'react'; import Message from './Message'; import moment from 'moment'; import firebase, { referenceMessages, database, retrieveFromDatabase, pushMessage, } from '../firebase'; class MessageView extends Component { constructor() { super(); this.state = { message: '', }; }...
src/index.js
viralganatra/react-scrolling-lock
import React, { Component } from 'react'; import invariant from 'invariant'; export default function ScrollLockHOC({ className } = {}) { return function ScrollLockDecorate(WrappedComponent) { invariant( typeof WrappedComponent === 'function', `Expected "WrappedComponent" provided as...
packages/bonde-admin/src/mobilizations/widgets/__plugins__/donation/components/settings-menu.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' import * as paths from '@/paths' import { Tabs, Tab } from '@/components/navigation/tabs' import { SettingsPageMenuLayout } from '@/components/layout' const SettingsMenu = ({ mobilization, widget, location }) =>...
app/react/routes/index.js
stanleycyang/isomorphic-react-router
import React from 'react' import { Route, IndexRoute } from 'react-router' /* Import components */ import App from '../container' import Home from '../components' import Login from '../components/Login' import NoMatch from '../components/NoMatch' export default ( <Route name="app" component={ App } path='/'> <I...
js/Observation.js
nathanjameshill/ReefWatchPrototype
import React from 'react'; import validator from 'bootstrap-validator'; import { Modal, Button, FormGroup, Col, ControlLabel, FormControl, HelpBlock, Checkbox } from 'react-bootstrap'; import DateTimeField from 'react-bootstrap-datetimepicker'; import moment from "moment"; import config from '../config' import Typeahea...
docs/app/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ReactDOM from 'react-dom' import App from './App' // ---------------------------------------- // Rendering // ---------------------------------------- const mountNode = document.createElement('div') document.body.appendChild(mountNode) const render = (NewApp) => ReactDOM.render(<NewA...
src/modules/pages/feeds/js/index.js
lenxeon/react
require('../../../../css/panel.less') require('../css/index.less') import React from 'react'; import {Router, Route, Redirect, Link, History} from 'react-router'; let {createActiveRouteComponent} = require('../../NavLink'); let FeedListWidget = require('./FeedListWidget'); let FeedStore = require('./feedStore'); va...
Swift Playgrounds/Challenges/LinkedIn Placements 2017/Caesar Cipher- Encryption/Caesar Cipher- Encryption.playground/Resources/index.ios.js
jeevanRao7/Swift_Playgrounds
/** * 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 AwesomeProject extends Component { render() { return ( <View style={styles.cont...
app/javascript/flavours/glitch/features/video/index.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { is } from 'immutable'; import { throttle, debounce } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from 'fla...
src/components/ComposerDisplay.js
BenGoldstein88/redux-chartmaker
import React from 'react'; export default class ComposerDisplay extends React.Component { // static propTypes = { // name: React.PropTypes.string, // }; constructor(props) { super(props); this.state = { clicked: false, styles: { editStyle: { margin: '0 auto', fontSize:...
src/svg-icons/maps/local-car-wash.js
pancho111203/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...
src/index.js
nicolasthy/showify-electron
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import promise from 'redux-promise'; import requireAuth from './components/require_auth'; im...
admin/client/Signin/Signin.js
naustudio/keystone
/** * The actual Sign In view, with the login form */ import assign from 'object-assign'; import classnames from 'classnames'; import React from 'react'; import xhr from 'xhr'; import Alert from './components/Alert'; import Brand from './components/Brand'; import UserInfo from './components/UserInfo'; import LoginF...
docs/src/pages/components/grid/CSSGrid.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Paper from '@material-ui/core/Paper'; import Divider from '@material-ui/core/Divider'; import Grid from '@material-ui/core/Grid'; const useStyles = makeStyles((theme) => ({ ...
src/containers/Home/Home.js
lanceharper/react-redux-universal-hot-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server const logoImage = ...
internals/templates/appContainer.js
boogunote/mevoco-client
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
examples/async/index.js
nickhudkins/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
docs/app/Examples/modules/Checkbox/States/CheckboxExampleReadOnly.js
aabustamante/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleReadOnly = () => ( <Checkbox label='This checkbox is read-only' readOnly /> ) export default CheckboxExampleReadOnly
client/userinterface/Inventory.js
benstuijts/darkage-framework
import React from 'react'; import InventoryStore from '../stores/InventoryStore'; import * as InventoryActions from '../actions/InventoryActions'; /* components */ import ListGroup from './ListGroup'; import IconGrid from './IconGrid'; class Inventory extends React.Component { constructor() { super(); this...
src/svg-icons/action/view-week.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewWeek = (props) => ( <SvgIcon {...props}> <path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4...
library/src/pivotal-ui-react/draggable-list/draggable-list.js
sjolicoeur/pivotal-ui
import React from 'react'; import classnames from 'classnames'; import move from './move_helper'; import {Icon} from 'pui-react-iconography'; import {mergeProps} from 'pui-react-helpers'; import PropTypes from 'prop-types'; import 'pui-css-lists'; const childrenIndices = children => children.map((child, i) => i); exp...
src/svg-icons/image/crop-din.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropDin = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageCropDin = pure(ImageCropDin); Image...
src/website/app/pages/RenderProps/examples/ThemeAccess.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import LiveProvider from '../../../LiveProvider'; import styled from '@emotion/styled'; import { withTheme } from 'emotion-theming'; import Menu from '../../../../../library/Menu'; import { menuItemTheme } from '../../../../../library/Menu/themes'; export default function ThemeAc...
Website/src/components/Header/DesktopNavBar.js
ameyjain/WallE-
import React, { Component } from 'react'; import { connect } from 'react-redux' export default class DesktopNavBar extends Component { render() { return ( <div> <header id="header" className="alt"> <h1><a href="/">Wall-e Inc.</a></h1> <nav> <a href="/">Home</a> ...
src/container/ErrorPage/index.js
ztplz/CNode-react-native
/** * React Native App * https://github.com/ztplz/CNode-react-native * email: mysticzt@gmail.com */ import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import NetErrorPage from '../../components/ErrorPage'; class NetErrorPage extends Component { static navigati...
src/layout/footer.js
bokuweb/re-bulma
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../../build/styles'; import { getCallbacks } from '../helper/helper'; export default class Footer extends Component { static propTypes = { children: PropTypes.any, style: PropTypes.object, className: PropTyp...
docs/app/Examples/modules/Progress/Variations/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ProgressVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Inverted' des...
src/page_views/shared/Header.js
max-su/max-su.github.io
import React from 'react'; import MaxSuJPG from 'src/assets/images/max.jpg'; import { BackgroundClass, HeaderText, HeaderButtonBackground, HeaderButtonText } from 'src/assets/style_constants.js'; import 'src/assets/styles/_header.scss'; export default function Header() { return ( <hea...
src/components/home/HomePage.js
santiaro90/pluralsight-react-redux
import React from 'react'; import { Link } from 'react-router'; class HomePage extends React.Component { render() { return ( <div className="jumbotron"> <h1>Pluralsight Administration</h1> <p>React, Redux and React Router in ES6 for ultra-responsive ...
src/components/Parameters.js
SpikeO/isomorphic-flux-react-react-router
import ObjectActions from '../actions/ObjectActions'; import ObjectStore from '../stores/ObjectStore'; import React, { Component } from 'react'; class Parameters extends Component { constructor(props) { super(props); this.state = ObjectStore.getObject(this.props.params.id); } handleChange(event) { v...
examples/app.js
americanpanorama/panorama
'use strict'; import React, { Component } from 'react'; import { PanoramaDispatcher, PanoramaEventTypes } from '../src/PanoramaDispatcher'; import AreaChartExample from './components/example-areachart'; import BarChartExample from './components/example-barchart'; import D3ChoroplethExample from './components/example-...
src/components/SelectorLanguageFlags/SelectorLanguageFlags.js
WDAqua/frontEnd
/** * 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, { Component } from 'react'; import {connect}...
fields/components/DateInput.js
udp/keystone
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import Popout from '../../admin/src/components/Popout'; import { FormInput } from 'elemental'; function isSameDay(d1, d2) { if (!_.isDate(d1)) { d1 = new Date(); } if (!_.isDate(d2)) { d2 = new Date(); } d1.setHo...
src/admin/client/routes/logout.js
cezerin/cezerin
import React from 'react'; import * as auth from 'lib/auth'; export default class Logout extends React.Component { componentWillMount() { auth.removeToken(); } render() { return null; } }
src/svg-icons/action/payment.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPayment = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); ActionPay...
docs/src/PureText.js
picidaejs/picidaejs
// import React from 'react' const PureText = () => <div>Text</div>;
src/routes/contact/index.js
bharathbhsp/refactored-funicular
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/app/components/project/rings/RingsView.js
tscok/birds2
import React from 'react'; const RingsView = React.createClass({ render() { return ( <div> <h1>RingsView</h1> </div> ); } }); export default RingsView;
frontend/src/components/home/HomePage.js
raulGX/recipeblog
import React from 'react'; class HomePage extends React.Component { render() { return ( <div className="jumbotron"> <h1>Home</h1> </div> ); } } export default HomePage;
src/components/comment_list.js
kors-mk5/react-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; const CommentList = (props) => { const list = props.comments.map(comment => <li key={comment}>{comment}</li>); return( <ul className="comment-list">{list}</ul> ); }; function mapStateToProps(state) { return {comm...
src/Parser/ElementalShaman/Modules/Features/Maelstrom/CastEfficiencyComponent.js
mwwscott0/WoWAnalyzer
// Based on Main/CastEfficiency.js import React from 'react'; import PropTypes from 'prop-types'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; const CastEfficiency = ({ categories, abilities }) => { if (!abilities) { return <div>Loading...</div>; } return ( <div st...
react-app/src/index.js
danieluy/www.danielsosa.uy
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import App from './App'; import Home from './sections/home/Home'; import Img from './sections/img/Img'; import Arq from './sections/arq/Arq'; import Dev from './sections/dev/Dev'; ...
react-router-es6-example/node_modules/react-router/es6/Link.js
akhilaantony/React-Stylisted
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
components/Header.react.js
pierreavizou/universal-routed-flux-demo
import React from 'react'; import TodoActions from '../flux-infra/actions/TodoActions'; import TodoTextInput from './TodoTextInput.react'; export default class Header extends React.Component{ constructor(props){ super(props); } /** * @return {object} */ render () { return ( ...
src/containers/list_podcast_episodes.js
rdenadai/mockingbird
import { css } from '../css'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import Avatar from 'material-ui/Avatar'; import FontIcon from 'material-ui/FontIcon'; import {blueGrey800} from 'material-ui/styles/colors'; import Divider from 'material-ui/Divider'; import {List, ListItem}...
app/components/ConnectDapp/ApproveTransaction.js
CityOfZion/neon-wallet
// @flow import React from 'react' import classNames from 'classnames' import { isEmpty } from 'lodash-es' import { JsonRpcRequest } from '@json-rpc-tools/utils' import { useWalletConnect } from '../../context/WalletConnect/WalletConnectContext' import { ROUTES } from '../../core/constants' import CloseButton from '....
webui/src/config/routes.js
DroneEmployee/drone-employee-connect
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from '../shared/containers/app'; import NotFound from '../shared/components/app/notFound'; import * as Modules from '../routes/containers'; import * as Hardware from '../routes/hardware'; export default () => ( <div> <Route p...
components/AppName.js
isogon/styled-mdl-website
import React from 'react' import styled from 'styled-components' const Title = styled.h1` margin: 0; font-weight: 800; font-size: 14px; position: relative; margin: 0px; text-transform: uppercase; letter-spacing: 1px; color: white; ` export default () => <Title>STYLED MDL</Title>
src/src/components/notas.js
Hexamagnus/Front-End
import React, { Component } from 'react'; import './notas.css'; class Notas extends Component { constructor(props) { super(props); } render() { return ( <div className="col-md-12"> <div className="col-md-12"> <a className="btn btn-info btn-l...
packages/material-ui-icons/src/VolumeOff.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let VolumeOff = 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...
packages/icons/src/md/editor/FormatIndentIncrease.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFormatIndentIncrease(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M6 42h36v-4H6v4zm0-26v16l8-8-8-8zm16 18h20v-4H22v4zM6 6v4h36V6H6zm16 12h20v-4H22v4zm0 8h20v-4H22v4z" /> </IconBase> ); } export d...
Animate/react-motion-demo/src/components/Container.js
imuntil/React
import React from 'react' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' // import style from './Container.css'; export default class Container extends React.Component { constructor(props, context) { super(props, context); } componentWillMount() { // document.body.style.margin =...
src/views/components/ButtonCard.js
physiii/open-automation
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {doServiceAction, setServiceSettings} from '../../state/ducks/services-list/operations.js'; import ServiceCardBase from './ServiceCardBase.js'; import Switch from './Switch.js'; import SliderControl from './Slider...
js/app.js
pletcher/mission-hacks
import 'babel-polyfill' import '../css/app.css' import { browserHistory } from 'react-router' import { Provider } from 'react-redux' import { RelayRouter } from 'react-router-relay' import cookies from 'lib/cookies' import React from 'react' import ReactDOM from 'react-dom' import Relay from 'react-relay' import route...
pages/index.js
gr8fuljoe5/skeeball-scorecard
import React, { Component } from 'react'; import Tables from '../components/Tables/Tables.js' export default class extends Component { render() { return ( <div> <Tables/> </div> ); } }
src/components/Schemes/Weave/index.js
nobus/weaver
import React, { Component } from 'react'; import WeaveElement from '../WeaveElement'; import './style.css'; import '../../../styles/index.css'; class Weave extends Component { render() { const {currentState, onClick, offClick} = this.props; const indents = []; for (let i = 0; i < currentState.settings...
src/components/Fixture/Team.js
footballhackday/hackday-example
'use strict'; import React, { Component } from 'react'; export default class Team extends Component { onClick(event) { event.preventDefault(); this.props.onClick(); } render() { let team = this.props.team; return ( <strong> <a href="#" onClick={this.onClick.bind(this)}>{team.nam...
client/util/react-intl-test-helper.js
leranf/hotwireCarRentalSearch
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
src/components/TechsPage.js
W01fw00d/w01fw00d_portfolio
import React, { Component } from 'react'; import '../stylesheets/TechsPage.css'; import react_logo from '../assets/logos/react.svg'; import backbone_logo from '../assets/logos/backbone.png'; import node_logo from '../assets/logos/node.png'; import cucumber_logo from '../assets/logos/cucumber.png'; import selenium_logo...
websrc/components/project/ProjectPage.js
Ricky-Nz/react-relay-example
import React from 'react'; import Relay from 'react-relay'; import { TitleBar, ParallaxBanner, PageFooter } from '../'; import ProjectSegments from './ProjectSegments'; import ProjectPager from './ProjectPager'; class ProjectPage extends React.Component { componentDidMount() { setTimeout(() => window.scrollTo(0, 0)...
frontend/src/App.js
lcanal/demspirals
import React, { Component } from 'react'; import { Navbar,Nav,NavItem } from 'react-bootstrap'; import { Link,Route,BrowserRouter as Router } from 'react-router-dom'; import { LinkContainer } from 'react-router-bootstrap'; import Home from './components/Home'; import TopOverall from './components/TopOverall'; import To...
src/components/common/svg-icons/action/perm-device-information.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermDeviceInformation = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> ...
src/ProgressBar/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.css'; import classNames from 'classnames'; function ProgressBar(props) { const optBackground = ( <div className={classNames(styles.inactive, styles[props.size])} /> ); return ( <div className={...
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/TransformerParams.js
vsilent/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import {findDOMNode} from 'react-dom'; import {hashHistory} from 'react-router'; import {Link} from 'react-router'; im...
src/main.js
yoshiyoshi7/react2chv2
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.scss' import { MuiThemeProvider } from 'material-ui/styles'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 i...
app/containers/ViewerWidget/index.js
belongapp/belong
import React from 'react'; import { Link } from 'react-router'; import Relay, { updateNetworkLayer } from 'relay/index'; import { clearStorage, loggedIn, loggedOut } from 'containers/Viewer/lib'; import UserWidget from 'components/UserWidget'; import styles from './styles.css'; import buttonStyles from 'components/Butt...
demo/src/index.js
zachcoyle/redux-looking-glass
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Demo from './Demo'; import registerServiceWorker from './registerServiceWorker'; import store from './configureStore' ReactDOM.render( <Provider store={store}> <Demo /> </Provider>, document.getEleme...
src/svg-icons/maps/ev-station.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsEvStation = (props) => ( <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V...
static/scripts/components/Home.js
minhuaF/bcb-koa2
import React from 'react'; import { Link } from 'react-router'; import Footer from './Footer.js'; // 无状态组件 首页的无状态是暂时的 const Home = React.createClass({ render: function(){ return ( <div style={{marginTop: -93 + 'px'}}> <Link to="/signin"><header className="home-banner"></header>...
draft-js-emoji-plugin/src/components/EmojiSuggestionsPortal/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; export default class EmojiSuggestionsPortal extends Component { componentWillMount() { this.props.store.register(this.props.offsetKey); this.updatePortalClientRect(this.props); // trigger a re-render so the EmojiSuggestions becomes active this.props.setEdit...
src/scripts/navbar.js
ButuzGOL/constructor
import React from 'react'; import Radium from 'radium'; import uniqid from 'uniqid'; import groupBy from 'lodash.groupby'; import variables from './styles/variables'; import Div from './base/div'; import A from './base/a'; import Nav from './nav'; @Radium export default class NavBar extends React.Component { stati...
tests/react_children/component.js
AgentME/flow
// @flow import React from 'react'; import type {Node} from 'react'; class MyComponent extends React.Component<{children: Node}, void> { render(): Node { // OK: Can pass a node down like so. return <MyComponent>{this.props.children}</MyComponent>; } } class MyComponentOptional extends React.Component<{ch...
lesson-2/idea-journal/solution/src/components/NewNoteModal.js
msd-code-academy/lessons
import React from 'react' import Modal from 'react-modal' import * as shortId from 'shortid' import '../styles/NewNoteModal.css' class NewNoteModal extends React.Component { constructor() { super() this.state = { modalIsOpen: false, note: {} } } toggleModal = () => { this.setState({ modalIsOpen:...
src/pages/index.js
pixelstack/pixelstack.com
import React from 'react' import Link from 'gatsby-link' import logoSrc from '../assets/logo.svg' const IndexPage = () => ( <section className='home-content'> <img className='brand__logo' src={logoSrc} /> <p>Building solutions to your digital problems<br />through websites and web applications</p> <ul cl...
node_modules/reflexbox/docs/components/GithubButton.js
HasanSa/hackathon
import React from 'react' const GithubButton = ({ user, repo, ...props }) => ( <div style={{ height: 20 }}> <iframe src={`https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=star&count=true`} frameBorder='0' scrolling='0' width='100px' height='20px' /> </div> ) GithubBut...
components/timeline/demo/index.js
TDFE/td-ui
/** * Created by kongliang on 19/06/2017. */ import React from 'react'; import ReactDOM from 'react-dom'; import Icon from '../../icon'; const MOUNT_NODE = document.getElementById('app'); let render = () => { let Timeline = require('../index').default; function Demo() { return ( <div> <Timeli...
frontend/app_v2/src/common/icons/Print.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary Print * @component * * @param {object} props * * @returns {node} jsx markup */ function Print({ styling }) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className={styling}> <title>Print</title> ...
src/js/key-demo-app.js
training4developers/react_redux_12122016
/* @flow */ import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap-loader'; import '../css/styles.scss'; type ItemListItemProps = { item: string }; type ItemListItemState = { item: string }; class ItemListItem extends React.PureComponent { props: ItemListItemProps; state: ItemListItemS...
packages/react-scripts/fixtures/kitchensink/src/index.js
paweljedrzejczyk/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...
app/javascript/mastodon/features/list_adder/components/list.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from '../../../components/icon_button'; import { defineMessages, inject...
src/components/ModalWrapper/ModalWrapper.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import Modal from '../Modal'; import Button from '../Button'; import { ButtonT...
docs/src/PropTable.js
Sipree/react-bootstrap
import _ from 'lodash-compat'; import React from 'react'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); let capitalize = str => str[0].toUpperCase() + str.substr(1);...
blueocean-material-icons/src/js/components/svg-icons/maps/local-grocery-store.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalGroceryStore = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c....
tests/react_native_tests/test_data/native_code/PickerDialog/app/components/Mobile/component.js
ibhubs/sketch-components
/** * @flow */ import React from 'react' import PropTypes from 'prop-types' import { observer } from 'mobx-react/native' import styles from './styles' import Picker from '@rn/commons/app/components/Picker' import styled from 'styled-components/native' import { View } from 'react-native' const Mobile = (props) =>...
src/svg-icons/action/invert-colors.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInvertColors = (props) => ( <SvgIcon {...props}> <path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1...
src/svg-icons/maps/tram.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTram = (props) => ( <SvgIcon {...props}> <path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h...