path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/components/hashtag.js
lynlynlynx/mastodon
// @ts-check import React from 'react'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from './permalink'; import ShortNumber from 'mastodon/co...
src/Textarea.js
prometheusresearch/react-ui
/** * @copyright 2016-present, Prometheus Research, LLC * @flow */ import type {InputProps} from './Input'; import React from 'react'; import Input from './Input'; export default function Textarea(props: InputProps) { return <Input rows={3} {...props} Component="textarea" />; }
src/svg-icons/action/polymer.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPolymer = (props) => ( <SvgIcon {...props}> <path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/> </SvgIcon> ); ActionPolymer = pure(ActionPolymer); ActionPolymer.d...
stories/index.js
pekkis/react-broilerplate-project
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { List } from 'immutable'; import uuid from 'node-uuid'; import TodoList from '../src/components/TodoList'; const todos = List.of( { id: uuid.v4(), text: 'Must do something', }, { id: uuid.v4(), text: 'Must d...
client/containers/Content/index.js
yoohan-dex/React-Blog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import selector from './selectors'; class Content extends Component { render() { return ( <div> <h1>I'm content page</h1> <article>{this.props.article}</article> </div> ); } } const mapStateToProps...
src/components/Buttons/Button.js
instacart/Snacks
import React from 'react' import PropTypes from 'prop-types' import Radium from '@instacart/radium' import Icon from '../Icon/Icon' import withTheme from '../../styles/themer/withTheme' import { themePropTypes } from '../../styles/themer/utils' import { spacing, colors } from '../../styles' import { darken } from '../....
src/components/EditorWidgets/DateTime/DateTimeControl.js
Aloomaio/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import DateControl from 'EditorWidgets/Date/DateControl'; export default class DateTimeControl extends React.Component { static propTypes = { field: PropTypes.object.isRequired, onChange: PropTypes.func.isRequired, classNameWrapper: PropTypes...
node_modules/react-router/es6/withRouter.js
aleksandrsmolin/react-redux-weather
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; }; import invariant from 'invariant'; import React from 'react';...
client/src/components/student/StudentStatisticsList.js
yegor-sytnyk/contoso-express
import React from 'react'; import _ from 'lodash'; import StudentStatisticsRow from './StudentStatisticsRow'; const StudentStatisticsList = ({statistics}) => { let id = 1; //for key return ( <table className="table"> <thead> <tr> <th>Enrollment Date<...
src/components/NavRegion/NavRegion.js
devsal123/salm
import React from 'react' import './NavRegion.css' const NavRegion = (props) => { const linkItems = props.links.map( (link) => <div className="nav-item righted" key={ link.url } onClick={(e) => props.onClick(link.name)} > { link.name } </div> ) return ( <div id="nav-area">...
src/components/operations/family-list.js
FranckCo/Operation-Explorer
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { familyLink } from './routes'; import display from 'utils/display-results' import { sortArrayByKey } from 'utils/sort-array' import D from 'i18n' const sortArray = sortArrayByKey('label'); export default fu...
app/jsx/context_cards/StudentContextCardTrigger.js
venturehive/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/IconMenu/IconMenu.js
rscnt/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import Events from '../utils/events'; import propTypes from '../utils/propTypes'; import Menu from '../Menu/Menu'; import Popover from '../Popover/Popover'; class IconMenu extends React.Component { static muiName = 'IconMenu'; static propTypes = { /...
docs-ui/components/barChart.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import BarChart from 'app/components/charts/barChart'; // eslint-disable-next-line storiesOf('Charts/BarChart', module).add( 'default', withInfo('Stacked Bar')(() => { return ( <div> ...
src/main.js
yhhuang79/admin-web
import React from 'react' import ReactDOM from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // =================...
node_modules/react-router/es6/IndexLink.js
wangi4myself/myFirstReactJs
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; }; import React from 'react'; import Link from './Link'; /** *...
FPL.DraftLeague.APP/src/containers/NotFound/NotFound.js
olehhe/fpl-draft-league
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/parser/paladin/holy/modules/LightOfDawn.js
sMteX/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Statistic from 'interface/statistics/Statistic'; import BoringSpellValue from 'interface/statistics/components/BoringSpellValue'; import PlayerHi...
src/svg-icons/action/perm-contact-calendar.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermContactCalendar = (props) => ( <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-...
app/components/ButtonsPanel/index.js
Ratholien/JobReact
import React from 'react'; import { Paper } from 'material-ui'; import ButtonAdd from '../../components/ButtonAdd'; import ButtonOffer from '../../components/ButtonOffer'; // import '../index.css'; const ButtonsPanel = () => { const Offers = [ 'google', 'accenture', 'taglif', ]; const buttons = Offer...
examples/with-react-intl/pages/index.js
nahue/next.js
import React from 'react' import {FormattedMessage, FormattedNumber, defineMessages} from 'react-intl' import Head from 'next/head' import pageWithIntl from '../components/PageWithIntl' import Layout from '../components/Layout' const {description} = defineMessages({ description: { id: 'description', defaultM...
src/components/TodoTextInput.js
stevewillard/relay-todomvc
import keycode from 'keycode'; import React from 'react'; export default class TodoTextInput extends React.Component { static propTypes = { commitOnBlur: React.PropTypes.bool.isRequired, initialValue: React.PropTypes.string, onCancel: React.PropTypes.func, onDelete: React.PropTypes.func, onSave: ...
admin/src/components/ListColumnsForm.js
belafontestudio/keystone
import classnames from 'classnames'; import React from 'react'; var Transition = React.addons.CSSTransitionGroup; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, InputGroup, SegmentedControl } = require('e...
src/js/index.js
romanmatiasko/reti-chess
import React from 'react'; import io from './io'; import Index from './components/Index'; React.render( <Index io={io} />, document.getElementById('container') );
app/components/SearchReason.js
nosplashurinal/order-management
import React from 'react'; import styles from '../styles/settings.scss'; const SearchReason = () => <section id={styles.searchreason}> <div className={styles.search_field}> <input type="text" name="searchreason" placeholder="Search Reason" /> </div> <div className={styles.reason_list}> <ul> ...
public/assets/scripts/components/resources/details/mediaFooter.js
luisfbmelo/reda
import React from 'react'; import { Component } from 'react'; // Components import FavoriteIcon from '@/components/resources/actions/favorite'; import EmailIcon from '@/components/resources/actions/email'; import ShareIcon from '@/components/resources/actions/share'; import EmbedIcon from '@/components/resources/actio...
src/components/Skill.js
GuoYongfeng/react-resume
import React from 'react' import AboutItem from './AboutItem.js' const Skill = () => { const skillArray = [ { id: 0, styleName:'iconfont icon-html',title:'HTML5',desc:'熟练掌握HTML/HTML5新特性及其运用,并独立开发过多个微信应用。'}, { id: 1, styleName:'iconfont icon-css',title:'CSS3',desc:'熟练掌握CSS/CSS3新特性,并开发个多个Hybrid应用,熟悉W...
Examples/ForTest/src/__test/testsListView.js
ksti/react-native-utils
import React,{Component} from 'react' // import React from 'react'; import { Navigator, StyleSheet, Text, Image, View, ListView, TouchableOpacity, StatusBar, Dimensions, ToastAndroid, BackAndroid } from 'react-native' import { Scene, Reducer, Router, Switch, TabBar, Modal...
js/components/app.js
not-raspberry/planningpoker
import React from 'react'; // Wrapper for routes and crude state store. const App = React.createClass({ contextTypes: { router: React.PropTypes.object.isRequired, }, getInitialState: function() { return { // Game ID to game state maps. games: {}, modera...
js/components/App.react.js
techaware/biometric-auth
/** * * 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) */ // Import stuff import React, { Component } from 'react'; import Nav from './Nav.react'; import { connect } from 'react-redux'; import auth fr...
src/components/common/svg-icons/image/filter-b-and-w.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterBAndW = (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 16l-7-8v8H5l7-8V5h7v14z"/> </SvgIcon> ); ImageFilterBAndW = pure(Im...
code/web/node_modules/react-bootstrap/es/Clearfix.js
zyxcambridge/RecordExistence
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/ImageItem.js
nmartin867/buggylist
import React from 'react' import PropTypes from 'prop-types' const ImageItem = ({url, title}) => { return <iframe src={url}></iframe> } ImageItem.propTypes = { url: PropTypes.string.isRequired, title: PropTypes.string } export default ImageItem
src/AutofillChangeEventPolyfill.js
jaroslawr/react-form-logic
// Emit change event when the browser auto-fills an input filed // Based on https://github.com/Pephers/react-autofill import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export class AutofillChangeEventPolyfill extends Component { constructor(props) { super(props); this.changeListen...
src/components/user/user_stats.js
nicolasthy/showify-electron
import React, { Component } from 'react'; export default class UserStats extends Component { getTimeSpent(value){ const units = { "years": 24*60*365, "months": 24*60*30, "weeks": 24*60*7, "days": 24*60, "hours": 60, "minutes": 1 } let result = [] for(let name in units) { let p = Math.f...
ajax/libs/react-instantsearch/4.1.0-beta.2/Dom.js
seogi1004/cdnjs
/*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
src/components/topic/platforms/EditPlatformContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { injectIntl } from 'react-intl'; import { push } from 'react-router-redux'; // import { reset } from 'redux-form'; import PlatformWizard from './builder/PlatformWizard'; import withAsyncData from '../../common/...
src/components/run.js
cameronbwhite/cameronbwhite-website
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
app/javascript/mastodon/features/account/components/action_bar.js
anon5r/mastonon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { Link } from 'react-router-dom'; import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } fr...
application/index.js
Kifial/CoinKeeper
import React from 'react' import ReactDOM from 'react-dom' import tapEventPlugin from 'react-tap-event-plugin' import { Provider } from 'react-redux' import { configureStore } from './store/configureStore' import { ConnectedRouter } from 'react-router-redux' import { getHistory } from './history' import App from './App...
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js
manchesergit/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerInternational = () => ( <div> <TimePicker hintText="Custom Labels" okLabel="确定" cancelLabel="取消" /> </div> ); export default TimePickerInternational;
employees/client/main.js
tpechacek/learn-react-native
import React from 'react'; import ReactDOM from 'react-dom'; import EmployeeList from './components/employee_list'; const App = () => { return ( <div> <EmployeeList /> </div> ); }; // After Meteor loads in the browser, render my app to the DOM. Meteor.startup(() => { //React render call ReactDO...
frontend/app/js/components/settings/users.js
serverboards/serverboards
import React from 'react' import Loading from '../loading' import HoldButton from '../holdbutton' import Restricted from 'app/restricted' import i18n from 'app/utils/i18n' import {SectionMenu} from 'app/components' class UserRow extends React.Component{ componentDidMount(){ $(this.refs.dropdown).dropdown() } ...
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/rescandialog.js
patel344/Mr.Miner
import React from 'react' const RescanDialog = () => ( <div className="rescan-dialog"> <i className="fa fa-circle-o-notch fa-spin fa-4x" aria-hidden="true" /> <h3> Scanning the Blockchain... </h3> </div> ) export default RescanDialog
frontend/src/lib/crud/NewRecord.js
jf248/scrape-the-plate
import React from 'react'; import { connect } from 'react-redux'; import { renderProps } from 'lib/react-powerplug'; import { create } from './actions'; class NewRecord extends React.Component { render() { const { create, isLoading } = this.props; return renderProps(this.props, { create, isLoad...
packages/rmw-shell/cra-template-rmw/template/src/components/Forms/Task.js
TarikHuber/react-most-wanted
import React from 'react' import { Autocomplete } from 'rmw-shell/lib/components/FormFields' import Stack from '@mui/material/Stack' import { TextField, DatePicker } from 'mui-rff' import deLocale from 'date-fns/locale/de' import { useIntl } from 'react-intl' // eslint-disable-next-line const Form = ({ id, handleSubm...
src/components/Header/Header.js
Batname/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.less'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...
frontend/src/components/forms/fields/multipleSelectInput.js
unicef/un-partner-portal
import React from 'react'; import R from 'ramda'; import PropTypes from 'prop-types'; import Grid from 'material-ui/Grid'; import IconButton from 'material-ui/IconButton'; import Clear from 'material-ui-icons/Clear'; import { withStyles } from 'material-ui/styles'; const styles = () => ({ input: { flexGrow: 1, ...
examples/counter/containers/App.js
gxbsst/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
examples/js/sort/sort-hook-table.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; prod...
src/components/CompetitionCard.js
ChromeQ/lms
import React, { Component } from 'react'; import Moment from 'react-moment'; import { Link } from 'react-router-dom'; import '../css/CompetitionCard.css'; import CardHeader from './CardHeader'; import iconPlayers from '../images/icon-player.svg'; import iconSelected from '../images/icon-selected.svg'; import iconUnsel...
modules/PropTypes.js
zhijiansha123/react-router
import React from 'react'; import Location from './Location'; import History from './History'; var { func, object, arrayOf, instanceOf, oneOfType, element } = React.PropTypes; function falsy(props, propName, componentName) { if (props[propName]) return new Error(`<${componentName}> should not have a "${propName...
app/components/SiteNav.js
ianmilliken/origimill
import React from 'react'; import {Link} from 'react-router'; import SiteLogo from './SiteLogo'; class SiteNav extends React.Component { render() { return ( <nav className="site-nav"> <div className="site-nav__left"> <a className="site-nav__logo" href="/"> <SiteLogo /> ...
docs/app/Examples/views/Card/Variations/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Variations = () => ( <ExampleSection title='Variations'> <ComponentExample title='Fluid Card' description='A f...
pootle/static/js/shared/mixins/FormValidationMixin.js
pavels/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. */ import React from 'react'; // eslint-disable-line no-unus...
packages/flow-runtime-docs/src/components/PackageListPage.js
codemix/flow-runtime
/* @flow */ import React, { Component } from 'react'; import {observer} from 'mobx-react'; import PackageList from './PackageList'; type Props = {}; @observer export default class PackageListPage extends Component<Props, void> { render() { return ( <div> <header className="jumbotron jumbotron-fl...
src/components/auth/Login.js
Cretezy/react-redux-router-firebase
import React from 'react'; import * as firebase from 'firebase'; import { connect } from 'react-redux'; class Login extends React.Component { state = { email: '', password: '', error: null }; handleSubmit(event) { event.preventDefault(); firebase.auth().signInWithEmailAndPassword(this.state.email, this....
client/src/app/routes/settings/containers/FeeTypes/FeeTypeForm.js
zraees/sms-project
import React from 'react' import {reset} from 'redux-form'; import axios from 'axios'; import classNames from 'classnames'; import isEmpty from 'lodash/isEmpty'; import {connect} from 'react-redux' import {Field, reduxForm, formValueSelector, getFormValues} from 'redux-form' import {required, email, number} from '../....
fields/types/datearray/DateArrayFilter.js
qwales1/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const PRESENCE_OPTIONS = [ { label: 'At least one element', value: 'some' }, { label: 'No element', value: 'none'...
docs/src/app/components/pages/components/GridList/ExampleSimple.js
manchesergit/material-ui
import React from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import Subheader from 'material-ui/Subheader'; import StarBorder from 'material-ui/svg-icons/toggle/star-border'; const styles = { root: { display: 'flex', flexWrap: 'wrap', ...
src/app/components/Header.js
zendra1994/react-ssr
import React from 'react'; import { Link } from 'react-router'; export default class Header extends React.Component { render() { return ( <header> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/about">About</Link></li> </ul> </header> ) } }
src/js/app/decorator/form-util-component.js
webyom/react-router-redux-demo
import React from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import Promise from 'bluebird'; let formUtilComponent = Wrapped => class FormUtilComponent extends Wrapped { get classNames() { let res = {'yom-form-util-component': true}; if (this.props.className) { this...
src/svg-icons/action/flight-land.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightLand = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2...
src/utils/childrenValueInputValidation.js
thealjey/react-bootstrap
import React from 'react'; import { singlePropFrom } from './CustomPropTypes'; const propList = ['children', 'value']; export default function valueValidation(props, propName, componentName) { let error = singlePropFrom(propList)(props, propName, componentName); if (!error) { error = React.PropTypes.node(pro...
docs/src/app/components/pages/components/Drawer/ExampleOpenSecondary.js
pancho111203/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import AppBar from 'material-ui/AppBar'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerOpenRightExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } handle...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
voidException/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
src/js/components/icons/base/Configuration.js
codeswan/grommet
import React from 'react'; import Configure from './Configure'; export default (props) => { console.warn( 'Configuration has been renamed to Configure.' + ' Plese update your import statement.' ); return <Configure {...props} />; };
app/server.js
pedrosaraiva/redux-blog-example
/* eslint-env node */ import express from 'express'; import cookieParser from 'cookie-parser'; import _ from 'lodash'; import path from 'path'; import fs from 'fs'; import React from 'react'; import { Router } from 'react-router'; import Location from 'react-router/lib/Location'; import { Provider } from 'react-redux';...
admin/client/App/components/Navigation/Secondary/NavItem.js
alobodig/keystone
/** * A navigation item of the secondary navigation */ import React from 'react'; import { Link } from 'react-router'; const SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropType...
react-youtube-adaptive-loading/src/components/VideoGrid/VideoGridHeader/VideoGridHeader.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import './VideoGridHeader.scss'; export function VideoGridHeader(props) { return ( <div className='video-grid-header'> <span className='title'>{props.title}</span> </div> ); }
examples/passing-props-to-children/app.js
fiture/react-router
import React from 'react'; import { Router, Route, Link, History } from 'react-router'; var App = React.createClass({ mixins: [ History ], getInitialState() { return { tacos: [ { name: 'duck confit' }, { name: 'carne asada' }, { name: 'shrimp' } ] }; }, addTaco() {...
src/client/assets/javascripts/components/Header/Header.js
Sevas727/ReactTest3
import React from 'react'; import "./header.scss" export default function Header() { return ( <header> <a href="https://www.adyax.com/"> <img alt="Adyax" src={require("../../../images/logo.jpg")} /> </a> <h5>a better experience</h5> <h1>Front-End Developer<span>.</sp...
src/js/components/icons/base/Pan.js
odedre/grommet-final
/** * @description Pan SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @proper...
customView/index.android.js
TheKingOfNorway/React-Native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class customView extends Component { render() { return ( <View style={styles.container}> <Te...
src/containers/show_graph.js
bolivierjr/Weather-Chart-App
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { ResponsiveContainer, LineChart, Line, CartesianGrid, XAxis, YAxis, Tooltip, Legend, AreaChart, Area } from 'recharts'; import _ from 'lodash'; class ShowMap extends Component { showForecast() { ...
app/components/ApplicationBar/ApplicationBar.js
Tetraib/player.rauks.org
import React from 'react' import AppBar from 'material-ui/AppBar' const ApplicationBar = ({ title, setTitle }) => { return ( <AppBar title={title} zDepth={0} onLeftIconButtonTouchTap={setTitle.bind(this, 'hey')} /> ) } ApplicationBar.propTypes = { title: React.PropTypes.string.isRequired, ...
node_modules/react-icons/md/insert-photo.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdInsertPhoto = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m14.1 22.5l-5.7 7.5h23.2l-7.5-10-5.7 7.5z m20.9 9.1q0 1.4-1 2.4t-2.4 1h-23.2q-1.4 0-2.4-1t-1-2.4v-23.2q0-1.4 1-2.4t2.4-1h23.2q1.4 0 2.4 1t1 2.4v23.2z"/></g> <...
src/routes/content/index.js
HildoBijl/DondersHackathonTR
/** * 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 fetch from '../../core/f...
src/components/form/Button.js
Kryten0807/cacofonix
// npm dependencies // import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; /** * The Button component * @param {Object} children The children of this component * @param {Boolean} disabled A flag to indicate whether the button should be * ...
node/client/src/Dashboard/Home/ProjectActivity/ProjectActivity.js
wasong/cmpt433
import React from 'react' import PropTypes from 'prop-types' import Radium from 'radium' import Divider from 'material-ui/Divider' import List from './List' const styles = { title: { fontSize: 18, margin: '0 0 5px', color: '#b1b1b1', }, projectCard: { height: 500, flex: 6, }, } const Pro...
node_modules/react-router/es6/RouterContext.js
jwinut/poke
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...
demo/components/body/body.js
rcaferati/react-awesome-button
import React from 'react'; import PropTypes from 'prop-types'; import Styles from './body.scss'; const Body = ({ children }) => ( <div className={Styles.container}> <div className={Styles.wrapper}> {children} </div> </div> ); Body.propTypes = { children: PropTypes.node.isRequired, }; export defau...
src/svg-icons/content/add.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAdd = (props) => ( <SvgIcon {...props}> <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/> </SvgIcon> ); ContentAdd = pure(ContentAdd); ContentAdd.displayName = 'ContentAdd'; ContentAdd.muiName = 'SvgIcon...
src/components/MaintainBusinessRules/RuleAssist.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import { FormControl, Col, Row, ListGroup, ListGroupItem, Button, Well, Label, FormGroup, ControlLabel, Pagination, Table } from 'react-bootstrap'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux';...
examples/js/selection/default-select-table.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
packages/veritone-react-common/src/components/NullState/index.js
veritone/veritone-sdk
import React from 'react'; import Button from '@material-ui/core/Button'; import { string, func, shape, node, bool } from 'prop-types'; import { makeStyles } from '@material-ui/styles'; import styles from './styles'; const useStyles = makeStyles(styles); const NullState = ({ imgProps, titleText, btnProps, children, ...
app/containers/StepFamilyPage.js
geekmansam/Olive-Check-In
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import StepFamily from '../components/StepFamily'; import { Creators } from './../actions/navigation'; class StepFamilyPage extends Component { componentDidMount() { this.props.up...
components/teleport/src/TeleportWrapper.js
fi11/uikit
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; export default class TeleportWrapper extends React.Component { static propTypes = {}; constructor(props, context) { super(props, context); this.state = { children: props.children }; } comp...
src/components/views/items/MixView.js
planlodge/soundmix
import React from 'react'; import Moment from 'react-moment'; import Truncate from 'react-truncate'; import {NavLink} from 'react-router-dom'; import {Icon} from 'react-materialize'; // Using "Stateless Functional Components" export default function (props) { //console.log("Ps", props); return ( <div c...
src/shared/js/components/StackChart.js
datalocale/dataviz-finances-gironde
import { scaleLinear } from 'd3-scale'; import { min, max, sum } from 'd3-array'; import React from 'react'; import LegendList from './LegendList'; import D3Axis from './D3Axis'; /* This component displays a stackchart and a legend if there is a legend. Colors are attributed by this component via the use of ...
src/svg-icons/action/cached.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
tests/flow/react_modules/es6class-types-callsite.js
lydell/prettier
/* @flow */ import React from 'react'; import Hello from './es6class-types-module'; type Props = {name: string}; class HelloLocal extends React.Component<void, Props, void> { props: Props; render(): React.Element<*> { return <div>{this.props.name}</div>; } } class Callsite extends React.Component<void, Pr...
src/atoms/archive-list-item/stories.js
dsmjs/components
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ import React from 'react'; import any from '@travi/any'; import storyRouter from 'storybook-router'; import {linkTo} from '@storybook/addon-links'; import ArchiveListItem from './component'; const meeting = { node: { fields: {sl...
src/static/index.js
spiskommg/mm-v2
import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/createBrowserHistory'; import ReactGA from 'react-ga'; import { authLoginUserSuccess } from './actions/auth'; import { dataFetchData } from './actions/data'; import Root from './containers/Root/Root'; import configureStore ...
pages/contact.js
djhi/dpc
import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import styled from 'styled-components'; import withData from '../lib/withData'; import withAuth from '../lib/withAuth'; import withGlobalStyles from '../lib/withGlobalStyles'; import withIntl from '../lib/withIntl';...
websrc/components/dashboard/DashboardConfigTab.js
Ricky-Nz/react-relay-example
import React from 'react'; import Relay from 'react-relay'; import { Row, Col, Button, Input } from 'react-bootstrap'; import { LabelEditor, ProgressIndicator } from '../'; import { UpdateAppMutation } from '../../mutations'; class DashboardConfigTab extends React.Component { constructor(props) { super(props); th...
react/src/components/loading/Loading.js
VREMSoftwareDevelopment/bwmon
/* * Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com> * * 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: //w...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/format-bold.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatBold = (props) => ( <SvgIcon {...props}> <path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H...
src/components/tooltips/demos/Below.js
isogon/styled-mdl
import React from 'react' import { Tooltip, Button, Icon } from '../../../' export default () => ( <Tooltip message="Follow" position="below"> <Button icon> <Icon name="add" /> </Button> </Tooltip> )
webpack/components/NewTemplateSync/components/TextButtonField/RenderField.js
mmoll/foreman_templates
import React from 'react'; import CommonForm from 'foremanReact/components/common/forms/CommonForm'; import { InputGroup, Button } from 'patternfly-react'; import PropTypes from 'prop-types'; import FieldType from './FieldType'; const RenderField = ({ input, label, className, inputClassName, fieldRequired, ...