path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
libs/utils/react.js
allanfish/elementui
import React from 'react' function firstChild(props) { const childrenArray = React.Children.toArray(props.children); return childrenArray[0] || null; } export {firstChild}
client/src/js/components/Container.js
LlamaSantos/realtime-readit
import React from 'react'; import { RouteHandler } from 'react-router'; import Header from 'components/Header' export default React.createClass({ render () { return ( <div className="container"> <Header /> <RouteHandler /> </div> ); } });
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js
pradel/material-ui
import React from 'react'; import ActionHome from 'material-ui/svg-icons/action/home'; import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download'; import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as...
routes.js
loganwedwards/react-static-boilerplate
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import AppBase from './pages/app-base'; import About from './pages/about'; import Home from './pages/home'; import Team from './pages/team'; export default ( <Router> <Route path="/" component={AppBase}> <IndexRoute compon...
app/components/common/Avatar.js
rvpanoz/luna
import React from 'react'; import cx from 'classnames'; import PropTypes from 'prop-types'; import MuiAvatar from '@material-ui/core/Avatar'; import { AVATAR } from 'styles/common'; const Avatar = ({ className, bordered, link, small, medium, ultraLarge, ...props }) => ( <MuiAvatar className={cx( ...
modules/Lifecycle.js
opichals/react-router
import React from 'react'; import invariant from 'invariant'; var { object } = React.PropTypes; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method * to a component that may be used to cancel a transition or prompt * the user for confirmation. * * On standard transitions, routerWillLeave receives...
client-redux-ex/app/AppCore.js
alexadam/react-start
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './components/main.js'; // const App = (props) => ( // <div> // <h1>Hello World</h1> // </div> // ); ReactDOM.render(( <Main/> ), document.getElementById('app'));
src/components/Footer/Footer.js
Maryanushka/masterskaya
/** * 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 withStyles from 'isom...
src/components/CritButtons.js
rcbdev/crit-cards
import React from 'react'; import CritButton from './CritButton'; export default function CritButtons({critTypes, addEffect}){ const buttonRows = []; for(const critMiss of Object.keys(critTypes)){ buttonRows.push( <div key={critMiss}> {critTypes[critMiss].map(t => <CritButt...
app/javascript/mastodon/components/display_name.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import escapeTextContentForBrowser from 'escape-html'; import emojify from '../emoji'; class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, }; render () { c...
src/svg-icons/maps/edit-location.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsEditLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm-1.56 10H9v-1.44l3.35-3.34 1.43 1.43L10.44 12zm4.45-4.45l-.7.7-1.44-1.44.7-....
app/javascript/mastodon/components/column.js
increments/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import detectPassiveEvents from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, }; scrollTop () { const scrollable = th...
src/components/AnchorButton/AnchorButton.js
cdtinney/cdtinney.github.io
import React from 'react'; import PropTypes from 'prop-types'; import Anchor from '../Anchor'; import Theme from '../../proptypes/Theme'; import withTheme from '../../hocs/withTheme'; import classNames from '../../utils/classNames'; import classes from './AnchorButton.module.css'; const colorEnum = { primary: cla...
packages/material-ui-icons/src/CloudCircle.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CloudCircle = props => <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
skevy/react-router
import React from 'react'; class Assignments extends React.Component { render () { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ); } } export default Assignments;
src/Input.js
xiaoking/react-bootstrap
import React from 'react'; import InputBase from './InputBase'; import * as FormControls from './FormControls'; import deprecationWarning from './utils/deprecationWarning'; class Input extends InputBase { render() { if (this.props.type === 'static') { deprecationWarning('Input type=static', 'StaticText'); ...
app/js/NavBar.js
jacobSingh/tabwrangler
/* @flow */ import PauseButton from './PauseButton'; import React from 'react'; export type NavBarTabID = 'about' | 'corral' | 'lock' | 'options'; type Props = { activeTabId: NavBarTabID, onClickTab: (tabId: NavBarTabID) => void, }; export default class NavBar extends React.PureComponent<Props> { handleClickA...
app/containers/LanguageProvider/index.js
Get-In-Touch/get-in-touch
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { IntlProvider } from 'react-intl'; export class LanguageProvider ext...
src/svg-icons/editor/merge-type.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
src/svg-icons/content/undo.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentUndo = (props) => ( <SvgIcon {...props}> <path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/> </Svg...
app/components/VersionCheckError.js
tidepool-org/chrome-uploader
/* * == BSD2 LICENSE == * Copyright (c) 2016, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program is distr...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
tsdl2013/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
src/table/rc-table-row.js
wisedu/bh-react
import React from 'react'; const TableRow = React.createClass({ propTypes: { onDestroy: React.PropTypes.func, record: React.PropTypes.object, prefixCls: React.PropTypes.string, }, componentWillUnmount() { this.props.onDestroy(this.props.record); }, render() { const props = this.props; ...
src/index.js
yejodido/flux-sails-webpack-transform
import React from 'react'; import TodoApp from './components/environment/TodoApp'; React.render(<TodoApp />, document.getElementById('root'));
react-app/src/containers/AdminEditFormContainer.js
floodfx/gma-village
import React, { Component } from 'react'; import AdminForm from '../components/AdminForm'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import LoadingIndicator from '../components/LoadingIndicator'; import Alert from '../components/Alert'; import { ActionCreators } from '../actions...
src/containers/NotFound/NotFound.js
rkxtd/react-devops-kit
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/component/Icon.js
dentemple/developer-portfolio
import React from 'react' import logo from '../style/img/logo.svg' const Icon = () => { const style = { backgroundColor: 'black' } return ( <img src={logo} style={style} className='Hero-logo' alt='logo' /> ) } export default Icon
src/Project.js
johant87/do-it-front
import React from 'react'; import TaskList from './TaskList'; import jQuery from 'jquery'; import { Router, Route, Link, browserHistory } from 'react-router'; class Project extends React.Component { constructor() { super(); this.state = { project: {} }; } updateProject(event) { console.l...
submissions/masiulis/src/components/components/components/sith-list-item.js
okmttdhr/flux-challenge
import React from 'react'; export default class extends React.Component { static propTypes = { name: React.PropTypes.string, homeworld: React.PropTypes.string, obiPlanet: React.PropTypes.string, } render() { const textColor = this.props.homeworld === this.props.obiPlanet ...
packages/showcase/showcase-sections/radar-showcase.js
uber/react-vis
import React from 'react'; import {mapSection} from '../showcase-components/showcase-utils'; import {REACTVIS_BASE_URL} from '../showcase-links'; import {showCase} from '../index'; const { AnimatedRadarChart, BasicRadarChart, FourQuadrantRadarChart, RadarChartWithTooltips, RadarChartSeriesTooltips } = showCa...
src/TabPane.js
dongtong/react-bootstrap
import React from 'react'; import deprecationWarning from './utils/deprecationWarning'; import Tab from './Tab'; const TabPane = React.createClass({ componentWillMount() { deprecationWarning( 'TabPane', 'Tab', 'https://github.com/react-bootstrap/react-bootstrap/pull/1091' ); }, render() { ...
app/javascript/mastodon/features/notifications/components/notification.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { FormattedMessage } from 'react-intl'; import Perma...
app/scripts/components/node-details/node-details-table-headers.js
hustbill/autorender-js
import React from 'react'; import { defaultSortDesc, getTableColumnsStyles } from '../../utils/node-details-utils'; import { NODE_DETAILS_TABLE_CW, NODE_DETAILS_TABLE_XS_LABEL } from '../../constants/styles'; export default class NodeDetailsTableHeaders extends React.Component { handleClick(ev, headerId, currentSor...
node_modules/semantic-ui-react/dist/es/collections/Form/FormTextArea.js
jessicaappelbaum/cljs-update
import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; import TextArea from '../../addons/TextArea'; import FormField from './FormField'; /** * Sugar for <Form.Field control={TextArea} /> * @see Form * ...
[JS-ES6][React] Raji client - second version/app/lib/containers/Series.js
datyayu/cemetery
import React from 'react'; import Header from '../components/header/Header'; import FilterList from '../components/filters/FilterList'; import SeriesList from '../components/series/SeriesList'; import {series as seriesArray} from '../../../db/series.json'; const Series = () => <div className="content"> <div cla...
src/components/App.js
nicholasbair/Perro-react
import React, { Component } from 'react'; import TopNav from './TopNav'; export default class App extends Component { render() { return ( <div> <TopNav /> {this.props.children} </div> ); } }
app/containers/ProfileText/components/education/index.js
ledminh/ledminh-home
import React from 'react'; import styled from 'styled-components'; import H1 from 'containers/ProfileText/h1'; import { SECTION_EDUCATION, PROFILE_NOW } from 'containers/HomePage/constants'; import {about_me} from 'data'; import {renderEducation} from './utils'; const hidden = ` display: none; `; cons...
lib/MultiColumnList/CellMeasurer.js
folio-org/stripes-components
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import noop from 'lodash/noop'; class CellMeasurer extends React.Component { static propTypes = { children: PropTypes.node, columnName: PropTypes.string, onMeasure: PropTypes.func, rowIndex: PropTypes.one...
node_modules/react-bootstrap/es/CarouselItem.js
acalabano/get-committed
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
client/modules/Post/__tests__/components/PostList.spec.js
thanhdatvo/tuoihoctro.react
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import PostList from '../../components/Post/PostList'; const posts = [ { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }, { name: 'Mayank', title: 'Hi Mern', s...
src/svg-icons/image/photo-filter.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoFilter = (props) => ( <SvgIcon {...props}> <path d="M19.02 10v9H5V5h9V3H5.02c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zM17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7l2.06.94zm-3.75....
app/javascript/mastodon/components/radio_button.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class RadioButton extends React.PureComponent { static propTypes = { value: PropTypes.string.isRequired, checked: PropTypes.bool, name: PropTypes.string.isRequired, onChange: PropTypes....
src/js/components/layout/statistics-modal.js
daniel-madera/pijs
import React from 'react' import { observer, inject } from 'mobx-react' import { Modal, Table, Button } from 'react-bootstrap' @inject('userStore') @observer export default class StatisticsModal extends React.Component { render() { const { statistics } = this.props.userStore return ( <Modal show={th...
src/components/SearchLayer/SearchLayer.js
MinisterioPublicoRJ/inLoco-2.0
import React from 'react' const SearchLayer = ({onSearchClick, onKeyUpSearch, onBtnCleanSearch, searchString}) => { let input var searchIconClass = 'search-layer--icon fa fa-' var onIconClick = null if (searchString !== undefined && searchString.length === 0) { searchIconClass += 'search' }...
docs/src/app/components/pages/components/AppBar/ExampleIconMenu.js
ngbrown/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import NavigationClose from 'material-ui/s...
src/containers/Forms/OtherInput/OtherInput.js
johnnycx127/react-demo
import React, { Component } from 'react'; import { Form, Select, InputNumber, DatePicker, TimePicker, Switch, Radio, Cascader, Slider, Button, Col, Upload, Icon } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; const RadioButton = Radio.Button; const RadioGroup = Radio.Group; const are...
src/demos/components/SvgChart.js
moarwick/react-mt-svg-lines
import React from 'react' const SvgChart = () => { return ( <svg viewBox="0 0 100 100"> <g strokeMiterlimit="10"> <path fill="none" stroke="#A6C3C9" d="M22.5 4v90"/> <path fill="none" stroke="#A6C3C9" d="M5 22.5h90"/> <path fill="none" stroke="#A6C3C9" d="M40.5 4v90"/> <path...
src/interface/icons/GitHubMarkSmall.js
sMteX/WoWAnalyzer
import React from 'react'; // From the GitHub branding website. const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1000" className="icon" {...other}> <path d="M512 0C229.25 0 0 229.25 0 512c0 226.25 146.688 418.125 350.156 485.812 25.594 4.688 34.938-11.125 34.938-24.625 0...
app/javascript/mastodon/features/ui/components/link_footer.js
abcang/mastodon
import { connect } from 'react-redux'; import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import { Link } from 'react-router-dom'; import { invitesEnabled, limitedFederationMode, version, repository, source_url } from 'mastodon/initi...
js/Bugsnag.js
BarberHour/barber-hour
import React, { Component } from 'react'; import { Client } from 'bugsnag-react-native'; import { connect } from 'react-redux'; import { bugsnagKey } from './env'; class Bugsnag extends Component { constructor(props) { super(props); this.client = new Client(bugsnagKey); } componentDidMount() { var ...
js/jqwidgets/demos/react/app/complexinput/changeevent/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js'; import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js'; class App extends React.Component { componentDidMount() { this.refs.myComplexInput.on('change', (...
src/App.js
jefferydutra/TestableModularReactTalk
import React from 'react'; import AvailableCharacters from './Components/AvailableCharacters'; import MyFavoriteCharacters from './Components/MyFavoriteCharacters'; import FilterBar from './Components/FilterBar'; import SectionTitle from './Components/SectionTitle'; import getAvailableCharacters from './getAvailableCha...
spec/javascripts/jsx/gradezilla/default_gradebook/components/GradebookSettingsModalSpec.js
venturehive/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...
public/js/15C.js
ritchieanesco/frontendmastersreact
/* Adding REDUX */ import React from 'react' import { connect } from 'react-redux' import ShowCard from './15D' import Header from './15F' const { arrayOf, shape, string } = React.PropTypes // render () function call is called enhanced object literal e6 syntax // es6 is not about writing function const Search = Reac...
app/containers/LanguageProvider/index.js
ethanve/bakesale
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/js/app.js
waagsociety/ams.datahub.client
import React from 'react' import ReactDOM from 'react-dom' import store from './store' import Index from './pages' ReactDOM.render(<Index store={store}/>, document.querySelector('#app'))
src/components/Button.js
madox2/fortune-app
import React from 'react' import {TouchableHighlight, Text, StyleSheet} from 'react-native' export const Button = ({children, onPress, style}) => ( <TouchableHighlight onPress={onPress} style={[styles.button, style]} underlayColor="#ddd"> <Text style={styles.label}>{children}</Text> </TouchableHigh...
src/pages/App.js
GamerZUnited/GamerZUninted-FrontEnd
import React from 'react' import {connect} from 'react-redux' import {Router, Route, Link} from 'react-router' import { Provider } from 'react-redux' import invariant from 'invariant' import {ReduxRouter} from 'redux-router' import {load} from '../actions/AppActions' import routes from '../routes' class App exten...
entry_types/scrolled/package/src/frontend/inlineEditing/SectionDecorator.js
tf/pageflow
import React from 'react'; import classNames from 'classnames'; import styles from './SectionDecorator.module.css'; import contentElementStyles from './ContentElementDecorator.module.css'; import {Toolbar} from './Toolbar'; import {ForcePaddingContext} from '../Foreground'; import {useEditorSelection} from './EditorSt...
app/components/TextPanel/theme/MediumEditor/index.js
Zurico/t7
import blacklist from 'blacklist'; import React from 'react'; import ReactDOM from 'react-dom'; import MediumEditor from 'medium-editor'; export default class ReactMediumEditor extends React.Component { static defaultProps = { tag: 'div' }; constructor(props) { super(props); this.state = { te...
src/interface/App.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { Route, Switch, withRouter } from 'react-router-dom'; import lazyLoadComponent from 'common/lazyLoadComponent'; import TooltipProvider from 'interface/common/TooltipP...
src/index.js
bobinette/papernet-front
import React from 'react'; import ReactDOM from 'react-dom'; import { IndexRedirect, IndexRoute, Router, Route, browserHistory } from 'react-router'; // Redux import { applyMiddleware, combineReducers, compose, createStore } from 'redux'; import thunkMiddleware from 'redux-thunk'; import createSagaMiddleware from 'red...
views/invocation.js
JimLiu/black-screen
import React from 'react'; import Prompt from './prompt'; export default React.createClass({ componentWillMount() { this.props.invocation .on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()})) .on('status', status => this.setState({status: status})...
src/routes/UIElement/dropOption/index.js
102010cncger/antd-admin
import React from 'react' import { DropOption } from 'components' import { Table, Row, Col, Card, message } from 'antd' const DropOptionPage = () => (<div className="content-inner"> <Row gutter={32}> <Col lg={8} md={12}> <Card title="默认"> <DropOption menuOptions={[{ key: '1', name: '编辑' }, { key: '...
src/components/views/groups/GroupTile.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Vector Creations Ltd 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 in writing, sof...
src/components/Modal/ModalHeader.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { IconButton, ButtonIcon } from '../Button'; import { THEMES, getThemeClass } from '../../utils'; const ModalHeader = (props) => { const { id, onClose, theme, title, tagline } = props; const isEmpty = !tagline ...
src/svg-icons/action/shopping-basket.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShoppingBasket = (props) => ( <SvgIcon {...props}> <path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h1...
frontend/src/courses/components/navigation/index.js
OptimusCrime/youkok2
import React from 'react'; import {calculateRelativeButtons} from "../../utilities"; import {RELATIVE_BUTTONS_LEFT, RELATIVE_BUTTONS_RIGHT} from "../../constants"; export const Navigation = ({position, page, numberOfPages, changePage}) => ( <div className={`courses-navigation courses-navigation-${position}`} role="t...
examples/shared-root/app.js
clloyd/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/shared-root' }) class App extends React.Component { render() { return ( <div> <p> This illustrates ...
app/javascript/mastodon/features/directory/components/account_card.js
masto-donte-com-br/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from 'mastodon/selectors'; import Avatar from 'mastodon/compone...
NewsDemoNavTab/Component/ZPScorllView.js
HAPENLY/ReactNative-Source-code-Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ScrollView, Image, } from 'react-native'; //引入Dimensions var Dimensions = require('Dimensions'); var {width}= Dimensio...
blueocean-material-icons/src/js/components/svg-icons/image/center-focus-weak.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCenterFocusWeak = (props) => ( <SvgIcon {...props}> <path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1....
src/component/hero-container/index.js
arn1313/kritter-frontend
import React from 'react'; import ReactDOM from 'react-dom'; import scrollToComponent from 'react-scroll-to-component'; import './_heroContainer.scss'; import img from '../../img/Kritter.png'; import AuthForm from '../auth-form'; import SignUpForm from '../sign-up-form' import { signupRequest, loginRequest, userFetchRe...
frontend/client/components/weeks.js
rkuykendall/weeklypulls
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import { observable, toJS } from 'mobx'; import { observer, propTypes } from 'mobx-react'; import _ from 'lodash'; import utils from '../utils'; import Comic from './comic'; @autobind @observer cl...
src/components/NotFoundView/NotFoundView.js
findinstore/instore-webapp
import React from 'react'; import { Link } from 'react-router'; export class NotFoundView extends React.Component { render() { return ( <div className="container text-center"> <h1>This is a demo 404 page!</h1> <hr /> <Link to="/">Back To Home View</Link> </div> ); } } e...
simpleapp/app/component/inventitem.js
ladanv/learn-react-js
import React, { Component } from 'react'; import $ from 'jquery'; import config from '../../config'; import Panel from './panel/Panel'; import InputFormGroup from './form/InputFormGroup'; import TextFormGroup from './form/TextFormGroup'; class InventItem extends Component { constructor(props) { super(pro...
vcomp/Example.js
chezhe/Vidi
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image } from 'react-native'; import {Surface} from 'gl-react-native' import HelloGL from './HelloGL' import Saturation from './Saturation' import HueRotate from './HueRotate' import PieProgress from './PieProgress' import OneFingerRespo...
src/components/row.js
Greynight/Grid
import React from 'react'; class Row extends React.Component { constructor(props) { super(props); this.READ_TEMPLATE = 'template'; this.EDIT_TEMPLATE = 'writableTemplate'; this.state = { templateType: this.READ_TEMPLATE }; } getColumns = () => { return this.props.columns; }; ...
src/components/dataVisualization/eCharts/Radar.js
SmiletoSUN/react-redux-demo
import React from 'react'; import ECharts from 'echarts-for-react'; const option = { title: { text: '基础雷达图', }, tooltip: {}, legend: { data: ['预算分配(Allocated Budget)', '实际开销(Actual Spending)'], }, radar: { // shape: 'circle', name: { textStyle: { color: '#fff', backgro...
src/Projects/projects.js
jasongforbes/jforbes.io
import React from 'react'; import { Helmet } from 'react-helmet'; import PropTypes from 'prop-types'; import Grid from '@material-ui/core/Grid'; import Hidden from '@material-ui/core/Hidden'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; const styles = th...
src/components/post/edit-post-button.js
voidxnull/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
ui/src/main/js/pages/Updates.js
medallia/aurora
import React from 'react'; import Breadcrumb from 'components/Breadcrumb'; import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout'; import UpdateList from 'components/UpdateList'; import { getInProgressStates, getTerminalStates } from 'utils/Update'; export const MAX_QUERY_SIZE = 100; export c...
src/config/routes.js
bmacheski/gh-contributors
'use strict'; import React from 'react'; import Main from '../components/Main'; import RepoSearch from '../components/RepoSearch'; import RepoList from '../components/RepoList'; import ContribList from '../components/ContribList' import { Router, DefaultRoute, Route } from 'react-router'; export default ( <Route na...
fields/components/columns/IdColumn.js
ligson/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, ...
src/containers/board/newBoard.js
motion123/mbookmakerUI
/** * Created by tomihei on 17/03/31. */ import React from 'react' import { connect } from 'react-redux' import NewBoard from '../../components/Board/newBoard'; import * as newBoard from '../../actions/newBoard' function mapStateToProps(state) { return { title: state.newBoard.title, description: state.newB...
examples/auth-with-shared-root/components/Dashboard.js
rdjpalmer/react-router
import React from 'react' import auth from '../utils/auth' const Dashboard = React.createClass({ render() { const token = auth.getToken() return ( <div> <h1>Dashboard</h1> <p>You made it!</p> <p>{token}</p> {this.props.children} </div> ) } }) export default...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Tooltip.js
JamieMason/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/card/Suggestions.js
yuri/treillage
import React from 'react'; import PropTypes from 'prop-types'; import { PASS } from '../../services/rules'; import { Button } from '../inputs/Button'; export const Suggestions = ({ suggestions, handleIgnore }) => { const styles = { message: { fontSize: '14px', fontStyle: 'italic', }, button:...
config/componentData.js
tlraridon/ps-react-train-tlr
module.exports = [{"name":"EyeIcon","description":"SVG Eye Icon.","code":"import React from 'react';\r\n\r\n/** SVG Eye Icon. */\r\nfunction EyeIcon() {\r\n // Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg\r\n return (\r\n <svg width=\"16\" height=\"16\" xmlns=\"http:/...
blueocean-material-icons/src/js/components/svg-icons/navigation/more-vert.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationMoreVert = (props) => ( <SvgIcon {...props}> <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/> </SvgIcon> ); NavigationMore...
dev/web/www/js/components/navbar/Logout.js
zajacmarekcom/letswrite
import React from 'react' import {Navbar, Nav, NavItem} from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' class Logout extends React.Component { getUserWelcome(){ return 'Welcome ' + this.props.user.firstName + ' ' + this.props.user.lastName } render() { return ( <N...
src/components/SearchBox.js
danielzy95/mechanic-finder
import React from 'react'; import PropTypes from 'prop-types'; import { Link, withRouter } from 'react-router-dom'; import styles from './SearchBox.css'; const linkStyle = { color: "#fff", textDecoration: "none" }; function search(history, value) { value = value.trim(); if (value.length > 0) history.push(`/...
lib/routes-creater/routeUtils.js
kuflash/react-router-sitemap
import React from 'react'; /** * @description Use React method to test if is a valid React Element. * @param {Object} object - Which to test if is valid React Element. * @return {Boolean} * @ignore */ const isValidChild = object => { return object === null || React.isValidElement(object); }; /** * @param {Obje...
node_modules/react-bootstrap/es/InputGroupButton.js
yeshdev1/Everydays-project
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
client/src/index.js
mohandere/tukaram-gatha
import React from 'react'; import ReactDOM from 'react-dom'; import {IntlProvider, FormattedMessage, addLocaleData} from 'react-intl'; import mr from 'react-intl/locale-data/mr'; addLocaleData(mr); import App from './App'; import './index.css'; const m = { 'welcome': 'स्वागत आहे', 'tukaram-gatha': 'तुकाराम गाथा',...
assets/js/client.es6.js
curioussavage/reddit-mobile
import 'babel/polyfill'; import '../../src/lib/dnt'; import errorLog from '../../src/lib/errorLog'; function onError(message, url, line, column) { errorLog({ userAgent: window.navigator.userAgent, message, url, line, column, requestUrl: window.location.toString() }, { hivemind: windo...
src/svg-icons/action/done-all.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDoneAll = (props) => ( <SvgIcon {...props}> <path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4...
renderer/components/Form/FiatAmountInput.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { compose } from 'redux' import { asField } from 'informed' import { convert } from '@zap/utils/btc' import { formatValue, parseNumber } from '@zap/utils/crypto' import { withNumberInputMask, withNumberValidation } from 'hocs' import { BasicInput } fro...
src/interface/report/ReportLoader.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { t } from '@lingui/macro'; import { fetchFights, LogNotFoundError } from 'common/fetchWclApi'; import { captureException } from '...
packages/material-ui-icons/src/LeakRemove.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24 5.16 12 3 12v2c2.71 0 5.19-.99 7.11-2.62l2.5 2....