path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/react-router-dom/es/HashRouter.js
lujinming1/hejicaoye
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/components/Portfolio.js
tinyx/gallery
import React from 'react'; import Gallery from 'react-grid-gallery'; class Portfolio extends React.Component { render() { const images = []; for(let i=0; i<this.props.images.length; i++) { const image = this.props.images[i]; images.push({ src: 'https://yitao.io' + image.image_file, ...
src/SearchNotes.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import { get } from 'lodash'; import axios from 'axios'; import NoteSearchOptions from "./modules/NoteSearchOptions"; import ModalSchemaBasedEditor from './modules/ModalSchemaBasedEditor'; import FontAwesome from 'react-fontawesome'; import {Button, ButtonG...
src/components/CircleButton/index.js
prjctrft/mantenuto
import React from 'react'; import PropTypes from 'prop-types'; const CircleButton = (props) => { const styles = require('./CircleButton.scss'); return ( <button onClick={props.onClick} className={ `btn btn-lg btn-primary btn-circle ${styles.CircleButton} ${props.className}`} > {p...
examples/counter/index.js
quangbuule/redux
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
my-app/src/components/scaffold/Content.js
sThig/jabbascrypt
import React from 'react'; import Welcome from '../pages/welcome'; class Content extends React.Component { constructor(props) { super(props) this.addActiveClass= this.addActiveClass; this.state = { hideNavItems: true, active: false, }; } toggleMenu() { const currentState = this.s...
src/svg-icons/communication/message.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMessage = (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-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Commun...
app/containers/NotFoundPage/index.js
impact-learning/frontend-demo
/** * 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 neccessity for you then you can refactor i...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
teddycab/teddycab.github.io
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
_pages/cities/src/_server/index.js
verekia/verekia.github.io
// @flow import React from 'react' // flow-disable-next-line import cond from '@sharyn/util/cond' import fse from 'fs-extra' import meanBy from 'lodash/meanBy' import { renderToString } from 'react-dom/server' import serialize from 'serialize-javascript' import { ServerStyleSheet } from 'styled-components' import cr...
map/src/containers/UserAccount/UserAccountContainer.js
teikei/teikei
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Field, reduxForm } from 'redux-form' import { updateUser } from '../UserOnboarding/duck' import i18n from '../../i18n' import InputField from '../../components/InputField/index' import { validator } from '../../...
src/components/ContactMain.js
mikalmorello/mikalmorello.github.io
import React from 'react'; import Map from './Map'; import Fade from 'react-reveal/Fade'; class ContactMain extends React.Component { render(){ return ( <main id="main" className="main"> <Fade> <section className="contact-information"> <div className="contact-information__c...
pootle/static/js/auth/components/AuthController.js
garthylou/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import FluxCompo...
src/components/CalculateButton.js
michael-lowe-nz/trigMeOnce
import React from 'react' import { trigCalculator } from 'trigonometry-calculator' let unsolved = { sides: {0: 10, 1: 24, 2: 11}, angles: {0: 90} } console.log('Calctriangle',trigCalculator(unsolved)) module.exports = ( {state, dispatch} ) => { function calculate () { const { hypotenuse, adjacent, opposite...
src/pages/d3demo.js
rueckstiess/react-playground
import React from 'react' import RandomDataGenerator from '../components/random-data' import BarChart from '../d3/bar' /** * The d3 demo page. */ export default React.createClass({ displayName: 'D3DemoPage', render () { return ( <div> <h1>React with d3 demo</h1> <p>this is a hot-loadabl...
test/helpers/shallowRenderHelper.js
surongaukeys/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
app/javascript/mastodon/features/blocks/index.js
tootcafe/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
gatsby/src/components/LinkList.js
staystatic/staystatic
import React from 'react' export default ({links}) => <ul> { links.map( link => <li><a href={link.url}>{link.title}</a></li> )} </ul>
stories/index.js
OperationCode/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Button from './Button'; import Welcome from './Welcome'; storiesOf('Welcome', module) .add('to Storybook', () => ( <Welcome showApp={...
examples/blog-starter/components/utils/published-at.js
BlancheXu/test
import React from 'react' import Link from 'next/link' import { parse, format } from 'date-fns' function PublishedAt (props) { const { link, date } = props return ( <> <Link href={link}> <a href={link} className='u-url' mcolor='#aaa' {...props}> <time className='dt-published'> ...
src/components/Auth/ForgotPassword/ForgotPassword.react.js
madhavrathi/chat.susi.ai
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import './ForgotPassword.css'; import $ from 'jquery'; import UserPreferencesStore from '../../../...
src/components/prompts/FeedbackAnytime.js
knod/cliff-effects-1
// REACT COMPONENTS import React from 'react'; import { Button } from 'semantic-ui-react'; const FeedbackAnytime = function ({ openFeedback }) { return ( <div> <Button onClick = { openFeedback } type = { `button` } color = { `teal` } size = { `medium` } id ...
src/Message.js
Karkin/react-native-gifted-chat
import React from 'react'; import { View, StyleSheet, } from 'react-native'; import Avatar from './Avatar'; import Bubble from './Bubble'; import Day from './Day'; import {isSameUser, isSameDay} from './utils'; export default class Message extends React.Component { getInnerComponentProps() { const {contai...
src/components/MainNav/CurrentApp/CurrentApp.js
folio-org/stripes-core
/** * Current App */ import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import CurrentAppButton from './CurrentAppButton'; import homeIcon from '../../../assets/icons/icon-home.svg'; const propTypes = { config: PropTypes.shape({ platformName: PropTypes.stri...
widgets/InlineTextInput.js
kristian-puccio/react-native-stateless-form
import React from 'react'; import { Component, PropTypes, StyleSheet, Text, TextInput, TouchableOpacity, View, } from 'react-native'; let styles; export default class InlineTextInput extends Component { componentDidMount() { this.scrollTo = 0; } handleLayout = (event) => { this.scrollTo = event.nativeEv...
app/components/Family/Family.js
geekmansam/Olive-Check-In
import React from 'react'; import { Link } from 'react-router'; import { Button } from 'react-bootstrap'; import styles from './Family.css'; const Family = (props) => ( <div className={styles.familyContainer}> <h3> <Link to={`/admin/family/view/${props.id}`} title="View Family"> { props.lastname } ...
src/components/users/UserOverview.js
mg4tv/mg4tv-web
import React from 'react' import {compose} from 'recompose' const enhance = compose( ) const UserOverview = () => ( <div></div> ) export default enhance(UserOverview)
src/OrderList.js
weizong85/coffee-test-code
import React from 'react'; const Order = ({beverage}) => <tr> <th>{beverage.name}</th> <th>{beverage.size}</th> <th>{beverage.type}</th> <th>${beverage.price}</th> </tr> class OrderList extends React.Component { constructor(props) { super(); this.state = { orderedList: [] }; } c...
anubis/ui/components/scratchpad/DataInputComponent.js
KawashiroNitori/Anubis
import React from 'react'; import classNames from 'classnames'; export default function DataInputComponent(props) { const { title, value, onChange, className, ...rest, } = props; const cn = classNames(className, 'flex-col flex-fill'); return ( <div {...re...
src/modules/xman/components/FlightList/ActionButtons/McsModeButtons.js
devteamreims/4me.react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import McsButton from './McsButton'; import UndoButton from './UndoButton'; class McsModeButtons extends Component { handleMcs = (event) => { // eslint-disable-line no-unused-vars const { readOnly, setMcs, minimu...
server/sonar-web/src/main/js/apps/code/components/Component.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
components/Icon/Icon.story.js
rdjpalmer/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import Icon from './Icon'; import icons from './icons'; import m from '../../globals/modifiers.css'; const story = storiesOf('Icon', module); Object.keys(icons).forEach(icon => { story.add(icon, () => ( <div className={ m.base }> {i...
app/javascript/mastodon/features/standalone/compose/index.js
masarakki/mastodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; import ModalContainer from '../../ui/containers/mo...
fields/types/color/ColorField.js
mekanics/keystone
import ColorPicker from '@jedwatson/react-color'; import Field from '../Field'; import React from 'react'; import { FormInput, InputGroup } from 'elemental'; const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches']; const TRANSPARENT_BG = `<svg width="24" height="24" viewBox=...
src/routes/routes.js
oglimmer/linky
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; import Layout from '../pages/Layout'; import Login from '../pages/Login'; import PortalPage from '../pages/PortalPage'; import TagPage from '../pages/TagPage'; import Contact from '../pages/Contact'; im...
src/popup/components/Palette/index.js
fluany/fluany
/** * @fileOverview A component to change package color * @name index.js<Palette> * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import Tooltip from 'components/Tooltip' import * as translator from 'shared/constants/i...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
nguyenhongson03/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; imp...
Realization/frontend/czechidm-core/src/components/advanced/OperationResult/OperationResult.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; // import * as Basic from '../../basic'; import OperationStateEnum from '../../../enums/OperationStateEnum'; import { AttachmentService } from '../../../services'; import OperationResultDownloadButton from './Operati...
webapp/src/containers/wordpress/index.js
alliance-genome/agr
/*eslint-disable no-unused-vars*/ import React, { Component } from 'react'; import { connect } from 'react-redux'; import fetchData from '../../lib/fetchData'; import { fetchWp, fetchWpSuccess, fetchWpFailure } from '../../actions/wp'; import { selectWp } from '../../selectors/wpSelectors'; import WordpressPage from ...
examples/js/remote/remote-delete-row.js
rolandsusans/react-bootstrap-table
import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; export default class RemoteDeleteRow extends React.Component { constructor(props) { super(props); } render() { return ( <BootstrapTable data={ this.props.data } remote={ true...
app/javascript/mastodon/features/ui/components/column.js
imomix/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import scrollTop from '../../../scroll'; class Column extends React.PureComponent { static propTypes = { heading: PropTypes.string, icon: PropTypes.string, childr...
examples/demos/rendering.js
bluespore/react-big-calendar
import React from 'react'; import BigCalendar from 'react-big-calendar'; import events from '../events'; function Event({ event }) { return ( <span> <strong> {event.title} </strong> { event.desc && (': ' + event.desc)} </span> ) } function EventAgenda({ event }) { return <span> ...
app/jsx/theme_editor/ThemeEditorSidebar.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
tech_stack/src/components/common/Button.js
dunkvalio/ReactNative
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; const Button = ({ onPress, children }) => { const { buttonStyle, textStyle } = styles; return ( <TouchableOpacity style={buttonStyle} onPress={onPress}> <Text style={textStyle}> {children} </Text> </Toucha...
App/Components/AccountInfo/index.spec.js
okmttdhr/YoutuVote
// @flow import test from 'ava'; import React from 'react'; import {Text} from 'react-native'; import { shallow } from 'enzyme'; import { merge } from 'lodash'; import { defaultUserMock, userActionsMock } from '../../../Tests/mock/'; import { AccountInfo } from './index'; import {DisplayName} from './DisplayName/'; t...
src/components/ServerList.js
tiagofumo/renaSMS
import React from 'react'; import { StyleSheet, Text, TouchableOpacity, Switch, View } from 'react-native'; import TMListView from './TMListView'; import { Actions } from 'react-native-router-flux'; import { MKSwitch } from 'react-native-material-kit'; function ServerList({ servers, onSwitchPress }) { retu...
tests/react_children/text.js
TiddoLangerak/flow
// @flow import React from 'react'; class Text extends React.Component<{children: string}, void> {} class TextOptional extends React.Component<{children?: string}, void> {} class TextLiteral extends React.Component<{children: 'foo' | 'bar'}, void> {} <Text />; // Error: `children` is required. <TextOptional />; // O...
react/src/index.js
gftruj/aframe-experients
import 'aframe'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
people-app/pages/index.js
giltayar/micro-next-workshop
import React from 'react' import Head from 'next/head' import Link from 'next/link' import fetch from 'isomorphic-fetch' export default class IndexPage extends React.Component { static async getInitialProps({res}) { const peopleDbUrl = res ? process.env.PEOPLE_DB : window.peopleDbUrl return { peopleDbUrl, p...
blueocean-material-icons/src/js/components/svg-icons/image/straighten.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageStraighten = (props) => ( <SvgIcon {...props}> <path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/> </SvgIcon> ); ImageStraighten.displayName = 'ImageStrai...
packages/@lyra/form-builder/src/lyra/inputs/LyraReferenceInput.js
VegaPublish/vega-studio
import React from 'react' import {search, getPreviewSnapshot} from './client-adapters/reference' import ReferenceInput from '../../inputs/ReferenceInput' export default class LyraReference extends React.Component { setInput = input => { this._input = input } focus() { this._input.focus() } render() {...
app/containers/NotebookTalo/setup.js
Zurico/t7
/* * WorkSpacePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import NotebookTalo from './index'; export default function(Register){ Register.extension('talo', {container: () => NotebookTalo}); }
src/mui/button/CancelButton.js
RestUI/rest-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FlatButton, RaisedButton } from 'material-ui'; import { translate } from '../../i18n'; import { Link } from 'react-router'; class CancelButton extends Component { render() { const { basePath, label = 'aor.action.cancel',...
app/components/SkillSet.js
DMXL/dm-react-resume
import React from 'react'; import SkillItem from './SkillItem' const SkillSet = props => { const getSkillItems = props.data.map(function(item, index) { return (<SkillItem key={index} data={item} />) }); return ( <div className="skillSet"> <span><b>{props.data.name}</b></span> ...
docs/src/app/components/pages/get-started/Installation.js
kasra-co/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import installationText from './installation.md'; const Installation = () => ( <div> <Title render={(previousTitle) => `Installation - ${previousTitle}`} /> <MarkdownElement text={insta...
examples/official-storybook/stories/addon-info/markdown.stories.js
storybooks/react-storybook
import React from 'react'; import { withInfo } from '@storybook/addon-info'; import { action } from '@storybook/addon-actions'; import BaseButton from '../../components/BaseButton'; import externalMdDocs from './EXAMPLE.md'; export default { title: 'Addons/Info/Markdown', decorators: [withInfo], excludeStories:...
src/components/footer/index.js
bobinette/papernet-front
import React from 'react'; import './footer.scss'; const Footer = () => ( <div className="Footer"> <hr /> <div className="container"> <div className="col-md-2 offset-md-1 "> <a className="Footer__Column" href="/terms-of-use">Terms of Use</a> </div> <div className="col-md-2"> ...
node_modules/_rc-time-picker@2.4.1@rc-time-picker/es/Panel.js
ligangwolai/blog
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...
springboot/GReact/src/main/resources/static/app/routes/forms/components/bootstrap-validation/MovieForm.js
ezsimple/java
import React from 'react' import BootstrapValidator from '../../../../components/forms/validation/BootstrapValidator' const validatorOptions = { feedbackIcons: { valid: 'glyphicon glyphicon-ok', invalid: 'glyphicon glyphicon-remove', validating: 'glyphicon glyphicon-refresh' }, fields: { title: ...
app/pages/UserPage.js
zhanghaj00/shop-reactnative
/** * ShopReactNative * * @author Tony Wong * @date 2016-08-13 * @email 908601756@qq.com * @copyright Copyright © 2016 EleTeam * @license The MIT License (MIT) */ 'user strict'; import React from 'react'; import { StyleSheet, View, Text, Image, Switch, TouchableOpacity, Interaction...
lib/head.js
nahue/next.js
import React from 'react' import sideEffect from './side-effect' class Head extends React.Component { static contextTypes = { headManager: React.PropTypes.object } render () { return null } } export function defaultHead () { return [<meta charSet='utf-8' className='next-head' />] } function reduce...
client/client.js
bnsd55/starter-kit-user-system-using-react-redux-webpack
import React from 'react' import { render } from 'react-dom' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import App from './components/App' import AddUser from './components/AddUser' import DeleteUser from './components/DeleteUser' import UpdateUser from './components/UpdateUser' import Hom...
src/ParticipationChart/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from '../Wrapper'; import Typography from '../Typography'; import ProgressCirclePercentage from '../ProgressCirclePercentage'; import styles from './styles.css'; function ParticipationChart(props) { return ( <Wrapper className={s...
addons/knobs/src/KnobManager.js
shilman/storybook
import React from 'react'; import WrapStory from './components/WrapStory'; import KnobStore from './KnobStore'; import deepEqual from 'deep-equal'; // This is used by _mayCallChannel to determine how long to wait to before triggering a panel update const PANEL_UPDATE_INTERVAL = 400; export default class KnobManager {...
frontend/src/Components/Form/TagSelectInputConnector.js
geogolem/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import TagInput from './TagInput'; function createMapStateToProps() { return createSelector( (state, { value }) => value, (st...
src/shared/components/boardCard/boardCard.js
miaket/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './boardCard.css'; const BoardCard = ({ alt, name, role, src }) => ( <div className={styles.boardCard}> <img className={styles.img} src={src} alt={alt} /> <span className={styles.name}> {name} </span> <hr ...
app/javascript/mastodon/features/status/components/card.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; import classnames from 'classnames'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.')...
react_touchable/index.ios.js
devSC/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import setup from './setup' AppRegistry.registerComponent('react_touchable', () => setup);
boilerplates/Compose.js
headwinds/bellwoods
/* eslint-disable */ import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Button from 'material-ui/Button'; import Paper from 'material-ui/Paper'; import { compose } from 'recompose'; import { withStyles } from 'material-ui/styles'; import { overrideStyle...
scripts/components/layout/navbar.js
evilfaust/lyceum9sass
import React from 'react'; export default class Navbar extends React.Component { constructor(props) { super(props); this.render = this.render.bind(this); } render() { const { hide } = this.props; if (hide) return <span />; return ( <div> </div> ); } }
react/judo-heroes-2/src/components/AthletePage.js
greganswer/devnotes
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import NotFoundPage from './NotFoundPage'; import AthletesMenu from './AthletesMenu'; import Medal from './Medal'; import Flag from './Flag'; import athletes from '../data/athletes'; export default class AthletePage extends Component ...
src/hook.js
TGPSKI/cavy
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TestHookStore from './TestHookStore'; // Public: Higher-order React component to factilitate adding hooks to the // global test hook store. // // WrappedComponent - Component to be wrapped, will be passed an initial // ...
src/js/components/icons/base/Scorecard.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
react-twitter-save-data-loading(hook)/src/components/Twitter/Quote.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles'; import Text from './Text'; class Quote extends React.Component { render () { const {data, linkProps} = this.props; return ( <div className="QuoteTweet" style={styles.QuoteTweet}> <a className="QuoteT...
client/scripts/components/admin/search-filter/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. 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 Lic...
static/node_modules/react-router/es6/RouterContext.js
unmeshpro/easyPost
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < argum...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
tikotzky/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
core/src/plugins/editor.eml/res/js/editor.js
huzergackl/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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...
app/javascript/mastodon/features/favourites/index.js
masarakki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
samples/react/app/components/Footer/index.js
IntelliSearch/search-client
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
src/svg-icons/action/fingerprint.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFingerprint = (props) => ( <SvgIcon {...props}> <path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12...
src/svg-icons/av/library-books.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryBooks = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1...
app/javascript/mastodon/features/ui/components/media_modal.js
kibousoft/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import { defineMessages, injectIntl } from 'react-intl'; import...
app/components/Counter.js
bird-system/bs-label-convertor
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Counter.css'; class Counter extends Component { props: { increment: () => void, incrementIfOdd: () => void, incrementAsync: () => void, decrement: () => void, counter: number }; rend...
src/routes/ActivateTicket/components/Activate.js
Terrapin-Ticketing/althea
import React, { Component } from 'react'; import './Activate.scss'; import classNames from 'classnames'; import { browserHistory } from 'react-router'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import EventInfoContainer from './../../../components/shared/EventInfo/EventInfo'; import Loadi...
day29_redux_todoapp/source_code/components/TodoSearchForm.js
eyesofkids/ironman2017
//@flow import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { onItemSearch } from '../actions/items' //匯入Props靜態類型的定義 import type { TodoSearchFormProps } from '../definitions/TodoTypeDefinition.js' const TodoSearchForm = ({ placeholderText, onItemSearch }...
components/meta.js
bukinoshita/open-source
import React from 'react' import Head from 'next/head' export default () => ( <div> <Head> <title>Open Source — It's never too late to join the party 🎉🎉</title> <meta name="viewport" content="width=device-width, initial-scale=1"/> <meta charSet="utf-8"/> <meta name="description" content...
src/components/HeaderBar/index.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import AppTitle from './AppTitle'; import Progress from './Progress'; import CurrentMedia from './CurrentMedia'; import Volume from './Volume'; import HistoryButton from './HistoryButton'; import CurrentDJ from './CurrentDJ'; const H...
src/encoded/static/components/util/seo.js
hms-dbmi/fourfront
'use strict'; import _ from 'underscore'; import React from 'react'; import PropTypes from 'prop-types'; import queryString from 'query-string'; import { getNestedProperty } from '@hms-dbmi-bgm/shared-portal-components/es/components/util/object'; import { isServerSide } from '@hms-dbmi-bgm/shared-portal-components/es/...
app/containers/InputPage/index.js
Statfine/reactDemo
/** * Created by easub on 2017/3/4. */ import React from 'react'; import styled from 'styled-components'; import TimeInput from './InputComponent'; import TimeSafari from './InputSafari'; const Content = styled.div` margin: 10px auto; width: 600px; `; const Title = styled.p` margin-top: 20px; `; const Input...
js/components/pages/HelpPage.react.js
calebwoods/memorize_ephesians
import React, { Component } from 'react'; import { Link } from 'react-router'; class HelpPage extends Component { render() { return ( <article className="wrapper"> <Link to="/" className="back"><i className="fa fa-arrow-left"></i></Link> <h1>Help</h1> <a className="feedback" href="h...
geonode/monitoring/frontend/monitoring/src/routes.js
francbartoli/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
tp-3/marisol/src/components/pages/materias/MateriasPage.js
jpgonzalezquinteros/sovos-reactivo-2017
/* eslint-disable import/no-named-as-default */ import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import MateriaForm from './form/MateriaForm'; import MateriaListado from './listado/MateriaListado'; class MateriasPage extends React.Component { render() {...
client/pages/Home/Problem/While/While.js
b3j0f/lechangement
import './While.css'; import React, { Component } from 'react'; import SubProblem from '../SubProblem/SubProblem'; class While extends SubProblem { render() { return ( <div className="subproblem col s12"> <h3>{this.props.title}</h3> {this.props.subtitle} </...
docs/src/SupportPage.js
PeterDaveHello/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
website-prototyping-tools/playground.js
dmfrancisco/relay
/** * Copyright 2013-2015, 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 'babel/pol...
src/svg-icons/action/picture-in-picture.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPictureInPicture = (props) => ( <SvgIcon {...props}> <path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/> </SvgIcon> ...
src/containers/App.js
kyleaclark/nba-trade-machine
import React from 'react'; import { Route } from 'react-router-dom'; import Home from './Home'; import './App.css'; const App = () => ( <div> <header className='header'> <h1>Fake Trade Machine</h1> </header> <main className='app'> <Route exact path="/" component={Home} /> </main> </di...
src/config.js
UniversalAvenue/react-compose
import _ from 'lodash'; import PropTypes from 'prop-types'; import React from 'react'; const plugin = {}; const functions = {}; const configurable = (key, defaultFn, argGetter = () => []) => { const apply = fn => (...args) => fn.apply(null, [...args, ...argGetter()]); plugin[key] = (fn) => { functions[key] = ...
src/routes/error/index.js
fechy/retropie-web-gui
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import ErrorPage from './ErrorP...